apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: 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
sepp2k has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby
havenwood has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
ta has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
saarinen has joined #ruby
ghr has joined #ruby
jmbrown412 has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
jdj_dk has joined #ruby
benlieb has joined #ruby
kbarry has quit [Ping timeout: 240 seconds]
spider-mario has quit [Read error: Connection reset by peer]
JGreG has joined #ruby
IceDragon has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
kalusn has joined #ruby
jaimef has quit [Excess Flood]
jmbrown412 has quit [Ping timeout: 252 seconds]
xcv has quit [Remote host closed the connection]
JGreG has quit [Client Quit]
britneywright has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
charlied3 has joined #ruby
diegoviola has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
ddv has joined #ruby
hgl has joined #ruby
jdj_dk has quit [Ping timeout: 240 seconds]
jaimef has joined #ruby
kalz has joined #ruby
NinoScript has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kalusn has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Remote host closed the connection]
britneywright has joined #ruby
omosoj has joined #ruby
charlied3 has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
nateberkopec has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
hgl has quit [Ping timeout: 256 seconds]
aspires has quit []
charlied3 has joined #ruby
george2 is now known as george2|chakra
george2|chakra is now known as george2
banjara has quit [Quit: Leaving.]
nateberkopec has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
WillAmes has joined #ruby
tjr9898 has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
tjr9898 has joined #ruby
marr has quit [Ping timeout: 240 seconds]
drawingthesun has joined #ruby
kireevco1 has left #ruby [#ruby]
kireevco1 has joined #ruby
b00stfr3ak has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
tjr9898 has quit [Remote host closed the connection]
<nwkr> h = {a: true, b: false, c: true}; h.key true # => :a
kireevco1 has left #ruby [#ruby]
<nwkr> is there any method that would return [:a, :c] in this case?
kireevco has joined #ruby
_Blizzy has quit [Ping timeout: 246 seconds]
<benzrf> > h = {a: true, b: false, c: true}; h.select {|k, v| v == true}.map &:first
<benzrf> >> h = {a: true, b: false, c: true}; h.select {|k, v| v == true}.map &:first
<eval-in__> benzrf => [:a, :c] (https://eval.in/171225)
<benzrf> might be a bit faster:
arrubin has joined #ruby
<benzrf> >> h = {a: true, b: false, c: true}; h.keys.select {|k| h[k] == true}
<eval-in__> benzrf => [:a, :c] (https://eval.in/171226)
zz_karupa is now known as karupa
<frankjpinto> quick fingers
<nwkr> thanks benzrf. the answer is: no, there is no ready-to-use method for that :)
oo_ has joined #ruby
nwkr is now known as Nowaker
icarus has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
Hanmac has joined #ruby
<frankjpinto> >> def you_sure?(h); h.keys.select {|k| h[k] == true}; end; you_sure?({a: true, b: false, c: true})
<eval-in__> frankjpinto => [:a, :c] (https://eval.in/171227)
<frankjpinto> ;)
blackmes1 has quit [Ping timeout: 260 seconds]
kireevco has quit [Quit: Leaving.]
IceDragon has quit [Ping timeout: 252 seconds]
<Nowaker> frankjpinto: it's ok. I was just wondering if there is a ready-to-use method for that without a need for hand-written block, e.g. hash.do_magic true => [:a, :c] :)
Hanmac1 has quit [Ping timeout: 264 seconds]
<frankjpinto> haha yeah I figured
IceDragon has joined #ruby
Channel6 has joined #ruby
nateberkopec has joined #ruby
xcv has joined #ruby
oo_ has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
ramfjord has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
lyuzashi has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
enebo has joined #ruby
jfran_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
s34n has left #ruby [#ruby]
sepp2k has quit [Read error: Connection reset by peer]
supermat has quit [Ping timeout: 256 seconds]
bricker`work has quit [Quit: leaving]
supermat has joined #ruby
oo_ has joined #ruby
Arkaniad has joined #ruby
1JTAAT2YR has joined #ruby
replay has quit []
<zalmoxes> i need to scrape data from a website but they do everything via ajax, which means i have to figure out how to use selenium or some other library to do that. i've gotten so used to APIs that having to do this is actually making me a little mad
nateberkopec has joined #ruby
sevenseacat has joined #ruby
Arkaniad has quit [Ping timeout: 245 seconds]
extrapointss has joined #ruby
<extrapointss> Hi
<extrapointss> Trying to do something with mechanize gem
<zalmoxes> ha!
<zalmoxes> i was just talking about that
* zalmoxes is also trying to do something with mechanize
jay__ has quit []
<extrapointss> formFields.each { |f| puts f.name } gives me a name of Template$ctl07$ctl00$txtFee
SilkFox_ has joined #ruby
<extrapointss> so we already figured out that there's a field called that
CodeBunny has quit [Ping timeout: 240 seconds]
<extrapointss> now if I want to set its value I should do
JJMalina has joined #ruby
<extrapointss> form.field_with['Template$ctl07$ctl00$txtFee'].value = "0.2"
cashnguns has joined #ruby
awc737 has joined #ruby
awc737 has quit [Max SendQ exceeded]
<extrapointss> and yet...
<extrapointss> I get
<extrapointss> NoMethodError: undefined method `[]' for #<Mechanize::Form::Hidden:0x0000010500f6a8>
nateberkopec has quit [Ping timeout: 240 seconds]
<extrapointss> zalmoxes, nice. I wouldn't be much help, mainly because I am totally new to programming
_2_Maria has joined #ruby
<_2_Maria> hi
hgl has joined #ruby
<extrapointss> hi
<_2_Maria> what up
<extrapointss> nothing much
<extrapointss> getting a NoMethodError: undefined method `[]' for #<Mechanize::Form::Hidden:0x0000010500f6a8>
<_2_Maria> who r u
<zalmoxes> extrapointss: i think the format you have to use is form.field_with(:id => 'somedata')
<zalmoxes> instead of []
jottr_ has quit [Ping timeout: 255 seconds]
CaptainJet has quit [Read error: Connection reset by peer]
<extrapointss> Thanks, I tried puts form.field_with[:name => 'Template$ctl07$ctl00$txtFee'].text
<extrapointss> but it still gives the same crap
<_2_Maria> what is from field
davispuh has quit [Remote host closed the connection]
<zalmoxes> ()
<extrapointss> what do you mean ()?
JJMalina has quit [Ping timeout: 240 seconds]
<_2_Maria> I trying to download what app but don't getting it
saarinen has quit [Quit: saarinen]
<zalmoxes> you have [] around field_with()
<extrapointss> Oh that's retarded
<_2_Maria> what do u mean
<extrapointss> damn
diegovio1 has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
jmeeuwen has joined #ruby
CaptainJet has joined #ruby
ghr has joined #ruby
edgarjs is now known as edgarjs_afk
mconnolly has joined #ruby
nobitanobi has quit [Remote host closed the connection]
kalusn has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
SilkFox_ has quit [Ping timeout: 256 seconds]
hgl has quit [Quit: Computer has gone to sleep.]
Hobogrammer has joined #ruby
Doppp has joined #ruby
pwk has quit [Quit: Leaving]
baweaver has joined #ruby
kalusn has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 255 seconds]
bricker`LA has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
sgen has joined #ruby
<extrapointss> zalmoxes: thanks for that, I have to go sleepy
baweaver has quit [Ping timeout: 264 seconds]
<extrapointss> can't believe it was such a dumb thing, of course it wouldn't understand the [] method, I expect that gets converted into a named method for arrays like thisArray.selectElement('test') for thisArray['test']
extrapointss has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
extrapointss has joined #ruby
nateberkopec has joined #ruby
bmurt has quit []
Arkaniad has joined #ruby
tus has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: This computer has gone to sleep]
extrapointss has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
drawingthesun has quit [Ping timeout: 255 seconds]
robustus has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robustus has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
tus has joined #ruby
sgen has quit [Quit: Leaving]
_2_Maria has quit [Remote host closed the connection]
tus has quit [Client Quit]
diegovio1 is now known as diegoviola
Arkaniad has quit [Ping timeout: 240 seconds]
dc_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
arya_ has joined #ruby
Zesty has joined #ruby
sevenseacat has joined #ruby
Photism has quit [Quit: Leaving]
dc_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
agent_white has joined #ruby
enebo has quit [Quit: enebo]
nateberkopec has joined #ruby
febuiles has quit [Remote host closed the connection]
febuiles has joined #ruby
dc_ has joined #ruby
Arkaniad has joined #ruby
extrapointss has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
francisfish has joined #ruby
frankS2 has quit [Ping timeout: 240 seconds]
moted has quit [Quit: moted]
nateberkopec has quit [Ping timeout: 240 seconds]
extrapointss has quit [Remote host closed the connection]
johnrover has quit [Quit: johnrover]
SilkFox_ has quit [Ping timeout: 256 seconds]
francisfish has quit [Ping timeout: 264 seconds]
johnrover has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilverKey has joined #ruby
hamakn has quit [Remote host closed the connection]
sailias has joined #ruby
havenwood has joined #ruby
EasyCo has joined #ruby
andrewhl has joined #ruby
andrewhl has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
lewix has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Shidash has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
frankjpinto has quit [Ping timeout: 240 seconds]
frankS2 has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
obscured has joined #ruby
tokik has joined #ruby
emptyflask has joined #ruby
nateberkopec has joined #ruby
<agent_white> Ello everyone
Hanmac has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
sgen has joined #ruby
omosoj has quit [Quit: Leaving]
moritzs has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
johnrover_ has joined #ruby
hamakn has joined #ruby
ghr has joined #ruby
<pontiki> good evening, agent_white
johnrover has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
johnrover_ is now known as johnrover
nateberkopec has quit [Ping timeout: 240 seconds]
d4nk has quit []
darkxploit has quit [Ping timeout: 260 seconds]
kalusn has joined #ruby
jmbrown412 has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 256 seconds]
Wolland has quit [Remote host closed the connection]
Hanmac has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
virtualize has joined #ruby
Wolland has joined #ruby
bricker`LA has joined #ruby
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderhs has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
oso|away has quit [Ping timeout: 240 seconds]
Hamled has quit [Ping timeout: 240 seconds]
nevans has quit [Ping timeout: 240 seconds]
sgen has quit [Quit: Leaving]
nevans has joined #ruby
kireevco has joined #ruby
Hamled has joined #ruby
kalusn has quit [Ping timeout: 252 seconds]
mark06 has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
emptyflask has quit [Remote host closed the connection]
oso|away has joined #ruby
oso|away is now known as oso96_2000
emptyflask has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
nighthwk1 has joined #ruby
nighthwk1 has quit [Remote host closed the connection]
emptyflask has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
sgen has joined #ruby
snath has joined #ruby
sgen has quit [Client Quit]
Guest17934 has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
coderhs has joined #ruby
Spami has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
nfk has quit [Ping timeout: 252 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
baroquebobcat has quit [Quit: baroquebobcat]
Soda has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 245 seconds]
Guest17934 has quit [Ping timeout: 240 seconds]
Guest17934 has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
phi_eagles05 has joined #ruby
eka has joined #ruby
<pontiki> that's kind of interesting
febuiles_ has joined #ruby
djbkd has joined #ruby
freerobby has joined #ruby
fold has joined #ruby
nateberkopec has joined #ruby
hgl has joined #ruby
febuiles has quit [Ping timeout: 264 seconds]
febuiles_ has quit [Ping timeout: 240 seconds]
<mark06> thanks
radic has quit [Ping timeout: 256 seconds]
<pontiki> i recall something similar in CPAN
<pontiki> but not one where it actually reads the source
akosednar has quit [Ping timeout: 245 seconds]
radic has joined #ruby
heftig has quit [Ping timeout: 256 seconds]
_maes_ has joined #ruby
akosednar has joined #ruby
heftig has joined #ruby
ferr has quit [Ping timeout: 256 seconds]
febuiles has joined #ruby
saarinen has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mconnolly has quit [Quit: mconnolly]
aspires has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
moritzs has quit [Ping timeout: 260 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimodo has joined #ruby
aspires has quit [Client Quit]
Soliah has quit [Read error: Connection reset by peer]
Soliah has joined #ruby
jaequery has joined #ruby
obscured has quit [Quit: leaving]
hgl has quit [Remote host closed the connection]
hgl has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
Kuda has joined #ruby
emptyflask has joined #ruby
kireevco has quit [Quit: Leaving.]
benlieb has joined #ruby
aspires has joined #ruby
chipotle has quit [Quit: cya]
Beoran_ has joined #ruby
cashnguns has quit [Ping timeout: 245 seconds]
braincrash has quit [Quit: bye bye]
ghr has joined #ruby
kireevco has joined #ruby
Beoran has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
saarinen has quit [Quit: saarinen]
johnrover_ has joined #ruby
CorpusCallosum has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
johnrover has quit [Ping timeout: 240 seconds]
johnrover_ is now known as johnrover
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
kalusn has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
benlieb has quit [Ping timeout: 240 seconds]
aspires has quit []
charlied3 has quit [Quit: WeeChat 0.4.2]
adantj has quit [Ping timeout: 255 seconds]
charlied3 has joined #ruby
User458764 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Takle has quit [Ping timeout: 255 seconds]
kireevco has quit [Quit: Leaving.]
kalusn has quit [Ping timeout: 256 seconds]
Noob101 has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
<Noob101> Hi everyone.
<Noob101> Ok going to sleep, have a good one folks!
dc_ has quit [Remote host closed the connection]
maestrojed has joined #ruby
aspires has joined #ruby
johnrover has quit [Quit: johnrover]
emptyflask has quit [Remote host closed the connection]
emptyflask has joined #ruby
cerberblue has joined #ruby
bmurt has joined #ruby
JoshGlzBrk has joined #ruby
chrishough has quit [Quit: chrishough]
saarinen has joined #ruby
saarinen has quit [Client Quit]
kireevco has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
emptyflask has quit [Remote host closed the connection]
nickenchuggets has joined #ruby
emptyflask has joined #ruby
britneywright has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m3_del has joined #ruby
emptyflask has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
jmbrown412 has quit [Remote host closed the connection]
edmellum has quit [Quit: Connection closed for inactivity]
bluOxigen has joined #ruby
lewix has joined #ruby
towbes has quit [Quit: Leaving]
lewix has quit [Remote host closed the connection]
febuiles_ has joined #ruby
febuiles has quit [Read error: Connection reset by peer]
lukebyrne has joined #ruby
saarinen has quit [Quit: saarinen]
baweaver has joined #ruby
towbes has joined #ruby
towbes has joined #ruby
towbes has quit [Changing host]
jxf has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
<jxf> I'm working on the Uncle Bob bowling kata, and wanted to try something a little different but I'm stuck on how to do it. Specifically, I want to turn an array of bowling rolls into an array of arrays of frames. So, e.g., [10, 4, 6, 7, 3, 10, 2, 4, ...] becomes: [[10], [4, 6], [7, 3], [10], [2, 4], ...].
coderhs has joined #ruby
<jxf> Essentially, I want to take elements from the flattened array and put them into a subarray for each frame until the total is 10 for each frame or there are two elements in it. Or, alternatively, if it's the tenth frame, I want to take up to three elements instead.
febuiles has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
<jxf> The best I can do right now is a for loop, but I was wondering if there's a nice Enumerable way to pull it off.
baweaver has quit [Ping timeout: 245 seconds]
tungd has joined #ruby
federico has joined #ruby
saarinen has joined #ruby
orionstein_away is now known as orionstein
lukebyrne has left #ruby [#ruby]
federico is now known as febuiles__
febuiles_ has quit [Read error: Connection reset by peer]
febuiles has quit [Read error: No route to host]
existensil has quit [Ping timeout: 264 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
francisfish has quit [Ping timeout: 245 seconds]
dwayhs has quit [Read error: Connection reset by peer]
dwayhs has joined #ruby
oo_ has quit [Remote host closed the connection]
Kuda has quit [Quit: Byebye!]
Kuda has joined #ruby
jmbrown412 has joined #ruby
dc_ has joined #ruby
febuiles has joined #ruby
aspires has quit []
saarinen has quit [Quit: saarinen]
tectonic has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
jack_rabbit has joined #ruby
febuiles__ has quit [Ping timeout: 252 seconds]
sputnik1_ has joined #ruby
sputnik1_ has quit [Client Quit]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deric_skibotn has quit [Ping timeout: 272 seconds]
foo-bar- has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
VinceThePrince has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
<jxf> Is there anything that's like a combination of Enumerable#take and Enumerable#drop? e.g. if I had "[4, 5, 6, 7, 8].splice(3)" I'd want "[[4, 5, 6], [7, 8]]" (take n elements in one array, return the rest in another).
<jxf> (where "#splice" is my made-up name for that method)
johnrover has joined #ruby
foo-bar- has quit [Ping timeout: 255 seconds]
phi_eagles05 has quit [Quit: leaving]
bricker`LA has joined #ruby
ghr has joined #ruby
<bricker`LA> This is so weird:
JBreit has joined #ruby
<bricker`LA> >> if false; a = 1; end; puts a
<eval-in__> bricker`LA => ... (https://eval.in/171284)
<sevenseacat> whats weird about that
arup_r has joined #ruby
<bricker`LA> sevenseacat: a should be undefined because ruby should never reach that branch
lewix has joined #ruby
<bricker`LA> I mean, if anybody looked at that code, they'd say "a is undefined, of course." It's just unintuitive that it becomes nil
<jxf> bricker`LA: variables declared in an if statement have the same local scope as variables declared at the top level of the method
lewix has quit [Remote host closed the connection]
duncannz has joined #ruby
<bricker`LA> jxf: Right, I know, but the confusing part is that the branch is never reached yet the variable is still defined
lewix has joined #ruby
<jxf> bricker`LA: the interpreter still saw it :)
<bricker`LA> :)
<arup_r> How I can convert (2.0).to_s gives '2.0' Is there any method like (2.0).any_method #=> '2' ?
jdj_dk has joined #ruby
<bricker`LA> It's like javascript! JS moves all variable declaration to the top of the scope, so you can actually use a variable before you declare it in JS
<jxf> arup_r: (2.0).to_i
foo-bar- has joined #ruby
<jxf> >> (2.0).to_i
<eval-in__> jxf => 2 (https://eval.in/171285)
mark06 is now known as mark06_away
ghr has quit [Ping timeout: 255 seconds]
kalusn has joined #ruby
<jxf> arup_r: or, if you want a string, just call #to_s on it:
lewix has quit [Remote host closed the connection]
<jxf> >> (2.0).to_i.to_s
<eval-in__> jxf => "2" (https://eval.in/171286)
lewix has joined #ruby
<arup_r> hehehe I do know. looking for any single method exist or not to do the same ...
<jxf> bricker`LA: here's a convincing demonstration:
<jxf> >> defined?(lol_wut) and lol_wut = 0
<eval-in__> jxf => nil (https://eval.in/171287)
JBreit has left #ruby ["Leaving"]
sailias has quit [Ping timeout: 245 seconds]
lewix has quit [Remote host closed the connection]
<bricker`LA> jxf: Here's the other confusing part... the interpreter sees that variable and goes "nil!". Yet this is totally fine:
<bricker`LA> >> if false; shfjksdfhdsjkfhks something() and whatever? ; end
<eval-in__> bricker`LA => nil (https://eval.in/171288)
lewix has joined #ruby
<jxf> >> bricker`LA: that's because there's no assignment there so it doesn't have to allocate space in advance
<eval-in__> jxf => /tmp/execpad-9d6cfb387fc1/source-9d6cfb387fc1:2: unterminated string meets end of file ... (https://eval.in/171289)
<jxf> er oops
<jxf> bricker`LA: that's because there's no assignment there so it doesn't have to allocate space in advance
<bricker`LA> jxf: hmmmm
<jxf> bricker`LA: so there's no side effects when you invoke nonexistent methods on a code branch that doesn't get called
<bricker`LA> jxf: that explains it completely
<jxf> (well, in MRI)
coderhs has joined #ruby
<bricker`LA> jxf: the allocation is something I hadn't considered
CorpusCallosum has joined #ruby
lewix has quit [Remote host closed the connection]
<bricker`LA> :)
jdj_dk has quit [Ping timeout: 260 seconds]
lewix has joined #ruby
bmurt has quit []
sputnik1_ has joined #ruby
lewix has quit [Remote host closed the connection]
kalusn has quit [Ping timeout: 272 seconds]
lewix has joined #ruby
anaeem1 has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
Davedo has quit [Ping timeout: 245 seconds]
lewix has quit [Remote host closed the connection]
Wolland has quit [Read error: Connection reset by peer]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmbrown412 has joined #ruby
Wolland has joined #ruby
lewix has joined #ruby
dayepa has quit [Quit: dayepa]
theharshest has joined #ruby
dayepa has joined #ruby
lewix has quit [Remote host closed the connection]
arup_r has left #ruby [#ruby]
umpc[away] has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
jmbrown412 has quit [Ping timeout: 245 seconds]
Guest17934 has quit [Read error: Connection reset by peer]
mark06_away is now known as mark06
CorpusCallosum has quit [Remote host closed the connection]
johnrover has quit [Quit: johnrover]
Photism has joined #ruby
hgl has quit [Quit: Lingo - http://www.lingoirc.com]
Deele has joined #ruby
xcv_ has joined #ruby
CaptainJet has quit []
umpc[away] has quit [Quit: Textual IRC Client: www.textualapp.com]
Davedo has joined #ruby
duncannz has quit [Quit: Leaving]
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
xcv has quit [Ping timeout: 272 seconds]
bato_ has joined #ruby
agjacome has quit [Quit: leaving]
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
saarinen has joined #ruby
saarinen has quit [Client Quit]
User458764 has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
febuiles_ has joined #ruby
bato has quit [Ping timeout: 240 seconds]
Kuda has quit [Quit: Sleep]
febuiles has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
User458764 is now known as User458764_NotHe
coderhs has joined #ruby
coderhs has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
jeaye has joined #ruby
banjara has joined #ruby
CorpusCallosum has joined #ruby
zorak has quit [Read error: Connection reset by peer]
charlied3 has quit [Ping timeout: 256 seconds]
stytown has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
MCDev has joined #ruby
oo_ has joined #ruby
hgl has joined #ruby
User458764 has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
User458764_NotHe has quit [Ping timeout: 245 seconds]
alexju has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 264 seconds]
Davedo has quit [Ping timeout: 272 seconds]
Channel6 has quit [Quit: Leaving]
kireevco has quit [Quit: Leaving.]
JoshGlzBrk has joined #ruby
bradleyprice has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
duncannz has joined #ruby
umpc has joined #ruby
User458764 has quit [Ping timeout: 256 seconds]
aganov has joined #ruby
nazdaq has joined #ruby
<nazdaq> Hello!
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
robertodecurnex has joined #ruby
ghr has joined #ruby
tectonic has quit []
Davedo has joined #ruby
bato_ has quit [Ping timeout: 245 seconds]
febuiles_ has quit [Remote host closed the connection]
febuiles has joined #ruby
vpretzel has joined #ruby
alexju has joined #ruby
tectonic has joined #ruby
jdj_dk has joined #ruby
kalusn has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
tungd has quit [Read error: Connection reset by peer]
robertodecurnex has quit [Remote host closed the connection]
robertodecurnex has joined #ruby
SilverKey has quit [Quit: Halted.]
cerberblue has quit [Ping timeout: 264 seconds]
xcv_ has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 255 seconds]
bricker`LA has joined #ruby
kalusn has quit [Ping timeout: 260 seconds]
jmbrown412 has joined #ruby
whyy has joined #ruby
jmbrown412 has quit [Ping timeout: 272 seconds]
arrubin has joined #ruby
charliesome has joined #ruby
nazdaq has quit [Quit: Bye]
heftig has quit [Quit: Quitting]
tectonic has quit []
sigurding has joined #ruby
tobago has joined #ruby
User458764 has joined #ruby
johnrover has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
hgl_ has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anarang has joined #ruby
timonv has joined #ruby
hgl has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
sigurding has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
Morkel has joined #ruby
kireevco has joined #ruby
washtubs has quit [Ping timeout: 272 seconds]
kaihara has joined #ruby
saarinen has quit [Quit: saarinen]
JohnBat26 has joined #ruby
User458764 is now known as User458764_NotHe
dik_dak has quit [Quit: Leaving]
banjara has quit [Quit: Leaving.]
umpc has left #ruby ["Textual IRC Client: www.textualapp.com"]
francisfish has joined #ruby
dc_ has quit [Remote host closed the connection]
User458764_NotHe has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
dc_ has joined #ruby
francisfish has quit [Ping timeout: 272 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
sputnik1_ has joined #ruby
sputnik1_ has quit [Client Quit]
tectonic has joined #ruby
relix has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doev has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
bal has joined #ruby
johnrover has quit [Quit: johnrover]
tzudot has joined #ruby
havenwood has joined #ruby
timonv has quit [Remote host closed the connection]
ghr has joined #ruby
foo-bar- has quit [Remote host closed the connection]
foo-bar- has joined #ruby
charliesome has joined #ruby
kireevco has quit [Quit: Leaving.]
Audace has joined #ruby
starkhalo has quit [Ping timeout: 240 seconds]
Audace has quit [Max SendQ exceeded]
havenwood has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
agjacome has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
stytown has quit [Quit: stytown]
timonv has joined #ruby
<tzudot> Hi everyone
<tzudot> I have installed the latest version of ruby ( 2.1.2 ) with ruby-install.
alem0lars has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
<tzudot> but have a weird situation with gem paths.
foo-bar- has quit [Ping timeout: 264 seconds]
sdouglas has joined #ruby
<tzudot> the gem path from 'gem env' and ruby -e 'puts Gem.user_dir'
<tzudot> differs
Wolland has quit [Remote host closed the connection]
dc_ has quit []
Wolland has joined #ruby
ramfjord has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<tzudot> what needs to done while configuring ruby that will ensure there is no such discrepancy?
<tmcgoo> anyone having trouble getting into rubyonrails channel?
<tzudot> i have observed this behavior starting from release, 2.1.1.
Audace has joined #ruby
<sevenseacat> tmcgoo: do you have a registered account?
Wolland has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 252 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
<tmcgoo> im not sure, i was in it before though
Wolland has joined #ruby
<tmcgoo> i cant even click it now though
vyorkin has joined #ruby
agent_white has joined #ruby
<sevenseacat> i dont know what youre clicking
hgl_ has quit [Quit: Computer has gone to sleep.]
<sevenseacat> #rubyonrails is alive and kicking
jmbrown412 has joined #ruby
<tmcgoo> theres not a limit to channels is there? im on 6
hgl_ has joined #ruby
<agent_white> Depends on your IRC client? Idk.
dc_ has joined #ruby
why_away has joined #ruby
<tmcgoo> hmm
joelroa has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Quit: Leaving.]
<agent_white> Try to join more channels and you'll find out quickly.
joelroa has joined #ruby
VinceThePrince is now known as Macaveli
tzudot has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 260 seconds]
whyy has quit [Ping timeout: 264 seconds]
jrhe has joined #ruby
jmbrown412 has quit [Ping timeout: 245 seconds]
<tmcgoo> what sql browser alternative do you guys use for postreqgl
sdouglas has quit [Remote host closed the connection]
<tmcgoo> postgresql
<tmcgoo> forwindows
<sevenseacat> sql browser?
<tmcgoo> sqlite browse
<tmcgoo> browser*
<sevenseacat> what for?
Kricir has joined #ruby
<tmcgoo> just trying to switch from sqlite3 to postgresql
hgl_ has quit [Ping timeout: 272 seconds]
<tmcgoo> ive changed gems, downloaded the postgresql exe and ran it
<tmcgoo> now i want to view the database
<sevenseacat> oh... normally i would just use the cli for that
tectonic has quit []
<tmcgoo> oh you view databases throught he command line?
<sevenseacat> yeah
<tmcgoo> hmm
<tmcgoo> what about viewing a database on a heroku app, cli as well
<tmcgoo> ?
<sevenseacat> yeah
<tmcgoo> hmm, ima have to google this
ayaz has joined #ruby
dn0v has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: Going AFK...]
dangerousdave has joined #ruby
sdouglas has joined #ruby
mgberlin has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
<shevy> google google google
<shevy> how else to find pr0n
sigurding has joined #ruby
dc_ has quit []
ramfjord has quit [Ping timeout: 256 seconds]
hakunin has quit [Ping timeout: 240 seconds]
vali has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sdouglas has quit [Ping timeout: 245 seconds]
<agent_white> shevy: Nah nah, bing proved to be the pr0n-search engine.
cerberblue has joined #ruby
peret has quit [Remote host closed the connection]
havenwood has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
why_away has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
vali has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
PanPan has joined #ruby
oso96_2000 has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
alexju has quit [Remote host closed the connection]
oso|away has joined #ruby
<shevy> what the heck is bing
<shevy> that sounds like ping pong
oso|away is now known as oso96_2000
<shevy> but chinese
<shevy> bing bong
<shevy> hahahah
<shevy> I am amusing myself!
foo-bar- has joined #ruby
hakunin has joined #ruby
<agent_white> shevy: It either must be the early morning, or late night there ;D
BadQuanta has joined #ruby
<shevy> early morning here
<shevy> and I must leave in about 20 minutes and still have shitloads of things to finish here :(
foo-bar- has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
foo-bar- has joined #ruby
fabrice31 has joined #ruby
dangerousdave has quit []
sdouglas has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
foo-bar- has quit [Ping timeout: 240 seconds]
zkay11 has left #ruby [#ruby]
ephemerian has joined #ruby
<jrhe> I need to create an array where by each evenly indexed element is the same and every odd element is some arbitrary data. Whats the best way of doing this? Creating an array of the same element and then zip it with the data array?
benzrf is now known as benzrf|offline
<pontiki> jrhe: that would actually work
<jrhe> pontiki: I know it would but ruby has some insanely nice way of doing things so wondered if there was a better way
<Hanmac> jrhe:
<Hanmac> >> [1,2,3,4].zip(["x"].cycle)
<eval-in__> Hanmac => [[1, "x"], [2, "x"], [3, "x"], [4, "x"]] (https://eval.in/171453)
alem0lars has joined #ruby
<Hanmac> >> [1,2,3,4].zip(["x"].cycle).flatten
<eval-in__> Hanmac => [1, "x", 2, "x", 3, "x", 4, "x"] (https://eval.in/171454)
<pontiki> idk, jrhe, what Hanmac is showing is pretty cool rubyisms
alem0lars has quit [Client Quit]
agjacome has quit [Quit: leaving]
<pontiki> then you just want to flip them so the evenly indexed ones are identical
<jrhe> >> [1,2,3,4].zip([“x”].times 4).flatten
claymore has joined #ruby
<jrhe> I guess Hanmac’s way is better as then the second array doesn’t need to be made
Takle has joined #ruby
<jrhe> pontiki: Flip them?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jrhe> >> ["x"].cycle.zip([1,2,3,4]).flatten
<eval-in__> jrhe => [FATAL] failed to allocate memory (https://eval.in/171465)
alem0lars has joined #ruby
<Hanmac> jrhe: first Array does not have a times method, second your MacOSX did fuckup your text line, you should switch to another os
<pontiki> oh, you wanted the even one's identical, right? so the first index is zero (0), right?
<jrhe> pontiki: Correct
<jrhe> Hanmac: So it doesn't
<jrhe> Hanmac: Which bit did it fuck up?
<pontiki> which is even, the "x" is the identical bit
<pontiki> you can just reverse the whole array and be done at that point
yfeldblum has joined #ruby
jmbrown412 has joined #ruby
<Hanmac> jrhe: i did type into the text this "x" ... your line does have this “x” ... so i think that OSX does fuckup with your input and turned " into “ WITHOUT asking you
francisfish has joined #ruby
<pontiki> jrhe: what are you using for an irc client
<jrhe> pontiki: true. This array is going to be big though. The whole point is that the API I’m calling separates out operations and data so it doesn’t have to unpack twice.
<jrhe> pontiki: irccloud
moritzs has joined #ruby
<Hanmac> >> [1,2,3,4].zip(["x"].cycle).map(&:reverse).flatten
<eval-in__> Hanmac => ["x", 1, "x", 2, "x", 3, "x", 4] (https://eval.in/171468)
<jrhe> “
<jrhe> Yeah
<jrhe> its making them “magic"
<pontiki> seems as though it's doing that silly magic quotes thing
<Hanmac> yeah ... only Apple can sell bugs as "magic"
<jrhe> Hanmac: Lol. Its not apple I don’t think. I think its irc cloud.
<jrhe> Hanmac: Linux guy?
<zenspider> Hanmac: just fucking stop.
<zenspider> it's horseshit and you know it.
<Hanmac> yep, ubuntu user and prout (even if i dont use unity)
<shevy> *proud
<zenspider> if only you used an OS with system wide spell checking.
<zenspider> you know... like osx
<sevenseacat> !popcorn2
francisfish has quit [Ping timeout: 240 seconds]
<Hanmac> zenspider: haha linux has systemwide spell checks too
<shevy> sevenseacat don't shock me like that!
<zenspider> clearly not
<shevy> that looked like a zombie eating popcorn
<Hanmac> zenspider: i needed to work on a mac laptop once, i know how shity the osx system can be
<zenspider> anyone have this book? http://www.cleveralgorithms.com worth it?
<zenspider> one data point. that's fantastic. tell it to someone who gives a shit
<zenspider> "shitty". dumbass
<Hanmac> zenspider: then why does nearly every open program i have open does have spell checks ? (and thats not addions)
<sevenseacat> settle, children
<shevy> hey osx users have homebrew!
<shevy> debian users have perl-dpkg and gentoo has python-emerge. nobody uses ruby :(
<shevy> sevenseacat seattle?
<shevy> children settle in seattle
<zenspider> shevy: sad, but true wrt ruby on ubuntu-family... tho the packages DO seem to be getting better.
<shevy> ok time to leave here now for work (yuck...)
jprovazn has joined #ruby
<ddv> osx is the worlds most advanced operating system
mgberlin has quit [Remote host closed the connection]
<pontiki> it's easy enough to turn the magic quotes off
<agent_white> Did jrhe figure out his problem?
moritzs has quit [Ping timeout: 264 seconds]
alex88 has joined #ruby
<agent_white> I figured mapping an array then seeing if the value was even/not was best.
<jrhe> agent_white: It wasn’t so much of a problem, more just trying to see if there was a nice way
<agent_white> jrhe: Ah. Remember "nice way" is determined by how many of "you" there are.
<agent_white> ;)
<zenspider> I came into the middle of that... what is it for?
codecop has joined #ruby
sputnik1_ has joined #ruby
<agent_white> ie -- If you use "inject", you _must_ be surrounded by rubyists.
<jrhe> pontiki: How does one turn the magic quotes off? It seems to only be IRCCloud doing it
havenwood has joined #ruby
shredding has joined #ruby
<agent_white> zenspider: What is what for
<agent_white> ?8
<agent_white> ?**
<zenspider> the array problem
<agent_white> zenspider: As in... what is the reason behind it?
<zenspider> yeah
<agent_white> zenspider: Ask jrhe.
<jrhe> rather than explain it
<agent_white> It sounds very interesting though. :)
<zenspider> I need to port some of mathematica's functions to Enumerable... they have some good shit
<pontiki> jrhe: System Preferences -> Keyboard -> Text
banjara has joined #ruby
why_away has joined #ruby
<zenspider> pontiki / jrhe : nah. in the app that's the problem, Edit -> Substitutions -> Smart Quotes
<agent_white> pontiki: \o/
<zenspider> jrhe: there are exactly 2 arrays in that doco, and I don't think it answers my question. :P
robertodecurnex has quit [Remote host closed the connection]
<agent_white> relevance: None. You are just my favorite.
sk87 has joined #ruby
<pontiki> it's the browser, zenspider
<pontiki> irccloud is a web app
<zenspider> k. then do that in safari/chrome/whatever
whyy has quit [Ping timeout: 255 seconds]
<jrhe> zenspider: "The bulk request body has the following, slightly unusual, format:". The ruby client takes it as an array rather than a block of text. It also has methods for doing it with embedded data but I was just trying to figure out what the best way to do it myself would be as it should be more efficient
<jrhe> Just to try and get myself thinking, not because I'm prematurely optimising
blackmes1 has joined #ruby
<jrhe> pontiki: Apart from I'm running IRC Cloud as an app through fluid.app, but yes its a browser
<zenspider> make a hash of the stuff you want to put up and then to_a it?
<zenspider> I doubt you even need to to_a it, if they're using enumerables
maestrojed has quit [Quit: Computer has gone to sleep.]
<pontiki> jrhe: dunno fluid, check what zenspider said, tho
<pontiki> chrome doesn't have substitutions
<zenspider> fluid is one of those one URL browser app things, iirc
<zenspider> so he made one just for irccloud
mivxyy has joined #ruby
<jrhe> pontiki: Yeah it works. The edit menu way :)
zigomir has joined #ruby
<jrhe> pontiki: I thought I had already mentioned
<jrhe> Hanmac: I love ubuntu but I just know I'd fiddle with it far too much if I used it on a day to day basis and wouldn't be productive. Would spend took much time fiddling around with xmonad and haskell
vyorkin has joined #ruby
nifty has left #ruby [#ruby]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 264 seconds]
jackneill has joined #ruby
x1337807x has joined #ruby
oo_ has joined #ruby
quazimodo has joined #ruby
kalusn has joined #ruby
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Remote host closed the connection]
Prandium has joined #ruby
sdouglas has joined #ruby
crudson has quit [Quit: q term]
metadave has quit [Ping timeout: 240 seconds]
metadave has joined #ruby
kaspergrubbe has joined #ruby
sdouglas has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has quit [Quit: night]
quazimodo has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
mark06 has left #ruby [#ruby]
crudson has joined #ruby
arup_r has quit [Remote host closed the connection]
tectonic has joined #ruby
mehlah has joined #ruby
francisfish has joined #ruby
qba73 has joined #ruby
timonv has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 256 seconds]
why_away has quit [Remote host closed the connection]
whyy has joined #ruby
germanstudent has quit [Ping timeout: 264 seconds]
echevemaster has quit [Remote host closed the connection]
havenwood has joined #ruby
germanstudent has joined #ruby
kalusn has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 245 seconds]
voodoofish has quit [Ping timeout: 260 seconds]
pipework has quit [Quit: pipeworkin' it]
cobakobodob has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
Joulse has joined #ruby
cobakobodob has joined #ruby
whyy has joined #ruby
roshanavand has quit [Quit: Leaving]
yfeldblum has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
tesuji has joined #ruby
yfeldblum has joined #ruby
agjacome has joined #ruby
Poky has joined #ruby
oo_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
wlanboy has quit [Quit: ZNC - http://znc.in]
tectonic has quit []
wlanboy has joined #ruby
andrewlio has joined #ruby
consti has joined #ruby
Prandium has quit [Ping timeout: 272 seconds]
arup_r has quit [Read error: Connection reset by peer]
joonty has joined #ruby
arup_r has joined #ruby
timonv has joined #ruby
why_away has joined #ruby
donnoc has joined #ruby
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
Darryl has quit [Quit: Connection closed for inactivity]
tectonic has joined #ruby
mr_foobar_baz has joined #ruby
Heskie has joined #ruby
olivier_bK has joined #ruby
Wolland has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 245 seconds]
Wolland has joined #ruby
whyy has quit [Ping timeout: 240 seconds]
jmbrown412 has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: leaving]
jmbrown412 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
kith has quit [Read error: Connection reset by peer]
jmbrown412 has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Asher has joined #ruby
jmbrown412 has joined #ruby
kith has joined #ruby
why_away is now known as whyy
icebourg has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
northfurr has joined #ruby
JoshGlzBrk has joined #ruby
<Cork> shellwords allow -- but not --<option>=<value> (it escapes the =)
thalweg_ has quit [Quit: No Ping reply in 180 seconds.]
<Cork> anyone know why = isn't allowed?
thalweg has joined #ruby
shaman42 has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 260 seconds]
shaman42 has joined #ruby
obs has joined #ruby
jmbrown412 has quit [Ping timeout: 240 seconds]
icebourg has joined #ruby
olivier_bK has quit [Quit: Quitte]
olivier_bK has joined #ruby
arya_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Takle has joined #ruby
sk87 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alem0lars has quit [Quit: Going AFK...]
febuiles_ has joined #ruby
krz has joined #ruby
elaptics`away is now known as elaptics
northfurr has quit [Quit: northfurr]
febuiles has quit [Ping timeout: 255 seconds]
BalkM has quit [Quit: Computer has gone to sleep.]
BalkM has joined #ruby
havenwood has joined #ruby
mikecmpbll has joined #ruby
vyorkin has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
BalkM has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
timgauthier has joined #ruby
Kricir has joined #ruby
vyorkin1 has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
vyorkin has quit [Ping timeout: 256 seconds]
marr has joined #ruby
LiohAu has joined #ruby
kaku has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
Hobogrammer has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
foo-bar- has joined #ruby
reset has quit [Quit: Leaving...]
alem0lars has joined #ruby
shredding has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 272 seconds]
claymore has quit [Quit: Leaving]
foo-bar- has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
ponga has joined #ruby
lyuzashi has quit [Ping timeout: 252 seconds]
timonv_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
Takle has quit [Remote host closed the connection]
jord has joined #ruby
mr_foobar_baz has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
BalkM has joined #ruby
danijoo has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
BalkM has quit [Read error: Connection reset by peer]
BalkM has joined #ruby
ylluminate has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ylluminate has joined #ruby
GriffinHeart has quit [Read error: Connection reset by peer]
Takle has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
arup_r_ has joined #ruby
jaimef has quit [Ping timeout: 240 seconds]
bpgoldsb has quit [Ping timeout: 240 seconds]
daed has quit [Ping timeout: 256 seconds]
BalkM has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
TDJACR has quit [Ping timeout: 252 seconds]
PixelCrumbs has quit [Ping timeout: 252 seconds]
miah has quit [Ping timeout: 255 seconds]
arya_ has joined #ruby
michael_mbp has joined #ruby
arup_r_ has quit [Client Quit]
miah has joined #ruby
arup_r has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
funktor has joined #ruby
Norrin has quit [Ping timeout: 252 seconds]
bpgoldsb has joined #ruby
jaimef has joined #ruby
johnhamelink has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
ntz has joined #ruby
<ntz> hello
TDJACR has joined #ruby
dc_ has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
<ntz> what should I use to print a File.stat but I want (for a god's sake) raw values, not that ***** what File.stat prints out (it formats date strings, it formats file modes, ..)
<ntz> example:
<ntz> > perl -e '$file = "/etc/hosts"; print join(";", $file, stat($file)), "\n"'; ruby -e 'puts File.stat("/etc/hosts").inspect'
<ntz> /etc/hosts;64770;1051332;33188;1;0;0;0;1004;1404979555;1404461482;1404461482;4096;8
<ntz> #<File::Stat dev=0xfd02, ino=1051332, mode=0100644, nlink=1, uid=0, gid=0, rdev=0x0, size=1004, blksize=4096, blocks=8, atime=2014-07-10 10:05:55 +0200, mtime=2014-07-04 10:11:22 +0200, ctime=2014-07-04 10:11:22 +0200>
<ntz> see what ruby does with that ...
rdark has joined #ruby
PixelCrumbs has joined #ruby
daed has joined #ruby
arya_ has joined #ruby
slicknick has joined #ruby
timonv has joined #ruby
<Hanmac> inspect is human readable ... sorry if you are not human enough for that ;P
jmbrown412 has joined #ruby
<wasamasa> ntz: what exactly do you have to do with that?
<ntz> wasamasa: store it somewhere and something else will read it afterwards
<wasamasa> ntz: or rather, why do you need to replace the perl part with ruby?
jonathan_alban has joined #ruby
<ntz> specifically a parts of framework written in perl will read it .. I'm recoding to ruby 1:1 something from perl
kalusn has quit [Remote host closed the connection]
<wasamasa> why?
<wasamasa> for practice?
<ntz> wasamasa: patch for puppet
<wasamasa> there's nothing wrong with relying on stuff written in other languages
<wasamasa> otherwise you wouldn't be using your operating system at all
arya_ has quit [Ping timeout: 256 seconds]
sigurding has quit [Ping timeout: 240 seconds]
jmbrown412 has quit [Ping timeout: 245 seconds]
<ntz> wasamasa: anyway, please don't you know any other stat() function in ruby which just returns raw values read from file as perl stat() or C sys/stat.h does ?
johnhamelink has joined #ruby
sigurding has joined #ruby
klaut has joined #ruby
<Mon_Ouie> It does the same as sys/stat.h: returns a struct with all those fields…
havenwood has quit [Ping timeout: 264 seconds]
<wasamasa> ^
<ntz> Mon_Ouie: no, it does not ofc
<wasamasa> inspect merely does put them in human readable format
<Mon_Ouie> Why do you think it doesn't?
<ntz> it keeps no order and it modifies some values
<Mon_Ouie> I don't believe the order is specified in posix either, as some implementations even add their own fields. Just specify the order you believe is "the one true right one" explicitly.
<Mon_Ouie> What do you mean, modifies it?
Arkaniad has quit [Read error: Connection reset by peer]
<wasamasa> Mon_Ouie: guess he means the timestamps are outputted in human readable format
<wasamasa> Mon_Ouie: and that the order doesn't equal the one from the perl example
<ntz> # perl -e 'print +(stat("/etc/hosts"))[8], "\n"'; ruby -e 'puts File.stat("/etc/hosts").atime'
<ntz> 1404979555
<ntz> 2014-07-10 10:05:55 +0200
<Hanmac> ntz ruby -e 'path= "/etc/hosts"; stat = File.stat(path); puts ([path] + [:dev,:ino,:mode,:nlink,:uid,:gid,:rdev,:size,:atime, :mtime, :ctime, :blksize,:blocks].map {|n| stat.send(n).to_i }).join(";")'
<Mon_Ouie> See the Time class to manipulate times in Ruby
workmad3 has joined #ruby
<ntz> thank you
<wasamasa> ntz: you're mistaking representation with actual content
arya_ has joined #ruby
<wasamasa> ntz: just because it looks that way when printing it out doesn't mean it doesn't contain the unix timestamp
<Hanmac> hm funny thing on my system: File.stat("/etc/hosts").atime #=> 2262-04-12 01:47:00 +0200 ;D
Norrin has joined #ruby
<ntz> Mon_Ouie: one more question, when you go `ruby -e 'puts File.stat("/etc/hosts").inspect' there is different value for mode= than when you just ask for mode directly, why ?
hamakn has quit [Ping timeout: 240 seconds]
<Hanmac> ntz again human readable
<Mon_Ouie> No there isn't, it just formats in octal because people like to see modes in octal.
<ntz> mode=0100644 in .inspect Vs 33188 directly
<ntz> okay, thanks
<Mon_Ouie> >> 0100644
<eval-in__> Mon_Ouie => 33188 (https://eval.in/171477)
vyorkin1 has quit [Ping timeout: 272 seconds]
<apeiros> ntz: representation != value
<ntz> thanks again, all clear and solved now
<apeiros> it's an important thing in programming all over the place
blackmes1 has joined #ruby
<wasamasa> ruby -e 'puts File.stat("/etc/hosts").atime.to_i' => 1404907400
ndrei has joined #ruby
<wasamasa> perl -e 'print +(stat("/etc/hosts"))[8]' => 1404907400
reset has joined #ruby
<wasamasa> ntz: do you know what representation is?
jxf has quit [Quit: Leaving]
sevenseacat has quit [Quit: Leaving.]
donnoc has quit [Ping timeout: 272 seconds]
arya_ has quit [Ping timeout: 260 seconds]
yfeldblu_ has joined #ruby
kalusn has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
tectonic has quit []
gavit has joined #ruby
<gavit> how do I add a : on a letter in ruby?
Soda has joined #ruby
<ntz> # ruby -e 'printf "%04o\n", File.stat("/etc/hosts").mode & 07777'
<ntz> 0644
karupa is now known as zz_karupa
<ntz> nice, this works same
<apeiros> gavit: any chance to be more specific?
<Hanmac> gavit: with a keyboard? what is your wanted input and what your wanted output?
yfeldblu_ has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
<wasamasa> he wants umlauts
nickenchuggets has quit [Ping timeout: 245 seconds]
vyorkin1 has joined #ruby
<apeiros> he doesn't seem to have much interest in an answer, given his lack of response to follow up questions.
zaargy_ is now known as zaargy
kaku has quit [Quit: Leaving...]
<wasamasa> well, he's on the rails channel now
<Hanmac> he is now lost for us ... ;P
havenwood has joined #ruby
kalusn has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
dANOKELOFF has joined #ruby
gavit was kicked from #ruby by apeiros [cross posting and not following up on other channels is rude]
gavit has joined #ruby
<gavit> apeiros, sorry
<gavit> Hanmac, I was looking for a ror issue where you translate words from english too another language, but I have found my answer now
<apeiros> when you cross post, say so.
<wasamasa> hmm, thought cross-posting was only discouraged on forums
<Hanmac> wasamasa: asking RoR questions there instead of #rubyonrails is discouraged too
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Takle has joined #ruby
DrCode has quit [Remote host closed the connection]
nfk has joined #ruby
oo_ has quit [Remote host closed the connection]
<gavit> apeiros, didnt know that was a good manners, I will remember
DrCode has joined #ruby
kalusn has joined #ruby
funktor has quit [Remote host closed the connection]
reset has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
BalkM has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
mr_foobar_baz has quit [Ping timeout: 264 seconds]
mijicd has joined #ruby
casheew__ has joined #ruby
whowantstolivef3 has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
dc__ has joined #ruby
proxie has joined #ruby
mehlah has quit [Quit: Leaving...]
mr_foobar_baz has joined #ruby
brasten_ has joined #ruby
yfeldblu_ has joined #ruby
strelok has quit [Write error: Connection reset by peer]
helpa has quit [Write error: Connection reset by peer]
strelok has joined #ruby
BalkM has quit [Ping timeout: 260 seconds]
virtualize has quit [Ping timeout: 240 seconds]
brasten has quit [Ping timeout: 240 seconds]
brasten_ is now known as brasten
mehlah_ has joined #ruby
tenseiten has joined #ruby
dc_ has quit [Ping timeout: 255 seconds]
mehlah_ has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
whowantstolivefo has quit [Ping timeout: 255 seconds]
kyb3r_ has quit [Ping timeout: 240 seconds]
slicknick has quit []
seitensei has quit [Ping timeout: 240 seconds]
kalusn has joined #ruby
kyb3r_ has joined #ruby
moritzs has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
fabrice31 has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
yfeldblu_ has quit [Ping timeout: 260 seconds]
kyb3r_ has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
kyb3r_ has quit [Max SendQ exceeded]
poimen has quit [Ping timeout: 252 seconds]
marahin has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
nanashiRei has quit [Ping timeout: 252 seconds]
droptone has quit [Ping timeout: 240 seconds]
diego_k has quit [Ping timeout: 260 seconds]
matti has quit [Ping timeout: 245 seconds]
oz has quit [Ping timeout: 255 seconds]
bier has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
tommylommykins has quit [Ping timeout: 252 seconds]
FaresKAlaboud has quit [Ping timeout: 252 seconds]
patronus_ has quit [Ping timeout: 240 seconds]
jxport has quit [Ping timeout: 240 seconds]
testol has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Max SendQ exceeded]
matrixise has quit [Ping timeout: 272 seconds]
comma8 has quit [Ping timeout: 260 seconds]
thejoecarroll has quit [Ping timeout: 260 seconds]
tacos1de has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 264 seconds]
deavid has quit [Ping timeout: 252 seconds]
monsieurp has quit [Ping timeout: 252 seconds]
eregon has quit [Ping timeout: 252 seconds]
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
emdub has quit [Read error: Connection reset by peer]
tacos1de has joined #ruby
kyb3r_ has joined #ruby
emdub has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
jxport has joined #ruby
eregon has joined #ruby
deavid has joined #ruby
tommylommykins has joined #ruby
marahin has joined #ruby
thejoecarroll has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
marahin is now known as Guest83975
kyb3r_ has joined #ruby
matti has joined #ruby
oz has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
bier has joined #ruby
patteh has joined #ruby
kyb3r_ has joined #ruby
diegok has joined #ruby
patronus has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
moritzs has quit [Ping timeout: 272 seconds]
nanashiRei has joined #ruby
FaresKAlaboud has joined #ruby
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
jack_rabbit has quit [Ping timeout: 272 seconds]
monsieurp has joined #ruby
kyb3r_ has joined #ruby
Atttwww has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
Morkel has quit [Quit: Morkel]
droptone has joined #ruby
end_guy has joined #ruby
matrixise has joined #ruby
carraroj has joined #ruby
tmcgoo has quit []
<apeiros> gavit: you know, I'm always baffled anew when people say that. IMO it's pretty obvious that it is douchey to ask a question and then just not care.
<apeiros> (and that's even just one aspect of it)
fabrice31 has joined #ruby
<apeiros> but glad to hear that you're taking it to heart
krz has quit [Ping timeout: 252 seconds]
francisfish has quit [Remote host closed the connection]
sigurding has quit [Read error: Connection reset by peer]
Photism has quit [Quit: Leaving]
francisfish has joined #ruby
<gavit> apeiros, I don't know why you are baffled. if a company asks for employees, it posts it everywhere, and hopes it gets an answer. So much questions go unanswered.
<apeiros> gavit: how do you feel when somebody asks you a question, you think about an answer, and when you're ready to answer, the person just walks away?
<apeiros> and companies looking for employees is *not quite* the same.
<apeiros> spreading information != asking a question
ndrei has joined #ruby
mr_foobar_baz has quit [Remote host closed the connection]
mr_foobar_baz has joined #ruby
reset has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
<gavit> apeiros, ever asked "has anybody seen my dog?" on a corner, and as you hear nothing assuming it means "no, you go to the next corner and ask the same question again. In the meanwhile someone just thought, hey I might have seen your dog, but you've already gone to another corner.
<apeiros> not the same.
Joulse has quit [Quit: Joulse]
<timgauthier> best bad title ever!
mr_snowf1ake has quit [Quit: Leaving]
alem0lars has quit [Quit: Going AFK...]
mivxyy has quit [Remote host closed the connection]
Heskie has quit []
<gavit> apeiros, okay
<gavit> apeiros, either way, I'm glad you let me know that you don't like it.
donnoc has joined #ruby
<gavit> and I think we can agree to disagree that it's the same, but its not relevant right now
<apeiros> dude, don't make this a "oh, *you* have a problem"
<apeiros> your behavior was shit. period.
<gavit> either way, thanks for the help and insight. I have to go now
<Mon_Ouie> You didn't hear nothing, people asked followed up questions which you ignored
<ddv> lol
<timgauthier> wow, yeah, i mean I get away with a lot here, but not that even
<Mon_Ouie> "what's the color of your dog?" *staress blankly*
<timgauthier> also hello europe krew, i miss you!
<timgauthier> "what dog?", he looks blankly at you, "The dog you said was missing", you reply with abject shock.
<apeiros> gavit: but maybe you're one of those cliche programmers who lack the most basic insights about socially acceptable behavior.
<timgauthier> i, am shit at writing dialogue :(
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<gr33n7007h> Say I have a def example(*example, &ex).... does the ampersand in the method turn it into a proc object?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> gr33n7007h: yes
lewix has joined #ruby
<apeiros> it takes a block, turns it into a Proc and assigns it to the `ex` variable
<gr33n7007h> apeiros, so is it the same as yield?
reset has quit [Ping timeout: 255 seconds]
<apeiros> gr33n7007h: no. it can be used for the same purpose.
<gr33n7007h> apeiros, ah this is where i'm getting confused
<apeiros> yield will invoke a block passed to the method. it won't assign it to a variable and it doesn't convert it into a Proc instance
<apeiros> `def foo(&ex); ex.call; end` is functionally equivalent to `def foo; yield; end`
lewix has quit [Remote host closed the connection]
<apeiros> behind the scenes, ruby does some bits different. for this precise example, yield is more efficient.
comma8 has joined #ruby
<Hanmac> gr33n7007h: you need the & when you want to do something cryptic with the proc, like passing it somewhere else or like storeing it
<gr33n7007h> apeiros, right so it's baically same functionality I think I get it :)
<Hanmac> for callbacks
<gr33n7007h> can you use & on initialize?
gavit has quit [Ping timeout: 240 seconds]
<gr33n7007h> then do Example.new do |n| ......
<wasamasa> apeiros: to be honest, the IRC way of getting answers isn't exactly like social behaviour demands
kalusn has quit [Remote host closed the connection]
phil has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
<apeiros> wasamasa: that doesn't mean it's ok to be a douche.
ndrei has joined #ruby
<apeiros> wasamasa: if you can be one in other channels - fine. that's their problem. I won't accept it here.
<Hanmac> maybe thats the behavoir of railists?
<wasamasa> apeiros: sure
<wasamasa> apeiros: just pointing out it's more than that :P
Takle has quit [Remote host closed the connection]
earthquake has joined #ruby
shredding has quit [Quit: shredding]
jottr_ has joined #ruby
<gr33n7007h> Well anyway that's given me more of an understanding between & and yield thanks will have to really read up some more :)
maximski has joined #ruby
Heskie has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
BadQuanta has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
dumdedum has joined #ruby
User458764 has joined #ruby
User458764 is now known as User458764_NotHe
User458764_NotHe is now known as User458764
User458764 is now known as User458764_NotHe
hgl_ has joined #ruby
havenwood has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dANOKELO_ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
MCDev has quit [Quit: HydraIRC -> http://www.hydrairc.com <-]
Alina-malina has joined #ruby
ndrei has joined #ruby
donnoc has quit [Quit: WeeChat 0.4.3]
fold has quit [Ping timeout: 264 seconds]
dANOKELOFF has quit [Ping timeout: 240 seconds]
User458764_NotHe is now known as User458764
User458764 is now known as User458764_NotHe
banister has joined #ruby
alem0lars has joined #ruby
sdouglas has joined #ruby
MCDev has joined #ruby
dANOKELO_ has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
User458764_NotHe is now known as User458764
machty has quit [Ping timeout: 252 seconds]
User458764 is now known as User458764_NotHe
Dude007 has joined #ruby
carraroj has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
machty has joined #ruby
toretore has joined #ruby
krz has joined #ruby
phinfonet has joined #ruby
BalkM has joined #ruby
User458764_NotHe is now known as User458764
User458764 is now known as User458764_NotHe
havenwood has quit [Ping timeout: 264 seconds]
donnoc has joined #ruby
moritzs has joined #ruby
BalkM has quit [Ping timeout: 245 seconds]
blackmes1 has quit [Quit: WeeChat 0.4.3]
consti has quit [Quit: sawadee khrap]
eka has joined #ruby
User458764_NotHe is now known as User458764
User458764 is now known as User458764_NotHe
sigurding has joined #ruby
Heskie has quit []
maximski has quit []
chipotle has joined #ruby
dblessing has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
Ayey_ has joined #ruby
claymore has joined #ruby
phutchins has joined #ruby
decoponio has joined #ruby
tesaf has joined #ruby
phutchins has quit [Read error: Connection reset by peer]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
vyorkin2 has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
vyorkin1 has quit [Read error: Connection reset by peer]
Joulse has joined #ruby
kalusn has joined #ruby
User458764_NotHe has quit [Ping timeout: 240 seconds]
MCDev has quit [Ping timeout: 252 seconds]
moritzs has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
<banister> Mon_Ouie hello
havenwood has joined #ruby
foo-bar- has joined #ruby
fold has joined #ruby
reset has joined #ruby
ponga has quit []
xcv has joined #ruby
Kricir has joined #ruby
ta has quit [Remote host closed the connection]
foo-bar- has quit [Read error: Connection reset by peer]
foo-bar-_ has joined #ruby
ta has joined #ruby
<Mon_Ouie> 'alut
Takle has quit [Remote host closed the connection]
Noob101 has quit [Quit: Page closed]
User458764 has joined #ruby
User458764 has quit [Client Quit]
sheperson has joined #ruby
mr-foobar has quit [Ping timeout: 255 seconds]
reset has quit [Ping timeout: 256 seconds]
Kricir has quit [Ping timeout: 240 seconds]
foo-bar-_ has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
Seich has quit [Ping timeout: 240 seconds]
Joulse has quit [Quit: Joulse]
Soda has quit [Remote host closed the connection]
<arup_r> http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-constantize is telling the method needs argument, while calling. But actually 'Module'.constantize # => Module . No we are not passing the argument, how this magic is being handled. Any idea ?
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
PCFutbol has joined #ruby
dANOKELOFF has joined #ruby
Seich has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
whyy has quit [Remote host closed the connection]
maximski has joined #ruby
Ayey_ has quit [Quit: leaving]
<Hanmac> arup_r: thats a #rubyonrails problem ... not our fault if its fucked up
vyorkin2 has quit [Ping timeout: 272 seconds]
relix has joined #ruby
<wasamasa> I'm about to loop through two arrays by nesting .each, is that the encouraged way to do it or shall I rather find some method that creates an array with all combinations and use .each on it?
hgl_ has quit [Quit: Lingo - http://www.lingoirc.com]
shredding has joined #ruby
<PCFutbol> Hi. I have a problem with 'ruby-dbus'. In my code the line: 'bus = DBus::SessionBus.instance' throw the next error message in TTY1-6: http://pastebin.com/2HxHTAcF
Joulse has joined #ruby
anaeem1 has quit [Remote host closed the connection]
iceyec has joined #ruby
xcv has quit []
parduse has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
parduse has joined #ruby
parduse is now known as Guest87756
mconnolly has joined #ruby
yacks has joined #ruby
Royalb15 has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: ciao.]
ndrei has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
Royalb15 has quit [Client Quit]
phoo1234567 has joined #ruby
timonv has quit [Remote host closed the connection]
lewix has joined #ruby
timonv has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
vyorkin2 has joined #ruby
havenwood has joined #ruby
himsin has joined #ruby
bruno- has joined #ruby
<workmad3> wasamasa: you mean something like Array#permutations?
<wasamasa> workmad3: no, Array#product
tjr9898 has joined #ruby
<workmad3> wasamasa: ah yeah, that would be it :)
<wasamasa> I was wondering what would be the way to go
<wasamasa> nesting loops or using Array#product
<workmad3> wasamasa: use product
<arup_r> Hanmac: Let me move it there. :-) Thanks
<wasamasa> k then
<workmad3> wasamasa: in general, prefer a ready-written method that does exactly what you want over writing your own code ;)
Takle has joined #ruby
timonv has joined #ruby
DivineEntity has quit [Quit: leaving]
dwayhs has quit [Read error: Connection reset by peer]
dwayhs has joined #ruby
noop has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
charlied3 has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
kies has quit [Quit: baaaaiiiiiiiiiii~]
ndrei has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew__ has quit [Read error: No route to host]
northfurr has joined #ruby
casheew has joined #ruby
casheew_ has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
starkhalo has joined #ruby
yeticry has joined #ruby
sk87 has joined #ruby
treehug88 has joined #ruby
whyy has joined #ruby
gramos has joined #ruby
thesheff17 has joined #ruby
thesheff17 has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
thesheff17 has joined #ruby
timonv has joined #ruby
why_away has joined #ruby
Doppp has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Deejay__ has joined #ruby
reset has joined #ruby
whyy has quit [Ping timeout: 245 seconds]
MrPopinjay has joined #ruby
Kricir has joined #ruby
Deejay__ has quit [Client Quit]
foo-bar- has joined #ruby
gramos has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
timonv has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
nateberkopec has joined #ruby
gavit has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
reset has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 240 seconds]
kies has joined #ruby
lewix has quit [Remote host closed the connection]
mconnolly has quit [Remote host closed the connection]
codecop has quit [Quit: Išeinu]
Dreamer3 has quit [Quit: Leaving...]
banister has joined #ruby
tvw has joined #ruby
earthquake has quit [Quit: earthquake]
jerius has joined #ruby
mconnolly has joined #ruby
bmurt has joined #ruby
britneywright has joined #ruby
Dreamer3 has joined #ruby
havenwood has joined #ruby
selva_ has joined #ruby
<selva_> Hi all
<selva_> what is the irc channel fo rils
<selva_> rails*
<selva_> I tried to join #rubyonrails and failed
<drizz> #rails?
<selva_> no such channel
<drizz> actually, it should be #rubyonrails
<drizz> joined fine here
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
thesheff17 has quit [Ping timeout: 240 seconds]
<selva_> it took me to ##namespace
<mozzarella> selva_: you're not connected with nickserv
<selva_> and saying "Topic for ##namespace: You've tried to join an unavailable channel"
kalusn has quit [Remote host closed the connection]
<selva_> mozzarella: i have connected to freenode
<selva_> through irssi
<mozzarella> but you're not registered
<selva_> what do i need to do to join nickserv
<selva_> you mean, i should have registered nick name
<mozzarella> yes
<mozzarella> that's mandatory if you want to join #rubyonrails
<selva_> mozzarella: thank you, let me try that
whyy has joined #ruby
PCFutbol has quit [Quit: Saliendo]
<apeiros> #ror, #rails and #rubyonrails are the same channel
<apeiros> (the former two redirect to the latter)
spider-mario has joined #ruby
mr-foobar has joined #ruby
why_away has quit [Ping timeout: 240 seconds]
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
warprobot has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
<selva_> thanks apeiros & mozzarella
<selva_> joined as selvait90
DaniG2k has quit [Quit: leaving]
alem0lars has joined #ruby
thesheff17 has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
sylphiae has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Konversation terminated!]
freerobby has joined #ruby
alem0lars has quit [Client Quit]
arya_ has joined #ruby
sheperson has quit [Ping timeout: 240 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<sylphiae> hmm
BalkM has joined #ruby
<sylphiae> okay i've installed jekyll
<sylphiae> but how do I use it to test a page?
iceyec has quit [Quit: iceyec]
sheperson has joined #ruby
Darryl has joined #ruby
donnoc has quit [Quit: WeeChat 0.4.3]
donnoc_ has joined #ruby
oddalot has quit [Ping timeout: 252 seconds]
bamyyyooo14335 has joined #ruby
BalkM has quit [Ping timeout: 255 seconds]
anaeem1_ has joined #ruby
Ankhers has joined #ruby
kalusn has joined #ruby
iceyec has joined #ruby
djcp has joined #ruby
iceyec has quit [Client Quit]
sheperson has quit [Ping timeout: 240 seconds]
iceyec has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
iceyec has quit [Client Quit]
djcp has left #ruby [#ruby]
iceyec has joined #ruby
whowantstolivef3 is now known as whowantstolivefo
yeticry has joined #ruby
roolo has joined #ruby
qwyeth has joined #ruby
bamyyyooo14335 has left #ruby [#ruby]
IceyEC_ has joined #ruby
IceyEC_ has quit [Client Quit]
startupality has joined #ruby
IceyEC_ has joined #ruby
IceyEC_ has quit [Client Quit]
sailias has joined #ruby
iceyec has quit [Read error: Connection reset by peer]
Zenigor has joined #ruby
iceyec has joined #ruby
startupality has left #ruby [#ruby]
startupality has joined #ruby
northfurr has quit [Quit: northfurr]
Shidash has joined #ruby
robertodecurnex has joined #ruby
mrmargolis has joined #ruby
whyy has quit [Ping timeout: 272 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
iceyec has quit [Quit: leaving]
iceyec has joined #ruby
yfeldblum has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
Xeago has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Xeago has joined #ruby
havenwood has joined #ruby
Neomex has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
diegoviola has joined #ruby
iceyec has quit [Quit: leaving]
kaspergrubbe has joined #ruby
iceyec has joined #ruby
drawingthesun has joined #ruby
iceyec has quit [Client Quit]
mijicd has quit [Remote host closed the connection]
reset has joined #ruby
snath has quit [Ping timeout: 260 seconds]
iceyec has joined #ruby
Kricir has joined #ruby
eka has joined #ruby
reset has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 256 seconds]
paulfm has joined #ruby
mark_locklear has joined #ruby
frellnet has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
ntz has left #ruby [#ruby]
freerobby has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
jpinnix_____ is now known as jpinnix
mikesplain has joined #ruby
lxsameer has quit [Quit: Leaving]
failshell has joined #ruby
tokik has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
Joulse has quit [Quit: Joulse]
anarang has quit [Quit: Leaving]
Joulse has joined #ruby
ndrei has joined #ruby
<banister> apeiros hey guy
alexju has joined #ruby
carraroj has quit [Ping timeout: 255 seconds]
maximski has quit []
platzhirsch has joined #ruby
<platzhirsch> Oh man #android-dev is so boring
<platzhirsch> anything exciting going on here?
<vali> nop
ta has joined #ruby
<platzhirsch> How is pry doing banister
maximski has joined #ruby
<apeiros> banister: howdy girly
maximski has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
<banister> apeiros can i ping u with another silly rails Q
tjr9898 has quit [Remote host closed the connection]
DivineEntity has joined #ruby
<banister> platzhirsch ok i guess
maximski has joined #ruby
<platzhirsch> Hopefully I'll find time to do again some Ruby coding this fall :)
arya_ has quit [Ping timeout: 272 seconds]
<apeiros> banister: I'm at work at the moment, sorry
maximski has quit [Client Quit]
<banister> apeiros no probs
tesuji has quit [Ping timeout: 260 seconds]
tjr9898 has joined #ruby
acconrad has quit [Quit: acconrad]
Fraeon has quit [Remote host closed the connection]
BalkM has joined #ruby
tjr9898 has quit [Remote host closed the connection]
charlied3 has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
<bmurt> this might be a dumb question, but i have a hash like: nodes = [ { :name => 'server1', }, ] can i reference that as: node['server1']
BalkM has quit [Ping timeout: 255 seconds]
jaequery has joined #ruby
razum2um has quit [Quit: Leaving.]
maximski has joined #ruby
volk_ has joined #ruby
arturaz has joined #ruby
foo-bar- has quit [Remote host closed the connection]
warprobot has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
<pontiki> you have an array of hashes, it looks like
tjr9898 has joined #ruby
<pontiki> if :name is unique in every member of the array, you could turn that into a hash
aganov has quit [Remote host closed the connection]
spider-mario has joined #ruby
}SoMBrA{ has joined #ruby
<bmurt> or ahhh
<bmurt> no other way to reference that value?
spider-mario has quit [Remote host closed the connection]
<apeiros> bmurt: nodes[0][:name]
baweaver has joined #ruby
<bmurt> ahhh, referencing it by its index
<apeiros> because - as pontiki already pointed out - you have an array of hashes. so you have to get the hash first.
warprobo_ has joined #ruby
treehug88 has quit [Ping timeout: 264 seconds]
baweaver has quit [Read error: Connection reset by peer]
<apeiros> nodes # => [ { :name => 'server1', }, ]
<apeiros> nodes[0] # => { :name => 'server1', },
<apeiros> nodes[0][:name] # => 'server1‘
spider-mario has joined #ruby
Takle has quit [Remote host closed the connection]
baweaver has joined #ruby
<bmurt> understood
<bmurt> thanks apeiros & pontiki
workmad3 has joined #ruby
sylphiae has left #ruby ["Leaving"]
arup_r has quit [Remote host closed the connection]
yfeldblum has joined #ruby
maximski has quit []
iaj_ has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
<olivier_bK> i try to convert two array in hash
<olivier_bK> but i m almost sure my fonstion get_hash is not good
RaCx has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Xeago_ has joined #ruby
<olivier_bK> and i can't see how i can get two different array from different function and convert in hash
kalusn has quit [Remote host closed the connection]
p0sixpscl has joined #ruby
sdouglas has joined #ruby
maximski has joined #ruby
warprobo_ has quit [Remote host closed the connection]
warprobot has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Quit: Leaving]
iaj has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
dANOKELOFF has quit [Remote host closed the connection]
ffranz has joined #ruby
oddalot has joined #ruby
Takle has joined #ruby
reset has joined #ruby
frankjpinto has joined #ruby
havenwood has joined #ruby
shredding has quit [Quit: shredding]
mikecmpbll has joined #ruby
amargherio has joined #ruby
arturaz has quit [Remote host closed the connection]
iceyec has quit [Quit: leaving]
freerobby has joined #ruby
iceyec has joined #ruby
reset has quit [Ping timeout: 240 seconds]
pygospa has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
comma8 has quit [Ping timeout: 260 seconds]
anaeem1 has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
ixti has joined #ruby
kalusn has joined #ruby
ra4king has quit [Remote host closed the connection]
alexa_ has joined #ruby
IceyEC_ has joined #ruby
ra4king has joined #ruby
IceyEC_ has quit [Client Quit]
iceyec has quit [Remote host closed the connection]
iceyec has joined #ruby
qwyeth has quit [Ping timeout: 272 seconds]
maestrojed has joined #ruby
noop has quit [Ping timeout: 240 seconds]
warprobot has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 240 seconds]
warprobot has joined #ruby
maestrojed has quit [Client Quit]
RaCx has joined #ruby
qwyeth has joined #ruby
<pontiki> probably not, olivier_bK
<pontiki> when you call get_hash, you're providing one argument to the *args in the method
obs has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<pontiki> so at line 2, there is no arr[1] (so it will return nil)
<pontiki> try removing the splat and see what happens
dANOKELOFF has joined #ruby
tjr9898 has joined #ruby
vyorkin2 has quit [Ping timeout: 240 seconds]
bal has quit [Quit: bal]
thesheff17 has joined #ruby
xaxisx has joined #ruby
saarinen has joined #ruby
warprobot has quit [Remote host closed the connection]
SBoolean has joined #ruby
xaxisx has quit [Client Quit]
warprobot has joined #ruby
tjr9898 has quit [Ping timeout: 252 seconds]
}SoMBrA{ has quit [Quit: This computer has gone to sleep]
arya_ has joined #ruby
vyorkin2 has joined #ruby
terrellt has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
andrewjanssen has joined #ruby
SBoolean has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
shredding has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
awkwords has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
xaxisx has joined #ruby
Soda has joined #ruby
juboba has joined #ruby
Macaveli has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
SBoolean has joined #ruby
<juboba> hey, I'm getting /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- zip/zipfilesystem (LoadError). I installed rubyzip, but I'm still getting the same error.
<juboba> how can I fix this?
jottr_ has joined #ruby
}SoMBrA{ has joined #ruby
BalkM has joined #ruby
jprovazn has quit [Quit: Leaving]
snath has joined #ruby
jprovazn has joined #ruby
jerius_ has joined #ruby
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
andikr has joined #ruby
jerius has quit [Ping timeout: 272 seconds]
darkxploit has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
kevind has joined #ruby
andrewjanssen has joined #ruby
BalkM has quit [Ping timeout: 255 seconds]
tomblomfield has joined #ruby
dn0v has joined #ruby
arup_r has joined #ruby
<olivier_bK> pontiki, ok
ndrei has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hanmac> juboba: its "zip/filesystem"
hpoydar has joined #ruby
vyorkin2 has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
moted has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
spider-mario has quit [Remote host closed the connection]
moted has quit [Client Quit]
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
Oxelist has joined #ruby
<juboba> Hanmac: gem search zip just throws rubyzip
jrhe has quit [Quit: Connection closed for inactivity]
<juboba> Hanmac: where should I look?
himsin has quit [Quit: himsin]
Xeago_ has quit [Remote host closed the connection]
spider-mario has joined #ruby
lbwski has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby
fabrice31 has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
dANOKELO_ has joined #ruby
fabrice31 has joined #ruby
bluOxigen has joined #ruby
dANOKELOFF has quit [Ping timeout: 252 seconds]
spastorino has joined #ruby
io_syl has joined #ruby
banjara has quit [Quit: Leaving.]
jerius_ has quit []
Takle has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
jerius has joined #ruby
Oxelist has quit [Ping timeout: 240 seconds]
zigomir has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
maestrojed has joined #ruby
kireevco has joined #ruby
havenwood has quit [Remote host closed the connection]
zigomir has joined #ruby
shelling has joined #ruby
jprovazn has quit [Quit: Leaving]
}SoMBrA{ has quit [Quit: This computer has gone to sleep]
Ankhers has quit [Remote host closed the connection]
<olivier_bK> the last problem is i get the same value in key and in value exemple: hash : {" 12"=>" 12"
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
lbwski has joined #ruby
awkwords has joined #ruby
jaequery has joined #ruby
reset has joined #ruby
Takle has joined #ruby
zigomir has quit [Ping timeout: 260 seconds]
mrmargolis has quit [Remote host closed the connection]
chrishough has joined #ruby
gavit has quit [Ping timeout: 256 seconds]
maximski has quit []
jaequery has quit [Client Quit]
theharshest has joined #ruby
b00stfr3ak has joined #ruby
kalusn has quit [Remote host closed the connection]
kbarry has joined #ruby
carraroj has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
theharshest has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
theharshest has joined #ruby
reset has quit [Ping timeout: 256 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jmbrown412 has joined #ruby
lmickh has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
<juboba> Hanmac: according to this: https://github.com/rubyzip/rubyzip/blob/master/lib/zip/filesystem.rb it is included in the rubyzip package
theharshest has joined #ruby
acconrad has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
theharshest has joined #ruby
kalusn has joined #ruby
CaptainJet has joined #ruby
andrewjanssen has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
mrmargolis has joined #ruby
iaj has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
gavit has joined #ruby
RaCx has joined #ruby
volk_ has quit [Quit: volk_]
shvelo has joined #ruby
baroquebobcat has joined #ruby
havenwood has joined #ruby
Zenigor has quit [Remote host closed the connection]
phutchins has joined #ruby
aspires has joined #ruby
niharvey is now known as niharvey|lunch
mark_locklear has quit [Quit: Leaving]
j_mcnally has joined #ruby
iaj has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
stytown has joined #ruby
sk87 has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
jmbrown412 has quit []
stytown has quit [Client Quit]
dANOKELO_ has quit [Remote host closed the connection]
frankjpinto has quit [Ping timeout: 264 seconds]
Dreamer3 has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
dANOKELOFF has joined #ruby
<olivier_bK> how can i get with one function two different argument of two different function ?
juboba has left #ruby [#ruby]
BalkM has joined #ruby
jmbrown412 has joined #ruby
Zenigor has joined #ruby
jaequery has joined #ruby
thecoolguy has quit [Ping timeout: 240 seconds]
dn0v has quit [Quit: WeeChat 0.4.3]
jfran_ has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
rayners has joined #ruby
jfran has joined #ruby
mikepack has joined #ruby
xaxisx has quit [Quit: xaxisx]
cnj has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
shredding has quit [Ping timeout: 245 seconds]
BalkM has quit [Ping timeout: 255 seconds]
emptyflask has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba has quit [Ping timeout: 260 seconds]
sigurding has quit [Quit: sigurding]
Takle has quit [Remote host closed the connection]
maestrojed has joined #ruby
hpoydar has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
alex88 has quit [Quit: Leaving...]
tjr9898 has quit [Remote host closed the connection]
kalusn has quit [Remote host closed the connection]
nfk has joined #ruby
johnmolina has joined #ruby
francisfish has quit [Remote host closed the connection]
kalusn has joined #ruby
bricker`work has joined #ruby
iamjarvo has joined #ruby
Joulse has quit [Quit: Joulse]
timonv_ has quit [Remote host closed the connection]
jottr_ is now known as jottr
mrmargolis has quit [Remote host closed the connection]
kalusn has quit [Remote host closed the connection]
ndrei has joined #ruby
mrmargolis has joined #ruby
kalusn has joined #ruby
dANOKELOFF has quit []
spider-mario has quit [Ping timeout: 272 seconds]
Doppp has joined #ruby
frankjpinto has joined #ruby
Takle has joined #ruby
yfeldblum has joined #ruby
treehug88 has joined #ruby
warprobot has quit [Remote host closed the connection]
warprobot has joined #ruby
Takle has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 256 seconds]
selva_ has left #ruby [#ruby]
noop has joined #ruby
cnj has joined #ruby
mrmargolis has quit [Remote host closed the connection]
sdouglas has joined #ruby
devdazed has joined #ruby
wallerdev has joined #ruby
kalusn has quit [Remote host closed the connection]
tjr9898 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lkba has joined #ruby
sepp2k has joined #ruby
spider-mario has joined #ruby
mrmargolis has joined #ruby
cnj has quit [Ping timeout: 240 seconds]
cnj has joined #ruby
dc__ has quit []
reset has joined #ruby
<havenwood> olivier_bK: So you want to make a method that take two other methods are arguments? Just do that.
<havenwood> s/are/as
sdouglas has quit [Ping timeout: 255 seconds]
<havenwood> olivier_bK: Or a lambda that takes two other lambdas as args.
olivier_bK has quit [Ping timeout: 272 seconds]
BalkM has joined #ruby
<ericwood> then returns 5 lambdas
<havenwood> And lambda beget lambda, who in turn beget lambda, son of lambda.
RaCx has joined #ruby
<gregf__> heh
<ericwood> praises be to matz
xaxisx has joined #ruby
rippa has joined #ruby
alem0lars has joined #ruby
<alexherbo2> Hi
maestrojed has quit [Quit: Computer has gone to sleep.]
<havenwood> g'morning
anaeem1_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<alexherbo2> what is the name for foo: "bar" ?, which is translated to { :foo => "bar" }
<alexherbo2> foo:
timonv has joined #ruby
reset has quit [Ping timeout: 240 seconds]
<ericwood> a hash
<havenwood> alexherbo2: 1.9 hash syntax
<havenwood> alexherbo2: it is a symbol in 1.9 hash syntax
stytown has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> `:foo` the symbol literal becomes `foo:` the symbol key
Morkel has joined #ruby
jfran__ has joined #ruby
thesheff17_ has joined #ruby
thesheff17 has quit [Disconnected by services]
<havenwood> note `:"foo bar"` does not work as `"foo bar":`, only simple symbol literals work
thesheff17_ is now known as thesheff17
NinoScript has joined #ruby
mijicd has joined #ruby
ndrei has joined #ruby
lkba has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
stytown has quit [Client Quit]
dideler has joined #ruby
johnrover has joined #ruby
wallerdev has quit [Quit: wallerdev]
stytown has joined #ruby
NinoScript has joined #ruby
Zenigor has quit [Remote host closed the connection]
voodoofish has joined #ruby
edgarjs_afk is now known as edgarjs
NinoScript has quit [Client Quit]
gregf has quit [Quit: WeeChat 0.4.3]
deric_skibotn has joined #ruby
NinoScript has joined #ruby
Zenigor has joined #ruby
qba73 has quit []
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
himsin has joined #ruby
jottr has quit [Quit: WeeChat 0.4.3]
banjara has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 264 seconds]
anaeem1 has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
<shevy> happy compileleleing
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
NinoScript has quit [Ping timeout: 255 seconds]
tjr9898 has quit [Remote host closed the connection]
CodeBunny has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
rdark has quit [Quit: leaving]
roshanavand has quit [Quit: Leaving]
ndrei has joined #ruby
maletor has joined #ruby
wallerdev has joined #ruby
klaut has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
CodeLicker has joined #ruby
anaeem1 has quit [Remote host closed the connection]
ghr has quit []
definiv has joined #ruby
mikecmpbll has joined #ruby
acconrad has quit [Quit: acconrad]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ghr has joined #ruby
mikespla_ has joined #ruby
roolo has quit [Quit: Leaving...]
warprobot has quit []
phil has quit [Ping timeout: 240 seconds]
mikesplain has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
dik_dak has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
Fraeon has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
dc_ has joined #ruby
AlexRussia has joined #ruby
hpoydar has joined #ruby
Guest67134 has quit [Ping timeout: 264 seconds]
xaxisx has quit [Quit: xaxisx]
freerobby has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Quit: Leaving]
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
fabrice31 has quit [Ping timeout: 245 seconds]
endash has quit [Quit: endash]
tungd has joined #ruby
acconrad has joined #ruby
hpoydar has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
brian___ has joined #ruby
lukeshu has joined #ruby
<brian___> hey guys, dumb question that im having a hard time googling. are ` processed as double quotes or single quotes?
<banister> brian___ double
<banister> brian___ you can interpolate shit in there
davidcollom has quit [Ping timeout: 252 seconds]
stytown has quit [Quit: stytown]
<brian___> banister: thanks!
davidcollom_zzz has joined #ruby
davidcollom_zzz is now known as davidcollom
NinoScript has joined #ruby
Spami has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<brian___> banister: any thoughts as to why when i change ` to double quotes i get different outputs for: `identify -format '%wx%h' #{model.attachment.gray.current_path}`
Hanmac has joined #ruby
mattmcclure has joined #ruby
zorak has joined #ruby
<banister> brian___ i dont know what you mean sorry
<banister> brian___ but `` and "" are totally, totally different
<banister> brian___ `` runs shell commands
<banister> brian___ "" is just a string
johnmolina has quit [Remote host closed the connection]
<brian___> oooh : /
<brian___> got it ok thanks again
tungd has quit [Ping timeout: 272 seconds]
Hanmac1 has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
acconrad has quit [Quit: acconrad]
Hobogrammer has joined #ruby
<lukeshu> I'm trying to profile allocation in a rails app running on MRI 2.1.2; I tried ruby-prof with the railsexpress patches (by just applying them when building ruby, not using RVM), but I still got the CPU profiling. I see that recent MRIs have built-in support for some of this profiling, but I am unsure how to hook into it at the appropriate times.
xaxisx has joined #ruby
jprovazn has joined #ruby
northfurr has joined #ruby
codezomb has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Quit: Leaving.]
mikespla_ has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
rapha has joined #ruby
<rapha> Hi!
<lukeshu> hi
workmad3 has quit [Ping timeout: 240 seconds]
<rapha> Is there a way to make [1, 2, 3, 4, 2] look like [1, 3, 4, 2] (i.e., like .uniq!, but keeping the order)?
anaeem1 has joined #ruby
iamjarvo has joined #ruby
<wallerdev> isnt [1, 2, 3, 4] keeping the order too?
<havenwood> ^ that'd be the order i'd have presumed
mikesplain has joined #ruby
<havenwood> being as it was the first occurrence order
<wallerdev> yeah
<wallerdev> haha
NinoScript has quit [Quit: Textual IRC Client: www.textualapp.com]
<wallerdev> if you weant last occurence you could probably reverse.uniq.reverse
<rapha> wallerdev: [1, 2, 3, 4] is different from [1, 3, 4, 2] even though they both contain unique elements only.
<havenwood> rapha: do you want last occurence?
crus has quit [Ping timeout: 256 seconds]
<rapha> havenwood: i've never heard that term before
<havenwood> >> require 'set'; Set.new [1, 4, 3, 4, 2]
<eval-in__> havenwood => #<Set: {1, 4, 3, 2}> (https://eval.in/171604)
<rapha> hmm that looks good ... i need to play around with that
<wallerdev> youre saying you want one version when it can be two different ways, but youre not saying any rules about it lol
NinoScript has joined #ruby
jeaye has quit [Quit: zzz]
freerobby has joined #ruby
<rapha> wallerdev: [4, 3, 6, 2, 2, 1, 4, 6] should become [3, 2, 1, 4, 6]
iceden has quit [Remote host closed the connection]
<wallerdev> so you want the last number listed to be the one that stays
<rapha> wallerdev: i was never good at maths, so maybe i can't describe the rules i want, but i mean i always want the order to remain the same while removing duplicate elements starting at the front, not the back.
adantj has joined #ruby
<havenwood> rapha: last occurrence isn't a term of art, just sorting by the last occurrence of the item (rather than first, middle, other :P)
ta_ has joined #ruby
<wallerdev> or the 2nd number listed to be the one that stays
<rapha> wallerdev: yes!
<wallerdev> >> [4, 3, 6, 2, 2, 1, 4, 6].reverse.uniq.reverse
<eval-in__> wallerdev => [3, 2, 1, 4, 6] (https://eval.in/171605)
<rapha> ah yes, then last occurance is what i want
emptyflask has quit [Remote host closed the connection]
iceden has joined #ruby
<wallerdev> uniq keeps the first one it finds, so if you go through it backwards the first one it finds will be the last element
<adantj> If I added a module via Klass.extend MyModule, is there a way I can check that the class has that module mixed in?
<rapha> woah cool! it's working!
<rapha> wallerdev: havenwood: thank you so much! :)
<rapha> my head was about to explode on this one...
ta has quit [Ping timeout: 240 seconds]
djcp has joined #ruby
DrShoggoth has joined #ruby
xaxisx has quit [Quit: xaxisx]
ghr has quit [Ping timeout: 245 seconds]
tomblomfield has quit [Quit: Textual IRC Client: www.textualapp.com]
Audace has joined #ruby
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
crus has joined #ruby
schaary is now known as schaary|afk
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
kalusn has joined #ruby
jfran__ has quit [Read error: Connection reset by peer]
jfran__ has joined #ruby
<havenwood> rapha: Custom data structure just for you: https://gist.github.com/havenwood/36328ec9b27d15a57d38
<havenwood> :P
crus has quit [Ping timeout: 256 seconds]
crus has joined #ruby
<havenwood> rapha: that way it'll maintain order and uniqueness. you could implement #merge too if you need to add more than on element at once, but you'd need to decide on the logic.
SilverKey has quit [Quit: Halted.]
ndrei has joined #ruby
platzhirsch has left #ruby [#ruby]
<lagweezle> havenwood: I thought that Set was unordered? I was looking at this earlier today as I want a case-insensitive (everything is lower case) list of things that has at most one of any given element (string).
kireevco has quit [Read error: Connection reset by peer]
mikesplain has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
<havenwood> lagweezle: indeed, my mistake - SortedSet
tjr9898 has quit [Remote host closed the connection]
<havenwood> wait
chrishough has quit [Quit: chrishough]
<havenwood> ordered not sorted
_maes_ has joined #ruby
<havenwood> lagweezle: I presumed ordered in 1.9+.
johnmolina has joined #ruby
<havenwood> unordered say the docs
ndrei has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
startupality has quit [Ping timeout: 256 seconds]
flowerhack has joined #ruby
mikesplain has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
<havenwood> lagweezle: i think the docs are wrong :O
saarinen has joined #ruby
<havenwood> not sure
reset has joined #ruby
vyorkin2 has joined #ruby
<havenwood> yup, uses Hash internally, which is sorted
<yxhuvvd> could there be operations that break the order?
p0sixpscl has quit [Quit: p0sixpscl]
jaimef has quit [Excess Flood]
<yxhuvvd> also, I'd expect the docs to state what the class *guarantee* which is not necessarily the same as what it actually do.
akemrir has joined #ruby
<havenwood> yxhuvvd: i don't believe so, even the #to_a comments in the code mention order will be lost
jaimef has joined #ruby
<akemrir> hi, I want to spawn processes from threads. But they run without joining threads. How can I run them only after join?
niharvey|lunch is now known as niharvey
emptyflask has joined #ruby
<havenwood> i think either 1) docs didn't get updated 1.9 and are just wrong, or 2) an intention to leave open the possibility of Set internals not being based on Hash.
johnmolina has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
<havenwood> yxhuvvd: yeah, there are multiple mentions in the code of preserving order and why alternatives that wouldn't preserve order aren't used
<havenwood> lagweezle: yxhuvvd: worth a more thorough code review on each method, but I suspect Set is indeed ordered
<yxhuvvd> I see.
anaeem1 has quit [Remote host closed the connection]
reset has quit [Ping timeout: 264 seconds]
bradleyprice has joined #ruby
yfeldblum has quit [Remote host closed the connection]
davidcollom has quit [Ping timeout: 252 seconds]
bradleyp_ has joined #ruby
northfurr has quit [Quit: northfurr]
JohnBat26 has quit [Ping timeout: 240 seconds]
<lagweezle> havenwood: Interesting. So is ordered, but may at some point not be ordered..?
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
hpoydar has joined #ruby
ghr has joined #ruby
<havenwood> lagweezle: Just finished skimming set.rb, and I didn't find anything that would break the ordered Hash implementation underneath.
bradleyprice has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
<havenwood> lagweezle: They avoid breaking order on the likely culprits: https://github.com/ruby/ruby/blob/trunk/lib/set.rb#L315-L333
kaspergrubbe has quit [Remote host closed the connection]
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
tjr9898 has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
obs has quit [Quit: Konversation terminated!]
reset has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
anaeem1 has joined #ruby
Wolland has joined #ruby
IceDragon has joined #ruby
vyorkin2 has quit [Ping timeout: 256 seconds]
vyorkin2 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has quit [Read error: Connection reset by peer]
tacos1de has quit [Ping timeout: 264 seconds]
relix has joined #ruby
kirun has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
tus has joined #ruby
tacos1de has joined #ruby
nanoyak has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
gruz0[russia] has joined #ruby
x1337807x has joined #ruby
gruz0[russia] has quit [Client Quit]
wallerdev has quit [Ping timeout: 255 seconds]
nanoyak_ has joined #ruby
yetanotherdave has joined #ruby
nanoyak has quit [Ping timeout: 240 seconds]
KanKava has joined #ruby
keen_______ has joined #ruby
arya_ has quit [Ping timeout: 252 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
Neomex has quit [Quit: Leaving]
keen_______ has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
BadQuanta has joined #ruby
sigurding has joined #ruby
RaCx has joined #ruby
wallerdev has joined #ruby
SCHAAP137 has joined #ruby
andikr has quit [Remote host closed the connection]
definiv has quit [Quit: leaving]
emptyflask has quit [Remote host closed the connection]
EvanR has joined #ruby
Kricir has joined #ruby
Asher has quit [Quit: Leaving.]
EvanR is now known as Guest49248
johnrover has quit [Quit: johnrover]
alem0lars has joined #ruby
1JTAAT2YR has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
johnrover has joined #ruby
ramfjord has joined #ruby
elaptics is now known as elaptics`away
yfeldblum has joined #ruby
zorak has quit [Ping timeout: 256 seconds]
p0sixpscl has joined #ruby
vyorkin2 has quit [Ping timeout: 252 seconds]
vyorkin2 has joined #ruby
nmokru has joined #ruby
yfeldblum has quit [Remote host closed the connection]
saarinen has joined #ruby
yfeldblum has joined #ruby
SilverKey has joined #ruby
rebelshrug has quit [Changing host]
rebelshrug has joined #ruby
SilverKey has quit [Max SendQ exceeded]
rebelshrug has quit [Quit: Textual IRC Client: www.textualapp.com]
rebelshrug has joined #ruby
<papercode> running ruby 2.0.0-p353 with rbenv. running "gem install <gem>" works fine, but "bundle install" does not claiming that it could not find <gem> in any of the sources (have verified presence of gemfile, etc)
<papercode> anyone run into this before?
<papercode> i have also successfully ran this command with that version of ruby on another machine
RaCx has quit [Quit: Computer has gone to sleep.]
vyorkin2 has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Read error: Connection reset by peer]
dblessing has quit [Quit: dblessing]
spyderma_ has joined #ruby
RaCx has joined #ruby
jottr has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: i've nodded off.]
timonv has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
shelling has quit [Quit: Connection closed for inactivity]
mijicd has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kimme has joined #ruby
mikecmpbll has joined #ruby
spyderman4g63 has quit [Ping timeout: 256 seconds]
<kimme> +
kimme has left #ruby [#ruby]
tesaf has quit [Quit: Lost terminal]
paulfm has quit []
timonv has joined #ruby
dumdedum has quit [Quit: foo]
IceDragon has quit [Ping timeout: 240 seconds]
kayloos has joined #ruby
IceDragon has joined #ruby
Lingo has joined #ruby
kalusn has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
paulfm has joined #ruby
arup_r1 has joined #ruby
BalkM is now known as bMalum
arup_r has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
relix_ has joined #ruby
relix has quit [Read error: Connection reset by peer]
aspires has quit []
stytown has joined #ruby
emptyflask has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
<shevy> typical of bundler
<shevy> causes more harm than good
s1lverfox has joined #ruby
mikesplain has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
banister has joined #ruby
s1lverfox is now known as s|lverf0x
fijimunkii has joined #ruby
s|lverf0x has quit [Client Quit]
Zesty has joined #ruby
iamjarvo has joined #ruby
mikesplain has joined #ruby
stytown has quit [Quit: stytown]
kireevco has quit [Quit: Leaving.]
coffeina has joined #ruby
yetanotherdave has joined #ruby
<frankjpinto> papercode: does it say <gem> or an actual gem?
sha1sum has joined #ruby
<arup_r1> Can any body tell me why this frustating error ? https://gist.github.com/aruprakshit/7afdaa7083c84e79b03c
theharshest has quit [Quit: This computer has gone to sleep]
johnmolina has joined #ruby
adantj has quit [Ping timeout: 256 seconds]
tcstar has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
<Lingo> arup_r1: you can't use that double inside of the before(:all)
dideler has quit [Ping timeout: 272 seconds]
sdouglas has joined #ruby
GGMethos has quit [Quit: WeeChat 0.4.3]
andrewjanssen has joined #ruby
theharshest has joined #ruby
doev has quit [Remote host closed the connection]
theharshest has quit [Client Quit]
Kricir has joined #ruby
rebelshrug has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 260 seconds]
alem0lars has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
zorak has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
<havenwood> arup_r1: "The use of doubles ... outside of the per-test lifecycle is not supported."
m8 has joined #ruby
banister is now known as banisterfiend
Kricir has quit [Ping timeout: 264 seconds]
<arup_r1> havenwood: It means I need to use before(:each).
jottr has quit [Ping timeout: 256 seconds]
francisfish has joined #ruby
Zenigor has joined #ruby
jottr has joined #ruby
djbkd has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
vyorkin2 has joined #ruby
theharshest has joined #ruby
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
theharshest has quit [Client Quit]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
johnmolina has quit [Read error: Connection reset by peer]
johnmolina has joined #ruby
roolo has joined #ruby
tus has quit [Ping timeout: 255 seconds]
GGMethos has joined #ruby
theharshest has joined #ruby
rebelshrug has joined #ruby
atmosx has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 240 seconds]
edgarjs is now known as edgarjs_afk
edgarjs_afk is now known as edgarjs
niharvey is now known as niharvey|recordi
flowerhack has quit [Quit: Connection closed for inactivity]
phinfonet has quit []
benzrf|offline is now known as benzrf
sha1sum has quit [Quit: leaving]
decoponio has quit [Quit: Leaving...]
baweaver has quit [Read error: Connection reset by peer]
<arup_r1> Suppose I have exp = "(a/b)*100"; a = 50; b =10. Now I can do instance_eval(exp) to get result out ? I wouldn't use `eval`. What other way to do this using any method ?
frankjpinto has quit [Read error: Connection reset by peer]
jshultz has joined #ruby
baweaver has joined #ruby
<benzrf> arup_r1: don't use eval
apeiros has joined #ruby
paulfm has quit []
<arup_r1> How can I then execute this string arithmetic ?
<benzrf> arup_r1: don't
sigurding has quit [Ping timeout: 240 seconds]
<arup_r1> benzrf: idea please...
<benzrf> arup_r1: if you want to execute a string you're doing it wron
<benzrf> g
<wasamasa> why does one have arithmetic in strings anyways
<benzrf> arup_r1: this is an XY problem
<wasamasa> !zing
<wasamasa> !rimshot
<wasamasa> ._.
_JokerDoom has joined #ruby
<arup_r1> Nothing XY... I am getting a JSON ..where some values are coming as "1*2+5" some expressions... so I need to calculate it any how..
dn0v has joined #ruby
<benzrf> arup_r1: that's not JSON
<benzrf> json cannot contain arithmetic
<benzrf> if so, it's not valid json
djbkd has quit [Remote host closed the connection]
<slash_nick> just eval all the params
<benzrf> slash_nick: shut up
* slash_nick shutteths up.
<benzrf> arup_r1:
<benzrf> [1] pry(main)> JSON.parse '{"a": 1 + 1}'
<benzrf> JSON::ParserError: 746: unexpected token at '{"a": 1 + 1}'
<benzrf> from /usr/lib/ruby/1.9.1/json/common.rb:148:in `parse'
<benzrf> valid JSON doesn't contain arithmetic, so if somebody is trying to give you JSON with math in it, that's their problem and not yours
JokerDoom has quit [Ping timeout: 272 seconds]
dn0v has quit [Client Quit]
djbkd has joined #ruby
ghr has joined #ruby
<arup_r1> That's not Json.. It is a value inside a JSON .. I am extracting... I couldn't show you that JSON file...
<apeiros> benzrf: sounds to me like he has json which contains strings with arithmetic in it
<slash_nick> benzrf: but if the math is represented as a string
<benzrf> then something gross is going on
<benzrf> arup_r1: why do you have json with math in it
atmosx has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<arup_r1> apeiros: You got it...
jaimef has quit [Excess Flood]
djbkd has quit [Remote host closed the connection]
kayloos has quit [Remote host closed the connection]
<wasamasa> arup_r1: where do you have that from?
<arup_r1> That's I can't show you.. Its private..
<havenwood> It should remain private.
<havenwood> Abomination!
<wasamasa> arup_r1: you can't tell us where you got it from?
<wasamasa> arup_r1: or you don't want to?
Vivekananda_y510 has joined #ruby
<slash_nick> arup_r1: we don't want to see it, we want to know where you get it from.... ie, do you trust it?
RaCx has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
alem0lars has joined #ruby
<havenwood> lets `eval` it and find out! :O
<wasamasa> lol
<benzrf> arup_r1: we cannot help you, then
<benzrf> you probably have a different real problem which has a better solution that makes more sense
<Mon_Ouie> It's easy, just write a parser for arithmetic expressions :(
<slash_nick> '{"a": "1+1;sys(...);"}'
<benzrf> but if you refuse to tell it to us
<benzrf> you can use eval
<Mon_Ouie> :)*
<benzrf> good luck with them security holes
ghr has quit [Ping timeout: 240 seconds]
<banisterfiend> Mon_Ouie 'alut 'alut 'alut, comment t'apelles tu?
<Mon_Ouie> 'alut, 'alut, 'alut, je suis Mon_Ouie
<koyd> lol
sigurding has joined #ruby
<banisterfiend> Mon_Ouie that hit the spot, thx :D
<arup_r1> benzrf: I give importance you guys, so I asked... I will ask my client to change the JSON presenter then.. Nothing I am refusing..
pu22l3r has joined #ruby
<benzrf> arup_r1: ok
<benzrf> arup_r1: the question is why math is coming through the json and why you need to eval that math
elaptics`away is now known as elaptics
<wasamasa> arup_r1: so you're getting your data from a source that made you sign a legal contract that forbids you to give out trade secrets
<benzrf> arup_r1: odds are that one of those two, or both, is the real problem
moritzs has joined #ruby
<benzrf> arup_r1: for example, if users are typing equations in the frontend, it's the frontend javascript that should be solving them
gavit has quit [Ping timeout: 252 seconds]
<arup_r1> I am doing some data analytics job using Ruby, where data is being sent as as Json..
jaimef has joined #ruby
stytown has joined #ruby
treehug88 has joined #ruby
<arup_r1> And they are giving me those shits to me to calculate ... its kind of statistics...
himsin_ has joined #ruby
himsin_ has quit [Client Quit]
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
<arup_r1> I will ask them to send me as a separate data with a specific labels.. I will iterate and through JSON and calculate with the formula...
alem0lars has quit [Quit: Going AFK...]
kalusn has joined #ruby
alem0lars has joined #ruby
himsin has quit [Ping timeout: 264 seconds]
<arup_r1> Currently the some statistics data is coming ready made as formula...
<arup_r1> benzrf: Am I clear ?
stytown has quit [Client Quit]
alvaro_o has joined #ruby
stytown has joined #ruby
deric_skibotn_ has joined #ruby
chrishough has quit [Ping timeout: 272 seconds]
DanielRb has quit [Ping timeout: 272 seconds]
chipotle_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
chipotle has quit [Read error: Connection reset by peer]
DanielRb has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
chipotle_ is now known as chipotle
deric_skibotn_ is now known as deric_skibotn
phutchins has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
<arup_r1> wasamasa: Is there anything more to tell ? :-)
frellnet has quit []
stytown has quit [Client Quit]
<wasamasa> *"Any other questions?"
havenwood has quit [Remote host closed the connection]
<benzrf> oh
<benzrf> arup_r1: there are probably gems for dealing with math in strings
akemrir has quit [Remote host closed the connection]
dorei has joined #ruby
stytown has joined #ruby
<arup_r1> wasamasa: You are chilling there it seems...
lele has quit [Ping timeout: 240 seconds]
<arup_r1> Can't I expect something serious...? Hope you get me..
<wasamasa> lol, I just turned your question into something other people can actually understand
<arup_r1> benzrf: I am not aware of... :-(
<slash_nick> curl it to google and parse their result
<wasamasa> if that offends you, I can't help you either
<slash_nick> there's a 4 on this page... the answer is probably 4
claymore has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
jdj_dk has joined #ruby
yalue has quit [Remote host closed the connection]
jdj_dk has quit [Client Quit]
stytown has quit [Client Quit]
djcp has quit [Ping timeout: 256 seconds]
failshel_ has joined #ruby
lele has joined #ruby
<arup_r1> wasamasa: Nothing offend I am crying.. I have to wait now till they fix the API.. No money till then.. so I am bit serious now
<arup_r1> :(
p0sixpscl has joined #ruby
<wasamasa> you're free to just eval the contents, it's just a pretty dangerous thing to do
<wasamasa> all we do is advocating the right way of dealing with the situation
paulfm has joined #ruby
<arup_r1> wasamasa: Pro tips I do care... So, I dropped them emails about it
endash has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
failshell has quit [Ping timeout: 240 seconds]
<Mon_Ouie> I don't understand what's wrong with just using a math expression parser
<Mon_Ouie> Being given expressions rather than numbers doesn't seem *that* weird
jdj_dk has joined #ruby
nobitano_ has joined #ruby
Oxelist has joined #ruby
<wasamasa> I don't understand either
<slash_nick> i like that solution... i don't like the eval solution.
<wasamasa> as long as you know what you expect to get and only parse that stuff
failshel_ has quit [Ping timeout: 272 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrmargolis has quit [Remote host closed the connection]
<wasamasa> !g ruby parse arithmetic expressions
<wasamasa> oh well
<wasamasa> I've asked ddg and it gave me this: https://github.com/omghax/einstein
<wasamasa> which is a little bit old, hmm
claymore has joined #ruby
<arup_r1> !g means ?
Squarepy has joined #ruby
<wasamasa> I hoped that would tell the bot to google for it
<lagweezle> Probably 'Google for the terms that follow'
<arup_r1> Mon_Ouie: Can you tell me what *parser* you are referring me ?
mehlah has joined #ruby
<Mon_Ouie> Basic arithmetic notation hasn't changed in a while though so that should be fine
sigurding has quit [Quit: sigurding]
<nobitano_> Hi guys. I am using SecureRandom.urlsafe_base64(8) and I want to be able to concat two of them, so that I am always able to retrieve the first one. So, if the first one is abab and the second one is cddd I could be able to do ababcddd and know that abab is the first one. Any approaches on this?
<wasamasa> this looks more recent
<Mon_Ouie> I didn't know any, but ^ is the first google result
maximski has joined #ruby
frellnet has joined #ruby
Kricir has joined #ruby
stytown has joined #ruby
<arup_r1> wasamasa: thanks...
stytown has quit [Client Quit]
Vivekananda_y510 has quit [Ping timeout: 264 seconds]
maximski has quit [Read error: Connection reset by peer]
<wasamasa> arup_r1: stfw next time
<wasamasa> arup_r1: every self-respecting developer should be able to do that
<wasamasa> arup_r1: and before you ask, "stfw" means "Search the fine Web™"
<slash_nick> just shell out to expr :)
<slash_nick> `expr #{json_param}`
dwayhs has quit [Read error: Connection reset by peer]
maximski has joined #ruby
dwayhs has joined #ruby
<arup_r1> slash_nick: That's OS dependent...
maximski has quit [Client Quit]
Kricir has quit [Ping timeout: 245 seconds]
<slash_nick> it's like one of those "hey, try rm -rf /" suggestions
hpoydar has quit [Remote host closed the connection]
hpoydar has joined #ruby
stytown has joined #ruby
DivineEntity has quit [Quit: Lost terminal]
Vivekananda_y510 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Zenigor has quit [Remote host closed the connection]
bmurt has quit []
brian___ has quit [Quit: brian___]
fabrice31 has joined #ruby
hpoydar has quit [Ping timeout: 256 seconds]
edgarjs is now known as edgarjs_afk
testcore has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
tobago has quit [Remote host closed the connection]
djcp has joined #ruby
Asher has joined #ruby
emptyflask has quit []
tus has joined #ruby
fijimunkii has quit [Quit: leaving]
blackmesa has joined #ruby
timonv has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 260 seconds]
Oxelist has quit [Ping timeout: 260 seconds]
Spami has joined #ruby
ghr has joined #ruby
benlieb has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
kaspergrubbe has joined #ruby
mconnolly has quit [Quit: mconnolly]
hpoydar has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
<arup_r1> wasamasa: The Gem you suggested works like a charm.. Thank you very much again.
edgarjs_afk is now known as edgarjs
<wasamasa> arup_r1: stfw is a wonderful way to help yourself
<wasamasa> arup_r1: learn to use it
ferr has joined #ruby
<arup_r1> sure sure
nanoyak_ has quit [Quit: Computer has gone to sleep.]
baweaver has quit [Remote host closed the connection]
kbarry_ has joined #ruby
Arkaniad|Laptop has quit [Ping timeout: 240 seconds]
Arkaniad has quit [Ping timeout: 245 seconds]
kbarry has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
bubbajones has quit [Ping timeout: 245 seconds]
exgf has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
bubbajones has joined #ruby
arup_r1 has left #ruby [#ruby]
johnrover has quit [Quit: johnrover]
SBoolean has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
niharvey|recordi is now known as niharvey
robertodecurnex has quit [Remote host closed the connection]
comma8 has joined #ruby
keystonelemur has joined #ruby
frellnet has quit [Remote host closed the connection]
frellnet has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
djbkd has quit [Remote host closed the connection]
keystonelemur is now known as baweaver
kaspergrubbe has quit []
gregf has joined #ruby
gtc has joined #ruby
frellnet has quit [Ping timeout: 264 seconds]
Vivekananda_y510 has quit [Ping timeout: 264 seconds]
mikesplain has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
absolutezeroff has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
Lingo has quit [Quit: Lingo - http://www.lingoirc.com]
spider-mario has quit [Remote host closed the connection]
alexa_ has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
DrShoggoth has quit [Quit: Leaving]
chrishough has joined #ruby
ldnunes has quit [Quit: Leaving]
obs has joined #ruby
djbkd has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
Squarepy has quit [Quit: Leaving]
stytown has quit [Quit: stytown]
absolutezeroff has joined #ruby
nickenchuggets has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
helpa has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cek has joined #ruby
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jfran_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<cek> What's the method to replace element in array for specific index inline?
koyd has quit [Quit: leaving]
<baweaver> array[index] = somethingelse
<cek> a[2] = 'new', but inline: arr.map.select.map{}.replace(2, 'new')
<cek> no such function, right?
stytown has joined #ruby
<baweaver> [].tap { |a| a[i] = what }
<cek> okay, that's closer
<baweaver> what are you trying to do?
tjr9898 has joined #ruby
<cek> write a cool oneliner
* terrellt cries.
<baweaver> first, one liners, no
<baweaver> readability first and always
moritzs has joined #ruby
<baweaver> second, cool and clever are very dirty words in code
end_guy has quit [Remote host closed the connection]
<terrellt> To be fair
<terrellt> Sometimes it's just fun.
andrewlio has quit [Quit: Leaving.]
<baweaver> granted
end_guy has joined #ruby
<terrellt> Does tend to improve your mastery over some things.
<terrellt> But yeah, if this is for a production system, better not.
<baweaver> but assume the next guy to touch the code is a psychopath who knows your home address.
<terrellt> <--
<baweaver> if you hesitate, don't do it.
Kricir has joined #ruby
<baweaver> Granted an occasional round of code golf is fun, but avoid it in production code.
snath has quit [Ping timeout: 240 seconds]
<cek> okay girls
Atttwww has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pygospa has joined #ruby
jerius has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
<baweaver> muting, it's nice not to have to listen to condescention.
<zenspider> cek: that's _horrible_
amargherio has quit [Read error: Connection reset by peer]
* csmrfx is a psychopath who can find out your home address - just to give you helpful advice
<Authenticator> I've got a class which extends a module. A class method calls the module method, which creates a @ivar with ||=. I call the module method twice from the same class method and the value returned isn't retained. Why might this be? In a trivial test example it is retained as I'd expect...
kbarry_ has quit [Ping timeout: 240 seconds]
ringarin has joined #ruby
<baweaver> I have a rather fun ignore list cultivating anymore.
<zenspider> Authenticator: probably because you're not doing what you say / think you are
<benzrf> haskell is an amazing language for completely unreadable but very clever one liners
RaCx has joined #ruby
<csmrfx> sounds bit convoluted
Kricir has quit [Ping timeout: 260 seconds]
<csmrfx> Authenticator: maybe you could simplify that scheme somehow
<cek> Authenticator: use instance_variable_set
lolmaus has quit [Ping timeout: 245 seconds]
<zenspider> benzrf: yeah. I've tried a couple times to learn haskell ... it's not a language I can read OR write.
<baweaver> Lisp: king of one liners
<zenspider> cek: how would that change anything?
<cek> magically
<benzrf> zenspider: please tell me how you tried to learn it
<dorei> haskell reminds me the way mathematicians write their thoughts
<zenspider> baweaver: not really. they tend to write very well formatted code.
<Authenticator> zenspider: I know, but I'm having trouble figuring out what to check. I've printed out the object_id and caller for each invokation and it's the same object - the class, and is called from the lines I suspect.
wildroman2 has quit [Ping timeout: 264 seconds]
<baweaver> they do, but when they want to one line
<baweaver> that's what I was getting at
<baweaver> perl is the king if you're going by that context.
<zenspider> yup. I was gonna say that
<zenspider> and python... I really dislike their comprehensions
Morkel_ has joined #ruby
<benzrf> zenspider: wait
<benzrf> mathematicians write messy code?
<cek> book of the year: best python oneliners
<zenspider> benzrf: painfully
axl_ has quit [Quit: axl_]
<benzrf> zenspider: please tell me how you tried to learn haskell
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
<baweaver> Oi benzrf: http://livescript.net/
<benzrf> baweaver: i know :p
tjr9898 has quit [Remote host closed the connection]
<baweaver> this look Haskell inspired
<baweaver> hardcore so.
<benzrf> baweaver: maybe a little
nanoyak has joined #ruby
<dorei> benzrf: u start with category theory and then u move to haskell :p
<baweaver> I saw the first few samples and laughed
<benzrf> baweaver: more like haskell if it were a perl descendent
<baweaver> maybe more OCaml
<dik_dak> anyone here experienced with sidekiq?
<benzrf> it's far too messy to be haskell
<baweaver> still pretty heavy influence
<benzrf> zenspider: haskell really isnt a language you can learn by looking at examples
havenwood has joined #ruby
tjr9898 has joined #ruby
<benzrf> at least
<benzrf> not if your background is in ruby
<baweaver> Learn you a Haskell - read it
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
everettForth has joined #ruby
<benzrf> dorei: i only learned some cat theor after about 2-3 years of haskell
<benzrf> (y)
axl_ has joined #ruby
lolmaus has joined #ruby
<zenspider> I'll stick to better languages for me.
<benzrf> zenspider: how do you know theyre better
<zenspider> I said "for me". I know what works for me. You don't.
<zenspider> Mathematica, Racket, Ruby, C. My current top choices
<benzrf> zenspider: how do you know theyre better for you
johnmolina has quit []
<Authenticator> Hmmm, somewhat obscure problem. The calls ended up being handled daemonized. Because of threading coincidence they appeared to be running linearly though. And of course, the value was only being set in the new process.
coffeina has quit [Quit: Wychodzi]
<benzrf> haskell works very well for me, but the first 6 months i knew it i absolutely sucked at it
<zenspider> you're one more stupid question from flipping the bozo bit.
<benzrf> because its a completely different paradigm
<benzrf> and learning paradigms is much harder than learning languages
<baweaver> they're not really stupid questions
<zenspider> Authenticator: is this related to the ||= problem above?
paulfm has quit []
rayners has quit [Remote host closed the connection]
<zenspider> Authenticator: can / should you use a mutex to control write access?
<zenspider> or can you guarantee it gets set before threads get spawned?
<Authenticator> zenspider: Yes. I was properly setting the ivar, but when it was being run was in a forked process so it couldn't writeback.
workmad3 has joined #ruby
everettForth has quit [Ping timeout: 240 seconds]
jkline has joined #ruby
<cek> Let's guess more without the code. I've got Vanga on the line.
<zenspider> ah. forked processes. not threads... that's worse (and better)
cocotton has quit [Ping timeout: 255 seconds]
tjr9898_ has joined #ruby
everettForth has joined #ruby
everettForth has quit [Read error: Connection reset by peer]
nanoyak has quit [Ping timeout: 255 seconds]
<Authenticator> zenspider: Yes, I'll make it a module ivar set at load, then make an accessor.
kalusn has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
gavit has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
timonv has joined #ruby
nanoyak has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
northfurr has quit [Quit: northfurr]
alexa_ has joined #ruby
iamjarvo has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
gregf has quit [Quit: WeeChat 0.4.3]
lolmaus has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
bamdad has joined #ruby
dda has joined #ruby
charlied3 has joined #ruby
bamdad has left #ruby [#ruby]
kalusn has joined #ruby
obs has quit [Quit: Konversation terminated!]
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
edgarjs is now known as edgarjs_afk
Vivekananda_y510 has joined #ruby
qwyeth has quit [Quit: Leaving]
Xuerian has joined #ruby
phutchins has joined #ruby
terrellt has quit [Quit: Leaving...]
charlied3 has quit [Ping timeout: 245 seconds]
bhaak has quit [Ping timeout: 260 seconds]
dwayhs has quit [Quit: Computer has gone to sleep.]
terrellt has joined #ruby
mconnolly has joined #ruby
treehug88 has quit []
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
AlexRussia has joined #ruby
foo-bar- has joined #ruby
britneywright has joined #ruby
wildroman2 has joined #ruby
t0ke has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
kaspergrubbe has joined #ruby
koyd has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
t0ke has quit [Client Quit]
dorei has quit []
nanoyak has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
riotjones has quit [Ping timeout: 240 seconds]
ferr has quit [Ping timeout: 252 seconds]
halogenandtoast has joined #ruby
Deejay has joined #ruby
Deejay is now known as Guest15117
Photism has joined #ruby
riotjones has joined #ruby
Spami has joined #ruby
dik_dak has quit [Quit: Leaving]
banister has joined #ruby
ringarin has quit [Quit: Leaving]
foo-bar- has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Ping timeout: 264 seconds]
m8 has quit [Quit: Sto andando via]
Oxelist has joined #ruby
pietr0 has joined #ruby
halogenandtoast has quit [Quit: halogenandtoast]
lolmaus has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
elaptics is now known as elaptics`away
baroquebobcat has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
edgarjs_afk is now known as edgarjs
nateberkopec has quit [Quit: Leaving...]
pietr0 has quit [*.net *.split]
Spami has quit [*.net *.split]
riotjones has quit [*.net *.split]
gavit has quit [*.net *.split]
Morkel has quit [*.net *.split]
gtc has quit [*.net *.split]
DanielRb has quit [*.net *.split]
chipotle has quit [*.net *.split]
p0sixpscl has quit [*.net *.split]
hpoydar has quit [*.net *.split]
jdj_dk has quit [*.net *.split]
roolo has quit [*.net *.split]
freerobby has quit [*.net *.split]
Wolland has quit [*.net *.split]
Guest49248 has quit [*.net *.split]
danijoo has quit [*.net *.split]
devdazed has quit [*.net *.split]
b00stfr3ak has quit [*.net *.split]
io_syl has quit [*.net *.split]
alexju has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
Poky has quit [*.net *.split]
whowantstolivefo has quit [*.net *.split]
ylluminarious|aw has quit [*.net *.split]
klaas has quit [*.net *.split]
robustus has quit [*.net *.split]
qsun has quit [*.net *.split]
larsam has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
TheNumb has quit [*.net *.split]
yano has quit [*.net *.split]
joast has quit [*.net *.split]
shanlar has quit [*.net *.split]
felipe has quit [*.net *.split]
rblackwe_ has quit [*.net *.split]
seanmarcia has quit [*.net *.split]
go|dfish has quit [*.net *.split]
destructure has quit [*.net *.split]
Schmidt has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
blackgoat has quit [*.net *.split]
neoice has quit [*.net *.split]
dylannorthrup has quit [*.net *.split]
tonini has quit [*.net *.split]
seppuku has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
Guest76851 has quit [*.net *.split]
crodas has quit [*.net *.split]
lagweezle has quit [*.net *.split]
bahar has quit [*.net *.split]
\q has quit [*.net *.split]
Gate has quit [*.net *.split]
farn has quit [*.net *.split]
finges has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
Cope has quit [*.net *.split]
Symbiosisz has quit [*.net *.split]
Rix has quit [*.net *.split]
jrdnull has quit [*.net *.split]
dnyy has quit [*.net *.split]
DanKnox has quit [*.net *.split]
sheepman has quit [*.net *.split]
renier has quit [*.net *.split]
ajf- has quit [*.net *.split]
csfrancis has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
timmow has quit [*.net *.split]
Cork has quit [*.net *.split]
tomaw has quit [*.net *.split]
phreax has quit [*.net *.split]
xm has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
dazeddev has quit [*.net *.split]
mburns has quit [*.net *.split]
mame1 has quit [*.net *.split]
snkcld has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
dRbiG has quit [*.net *.split]
KillerFox has quit [*.net *.split]
hypnosb has quit [*.net *.split]
error404 has quit [*.net *.split]
jhass|off has quit [*.net *.split]
Bish has quit [*.net *.split]
eythorium has quit [*.net *.split]
yasu has quit [*.net *.split]
AndyWojo_ has quit [*.net *.split]
Koshian has quit [*.net *.split]
clocKwize has quit [*.net *.split]
ruisantos has quit [*.net *.split]
peck_ has quit [*.net *.split]
Rennex has quit [*.net *.split]
vali has quit [*.net *.split]
zalmoxes has quit [*.net *.split]
ozzloy has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
verto has quit [*.net *.split]
nw has quit [*.net *.split]
ponyfleisch has quit [*.net *.split]
pgmcgee has quit [*.net *.split]
danshultz has quit [*.net *.split]
ehlovader has quit [*.net *.split]
chridal has quit [*.net *.split]
Scient has quit [*.net *.split]
mosez has quit [*.net *.split]
mjuszczak has quit [*.net *.split]
blackjid has quit [*.net *.split]
C0deMaver1ck has quit [*.net *.split]
ViperChief has quit [*.net *.split]
callumacrae has quit [*.net *.split]
Derander_ has quit [*.net *.split]
nisstyre has quit [*.net *.split]
gilesw has quit [*.net *.split]
gimpygoo has quit [*.net *.split]
sputnik13 has quit [*.net *.split]
epochwolf has quit [*.net *.split]
shevy has quit [*.net *.split]
Liothen has quit [*.net *.split]
troter has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
nighter has quit [*.net *.split]
gyre007 has quit [*.net *.split]
Nightmare has quit [*.net *.split]
mroth has quit [*.net *.split]
zenojis has quit [*.net *.split]
PhilK has quit [*.net *.split]
LACP has quit [*.net *.split]
intnsity has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
cschneid has quit [*.net *.split]
ikanobori has quit [*.net *.split]
sfr^ has quit [*.net *.split]
mjmac has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
pusewicz has quit [*.net *.split]
dukedave has quit [*.net *.split]
bjeanes has quit [*.net *.split]
initself_ has quit [*.net *.split]
msch has quit [*.net *.split]
zartoosh has quit [*.net *.split]
Kamilion has quit [*.net *.split]
Anarch has quit [*.net *.split]
ryotarai has quit [*.net *.split]
acalewin has quit [*.net *.split]
FL1SK has quit [*.net *.split]
george2 has quit [*.net *.split]
deepy has quit [*.net *.split]
Radar has quit [*.net *.split]
jamo_ has quit [*.net *.split]
gremax has quit [*.net *.split]
mjc_ has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
bcavileer___ has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
DefV has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
jenrzzz has quit [*.net *.split]
jeregrine has quit [*.net *.split]
Klumben has quit [*.net *.split]
hostess has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
rfv has quit [*.net *.split]
lectrick has quit [*.net *.split]
rickruby__ has quit [*.net *.split]
vcoinminer____ has quit [*.net *.split]
charles81____ has quit [*.net *.split]
paulog has quit [*.net *.split]
genta has quit [*.net *.split]
glowcoil has quit [*.net *.split]
m_3 has quit [*.net *.split]
dandrade has quit [*.net *.split]
Wayneoween has quit [*.net *.split]
dmoe______ has quit [*.net *.split]
Karunamon has quit [*.net *.split]
jpinnix has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
CJD14___ has quit [*.net *.split]
ceej has quit [*.net *.split]
frode15243 has quit [*.net *.split]
manacit has quit [*.net *.split]
dioms_ has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
schaary|afk has quit [*.net *.split]
Macacity has quit [*.net *.split]
callenb has quit [*.net *.split]
kenichi has quit [*.net *.split]
Paradox has quit [*.net *.split]
csq has quit [*.net *.split]
lfox has quit [*.net *.split]
aetaric has quit [*.net *.split]
artgoeshere has quit [*.net *.split]
dyreshark has quit [*.net *.split]
dmarr has quit [*.net *.split]
cek has quit [*.net *.split]
lazyguru has quit [*.net *.split]
pasties has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
juni0r has quit [*.net *.split]
ddv has quit [*.net *.split]
xsdg has quit [*.net *.split]
snapcase has quit [*.net *.split]
majoh has quit [*.net *.split]
j416 has quit [*.net *.split]
Mattias has quit [*.net *.split]
hinderaker has quit [*.net *.split]
[42] has quit [*.net *.split]
matson has quit [*.net *.split]
Sthebig has quit [*.net *.split]
parus has quit [*.net *.split]
niharvey has quit [*.net *.split]
Meeh has quit [*.net *.split]
JStoker has quit [*.net *.split]
cherry_lin has quit [*.net *.split]
ndrst has quit [*.net *.split]
rtl has quit [*.net *.split]
AndyWojo has joined #ruby
Cope has joined #ruby
Rennex has joined #ruby
rblackwe has joined #ruby
seanmarcia has joined #ruby
Morkel has joined #ruby
Gate has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
jhass|off has joined #ruby
snkcld has joined #ruby
queequeg1 has joined #ruby
dazeddev has joined #ruby
crodas has joined #ruby
lagweezle has joined #ruby
peck_ has joined #ruby
pietr0 has joined #ruby
mburns has joined #ruby
elaptics`away has joined #ruby
xm has joined #ruby
yasu has joined #ruby
b00stfr3ak has joined #ruby
dylannorthrup has joined #ruby
qsun has joined #ruby
Spami has joined #ruby
Symbiosisz has joined #ruby
whowantstolivefo has joined #ruby
finges has joined #ruby
blackgoat has joined #ruby
freerobby has joined #ruby
dnyy has joined #ruby
klaas has joined #ruby
DanKnox has joined #ruby
thejoecarroll has joined #ruby
hpoydar has joined #ruby
Schmidt has joined #ruby
\q has joined #ruby
error404 has joined #ruby
gtc has joined #ruby
Cork has joined #ruby
jhass|off is now known as jhass
jdj_dk has joined #ruby
alexju has joined #ruby
kiki_lamb has joined #ruby
EvanR has joined #ruby
ylluminarious has joined #ruby
csfrancis has joined #ruby
tonini has joined #ruby
go|dfish has joined #ruby
Wolland has joined #ruby
samuelkadolph has joined #ruby
riotjones has joined #ruby
zalmoxes has joined #ruby
eythorium has joined #ruby
jrdnull has joined #ruby
roolo has joined #ruby
Klumben has joined #ruby
lagweezle is now known as Guest68977
seppuku has joined #ruby
Gadgetoid has joined #ruby
bahar has joined #ruby
renier has joined #ruby
Koshian has joined #ruby
DanielRb has joined #ruby
Bish has joined #ruby
devdazed has joined #ruby
io_syl has joined #ruby
EvanR is now known as Guest91891
RealMarc has joined #ruby
chipotle has joined #ruby
DarthGandalf has joined #ruby
fabrice31 has joined #ruby
dRbiG has joined #ruby
benlieb has quit [Quit: benlieb]
clocKwize has joined #ruby
sheepman has joined #ruby
Guest68977 is now known as lagweezle
alexherbo2 has joined #ruby
gavit has joined #ruby
benlieb has joined #ruby
lolmaus has joined #ruby
benlieb has quit [Client Quit]
Rix has joined #ruby
alexherbo2 has quit [Client Quit]
ddv has joined #ruby
snapcase has joined #ruby
Mattias has joined #ruby
j416 has joined #ruby
majoh has joined #ruby
hinderaker has joined #ruby
matson has joined #ruby
Trynemjoel has joined #ruby
pasties has joined #ruby
Meeh has joined #ruby
[42] has joined #ruby
niharvey has joined #ruby
parus has joined #ruby
Sthebig has joined #ruby
cherry_lin has joined #ruby
JStoker has joined #ruby
ndrst has joined #ruby
rtl has joined #ruby
cek has joined #ruby
chridal has joined #ruby
danshultz has joined #ruby
nw has joined #ruby
callumacrae has joined #ruby
blackjid has joined #ruby
vali has joined #ruby
C0deMaver1ck has joined #ruby
Scient has joined #ruby
verto has joined #ruby
ponyfleisch has joined #ruby
ViperChief has joined #ruby
nisstyre has joined #ruby
ehlovader has joined #ruby
ozzloy has joined #ruby
gimpygoo has joined #ruby
gilesw has joined #ruby
mjuszczak has joined #ruby
troter has joined #ruby
Derander_ has joined #ruby
shevy has joined #ruby
epochwolf has joined #ruby
jumblemuddle has joined #ruby
Liothen has joined #ruby
DarkFoxDK has joined #ruby
mosez has joined #ruby
pgmcgee has joined #ruby
sputnik13 has joined #ruby
mroth has joined #ruby
Nightmare has joined #ruby
gyre007 has joined #ruby
nighter has joined #ruby
LACP has joined #ruby
zenojis has joined #ruby
PhilK has joined #ruby
intnsity has joined #ruby
dukedave has joined #ruby
cschneid has joined #ruby
ikanobori has joined #ruby
Y_Ichiro has joined #ruby
sfr^ has joined #ruby
zz_jrhorn424 has joined #ruby
mjmac has joined #ruby
amitchellbullard has joined #ruby
pusewicz has joined #ruby
bjeanes has joined #ruby
initself_ has joined #ruby
msch has joined #ruby
Kamilion has joined #ruby
zartoosh has joined #ruby
Anarch has joined #ruby
ryotarai has joined #ruby
acalewin has joined #ruby
FL1SK has joined #ruby
deepy has joined #ruby
Radar has joined #ruby
george2 has joined #ruby
jamo_ has joined #ruby
mjc_ has joined #ruby
gremax has joined #ruby
ballPointPenguin has joined #ruby
ELLIOTTCABLE has joined #ruby
bcavileer___ has joined #ruby
DefV has joined #ruby
andrewstewart has joined #ruby
SegFaultAX has joined #ruby
jenrzzz has joined #ruby
hostess has joined #ruby
jeregrine has joined #ruby
JaTochNietDan has joined #ruby
rfv has joined #ruby
lectrick has joined #ruby
charles81____ has joined #ruby
paulog has joined #ruby
vcoinminer____ has joined #ruby
genta has joined #ruby
rickruby__ has joined #ruby
dandrade has joined #ruby
Wayneoween has joined #ruby
m_3 has joined #ruby
dmoe______ has joined #ruby
Karunamon has joined #ruby
CJD14___ has joined #ruby
jpinnix has joined #ruby
frode15243 has joined #ruby
schaary|afk has joined #ruby
ceej has joined #ruby
callenb has joined #ruby
glowcoil has joined #ruby
dioms_ has joined #ruby
guilleiguaran__ has joined #ruby
Macacity has joined #ruby
yosafbridge has joined #ruby
manacit has joined #ruby
kenichi has joined #ruby
Paradox has joined #ruby
aetaric has joined #ruby
lfox has joined #ruby
csq has joined #ruby
artgoeshere has joined #ruby
dmarr has joined #ruby
lazyguru has joined #ruby
dyreshark has joined #ruby
xsdg has joined #ruby
juni0r has joined #ruby
alexherb1 has joined #ruby
iaj_ has joined #ruby
timmow has joined #ruby
JStoker has quit [Max SendQ exceeded]
JStoker has joined #ruby
Kricir has joined #ruby
Olipro has quit [Max SendQ exceeded]
SirCmpwn has joined #ruby
iaj has quit [Write error: Broken pipe]
neoice has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lbwski has quit [Remote host closed the connection]
camt has quit [Read error: Connection reset by peer]
phreax has joined #ruby
lbwski_ has joined #ruby
destructure has joined #ruby
s0n1c- has joined #ruby
ixx has quit [Write error: Broken pipe]
d3scala has quit [Write error: Broken pipe]
zaargy has quit [Write error: Broken pipe]
hackeron has quit [Write error: Broken pipe]
ruisantos has joined #ruby
lolmaus has joined #ruby
ixx has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
zaargy has joined #ruby
camt has joined #ruby
seppuku has quit [Ping timeout: 240 seconds]
Poky has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
ixx is now known as Guest9909
shvelo has quit [Ping timeout: 245 seconds]
cuppscakes has joined #ruby
comma8|BNC has joined #ruby
ylluminarious is now known as ylluminarious|aw
seppuku has joined #ruby
cuppscakes has quit [Client Quit]
shanlar has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
comma8 has quit [Quit: Leaving]
comma8|BNC is now known as comma8
wildroman3 has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
descala has joined #ruby
hackeron has joined #ruby
kalusn has quit [Remote host closed the connection]
seppuku has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
seppuku has joined #ruby
gavit has quit [Ping timeout: 240 seconds]
johnrover has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
benzrf is now known as benzrf|offline
rokob has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
robbyoconnor has quit [Read error: No route to host]
earthquake has joined #ruby
chipotle has quit [Quit: cya]
Soda has joined #ruby
jason_rad has joined #ruby
dda has quit [Ping timeout: 255 seconds]
Olipro has joined #ruby
<jason_rad> I know Hash.first is valid.. but is there not a Hash.last?
mjc_ has quit []
Poky has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
<Spami> I have a multi thread question. let say I'm trying to analyze 80000k record and extract data from it. Is it possible to run 80 thread in parallel that process 1000 records each. Is it going to be faster ?
benzrf|offline is now known as benzrf
halogenandtoast has joined #ruby
seppuku has quit [Ping timeout: 260 seconds]
jdj_dk has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
mjc has joined #ruby
seppuku has joined #ruby
mjc is now known as mjc_
jobewan has quit [Quit: Leaving]
johnrover has quit [Quit: johnrover]
gregf has joined #ruby
Guest15117 has quit [Quit: Computer has gone to sleep.]
<kaspergrubbe> Spami: Depends on a lot of factors, what kind of analysis, your machine, your OS etc. But if you tweak the amount of threads to your hardware, and your job is indeed able to run in parallel, I will believe it in most cases to run faster.
lewix has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
alem0lars has quit [Quit: Going AFK...]
Aryasam has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Oxelist has quit [Ping timeout: 240 seconds]
felipe has joined #ruby
<Spami> kaspergrubbe, running it on my macbook pro. Basically, 2 api call(getting json, then decoding the json then parsing the content of the message looking for websites)
seppuku has quit [Ping timeout: 240 seconds]
halogenandtoast has quit [Quit: halogenandtoast]
JoshGlzBrk has joined #ruby
seppuku has joined #ruby
Takle has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
BadQuanta has quit [Ping timeout: 260 seconds]
<kaspergrubbe> Spami: I have done something like that (Download resource, store it) and in my case it was faster, and well worth it.
<Spami> kaspergrubbe, good to know
lolmaus has joined #ruby
<Spami> because It's really slow right now. The api is really slow to respond so I'm hoping to go faster.
ephemerian has quit [Quit: Leaving.]
halogenandtoast has joined #ruby
halogenandtoast has quit [Client Quit]
nobitano_ has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
seppuku has quit [Ping timeout: 240 seconds]
<testcore> anyone else find the 'net/http' gem to be horribly convoluted and hard to use?
<zenspider> gem?
Morkel has quit [Quit: Morkel]
dwayhs has joined #ruby
<kaspergrubbe> Yeah, I started out with threads but that bit me in because I had issues in my code, so I made it parallel in several processes instead hooking them together with beanstalkd, and had a nice producer/consumer thing going on
kireevco has joined #ruby
seppuku has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
ultimoo has joined #ruby
<kaspergrubbe> Spami: I would probably use threads today. I can recommend both "Working With Ruby Threads" and "Working With Unix Processes" by Jesse Storimer.
freerobby has quit [Quit: Leaving.]
<Spami> kaspergrubbe, well it's outside my app. It's like one time use,
<kaspergrubbe> testcore: Yes! I tend to build a wrapper around the rough edges, but I don't like it at all :-)
<Spami> So I'm not to worry about that
axl_ has left #ruby [#ruby]
baweaver has joined #ruby
<havenwood> testcore: Net::HTTP is in the stdlib. But there are a few good Net::HTTP wrappers as well as nice alternatives like HTTP or HTTPClient.
earthquake has quit [Quit: earthquake]
axsuul has joined #ruby
<kaspergrubbe> testcore: And the error-handling is exceptionally bad (pun intended! :P), https://gist.github.com/tenderlove/245188
aspires has joined #ruby
<testcore> the usage just seems absurd... create a GET object, with a URI, then call *another* method somewhere else to execute that GET... supplying the uri params *already given* to the damn GET object
dwayhs has quit [Ping timeout: 272 seconds]
<kaspergrubbe> I like the pattern Dan Knox are proposing here: http://danknox.github.io/2013/01/27/using-rubys-native-nethttp-library/
<zenspider> not a gem, unless there's something wierd I don't know about
<testcore> meh. lib.
seppuku has quit [Ping timeout: 264 seconds]
<zenspider> I use openuri for all GETs and I love it
<zenspider> URI.parse(...).read
washtubs has joined #ruby
francisfish has quit [Remote host closed the connection]
<rapha> havenwood: .reverse.uniq.reverse solved my problem pretty neatly, but thanks for the elaboration anyways! I'll be sure to keep that bookmarked!
seppuku has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
britneywright has joined #ruby
jottr has joined #ruby
weirdpercent has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
daniellutz has joined #ruby
seppuku has quit [Ping timeout: 245 seconds]
ziyadb has joined #ruby
wildroman3 has quit [Read error: No route to host]
wildroman2 has joined #ruby
seppuku has joined #ruby
kevind has quit [Quit: kevind]
weirdpercent has quit [Client Quit]
djbkd has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
joast has joined #ruby
charliesome has joined #ruby
Takle has quit [Remote host closed the connection]
ferr has joined #ruby
nmokru has quit [Quit: nmokru]
seppuku has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
nateberkopec has joined #ruby
seppuku has joined #ruby
hpoydar has quit []
nateberkopec has quit [Read error: Connection reset by peer]
JJMalina has joined #ruby
yfeldblum has joined #ruby
weirdpercent has joined #ruby
dopie has joined #ruby
zkay11 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
maletor has joined #ruby
<maletor> How is this for my first bug? https://bugs.ruby-lang.org/issues/10026
cashnguns has joined #ruby
moted has joined #ruby
saarinen has quit [Quit: saarinen]
enebo has quit [Quit: enebo]
<zenspider> maletor: is that really all of the output??
seppuku has quit [Ping timeout: 272 seconds]
<zenspider> that doesn't have the usual loaded libs etc
<maletor> zenspider: yes , unless you want Other runtime information
<banister> maletor it's probably a result of a gem you have installed
weirdpercent has quit [Client Quit]
<banister> maletor do you have better_errors instlled?
seppuku has joined #ruby
<maletor> banister: no
<banister> maletor binding_of_caller
<zenspider> maletor: that other runtime information is sorta crucial
<maletor> zenspider: i will add to the report
KanKava has quit [Quit: leaving]
<zenspider> inevitably, it's gonna point to a C library that is the real culprit
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> that gemfile is ridiculous. nobody can isolate your problem with that much crap. gah
<maletor> zenspider: i know
lewix has quit [Remote host closed the connection]
<zenspider> well... don't expect your bug to go anywhere but closed. :/
<maletor> alright, i'll close it myself
hamakn has joined #ruby
<daniellutz> maletor: which version of glibc is installed?
Kricir has joined #ruby
<banister> maletor you can gdb ont eh core file and see what that tells u
jord has quit [Quit: Connection closed for inactivity]
<maletor> it's on circleci's VM so i'm not sure
seppuku has quit [Ping timeout: 240 seconds]
jason_rad has quit [Quit: Lost terminal]
<daniellutz> maletor: you are running with libv8?
<daniellutz> maletor: therubyracer?
<maletor> neither
<maletor> it occurs on a
febuiles_ is now known as febuiles
febuiles has quit [Changing host]
febuiles has joined #ruby
<maletor> spec
<daniellutz> maletor: I’ve had some problems with nodejs on a glibc 4.4.7 (i guess) on a CentOS recently
<maletor> unit* sorry can't type
<daniellutz> maletor: humm
seppuku has joined #ruby
<zenspider> I was looking at that... you yanked it
vifino has quit [Quit: Ze Cat now leaves...]
SCHAAP137 has quit [Remote host closed the connection]
<zenspider> 404s
<maletor> zenspider: one moment
timonv has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
<banister> zenspider i thought u only hung out on #ruby-lang
<daniellutz> maletor: how large is your suite?
<zenspider> maletor: I would avoid libxml-ruby like the plague if I were you
<zenspider> banister: things change
<zenspider> right vs effective
<maletor> we run 3 in parralel 1500x3
seppuku has quit [Ping timeout: 255 seconds]
apeiros has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
<maletor> i'd love to ditch libxml but it's a dependency of happymapper. i can look for alternatives to happymapper unless you know of one
zorak has quit [Read error: Connection reset by peer]
<zenspider> last I checked, libxml-ruby was a buggy leaky pos
timonv has quit [Ping timeout: 245 seconds]
<zenspider> and audit against those
<zenspider> things like nokogiri are pretty solid (assuming you're on a recent version)
<zenspider> mysql as well (tho ugh)
apeiros has joined #ruby
seppuku has joined #ruby
<zenspider> not sure why you have ruby_prof loaded on your CI
<zenspider> but go through those and audit against them
<zenspider> I don't know oj at all... so I'd start there
<maletor> oj is json parsing
<maletor> a colleague added it because it is fastest (albeit by nothing noticable)
<maletor> what do you mean audit?
<zenspider> fastest by nothing... that's great.
<maletor> well i understand your perspective but from mine...... you gotta pick your battles
SilkFox_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<daniellutz> maletor: give me the output of this command: $ ldd --version
mikepack_ has joined #ruby
seppuku has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
<zenspider> maletor: segfaulting pretty much wins all arguments
johnrover has joined #ruby
<zenspider> or loses... depending on your perspective
<daniellutz> maletor: oh, it’s on your mac?
ghr has joined #ruby
<febuiles> maletor: `otool -L` for mac
<maletor> the segfault is on CircleCI
<febuiles> maletor: can you reproduce locally?
_Blizzy has joined #ruby
<febuiles> (not familiar with how CircleCI works)
seppuku has joined #ruby
<maletor> it's just a VM that runs tests
jdj_dk has joined #ruby
<febuiles> is it hosted or do you have access?
<maletor> yes
<febuiles> yes it's hosted, yes you have access or both?
SilkFox has joined #ruby
<maletor> both
<febuiles> I'm guessing its' a Linux VM?
<maletor> ldd (Ubuntu EGLIBC 2.15-0ubuntu10.5) 2.15
lyuzashi has joined #ruby
<maletor> zenspider: this is true, but before OJ wasn't seg faulting.
<maletor> daniellutz ^
SilkFox_ has quit [Ping timeout: 256 seconds]
mikepack has quit [Ping timeout: 256 seconds]
mikepack_ has quit [Ping timeout: 240 seconds]
<daniellutz> maletor: sorry… I made a mistake… It wasn’t glibc, it was gcc
<daniellutz> maletor: run this one now: $ gcc -v
<daniellutz> maletor: 4.6 seems fine… hummm
ghr has quit [Ping timeout: 272 seconds]
<maletor> zenspider: sorry, can you elaborate on audit?
seppuku has quit [Ping timeout: 240 seconds]
fluve has joined #ruby