Skip to content

Instantly share code, notes, and snippets.

View nidev's full-sized avatar

Changbeom Yun (Nidev) nidev

View GitHub Profile
@nidev
nidev / gist:2657e3deab36a94c80e5
Created February 4, 2015 02:49
uninitialized constant Twitter::Media::AnimatedGif
/home/nidev/.gem/ruby/2.2.0/gems/twitter-5.13.0/lib/twitter/factory.rb:14:in `const_get': uninitialized constant Twitter::Media::AnimatedGif (NameError)
from /home/nidev/.gem/ruby/2.2.0/gems/twitter-5.13.0/lib/twitter/factory.rb:14:in `new'
from /home/nidev/.gem/ruby/2.2.0/gems/twitter-5.13.0/lib/twitter/media_factory.rb:13:in `new'
from /home/nidev/.gem/ruby/2.2.0/gems/twitter-5.13.0/lib/twitter/entities.rb:92:in `block in entities'
from /home/nidev/.gem/ruby/2.2.0/gems/twitter-5.13.0/lib/twitter/entities.rb:91:in `collect'
from /home/nidev/.gem/ruby/2.2.0/gems/twitter-5.13.0/lib/twitter/entities.rb:91:in `entities'
from /home/nidev/.gem/ruby/2.2.0/gems/twitter-5.13.0/lib/twitter/entities.rb:34:in `media'
from /home/nidev/.gem/ruby/2.2.0/gems/memoizable-0.4.2/lib/memoizable/method_builder.rb:117:in `call'
from /home/nidev/.gem/ruby/2.2.0/gems/memoizable-0.4.2/lib/memoizable/method_builder.rb:117:in `block (3 levels) in create_memoized_method'
/home/nidev/.gem/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:184:in `rescue in load_yml': can not load translations from /home/nidev/.gem/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/locale/en.yml: #<NoMethodError: undefined method `load_file' for Psych:Module> (I18n::InvalidLocaleData)
from /home/nidev/.gem/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:181:in `load_yml'
from /home/nidev/.gem/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:165:in `load_file'
from /home/nidev/.gem/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:15:in `block in load_translations'
from /home/nidev/.gem/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:15:in `each'
from /home/nidev/.gem/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:15:in `load_translations'
from /home/nidev/.gem/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n/backend/simple.rb:57:in `init_translations'
from /home/nidev/.gem/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n/backend/simple.rb:40:in `available_locales'
from /home/nidev/.gem/rub
@nidev
nidev / next_permutation.rb
Created February 16, 2015 14:42
Ruby implementation of std::next_permutation
# encoding: utf-8
# reference: http://en.wikipedia.org/wiki/Permutation#Generation_in_lexicographic_order
def next_permutation a
return a if a.length < 2
found_k = -1
for k in 0...(a.length-1)
found_k = k if a[k] < a[k+1]
@nidev
nidev / ruby-build.20150315230638.4558.log
Created March 15, 2015 14:40
First build (rbx-2.5.2) result: failed, second build (rbx-2.5.2) with same command line: succeeded
/tmp/ruby-build.20150315230638.4558 ~
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 11709271
Connection: keep-alive
Date: Sun, 15 Mar 2015 14:06:36 GMT
Last-Modified: Fri, 30 Jan 2015 19:20:07 GMT
ETag: "e5973d6e0a16f0390dc2a7478db83ff5"
Accept-Ranges: bytes
Server: AmazonS3
@nidev
nidev / config.rb
Created March 15, 2015 14:50
config.rb and configure.log of rbx-2.5.2 + rbenv + ruby-build (on failure)
module Rubinius
config = {}
config[:config_file] = "/tmp/ruby-build.20150315230638.4558/rubinius-2.5.2/config.rb"
config[:command_line] = ["--prefix=/home/nidev/.rbenv/versions/rbx-2.5.2"]
config[:build_make] = "make"
config[:build_rake] = "rake"
config[:build_perl] = "perl"
config[:llvm_enabled] = true
config[:llvm_path] = nil
config[:llvm_system_name] = nil
@nidev
nidev / cpuinfo
Created March 15, 2015 14:54
cpuinfo during building rbx-2.5.2 + rbenv + ruby-build (on failure)
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
stepping : 1
microcode : 0x10
cpu MHz : 1700.250
cache size : 3072 KB
physical id : 0
@nidev
nidev / bundle.log
Created March 17, 2015 15:35
bundle log for Rubinius issue #3332
nidev@yuuki-yuuna ~/test/bundling % bundle
Fetching git://github.com/activeadmin/activeadmin.git
Fetching git://github.com/stefanoverna/activeadmin-dragonfly.git
Fetching git://github.com/stefanoverna/activeadmin-wysihtml5.git
Fetching git://github.com/wyde19/moysklad.git
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
@nidev
nidev / gdb.initial.log
Last active August 29, 2015 14:17
Rbx-2.5.2 hangs up with 100% CPU usage on only one core.
nidev@yuuki-yuuna ~ % udo gdb attach -p 29571
zsh: correct 'udo' to 'sudo' [nyae]? y
GNU gdb (GDB) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
@nidev
nidev / err.log
Created March 31, 2015 07:39
MCJIT branch build error (with --trace)
** Invoke build (first_time)
** Invoke build:build (first_time)
** Invoke vm/vm (first_time)
** Invoke vm/gen/config_variables.h (first_time)
** Invoke library/rubinius/configuration.rb (first_time, not_needed)
** Invoke config.rb (first_time, not_needed)
** Execute vm/gen/config_variables.h
/home/nidev/.rbenv/versions/2.2.1/bin/ruby vm/codegen/config_vars.rb vm/gen/config_variables.h
GEN vm/gen/config_variables.h
** Invoke vm/gen/signature.h (first_time)
@nidev
nidev / 3.5 llvm-config.h
Created March 31, 2015 08:53
LLVM 3.5 & LLVM 3.6
/* include/llvm/Config/llvm-config.h. Generated from llvm-config.h.in by configure. */
/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/
/* */
/* The LLVM Compiler Infrastructure */
/* */
/* This file is distributed under the University of Illinois Open Source */
/* License. See LICENSE.TXT for details. */
/* */
/*===----------------------------------------------------------------------===*/