apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
ruthearle is now known as fruitedoots
workmad3 has joined #ruby
Deckon has joined #ruby
jottr_ has quit [Quit: WeeChat 1.1.1]
fruitedoots is now known as ruthearle
tunaCanBruh has joined #ruby
ruthearle is now known as yohort4eva
jottr has joined #ruby
rbennacer has joined #ruby
yohort4eva is now known as Code_Deva
Code_Deva has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 245 seconds]
Coding_Deva has joined #ruby
razieliyo has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
Soda has joined #ruby
plashchynski has quit [Quit: plashchynski]
bMalum has quit [Quit: bMalum]
sent1nel has joined #ruby
nicolastarzia has joined #ruby
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Rodya_ has joined #ruby
Megtastique has quit []
Pumukel has quit [Ping timeout: 252 seconds]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
multi_io_ has joined #ruby
maletor has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
kobain has quit [Ping timeout: 252 seconds]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
davedev2_ has joined #ruby
multi_io has quit [Ping timeout: 264 seconds]
davedev24_ has quit [Ping timeout: 252 seconds]
DadoCe has quit [Remote host closed the connection]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
DadoCe has joined #ruby
Megtastique has joined #ruby
sent1nel_ has joined #ruby
livingstn has quit [Ping timeout: 250 seconds]
jlast has quit [Remote host closed the connection]
Guest64 has joined #ruby
riotjones has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
roolo has quit [Quit: Leaving...]
Coding_Deva has quit [Quit: Textual IRC Client: www.textualapp.com]
ismaelga has joined #ruby
sent1nel has quit [Ping timeout: 264 seconds]
bradleyprice has quit [Remote host closed the connection]
DadoCe has quit [Ping timeout: 265 seconds]
goshdarnyou has joined #ruby
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
lemur has quit [Remote host closed the connection]
somkera has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
ismaelga has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Cadillactica has joined #ruby
fabrice31 has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Deckon has quit [Quit: Leaving]
<Cadillactica> trying to set up backbone to work with Rails - encountering an issue that I haven’t been able to get past. when I add a first handlebars template to the app/assets/templates/example.jst.hbs, I see that the rails server is trying to GET http://localhost:3000/javascripts/master.hbs.js which fails (incorrect location, incorrect file type)
<Cadillactica> Anybody have an idea?
<ericwood> Cadillactica: check out #rubyonrails or #documentcloud
devoldmx has joined #ruby
<Cadillactica> ericwood: ok thanks
<ericwood> we try to stick to just non-rails stuff here :)
kobain has joined #ruby
fruitedoots has joined #ruby
fruitedoots has quit [Client Quit]
<somkera> how do you stop a nigger from drowning?
fabrice31 has quit [Ping timeout: 264 seconds]
<havenwood> apeiros__: ^
<somkera> why would you stop a nigger from drowning?
<somkera> haha
somkera has left #ruby [#ruby]
<apeiros__> so sad
somkera has joined #ruby
somkera has left #ruby [#ruby]
jlast has quit [Remote host closed the connection]
livingstn has joined #ruby
Cadillactica has quit [Quit: Cadillactica]
Cadillactica has joined #ruby
bklane has quit [Remote host closed the connection]
apeiros__ is now known as apeiros_
bklane has joined #ruby
cocotton has joined #ruby
<apeiros_> havenwood: thanks for ping
<havenwood> apeiros_: thanks!
cocotton has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 265 seconds]
<phat4life> how do i make a pull request for the ruby core library
mistermocha has quit [Remote host closed the connection]
Cadillactica has quit [Client Quit]
bklane has quit [Remote host closed the connection]
FooMunki has quit [Read error: No route to host]
bklane has joined #ruby
FooMunki has joined #ruby
RegulationD has joined #ruby
<havenwood> phat4life: you can make pull requests to the github repo: https://github.com/ruby/ruby
<havenwood> phat4life: issue tracking here: https://bugs.ruby-lang.org/projects/ruby-trunk/issues
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
Troy^ has joined #ruby
jbeeze has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
willharrison has joined #ruby
jenrzzz has joined #ruby
nii236|irssi has joined #ruby
oo_ has joined #ruby
FiveAcres has quit [Remote host closed the connection]
_Andres has quit [Ping timeout: 265 seconds]
agrinb has quit [Quit: Leaving...]
RegulationD has quit [Ping timeout: 246 seconds]
_Andres has joined #ruby
veduardo has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
juanpablo__ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deol has joined #ruby
lys has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
ghostpl_ has joined #ruby
juanpablo__ has quit [Ping timeout: 250 seconds]
veduardo has joined #ruby
pwnz0r has joined #ruby
sent1nel_ has quit [Remote host closed the connection]
ghostpl_ has quit [Ping timeout: 240 seconds]
Qladstone has joined #ruby
meschi has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
kaiZen has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
shellfu has joined #ruby
fuhgeddaboudit has joined #ruby
oo_ has quit [Remote host closed the connection]
kt2 has quit [Ping timeout: 252 seconds]
shellfu has quit [Remote host closed the connection]
oo_ has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has quit []
echevemaster has joined #ruby
Troy^ has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Troy^ has quit [Client Quit]
tohuw has joined #ruby
rubytor has quit [Ping timeout: 264 seconds]
ismaelga has joined #ruby
lemur has joined #ruby
zachrab has joined #ruby
jlast has joined #ruby
michael_mbp has quit [Excess Flood]
havenn has joined #ruby
tkuchiki has joined #ruby
michael_mbp has joined #ruby
ismaelga has quit [Ping timeout: 250 seconds]
DEA7TH has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Azure has joined #ruby
stunder has joined #ruby
nii236|irssi has quit [Quit: leaving]
sent-hil has quit [Quit: Connection closed for inactivity]
jottr has quit [Read error: Connection reset by peer]
zachrab has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
Troy^ has joined #ruby
Azure has quit [Client Quit]
lys has quit [Quit: lys]
havenwood has quit [Ping timeout: 256 seconds]
mistermocha has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 265 seconds]
Troy^ has quit [Client Quit]
davedev2_ has quit [Ping timeout: 252 seconds]
lidaaa has joined #ruby
shellfu has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Troy^ has joined #ruby
lidaaa has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
deol has quit [Quit: Textual IRC Client: www.textualapp.com]
Channel6 has joined #ruby
tunaCanBruh has joined #ruby
davedev24_ has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Qladstone has quit [Remote host closed the connection]
dorei has quit []
Spooner_ has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 265 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
moritzs has quit [Ping timeout: 252 seconds]
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Scient has quit [Quit: ZNC - http://znc.in]
robustus has joined #ruby
ghr has joined #ruby
Takle_ has joined #ruby
oo_ has quit [Remote host closed the connection]
genpaku has quit [Ping timeout: 264 seconds]
pwnz0r has quit [Ping timeout: 265 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
bklane has quit [Remote host closed the connection]
nii236|irssi has joined #ruby
<gr33n7007h> I'm trying to save an image with: open(url) {|f| File.open("sony.jpg","w") {|fd| IO.copy_stream(fd, f) } } # IOError: not opened for reading ?
nii236|irssi is now known as nii236
Takle has quit [Ping timeout: 255 seconds]
ismaelga has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
Takle_ has quit [Ping timeout: 250 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
lightstalker has quit [Quit: WeeChat 0.4.2]
genpaku has joined #ruby
Scient has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
<gr33n7007h> nvm, IO.copy_stream args were in the wrong position :(
wldcordeiro has joined #ruby
Nuck has quit [Quit: Computer has gone to sleep.]
kaiZen has quit [Quit: Computer has gone to sleep.]
nii236 has quit [Quit: leaving]
tohuw has quit [Quit: tohuw]
duncannz has quit [Ping timeout: 245 seconds]
jbw_ has joined #ruby
elbow has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jonatin has joined #ruby
Rollabunna has joined #ruby
jbw__ has quit [Ping timeout: 240 seconds]
<phat4life> hmmm, is there no thread.rb on ruby trunk? I am confused as the change logs show /lib/thread.rb but i am not seeing that file
b4rbz has joined #ruby
jonr22 has quit [Remote host closed the connection]
<Radar> Ruby is a compiled language. It's likely the file you're looking for is https://github.com/ruby/ruby/blob/trunk/thread.c
sevvie has joined #ruby
Rodya_ has quit [Remote host closed the connection]
sent1nel has joined #ruby
Rodya_ has joined #ruby
michael_mbp has quit [Excess Flood]
<phat4life> Radar: that is what was afraid of :(
veduardo has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
Rodya_ has quit [Client Quit]
sent1nel has quit [Ping timeout: 255 seconds]
n008f4g_ has quit [Ping timeout: 246 seconds]
<Senjai> phat4life: Fortunately, ruby isn't written in ruby xD
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SickMind` has joined #ruby
<phat4life> arg o well. I don;'t have time to look at c code right now
rhg135 has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
fabrice31 has joined #ruby
rhg135 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
nii236|irssi has joined #ruby
zachrab has joined #ruby
bklane has joined #ruby
apeiros_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 244 seconds]
apeiros_ has joined #ruby
bklane has quit [Read error: Connection reset by peer]
goshdarnyou has quit [Quit: Connection closed for inactivity]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bklane has joined #ruby
SickMind` has left #ruby ["Leaving"]
jenrzzz has quit [Ping timeout: 255 seconds]
krz has joined #ruby
tmtwd has quit [Remote host closed the connection]
iamjarvo has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
djbkd_ has joined #ruby
AndyBotwin has joined #ruby
AndyBotwin has quit [Max SendQ exceeded]
AndyBotwin has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
AndyBotwin has quit [Client Quit]
rajeshchawla has joined #ruby
sevvie has joined #ruby
djbkd_ has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
FooMunki has quit [Quit: FooMunki]
Azure has joined #ruby
reinaldob has joined #ruby
devoldmx has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
oo_ has quit [Remote host closed the connection]
j_mcnally has joined #ruby
reinaldob has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
tier has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
wookiehangover has quit [Ping timeout: 265 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
x1337807x has joined #ruby
OrbitalKitten has joined #ruby
bootstrappm has joined #ruby
nicolastarzia has quit []
RegulationD has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
oo_ has joined #ruby
Crazy_Atheist has joined #ruby
ghr has joined #ruby
juanpablo__ has joined #ruby
devoldmx has joined #ruby
wookiehangover has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
ghostpl_ has joined #ruby
tohuw has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
juanpablo__ has quit [Ping timeout: 244 seconds]
sevvie has quit [Ping timeout: 256 seconds]
DadoCe has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
tokik has joined #ruby
<shevy> hehe
<shevy> how about bison lex parser .yy files!
ghostpl_ has quit [Ping timeout: 246 seconds]
Guest89271 is now known as ixx
phat4life has quit [Ping timeout: 240 seconds]
bklane has quit [Remote host closed the connection]
luriv_ has joined #ruby
sevvie has joined #ruby
luriv has quit [Ping timeout: 250 seconds]
sent1nel has joined #ruby
michael_mbp has quit [Excess Flood]
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
Troy^ has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
michael_mbp has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sent1nel_ has joined #ruby
sent1nel has quit [Ping timeout: 252 seconds]
echevemaster has quit [Remote host closed the connection]
tymat has joined #ruby
krz has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
ajaiswal has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
Crazy_Atheist has joined #ruby
sent1nel_ has quit [Read error: Connection reset by peer]
ben_vulpes has joined #ruby
Troy^ has joined #ruby
tunaCanBruh has joined #ruby
<ben_vulpes> allo rubists, how does sidekiq know to run a given thing when started?
oo_ has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
rupertbg has quit [Quit: Leaving.]
sent1nel has joined #ruby
DadoCe has quit [Remote host closed the connection]
DadoCe has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
DadoCe has quit [Read error: Connection reset by peer]
pwnz0r has joined #ruby
michael_mbp has quit [Excess Flood]
tunaCanBruh has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
kapil___ has joined #ruby
longfeet has quit [Ping timeout: 252 seconds]
pdoherty has joined #ruby
bluOxigen has joined #ruby
<Radar> ben_vulpes: That's quite a wide open question.
pdoherty has quit [Client Quit]
rubytor has joined #ruby
<Radar> ben_vulpes: From what I understand, it polls Redis looking for new jobs and runs them when it finds one
<Radar> As for implementation details, well that's in the Sidekiq source.
lampd1 has quit []
nahtnam has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
maletor has joined #ruby
tohuw has quit [Quit: tohuw]
tkuchiki_ has joined #ruby
rajeshchawla has joined #ruby
oo_ has quit [Remote host closed the connection]
rajeshchawla has quit [Remote host closed the connection]
rajeshchawla has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
Qladstone has joined #ruby
plutonic has quit [Quit: plutonic]
Qladstone has quit [Remote host closed the connection]
oo_ has joined #ruby
maletor has quit [Ping timeout: 252 seconds]
sent1nel_ has joined #ruby
Qladstone has joined #ruby
jenrzzz has joined #ruby
Qladstone has quit [Remote host closed the connection]
sent1nel has quit [Ping timeout: 240 seconds]
bklane has joined #ruby
tus has quit []
Qladstone has joined #ruby
tohuw has joined #ruby
braincrash has quit [Quit: bye bye]
havenn has quit []
fella5s has joined #ruby
jonr22 has joined #ruby
turtil-kun has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
Number2 has joined #ruby
riotjones has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
nii236|irssi is now known as nii23
nii23 is now known as nii236
riotjones has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
bklane has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sent1nel_ has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
zachrab has joined #ruby
kp666 has joined #ruby
sevenseacat has joined #ruby
lidaaa has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
Guest123 has joined #ruby
Qladstone has quit [Read error: Connection reset by peer]
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
Joufflu has quit [Ping timeout: 265 seconds]
rbennacer has joined #ruby
ravenzz has joined #ruby
<ravenzz> good evening
gr33n7007h has quit [Quit: WeeChat 0.3.8]
gr33n7007h has joined #ruby
SolarSailor has joined #ruby
rbennacer has quit [Ping timeout: 252 seconds]
arescorpio has quit [Excess Flood]
tkuchiki has joined #ruby
sent1nel has joined #ruby
tkuchiki_ has quit [Ping timeout: 244 seconds]
juanpablo__ has joined #ruby
ndrei has quit [Remote host closed the connection]
ndrei has joined #ruby
RegulationD has joined #ruby
ndrei has quit [Client Quit]
ghostpl_ has joined #ruby
juanpablo__ has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
jlast has joined #ruby
razieliyo has quit [Ping timeout: 245 seconds]
livingstn has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
Joufflu has joined #ruby
ghostpl_ has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
mjuszczak has quit []
ghr has joined #ruby
sent1nel_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
sent1nel has quit [Ping timeout: 252 seconds]
nolic has quit [Ping timeout: 252 seconds]
kappy has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
kappy has joined #ruby
nolic has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
TheRinger has joined #ruby
speakingcode has joined #ruby
Soda has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
coderhs has joined #ruby
Channel6 has quit [Quit: Leaving]
kappy has quit [Ping timeout: 250 seconds]
kappy has joined #ruby
pwnz0r has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
pwnz0r has joined #ruby
krz has joined #ruby
last_staff has joined #ruby
mikepack has quit [Remote host closed the connection]
pwnz0r has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
toretore has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
duncannz has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
sent1nel_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
ravenzz has left #ruby [#ruby]
tunaCanBruh has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
jlast has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Bye!]
mikepack has joined #ruby
uri_ has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
mikepack has quit [Remote host closed the connection]
sumark has quit [Remote host closed the connection]
psy_ has quit [Quit: Leaving]
sumark has joined #ruby
uri_ has quit [Client Quit]
plutonic has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
last_staff has quit [Quit: last_staff]
duncannz has quit [Ping timeout: 250 seconds]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
Joufflu_ has joined #ruby
djbkd_ has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
elaptics_away is now known as elaptics
swgillespie has joined #ruby
Joufflu has quit [Ping timeout: 250 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
jlast has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rhg135 is now known as rhg135|zzz
duncannz has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
oo_ has joined #ruby
ghr has joined #ruby
oo_ has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
Cadillactica has joined #ruby
fabrice31 has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
davedev2_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24_ has quit [Ping timeout: 252 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 252 seconds]
dh64 has quit [Quit: Konversation terminated!]
zachrab has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
zachrab has quit [Ping timeout: 240 seconds]
rajeshchawla has quit []
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
rbennacer has quit [Ping timeout: 256 seconds]
Number2 has quit [Quit: leaving]
wldcordeiro has joined #ruby
arup_r has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kies^ has quit [Ping timeout: 240 seconds]
<arup_r> sevenseacat: o/
<sevenseacat> arup_r: good afternoon
<arup_r> humm.. We won.. :)
Guest123 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<arup_r> sevenseacat: Lots of Indians I see in your country..
The_Phoenix has joined #ruby
<arup_r> Yesterday's match telling something like that...
sent1nel has joined #ruby
<certainty> moin
<arup_r> moin certainty:
<certainty> o/
<arup_r> \o
cpt_yossarian has quit [Read error: Connection reset by peer]
cpt_yossarian has joined #ruby
craigp has joined #ruby
sent1nel has quit [Ping timeout: 264 seconds]
<shevy> hmm
<shevy> module Foo; class Bar <--- how to easily obtain the parent namespace from within class Bar?
elaptics is now known as elaptics_away
<arup_r> > module Foo; class Bar; def namespaces ; p constants; end; end; Foo::Bar.namespaces
<arup_r> >> module Foo; class Bar; def namespaces ; p constants; end; end; Foo::Bar.namespaces
<eval-in> arup_r => /tmp/execpad-cd5c88a851c7/source-cd5c88a851c7:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/292117)
<arup_r> >> module Foo; class Bar; def namespaces ; p constants; end; end; end; Foo::Bar.namespaces
<eval-in> arup_r => undefined method `namespaces' for Foo::Bar:Class (NoMethodError) ... (https://eval.in/292118)
<arup_r> >> module Foo; class Bar; def self.namespaces ; p constants; end; end; end; Foo::Bar.namespaces
<eval-in> arup_r => [] ... (https://eval.in/292119)
<arup_r> shevy: something like that
<shevy> hehe
<shevy> I am using lots of things like ::Foo :(
<shevy> or I just hardcode Foo
kies^ has joined #ruby
juanpablo__ has joined #ruby
tagrudev has joined #ruby
sigurding has joined #ruby
<arup_r> hardcode means?
starless has quit [Quit: Leaving]
<shevy> well
<shevy> module Foo
<shevy> Foo
<shevy> now I just changed the name of a module
<shevy> so I have to manually find all those instances
<shevy> which makes me not happy
<shevy> found one instance
<shevy> Foo.instance_eval {
<shevy> self.instance_eval {
<shevy> seems to be equivalent?
RegulationD has joined #ruby
hvxgr has quit [Ping timeout: 250 seconds]
tvon has joined #ruby
ghostpl_ has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> humm.. But it depends under which `self` scope you are doing... for e.x. def bar; Foo.instance_eval and def foo; self.instance_eval not same.. You are giving door keys to someone else :)
<arup_r> shevy: ^
juanpablo__ has quit [Ping timeout: 264 seconds]
CorySimmons has joined #ruby
fantazo has joined #ruby
last_staff has joined #ruby
<shevy> in module Foo; Foo.instance_eval {}; end
<arup_r> Ohh... yes.. that is equal
<arup_r> No.. after mixin
<arup_r> story will be different.. :(
<arup_r> shevy: I'm now confused.. jhass: will help you.
RegulationD has quit [Ping timeout: 255 seconds]
<shevy> lol
michael_mbp has quit [Excess Flood]
ghostpl_ has quit [Ping timeout: 256 seconds]
jud^ has joined #ruby
michael_mbp has joined #ruby
<zly> morning :)
djbkd_ has quit [Remote host closed the connection]
jud has quit [Ping timeout: 246 seconds]
Crisix has joined #ruby
claptor has quit [Quit: this channel is bakas]
tesuji has joined #ruby
postmodern has joined #ruby
Morkel has joined #ruby
jenrzzz has joined #ruby
zorak8 has quit [Read error: No route to host]
x1337807x has joined #ruby
nicolastarzia has joined #ruby
CorySimmons has quit [Quit: Bye!]
riotjones has joined #ruby
nicolast_ has quit [Ping timeout: 264 seconds]
zorak8 has joined #ruby
rippa has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
bal has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
arup_r_ has joined #ruby
Crisix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
aganov has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
bricker has joined #ruby
hvxgr has joined #ruby
hmsimha has joined #ruby
bal has quit [Quit: bal]
tunaCanBruh has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
rubytor has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
bal has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
wicope has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
stunder has quit [Remote host closed the connection]
Cadillactica has quit [Quit: Cadillactica]
tunaCanBruh has quit [Ping timeout: 255 seconds]
icharlie has quit []
MrSamuel has joined #ruby
ponga has joined #ruby
riotjones has joined #ruby
rdark has joined #ruby
oo_ has quit [Remote host closed the connection]
bricker has joined #ruby
oo_ has joined #ruby
anaeem1 has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
sent1nel has joined #ruby
sent1nel has quit [Ping timeout: 246 seconds]
jud has quit [Quit: Leaving]
Jetchisel has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
dumdedum has joined #ruby
toretore has joined #ruby
andikr has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
jud has quit [Client Quit]
jud has joined #ruby
fabrice31 has joined #ruby
ismaelga has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teoric has joined #ruby
Azure has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
allenn has joined #ruby
Azure has joined #ruby
teoric has quit [Client Quit]
amundj has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teoric has joined #ruby
teoric has quit [Client Quit]
djbkd_ has joined #ruby
Crazy_Atheist has quit [Ping timeout: 250 seconds]
MyMind has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
Sembei has quit [Ping timeout: 245 seconds]
Ivision has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd_ has quit [Remote host closed the connection]
tesuji has quit [Read error: Connection reset by peer]
d3_newbie has joined #ruby
Macaveli has joined #ruby
<d3_newbie> Hello, I am writing a small module on a Ruby on rails app. The module consist of visualisation I have to present using a histogram. I am using json to get the data and d3 for visualisation. I am having difficulties in accessing the json objects. Can anyone please help?
Crazy_Atheist has joined #ruby
ben_vulpes has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
_Andres has joined #ruby
zachrab has joined #ruby
despai has joined #ruby
ghr has joined #ruby
tohuw has quit [Quit: tohuw]
dys has quit [Ping timeout: 252 seconds]
FooMunki has joined #ruby
hs366 has joined #ruby
zachrab has quit [Ping timeout: 265 seconds]
anaeem1 has quit [Remote host closed the connection]
mkaesz has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
anaeem1 has joined #ruby
oo_ has quit [Remote host closed the connection]
mroach has quit [Ping timeout: 272 seconds]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
oo_ has joined #ruby
msgodf has joined #ruby
ghostpl_ has joined #ruby
bootstrappm has left #ruby [#ruby]
despai has quit [Quit: This computer has gone to sleep]
rdark has quit [Quit: leaving]
oo_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
Takle has joined #ruby
sudog has quit [Ping timeout: 250 seconds]
kalusn has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
terlar has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
lidaaa has quit [Ping timeout: 250 seconds]
arup_r_ has quit []
lessless has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
Dr3amc0d3r|away has joined #ruby
arup_r has joined #ruby
Ivision has quit [Remote host closed the connection]
workmad3 has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
d3_newbie has left #ruby [#ruby]
aswen has quit [Ping timeout: 245 seconds]
<shmoon_> is there a course/tutorial on ruby so that i can quickly pick it up like in an hour or so?
juanpablo__ has joined #ruby
dcarmich has joined #ruby
sent1nel has joined #ruby
nii236 has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
enterprisedc has quit [Ping timeout: 244 seconds]
leat has joined #ruby
RegulationD has joined #ruby
livathinos has joined #ruby
<shmoon_> i am on the first one ya
MrSamuel has joined #ruby
wldcordeiro has quit [Ping timeout: 250 seconds]
<shmoon_> problem with tryruby style is that reading the instructions and doing step by step can take a lot of time
<shmoon_> :D
yxejamir has joined #ruby
duncannz has quit [Remote host closed the connection]
<shmoon_> i have done a bit of ruby before like 3yrs ago, just need some sort of refresher :)
sent1nel has quit [Ping timeout: 252 seconds]
juanpablo__ has quit [Ping timeout: 265 seconds]
tesuji has joined #ruby
Guest123 has joined #ruby
bricker has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
marr has joined #ruby
Rollabunna has joined #ruby
ghr has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Ivision has joined #ruby
duncannz has joined #ruby
turtil-kun has quit [Quit: WeeChat 1.1.1]
avril14th has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
djbkd_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby
kerrick__ has quit [Ping timeout: 256 seconds]
ismaelga has joined #ruby
<avril14th> moin
bigkevmcd has joined #ruby
nii236 has joined #ruby
surs has joined #ruby
aswen has joined #ruby
michael_mbp has quit [Excess Flood]
<shmoon_> moin
phansch has joined #ruby
michael_mbp has joined #ruby
djbkd_ has quit [Remote host closed the connection]
exadeci has joined #ruby
ismaelga has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
Morkel has joined #ruby
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
krz has quit [Ping timeout: 246 seconds]
mkaesz has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
lemur has joined #ruby
krz has joined #ruby
olivier_bK has joined #ruby
mkaesz has quit [Remote host closed the connection]
keen__________71 has joined #ruby
mkaesz has joined #ruby
bweston92 has joined #ruby
wallerdev has quit [Quit: wallerdev]
n008f4g_ has joined #ruby
keen__________70 has quit [Ping timeout: 256 seconds]
bweston92 has quit [Client Quit]
Joufflu_ has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
jenrzzz has quit [Ping timeout: 246 seconds]
fantazo has quit [Quit: Verlassend]
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
mskaesz has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
mkaesz has quit [Read error: Connection reset by peer]
SolarSailor has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
plashchynski has joined #ruby
livathin_ has joined #ruby
SolarSailor has quit [Ping timeout: 240 seconds]
tunaCanBruh has joined #ruby
joonty has joined #ruby
plutonic has quit [Quit: plutonic]
arup_r has joined #ruby
livathinos has quit [Ping timeout: 240 seconds]
plashchynski has quit [Quit: plashchynski]
mikecmpbll has joined #ruby
Musashi007 has quit [Quit: Musashi007]
thsig has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
thsig has quit [Ping timeout: 244 seconds]
maasha has joined #ruby
<maasha> hi
<maasha> Ruby's builtin $VERBOSE is rather dodgy, since it will be tricked by unit tests run with warnings, etc.
<maasha> Is there some favored scheme of outputting debug and verbose messages?
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
strixd has joined #ruby
vtunka has joined #ruby
luriv_ has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 255 seconds]
Pharaoh2 has joined #ruby
elaptics_away is now known as elaptics
Pharaoh2 has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
Lorn3r has joined #ruby
Pharaoh2 has joined #ruby
oo_ has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
Pharaoh2 has joined #ruby
<maasha> I am interested in rolling my own version of $VERBOSE maybe something like this (sane?) -> https://gist.github.com/maasha/cb296925f103cbb94492
nfk has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
ghostpl_ has joined #ruby
Zai00 has joined #ruby
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
mhenrixon has quit [Quit: ZNC - http://znc.in]
sent1nel has joined #ruby
Pharaoh2 has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
roolo has joined #ruby
krz has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
charliesome has joined #ruby
MrSamuel has quit [Ping timeout: 245 seconds]
jimms has joined #ruby
livathin_ has quit [Remote host closed the connection]
kotay has joined #ruby
MrSamuel has joined #ruby
jonr22 has joined #ruby
Axy has quit [Read error: Connection reset by peer]
sent1nel has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
aapole has joined #ruby
nfk has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
leafybasil has quit [Remote host closed the connection]
larsam has quit [Quit: larsam]
ta has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
selu has joined #ruby
Cust0sL1men has joined #ruby
bricker has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
nfk has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
fella5s has quit [Ping timeout: 244 seconds]
charliesome has quit [Client Quit]
tvw has joined #ruby
fella5s has joined #ruby
polysics has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
withnale_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jespada has joined #ruby
apeiros_ has joined #ruby
bweston92 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
charliesome has joined #ruby
<shmoon_> where's the last line coming from http://pastie.org/9971602 ?
charliesome has quit [Client Quit]
lkba has quit [Ping timeout: 265 seconds]
zachrab has joined #ruby
oo_ has quit [Remote host closed the connection]
Nahra has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
livathinos has joined #ruby
<canton7> shmoon_, you've got a gem in your gemfile, where you're said it should be fetched from a git repo
<canton7> so that's what bundler's going
<canton7> *doing
rupertbg has joined #ruby
m8 has joined #ruby
polysics has left #ruby [#ruby]
<Fluent> Yup, pretty much running a git clone 'repo'
<surs> I have two files a and b. I want to find out which lines in both files share a "relevant" amount of text. The lines in b may have extra strings at the beginning, in between or at the end of the lines. the lines consist of white space separated words.
<surs> how do I best go about this?
<Fluent> I guess that's not even always true either
oo_ has joined #ruby
zorak8 has quit [Ping timeout: 252 seconds]
zeel has joined #ruby
<Fluent> I would suggest learning about regular expressions
<Fluent> Then iterate both files in a loop and compare with a regex match that you are looking for
<surs> I know a little about regexp. I was thinking of trying to match sequences of words and returning the lines that match the longest sequences
zachrab has quit [Ping timeout: 264 seconds]
<canton7> nah, I wouldn't go regex. Learn about the longest common subsequence problem
<canton7> actually it's not even that
Lorn3r has quit [Read error: Connection reset by peer]
Lorn3r has joined #ruby
krz has joined #ruby
<canton7> Smither Waterman Algorithm
n008f4g_ has joined #ruby
djbkd_ has joined #ruby
<canton7> that's the one
<canton7> do what with word-granularity
<canton7> *that
<surs> I'll gladly look into that. Thank you
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<surs> and it can be done with ruby?
<canton7> Levenshtein distance is the other one
<Fluent> Of course it can be done with Ruby
<canton7> that's used for spellcheck, but you're effectively doing that at the word level
<canton7> not sure whether that or Smith-Waterman will work better tbh
zeel has quit [Client Quit]
Lobo has joined #ruby
timonv has joined #ruby
<canton7> they're just algorithms - you can use any turing-complete language to implement them
<canton7> hell, if you're motivated enough, you could probably write them in brainfuck
Lobo is now known as Guest71952
<Fluent> s/motivated/insult here/
<canton7> true :P
zeel has joined #ruby
Guest71952 has quit [Client Quit]
polysics has joined #ruby
oki has joined #ruby
<maasha> is there a way to silence specific warnings?
<oki> hi
<Fluent> You could use a begin block
<arup_r> oki: hello
jottr has joined #ruby
<strixd> is there a way to remove only the latest version of my rubygems gem from the site
djbkd_ has quit [Ping timeout: 256 seconds]
<Fluent> I don't think so, strixd
<strixd> :(
<apeiros_> strixd: gem yank
<strixd> that will remove all?
<apeiros_> check its docs?
<Fluent> They keep gems hosted for backwards compatibility. If other people use your gem.
<canton7> what happened to reading the docs? ><
<strixd> because it didn't help me
<canton7> "-v, -​-version VERSION - Specify version of gem to remove"
<strixd> I want only 1 version not the whole gem
<strixd> o
<Fluent> I think you can request for them to be removed, if they have sensitive information? Least this is what I thought. Maybe yank does work, dunno
<canton7> seems to imply pretty clearly that you can yank a specific version
livathinos has quit [Remote host closed the connection]
<strixd> o/ thanks all
<apeiros_> canton7: lost art.
<canton7> note that that hides the version, it doesn't remove it entirely
<apeiros_> reading in general is a lost art.
<apeiros_> reading backtraces
<canton7> so if you specifically ask for that specific version, you'll get it
<apeiros_> reading readmes
<surs> :) thanks for the tips canton7
<apeiros_> reading docs
livathinos has joined #ruby
<maasha> Ain't that a song be The Cure: The docs don't work ... ?
<apeiros_> who let the docs out, who, who, who…
r4j453v4n has joined #ruby
<maasha> Hehehehe
<canton7> ok, "what happened to the lost art of reading more than 1 line of the docs?" ><
<arup_r> what is this -> >< ?
plashchynski has joined #ruby
<Fluent> So can you completely remove a gem? Or just the last version?
<canton7> you can ask rubygems to hide a gem, or any specific version of a gem
<canton7> ... if someone has specified exactly that version, gem will still retrieve it fine
<canton7> ...but it won't be chosen under normal circumstances, and won't be listed by any tools
plashchynski has quit [Client Quit]
<Fluent> Okay, thanks.
keen__________72 has joined #ruby
<canton7> so it's the "ohshit, it's buggy" action, but it won't break people who depend on it specifically
sinkensabe has joined #ruby
keen__________71 has quit [Ping timeout: 252 seconds]
jimms has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
bal has quit [Quit: bal]
bal has joined #ruby
michael_mbp has quit [Excess Flood]
oo_ has joined #ruby
michael_mbp has joined #ruby
naftilos76 has joined #ruby
aapole has quit [Ping timeout: 250 seconds]
nii236 has quit [Ping timeout: 244 seconds]
juanpablo__ has joined #ruby
moritzs has joined #ruby
r4j453v4n has quit [Quit: r4j453v4n]
Ivision has quit [Remote host closed the connection]
RegulationD has joined #ruby
juanpablo__ has quit [Ping timeout: 244 seconds]
n008f4g_ has quit [Ping timeout: 246 seconds]
Ivision has joined #ruby
sigurding has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
mikeric has joined #ruby
mhenrixon has joined #ruby
mikeric has quit [Client Quit]
Guest123 has joined #ruby
r4j453v4n has joined #ruby
huddy has joined #ruby
ptrrr has joined #ruby
leafybasil has joined #ruby
charliesome has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
vtunka has quit [Quit: Leaving]
r4j453v4n has quit [Client Quit]
Ivision has quit [Remote host closed the connection]
sent1nel has joined #ruby
ismaelga has joined #ruby
Senjai has quit [Ping timeout: 264 seconds]
moritzs has quit [Quit: Verlassend]
sent1nel has quit [Ping timeout: 246 seconds]
ismaelga has quit [Ping timeout: 256 seconds]
Inoperable has joined #ruby
michael_mbp has quit [Excess Flood]
<Lorn3r> heya
<Lorn3r> newbie here
michael_mbp has joined #ruby
<Lorn3r> i finally got ruby, gems and rails setup on my linux mint machine and want to follow through the tutorial at railstutorial.com as closely as possible
<Lorn3r> and now i found out i got ruby1.9.3 installed, the tutorial uses 2.2.1 though
r4j453v4n has joined #ruby
<Lorn3r> i installed ruby2.0 & ruby2.0-dev via apt-get, but its not the default one
<DefV> Lorn3r: you're better to use something like rpm or rbenv to install recent versions of Ruby
_Andres has joined #ruby
<Lorn3r> how do i get my linux to use the new ruby instead of the old stable one?
zeel has left #ruby [#ruby]
<Lorn3r> ok! these are some kind of managers for switching versions and setting up the machine to properly use it then?
<canton7> rvm or rbenv
<canton7> as DefV said
hgl- has joined #ruby
<Lorn3r> thank you both, reading up about rbenv :)
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
hgl has quit [Ping timeout: 255 seconds]
hgl- is now known as hgl
razieliyo has joined #ruby
imanzarrabian has joined #ruby
roshanavand has joined #ruby
<elaptics> or chruby
Macaveli has quit [Ping timeout: 252 seconds]
veduardo has joined #ruby
tunaCanBruh has joined #ruby
rbennacer has joined #ruby
hiyosi has joined #ruby
Tomasso has joined #ruby
amacou has joined #ruby
<Tomasso> what does the error "no _dump_data is defined for class Mutex" mean? it doesnt seem to come from my code
<Tomasso> im using ruby 1.9.3
tunaCanBruh has quit [Ping timeout: 255 seconds]
rbennacer has quit [Ping timeout: 265 seconds]
kirun has joined #ruby
reinaldob has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
davidhq has joined #ruby
rodfersou has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
polysics has quit [Remote host closed the connection]
doodlehaus has joined #ruby
rodfersou has quit [Client Quit]
rodfersou has joined #ruby
mroach has joined #ruby
fabrice31 has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 246 seconds]
plashchynski has joined #ruby
patrick99e99 has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
joonty has joined #ruby
OrbitalKitten has joined #ruby
postmodern has quit [Quit: Leaving]
r4j453v4n has quit [Quit: r4j453v4n]
psy_ has quit [Ping timeout: 255 seconds]
Inoperable has quit [Quit: Rectified]
Timgauthier has joined #ruby
hanmac has joined #ruby
ptrrr has quit [Quit: ptrrr]
<apeiros_> Tomasso: I think you'll have to give a bit more context
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
psy_ has joined #ruby
sigurding has quit [Quit: sigurding]
<shmoon_> aah, thanks canton7 :)
aapole has joined #ruby
ldnunes has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
TheRinger has quit [Quit: Konversation terminated!]
<Tomasso> apeiros_: yes.. I have a Proc block defined in a hash. That block is passed to the .get sinatra method as a parameter. The method the runs ok from browser, and the logs seem ok, but when I check the response I find that
sent1nel has joined #ruby
<Tomasso> it is like if it never convert the block returned value, into the stream of data to be sent to the browser, according what i could understand
ajaiswal has quit [Quit: Leaving]
jottr has quit [Ping timeout: 252 seconds]
ismaelga has joined #ruby
kartouch has quit [Quit: ZNC - http://znc.in]
serivich has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sent1nel has quit [Ping timeout: 264 seconds]
<apeiros> Tomasso: while a bit more information, that's still not much which actually helps me helping you.
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ismaelga has quit [Ping timeout: 252 seconds]
n1lo has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
serivichi has joined #ruby
zachrab has joined #ruby
ponga has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 252 seconds]
Timgauthier has joined #ruby
rupertbg has quit [Read error: Connection reset by peer]
roolo has joined #ruby
MasterPiece has joined #ruby
Morkel has quit [Quit: Morkel]
serivich has quit [Ping timeout: 252 seconds]
roolo has quit [Remote host closed the connection]
ponga has joined #ruby
bricker has joined #ruby
roolo has joined #ruby
oo_ has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
zachrab has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
vtunka has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
topolinux has joined #ruby
shum has joined #ruby
iamninja has joined #ruby
Pupeno has joined #ruby
sameerynho has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 252 seconds]
Macaveli has quit [Ping timeout: 255 seconds]
lxsameer has quit [Ping timeout: 256 seconds]
OrbitalKitten has joined #ruby
kartouch has joined #ruby
Pharaoh2_ has joined #ruby
vtunka has quit [Quit: Leaving]
Lorn3r has quit [Remote host closed the connection]
Pharaoh2 has quit [Ping timeout: 256 seconds]
Aryasam has joined #ruby
DEA7TH has joined #ruby
aapole has quit [Ping timeout: 252 seconds]
Cust0sL1men has quit [Ping timeout: 252 seconds]
Cust0sL1men has joined #ruby
vtunka has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
nfk has quit [Quit: yawn]
veduardo has quit [Ping timeout: 246 seconds]
maasha has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 240 seconds]
juanpablo__ has joined #ruby
nettoweb has joined #ruby
rkmylo has joined #ruby
<rkmylo> is it possible to initialize a global variable ($) with a (static?) class instance so as to be able to access it and modify its value from other files?
Grumelo has joined #ruby
imanzarrabian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
<apeiros> rkmylo: yes, it's possible. but globals are generally the wrong way.
<apeiros> use e.g. a constant instead
juanpablo__ has quit [Ping timeout: 264 seconds]
plashchynski has quit [Quit: plashchynski]
RegulationD has quit [Ping timeout: 255 seconds]
<rkmylo> @apeiros: i've tried setting a global var in env.rb like "$x = Class.new". if i call $x.foo with foo defined in Class, i'm getting "undefined method `foo' for nil:NilClass (NoMethodError)". in the use case i consider, the use of a global static class instance i think is the prefered way. any ideas why i'm getting this error?
OrbitalKitten has joined #ruby
charliesome has quit [Quit: zzz]
<Mon_Ouie> Because $x was nil at the time when you executed $x.foo
<apeiros> ^
tokik has quit [Ping timeout: 255 seconds]
<Mon_Ouie> (probably because your $x = Class.new had not yet been executed -- if it was at all)
<apeiros> also no, globals are (almost) *never* the preferred way.
<rkmylo> @Mon_Ouie: so it could be the order in which requires are read?
adrianpacala has joined #ruby
plashchynski has joined #ruby
<Mon_Ouie> It could, if you use $x, the code that gives it a value needs to have been executed first
adrianpacala has quit [Client Quit]
ArchRogem has joined #ruby
<Mon_Ouie> (I'm trying to avoid talking about the order in which things are "read" because it's really about which one gets executed first, not which one gets loaded first)
MrSamuel has quit [Quit: MrSamuel]
ceslovas has joined #ruby
quazimodo has joined #ruby
ceslovas has quit [Remote host closed the connection]
lanemeyer has quit [Ping timeout: 252 seconds]
rkmylo has quit []
topolinux has quit [Ping timeout: 250 seconds]
davidhq has joined #ruby
ta has quit [Ping timeout: 264 seconds]
topolinux has joined #ruby
sudog has joined #ruby
ta has joined #ruby
Tamae has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
andikr has quit [Remote host closed the connection]
sent1nel has joined #ruby
larsam has joined #ruby
oleo has joined #ruby
jottr has joined #ruby
polysics has joined #ruby
jimms has joined #ruby
oleo__ has quit [Ping timeout: 245 seconds]
sent1nel has quit [Ping timeout: 245 seconds]
kobain has joined #ruby
Senjai has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
doodlehaus has quit [Remote host closed the connection]
aganov has quit [Read error: Connection reset by peer]
tunaCanBruh has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
jottr has joined #ruby
aganov has joined #ruby
timonv has joined #ruby
ArchRogem has quit [Read error: Connection reset by peer]
MasterPiece has quit [Quit: Leaving]
shum has joined #ruby
surs has quit [Quit: leaving]
surs has joined #ruby
Advocation has quit [Ping timeout: 245 seconds]
tunaCanBruh has quit [Ping timeout: 256 seconds]
mhenrixon is now known as mhenrixon|afk
thsig has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Advocation has joined #ruby
Morkel has joined #ruby
lolmaus has joined #ruby
cpt_yossarian has quit [Ping timeout: 265 seconds]
mhenrixon|afk is now known as mhenrixon
shum has quit [Quit: WeeChat 1.1.1]
topolinux has quit [Ping timeout: 250 seconds]
shum has joined #ruby
shum has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
shum has joined #ruby
shum has quit [Client Quit]
shum has joined #ruby
maximski has joined #ruby
imanzarrabian has joined #ruby
yfeldblu_ has quit [Ping timeout: 250 seconds]
imanzarrabian has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
topolinux has joined #ruby
imanzarrabian has joined #ruby
thejoecarroll_ has quit [Quit: ZNC - http://znc.in]
<ponga> do you guys use yield a lot
chinmay_dd has joined #ruby
thejoecarroll has joined #ruby
<avril14th> ponga: what's the question?
thsig has quit [Remote host closed the connection]
<avril14th> do you use "if" a lot?
bdamos has joined #ruby
arup_r has quit [Remote host closed the connection]
<jhass> I think I use \n the most
OrbitalKitten has joined #ruby
<apeiros> I've tons of spaces in my code
<jhass> ooh, wasteful
<jhass> never hear of chaotic storage management?
<ddv> I use tons of tokens in my code
<apeiros> also many end's
ismaelga has joined #ruby
<ponga> http://pastie.org/9974705 what's the difference between first and second
<jhass> ponga: the first one is more to type
<ponga> jhass: what do you mean 'more to type'
<jhass> if you don't pass a block to each_char, it does pretty exactly that
<sevenseacat> more letters.
<apeiros> the first one works in pre 1.9 ruby
<apeiros> other than that - second is better in every regard. less code, faster.
<sevenseacat> dear people who still use pre-1.9 ruby - stop doing that.
<Tomasso> apeiros: http://pastebin.com/nqCzCT0D # it doesnt run because requires things to be mocked but may be there is a concept error ?
mroach has quit [Quit: mroach]
<jhass> dear people who still use pre-2.0 you mean
<sevenseacat> i still have 1.9.3 apps, shhh.
<ponga> im on 2.2
* apeiros still got an app running in production on 1.8.2 with rails 1.2.3
Aswebb_ has joined #ruby
ismaelga has quit [Ping timeout: 255 seconds]
decoponio has joined #ruby
m8 has quit [Quit: Sto andando via]
sigurding has quit [Quit: sigurding]
cyberfab007 has joined #ruby
jonr22 has joined #ruby
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
jottr has joined #ruby
aclearman037 has joined #ruby
<cyberfab007> ok boys quick question
<cyberfab007> I followed these instrutctions in install ruby
<apeiros> ok, only boys. good. no need for me to look at it then :-p
<DefV> apeiros: but only because 1.2.3 is such a kick-ass version nr
<cyberfab007> I am trying to run this command
<sevenseacat> yeah boys, answer the question.
<cyberfab007> /home/cyberfab007/.rvm/wrappers/ruby-2.1.2/rubyscript
<cyberfab007> aperios I am sorry its a figure of speech :)
sent1nel has joined #ruby
<cyberfab007> boys and girls , lol
psy_ has quit [Quit: Leaving]
<avril14th> and mixed
<avril14th> some people include both module
<sevenseacat> how condescending
<avril14th> (even though I dont
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
decoponyo has quit [Ping timeout: 252 seconds]
* apeiros still doesn't feel addressed :)
<cyberfab007> now someone in here helped me build ruby on my other server and this works fine, but now I follow those instructions and it is not work
<cyberfab007> ok aliens too
brb3 has joined #ruby
<cyberfab007> boys girls and aliens lol
arup_r has joined #ruby
<Tomasso> shemales
<sevenseacat> cyberfab007: you should probably just stop now.
<cyberfab007> lol
bhaak has quit [Ping timeout: 264 seconds]
* jhass still waits of a description of what actually fails
jonr22 has quit [Ping timeout: 250 seconds]
<cyberfab007> but know seriouse , if I followed those instuctions I post I should just have to change the directory path right ? script works fine from liniux command line , I am just excuting that wrapper from a php script
zorak8 has joined #ruby
<cyberfab007> looking at it
mhenrixon is now known as mhenrixon|afk
freerobby has quit [Quit: Leaving.]
sent1nel has quit [Ping timeout: 265 seconds]
Advocation has quit [Quit: Advocation]
gfawcettpq has joined #ruby
topolinux has quit [Ping timeout: 250 seconds]
<cyberfab007> yegh but on my other server I am not using RVM I do not think,
<cyberfab007> I run the script like this
<cyberfab007> actually know I am it is right there
<cyberfab007> in the path , so I must install RVM as well
<cyberfab007> jhass, can you give me a link with those proper instructions
lsmola has quit [Remote host closed the connection]
phutchins has joined #ruby
ZoanthusR has joined #ruby
aclearma_ has joined #ruby
<jhass> I assumed you used RVM sicne you mentioned it above
<jhass> you likely don't have to use RVM
<cyberfab007> yes I did,
<cyberfab007> sorry , was just confused I am new to ruby
<cyberfab007> am really liking it tho :)
* jhass still waits of a description of what actually fails
<sevenseacat> jhass: gl
aclearma_ has quit [Client Quit]
vdamewood has joined #ruby
spyderman4g63 has joined #ruby
<cyberfab007> the script runs from the command line but not when that bash command is run from PHP and its because I do not have RVM installs
<cyberfab007> rvm installd
n008f4g_ has joined #ruby
topolinux has joined #ruby
aclearma_ has joined #ruby
aclearman037 has quit [Ping timeout: 246 seconds]
<jhass> maybe, maybe not
<jhass> impossible to tell without saying what the problem is
<cyberfab007> no I have this working on another server fine
<jhass> doesn't matter
csk157 has joined #ruby
lanemeyer has joined #ruby
csk157 has quit [Max SendQ exceeded]
spyderma_ has joined #ruby
lsmola has joined #ruby
nettoweb has joined #ruby
<cyberfab007> the scripts works on this server too, it is just execting the script using bash command with a ruby wrapper from my php script thats not working well
<cyberfab007> well , I mean at all
spyderman4g63 has quit [Ping timeout: 264 seconds]
Morkel has quit [Quit: Morkel]
davedev2_ has quit [Remote host closed the connection]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimod1 has joined #ruby
zachrab has joined #ruby
dapadoupas has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
craigp_ has joined #ruby
csk157 has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
<jhass> you yet have to describe your error and what you're concretely doing though
csk157 has quit [Max SendQ exceeded]
freerobby has joined #ruby
Parker0 has joined #ruby
livingstn has joined #ruby
<cyberfab007> the error is the script does not run because I don't have RVM installed
craigp has quit [Ping timeout: 240 seconds]
<cyberfab007> I am installing
<sevenseacat> show us the error?
<sevenseacat> :P
zachrab has quit [Ping timeout: 246 seconds]
s7ry93r has quit [Quit: s7ry93r]
<cyberfab007> there error is , the command is not found cause I have do not have RVM installed
jottr has joined #ruby
ismaelga has joined #ruby
sigurding has joined #ruby
d10n-work has joined #ruby
juanpablo__ has joined #ruby
iamjarvo has joined #ruby
oo_ has joined #ruby
Jinkins has joined #ruby
juanpaucar has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
sinkensabe has joined #ruby
juanpablo__ has quit [Ping timeout: 244 seconds]
paulfm has joined #ruby
<cyberfab007> ok I installed the RVM , but here is my confusion
oki has quit [Ping timeout: 255 seconds]
<ponga> what confusion
<ponga> reminds of me in the old days
<cyberfab007> lol
<ponga> having difficulties with rvm
<cyberfab007> yegh ,
<ponga> what's up
<cyberfab007> this is the command I run on my other server to get the script to run
<cyberfab007> /home/cyberfab007/.rvm/wrappers/ruby-2.1.2/rubyscript
<cyberfab007> but I don't remember what the guy did to help me to get it to run there
<ponga> looks more like dir address to me
<jhass> why not use ruby 2.1.5 or even 2.2.0 btw?
<cyberfab007> yegh it is
<ponga> yeah why not 2.1.5 or 2.2.0
<cyberfab007> well the server is old , I have 2.1.5 installed now
<ponga> cyberfab007:
<cyberfab007> and the script still works fine ,
<ponga> u go like
<ponga> 'ruby myruby.rb'
<ponga> and it runs
<cyberfab007> yes,
<ponga> is this what you are looking for
<cyberfab007> I must use the command and wrapper because I am excuting shellexe() from a php script
<ponga> ok that goes beyond my scope
<ponga> apeiros!!!!
<ponga> come hither
dstarh has joined #ruby
<apeiros> meh
<cyberfab007> I'm wondering what the directory path is by default
max96at|off is now known as max96at
topolinux has quit [Ping timeout: 246 seconds]
<jhass> cyberfab007: rvm help wrapper I guess (don't have it installed to check)
bricker has joined #ruby
<ponga> apeiros enough goat impression
topolinux has joined #ruby
anekos has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
<apeiros_> nah, this goat is unimpressed
Spooner has joined #ruby
sameerynho has quit [Quit: Leaving]
codeurge has joined #ruby
<cyberfab007> jhass, I have installed now
<ponga> good one, actually
<ponga> im impressed apeiros_
<ponga> ;p
<cyberfab007> this command is not using a wrapper tho
<cyberfab007> dtadzirv!5
<cyberfab007> wiat
<ponga> i don even kno how wrapper works
<ponga> can't help
<jhass> cyberfab007: cool, a bit short maybe, so choose a longer one as the new one
<cyberfab007> /home/cyberfab007/.rvm/wrappers/ruby-2.1.2/linkedin-scraper
<cyberfab007> jhass lol
<cyberfab007> try to guss the acronym
<cyberfab007> lol
<jhass> cyberfab007: looks like a wrapper to me
tier has joined #ruby
anekos has joined #ruby
silkfox has joined #ruby
<cyberfab007> I know, whats the default directory for RVM paths
<cyberfab007> I think /etc/ or somthing I am looking
<cyberfab007> be easy with me , I am really new to and this is the first I have ever used ,
<jhass> cyberfab007: you check rvm help wrapper yet?
<cyberfab007> it downloads the linkedin public profile data
willharrison has joined #ruby
allcentury has joined #ruby
willharrison has quit [Client Quit]
<cyberfab007> jhass, yes I am reading
bricker has quit [Ping timeout: 245 seconds]
<cyberfab007> sudo passwd root
<cyberfab007> lol
<jhass> oh, it was the root password?
<jhass> maybe use sudo and disable root login
pkrzywicki has quit [Quit: Konversation terminated!]
<cyberfab007> my cut and past sucks , I really need to just my old egronomic key board
<cyberfab007> its really stick now from all the nachos
freerobby has quit [Quit: Leaving.]
lkba has joined #ruby
<cyberfab007> PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.2.0/bin' is not at first place,
<cyberfab007> that is the waring rvm help wrappers is giving me
<jhass> uhm
<jhass> weird
crome has quit [Ping timeout: 250 seconds]
<jhass> you installed rvm as root?
Timgauthier has quit [Read error: Connection reset by peer]
<jhass> or as user?
<jhass> or as both?
dblessing has joined #ruby
<cyberfab007> as root
<jhass> on your old box too?
<cyberfab007> humm , let me check
<cyberfab007> I think so is su as root
Timgauthier has joined #ruby
<jhass> but why does it live in /home/ there then, apparently?
<cyberfab007> on the orginall box it is point to the path above
<jhass> yeah, so it doesn't look like a root install
<cyberfab007> /home/cyberfab007/.rvm/wrappers/ruby-2.1.2/rubyscript
<cyberfab007> humm no your right , so if I install as root , whats that file path
<jhass> and the user install is preferred, managing a system wide install is messy if you have you don't know exactly what you're doing
<jhass> I'd recommend to cleanse the root install and reinstall it as user
<jhass> check the second to last entry
<cyberfab007> k
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coderhs has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
<jhass> however the warning from above might reappear even then, I'd say it's safe to ignore it
grn has joined #ruby
arup_r has quit []
<cyberfab007> I will remove and creat the user cyberfab007 again , chaing to that home directory and install RVM again
RegulationD has quit [Ping timeout: 246 seconds]
Advocation has joined #ruby
send has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
codecop has quit [Remote host closed the connection]
imanzarrabian has quit [Ping timeout: 255 seconds]
juanpablo__ has joined #ruby
rixius has joined #ruby
JDiPierro has joined #ruby
jottr has joined #ruby
rbennacer has joined #ruby
momomomomo has joined #ruby
joonty has joined #ruby
enebo has joined #ruby
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
ixti has joined #ruby
ych4k3r has joined #ruby
tkuchiki has joined #ruby
doodlehaus has joined #ruby
<cyberfab007> jhass, you there still
ta has quit [Remote host closed the connection]
<jhass> don't care
<jhass> ask the channel, not specific people
<cyberfab007> oookkk
devoldmx has quit [Ping timeout: 244 seconds]
topolinux has quit [Ping timeout: 244 seconds]
<cyberfab007> you know we are not so pickely in #php
<momomomomo> cyberfab007: in general, you should ask the channel - this would be true for most channels
<ponga> mow mow
<momomomomo> cyberfab007: it keeps people from being penalized for helping others
<momomomomo> penalized == being constantly asked specifically
grn has quit []
<cyberfab007> just reinstalling RVM under the same user as my old box
<cyberfab007> and was wondering if following these install instructions https://rvm.io/rvm/install
<cyberfab007> will give me access the the wrapper for this command
sigurding has quit [Quit: sigurding]
droidburgundy has joined #ruby
<cyberfab007> /home/cyberfab007/.rvm/wrappers/ruby-2.1.2/linkedin
weems|mac has joined #ruby
uri__ has joined #ruby
<jhass> not directly I suppose, but it's definitely the first step towards it
<jhass> just don't run it as root again
<cyberfab007> nope I creat the same user cyberfab007
sankaber has joined #ruby
<momomomomo> (run as root, i.e. don’t do sudo install
<momomomomo> )
tunaCanBruh has joined #ruby
<cyberfab007> nope
mhenrixon|afk is now known as mhenrixon
<cyberfab007> installing ............ brb
mhenrixon is now known as mhenrixon|afk
adriancb has joined #ruby
Channel6 has joined #ruby
sambao21 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bricker has joined #ruby
tkuchiki has joined #ruby
zenith_ has joined #ruby
dapadoupas has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
topolinux has joined #ruby
davispuh has joined #ruby
Advocation has quit [Quit: Advocation]
melmouss has joined #ruby
freerobby has joined #ruby
melmouss has quit [Max SendQ exceeded]
tkuchiki has quit [Ping timeout: 245 seconds]
livathin_ has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
Grumelo has quit [Read error: Connection reset by peer]
jimms has quit [Ping timeout: 252 seconds]
rbennacer has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 264 seconds]
livathinos has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fryguy9 has joined #ruby
fmcgeough has joined #ruby
kiely is now known as kiely_elsewhere
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
jimms has joined #ruby
ismaelga has quit [Remote host closed the connection]
decoponyo has joined #ruby
djcp has joined #ruby
harley has joined #ruby
fryguy9 has quit [Ping timeout: 245 seconds]
JDiPierro has quit [Remote host closed the connection]
<harley> anyone know how i can execute cmd commands from a .rb?
<brb3> backticks
decoponio has quit [Ping timeout: 264 seconds]
RDash has quit [Quit: This device has been compromised!]
jimms has quit [Ping timeout: 252 seconds]
RDash has joined #ruby
RDash has quit [Changing host]
RDash has joined #ruby
jimms has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Remote host closed the connection]
jerius has joined #ruby
thsig has joined #ruby
Tomasso has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Remote host closed the connection]
hs366 has quit [Quit: Leaving]
werelivinginthef has joined #ruby
<jhass> harley: several ways, which one to recommend depends on what you're doing
wald0 has joined #ruby
sent1nel has joined #ruby
The_Phoenix has quit [Ping timeout: 250 seconds]
Morkel has joined #ruby
jimms has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
Advocation has joined #ruby
<harley> jhass: i have a ruby function, within the function there is a loop, each iteration of the loop presents a different output, i want to use that output to create a new firewall rule
livingstn has quit [Ping timeout: 256 seconds]
<jhass> so you're not interested in what the command you run outputs but at most in whether it succeeds or not
vt102 has joined #ruby
<jhass> I would recommend the array form of Kernel#system
<jhass> system(["/usr/bin/iptables", "-A", "table", ...])
<jhass> it returns true on success (exit code 0), else false
<harley> windows
amundj has quit [Ping timeout: 252 seconds]
<jhass> well, change the path then ;)
Dopagod has quit [Ping timeout: 245 seconds]
amundj has joined #ruby
agarie has joined #ruby
The_Phoenix has joined #ruby
davedev24_ has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
psy_ has joined #ruby
ismaelga has joined #ruby
mitchellhenke has joined #ruby
sent1nel has quit [Remote host closed the connection]
kp666 has quit [Remote host closed the connection]
sent1nel has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
mitchellhenke has quit [Client Quit]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sent1nel_ has joined #ruby
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
sent1nel has quit [Ping timeout: 246 seconds]
fryguy9 has joined #ruby
jonr22 has joined #ruby
willharrison has joined #ruby
Rollabun_ has joined #ruby
livingstn has joined #ruby
mbeasley has quit [Quit: WeeChat 0.4.2]
Mon_Ouie has quit [Ping timeout: 265 seconds]
davispuh has quit [Read error: Connection reset by peer]
last_staff has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
codeurge has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
davispuh has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
mbeasley has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
hs366 has joined #ruby
rbennacer has joined #ruby
mitchellhenke has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
Jinkins has quit [Quit: This computer has gone to sleep]
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
mitchellhenke has quit [Client Quit]
j_mcnally has joined #ruby
deryl has joined #ruby
mitchellhenke has joined #ruby
tunaCanBruh has quit [Ping timeout: 265 seconds]
jonatin has quit [Ping timeout: 252 seconds]
psy_ has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
Jinkins has joined #ruby
lmickh_ has joined #ruby
<harley> i dont know why this happens: when i execute system(exec("echo #{somevarinrubyprogram}"). The execution of the ruby program just stops. How do I make it continue executing the rest of the ruby program?
mtrythall has joined #ruby
<harley> it executes the command properly, but then just ends
quazimod1 has quit [Ping timeout: 252 seconds]
enterprisedc has joined #ruby
zachrab has joined #ruby
Gonzih has quit [Quit: WeeChat 1.0.1]
sent1nel_ has quit [Remote host closed the connection]
elbow has quit [Remote host closed the connection]
DeanH has joined #ruby
psy_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
pandaant has joined #ruby
livathin_ has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 252 seconds]
livathinos has joined #ruby
aapole has joined #ruby
bruno- has joined #ruby
iamjarvo has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
shum has joined #ruby
craigp_ has quit []
<gregf_> >>system("echo \"foo\""); puts "gone past foo"
<eval-in> gregf_ => (https://eval.in/292360)
oki has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
plashchynski has quit [Quit: plashchynski]
sinkensabe has quit [Remote host closed the connection]
plashchynski has joined #ruby
vdamewood has joined #ruby
mikepack has joined #ruby
Dopagod has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fryguy91 has joined #ruby
axl_ has joined #ruby
jlast has joined #ruby
fryguy9 has quit [Ping timeout: 250 seconds]
<jhass> harley: That's because Kernel#exec replaces the current process, that is it's job
<cyberfab007> ok so I almost got everything back to normal
<jhass> harley: just don't put that exec in there
<harley> ah ok, i simple used system, works fine noe
<harley> thank you
spider-mario has joined #ruby
vvivv has joined #ruby
Timgauthier has joined #ruby
<cyberfab007> /home/cyberfab007/.rvm/wrappers/ruby-2.2.0/linkedin-scraper ok everything is set up but the gem is not in the directory
crueber has joined #ruby
<cyberfab007> how do I creat the wrapper someone have a link ?
<jhass> rvm help wrapper does not explain?
wald0 has quit [Quit: Lost terminal]
aapole has quit [Ping timeout: 250 seconds]
<cyberfab007> it explains , but there are so may options I dont know which one to pick to make it like on my original server
allcentury has joined #ruby
<jhass> well, some random guide on the internet won't either
zenith_ has quit [Read error: Connection reset by peer]
tus has joined #ruby
<jhass> rule of thumb is to specify as few as possible I'd say
zenith_ has joined #ruby
rkmylo has joined #ruby
Jinkins has quit [Quit: This computer has gone to sleep]
JDiPierro has joined #ruby
watmm1 has joined #ruby
Macaveli has quit [Ping timeout: 246 seconds]
thsig has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
Ankhers has joined #ruby
<rkmylo> hi all, i'm trying to implement some tests in ruby (cucumber/watir-webdriver) and i want to define a static class that will represent a global state that all other class/page-objects can access and modify. my approach was to define a global variable in env.rb that holds an instance of the class that represents the desired state. initialization is done in env.rb as: `$state = State::Instance.new` and i'm trying to access $state from within other c
<rkmylo> lasses as: `x = "#{$state.some_method}"`. this results in: "undefined method `some_method' for nil:NilClass (NoMethodError)". any ideas?
deryl is now known as ddd
Jinkins has joined #ruby
<watmm1> I'm trying to run an Amazon Web Services script but get the following error: `require': cannot load such file -- AWS (LoadError). I have the aws and aws-sdk-core gems installed, but i don't know how to provide the correct "AWS" class. Any ideas?
<rkmylo> it is assumed that some_method has been defined in module State, class Instance
brb3 has quit [Quit: ZZZzzz…]
<cyberfab007> I try this
<jhass> rkmylo: your initialization is probably at the wrong point, consider a singleton pattern instead, stdlib ships it as a module
<cyberfab007> rvm wrapper linkedin-scraper --no-prefix
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cyberfab007> and get this
<cyberfab007> rvm wrapper linkedin-scraper --no-prefix
brb3 has joined #ruby
cpt_yossarian has quit [Ping timeout: 265 seconds]
mahmoudmahfouz has joined #ruby
<rkmylo> jhass: as you also mentioned, it indeed seems like initialization is done at the wrong point, however i can't find the guidelines i need! i'll try the singleton pattern. thanks
bMalum has joined #ruby
RegulationD has joined #ruby
<jhass> cyberfab007: your copy paste failed again?
<rkmylo> @jhass: well, google was a bit aggressive re ruby + singleton pattern: http://goo.gl/KcOUKD :)
hs366 has quit [Remote host closed the connection]
sent1nel has joined #ruby
<cyberfab007> no sorry that was the command I ran
workmad3 has joined #ruby
<cyberfab007> this is the error
<cyberfab007> Unknown ruby interpreter version (do not know how to handle): linkedin-scraper.
hollywood has joined #ruby
<watmm1> Can someone tell me how to handle "cannot load such file" LoadError's?
<jhass> rkmylo: I think the Singleton module is fit for your usecase
mitchellhenke has joined #ruby
<jhass> watmm1: depends what you mean by handle
<jhass> you want to make the require optional or they fail while you expect them to succeed?
oo_ has quit [Remote host closed the connection]
<cyberfab007> when I run rvm linkedin-scraper http://id.linkedin.com/pub/isye-whiting/58/6a1/6b9
<cyberfab007> i get
<cyberfab007> Unknown ruby interpreter version (do not know how to handle): http://id.linkedin.com/pub/isye-whiting/58/6a1/6b9.
joonty has quit [Quit: joonty]
uri__ has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
sent1nel has quit [Remote host closed the connection]
<jhass> cyberfab007: you probably want to specify the version to use in the wrapper generation
polysics has quit []
ekaleido has joined #ruby
<cyberfab007> humm
<cyberfab007> who would that command look
benlieb has joined #ruby
<cyberfab007> ‎I mean what would that command look like
<jhass> I don't use RVM and I can't find online docs for rvm wrapper
<jhass> so I don't know
<jhass> but I guess rvm help wrapper will explain it
adamjleonard has joined #ruby
topolinux has quit [Ping timeout: 244 seconds]
jbeeze has joined #ruby
riotjones has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
aganov has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 255 seconds]
thsig has joined #ruby
joonty has joined #ruby
bal has quit [Quit: bal]
serivichi has quit [Ping timeout: 252 seconds]
<cyberfab007> yegh the help is not rellly helping lol
harley has quit [Ping timeout: 246 seconds]
Grumelo has joined #ruby
FooMunki has quit [Quit: FooMunki]
<jhass> I remember RVMs help pages to be fairly comprehensive
sent1nel has joined #ruby
Lewix has quit []
yekta has joined #ruby
rubytor has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
tunaCanBruh has joined #ruby
mtrythall has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
jherbst has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
alex88 has joined #ruby
werelivinginthef has joined #ruby
FooMunki_ has joined #ruby
<DefV> werelivinginthef: where are you living? I have to know. In the floor? In the fashion capital of the world? In the fringe?
Troy^ has joined #ruby
dfinninger has joined #ruby
Coding_Deva has joined #ruby
<jhass> fridge
<jhass> must be fridge
<DefV> can't be
<DefV> too cold
<jhass> that's why!
<jhass> that's the pun, only the dead live in the fridge
tunaCanBruh has quit [Ping timeout: 246 seconds]
<DefV> Google tells me it's "future"
<DefV> which feels awefully uninspired
<jhass> yeah
<jhass> fridge is much better
lxsameer has joined #ruby
tunaCanBruh has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lxsameer> guys, i'm looking for a document generator which supports ruby, javascript and coffeescript do you know any ?
mitchellhenke has joined #ruby
_maes_ has joined #ruby
<werelivinginthef> DefV: In the future
blandflakes has joined #ruby
<werelivinginthef> But it's open to interpretation I suppose
cpt_yossarian has joined #ruby
j_mcnally has joined #ruby
riotjones has joined #ruby
zachrab has joined #ruby
vtunka has quit [Quit: Leaving]
<gregf_> heh
<gregf_> werelivinginthef: c'mon man dont keep us guessing. the future is a guess as well ;)
<jhass> cyberfab007: just installed RVM into a chroot, I find rvm help wrapper pretty clear
<jhass> how did you install linkedin-scraper ?
dawkirst has joined #ruby
<cyberfab007> jhass, install it gem install linkedin scrapper
zachrab has quit [Ping timeout: 255 seconds]
<jhass> without activating a specific gemset / ruby version before?
zenith_ has joined #ruby
<jhass> that is no rvm use command?
ringaring has joined #ruby
ringarin has joined #ruby
yekta has quit [Quit: yekta]
zorak8 has quit [Ping timeout: 244 seconds]
<cyberfab007> yes I did not activat anything I just run that command , how do I activate with a specific gem set ?
<jhass> with rvm use
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> you ran that as your regular user though?
<jhass> not with sudo?
pwh has joined #ruby
chrishough has joined #ruby
shevy has joined #ruby
<jhass> just trying to figure out your setup ;)
mistermocha has joined #ruby
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rubytor has quit [Ping timeout: 264 seconds]
agarie has joined #ruby
rhg135|zzz is now known as rhg135
workmad3 has quit [Quit: Lost terminal]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
mskaesz has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 250 seconds]
aclearman037 has joined #ruby
rubytor has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
ringaring has quit [Read error: Connection reset by peer]
mhenrixon|afk is now known as mhenrixon
<cyberfab007> jhass, yes I rand a a regular user
<jhass> what's gem env | grep INSTALL?
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
aapole has joined #ruby
<cyberfab007> gem env | grep INSTALL
<cyberfab007> - INSTALLATION DIRECTORY: /home/cyberfab007/.rvm/gems/jruby-1.7.19
sigurding has joined #ruby
codecop has joined #ruby
Troy^ has joined #ruby
<jhass> oO
<jhass> you installed jruby? :D
<cyberfab007> yes , just followed those instructions of the site
<jhass> rvm current gives jruby I guess?
<jhass> "the site"?
<cyberfab007> what you mean ?
<jhass> which site?
plashchynski has quit [Quit: plashchynski]
<cyberfab007> oh I see
livathinos has quit []
<cyberfab007> this site
fabrice31 has joined #ruby
yxejamir has quit [Ping timeout: 250 seconds]
plashchynski has joined #ruby
<cyberfab007> thats the instructions I use
<jhass> ugh
<jhass> you didn't read a sentence on it I guess?
<jhass> those are alternatives
bMalum has quit [Quit: bMalum]
<jhass> you pick one
Cust0sL1men has quit [Ping timeout: 245 seconds]
<cyberfab007> oh s****
<cyberfab007> I did read ,
<cyberfab007> but I said in here I did not which one to pick , so I figure I install them all4
<jhass> if so you didn't make clear that you were talking about that
ismaelga has quit [Remote host closed the connection]
zorak8 has joined #ruby
<jhass> I guess, anyway
shevy has quit [Ping timeout: 252 seconds]
Timgauthier has quit [Read error: Connection reset by peer]
<jhass> let's see which rubies you got
<cyberfab007> well to be clear you gotta know what your talking about lol , I am new to buty
<jhass> rvm list
GaryOak_ has joined #ruby
<cyberfab007> jruby-1.7.19 [ x86_64 ]
<cyberfab007> ruby-2.2.0 [ x86_64 ]
<cyberfab007> ahh this is why I am getting the interpreter error
<cyberfab007> I should uninstall jruby you think?
<jhass> ya you don't need it
<jhass> so let's do rvm use 2.2 --default
ismaelga has joined #ruby
<jhass> rvm uninstall jruby
<jhass> gem install linkedin-scrapper
rooby has joined #ruby
<jhass> rvm wrapper 2.2 --no-prefix linkedin-scrapper
adamjleonard has quit [Quit: Leaving...]
longfeet has joined #ruby
<cyberfab007> k
olivier_bK has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
pengin has joined #ruby
SouL has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
michael_mbp has joined #ruby
sent1nel has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
jshultz has joined #ruby
bricker has joined #ruby
preyalone has joined #ruby
msgodf has quit [Ping timeout: 240 seconds]
sent1nel has quit [Read error: Connection reset by peer]
<rooby> why am i getting 'ArgumentError: invalid byte sequence in US-ASCII' even though I have set my locale to UTF-8 ?
sent1nel_ has joined #ruby
terlar has quit [Quit: WeeChat 1.1.1]
<jhass> rooby: what are you getting that for?
<cyberfab007> ERROR: Error installing linkedin-scraper:
<cyberfab007> ERROR: Failed to build gem native extension.
<cyberfab007> /usr/bin/ruby2.1 extconf.rb
<cyberfab007> mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
<cyberfab007> what the hell ?
topolinux has joined #ruby
<cyberfab007> worked before
<jhass> you did the rvm use 2.2 ?
<jhass> and it didn't complain?
<cyberfab007> i set it as defauly
<jhass> rvm current reports it?
<cyberfab007> ve set my locale to UTF-8 ?
<cyberfab007> * sent1nel_ (~sent1nel@66.19
<sent1nel_> hm?
JimmyNeutron has quit [Read error: Connection reset by peer]
<sent1nel_> sorry, my interlulz are on the fritz
<preyalone> How can I get system( ... ) / ` ... ` to become aware of the same aliases and things available in my ordinary bash shell?
<rooby> jhass: i'm trying to run an irc bot that i got off github, i have no idea why I'm getting this, link to the error with --trace here https://gist.github.com/anonymous/9f20fb1aa8a0c7a39e1b
<cyberfab007> jhass, yes it reports 2.2.0
terlar has joined #ruby
<jhass> preyalone: you would run your ordinary bash shell, be careful to not pass user input to it though
Grumelo has quit [Read error: Connection reset by peer]
Coding_Deva has quit [Quit: Textual IRC Client: www.textualapp.com]
Jinkins has quit [Quit: This computer has gone to sleep]
shevy has joined #ruby
<cyberfab007> maybe I must restart ruby?
<cyberfab007> is that even possible lol
<rooby> did some googling and all answers seem to be to set locale to UTF-8
<jhass> cyberfab007: and you do gem install, not sudo gem install ?
jonr22 has joined #ruby
<atmosx> I don't sudo for I am root!
<preyalone> jhass: What? Let me provide more context: I've got a nifty specs ruby CLI program, that I want to be able to run `nvm --version`, where nvm is an alias defined in ~/.bashrc. https://github.com/mcandre/specs
<jhass> rooby: and `locale` reports it correctly for all values?
<cyberfab007> lol , it magially worked after 5 times I try
<havenwood> cyberfab007: it's more likely that you're changing your commands :P
<jhass> cyberfab007: ^ or the context you run them in
tier_ has joined #ruby
<cyberfab007> ok
<cyberfab007> jhass, now I run
<cyberfab007> rvm wrapper 2.2 --no-prefix linkedin-scrapper
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
allenn has quit [Remote host closed the connection]
<cyberfab007> Could not find file 'linkedin-scrapper' nor '/home/cyberfab007/.rvm/wrappers/ruby-2.2.0/linkedin-scrapper'.
<rooby> jhass: what do you mean?
Volis has joined #ruby
mary5030 has joined #ruby
<jhass> preyalone: so, system("/bin/bash -c 'nvm #{careful_no_userinput_here}'")
mistermocha has quit [Remote host closed the connection]
maximski has quit []
<jhass> preyalone: honestly, I'd consider just avoiding the alias though
<cyberfab007> jhass, never mind it one p inscrapper not two
<jhass> rooby: locale i a command you can run at your shell
<jhass> *is
<Volis> Hi, I'm using cygwin on Windows 8.1
mistermocha has joined #ruby
<Volis> I get a LoadError when I call bundle install
<preyalone> jhass: Works for me, and this alias is nvm, an alias that I don't control, but need to handle
<Volis> $ bundle install
<Volis> C:\Ruby21-x64\bin\ruby.exe: No such file or directory -- /cygdrive/c/Ruby21-x64/bin/bundle (LoadError)
<havenwood> Volis: gem install bundler
<Volis> I did that, havenwood
<havenwood> Volis: Did it succeed?
jonr22 has quit [Ping timeout: 250 seconds]
<rooby> jhass: yes, it's all "LC_ALL=en_US.UTF-8"
<Volis> havenwood: $ /cygdrive/c/Ruby21-x64/bin/bundle
<Volis> bundle bundle.bat bundler bundler.bat
tier has quit [Ping timeout: 244 seconds]
<Volis> You can see the contents of the directory
<Volis> it is there
<havenwood> Volis: So it's just not in your PATH it seems.
<jhass> rooby: link to the github repo?
<Volis> How do I do that, havenwood?
r4j453v4n has joined #ruby
topolinux has quit [Ping timeout: 264 seconds]
<havenwood> Volis: add `/cygdrive/c/Ruby21-x64/bin` to PATH, did you build Ruby yourself?
<havenwood> Volis: I'd think RubyInstaller or Chocolatey would do that for you. I'd have to google how to add a dir to PATH in Win, dunno.
<jhass> rooby: their travis build runs only on ruby 2.2 and ruby-head, ruby 2.0 did change the default when reading source files from ascii to utf-8, it's likely that ruby 1.9 is just not supported by it, it EOLs today anyway
<Volis> havenwood: I had installed it from cygwin installer. I also have it installed from the Ruby for Windows installer.
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Volis> havenwood: Ah, alright. Thanks for your help!
<rooby> jhass: so upgrading ruby version should fix it?
michael_mbp has quit [Excess Flood]
<havenwood> Volis: No prob, happy hacking!
werelivinginthef has joined #ruby
<jhass> rooby: I think so
<cyberfab007> what the hell does this mean
<cyberfab007> /home/cyberfab007/.rvm/gems/ruby-2.2.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:262:in `block in fetch'
<preyalone> jhass: New constraint: How can I load the user's shell settings into system('...') / `...`, without explicitly calling bash, as I want this to work for cmd.exe, zsh, etc.
<jhass> cyberfab007: that looks like part of a backtrace, the error should be above it
strixd has quit [Quit: 500]
terlar has quit [Quit: WeeChat 1.1.1]
<jhass> preyalone: no idea about cmd.exe, most UNIXes should have ENV['SHELL'] set
serivichi has joined #ruby
michael_mbp has joined #ruby
<cyberfab007> /home/cyberfab007/.rvm/gems/ruby-2.2.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:262:in `block in fetch'
<cyberfab007> this
Zesty has joined #ruby
<cyberfab007> I mean this
terlar has joined #ruby
<cyberfab007> home/cyberfab007/.rvm/gems/ruby-2.2.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:933:in `response_read': 999 => for -- http://id.linkedin.com/pub/wasis-kartijoso/28/762/625 (Mechanize::ResponseCodeError)
<cyberfab007> 74
topolinux has joined #ruby
<jhass> cyberfab007: Please share your code on https://gist.github.com
thiagovsk has joined #ruby
<jhass> also see /topic
kaiZen has joined #ruby
<ducklobster> is there a way to force a gem to be re-required?
<ducklobster> awesome_print seems to hook into the standard logger to add a method but
<cyberfab007> there it the output
<cyberfab007> this script worked fine earlier
<ducklobster> if it is required prior to the standard logger, it doesn't work
aclearman037 has joined #ruby
<jhass> cyberfab007: how about curl -v on that URL
terlar has quit [Client Quit]
<jhass> ducklobster: nothing safe
triple_b has joined #ruby
terlar has joined #ruby
<ducklobster> would it be acceptable to just run the code block that adds the awesome_print method to logger again?
<cyberfab007> jhass, request denyied , odd
<jhass> cyberfab007: yeah, thought something like that
<jhass> linkedin no longer likes you ;)
<preyalone> jhass: This is getting messy, I might even write a lib just for doing this
<jhass> preyalone: or you just make it an argument or proper config file instead
<cyberfab007> wierd , script works fine on my other server
<cyberfab007> you think its the ip ?
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> cyberfab007: yeah, such blocks usually are IP based
azza has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
terlar has quit [Client Quit]
<cyberfab007> dont understand why , I really have not run this script even once on this server
timonv has quit [Ping timeout: 245 seconds]
tjohnson has joined #ruby
<cyberfab007> i did a test on linked, they let me do 60 searches a hour no problem
zorak8 has quit [Quit: Leaving]
<cyberfab007> let me curl somthing else
zorak8 has joined #ruby
terlar has joined #ruby
<jhass> maybe your new box is in an ip range that showed abusive behavior in the past
<Volis> havenwood: Looks like the problem is I have two versions of ruby. The StackOverflow answer suggests that I 'nuke' one of them. What is 'nuke'?
<cyberfab007> maybe
r4j453v4n has quit [Quit: r4j453v4n]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
mhenrixon is now known as mhenrixon|afk
dawkirst has quit [Quit: Leaving...]
Hijiri has quit [Ping timeout: 250 seconds]
joonty has quit [Quit: joonty]
joonty has joined #ruby
alex88 has quit []
joonty has quit [Client Quit]
arup_r has joined #ruby
<cyberfab007> thank you for all your help , the ip is blocke dI gotta put a support ticket in and do some compaing
<havenwood> Volis: Kill it with fire. (Delete it.)
<Volis> oh
Jinkins has joined #ruby
seitensei has quit [Remote host closed the connection]
mhenrixon|afk is now known as mhenrixon
terlar has quit [Quit: WeeChat 1.1.1]
jenrzzz has joined #ruby
terlar has joined #ruby
<havenwood> Volis: There's a longstanding Ruby switcher for Win I've heard of called pik, or a new multi-platform one that works on Win called uru: https://bitbucket.org/jonforums/uru
ta has joined #ruby
<catsoup> maybe only delete it if you're sure you won't get the same ip next time?
Morkel has quit [Quit: Morkel]
<havenwood> Volis: ^ If you want to do switching instead of having one Ruby, your choice. One Ruby is of course a bit simpler!
<Volis> a lot, yes
terlar has quit [Client Quit]
serivichi has quit [Ping timeout: 244 seconds]
<Volis> If this frustrates me anymore, I'll install this piece of shit on the virtual machine
terlar has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
rocknrollmarc has joined #ruby
JDiPierro has quit [Remote host closed the connection]
stef204 has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
agarie has quit [Remote host closed the connection]
<havenwood> Volis: Something like a recent Fedora really does make it pleasant: yum install ruby && gem install bundler
azza has quit []
workmad3 has joined #ruby
tvw has quit [Ping timeout: 250 seconds]
jespada has quit [Ping timeout: 246 seconds]
moritzs has joined #ruby
ta has quit [Ping timeout: 252 seconds]
ptrrr has joined #ruby
<havenwood> So is Windows getting a package manager in 10.0? https://github.com/OneGet/oneget#readme
<catsoup> or you could use a real os, regards
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
renier_ has joined #ruby
<workmad3> havenwood: I still feel bad for the windows 9 team
<havenwood> workmad3: They've been disappeared!?
<workmad3> havenwood: I assume the team went the way of windows 9 itself
renier has quit [Ping timeout: 252 seconds]
terlar has quit [Ping timeout: 246 seconds]
Volis_ has joined #ruby
rocknrollmarc has quit [Ping timeout: 264 seconds]
Soda has joined #ruby
deric_skibotn has joined #ruby
FooMunki_ is now known as FooMunki
jespada has joined #ruby
<withnale_> Is there a way to load a class but avoid running the at_exit function enclosed within it, without changing that class?
Volis has quit [Ping timeout: 244 seconds]
<shevy> ewww at_exit
<shevy> I think you can rescue exit-events
moritzs has quit [Quit: Verlassend]
swgillespie has joined #ruby
sigurding has quit [Quit: sigurding]
stunder has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
Parker0 has quit [Ping timeout: 246 seconds]
JDiPierro has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
rocknrollmarc has joined #ruby
mary5030 has quit [Remote host closed the connection]
longfeet has quit [Ping timeout: 255 seconds]
swgillespie has quit [Client Quit]
Jinkins has quit [Quit: This computer has gone to sleep]
fryguy91 has quit [Quit: Leaving.]
lolmaus has joined #ruby
lemur has joined #ruby
oki has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
rbennacer has joined #ruby
Cadillactica has joined #ruby
scripore has joined #ruby
rocknrollmarc has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 265 seconds]
<scripore> I'm making a command line application. Is there any way to make a url link clickable?
fryguy9 has joined #ruby
lemur has quit [Remote host closed the connection]
ghostmoth has joined #ruby
lemur has joined #ruby
Cadillactica has quit [Client Quit]
Cadillactica has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
kalusn has quit [Remote host closed the connection]
tvw has joined #ruby
Lorn3r has joined #ruby
lolmaus has quit [Remote host closed the connection]
<shevy> scripore that depends on the terminal you use. in gnome-terminal you can get that
<havenwood> withnale_: `exit!` won't run the `at_exit` or any finalizers. Looking to see if I can find a way to actually clear the `at_exit` procs.
vvivv has quit [Quit: Leaving]
lolmaus has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
<withnale_> It's ok. Found a way around it now. It wasn't the root cause of my problem
<scripore> will it work with bash?
vvivv has joined #ruby
Megtastique has quit []
<havenwood> weaksauce: Ah good.
topolinux has quit [Quit: Sto andando via]
RegulationD has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<shevy> scripore bash itself has no way to understand linkable-links, you really need to use a terminal that supports click-actions; gnome-terminal works for sure, I think kde konsole may also work somehow but I am unsure
mkaesz has joined #ruby
<havenwood> I don't know of a `ObjectSpace.undefine_finalizer` equivalent for `at_exit`.
<scripore> ah, okay. thank you.
maximski has joined #ruby
tvw has quit [Client Quit]
lemur has quit [Ping timeout: 244 seconds]
jespada has quit [Ping timeout: 244 seconds]
Hobogrammer has joined #ruby
tunaCanBruh has joined #ruby
cpt_yossarian has quit [Ping timeout: 255 seconds]
poguez_ has joined #ruby
Crisix has joined #ruby
Timgauthier has joined #ruby
<Cadillactica> possible to sort Ruby objects by two attributes such as Last Name (reverse order), First Name (reverse order), so that objects with same last name are sorted by first name?
s7ry93r has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
rbennace_ has joined #ruby
rbennace_ has quit [Remote host closed the connection]
withnale_ has quit [Ping timeout: 252 seconds]
fmcgeough has quit [Quit: fmcgeough]
RegulationD has quit [Ping timeout: 244 seconds]
sushant94 has joined #ruby
adamjleonard has joined #ruby
<jhass> Cadillactica: you can pass a block to sort, or if it's your own class define <=> accordingly, see the Comparable module
bhaak has joined #ruby
<jhass> a quick way would be .sort_by {|x| [x.last_name, x.first_name] }, though that does many unnecessary array allocations
graydot has joined #ruby
adamjleonard has quit [Client Quit]
nopewatelse has joined #ruby
withnale_ has joined #ruby
<Cadillactica> jhass: I’m familiar with that approach but how would I do the same thing, except reverse order?
rbennacer has quit [Ping timeout: 264 seconds]
<Cadillactica> two <=> statements inside of an array used with sort?
send has quit [Remote host closed the connection]
s7ry93r has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
it0a has joined #ruby
<jhass> I'd say pass a block to sort and understand what <=> returns (and thus what your block should return)
ZoanthusR has quit [Quit: Leaving...]
Megtastique has joined #ruby
SirFunk has quit [Remote host closed the connection]
SirFunk has joined #ruby
zachrab has joined #ruby
<Timgauthier> anyone have their computer set to german who could just look at somethin for me?
Limix has joined #ruby
yxejamir has joined #ruby
hemanth1 has quit [Remote host closed the connection]
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
jespada has joined #ruby
ZoanthusR has joined #ruby
dfinninger has quit [Remote host closed the connection]
<bhaak> Timgauthier: what OS?
s7ry93r has joined #ruby
Troy^ has joined #ruby
zachrab has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
allcentury has joined #ruby
fabrice31 has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<shevy> my computer is a natural born german
<shevy> actually
<shevy> I just noticed that I was using english locales anyway - german errors confuse the hell outta me :\
ghostpl_ has quit [Remote host closed the connection]
zachrab has joined #ruby
kiely_elsewhere is now known as kiely
withnale_ has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Soda has quit [Ping timeout: 256 seconds]
Dopagod has quit [Ping timeout: 245 seconds]
amacou has quit [Remote host closed the connection]
wallerdev has joined #ruby
rocknrollmarc has joined #ruby
Timgauthier is now known as timgauthier_away
rocknrollmarc has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has quit [Remote host closed the connection]
Soda has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
sambao21 has joined #ruby
juanpaucar has joined #ruby
_djbkd has joined #ruby
Jinkins has joined #ruby
foureight84 has joined #ruby
scripore has joined #ruby
tvon has quit [Quit: leaving]
scripore has quit [Client Quit]
agarie has joined #ruby
juanpaucar has quit [Ping timeout: 240 seconds]
zling has joined #ruby
thsig has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 240 seconds]
lrocknrolmarc has joined #ruby
rocknrollmarc has joined #ruby
Morkel has joined #ruby
Jinkins has quit [Client Quit]
matchaw has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
odin22 has joined #ruby
graydot has quit [Quit: graydot]
<zling> apeiros_!aperios@80-218-30-231.dclient.hispeed.ch
<zling> .ping
sinkensabe has joined #ruby
<apeiros_> o0
<apeiros_> that's an odd ping
<apeiros_> what's up?
devbug has joined #ruby
sigurding has joined #ruby
yxejamir has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Ping timeout: 245 seconds]
lrocknrolmarc has quit [Ping timeout: 245 seconds]
anaeem1 has quit [Remote host closed the connection]
<shevy> .ping
<shevy> .ping
<shevy> how annoying can a ping be zling
<shevy> pling
<zling> lol
fabrice31 has joined #ruby
<zling> want a beep
sinkensabe has quit [Remote host closed the connection]
last_staff has joined #ruby
<jhass> "beep" mmh, sounds like typo for "ban"? :P
bruno- has joined #ruby
<zling> m_IRC
<zling> I was there
<zling> m is here
<havenwood> zling: you seem to be trapped in a temporal distortion field
<zling> ~~~~~ *-__-* ~~~~~~
<zling> zzZZ
Synthead has joined #ruby
<shevy> beeps are deprecated
<apeiros> zling: is there an actual reason you pinged me?
anaeem1_ has joined #ruby
werelivinginthef has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gregf_> rofl
OrbitalKitten has joined #ruby
<gregf_> zling: do you like getting banned ;)
michael_mbp has quit [Excess Flood]
<havenwood> shevy: print ?\a
michael_mbp has joined #ruby
<jhass> >> "\a"
<eval-in> jhass => "\a" (https://eval.in/292430)
<jhass> >> puts "\a"
<eval-in> jhass => ... (https://eval.in/292431)
tunaCanBruh has quit [Ping timeout: 256 seconds]
amacou has joined #ruby
adamjleonard has joined #ruby
dfinninger has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Limix has quit [Quit: Limix]
uri_ has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
anaeem1_ has quit [Ping timeout: 256 seconds]
OrbitalKitten has quit [Ping timeout: 244 seconds]
kalusn has joined #ruby
rubytor has quit [Ping timeout: 250 seconds]
plashchynski has quit [Quit: plashchynski]
michael_mbp has quit [Excess Flood]
agarie has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
oki has joined #ruby
<apeiros> ok, welcome on my ignore, zling.
jottr has joined #ruby
agarie has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zling has quit []
werelivinginthef has quit [Remote host closed the connection]
kaiZen has quit [Quit: Computer has gone to sleep.]
_djbkd has quit [Remote host closed the connection]
plashchynski has joined #ruby
Megtastique has quit []
Macaveli has joined #ruby
rkmylo has quit []
oki has quit [Ping timeout: 252 seconds]
matchaw has quit [Ping timeout: 250 seconds]
<shevy> he is a spam bot
<shevy> just spammed a link in privmsg
Macaveli has quit [Client Quit]
fmcgeough has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
doodlehaus has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
rubytor has joined #ruby
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
izzol has joined #ruby
<izzol> Hi
Dopagod has joined #ruby
matchaw has joined #ruby
<izzol> I have a strange problem :(
cjim has joined #ruby
marr has quit [Read error: Connection reset by peer]
<izzol> kernel_require.rb:55:in `require': cannot load such file -- net/ping (LoadError)
<izzol> This is what I have when I’m trying to execute my code.
_djbkd has joined #ruby
<izzol> 2.1.2 :001 > require 'net/ping'
<izzol> => true
mikecmpbll has joined #ruby
<izzol> And this is from my irb.
zenith__ has joined #ruby
livingstn has quit []
lrocknrolmarc has joined #ruby
<Fluent> What version of Ruby is running your programs?
<Fluent> It might not be the same version as your interactive ruby version
<Fluent> and may be looking in other locations for gems
zenith_ has quit [Read error: Connection reset by peer]
_djbkd has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
jonr22 has joined #ruby
plashchynski has quit [Quit: plashchynski]
Tuxero has quit [Remote host closed the connection]
<izzol> # which ruby
<izzol> “/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby"
djbkd_ has joined #ruby
<havenwood> As of today... Ruby 1.9 is dead, long live 2.2!
Dopagod has quit [Ping timeout: 245 seconds]
<izzol> I even setup this in my first line:
<izzol> > head -1 monit.rb
<izzol> #!/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby
rbennacer has joined #ruby
<izzol> # /usr/local/rvm/rubies/ruby-2.1.2/bin/irb
<izzol> 2.1.2 :001 > require 'net/ping'
<izzol> => true
<izzol> 2.1.2 :002 >
cyberfab007 has quit [Ping timeout: 246 seconds]
<izzol> So what can be wrong ?
lrocknrolmarc has quit [Ping timeout: 255 seconds]
<jhass> izzol: does ruby -r'net/ping' work?
freerobby1 has quit [Quit: Leaving.]
Dopagod has joined #ruby
freerobby has joined #ruby
<jhass> ruby -r'net/ping' -e 'puts "works"'
mary5030 has quit [Ping timeout: 252 seconds]
<izzol> # ruby -r'net/ping' -e 'puts "works"'
<izzol> works
zachrab has quit []
<Fluent> Check your load path?
jonr22 has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
unclouded has quit [Ping timeout: 265 seconds]
<izzol> hmm, I don’t have anything at the $LOAD_PATH
matchaw has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<izzol> shall I setup something ?
<jhass> izzol: what's the exact command producing the error?
<izzol> /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- net/ping (LoadError)
x1337807x has joined #ruby
<havenwood> izzol: That's the error. What are you running to get that error?
Senjai has joined #ruby
Senjai has quit [Changing host]
<Fluent> require 'net/ping' most likely
ponga has quit [Quit: Leaving...]
<izzol> yes
<izzol> require 'net/ping'
<Fluent> His LOAD_PATH is blank, so that's likely the issue
<jhass> izzol: no, how do you invoke the script containing that
<havenwood> izzol: Huh? In irb?
<Fluent> I'm not sure how to 'reset' it
<Fluent> In irb it works, likely failing in a script
ZoanthusR has quit [Quit: Leaving...]
<havenwood> Fluent: Right, so the question is how the script is being invoked.
tunaCanBruh has joined #ruby
rubytor has quit [Ping timeout: 264 seconds]
<izzol> jhass: I’m executing it from the crontab … Just * * * * * /path/to/code/ruby.rb
unclouded has joined #ruby
codeFiend has joined #ruby
mjuszczak has joined #ruby
<jhass> izzol: exact command please
<Fluent> Oh
<Fluent> right :D
<jhass> izzol: but it looks like you're using RVM, so make sure the right environment is active: https://rvm.io/deployment/cron
<izzol> * * * * * /home/brains99/Data/Configuration/monit/monit.rb
<izzol> * * * * * usr/local/rvm/rubies/ruby-2.1.2/bin/ruby /home/brains99/Data/Configuration/monit/monit.rb >> /opt/logs.txt
<izzol> second one should be of course /usr/...
<jhass> yeah, don't call into the RVM ruby directly, see above link
<izzol> ok
michael_mbp has quit [Excess Flood]
davedev24_ has quit [Ping timeout: 252 seconds]
shadoi has joined #ruby
ghr has joined #ruby
greenarrow has joined #ruby
davedev24_ has joined #ruby
Akuma has joined #ruby
<arup_r> jhass: How many lines of code you write everyday ?
michael_mbp has joined #ruby
rubytor has joined #ruby
<jhass> 0-1kloc
sambao21 has joined #ruby
ZoanthusR has joined #ruby
<jhass> I do not count
<jhass> and I do not code everyday
<arup_r> humm
<havenwood> arup_r: On a good day, a negative number.
<jhass> right
<arup_r> means ?
<arup_r> :p
jespada has quit [Quit: Leaving]
<izzol> ha! it’s working now
greenarrow has quit [Client Quit]
<izzol> thanks jhass :)
<havenwood> arup_r: Removing more lines than those added.
greenarrow has joined #ruby
<arup_r> refactoring... I see
<arup_r> good
luriv has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
jerius has quit [Quit: /quit]
Jinkins has joined #ruby
werelivinginthef has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dumdedum has quit [Ping timeout: 246 seconds]
_alexandros_ has joined #ruby
chrishough has joined #ruby
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
jenrzzz has joined #ruby
n008f4g_ has joined #ruby
jerius has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
kiely is now known as sarahbunny
paolooo has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
razrunelord has joined #ruby
Asher has quit [Quit: Leaving.]
amacou has quit [Remote host closed the connection]
gkra has joined #ruby
sambao21 has joined #ruby
thsig has joined #ruby
<arup_r> Can anybody write something there ? https://www.ruby-forum.com/topic/6873429#new
baweaver has joined #ruby
sigurding has quit [Quit: sigurding]
Advocation has quit [Quit: Advocation]
_alexandros_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kotay has quit [Quit: Connection closed for inactivity]
rbennacer has quit [Remote host closed the connection]
roshanavand has joined #ruby
m8 has joined #ruby
<arup_r> k
fantazo has joined #ruby
Hijiri has joined #ruby
rbennacer has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
postmodern has joined #ruby
<arup_r> >> [*1..15].sample(random: 1..3)
<eval-in> arup_r => 11 (https://eval.in/292445)
<arup_r> what the range argument is doing there ?
<arup_r> I never used
elaptics is now known as elaptics_away
willharrison has joined #ruby
<jhass> where did you get that from?
<jhass> I don't see it in the docs
<jhass> My suspicion is that it's just ignored if it's no rng
<jhass> yap
<jhass> doesn't mention passing a range
tier has joined #ruby
<arup_r> means?
<arup_r> doco don't have explanations
roolo has quit [Quit: Linkinus - http://linkinus.com]
<jhass> rng means random number generator
<jhass> not range
tier_ has quit [Ping timeout: 240 seconds]
<jhass> "The optional rng argument will be used as the random number generator"
tunaCanBruh has quit [Ping timeout: 264 seconds]
roshanavand has quit [Remote host closed the connection]
The_Phoenix has quit [Read error: Connection reset by peer]
sent1nel_ has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
rubytor has quit [Ping timeout: 250 seconds]
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
Lorn3r has quit [Remote host closed the connection]
oki_ has joined #ruby
roolo has joined #ruby
maximski has quit []
razrunelord has quit [Remote host closed the connection]
lordkryss has joined #ruby
rubytor has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
Aerosonic has joined #ruby
mkaesz has quit [Read error: Connection reset by peer]
quazimodo has joined #ruby
sent1nel has joined #ruby
<Aerosonic> Hey guys. I need some help with RoR.
<Aerosonic> I'm trying to add User.new to the database, but I am getting syntax errors. => #<User id: nil, email: nil, referral_code: nil, referrer_id: nil, created_at: nil, updated_at: nil, landing_page: nil>
<Aerosonic> I'm trying to do User.add <email: "example@gmail.com">
mkaesz has joined #ruby
izzol has left #ruby [#ruby]
<Aerosonic> But it's not working.
Megtastique has joined #ruby
<Aerosonic> (irb):103: syntax error, unexpected keyword_end
<havenwood> Aerosonic: The best place for Rails questions is #RubyOnRails. They require nickname registration: https://freenode.net/faq.shtml#nicksetup
doodlehaus has joined #ruby
<Aerosonic> Ah. I thought I tabbed to RoR.
baweaver has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
oki_ has quit [Ping timeout: 245 seconds]
lolmaus has quit [Quit: Konversation terminated!]
huddy has quit [Quit: Connection closed for inactivity]
Megtastique has quit [Client Quit]
michael_mbp has quit [Excess Flood]
polysics has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
droidburgundy has joined #ruby
michael_mbp has joined #ruby
lrocknrolmarc has joined #ruby
Jonah11_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<Jonah11_> is there an elegant way to combine "select" and "first(n)", returning the first n elements of an array that match the criterion specified in a block?
Megtastique has joined #ruby
mjuszczak has quit []
<jhass> so not take_while ?
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
<Jonah11_> jhass, that's my soln right now, but it involves introducing a "ret" array, and i'm not happy with it.
anaeem1 has quit [Remote host closed the connection]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> jhass: I'm able to explain it -- http://stackoverflow.com/a/28681822/2767755
anaeem1 has joined #ruby
<jhass> Jonah11_: huh, how so? Mind to show your current solution?
<Jonah11_> unless there is a way to refer to "the current result array" from within the block that i'm not aware of
<Jonah11_> sure, one sec
mjuszczak has joined #ruby
<vvivv> find
<Jonah11_> jhass: simple example: https://eval.in/292448
mkaesz has quit [Ping timeout: 252 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<jhass> Jonah11_: mmhh, I hoped to learn something about the collection you're iterating
sinkensabe has joined #ruby
anaeem1 has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
<jhass> but in that you can already replace ret with a counter instead
<Jonah11_> jhass: there's nothing domain specific about my question. if you have a better rewrite for my example, that's all i'm looking for
<jhass> taken = 0; ret = foo.take_while {|item| take = taken <= 5 && wanted?(item); taken += 1; take }
<jhass> but I'd just chain .select & .first really
<jhass> throw .lazy. in if your collection is huge
poguez_ has quit [Quit: Connection closed for inactivity]
<Jonah11_> jhass: yeah, the collection is big, so lazy will ensure the entire select doesn't run?
<jhass> yup
<havenwood> >> 1.upto(Float::INFINITY).lazy.select(&:even?).first 3
<eval-in> havenwood => [2, 4, 6] (https://eval.in/292449)
<havenwood> Jonah11_: ^ example
<Jonah11_> cool, did not know about that, that should be good
<Jonah11_> thanks guys
sent1nel has quit []
lidaaa has joined #ruby
vvivv has quit [Ping timeout: 245 seconds]
jerius has quit [Quit: /quit]
lrocknrolmarc has quit [Ping timeout: 244 seconds]
agarie has quit [Ping timeout: 256 seconds]
juanpaucar has joined #ruby
mikey320b has joined #ruby
lolmaus has joined #ruby
Megtastique has quit []
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
s7ry93r has quit [Ping timeout: 256 seconds]
hollywood has quit [Quit: Leaving]
mbeasley has quit [Quit: WeeChat 0.4.2]
mbeasley has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
_Andres has joined #ruby
jottr has joined #ruby
baweaver has joined #ruby
despai has joined #ruby
pengin has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
pengin has joined #ruby
gfawcettpq has quit [Ping timeout: 255 seconds]
adamjleonard has quit [Quit: Leaving...]
yfeldblum has joined #ruby
mhenrixon is now known as mhenrixon|afk
sambao21 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
Aswebb_ has quit []
shellfu is now known as shellfood
pengin has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
multi_io_ has quit [Ping timeout: 255 seconds]
fryguy91 has joined #ruby
multi_io has joined #ruby
codeFiend has quit [Quit: codeFiend]
fryguy9 has quit [Ping timeout: 252 seconds]
jamgood96 has joined #ruby
jamgood96 has left #ruby [#ruby]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thsig has quit [Remote host closed the connection]
joonty has joined #ruby
Crisix has quit [Ping timeout: 264 seconds]
_honning_ has joined #ruby
rubycookie has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<rubycookie> what happens when a thread tries to acquire a mutex but it is in use?
<rubycookie> does it wait?
<rubycookie> wait/block or does the thread die?
comma8 has quit [Read error: Connection reset by peer]
thsig_ has joined #ruby
paolooo has quit [Ping timeout: 246 seconds]
<Hijiri> I'm guessing it would block, that's usually what mutexes do
<Hijiri> but I don't know
pengin has joined #ruby
<Hijiri> there are probably methods for inspecting whether a mutex is already in use, and you could kill the tread when you find that it's in use
yfeldblum has joined #ruby
fabrice31 has quit [Remote host closed the connection]
dopie has joined #ruby
pietr0 has joined #ruby
<havenwood> rubycookie: Give it a try in irb/pry: mutex = Mutex.new; Thread.new { mutex.synchronize { sleep 10 } }; sleep 0.5; mutex.synchronize { puts 'hello!'; :success }
Timgauthier has joined #ruby
renier_ is now known as renier
shellfood is now known as shellfu
<havenwood> rubycookie: (The `sleep 0.5` is just there to make sure the Thread gets the lock first.)
thsig_ has quit [Ping timeout: 256 seconds]
shum has quit [Quit: WeeChat 1.1.1]
jerius has joined #ruby
<jhass> havenwood: Thread.yield ? ;)
sarahbunny is now known as sarahbunny_elsew
ZJvandeWeg has joined #ruby
gregf_ has quit [Ping timeout: 256 seconds]
cpt_yossarian has joined #ruby
<rubycookie> havenwood: it waits
<rubycookie> thanks
<rubycookie> Hijiri: thanks
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thsig has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
thsig has quit [Remote host closed the connection]
shum has joined #ruby
thsig has joined #ruby
n1lo has quit [Quit: Leaving]
adriancb has joined #ruby
graydot has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
RegulationD has joined #ruby
shum has quit [Client Quit]
shum has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
plashchynski has joined #ruby
Beoran__ has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
joshhartigan has joined #ruby
oki_ has joined #ruby
<joshhartigan> If I’ve created a class, can I define a method for it that specifies what to do when I call `puts [objectOfThatClass]`?
<jhass> joshhartigan: puts calls .to_s
fabrice31 has quit [Read error: No route to host]
<joshhartigan> jhass: Thank you :)
<arup_r> Need help
<arup_r> I'm confused
RegulationD has quit [Ping timeout: 256 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
comma8 has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
oki_ has quit [Ping timeout: 256 seconds]
aphprentice has joined #ruby
fryguy91 has quit [Quit: Leaving.]
sevvie has joined #ruby
mhenrixon|afk is now known as mhenrixon
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
Soda has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
<arup_r> Am I disconnected ? :(
neanderslob has joined #ruby
fryguy9 has joined #ruby
<kalusn> arup_r: looks like he is aliasing rand to call, which ary.sample is using
pengin has quit [Ping timeout: 246 seconds]
<arup_r> That I got
baweaver has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 245 seconds]
pdoherty has joined #ruby
<arup_r> but class << gen_to_int ???
<arup_r> what is getting cooked
<kalusn> arup_r: it is a way of extending the "Proc" object
<arup_r> singleton class ?
ghr has joined #ruby
<kalusn> arup_r: it basically let's you redefine the internals of the object
joonty has quit [Quit: joonty]
ekaleido has quit [Quit: Leaving]
<arup_r> Inside the Proc object ?
ta has joined #ruby
<arup_r> Do you know where it has been documented ?
tier has quit [Read error: Connection reset by peer]
paolooo has joined #ruby
tier has joined #ruby
rdark has joined #ruby
Beoran__ has joined #ruby
teddyp1cker has joined #ruby
Soda has joined #ruby
Cust0sL1men has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sinkensa_ has joined #ruby
pdoherty has quit [Client Quit]
sinkensabe has quit [Read error: Connection reset by peer]
willharrison has joined #ruby
<kalusn> arup_r: I could not find any official docs but you could take a look at http://madebydna.com/all/code/2011/06/24/eigenclasses-demystified.html
ghr has quit [Ping timeout: 246 seconds]
sinkensa_ has quit [Remote host closed the connection]
plashchynski has quit [Quit: plashchynski]
shum has quit [Quit: WeeChat 1.1.1]
AndyBotwin has joined #ruby
rubycookie has quit [Ping timeout: 246 seconds]
shum has joined #ruby
chrishough has joined #ruby
ghr has joined #ruby
jbeeze has quit [Read error: Connection reset by peer]
davispuh has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
rupertbg has joined #ruby
aef has quit [Remote host closed the connection]
vvivv has joined #ruby
paolooo has quit [Ping timeout: 246 seconds]
aef has joined #ruby
jamgood96 has joined #ruby
rupertbg has quit [Client Quit]
rupertbg has joined #ruby
<arup_r> ik
mjuszczak has quit []
* gr33n7007h thinks nyan-cat in pry is awesome!
comma8 has quit [Quit: YourBNC - (https://yourbnc.co.uk)]
speaking1ode is now known as speakingcode
_ixti_ has joined #ruby
ismaelga has quit [Remote host closed the connection]
rupertbg has quit [Client Quit]
ixti has quit [Read error: Connection reset by peer]
rodfersou has quit [Quit: leaving]
rupertbg has joined #ruby
rupertbg has quit [Client Quit]
fryguy9 has quit [Quit: Leaving.]
sklik has joined #ruby
Soda has quit [Ping timeout: 255 seconds]
<arup_r> kalusn: makes sense
Guest18957 has joined #ruby
Soda has joined #ruby
baweaver has joined #ruby
lkba_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
ghostpl_ has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
jlast has quit [Remote host closed the connection]
mjuszczak has joined #ruby
adamjleonard has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
fryguy9 has joined #ruby
<arup_r> ok
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<arup_r> got it
<arup_r> sample, internally call #to_int
Soda has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
<arup_r> that's why it has been defined
comma8 has joined #ruby
fmcgeough has joined #ruby
djbkd_ has quit [Remote host closed the connection]
<hanmac> apeiros did you see this? https://www.chillingeffects.org/notices/10416081# ;P
werelivinginthef has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
tcrypt has joined #ruby
Dopagod has quit [Ping timeout: 255 seconds]
lnr has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lanemeyer has quit [Ping timeout: 245 seconds]
Nahra has joined #ruby
jlast has joined #ruby
turtil has joined #ruby
marr has joined #ruby
leafybasil has joined #ruby
Soda has joined #ruby
Dopagod has joined #ruby
lxsameer has quit [Quit: Leaving]
werelivinginthef has quit [Ping timeout: 256 seconds]
_ixti_ has quit [Ping timeout: 250 seconds]
juanpaucar has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
ldnunes has quit [Quit: Leaving]
juanpaucar has joined #ruby
_ixti_ has joined #ruby
<shevy> We have an exclusive & worldwide deal for distributing this content
<shevy> hmm
<shevy> so they have music there
<shevy> :D
Megtastique has joined #ruby
jamgood96 has quit [Remote host closed the connection]
Troy^ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
Soda has quit [Ping timeout: 245 seconds]
iamjarvo_ has joined #ruby
lolmaus has joined #ruby
Troy^ has quit [Client Quit]
bruno- has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
Troy^ has joined #ruby
lnr has left #ruby [#ruby]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
aclearman037 has joined #ruby
jlast has quit [Remote host closed the connection]
rorra has joined #ruby
ZoanthusR has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
Megtastique has quit []
rorra has quit [Client Quit]
rorra has joined #ruby
pengin has joined #ruby
plutonic has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
ismaelga has joined #ruby
oki has joined #ruby
bootstrappm has joined #ruby
mjuszczak has quit []
jamgood96 has joined #ruby
jamgood96 has quit [Client Quit]
_honning_ has quit [Ping timeout: 246 seconds]
elaptics_away is now known as elaptics
oki has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 272 seconds]
dfinninger has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 245 seconds]
wasamasa has quit [Quit: ZNC - http://znc.in]
gfawcettpq has joined #ruby
_djbkd has joined #ruby
dangerousdave has joined #ruby
mikey320b has quit [Quit: Leaving]
Hijiri has joined #ruby
<hanmac> shevy: the bad thing about LED-Traffic-Lights: http://asia.nikkei.com/Japan-Update/LED-traffic-lights-pose-unexpected-hazard
Jinkins has quit [Quit: This computer has gone to sleep]
wasamasa has joined #ruby
wasamasa has quit [Changing host]
wasamasa has joined #ruby
silkfox has joined #ruby
dangerousdave has quit [Client Quit]
lnr has joined #ruby
<shevy> lol
<shevy> such a high tech country
<shevy> and cracked down by nature's force
<shevy> be it a tsunami or simple snow
wicope has quit [Remote host closed the connection]
_honning_ has joined #ruby
teddyp1cker has quit []
lnr has left #ruby [#ruby]
jottr has joined #ruby
pietr0 has quit [Ping timeout: 246 seconds]
gfawcettpq has quit [Ping timeout: 252 seconds]
pengin has quit [Remote host closed the connection]
Jonah11_ has quit [Read error: Connection reset by peer]
Jonah11_ has joined #ruby
_ixti_ has quit [Ping timeout: 264 seconds]
decoponyo has quit [Quit: Leaving...]
<Timgauthier> hanmac shevy thats just an example of shitting light fixtures :P
Jinkins has joined #ruby
<Timgauthier> The truckers in Canada stopped using LED's cause they had similar problems
<Timgauthier> I think volvo's solution was to pipe engine heat over the light lenses
<Timgauthier> why not a super small element in the light lenses at the stoplights to have a heating element?
paulfm has quit [Quit: Zzzzz...]
juanpaucar has quit [Remote host closed the connection]
chrishough has joined #ruby
mhenrixon is now known as mhenrixon|afk
zenith__ has quit [Remote host closed the connection]
Jinkins has quit [Client Quit]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
_djbkd has quit [Ping timeout: 245 seconds]
JDiPierro has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
aclearman037 has quit [Quit: I'm out!]
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
<bricker> What do you guys think is the most underused feature of Ruby?
randiman has joined #ruby
Lildirt has quit [Read error: Connection reset by peer]
<hanmac> bricker: rails? XD
Guest14243 is now known as Dai-chan
<havenwood> hanmac: You mean Ruby is the most underused feature of Rails. :P
alyosha has joined #ruby
codecop has quit [Remote host closed the connection]
Lildirt has joined #ruby
<hoelzro> probably something like __END__
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_honning_ has quit [Ping timeout: 256 seconds]
<hanmac> i have seen cases where eval got overused where send would be better
<GaryOak_> I think dynamic dispatch in Ruby is pretty cool
amacou has joined #ruby
<GaryOak_> but the use cases are limited
<havenwood> bricker: Kernel#abort and Kernel#warn seem underused. I fairly often see `STDERR.puts; exit 1` or whatev.
<havenwood> bricker: Many of the methods on Enumerable.
* Nilium has largely switched to languages without dynamic dispatch because people who find dynamic dispatch cool tend to use it as the hammer for all nails.
ta has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
dfinninger has joined #ruby
<GaryOak_> haha
baroquebobcat has joined #ruby
<Nilium> Also because Ruby's enormous amount of gems is mostly a garbage swamp, but that's just the nature of having an open environment, I think. Same with node.js and npm (except node.js is infinitely worse than Ruby).
charliesome has quit [Quit: zzz]
brb3 has quit [Quit: ZZZzzz…]
<GaryOak_> for the most part the gems get vetted, unless there is a super specific reason for them to exist
gkra has quit [Ping timeout: 250 seconds]
<GaryOak_> and only two people end up using them
jlast has joined #ruby
pengin has joined #ruby
<gr33n7007h> flip flop operator
<GaryOak_> that's a good one
Troy^ has joined #ruby
amacou has quit [Ping timeout: 250 seconds]
mengu has quit []
<havenwood> Nilium: You can always use a curated subset of gems as your gatekeeper. https://www.ruby-toolbox.com/ or http://awesome-ruby.com/ or something you agree with.
Mon_Ouie has joined #ruby
decoponio has joined #ruby
* hanmac never needed the flip flop operator before in a use case ...
RegulationD has joined #ruby
<GaryOak_> hence why it's underused
<havenwood> >.>
<havenwood> That's why... right. :P
<GaryOak_> and because it looks like a range function
FooMunki has quit [Quit: FooMunki]
<havenwood> It'll be gone in Ruby 3.0.
<havenwood> Where it'll be used roughly as much as it currently is, not at all.
<GaryOak_> hahaha
<pipework> havenwood: You've never emulated hardware so that you can emulate software in software that's emulating hardware?
<pipework> Caveman.
brb3 has joined #ruby
brb3 has quit [Client Quit]
<havenwood> pipework: The proceeds of proceeds are no longer proceeds under the revised rules of proceeds.
workmad3 has joined #ruby
<havenwood> pipework: :)
<havenwood> I guess that's about it.
<pipework> havenwood: Then let us proceed to proceed, so that I can proceed to proceedings that proceed in the manner befitting the proceeds appropriate for such proceedings.
allcentury has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<havenwood> pipework: Such proceedings would proceed the proceeds of proceeds as proceeds procedure change, naturally.
maximski has quit [Ping timeout: 246 seconds]
<havenwood> Indeed.
jonr22 has joined #ruby
<pipework> Hm. quite procedural indeed.
jottr has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
oki has joined #ruby
rbennacer has quit [Remote host closed the connection]
mjuszczak has joined #ruby
ptrrr has quit [Quit: ptrrr]
Cadillactica has quit [Quit: Cadillactica]
<TTilus> proceedural even ;)
Rollabun_ has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
aapole has quit [Ping timeout: 246 seconds]
gkra has joined #ruby
centrx has quit [Remote host closed the connection]
ottanta has quit [Changing host]
ottanta has joined #ruby
<pipework> TTilus: I don't get it.
thsig has quit [Ping timeout: 256 seconds]
centrx has joined #ruby
thsig has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
oki has quit [Ping timeout: 244 seconds]
<havenwood> I keep getting the feeling today that I've misunderstood. Then it turns out I have.
lolmaus has joined #ruby
Asher has joined #ruby
Sirupsen has joined #ruby
ta has joined #ruby
<centrx> Is that a pun
mjuszczak has quit []
Ankhers has quit [Ping timeout: 244 seconds]
Sirupsen has quit [Client Quit]
Vivex_ has joined #ruby
<workmad3> pipework: I have a suspicion that TTilus just attempted to correct your correct spelling with an incorrect spelling of procedural...
Soda has joined #ruby
baweaver has quit [Remote host closed the connection]
Pumukel has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
max96at is now known as max96at|off
<havenwood> I thought an attempted pun. centrx: I think not a pun since both from the same Middle French, proceder.
<havenwood> Though maybe the meaning drifted enough to be punny?
Vivex has quit [Ping timeout: 255 seconds]
jfarmer has joined #ruby
<centrx> pune
<havenwood> Punctilio!
maximski has joined #ruby
_djbkd has quit [Remote host closed the connection]
jonr22 has joined #ruby
jonr22 has quit [Remote host closed the connection]
Beoran__ has quit [Ping timeout: 256 seconds]
maximski has quit [Max SendQ exceeded]
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
jonr22 has joined #ruby
maximski has joined #ruby
_djbkd has joined #ruby
<havenwood> punctum rubinus
lolmaus has quit [Ping timeout: 240 seconds]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kaiZen has joined #ruby
lolmaus has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
cajone has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 245 seconds]
<shevy> if you have a module Foo; def bla ... and several more methods. Now, bla() shall also become a class method aka Foo.bla() how would you do this?
baweaver has joined #ruby
x1337807x has joined #ruby
<shevy> my current way is to: def self.bla() and then also define another method bla that will point to Foo.bla
kalusn has quit [Remote host closed the connection]
_djbkd has joined #ruby
<hoelzro> shevy: you mean you want to be able to mixin Foo and have it be a method on the mixing class, but also available as a class method?
charliesome has quit [Quit: zzz]
<hoelzro> I thought there was something like module_function :bla for that
cajone has joined #ruby
<shevy> hoelzro yeah
Soda has quit [Ping timeout: 264 seconds]
<hoelzro> er, wrong version of Ruby =/
<havenwood> hoelzro: 1.9 is dead!
<havenwood> hoelzro: :P
<shevy> hmm I think there was one catch with module_function
<hoelzro> I heard! today, right?
<havenwood> hoelzro: indeed :O
<hoelzro> crazy
<hoelzro> that's the version of Ruby I first learned
<havenwood> hoelzro: ditto
<havenwood> hoelzro: i started Ruby in 1.9.1 days
<havenwood> just in time for 1.9.2 landing
<shevy> oh yeah
<hoelzro> I think I started on 1.9.3
<shevy> that these methods are private
ta has joined #ruby
jottr has joined #ruby
<hoelzro> can you do module_function :bla ; public :bla?
<bootstrappm> i started on 1.8.7
Guest18957 has quit [Quit: Leaving.]
danman has joined #ruby
<havenwood> hoelzro: i don't think so
<bootstrappm> good times
<shevy> lemme test :)
<havenwood> shevy: compare with: extend self
<shevy> but just so I don't forget, I think this is the functionality I'd need, ideally in a shorter way: http://pastie.org/9976245
<shevy> yeah but extend self makes it for all methods in the module right?
meschi has joined #ruby
<shevy> hoelzro's variant works btw
<shevy> though that is a bit weird haha
phutchins has joined #ruby
<hoelzro> def public_module_function(sym) module_function sym ; public sym end # =P
kirun has quit [Quit: Client exiting]
randiman has quit [Quit: (null)]
<shevy> yeah hoelzro
<shevy> I want this in core now!
thsig has quit [Remote host closed the connection]
pwh has quit []
MatthewsFace has joined #ruby
pwh has joined #ruby
ta has quit [Ping timeout: 250 seconds]
Beoran__ has joined #ruby
Jonah11_ has quit []
pietr0 has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JimmyNeutron has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> hoelzro: oh, nice!
cjim has quit [Quit: (null)]
drkush has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
checkit has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimms has joined #ruby
Hijiri has quit [Ping timeout: 246 seconds]
uri_ has quit [Ping timeout: 250 seconds]
<MatthewsFace> Hey guys, so I'm trying to capture the output of a python script within a ruby script
m8 has quit [Read error: Connection timed out]
<MatthewsFace> I can't seem to capture the output with exec()
baroquebobcat has quit [Quit: baroquebobcat]
jottr has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
<MatthewsFace> the script calls the python script, and then exits my ruby script
m8 has joined #ruby
pkrzywicki has joined #ruby
baroquebobcat has joined #ruby
drkush has joined #ruby
axl__ has joined #ruby
<shevy> I got another question now
doodlehaus has quit [Remote host closed the connection]
<havenwood> MatthewsFace: That's how Kernel#exec works, it replaces the current process. Check out Kernel#` docs: http://ruby-doc.org//core-2.2.0/Kernel.html#method-i-60
axl_ has quit [Ping timeout: 265 seconds]
axl__ is now known as axl_
spider-mario has quit [Remote host closed the connection]
uptownhr has joined #ruby
brb3 has joined #ruby
<shevy> the two are equivalent right?
<shevy> (1) class << self
<shevy> (2) self.instance_eval
<shevy> I get 4x the same output, so they seem to be equivalent
thsig has joined #ruby
m8 has quit [Max SendQ exceeded]
odin22 has quit [Read error: Connection reset by peer]
m8 has joined #ruby
weems|mac has quit [Quit: bai]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
zbaxter has joined #ruby
zbaxter has left #ruby [#ruby]
<weaksauce> what use is a singleton method in practice?
<bootstrappm> rand()
<shevy> weaksauce you can specialize a given object at runtime
<shevy> like rulers and peons
<jfarmer> @shevy They are not equivalent.
<shevy> you have a ruler object
joshhartigan has quit [Quit: bye bye]
<shevy> jfarmer oh?
<shevy> hmm
<shevy> and I was so happy already :(
<jfarmer> Run `p [self, self.ancestors]` in each block and see the difference.
msmith has joined #ruby
Pupeno_ has joined #ruby
Rhainur1 has joined #ruby
<MatthewsFace> thanks havenwood
<shevy> k
<MatthewsFace> I guess it helps if I would go look at the docs
<MatthewsFace> Is there a better way you suggest?
<weaksauce> anyone have an example of singleton usage in an opensource project?
<weaksauce> singleton methods*
<weaksauce> not the design pattern
Rhainur has quit [Ping timeout: 245 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<havenwood> MatthewsFace: If you want to run a command and simply return the output to STDOUT as a String, backticks should works nicely.
tejasmanohar has joined #ruby
tejasmanohar has left #ruby [#ruby]
Pupeno has quit [Ping timeout: 264 seconds]
tejasmanohar has joined #ruby
<tejasmanohar> whats the latest ruby version in 2.1.x series
paradisaeidae has joined #ruby
<havenwood> tejasmanohar: 2.1.5
Aswebb_ has joined #ruby
<jfarmer> Listed there
<tejasmanohar> thanks
adamjleonard has quit [Quit: Leaving...]
<MatthewsFace> the python script is using the return function
axl_ has quit [Quit: axl_]
<MatthewsFace> I see nothing with the backticks
caveat- has joined #ruby
<MatthewsFace> it either returns 0 or 1
thsig has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
davispuh has joined #ruby
crueber has quit [Quit: Leaving.]
sent1nel has joined #ruby
<jfarmer> @MatthewsFace Really? http://cl.ly/image/3w0O2s0E3J1R
pkrzywicki has quit [Remote host closed the connection]
<jfarmer> Backticks will capture whatever the process you specify prints to STDOUT
<shevy> weaksauce not me, I don't need it really. if I need other behaviour I can just modify the class anyway
<jfarmer> You can't communicate across processes via a "return" call
caveat- has quit [Client Quit]
jlast has quit [Remote host closed the connection]
<weaksauce> shevy that's kind of what I was curious about if there was some non obvious way that they solve some problem elegantly
<jfarmer> "return" in Python only means something to the Python interpreter; you have to communicate using common ground
<jfarmer> In this case, the larger shell environment with STDIN, STDOUT, pipes, and all the rest
<shevy> weaksauce that's often with ruby - some features are hard to find a use case for :)
jerius has quit [Ping timeout: 264 seconds]
sent1nel has quit [Remote host closed the connection]
riotjon__ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
sent1nel has joined #ruby
sent1nel has quit [Remote host closed the connection]
<MatthewsFace> Got it, that make sense
mroach has joined #ruby
arescorpio has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
sevvie has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 250 seconds]
shellfu is now known as shellfu_afk
Pumukel has quit [Ping timeout: 252 seconds]
dorei has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
adriancb has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Hijiri has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
davispuh has quit [Remote host closed the connection]
Dopagod has quit [Ping timeout: 245 seconds]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 256 seconds]
msmith has quit [Remote host closed the connection]
d0t has joined #ruby
sklik has quit []
tiago has joined #ruby
shellfu_afk has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
d0t has quit [Client Quit]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tiago> Hi, is rubygems broken on debian wheezy? I keep getting this error, when I try to download a package, with --debug
<tiago> Exception `Errno::EAGAIN' at /usr/lib/ruby/1.9.1/net/protocol.rb:141 - Resource temporarily unavailable - read would block
<tiago> I'm not running it behind a proxy
flaccid has quit [Quit: Konversation terminated!]
PaulCapestany has quit []
foureight84 has quit [Quit: Be back later ...]
michael_mbp has quit [Excess Flood]
<shevy> "gem install foo" works for other packages?
nahtnam has joined #ruby
deric_skibotn has quit [Ping timeout: 245 seconds]
Megtastique has quit []
<tiago> shevy: nope
<tiago> tried jekyll and compass
michael_mbp has joined #ruby
<tiago> let me get a log
<shevy> I will try jekyll
PaulCapestany has joined #ruby
<shevy> works fine
sevvie has joined #ruby
<shevy> gem version I have is 2.4.6
uri_ has joined #ruby
<tiago> it's only on my VM, it works well on my laptop
<tiago> I'm on 1.8.23
<shevy> that is old
<workmad3> ancient
<tiago> It's the one in the wheezy repo
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
PaulCapestany has quit [Max SendQ exceeded]
<workmad3> bleh, repo version of rubygems... ancient and has been ripped apart and had the update mechanism removed
<shevy> well, if you wish to stick in debian then debian needs to have a way to update rubygems
<shevy> yeah
<shevy> debian hates alternatives!
<tiago> there is a way
<tiago> an env variable
<jidar> just fork debian again :)
<shevy> if you wish to abandon the debian way: wget http://production.cf.rubygems.org/rubygems/rubygems-2.4.6.tgz
PaulCapestany has joined #ruby
Megtastique has joined #ruby
crdpink2 has joined #ruby
PaulCapestany has quit [Max SendQ exceeded]
atomical has joined #ruby
nopewatelse has quit [Quit: Page closed]
crdpink has quit [Ping timeout: 250 seconds]
PaulCapestany has joined #ruby
<tiago> thanks shevy, done
<tiago> it's just a VM anyway
codeurge has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> yay!
hiyosi has joined #ruby
<shevy> you broke out of the debian prison!
<tiago> $ gem --version
<tiago> 2.4.6
<tiago> :)
<shevy> might still not work something
<shevy> debian uses some weird paths
<tiago> going to try
<shevy> some /var/lib stuff
sevvie has quit [Ping timeout: 252 seconds]
<shevy> one of the first things I do when I install a debian based machine is
<tiago> still getting the same error >_>
<shevy> remove all of ruby there
<tiago> Exception `OpenSSL::SSL::SSLError' at /usr/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
<shevy> that seems another error or?
<shevy> looks as if you also have some problem with openssl
<tiago> now it's https I guess
PaulCapestany has quit [Max SendQ exceeded]
ta has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
mjuszczak has joined #ruby
PaulCapestany has joined #ruby
silkfox has joined #ruby
baweaver has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
jimms has quit []
DeanH has joined #ruby
nettoweb has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
PaulCapestany has quit [Max SendQ exceeded]
enebo has quit [Quit: enebo]
PaulCapestany has joined #ruby
zorak8 has quit [Ping timeout: 265 seconds]
ta has quit [Ping timeout: 272 seconds]
ZJvandeWeg has quit [Quit: WeeChat 1.1.1]
sevvie has joined #ruby
Megtastique has quit []
serivich has joined #ruby
PaulCapestany has quit [Max SendQ exceeded]
silkfox has quit [Ping timeout: 246 seconds]
PaulCapestany has joined #ruby
ismaelga has quit [Remote host closed the connection]
PaulCapestany has quit [Max SendQ exceeded]
pengin has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 272 seconds]
mjuszczak has quit []
ismaelga has joined #ruby
MasterPiece has joined #ruby
pengin has joined #ruby
PaulCapestany has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gccostabr has joined #ruby
roolo has quit [Remote host closed the connection]
PaulCapestany has quit [Max SendQ exceeded]
gregf has quit [Quit: WeeChat 1.0.1]
PaulCapestany has joined #ruby
DeanH has quit [Quit: Textual IRC Client: www.textualapp.com]
jbeeze has joined #ruby
<rooby> could anyone help me add a `sort_by` to an irc bot that is returning a stream list with viewer number? New to ruby and can't wrap my head around it? At the moment it returns streams along the line of "<Bot> http://www.twitch.tv/streamX (17) http://www.twitch.tv/streamY (29)", I'd like it to list them by the viewer number in ascending or descending order if someone could help?
thiagovsk has quit [Quit: Connection closed for inactivity]
Hijiri has joined #ruby
pengin has quit [Ping timeout: 245 seconds]
<havenwood> rooby: It was a Ruby 1.8 thing that's no longer nice, so drop: require 'rubygems'
PaulCapestany has quit [Client Quit]
pengin has joined #ruby
baweaver has joined #ruby
jherbst has joined #ruby
<rooby> havenwood: alright
willharrison has joined #ruby