apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
nuck has quit [Ping timeout: 264 seconds]
harrymoreno has quit [Ping timeout: 246 seconds]
dmiller_ has quit [Remote host closed the connection]
harrymoreno has joined #ruby
<cHarNe2> what java should i use with jdbcsqlite3?
jimg has joined #ruby
marr has quit [Ping timeout: 256 seconds]
deception has joined #ruby
johnrlive has joined #ruby
ppppaul has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
icole has quit [Remote host closed the connection]
icole has joined #ruby
<havenwood> cHarNe2: Which distro?
nuck has joined #ruby
Inside has joined #ruby
<havenwood> cHarNe2: Just plain ole java 1.7
darthdeus has quit [Read error: Connection reset by peer]
<Inside> so ruby... the internet can't seem to make up its mind whether on what is the "proper" way to see if a string is an integer or not (ie: http://stackoverflow.com/questions/1235863/test-if-a-string-is-basically-an-integer-in-quotes-using-ruby )
<Inside> what would you suggest
thomaslee_ has quit [Quit: Leaving]
<cHarNe2> havenwood: debian, sun or open?
jjbohn has quit [Quit: Leaving...]
<havenwood> Inside: #is_a? Integer
<havenwood> Inside: E.g.: 1.is_a? Integer; #=> true
<havenwood> cHarNe2: open
<cHarNe2> ok
ehaliewicz has quit [Ping timeout: 256 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Ortuna has joined #ruby
tedwards_ has joined #ruby
Soliah has joined #ruby
icole has quit [Ping timeout: 276 seconds]
bigmac has quit [Ping timeout: 276 seconds]
Bry8Star{T2 has joined #ruby
<warlock> So my version installed is ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]. I see on the ruby language site 2.0.0-p195 is released. Noob to the language, is there any reason not to upgrade my implementation?
viszu has joined #ruby
dmiller has joined #ruby
<havenwood> warlock: I'd suggest going ahead to 2.0.0-p195. It is latest stable release, and most anything that runs in 1.9.3 just runs better in 2.0. :)
<warlock> havenwood: Ok, thanks. :)
vlad_starkov has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
estating56 has joined #ruby
havenwood has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
sambao21 has quit [Quit: Computer has gone to sleep.]
nuck has quit [Ping timeout: 264 seconds]
dmiller has quit [Remote host closed the connection]
deception has quit [Quit: Goodbye]
orien has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
[[mandrix]] has joined #ruby
feedbackloop_ has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
feedbackloop has joined #ruby
nuck has joined #ruby
kil0byte has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
niklasb has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
freeayu has quit [Read error: Connection reset by peer]
ybart has quit [Quit: ybart]
freeayu has joined #ruby
pitzips has quit [Read error: Operation timed out]
bigkm has joined #ruby
jimg has quit [Remote host closed the connection]
<Inside> well I was looking for testing to see if strings were also integers
Mattx has quit [Ping timeout: 246 seconds]
Retistic has quit [Quit: Retistic]
justsee has quit [Ping timeout: 248 seconds]
agent_white has joined #ruby
NimeshNeema has joined #ruby
threesome has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
<sebastianb> Inside: you can always check if "string".to_i does not return 0
lewix has joined #ruby
<sebastianb> (there would be a problem with actual "0" string, but well)
Davey has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
<Inside> sebastianb: haha yes.. indeed.
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
eka has joined #ruby
Mattx has joined #ruby
jjbohn has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
Dummies_freelanc has quit [Quit: Leaving.]
shadewind has joined #ruby
<shadewind> I assume $1 and the likes are shared among threads?
keppy has quit [Ping timeout: 248 seconds]
Davey has joined #ruby
brianstorti has quit [Quit: brianstorti]
hogeo has joined #ruby
Dummies_freelanc has joined #ruby
Inside is now known as NotInsideNYC
io_syl_ has quit [Ping timeout: 245 seconds]
<lewix> is somebody familiar with twitter gem
jjbohn has quit [Quit: Leaving...]
jjbohn has joined #ruby
Michael__ has quit [Remote host closed the connection]
Dummies_freelanc has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
rickruby has joined #ruby
diadara has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby
rickruby has quit [Remote host closed the connection]
Michael__ has joined #ruby
yshh has joined #ruby
jimg has joined #ruby
nfk has quit [Quit: yawn]
ndngvr has quit [Ping timeout: 264 seconds]
Dummies_freelanc has joined #ruby
danneu1 has joined #ruby
danneu1 has quit [Client Quit]
viszu has quit [Quit: Leaving.]
danneu has quit [Ping timeout: 264 seconds]
viszu has joined #ruby
atno has quit [Read error: Connection reset by peer]
cherrypeel has joined #ruby
Spooner has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
obs has quit [Quit: Saliendo]
Kricir has joined #ruby
verto has joined #ruby
lyanchih has joined #ruby
johnkary has joined #ruby
Michael__ has quit [Remote host closed the connection]
Senjai has quit [Ping timeout: 256 seconds]
atno has joined #ruby
keppy has joined #ruby
lyanchih has quit [Client Quit]
lyanchih has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
<seitensei> Hmm. Is it worth learning Rails just to get jobs?
<Paradox> yes
justsee has joined #ruby
justsee has joined #ruby
<seitensei> Rails as fun as Sinatra?
<Paradox> yup
<Paradox> both are useful though
ndngvr has joined #ruby
ndngvr has quit [Client Quit]
<Quadlex> It's worth having skills that are employable if you wish to have an income
<Quadlex> If those skills are enjoyable to you you are lucky
<Quadlex> Try to maximize for useful skills you enjoy
<Quadlex> And Rails is a useful skill for a Ruby developer right now
<Paradox> ruby is fun
<Paradox> ruby is like carpentry
<Paradox> rails is like screws
<Paradox> it lets you build things using your knowledge of ruby
<Paradox> sinatra is like nails
<Paradox> it too lets you build things
<Paradox> but screws are more expensive than nails
jimg has quit [Remote host closed the connection]
<Paradox> and have similar but different applications
bigmac has joined #ruby
vlad_starkov has joined #ruby
freakazoid0223 has joined #ruby
takeru has quit [Remote host closed the connection]
greenarrow has quit [Ping timeout: 240 seconds]
<seitensei> I see.
<shadewind> nails are handy because you can just bang them in
<Paradox> just like sinatra
<Paradox> you can just bang together a sinatra site
<seitensei> Yeah, sinatra is pretty quick.
<Paradox> rails is like screws
<Paradox> it needs to be driven in
<Paradox> but when you get really into it
vlad_starkov has quit [Ping timeout: 248 seconds]
<Paradox> screws can hold something bigger together
mikepack has quit [Remote host closed the connection]
Michael__ has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
jjbohn has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
arya_ has quit [Ping timeout: 248 seconds]
Retistic has joined #ruby
lyanchih has quit [Read error: Operation timed out]
lyanchih has joined #ruby
dmiller has joined #ruby
pitzips has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
arya has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justsee has joined #ruby
byprdct has joined #ruby
JZTech101 has quit [Ping timeout: 256 seconds]
flyinprogramer has joined #ruby
Z_Mass has joined #ruby
Hanmac has joined #ruby
<flyinprogramer> so does anyone use rubymine on ubuntu -- and have an issue where you set breakpoints; and the debugger doesn't do anything ?
<flyinprogramer> it seems like a file caching issue; the dev directory is on a secondary driver; when i move it to my primary the problem goes away
pkrnj has quit [Quit: Computer has gone to sleep.]
jjbohn has quit [Quit: Leaving...]
Inoperable is now known as Inoperabled
hamakn has joined #ruby
bionhart has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 276 seconds]
nari has joined #ruby
bionhart has joined #ruby
ioNull has joined #ruby
johnkary has quit [Quit: @johnkary]
takeru_ has joined #ruby
pkrnj has joined #ruby
jimg has joined #ruby
<shadewind> is there any way to emit and/or parse comments in YAML using psych?
postmodern has joined #ruby
<bnagy> comments start with hash
mixel has quit [Quit: mixel]
<shadewind> well duh
<shadewind> but I'd like to put them in the document flow
<shadewind> not before/after
<bnagy> not sure what you want the parser to do with them, that's all
<shadewind> emit them
<bnagy> they can go anywhere, afaik
<bnagy> ah emitting them is probably harder
moos3 has joined #ruby
bigmac has quit [Remote host closed the connection]
<bnagy> I mostly write YAML by hand if it's meant to be read by people ( config files etc )
<bnagy> I guess you could write comment, write YAML.dump( something ) write comment etc
<shadewind> well, my question is how to not write it by hand
<shadewind> well, YAML.dump includes the document start marker
<bnagy> yeah I meant IO#write
<shadewind> I don't want that between every element
shadewind has quit [Quit: Lost terminal]
<bnagy> yeah. Wow, epic rdoc awfulness
jimg has quit [Ping timeout: 246 seconds]
ttt has joined #ruby
<bnagy> looks like custom emitters or such, but the docs are pretty bad
freeayu__ has joined #ruby
<bnagy> you could write like I said, and then strip all the ---\n except the first
<bnagy> but that's pretty disgusting
ariedler has joined #ruby
<Retistic> how do you do reject! or delete_if! while returning an array of the deleted elements
<Retistic> or keep_if! while doing the same. i want to split an array into two depending on some criteria in a block
<bnagy> Retistic: and Enumerable#partition doesn't work?
<Retistic> bnagy: thats exactly what i was looking for thanks!
freeayu has quit [Ping timeout: 276 seconds]
<bnagy> np :)
<Retistic> bnagy: actually, no that return 2 arrays. i'm looking for something that returns an array and alters the initial array
takeru_ has quit [Remote host closed the connection]
mikepack has joined #ruby
<bnagy> orig, rejects = orig.partition {...
Michael__ has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
viszu has quit [Quit: Leaving.]
krombr has quit [Quit: krombr]
<Retistic> bnagy: that will do, thanks again
sambao21 has joined #ruby
<bnagy> Retistic: the Enumerable rdoc is seriously must read and memorize stuff. It is amazing for those "I wish there were a way to ..."
wizard` has joined #ruby
callmeivan has joined #ruby
<Retistic> bnagy: i was looking at the array docs, when i should have been looking at enumerable
arya has quit [Ping timeout: 248 seconds]
<Retistic> i've read through a lot of it it but haven't memorized everything yet
<Retistic> i'm usually like, i know there's a method to do this, but what on earth is it called
casheew has quit [Read error: Connection reset by peer]
<callmeivan> i would like to read a book on SQL, is there a book anybody can recommend (for SQL newbies)?
Azulinho has joined #ruby
krainboltgreene has joined #ruby
casheew has joined #ruby
Guedes has quit [Ping timeout: 252 seconds]
Azulinho has quit [Read error: Operation timed out]
arya has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
snearch has quit [Quit: Verlassend]
huoxito has quit [Quit: Leaving]
braincra- has joined #ruby
vlad_starkov has joined #ruby
splittingred has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
Ortuna has quit [Quit: Computer has gone to sleep.]
elaptics`away has quit [Ping timeout: 248 seconds]
elaptics`away has joined #ruby
staafl has quit [Ping timeout: 248 seconds]
machuga|away is now known as machuga
Z_Mass has quit [Ping timeout: 240 seconds]
jimg has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
eka has quit [Quit: Computer has gone to sleep.]
timkohrumel has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
Ortuna has joined #ruby
Animawish has quit [Quit: Animawish]
cyberarm has joined #ruby
timkohrumel has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
jonathanwallace has joined #ruby
jjbohn has joined #ruby
mikepack has quit [Remote host closed the connection]
cherrypeel has quit [Quit: Leaving]
cHarNe2 has quit [Read error: Operation timed out]
Retistic has quit [Quit: Retistic]
mikepack has joined #ruby
takeru has joined #ruby
arya has quit [Ping timeout: 248 seconds]
timkohrumel has joined #ruby
harrymoreno has quit [Ping timeout: 252 seconds]
bigkm has quit [Quit: Computer has gone to sleep.]
ariedler has quit [Remote host closed the connection]
harrymoreno has joined #ruby
ia___ has joined #ruby
arya has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
wsterling has joined #ruby
krz has joined #ruby
arya has quit [Ping timeout: 248 seconds]
NotInsideNYC is now known as Inside
takeru has quit [Remote host closed the connection]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cHarNe2 has joined #ruby
bionhart has quit [Remote host closed the connection]
Ortuna has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
callmeivan has quit [Ping timeout: 264 seconds]
druonysus has quit [Ping timeout: 264 seconds]
takeru has joined #ruby
Ortuna has joined #ruby
bionhart has joined #ruby
Hanmac1 has joined #ruby
fwaokda has quit [Ping timeout: 256 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
bigkm has joined #ruby
Michael__ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Targen has joined #ruby
lewix has quit [Remote host closed the connection]
jurbat has joined #ruby
callmeivan has joined #ruby
Michael__ has quit [Remote host closed the connection]
yashshah has joined #ruby
Michael__ has joined #ruby
callmeivan has quit [Client Quit]
pkrnj has joined #ruby
t_p has joined #ruby
brianherman has joined #ruby
Michael__ has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
Cyrus has joined #ruby
huoxito has joined #ruby
tjbiddle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
takeru has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
jonathanwallace has quit [Read error: Operation timed out]
Dummies_freelanc has quit [Read error: Connection reset by peer]
Z_Mass has joined #ruby
freakazoid0223 has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 248 seconds]
jjbohn has joined #ruby
Dummies_freelanc has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
huoxito has quit [Quit: Leaving]
jjbohn has quit [Client Quit]
ariedler has joined #ruby
takeru has joined #ruby
<k-man> i have an array of hashes [{:customer_code=>"ABDE",:order_amt=>100},{:customer_code=>"TEST123",:order_amt=>1000}] how can i change the key customer_code to just "label"?
madb055 has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
cHarNe2 has quit [Read error: Operation timed out]
Banistergalaxy has quit [Ping timeout: 260 seconds]
arya has joined #ruby
Banistergalaxy has joined #ruby
sethetter has joined #ruby
lewix has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
banjara has quit [Quit: Leaving.]
cHarNe2 has joined #ruby
banjara has joined #ruby
<bnagy> you can't
<bnagy> symbols are immutable, you have to add the new key and delete the ones you don't want
banjara has quit [Client Quit]
<k-man> i see
cyberarm has quit [Remote host closed the connection]
<k-man> i just found this which seems to do what I want: http://www.dweebd.com/ruby/hash-key-rewrite/
digitalcake has joined #ruby
Michael__ has joined #ruby
Elico has quit [Ping timeout: 256 seconds]
<bnagy> that's making a whole new hash
<k-man> well, thats fine by me
Elico has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
jeka-91 has joined #ruby
banjara has joined #ruby
<bnagy> >> a={code: 3}; a[:new]=a.delete :code; p a
<eval-in_> bnagy => {:new=>3} ... (http://eval.in/32524)
fridim_ has quit [Ping timeout: 246 seconds]
takeru has quit [Remote host closed the connection]
<bnagy> way more efficient for large hashes
havenwood has joined #ruby
BeLucid has quit [Ping timeout: 245 seconds]
<bnagy> and it avoids monkeypatching a core class, which is frowned upon
BeLucid has joined #ruby
<k-man> ok - two good reasons thanks :)
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
takeru has joined #ruby
Elico has quit [Ping timeout: 276 seconds]
diadara has joined #ruby
<k-man> thanks
sambao21 has joined #ruby
digitalcake has quit [Quit: Leaving.]
<k-man> i'm getting it slowly
<k-man> its elegant too
digitalcake has joined #ruby
Elico has joined #ruby
digitalcake has left #ruby [#ruby]
ariedler has quit [Remote host closed the connection]
digitalcake has joined #ruby
<bnagy> the failure conditions might not be exactly what you want
<bnagy> but it's clear, at least
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
banjara has quit [Quit: Leaving.]
araujo has quit [Quit: Leaving]
banjara has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
machuga is now known as machuga|away
Gooder``` has quit [Ping timeout: 264 seconds]
insel has quit []
bigkm has joined #ruby
eldariof has joined #ruby
banjara has quit [Quit: Leaving.]
cofin has quit [Quit: cofin]
banjara has joined #ruby
fridim_ has joined #ruby
arya has joined #ruby
ehaliewicz has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
yacks has joined #ruby
madb055 has quit [Ping timeout: 245 seconds]
<k-man> bnagy, err... what kind of faliure conditions?
Guga_ has quit [Quit: ~]
Cultofmetatron has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<bnagy> oh, you'll always end up with a key :new, even if there's no :code key
Guest68887 has joined #ruby
<Guest68887> why is it so many things are written in ruby
jimg has joined #ruby
<Guest68887> what does ruby have ?
arya has joined #ruby
BeLucid has quit [Ping timeout: 264 seconds]
jimg has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
<bnagy> expressiveness, a pretty good selection of libs and a consistent OO model
cj3kim has joined #ruby
cofin has joined #ruby
timkohrumel has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
flyinprogramer has quit [Remote host closed the connection]
bill_h has joined #ruby
bill_h has quit [Quit: bill_h]
arya has joined #ruby
rippa has joined #ruby
jonathanwallace has joined #ruby
Godd2 has joined #ruby
cofin has quit [Quit: cofin]
<Godd2> Im reading Programming Ruby and in the Error handling section he keeps talking about going "back up the call stack"
<Godd2> I tried googling what a stack was in Ruby and couldn't find anything
<Godd2> anyone know where I can read up on that concept?
Michael__ has quit [Remote host closed the connection]
takeru has quit [Remote host closed the connection]
<seitensei> caller
Michael__ has joined #ruby
jeka-91 has quit [Ping timeout: 248 seconds]
splittingred has quit [Quit: splittingred]
<Godd2> The ruby doc on the caller method to Kernel keeps referring to a stack
<Godd2> and I have no notion of that concept
eccstartup has joined #ruby
<Godd2> What is a stack?
julian-delphiki has quit [Read error: Connection reset by peer]
<cHarNe2> ye, you need to read some general computer tech
kenneth has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
therod has joined #ruby
<Godd2> Do you have any recommended resources on the topic?
<Godd2> and thank you for that, kofno
banjara has quit [Client Quit]
<kofno> np :)
banjara has joined #ruby
skasio has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
banjara has quit [Client Quit]
lyanchih has quit [Quit: lyanchih]
Z_Mass has quit [Ping timeout: 248 seconds]
johnrlive has quit [Remote host closed the connection]
banjara has joined #ruby
ARCADIVS has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
[rust] has joined #ruby
Dummies_freelanc has quit [Read error: Connection reset by peer]
pipework has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
quest88 has joined #ruby
DanKnox_away is now known as DanKnox
Guest68887 has quit [Quit: Leaving]
digitalcake has quit [Quit: Leaving.]
quest88 has quit [Client Quit]
Michael__ has quit [Remote host closed the connection]
quest88 has joined #ruby
pcarrier_ has joined #ruby
ananthakumaran has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
Dummies_freelanc has joined #ruby
IceDragon has quit [Quit: Space~~~]
kevinykchan has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
pitzips has quit [Ping timeout: 246 seconds]
cj3kim has quit [Remote host closed the connection]
<Godd2> So the caller method just lists the methods backwards up to that point to main?
<Godd2> and that list is "the stack" for the most part?
timkohrumel has joined #ruby
<bnagy> >> begin a=1/0; rescue; p $@; end
<eval-in_> bnagy => ["/tmp/execpad-49603d43fc89/source-49603d43fc89:2:in `/'", "/tmp/execpad-49603d43fc89/source-49603d43fc89:2:in `<main>'"] ... (http://eval.in/32525)
<Inside> hey guys, I'm using ruby & qt4
<Inside> I'm loading a UI created by designer and then tryin to access a widget
<Inside> @table = widget.findChild(Qt::TableWidget,"bom_table") works and gives me a widget
<Inside> then I do puts @table.methods and see all the methods of TableWidget (ie: setItem)
<Inside> then when I do @table.setItem it complains about "undefined method"
<Inside> any ideas?
<bnagy> lame
<bnagy> Godd2: do that in irb
ckrailo has joined #ruby
akam-it has quit [Remote host closed the connection]
zulu has joined #ruby
Cultofmetatron has joined #ruby
<bnagy> Inside: probably actual real output would help
<bnagy> particularly p @table.methods and the exact error you get from @table.setItem
mikepack has quit [Ping timeout: 245 seconds]
<bnagy> Godd2: conceptually, you can model a stack if you play with an array [] and use the push and pop methods
zulu has quit [Read error: Connection reset by peer]
<Inside> code & errors
banjara has quit [Quit: Leaving.]
* nightfly #trivia
<nightfly> fuck...
[rust] has quit [Quit: Leaving]
<Inside> for some reason it doesn't error on @table.setColumnCount even though it shouldn't even respond to it according to the output
banjara has joined #ruby
bionhart has quit [Remote host closed the connection]
<Inside> oh one sec, let me get a @table methods
banjara has quit [Client Quit]
Bry8Star{T2 has joined #ruby
<bnagy> Inside: it could be swallowing some stuff with a method_missing - but it says it doesn't respond to setItem
lyanchih has joined #ruby
<bnagy> so hardly surprising that it raises
<Inside> here you go; http://codepad.org/9716Ut7Q
<bnagy> Godd2: so, when you call a new function, you push existing stuff onto this 'stack'
<bnagy> Godd2: so that when the new function wants to return, the interpreter can pop the stack and be back where it was before
<Inside> erp: better http://codepad.org/zLzktnqD
banjara has joined #ruby
<Inside> line 30 has @table.methods.. which shows there's a setItem()
<Inside> but then it's like "haha no, there's not"
<Godd2> bnagy: ok that makes sense
banjara has quit [Client Quit]
banjara has joined #ruby
bionhart has joined #ruby
banjara has quit [Client Quit]
<bnagy> Inside: huh, weird. Can you use p instead of puts and then also add @table.methods.include? :setItem
<Godd2> Inside, is it falling back to respond_to_missing? ?
<bnagy> otherwise I guess it's time to look at the source, cause that looks weird
<bnagy> sometimes people override #methods, for example
<Inside> odd, it's not a symbol but rather a string (p.methods)
banjara has joined #ruby
mansi has joined #ruby
<bnagy> yeah. try @table.send('setItem')
ntus1017 has joined #ruby
dward has quit [Quit: Lost terminal]
<Godd2> does @table.method(:setItem).call work too?
banjara has quit [Client Quit]
bionhart has quit [Remote host closed the connection]
banjara has joined #ruby
<Inside> @table.send('setItem',row,col,item) --> undefined method @table.method(:setItem).call --> undefined method
<Inside> @table.send('setItem',row,col,item) --> undefined method @table.method(:setItem).call --> undefined method
<Inside> oops
banjara has quit [Client Quit]
<musl> If I have a deeply nested hash and an array of symbols that address a 'leaf' hash, what's the easiest way to modify the 'leaf' hash?
<bnagy> musl: try an example
cj3kim has joined #ruby
<bnagy> Inside: well I'd guess it's doing magic with #methods or something
<Inside> I guess..
<bnagy> does it respond_to? 'setItem' ( as a string )?
emergion has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 248 seconds]
fridim_ has quit [Read error: Operation timed out]
<bnagy> probably not, I'm guessinh
banjara has joined #ruby
<bnagy> maybe they try and lie via #methods and patch stuff up with method_missing trickery
<Inside> p @table.respond_to?("setItem") -> false
<bnagy> anyway, yeah you're right it's weird. Need to read source / docs to get any further
spider-mario has joined #ruby
bionhart has joined #ruby
freerobby has quit [Quit: Leaving.]
banjara has quit [Client Quit]
* Inside sadfaces.
bionhart has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
banjara has joined #ruby
<k-man> is does "values" on the end of an array have a special meaning? like somearray.values
jimg has joined #ruby
banjara has quit [Client Quit]
<havenwood> k-man: For a hash it does. Not for an array.
<k-man> havenwood, oh - ok, i must be looking at a hash then :)
lewix has quit [Remote host closed the connection]
banjara has joined #ruby
fierycatnet has joined #ruby
lewix has joined #ruby
<Inside> oddly.. setRowCount() works
<Inside> and then rowCount() return sthe right values
eldariof has quit [Ping timeout: 260 seconds]
banjara has quit [Client Quit]
<bnagy> Inside: that's consistent with trying a method_missing dispatch with rescue raise NoMethodError
banjara has joined #ruby
<bnagy> it's possible that your args are causing setItem to raise and giving you a misleading exception
<Godd2> setItem seems to be defined
banjara has quit [Client Quit]
<Godd2> unless Im totally wrong and that's not the program you're useing at all
banjara has joined #ruby
jimg has quit [Ping timeout: 248 seconds]
banjara has quit [Client Quit]
<Inside> rbqtapi Qt::TableWidget > list.txt gives me... void QTableWidget::setItem(int, int, QTableWidgetItem*)
banjara has joined #ruby
lewix has quit [Ping timeout: 248 seconds]
<Inside> well that's the dialog box, but yeah.. it should be there.
banjara has quit [Client Quit]
Godd2 has quit [Quit: Page closed]
<Inside> ohhh shit
<Inside> it's an indexing problem
<bnagy> triple check that row, col and item are what you think they are
ananthakumaran has quit [Quit: Leaving.]
<Inside> it's an indexing problem
<Inside> they're not :(
banjara has joined #ruby
<Inside> @table.set_item(row_index,col_index,item)
<Inside> i was doing @table.set_item(row,col,item)
<Inside> HERP DERP
<bnagy> cool - it's still a bug in that code
eetfunk has joined #ruby
banjara has quit [Client Quit]
<bnagy> they should raise the exception from the method they dispatched to, not NoMethodError
akells` has quit [Remote host closed the connection]
banjara has joined #ruby
bionhart has joined #ruby
<musl> bnagy: The formatting is a bit wonky, but here: https://gist.github.com/anonymous/279704c4c1df604bd42d
banjara has quit [Client Quit]
kevinykchan has joined #ruby
<Inside> welp, gonna put in a bug request
<Inside> thanks guys for bearing with me :)
banjara has joined #ruby
phipes has left #ruby [#ruby]
<cHarNe2> damn, went from 30min to 1min and 20 sec when movinig from mysql to mongodb for my log-dump :P
banjara has quit [Client Quit]
phipes has joined #ruby
banjara has joined #ruby
<bnagy> musl: I don't see where you're ever trying to modify the resources?
<bnagy> that just looks like code for a deep fatch
DanKnox is now known as DanKnox_away
<bnagy> *fetch
timkohrumel has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
<musl> Yeah, I was naively hoping that obj = ... (line 14) would modify @resources...
mansi has joined #ruby
banjara has quit [Client Quit]
momomomomo has joined #ruby
<bnagy> no obj is just the last value
<bnagy> calling your accumulator hash was probably a bad idea
<musl> ah
<bnagy> because it's not a hash anymore after the first pass of inject
<bnagy> reduce, whatever (same )
<musl> sure
phipes has quit [Client Quit]
atno has quit [Ping timeout: 240 seconds]
<bnagy> obj = block.call is weird as well. Normally it would be obj = block.call obj
<bnagy> but whatever
<musl> I figured I'd never need access to the object within the block. Why pass it?
banjara has joined #ruby
speakingcode has quit [Ping timeout: 248 seconds]
<bnagy> if obj were something like a String you could probably still mess with it, but not via assignment
lewix has joined #ruby
<musl> ah
<bnagy> like you could do obj.replace "NEWTHING" and you should see different results
banjara has quit [Client Quit]
<musl> ok
<bnagy> cause it should be, at that stage, a ref to the deep fetched thing
<bnagy> but immediates like true false nil 4 whatever can't be replaced in that manner
banjara has joined #ruby
spider-mario has quit [Remote host closed the connection]
banjara has quit [Client Quit]
timonv has joined #ruby
kandinski has quit [Remote host closed the connection]
banjara has joined #ruby
DanKnox_away is now known as DanKnox
Inside has quit [Ping timeout: 276 seconds]
banjara has quit [Client Quit]
<bnagy> if you passed obj you could have deep_hsh.deep_fetch( :a, :b, :c ) {|elem| p elem, elem.upcase!}
<bnagy> so you could use it for get or set, kind of
<musl> sure
banjara has joined #ruby
<bnagy> although deep_fetch and deep_set would be better in that model iho
<musl> something to get a reference, and something to set it?
<musl> r/something/a metho/
<bnagy> I think Rails people do crap like this all the time
banjara has quit [Client Quit]
Retistic has joined #ruby
<bnagy> personally I'm against it, tbh
osvico has quit [Ping timeout: 245 seconds]
<bnagy> implicitly existing keys and magically created keys during deep fetch and missing keys not raising and wah wah wah
banjara has joined #ruby
Retistic has quit [Client Quit]
banjara has quit [Client Quit]
banjara has joined #ruby
areil has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
banjara has quit [Client Quit]
banjara has joined #ruby
Al_ has joined #ruby
banjara has quit [Client Quit]
bionhart has quit [Remote host closed the connection]
banjara has joined #ruby
<musl> Is there a pattern or better way for maintaining a big ol' deeply nested hash, when I don't know what the keys will be or how deep things will be nested?
banjara has quit [Client Quit]
bionhart has joined #ruby
<bnagy> I don't mind the nested hash, I just don't like the magic
<bnagy> like, I model graphs and trees like that all the time
banjara has joined #ruby
wesside has joined #ruby
slainer68 has joined #ruby
codecop has joined #ruby
banjara has quit [Client Quit]
<bnagy> normally I'd use a DelegateClass( Hash ) and add methods that looked semantically appropriate for whatever I'm modelling
icole has joined #ruby
<bnagy> so it's a hash internally but the API is appropriate for the thing
banjara has joined #ruby
<musl> Right. And the API handles the nesting, not the hash.
timkohrumel has quit [Remote host closed the connection]
<bnagy> yeah like a tree would have :left and :right maybe which were other instances of BTree etc
<musl> Cool. Yeah, that sounds better.
banjara has quit [Client Quit]
<bnagy> just be careful with deep deep recursion, it has bitten me a few times
<musl> How so?
banjara has joined #ruby
<bnagy> the good thing about using a DelegateClass( Hash ) is that you can still access it directly via all the Hash methods ( unless you overload any )
<bnagy> as a fallback kinda thing
<bnagy> oh, deep recursion can cause stack exhaustion
banjara has quit [Client Quit]
bionhart has quit [Ping timeout: 264 seconds]
bigkm_ has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
banjara has joined #ruby
<musl> How do you keep an eye on the stack? (Curiosity, mostly.)
banjara has quit [Client Quit]
<bnagy> you can tune it, but it's safest to convert to iteration if you think you might blow it up
banjara has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
banjara has quit [Client Quit]
<musl> DelegateClass is neat! I can already think of a couple places where that would have helped.
<musl> (And places where I want to go re-write things now.)
banjara has joined #ruby
<musl> Thanks for the advice. :)
<bnagy> no probs
sambao21 has quit [Quit: Computer has gone to sleep.]
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
slainer68 has quit [Ping timeout: 264 seconds]
ttt has quit [Read error: Connection reset by peer]
banjara has joined #ruby
ttt has joined #ruby
banjara has quit [Client Quit]
adramalech has joined #ruby
banjara has joined #ruby
adramalech has quit [Client Quit]
DanKnox is now known as DanKnox_away
banjara has quit [Client Quit]
diadara has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
ppppaul has quit [Remote host closed the connection]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
snorkdude has joined #ruby
generalissimo has joined #ruby
<snorkdude> Hey all, I'm trying to add two objects which I've converted to integers. However, when I add them they concatenate. Any ideas?
vlad_starkov has joined #ruby
ananthakumaran has joined #ruby
<bnagy> you didn't do what you thought you did
<snorkdude> lol
<snorkdude> Let me make a gist I guess
nomenkun has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<bnagy> well first bug is you probably want to convert the shipping cents to_i before you * 100
tchebb has left #ruby ["Leaving"]
<bnagy> just guessing
banjara has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
<bnagy> after that, I'd need to see the inspect output of the various bits
banjara has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
yashshah has quit [Ping timeout: 246 seconds]
<snorkdude> interesting
Al_ has joined #ruby
tonini has joined #ruby
<snorkdude> I'll try that
<bnagy> also I'd strongly recommend using Integer( something ), especially if there's money involved
braoru has joined #ruby
<bnagy> >> ['a'.to_i, nil.to_i]
<eval-in_> bnagy => [0, 0] (http://eval.in/32530)
dhruvasagar has joined #ruby
<bnagy> probably not what you want in either case
tagrudev has joined #ruby
yashshah has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
corehook has joined #ruby
banjara has joined #ruby
Al_ has quit [Client Quit]
therod has quit [Quit: Leaving...]
freerobby has joined #ruby
ChristianS has quit [Excess Flood]
takeru_ has joined #ruby
ChristianS has joined #ruby
wchun has joined #ruby
eetfunk has quit [Quit: Textual IRC Client: www.textualapp.com]
arya has quit [Ping timeout: 248 seconds]
becom33 has quit [Ping timeout: 245 seconds]
icco has quit [Ping timeout: 252 seconds]
dawkirst has joined #ruby
nomenkun has quit [Remote host closed the connection]
icco has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
seitensei has quit [Quit: Leaving...]
pbertain has quit [Quit: pbertain]
ntus1017 has quit [Remote host closed the connection]
arya has joined #ruby
marsLantern has joined #ruby
mafolz has joined #ruby
nightfly has quit [Quit: WeeChat 0.4.0]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
wsterling has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
benlieb has joined #ruby
akells` has joined #ruby
_rookie_ has joined #ruby
nari has quit [Quit: Ex-Chat]
_rookie_ is now known as rooks
rooks is now known as jmurphyuk
banjara has quit [Quit: Leaving.]
cHarNe2 has quit [Ping timeout: 276 seconds]
banjara has joined #ruby
banjara has quit [Client Quit]
akells` has quit [Read error: Operation timed out]
banjara has joined #ruby
fuleo has quit [Remote host closed the connection]
fuleo has joined #ruby
Elico has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
becom33 has joined #ruby
becom33 has joined #ruby
Elico has joined #ruby
ayaz has joined #ruby
krainboltgreene has quit [Quit: krainboltgreene]
icco has quit [Ping timeout: 256 seconds]
persand has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
icco has joined #ruby
pduin has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
jimg has joined #ruby
vlad_starkov has joined #ruby
bionhart has joined #ruby
banjara has quit [Client Quit]
ntus1017 has joined #ruby
banjara has joined #ruby
nari has joined #ruby
workmad3 has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
nomenkun has joined #ruby
dfdf has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
chriskk has joined #ruby
snorkdude has quit [Quit: snorkdude]
agent_white has quit [Quit: leaving]
timkohrumel has joined #ruby
ehaliewicz has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bigkevmcd has joined #ruby
cherrypeel has joined #ruby
_bart has joined #ruby
rickruby has joined #ruby
timkohrumel has quit [Read error: Operation timed out]
ehaliewicz has joined #ruby
Elico has quit [Ping timeout: 248 seconds]
ybart has joined #ruby
dmiller has joined #ruby
banjara has quit [Client Quit]
Al_ has joined #ruby
freeayu__ has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
Al_ has quit [Client Quit]
Retistic has joined #ruby
jeka-91 has joined #ruby
ctp has quit [Quit: Leaving...]
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
freeayu has joined #ruby
dawkirst has quit [Read error: Operation timed out]
noop_ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
cherrypeel has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 260 seconds]
corehook_ has joined #ruby
vlad_starkov has joined #ruby
monkegjinni has joined #ruby
andikr has joined #ruby
t_p has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
icole has quit [Remote host closed the connection]
banjara has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
corehook has quit [Ping timeout: 264 seconds]
unstable has quit [Read error: Operation timed out]
awwaiid has quit [Read error: Operation timed out]
DomKM1 has quit [Quit: Leaving.]
ybart has quit [Quit: ybart]
Senjai has quit [Ping timeout: 248 seconds]
zigomir has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Remote host closed the connection]
banjara has quit [Client Quit]
monkegjinni has joined #ruby
banjara has joined #ruby
monkegjinni has quit [Remote host closed the connection]
banjara has quit [Client Quit]
quest88 has quit [Quit: quest88]
ayaz has quit [Quit: Bye!]
banjara has joined #ruby
banjara has quit [Client Quit]
tonini has joined #ruby
banjara has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
banjara has quit [Client Quit]
dmiller has quit [Remote host closed the connection]
ayaz has joined #ruby
banjara has joined #ruby
jmurphyuk has quit [Quit: jmurphyuk]
dr_bob has joined #ruby
kil0byte has joined #ruby
jmurphyuk has joined #ruby
banjara has quit [Client Quit]
jprovazn has joined #ruby
banjara has joined #ruby
jarjar_prime has joined #ruby
monkegjinni has joined #ruby
JohnBat26 has joined #ruby
ctp has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
zigomir has left #ruby [#ruby]
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
jbpros has joined #ruby
Jackneill has joined #ruby
corehook_ has quit [Quit: Leaving]
_bart has quit [Quit: _bart]
zigomir has joined #ruby
tonini has quit [Quit: Lost terminal]
tonini has joined #ruby
leonid_ has joined #ruby
nightfly has joined #ruby
afd__ has joined #ruby
danslo has joined #ruby
becom33 has quit [Quit: Leaving]
freeayu__ has joined #ruby
dawkirst has joined #ruby
Elico has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
tms has joined #ruby
momomomomo has quit [Quit: momomomomo]
sayan has joined #ruby
Cultofmetatron has joined #ruby
rickruby has quit [Ping timeout: 248 seconds]
BryanWB has joined #ruby
sideshowcoder has quit [Ping timeout: 264 seconds]
Cultofmetatron has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
monkegjinni has quit [Read error: Connection reset by peer]
<BryanWB> can anyone point me to rspec example w/ a very complex setup? i currently have all my setup in rake tasks, the last of which invokes the spec
dawkirst has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
<BryanWB> i imagine that all the setup should be in my spec file rather than my Thorfile
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
orien has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Remote host closed the connection]
jbpros has quit [Ping timeout: 240 seconds]
banjara has quit [Client Quit]
jimg has joined #ruby
banjara has joined #ruby
sideshowcoder has joined #ruby
blaxter has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
greenarrow has joined #ruby
monkegjinni has joined #ruby
nkts has quit [Quit: -]
bigkm_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jimg has quit [Ping timeout: 252 seconds]
tms has quit [Quit: Konversation terminated!]
tms has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
keppy has quit [Ping timeout: 260 seconds]
therod has joined #ruby
banjara has quit [Quit: Leaving.]
Coffers has joined #ruby
benlieb has quit [Quit: benlieb]
girija has joined #ruby
fierycatnet has quit [Quit: Leaving]
banjara has joined #ruby
dawkirst has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jarjar_prime has quit [Quit: Sleep time.]
camilasa_ has joined #ruby
monkegjinni has joined #ruby
matematikaadit has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
kofno has quit [Remote host closed the connection]
Zeeraw has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
tonini has quit [Ping timeout: 248 seconds]
matematikaadit has left #ruby [#ruby]
monkegjinni has joined #ruby
r0bgleeson has joined #ruby
rdark has joined #ruby
harrymoreno has joined #ruby
k610 has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
Coffers has quit [Ping timeout: 252 seconds]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
banjara has quit [Quit: Leaving.]
dward has joined #ruby
mklappstuhl has joined #ruby
banjara has joined #ruby
dhruvasagar has joined #ruby
<dward> anyone have an opinion on eventmachine?
apeiros has joined #ruby
Coffers has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
teclator has joined #ruby
generalissimo has quit [Remote host closed the connection]
gstamp has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
slash_nick has quit [Ping timeout: 264 seconds]
tonini has joined #ruby
Kar- has joined #ruby
skattyadz has joined #ruby
persand has quit [Quit: persand]
harrymoreno has quit [Quit: harrymoreno]
benlieb has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
whowantstolivefo has joined #ruby
brian_000_ has joined #ruby
rickruby has joined #ruby
feniix has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
dawkirst has joined #ruby
brianherman has quit [Ping timeout: 252 seconds]
diadara has joined #ruby
ferdev has quit [Quit: ferdev]
whowantstolivefo has quit [Ping timeout: 264 seconds]
obs has joined #ruby
brianherman has joined #ruby
brianherman has quit [Client Quit]
[WRD]Nakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
brian_000_ has quit [Quit: Leaving]
takeru_ has quit [Remote host closed the connection]
grzywacz has joined #ruby
swex has joined #ruby
swex_ has quit [Read error: Connection reset by peer]
icole has joined #ruby
ctp_ has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
ybart has joined #ruby
yashshah has quit [Ping timeout: 264 seconds]
skattyadz has quit [Quit: skattyadz]
robscomputer has joined #ruby
ctp has quit [Ping timeout: 264 seconds]
robscomputer has quit [Remote host closed the connection]
poga has quit [Ping timeout: 256 seconds]
banjara has quit [Client Quit]
robscomputer has joined #ruby
HecAtic has joined #ruby
banjara has joined #ruby
ctp has joined #ruby
JohnBat26 has joined #ruby
ctp- has joined #ruby
dawkirst has quit [Ping timeout: 276 seconds]
rodrigo has joined #ruby
charliesome has joined #ruby
ctp-_ has joined #ruby
ctp-_ has quit [Client Quit]
banjara has quit [Client Quit]
ctp has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
banjara has joined #ruby
therod has quit [Ping timeout: 252 seconds]
ctp_ has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Quit: tjbiddle]
wallerdev has quit [Quit: wallerdev]
skattyadz has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
ctp- has quit [Ping timeout: 248 seconds]
troessner has joined #ruby
persand has joined #ruby
unstable has joined #ruby
<BryanWB> dward: i don't, but i do have an opinion on celluloid, it's very easy to use
Al_ has joined #ruby
ferdev has joined #ruby
awwaiid has joined #ruby
poga has joined #ruby
clocKwize has joined #ruby
banjara has quit [Quit: Leaving.]
alexmreis has joined #ruby
rodrigo has quit [Quit: Leaving...]
<bnagy> dward: it's very good for some things, it can be hard to write for, and it's not as popular as it was once which means the community is a little less cool than a few years ago
banjara has joined #ruby
iMe has joined #ruby
clocKwize has quit [Client Quit]
aspiers has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
dawkirst has joined #ruby
shoru has joined #ruby
byprdct has joined #ruby
banjara has quit [Client Quit]
niceguyjames has joined #ruby
clocKwize has joined #ruby
banjara has joined #ruby
slainer68 has joined #ruby
r0bgleeson has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
arya has quit [Ping timeout: 248 seconds]
slainer6_ has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
arya has joined #ruby
nfk has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexmreis has left #ruby [#ruby]
stonevil has quit [Ping timeout: 246 seconds]
banjara has quit [Quit: Leaving.]
msuszczy has joined #ruby
eccstartup has quit [Quit: 离开]
banjara has joined #ruby
eccstartup has joined #ruby
byprdct has joined #ruby
byprdct has quit [Client Quit]
byprdct has joined #ruby
Axsuul has quit [Ping timeout: 264 seconds]
staafl has joined #ruby
<byprdct> Hi
poga has quit [Read error: Connection reset by peer]
tvw has quit []
timmow has joined #ruby
staafl_alt has joined #ruby
poga has joined #ruby
ghr has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby
monkegjinni has joined #ruby
banjara has quit [Quit: Leaving.]
staafl has quit [Ping timeout: 276 seconds]
marr has joined #ruby
_bart has joined #ruby
benlieb has quit [Quit: benlieb]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
dr_bob has quit [Quit: Leaving.]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
slash_nick has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
camilasa_ has quit [Remote host closed the connection]
banjara has quit [Client Quit]
sayan has quit [Read error: Connection reset by peer]
Shirakawasuna has quit [Quit: Leaving]
jds_ has quit [Remote host closed the connection]
banjara has joined #ruby
Al_ has quit [Quit: Al_]
telling has quit [Ping timeout: 248 seconds]
yannis has joined #ruby
banjara has quit [Client Quit]
hogeo_ has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
banjara has joined #ruby
r0bgleeson has joined #ruby
slainer6_ has quit [Ping timeout: 248 seconds]
persand has quit [Quit: persand]
Al_ has joined #ruby
pkrzywicki has joined #ruby
kil0byte has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
arya_ has joined #ruby
GeissT has joined #ruby
DaniG2k has joined #ruby
slainer68 has joined #ruby
benlieb has joined #ruby
arya has quit [Ping timeout: 248 seconds]
jimg has joined #ruby
lessless has joined #ruby
<lessless> what is the ruby way to check if the argument is an array and insert it in to the array if it is not?
robscomputer has quit [Ping timeout: 276 seconds]
chriskk has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 248 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
jimg has quit [Ping timeout: 276 seconds]
yannis has quit [Quit: Bye!]
dr_bob has joined #ruby
sayan has joined #ruby
yannis has joined #ruby
yannis has quit [Remote host closed the connection]
<bnagy> lessless: you might be looking for something like splat ( * ) if those are supposed to be defaults
<bnagy> >>a=[3,4]; [1,2,3].push *a
<eval-in_> bnagy => [1, 2, 3, 3, 4] (http://eval.in/32543)
vlad_starkov has joined #ruby
<bnagy> >>a=4; [1,2,3].push *a
<eval-in_> bnagy => [1, 2, 3, 4] (http://eval.in/32544)
kreantos has joined #ruby
emergion has joined #ruby
<lewix> how does bundler and the gemfile work exactly, I'm trying to run a ruby file; and i get the following msg gem 'json', '~> 1.7.7' . The directory has no gemfile (I usually use gemfile for my rails projects)
jarileskinen has joined #ruby
arya has joined #ruby
Shrink has quit [Ping timeout: 245 seconds]
banjara has quit [Quit: Leaving.]
niklasb has joined #ruby
banjara has joined #ruby
slainer6_ has joined #ruby
poseid has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
Shrink has joined #ruby
monkegjinni has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
slainer68 has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
fixl has joined #ruby
dhruvasa1ar has joined #ruby
banjara has quit [Client Quit]
ananthakumaran1 has joined #ruby
banjara has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
shoru has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dhruvasagar has quit [Read error: Operation timed out]
<apeiros> bnagy: push(*a) is inferior to concat(a)
kirun has joined #ruby
camilasa_ has joined #ruby
Speed has joined #ruby
persand has joined #ruby
jarileskinen has left #ruby ["WeeChat 0.4.0"]
dhruvasa1ar is now known as dhruvasagar
grzywacz has quit [Quit: :wq]
takeru_ has joined #ruby
timeout has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cj3kim has joined #ruby
slainer68 has joined #ruby
<r0bgleeson> apeiros: why
<apeiros> more work for ruby
slainer6_ has quit [Read error: Connection reset by peer]
<Zelest> ruby is red.. it should enjoy working!
<Zelest> communist interpeter!
<Mon_Ouie> Also, I think there's a limit to how many arguments a function can accept, isn't there?
<r0bgleeson> i usually do something like foo += [1,2,3] which might be worse :)
alexmreis has joined #ruby
<r0bgleeson> Mon_Ouie: it seems to handle 10k arguments fine :P
<r0bgleeson> (as def foo(*args); end)
<r0bgleeson> Mon_Ouie: did you go to ireland yet?
emergion has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
<Mon_Ouie> At 1 million, it errors with stack level to deep, while concat handles that fine :p
<apeiros> r0bgleeson: not much worse, no
<apeiros> it creates a new object, concat & push don't
<Mon_Ouie> Nope, going in early september
banjara has joined #ruby
takeru_ has quit [Remote host closed the connection]
adambeynon has joined #ruby
<r0bgleeson> concat is definitely the superior choice then
Azulinho has joined #ruby
<r0bgleeson> Mon_Ouie: cool, what for?
monkegjinni has joined #ruby
<Mon_Ouie> English class with a few other students. The university pays for pretty much everything.
nomenkun has joined #ruby
clocKwize has quit [Quit: clocKwize]
<r0bgleeson> Mon_Ouie: cool, will you attend uni there too?
clocKwize has joined #ruby
<Mon_Ouie> I don't know how the classes are organized. They didn't tell us much really :p
<Mon_Ouie> I don't think so though, unless classes start earlier there
slash_nick has quit [Ping timeout: 252 seconds]
pkondzior___ has quit [Quit: Connection closed for inactivity]
Al_ has quit [Quit: Al_]
<r0bgleeson> Mon_Ouie: cool, too bad i won't be there, but dublin is a cool city. hopefully they put you on the good side of the city :) (south)
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
ntus1017 has quit [Ping timeout: 246 seconds]
<Mon_Ouie> Hah, what's wrong with the northern part of it?
<r0bgleeson> it can be a little rough, but it has its good spots too
<r0bgleeson> generally the south is thought of as the 'posher' side of the city
<apeiros> Mon_Ouie: lol @ 1mio. arguments
caraconan has joined #ruby
<Mon_Ouie> Well, there is a limit! :p (it might just be stack space, though)
HecAtic has quit [Quit: Àá¼ö]
<caraconan> Hi all. I'm using puppet and I've got a question regarding hashes. Hi there. There's a way to check if a hash as a certain key? http://paste.debian.net/8202/ Thanks
<r0bgleeson> is that even ruby?
Al_ has joined #ruby
<caraconan> Not sure to be honest
banjara has quit [Quit: Leaving.]
<apeiros> caraconan: Hash#key?, Hash#include? etc.
<apeiros> puppet iirc uses some bastard language of its own design
tk_ has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Spami_ has joined #ruby
Spami_ has left #ruby [#ruby]
<caraconan> Thanks, I'll have a look
banjara has joined #ruby
<apeiros> and the code in the paste is not ruby
tonini has quit [Ping timeout: 248 seconds]
LennyLinux has joined #ruby
banjara has quit [Client Quit]
razi has joined #ruby
[[mandrix]] has quit [Ping timeout: 248 seconds]
<bnagy> apeiros: yeah but concat doesn't work the same as push *a
banjara has joined #ruby
<bnagy> >> [].concat 2
<eval-in_> bnagy => no implicit conversion of Fixnum into Array (TypeError) ... (http://eval.in/32560)
[[mandrix]] has joined #ruby
<apeiros> bnagy: …
kil0byte has joined #ruby
<bnagy> I mean I always use hash args for opts like that in any case
<bnagy> it was just an example based on the specific code
<apeiros> I'd say .push *2 is relatively stupid
<apeiros> anyway, lunch time
<bnagy> it's 'what do you do if a user can pass either a single item or an array of items'
Guedes has quit [Ping timeout: 240 seconds]
<bnagy> the obvious answer being 'don't design your api like that'
banjara has quit [Client Quit]
<bnagy> but if you have to, then splat
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
fermion has joined #ruby
fermion has quit [Client Quit]
sayan has quit [Quit: Leaving]
banjara has quit [Client Quit]
gyre007 has joined #ruby
F1skr has joined #ruby
banjara has joined #ruby
jimg has joined #ruby
jurbat has quit [Quit: Computer has gone to sleep.]
khushildep has joined #ruby
caraconan has quit [Quit: Leaving]
Neomex has joined #ruby
poga has quit [Read error: Connection reset by peer]
poga has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
maz-dev_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 256 seconds]
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
nari has quit [Ping timeout: 240 seconds]
maz-dev has joined #ruby
takeru_ has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
Neomex has quit [Quit: Neomex]
<shevy> splat the apple!
binw__ has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
cj3kim has quit [Remote host closed the connection]
<bnagy> splatting the atom
banjara has joined #ruby
InFlames has joined #ruby
razi has quit [Ping timeout: 264 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
Astral__ has joined #ruby
greenarrow|2 has joined #ruby
hogeo has joined #ruby
nomenkun_ has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
includex has joined #ruby
rodasc has joined #ruby
beilabs has quit [Quit: Leaving]
lewix_ has joined #ruby
sethette1 has joined #ruby
aces1up23 has joined #ruby
includex has quit [Remote host closed the connection]
<lessless> is it possible to simplify http://pastie.org/7999836 to one line ?
rickruby_ has joined #ruby
banjara has quit [Client Quit]
binw has joined #ruby
<r0bgleeson> lessless: ternary
yshh has quit [Remote host closed the connection]
banjara has joined #ruby
skattyadz has quit [Quit: skattyadz]
stonevil has joined #ruby
pi3r has joined #ruby
GeissT has quit [Ping timeout: 264 seconds]
includex has joined #ruby
itman_ has joined #ruby
<bnagy> lessless: no, it's not
pcarrie__ has joined #ruby
jblack_ has joined #ruby
<bnagy> you can _shorten_ it to one line
ehaliewicz has quit [Remote host closed the connection]
<r0bgleeson> well, if you want to simplify, id just rewrite it
<r0bgleeson> move the check for User#fk into attributes itself
alexmreis has left #ruby [#ruby]
Astral_ has quit [Read error: Connection reset by peer]
greenarrow has quit [Read error: Connection reset by peer]
hogeo_ has quit [Read error: Connection reset by peer]
nomenkun has quit [Read error: Connection reset by peer]
lewix has quit [Read error: Connection reset by peer]
rickruby has quit [Read error: Connection reset by peer]
aces1up has quit [Read error: Connection reset by peer]
crodas has quit [Quit: Disconnecting from stoned server.]
sethetter has quit [Read error: Connection reset by peer]
guilleiguaran_ has quit [Ping timeout: 276 seconds]
davetherat has quit [Ping timeout: 276 seconds]
ziyadb has quit [Ping timeout: 276 seconds]
pcarrier_ has quit [Ping timeout: 276 seconds]
karnowski has quit [Ping timeout: 276 seconds]
strax has quit [Ping timeout: 276 seconds]
F1skr has quit [Ping timeout: 276 seconds]
Kabaka has quit [Ping timeout: 276 seconds]
keyvan has quit [Ping timeout: 276 seconds]
itman has quit [Remote host closed the connection]
kiri has quit [Ping timeout: 276 seconds]
jblack has quit [Remote host closed the connection]
troessner has quit [Ping timeout: 276 seconds]
dfdf has quit [Remote host closed the connection]
buscon has joined #ruby
skattyadz has joined #ruby
kiri has joined #ruby
troessner has joined #ruby
F1skr has joined #ruby
tommylommykins has quit [Remote host closed the connection]
Kabaka has joined #ruby
jmurphyuk has quit [Quit: jmurphyuk]
Michae___ has joined #ruby
skattyadz has quit [Client Quit]
niceguyjames has joined #ruby
kuslwo has joined #ruby
<lessless> bnagy, that's what I meant :)
mansi has quit [Remote host closed the connection]
jmurphyuk has joined #ruby
mansi has joined #ruby
nerdman has joined #ruby
<lessless> r0bgleeson, here is the full code https://gist.github.com/dirty-hippie/5697305
<apeiros> 11:47 bnagy: the obvious answer being 'don't design your api like that'
<apeiros> totally
<apeiros> I mean, you can, but you have the * in the def
<apeiros> def foo(…, *blah)
<apeiros> and then it's a non-issue again since blah is guaranteed to be an array.
benlieb has quit [Quit: benlieb]
threesome has quit [Read error: Operation timed out]
<r0bgleeson> lessless: don't do [].push *fields, fields is already an array.
tonini has joined #ruby
<r0bgleeson> you don't need to do that.
<lessless> but in case of attributes(user, :fk), it's just a single symbol
<r0bgleeson> then pass an array instead
<lessless> or I do not understand how splats work? :)
<r0bgleeson> :fk doesn't even need a splat :p
<lessless> hmm... second argument for to_xml must be an array
mansi has quit [Ping timeout: 252 seconds]
<lessless> apeiros, can you give an example, please?
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
tacahiroy has joined #ruby
atno has joined #ruby
Shrink has quit [Ping timeout: 240 seconds]
chase-work has joined #ruby
cHarNe2 has joined #ruby
Mattx has quit [Quit: Leaving]
dfdf has joined #ruby
tacahiroy has left #ruby [#ruby]
emergion has joined #ruby
robbyoconnor has joined #ruby
jmurphyuk has quit [Quit: jmurphyuk]
whowantstolivefo has joined #ruby
KRF_ is now known as KRF
atno has quit [Remote host closed the connection]
atno has joined #ruby
Criztian has joined #ruby
saurajeetd has joined #ruby
lele has quit [Ping timeout: 246 seconds]
threesome has joined #ruby
mercwithamouth has joined #ruby
ffio has joined #ruby
lele has joined #ruby
stonevil has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
takeru_ has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
<BryanWB> can anyone point me to rspec example w/ a very complex setup? i currently have all my setup in rake tasks, the last of which invokes the spec. seems pretty ugly to me
poga has quit [Read error: Connection reset by peer]
banjara has joined #ruby
poga has joined #ruby
rippa has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<saurajeetd> Can somebody help me debug a scope problem in ruby. Problem definition in http://pastebin.com/hvCZJWxt
kirun_ has joined #ruby
GeissT has joined #ruby
cHarNe2 has quit [Ping timeout: 246 seconds]
lyanchih has quit [Quit: lyanchih]
monkegjinni has joined #ruby
razi has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Michae___ has quit [Remote host closed the connection]
dfdf has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 248 seconds]
tonini has joined #ruby
poga has quit [Remote host closed the connection]
Retistic has quit [Quit: Retistic]
camilasa_ has quit [Remote host closed the connection]
klaas_ is now known as klaas
banjara has quit [Quit: Leaving.]
kirun_ has quit [Quit: Client exiting]
rippa has quit [Ping timeout: 240 seconds]
[[mandrix]] has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 252 seconds]
jimg has joined #ruby
banjara has joined #ruby
mars__ has joined #ruby
banjara has quit [Client Quit]
monkegji_ has joined #ruby
banjara has joined #ruby
mklappstuhl has joined #ruby
arya has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
dr_bob has quit [Quit: Leaving.]
monkegjinni has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Remote host closed the connection]
davetherat has joined #ruby
lyanchih has joined #ruby
banjara has quit [Client Quit]
robbyoconnor has joined #ruby
therod has joined #ruby
vlad_starkov has joined #ruby
banjara has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
timeout has quit [Quit: leaving]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
telling has joined #ruby
telling has joined #ruby
telling has quit [Changing host]
dr_bob has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
Darkstar1 has joined #ruby
chuk has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<Darkstar1> Hi all. Anyone here based in France? I'm looking for a France (pref paris) based expert for a day's training in Ruby basics.
monkegjinni has joined #ruby
mklappstuhl has joined #ruby
postmodern has quit [Quit: Leaving]
mklappstuhl has quit [Read error: Connection reset by peer]
dr_bob has quit [Ping timeout: 252 seconds]
camilasa_ has joined #ruby
manutter has joined #ruby
banjara has quit [Quit: Leaving.]
mklappstuhl has joined #ruby
brbcoding has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
banjara has joined #ruby
cj3kim has joined #ruby
<apeiros> lessless: what? I didn't speak to you…
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
jmurphyuk has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
mars__ has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
poga has joined #ruby
jimg has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
Targen has quit [Ping timeout: 264 seconds]
yshh has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 252 seconds]
Guedes0 is now known as Guedes
Guedes has quit [Changing host]
Guedes has joined #ruby
ia___ has quit [Quit: ia___]
IrishGringo has quit [Ping timeout: 260 seconds]
poga has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 248 seconds]
drPoggs has quit [Quit: Goodbye]
machuga|away is now known as machuga
yashshah has joined #ruby
drPoggs has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
robustus has joined #ruby
diadara has quit [Read error: No route to host]
monkegjinni has joined #ruby
banjara has quit [Quit: Leaving.]
ffio_ has joined #ruby
<lessless> sorry
banjara has joined #ruby
diadara has joined #ruby
mklappstuhl has joined #ruby
banjara has quit [Client Quit]
niceguyjames has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Read error: Connection reset by peer]
ffio has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
eka has joined #ruby
Darkstar1 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Takehiro has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
banjara has quit [Client Quit]
supaiku has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
monkegjinni has joined #ruby
kevinykchan has joined #ruby
vlad_starkov has joined #ruby
akam-it has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
banjara has joined #ruby
kil0byte has joined #ruby
banjara has quit [Client Quit]
vlad_sta_ has joined #ruby
banjara has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
ananthakumaran1 has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
fwaokda has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
bhaak has quit [Ping timeout: 252 seconds]
orien has joined #ruby
sayan has joined #ruby
machuga has quit [Excess Flood]
machuga has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
InFlames has quit [Quit: This computer has gone to sleep]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
poga has joined #ruby
poga has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
nkr has joined #ruby
poga has joined #ruby
poga has quit [Remote host closed the connection]
DaniG2k has left #ruby [#ruby]
poga has joined #ruby
nerdman has quit [Quit: leaving]
itman_ is now known as itman
supaiku has quit [Ping timeout: 252 seconds]
verto has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
banjara has quit [Quit: Leaving.]
osvico has joined #ruby
pduin has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
banjara has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
vlad_sta_ has quit [Read error: Connection reset by peer]
pduin has joined #ruby
vlad_starkov has joined #ruby
Ortuna has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
failshell has joined #ruby
monkegjinni has joined #ruby
bhaak has joined #ruby
Bry8Star{T2 has joined #ruby
D4T has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
atno has joined #ruby
jonathanwallace has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
jimg has joined #ruby
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
blaxter has quit [Remote host closed the connection]
krz has quit [Quit: krz]
blaxter_ has joined #ruby
tms has quit [Quit: Konversation terminated!]
mklappstuhl has joined #ruby
banjara has quit [Quit: Leaving.]
mklappstuhl has quit [Read error: Connection reset by peer]
therod has quit [Quit: Leaving...]
Ortuna has quit [Quit: Computer has gone to sleep.]
D4T has quit [Client Quit]
Spooner has joined #ruby
banjara has joined #ruby
viszu has joined #ruby
atno has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
apod has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
Nisstyre has joined #ruby
banjara has quit [Client Quit]
mklappstuhl has joined #ruby
atno has joined #ruby
banjara has joined #ruby
ziyadb has joined #ruby
banjara has quit [Client Quit]
cHarNe2 has joined #ruby
strax has joined #ruby
keyvan has joined #ruby
guilleiguaran_ has joined #ruby
karnowski has joined #ruby
banjara has joined #ruby
ntus1017 has joined #ruby
tvw has joined #ruby
akemrir has joined #ruby
Xeago has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
niceguyjames has joined #ruby
mljsimone|bnc is now known as mljsimone
Darkstar1 has joined #ruby
sayan has joined #ruby
ayaz has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
clocKwize has quit [Quit: clocKwize]
iamjarvo has quit [Quit: Leaving.]
takeru has joined #ruby
devoldmx3 has joined #ruby
atno has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
clocKwize has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
<poseid> anyone here knows how to replace a sequence of characters, like " a - b ".gsub(" -","") ?
<poseid> I would like to replace \s and -
<poseid> with ""
emergion has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
zeel_ has joined #ruby
monkegjinni has joined #ruby
<poseid> ok, regex works: gsub(/[ -]/,"")
atno has joined #ruby
<Darkstar1> Just repeating again for the new comers, I'm looking for Ruby dev trainers in France on brhalf of someone for a one day training course in the basics
diadara has quit [Ping timeout: 240 seconds]
<poseid> france is large, where in france?
monkegjinni has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
atno has quit [Remote host closed the connection]
m8 has joined #ruby
niklasb has joined #ruby
atno has joined #ruby
atno has quit [Remote host closed the connection]
atno has joined #ruby
<Darkstar1> Paris.
banjara has quit [Quit: Leaving.]
<Darkstar1> Preferaably
hogeo has quit [Remote host closed the connection]
banjara has joined #ruby
atno has quit [Remote host closed the connection]
monkegjinni has joined #ruby
lewix has quit [Remote host closed the connection]
devoldmx3 has quit [Read error: Connection reset by peer]
lewix has joined #ruby
takeru has quit [Remote host closed the connection]
atno has joined #ruby
lewix has quit [Read error: Connection reset by peer]
yalue has joined #ruby
lewix has joined #ruby
<poseid> hmm.. no, not anyone I know off, but if I hear someone I let you know
<poseid> maybe checking lanyrd.com for speakers on Ruby in france might be nice to check
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
banjara has quit [Quit: Leaving.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ttt has quit [Remote host closed the connection]
banjara has joined #ruby
nezumi has quit [Ping timeout: 246 seconds]
pipework has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
atno has joined #ruby
cHarNe2 has quit [Read error: Operation timed out]
banjara has quit [Client Quit]
adac has joined #ruby
banjara has joined #ruby
<adac> If I have an URL like: "http://example.com/something/about" which is in my case a string. how can I remove everything after the last slash?
<tobiasvl> gsub
<tobiasvl> >> "http://example.com/something/about".sub(/\/(.*)$/, '')
<eval-in_> tobiasvl => "http:" (http://eval.in/32599)
<tobiasvl> no … greedy matches always get me
vlad_sta_ has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
monkegjinni has joined #ruby
<apeiros> [^/] and you can be greedy all you want
banjara has quit [Client Quit]
carloslopes has joined #ruby
atno has quit [Remote host closed the connection]
Spami has quit [Ping timeout: 248 seconds]
atno has joined #ruby
banjara has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
atno has quit [Remote host closed the connection]
banjara has quit [Client Quit]
banjara has joined #ruby
<adac> tobiasvl, yes looks like your code gives "http:" back
<r0bgleeson> lots of ways to do that
<r0bgleeson> i like apeiros's way
<canton7> >> "http://example.com/something/about".sub(/\/[^\/]*$/, '')
<apeiros> now we have to know how picky he is about "after the slash" or "and the slash" :)
monkegjinni has quit [Read error: Connection reset by peer]
<apeiros> >> "http://example.com/something/about".sub(%r{[^/]*\z}, '')
<adac> I found the slashes when nothing follows rather senseless ;)
<apeiros> then your question was incorrect :-p
<apeiros> << how can I remove everything **after** the last slash?
monkegjinni has joined #ruby
<apeiros> >> "http://example.com/something/about".sub(%r{/[^/]*\z}, '')
<adac> apeiros, true! (:
<adac> thank you so much folks!
<tobiasvl> adac: dropping the trailing slash probably resuls in an extra HTTP call though?
<canton7> depends on the setup
<tobiasvl> not that that's very expensive, but i wouldn't call avoiding it "senseless"
<Darkstar1> poseid: Thanks for the info
<Darkstar1> Will look into it now
<adac> tobiasvl, ok I see it can be a redirect
tedwards_ has quit [Quit: leaving]
poseid has quit [Quit: Leaving.]
Alina-malina has quit [Read error: Connection reset by peer]
poseid has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
poseid has left #ruby [#ruby]
lyanchih has quit [Quit: lyanchih]
monkegjinni has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
atno has joined #ruby
monkegjinni has joined #ruby
<apeiros> tobiasvl: a sensible setup will just serve the request and add a location header
devoldmx has joined #ruby
viszu has quit [Quit: Leaving.]
viszu has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
atno has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
jmurphyuk has quit [Quit: jmurphyuk]
DaniG2k has joined #ruby
JustinAiken has joined #ruby
pitzips has joined #ruby
jimg has joined #ruby
banjara has quit [Quit: Leaving.]
riffraff169 has joined #ruby
osvico has quit [Ping timeout: 276 seconds]
banjara has joined #ruby
emergion has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
viszu has quit [Quit: Leaving.]
monkegjinni has joined #ruby
tomzx_mac has joined #ruby
shashank_ has joined #ruby
Lubinski has joined #ruby
jimg has quit [Ping timeout: 240 seconds]
toddWork_ has joined #ruby
shashank_ has quit [Client Quit]
brunoro has joined #ruby
shashank_ has joined #ruby
shashank_ has quit [Remote host closed the connection]
fuzzyhorns has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Iszak has joined #ruby
cHarNe2 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
lkba has joined #ruby
monkegjinni has joined #ruby
freeayu__ has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
TheDick has joined #ruby
Targen has joined #ruby
feniix has joined #ruby
TheDick_ has joined #ruby
TheDick has quit [Read error: Operation timed out]
TheDick_ is now known as TheDick
rudisimo has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
geekbri has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
poseid has joined #ruby
banjara has quit [Client Quit]
cofin has joined #ruby
niklasb has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jerius has joined #ruby
Proshot has joined #ruby
avsej has joined #ruby
v0n has joined #ruby
banjara has joined #ruby
avsej has left #ruby ["Ex-Chat"]
osvico has joined #ruby
monkegjinni has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
cmarques has joined #ruby
pskosinski has joined #ruby
niceguyjames has joined #ruby
wmoxam has joined #ruby
codecop has quit [Remote host closed the connection]
orien has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
devoldmx3 has joined #ruby
breakingthings has joined #ruby
pcarrie__ has quit [Read error: Operation timed out]
banjara has joined #ruby
wmoxam_ has joined #ruby
momomomomo has joined #ruby
jmurphyuk has joined #ruby
orien has joined #ruby
razi has quit [Quit: Leaving.]
DomKM has joined #ruby
devoldmx3 has quit [Client Quit]
devoldmx3 has joined #ruby
devoldmx3 has quit [Client Quit]
devoldmx3 has joined #ruby
agjacome has joined #ruby
vlad_sta_ has joined #ruby
sambao21 has joined #ruby
devoldmx3 has quit [Client Quit]
devoldmx has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
sambao21 has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 245 seconds]
wsterling has joined #ruby
adambeynon has joined #ruby
axl_ has joined #ruby
ariedler has joined #ruby
adac has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
ayaz has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.4.1]
sambao21 has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
spike|spiegel has joined #ruby
Kricir has joined #ruby
yann_ck has joined #ruby
codecop has joined #ruby
banjara has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
generalissimo has joined #ruby
banjara has joined #ruby
Kricir has quit [Remote host closed the connection]
huoxito has joined #ruby
vlad_sta_ has joined #ruby
apod has quit [Quit: apod]
ananthakumaran1 has quit [Quit: Leaving.]
ttt_ has joined #ruby
tommyvyo has joined #ruby
momomomomo has quit [Quit: momomomomo]
codecop has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
vlad_sta_ has quit [Remote host closed the connection]
sethetter has joined #ruby
banjara has joined #ruby
<sethetter> How can I get the referrer URL in a ruby cgi script?
TheDick has quit [Quit: TheDick]
burlyscudd has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
atno has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
ttt_ has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Read error: Operation timed out]
adac has joined #ruby
ayaz has quit [Ping timeout: 264 seconds]
interactionjaxsn has joined #ruby
lessless has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
splittingred has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
<apeiros> sethetter: like in any other cgi script, it is in the ENV
<apeiros> if there is a referrer
freerobby has joined #ruby
* apeiros is surprised people still write CGI scripts, though
sayan has quit [Ping timeout: 245 seconds]
banjara has quit [Quit: Leaving.]
saurajeetd has quit [Read error: Operation timed out]
DomKM has quit [Quit: Leaving.]
bluenemo has quit [Remote host closed the connection]
banjara has joined #ruby
sleetdrop has joined #ruby
statarb3 has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
jeka-91 has quit [Ping timeout: 245 seconds]
gaahrdner has joined #ruby
adac has quit [Ping timeout: 248 seconds]
akells` has joined #ruby
Davey has joined #ruby
<sethetter> apeiros: Yeah, I'm working with pretty old stuff here. The ruby part is an authentication layer, then the rest was written in shell. >_<
jtharris has joined #ruby
jtharris has quit [Client Quit]
jtharris has joined #ruby
kil0byte_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<apeiros> oooh…hahaha
<apeiros> I feel sorry for you :)
<apeiros> have fun! :D
jmurphyuk has quit [Quit: jmurphyuk]
monkegjinni has joined #ruby
[m]adman has joined #ruby
teclator has quit [Read error: Operation timed out]
pcarrier_ has joined #ruby
[m]adman has quit [Max SendQ exceeded]
_nitti has quit [Remote host closed the connection]
[m]adman has joined #ruby
Godd2 has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
pipework has joined #ruby
<sethetter> apeiros: Thanks, I'm trying, lol.
osvico has quit [Ping timeout: 260 seconds]
<Godd2> If I run file = File.open("file_with_stuff.txt", "r").read.split("\n"), does that close the file after it's done, or should I totally not do that?
johnmilton has joined #ruby
Bleah has joined #ruby
arya has quit []
_nitti has joined #ruby
wsterling has quit [Remote host closed the connection]
rhys has joined #ruby
pitzips has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
atno has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
atno has joined #ruby
adac has joined #ruby
bean has joined #ruby
MrZYX|off is now known as MrZYX
mansi has joined #ruby
arya has joined #ruby
tk_ has quit [Quit: ばいばい]
theRoUS has joined #ruby
MarioEIU has joined #ruby
ffranz has joined #ruby
octarine has quit [Read error: Operation timed out]
mikepack has joined #ruby
wolcanus has joined #ruby
octarine has joined #ruby
monkegji_ has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
cmarques has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
banjara has quit [Quit: Leaving.]
MarioEIU has left #ruby [#ruby]
braoru has quit [Quit: Leaving]
camilasa_ has quit [Remote host closed the connection]
banjara has joined #ruby
vlad_starkov has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
daniel_- has joined #ruby
daniel_- has joined #ruby
jmurphyuk has joined #ruby
alexwh has quit [Quit: Quitting]
pitzips has joined #ruby
ferdev has quit [Quit: ferdev]
girija has quit [Ping timeout: 264 seconds]
DrCode has quit [Remote host closed the connection]
lyanchih has joined #ruby
andikr has quit [Read error: Connection reset by peer]
apod has joined #ruby
icole has quit [Remote host closed the connection]
kofno has joined #ruby
alexwh has joined #ruby
rippa has joined #ruby
DrCode has joined #ruby
jrochkind has joined #ruby
kofno has quit [Remote host closed the connection]
takeru has joined #ruby
<jrochkind> So... if I've got all the gems I need on my staging server, for my bundler-using Rails app... is there an easy way to deploy to production server(s) even when rubygems is down down down?
northelks has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
wesside_ has joined #ruby
ananthakumaran has joined #ruby
jmurphyuk has quit [Quit: jmurphyuk]
<zaargy> bundler package, vendorise gems etc
kil0byte has joined #ruby
<zaargy> probably not a good idea on rely on rubygems for deploys anyway!
banjara has quit [Quit: Leaving.]
<apeiros> you should only rely on rubygems when you update your gems (or install one the first time)
ioNull has joined #ruby
takeru has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
jimg has joined #ruby
ioNull has quit [Max SendQ exceeded]
camilasan has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
<jrochkind> apeiros: right, I am installing a new version of the app on production server with new versions of some gems. zaargy: ah, bundle package maybe, thanks.
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
Astral__ has quit [Ping timeout: 246 seconds]
supergiantrobot has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> jrochkind: broken workflow
<apeiros> you don't install the gems on the production server
tagrudev has quit [Remote host closed the connection]
ioNull has joined #ruby
<apeiros> you ensure that your app contains everything. stage that. then deploy on production.
brtdv has joined #ruby
mikepack has quit [Remote host closed the connection]
<apeiros> staging & deploying should not need to rely on network connectivity (other than from the deploying machine to the target server - of course)
krz has joined #ruby
suprbly has joined #ruby
<jrochkind> apeiros: that certainly makes sense, but that is not what most of the bundler tutorials and standard cap recipes do. But sounds like bundle package is the way to do that, maybe?
timkohrumel has joined #ruby
<jrochkind> looks like rubygems may be back at the moment too.
Criztian has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
<apeiros> c[r]ap recipes :-p
interactionjaxsn has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
jimg has quit [Ping timeout: 276 seconds]
_nitti has quit [Ping timeout: 276 seconds]
kx has joined #ruby
<jrochkind> apeiros: do you use bundler? Do you use `bundle package` to make sure rubygems is not a deploy dependency, is it as simple as that?
ner0x has joined #ruby
<apeiros> yes, and yes
atyz has joined #ruby
<jrochkind> apeiros: thanks!
Astralum has joined #ruby
<jrochkind> apeiros: hmm, bundle package and actually check your vendor/cache into the repo?
interactionjaxsn has joined #ruby
brtdv has quit [Client Quit]
<apeiros> that depends on your deployment procedure
wallerdev has joined #ruby
<apeiros> if you clone the repo onto the stage/prod server, then yes
brtdv has joined #ruby
_nitti has joined #ruby
<jrochkind> apeiros: yeah, capistrano. So I 'prepare' a new release on a dev and/or staging server, then cap deploy it to production. Looks like standard cap recipe already DOES do a bundle package on production. Problem is when there are new versions of the gem in hte new Gemfile.lock.... the vendor/cache on production doesn't have them yet, so deploy normally still goes to rubygems from production to fetch em.
<jrochkind> apeiros: okay, so, yeah, standard cap recipe does clone a repo onto target server to deploy, so, yeah.
<jrochkind> and looks like you need to combine bundle package with bundle --local to prevent bundler from contacting rubygems to check for platform-specific gems too. hmm, buncha things.
johnrlive has joined #ruby
momomomomo has quit [Quit: momomomomo]
k611 has joined #ruby
acrussell has joined #ruby
teclator has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Banistergalaxy has quit [Ping timeout: 252 seconds]
abstrusenick has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
Takehiro has quit [Remote host closed the connection]
momomomomo has joined #ruby
banjara has quit [Quit: Leaving.]
northelks has joined #ruby
banjara has joined #ruby
jgarvey has joined #ruby
danslo has quit [Quit: danslo]
bionhart has quit [Remote host closed the connection]
jeka-91 has joined #ruby
dubdromic has joined #ruby
atno has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
RORgasm_ is now known as RORgasm
Todd has joined #ruby
suporte85 has joined #ruby
suporte85 has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
atno has joined #ruby
suporte85 has joined #ruby
johnrlive has quit [Remote host closed the connection]
cmarques has joined #ruby
marwinism has joined #ruby
dr_bob has joined #ruby
cofin has quit [Quit: cofin]
mmitchell has joined #ruby
acrussell has left #ruby [#ruby]
johnrlive has joined #ruby
_Amaan has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
banjara has quit [Client Quit]
pduin has quit [Ping timeout: 252 seconds]
devdazed has quit [Quit: Bye]
banjara has joined #ruby
Villadelfia has quit [Ping timeout: 248 seconds]
razi has joined #ruby
SeySayux has quit [Ping timeout: 260 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
SeySayux has joined #ruby
Villadelfia has joined #ruby
ferdev has joined #ruby
robscomputer has joined #ruby
atno has quit [Remote host closed the connection]
razi has quit [Ping timeout: 252 seconds]
kil0byte has quit [Remote host closed the connection]
troessner has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 276 seconds]
mistawright has joined #ruby
cofin has joined #ruby
adac has quit [Quit: Leaving]
jprovazn has quit [Quit: Leaving]
jlast has joined #ruby
codecop has joined #ruby
riffraff169 has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 252 seconds]
quest88 has joined #ruby
dubdromic has quit [Ping timeout: 245 seconds]
ioNull has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
pcarrier_ has quit [Read error: Connection reset by peer]
ioNull has joined #ruby
pcarrier_ has joined #ruby
ioNull has quit [Max SendQ exceeded]
tjbiddle has joined #ruby
ioNull has joined #ruby
Hobogrammer has quit [Ping timeout: 248 seconds]
pu22l3r has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
freakazoid0223 has joined #ruby
dmiller has joined #ruby
feniix has quit [Ping timeout: 248 seconds]
Mattix has joined #ruby
Senjai has joined #ruby
Spooner has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
devdazed has joined #ruby
brianherman has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jope_ has joined #ruby
wmoxam_ has quit [Quit: Lost terminal]
atno has joined #ruby
dash_ has joined #ruby
troessner has joined #ruby
Elhu has joined #ruby
troessner has quit [Client Quit]
jope_ has left #ruby [#ruby]
Takehiro has joined #ruby
deception has joined #ruby
riffraff169 has joined #ruby
BizarreCake has joined #ruby
atno has quit [Remote host closed the connection]
troessner has joined #ruby
troessner has quit [Max SendQ exceeded]
Senjai has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
troessner has joined #ruby
banjara has joined #ruby
supaiku has joined #ruby
troessner has quit [Max SendQ exceeded]
cr3 has joined #ruby
troessner has joined #ruby
_nitti has quit [Remote host closed the connection]
AlHafoudh has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
AlHafoudh has quit [Client Quit]
<cr3> I have a Rails ActiveRecord with a find_each method, so I try: find_each.filter... but I get "no block given". In Ruby, can't I just chain methods that take blocks?
riffraff169 has quit [Ping timeout: 248 seconds]
_nitti has joined #ruby
Darkstar1 has left #ruby [#ruby]
AlHafoudh has joined #ruby
atno has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
ckrailo has joined #ruby
tjbiddle has joined #ruby
<jrochkind> cr3: in general, in ruby you can not just chain methods that take blocks, no. Some methods that take blocks look like they work that way because they've been written to do, but it's not automatic with any method that takes a block.
dubdromic has joined #ruby
buscon has quit [Quit: Leaving]
<apeiros> cr3, jrochkind: yes, of course you can
<jrochkind> apeiros: what?
<apeiros> but you have to use proper syntax
<apeiros> receiver.foo { block for foo }.bar { block for bar }.baz { block for baz }
wsterling has joined #ruby
<jrochkind> well, right, sure. That is not the "just chain" that cr3 was asking about. But yes, of course you can manually do it.
<apeiros> …
<jrochkind> Some methods let you do what cr3 was asking when they are written to do so, for instance using Enumerator.
troessner has quit [Ping timeout: 248 seconds]
wolcanus has quit [Remote host closed the connection]
<cr3> jrochkind: thanks, that's exactly what I was looking for
carloslopes has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
<apeiros> you can turn any method into an enumerator using enum_for
wolcanus has joined #ruby
<apeiros> but that doesn't relieve you from providing the block
<jrochkind> yeah, I never completely understand Enumerator and enum_for, but there might be a way to use that to do what you want cr3.
<apeiros> I doubt it. I think there's a more fundamental misunderstanding.
<apeiros> but I got to catch my train. laters…
machuga is now known as machuga|away
Godd2 has quit [Quit: Page closed]
banjara has quit [Client Quit]
mikewintermute has joined #ruby
apeiros has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
jurbat has joined #ruby
_bart has quit [Ping timeout: 246 seconds]
<jrochkind> cr3: ActiveRecordModel.enum_for(:find_each).filter ? Oh yeah, that might work, but wont' do anything useful you want to do, I don't think. It'll end up reading EVERYTHING in before filtering it, maybe, defeating the find_each in the first place. UNLESS maybe in ruby 2.0, with lazy enumerators. This all gets very confusing to me.
jimg has joined #ruby
<jrochkind> cr3: I'd just do what you want more explicitly with less magic.
rodasc is now known as crodas
hogeo has joined #ruby
atno__ has joined #ruby
banjara has quit [Client Quit]
wolcanus has quit [Ping timeout: 276 seconds]
Nisstyre has quit [Read error: Connection reset by peer]
banjara has joined #ruby
Nisstyre has joined #ruby
seejohnrun has joined #ruby
<cr3> jrochkind: right, I'm doing: ActiveRecordModel.find_each { |model| models << model if model.param == param }
<cr3> jrochkind: I've been trying to find a way to avoid iterating over each record but the where method that I've seen online doesn't seem to be defined
icole has joined #ruby
carloslopes has quit [Ping timeout: 252 seconds]
felixjet has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
wolcanus has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
takezawa has quit [Remote host closed the connection]
atno has quit [Read error: Connection reset by peer]
kofno has joined #ruby
kobain has joined #ruby
atno__ has quit [Read error: Connection reset by peer]
atno has joined #ruby
akemrir has quit [Ping timeout: 264 seconds]
quest88 has quit [Quit: quest88]
quest88 has joined #ruby
Beoran__ has joined #ruby
jabbslad has joined #ruby
mercwithamouth has joined #ruby
riffraff169 has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Coffers has joined #ruby
icole has quit [Ping timeout: 264 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
baroquebobcat has joined #ruby
troessner has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
pitzips has quit [Ping timeout: 276 seconds]
Beoran_ has quit [Ping timeout: 256 seconds]
BadDesign has joined #ruby
cafk has quit [Ping timeout: 252 seconds]
_nitti has quit [Ping timeout: 245 seconds]
leonid_ has quit [Read error: Operation timed out]
brtdv has quit [Quit: brtdv]
`p has joined #ruby
banjara has quit [Quit: Leaving.]
lkba has joined #ruby
warlock has quit [Quit: Lost terminal]
ghr has quit [Quit: Textual IRC Client: www.textualapp.com]
banjara has joined #ruby
_nitti has joined #ruby
wallerdev has quit [Quit: wallerdev]
persand has quit [Quit: persand]
alexwh has quit [Quit: Quitting]
alexwh_ has joined #ruby
kirun has joined #ruby
Targen has joined #ruby
vlad_starkov has joined #ruby
bionhart has joined #ruby
tommyvyo has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
johnrlive has quit [Remote host closed the connection]
takezawa has joined #ruby
ekarlso has quit [Ping timeout: 246 seconds]
kiri has quit [Read error: Operation timed out]
LennyLinux has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
Takehiro has joined #ruby
_nitti has joined #ruby
DonRichie has joined #ruby
ekarlso has joined #ruby
k611 has quit [Quit: Leaving]
timmow has quit [Ping timeout: 252 seconds]
mafolz has quit [Read error: Operation timed out]
TTilus has joined #ruby
ivanoats has joined #ruby
nhhagen has joined #ruby
<aedorn> I know some people have done Ruby for C/C++/Python/etc programmers, but has anyone ever done the opposite to say C? C for Ruby Programmers, or C++ for Ruby Programmers? Just curious.
banjara has quit [Quit: Leaving.]
generalissimo has quit [Remote host closed the connection]
jrochkind has left #ruby [#ruby]
mikewintermute has quit [Quit: mikewintermute]
banjara has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
tvw has quit []
mljsimone is now known as mljsimone|bnc
dhruvasagar has joined #ruby
cafk has joined #ruby
mistawright has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrellt has quit [Read error: Connection reset by peer]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
johnrlive has joined #ruby
mnaser has quit [Excess Flood]
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
burlyscudd1 has joined #ruby
razi has joined #ruby
burlyscudd has quit [Read error: Operation timed out]
dhruvasagar has quit [Ping timeout: 245 seconds]
Spooner has joined #ruby
niceguyjames has joined #ruby
mikewintermute has joined #ruby
dhruvasagar has joined #ruby
banjara has quit [Client Quit]
mnaser has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby
banjara has joined #ruby
kiri has joined #ruby
banjara has quit [Client Quit]
<apeiros> cr3: um, that's what where is for
vlad_starkov has quit [Remote host closed the connection]
<apeiros> Model.where(param: value)
banjara has joined #ruby
atyz has quit [Quit: Leaving...]
sleetdrop has quit [Quit: Computer has gone to sleep.]
banjara has quit [Client Quit]
Appineer has joined #ruby
terrellt has joined #ruby
banjara has joined #ruby
troessner has quit [Ping timeout: 264 seconds]
mmlac-bv has joined #ruby
Appineer has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
Appineer has joined #ruby
alexwh_ has quit [Quit: Quitting]
camilasan has quit [Remote host closed the connection]
machuga|away is now known as machuga
dhruvasagar has quit [Read error: Connection reset by peer]
alekst has joined #ruby
razi has quit [Ping timeout: 252 seconds]
banjara has quit [Client Quit]
kreantos has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
carloslopes has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
duper has joined #ruby
clocKwize has quit [Quit: clocKwize]
pitzips has joined #ruby
mahmoudimus has joined #ruby
AlHafoudh has quit [Quit: Computer has gone to sleep.]
tjbiddle has quit [Quit: tjbiddle]
apod has quit [Quit: apod]
supaiku has quit [Quit: Verlassend]
kevinykchan has joined #ruby
sethette1 has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
atmosx has joined #ruby
evenix has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
evenix has joined #ruby
yairgo has joined #ruby
banjara has joined #ruby
bionhart has quit [Remote host closed the connection]
<cr3> apeiros: yeah, method not found though and the model inherits from ActiveRecord::Base
dubdromic has quit [Ping timeout: 252 seconds]
banjara has quit [Client Quit]
dhruvasagar has joined #ruby
altivec has joined #ruby
baroquebobcat has joined #ruby
zeade has joined #ruby
atyz has joined #ruby
_nitti has quit [Remote host closed the connection]
<apeiros> cr3: what version of rails are you using? 1.0?
harrymoreno has joined #ruby
banjara has joined #ruby
Dummies_freelanc has quit [Read error: Connection reset by peer]
troessner has joined #ruby
vlad_starkov has joined #ruby
<kenneth> hey there
<cr3> apeiros: I'm activerecord outside of rails though, I'm just using the rubygem-activerecord gem
gaahrdne_ has joined #ruby
<apeiros> same question…
<r0bgleeson> cr3: find :all, conditions: { foo: "bar" } in older APIs i believe.
Dummies_freelanc has joined #ruby
<kenneth> this code seems to be failing sometimes for me… does anyone know how this could be? what could cause the lock to be released without the script exiting?
mercwithamouth has quit [Ping timeout: 248 seconds]
Dummies_freelan1 has joined #ruby
<cr3> r0bgleeson: thanks, I'll give that a try!
<apeiros> wow…
_nitti has joined #ruby
<apeiros> cr3: you seriously prefer writing against an outdated API?
<Elico> anyone familiar with Net::Ping::HTTP ?? I need some help with it. troubles are coming..
_nitti has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
krz has quit [Quit: krz]
Dummies_freelanc has left #ruby [#ruby]
<cr3> apeiros: I thought I had the latest installed from gem, I'm not particularly fond of using an outdated API but I'd still like to just give r0bgleeson advice a try
banjara has quit [Client Quit]
gaahrdner has quit [Ping timeout: 264 seconds]
<r0bgleeson> cr3: paste some code. so many things sound wrong.
<apeiros> activerecord (3.2.13) - that's the current version and that one has where. if you don't have where, you do something wrong.
niceguyjames has quit [Quit: Computer has gone to sleep.]
<Elico> r0bgleeson: can you take a look at my code please?
Voodoofish430 has joined #ruby
dubdromic has joined #ruby
banjara has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
<aedorn> I sure do wish there was a way to wrap a method with a method inside of a block that gets called from a lambda from a method so I could make this method chain more complex.
jdunck has joined #ruby
d2dchat has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
pyrac has joined #ruby
mljsimone|bnc is now known as mljsimone
timonv has quit [Remote host closed the connection]
<cr3> r0bgleeson: this is my code, it's a puppet function that sanitized the database using active records: http://pastebin.com/rMUpXZbU
bionhart has joined #ruby
<aedorn> Obviously, with the magic that is Ruby I could actually do that. Perhaps I should rephrase my sarcasm.
pi3r has quit [Remote host closed the connection]
<r0bgleeson> cr3: Puppet::Rails::Resource.class says?
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
<r0bgleeson> Elico: i dont know what your question is
timkohrumel has joined #ruby
twoism has joined #ruby
dr_bob has left #ruby [#ruby]
BizarreCake has quit [Ping timeout: 248 seconds]
BizarreCake has joined #ruby
pkrzywicki has quit [Read error: Operation timed out]
djbkd has joined #ruby
altivec has quit [Ping timeout: 260 seconds]
_nitti has joined #ruby
bhaak has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sambao21 has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
alexwh has joined #ruby
aetaric has quit [Ping timeout: 260 seconds]
viszu has joined #ruby
elaptics is now known as elaptics`away
quest88 has quit [Quit: quest88]
aetaric has joined #ruby
banjara has quit [Quit: Leaving.]
jimg has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
DaniG2k has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
<Elico> r0bgleeson: I want to bind ip 192.168.1.100 instead of 192.168.2.1 when doing PING with httping but I cannot thing of a way..
banjara has quit [Client Quit]
yann_ck has quit [Quit: Computer has gone to sleep.]
<Elico> r0bgleeson: I will be back soon thanks for your time..
Elico has quit [Quit: Elico]
banjara has joined #ruby
banjara has quit [Client Quit]
mklappstuhl has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Client Quit]
jbueza has joined #ruby
yairgo has quit [Quit: Leaving]
sethetter has left #ruby [#ruby]
banjara has joined #ruby
zeel_ has quit [Read error: Connection reset by peer]
ColKurtz has joined #ruby
slainer68 has quit [Remote host closed the connection]
ColKurtz has quit [Client Quit]
bradhe has joined #ruby
<cr3> r0bgleeson: p Puppet::Rails::Resource.class just outputs "Class", not sure if that's what you're asking for :)
ColKurtz has joined #ruby
RubNoob has joined #ruby
ia___ has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
newUser1234 has joined #ruby
jprovazn has joined #ruby
<RubNoob> hello - can someone take a look at this and explain to me what I might be doing incorrectly?: https://gist.github.com/anonymous/5699499
cj3kim has joined #ruby
mityaz has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
niceguyjames has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
ybart has quit [Quit: ybart]
banjara has quit [Client Quit]
bhaak has joined #ruby
banjara has joined #ruby
sguselnikov has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
AlHafoudh has joined #ruby
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cmarques has joined #ruby
<r0bgleeson> cr3: oh right, duh, can you try Resource.ancestors ?
banjara has quit [Write error: Broken pipe]
jonathanwallace has joined #ruby
banjara has joined #ruby
cofin has quit [Quit: cofin]
cj3kim has quit [Remote host closed the connection]
tmorgan has joined #ruby
<BryanWB> what's a good practice for separating slow integration tests from fast unit tests, even if they test mostly the same functionality?
<Eiam> delete teh slow ones?
<Eiam> =)
banjara has quit [Client Quit]
<BryanWB> i.e. i ha a library that interacts w/ aws, i have my unit tests but i also have a few integration ones
wesside_ has quit [Quit: Computer has gone to sleep.]
<Eiam> you shouldn't have unit tests that interact with external servers like that generally
Spami has quit [Quit: This computer has gone to sleep]
<BryanWB> the integration ones actually create an ec2 instance, thus are more time-consuming
<Eiam> you'd be better off setting up some kind of mock service
banjara has joined #ruby
nfk has quit [Read error: Connection reset by peer]
<BryanWB> Eiam: my unit tests don't interact w/ an external svc, but the integration ones do
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
troessner has quit [Quit: Leaving]
zlude has joined #ruby
Hobogrammer has joined #ruby
Kricir has joined #ruby
therod has joined #ruby
banjara has quit [Client Quit]
obs has quit [Quit: Saliendo]
spider-mario has joined #ruby
seejohnr1n has joined #ruby
banjara has joined #ruby
rickruby_ has quit [Ping timeout: 246 seconds]
banjara has quit [Client Quit]
seejohnrun has quit [Ping timeout: 246 seconds]
DanKnox_away is now known as DanKnox
includex has quit [Quit: Leaving...]
gaahrdne_ has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
tjbiddle has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
hogeo_ has joined #ruby
diadara has joined #ruby
banjara has quit [Client Quit]
pinpin404 has joined #ruby
banjara has joined #ruby
krz has joined #ruby
atyz has quit [Quit: Leaving...]
banjara has quit [Client Quit]
hogeo has quit [Ping timeout: 252 seconds]
kenneth has quit [Quit: kenneth]
ivanoats_ has joined #ruby
rupee has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
sguselnikov has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
arietis has joined #ruby
kofno has joined #ruby
ivanoats has quit [Ping timeout: 252 seconds]
jaimef has quit [Quit: Emacs must have died]
gyre007 has quit [Remote host closed the connection]
io_syl has joined #ruby
Spooner has quit [Remote host closed the connection]
Spooner has joined #ruby
jaimef has joined #ruby
lyanchih has quit [Quit: lyanchih]
nkr has quit [Quit: Linkinus - http://linkinus.com]
Evixion has quit [Ping timeout: 240 seconds]
graydot has joined #ruby
<atmosx> Can I send a an Array of elemnts using marshal?
banjara has joined #ruby
mrsolo has joined #ruby
<atmosx> I'm extracting data from a MySQL server, forming an Array of elements and passing them from server to client using Marshal, but I get the client error client.rb:39:in `load': marshal data too short (ArgumentError)
<atmosx> any ideas why?
<Spooner> atmosx, Why don't you just try it in irb/pry? (Marshal will work for any object that has #_dump and #_load defined
<Spooner> Including an array.
<Spooner> atmosx, Check what the data you are getting is? Maybe it isn't Marshalled?
<atmosx> it is
d2dchat has quit [Remote host closed the connection]
<Spooner> Then print out the marshalled data at both ends to check that it is consistent.
khushildep has quit [Ping timeout: 246 seconds]
`MArceLL` has joined #ruby
<atmosx> Spooner: in irb works fine
<atmosx> Spooner: good idea
diadara has quit [Ping timeout: 252 seconds]
<apeiros> it means your data is broken
Blaster has joined #ruby
<Spooner> atmosx, e.g. Marshal.load(Marshal.dump([1, 2, 3])[0..-2]) #=> marshal data too short.
<apeiros> >>Marshal.load(Marshal.dump("hello")[0..-4])
<eval-in_> apeiros => marshal data too short (ArgumentError) ... (http://eval.in/32622)
<Blaster> hey if you follow the single responsibility principal, would a UserProfileManager that both Adds and Removes profiles be breaking that ?
<atmosx> apeiros: it's MySQL data, I printed in server side looks fine.
<atmosx> it's UTF-8
<atmosx> Greek chars, maybe this has something to do with it
<apeiros> "it looks fine" is nice and dandy, but ruby tells you that it is invalid
<Spooner> I'm sure it is right at the server side. Doesn't mean it is receiving the same data at the client end.
<apeiros> >> Marshal.load(Marshal.dump("π"))
<eval-in_> apeiros => "π" (http://eval.in/32623)
<apeiros> you're losing data somewhere
c0rn has joined #ruby
<Spooner> How are you transferring the string?
rickruby has joined #ruby
pitzips has quit [Ping timeout: 245 seconds]
Spooner has quit [Quit: Leaving]
kenneth has joined #ruby
<atmosx> Spooner: array = get_array(5) # make an array of 5 words ; session.puts Marshal.dump(array)
<atmosx> I think I figured it out, but I need to wait a bit for the session to end
forrest has joined #ruby
emmanuelux has joined #ruby
qrohlf has joined #ruby
jimg has joined #ruby
fphilipe has quit [Read error: Connection reset by peer]
<atmosx> nope
Cultofmetatron has joined #ruby
girija has joined #ruby
fphilipe has joined #ruby
shevy has quit [Ping timeout: 248 seconds]
shevy has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
<atmosx> it's true, it's broken data… the client for some reason doesn't get all the data
<atmosx> hm
RORgasm has quit [Read error: Connection reset by peer]
bionhart has quit [Remote host closed the connection]
RORgasm has joined #ruby
kf8a has joined #ruby
kf8a has quit [Client Quit]
mocfive_ has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
geggam has joined #ruby
ravster has joined #ruby
TousBientot has joined #ruby
jbpros has joined #ruby
atyz has joined #ruby
<kenneth> aedorn: sounds like you could have fun writing a y-combinator :D
stkowski has joined #ruby
jamiltro1 has joined #ruby
LanaDelRey has joined #ruby
<kenneth> anybody know what the performance of Hamster look like, in regular usage?
<kenneth> has anybody switched to hamster?
jamiltro1 has left #ruby [#ruby]
burlyscudd1 has quit [Quit: Leaving.]
apod has joined #ruby
Al_ has quit [Quit: Al_]
jamiltro1 has joined #ruby
jamiltro1 has quit [Client Quit]
krz has quit [Quit: krz]
havenwood has quit [Read error: Connection reset by peer]
jamiltron has joined #ruby
havenwood has joined #ruby
dmiller has quit [Remote host closed the connection]
burlyscudd has joined #ruby
<geggam> sometimes when you join a channel the first few lines of txt makes no sense and creates some really wierd thoughts
erry_ has joined #ruby
DanKnox is now known as DanKnox_away
kidoz has joined #ruby
<geggam> suppose a hamster was compared to a guinea pig for performance ?
kiri has quit [Read error: Operation timed out]
suprbly has quit [Quit: SuPrbly]
<brbcoding> I always guinea pig for perf
erry has quit [Read error: Connection reset by peer]
jmurphyuk has joined #ruby
bionhart has joined #ruby
jbw has quit [Quit: ┌∩┐(◣_◢)┌∩┐]
mmlac-bv has quit [Ping timeout: 252 seconds]
mmlac-bv_ has joined #ruby
atyz has quit [Ping timeout: 256 seconds]
erry_ is now known as erry
jamiltron has left #ruby [#ruby]
woolite64 has quit [Ping timeout: 260 seconds]
<kenneth> geggam: you're not missing much context. just hamster == https://github.com/harukizaemon/hamster
<kenneth> it's a library of immutable data structures for ruby
<kenneth> which is better because mutable data structures are evil
pr0ton has joined #ruby
<kenneth> (half my ruby bugs comes because i'm accidentally mutating hashes i shouldn't be)
<geggam> i assumed it was related to ruby but it was just funny to read ... i was trying to convert hamsters to horses in power
<geggam> mentally
<TousBientot> hi guys, i have a problem, with install of fat free crm on windows: https://github.com/fatfreecrm/fat_free_crm/issues/251 --this my question, any ideas?
BadDesign has quit [Read error: Connection reset by peer]
aspiers has quit [Ping timeout: 241 seconds]
thomasle_ has joined #ruby
Kricir has quit [Remote host closed the connection]
peta_ has joined #ruby
<peta_> hi guys
<havenwood> TousBientot: Maybe try: bundle exec rake db:create RAILS_ENV=production
<peta_> does anybody have experience with TagLib for ruby?
dknight has joined #ruby
<havenwood> TousBientot: You might ask in #RubyOnRails
DanKnox_away is now known as DanKnox
mocfive_ has quit [Remote host closed the connection]
<TousBientot> ok i'll ask there :)
twoism has quit [Read error: Connection reset by peer]
<dknight> I am on a 64-bit linux machine, yet when I do bundle install it is fetching http://bb-m.rubygems.org/quick/Marshal.4.8/mysql2-0.2.6-x86-mswin32-60.gemspec.rz I do not understand why it is fetching 32-bit MS Windows gemspec ?
s1n4 has joined #ruby
twoism has joined #ruby
woolite64 has joined #ruby
kiri has joined #ruby
generalissimo has joined #ruby
bionhart has quit [Remote host closed the connection]
seitensei has joined #ruby
<seitensei> Are there any server-side reasons why pony would not work?
pitzips has joined #ruby
huoxito has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
<TousBientot> @havenwood : error with your solution
<TousBientot> :(
travisjeffery has joined #ruby
DomKM has joined #ruby
<kenneth> https://gist.github.com/kballenegger/5699295 - does anybody have any ideas what might be wrong with this? my lock is releasing on running scripts that aren't dying
huoxito has joined #ruby
alvaro_o has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
<havenwood> TousBientot: Is the mysql2 gem in your Gemfile? Check database.yml for mysql2?
<peta_> does anybody have experience with TagLib for ruby?
danslo has joined #ruby
<peta_> I am trying to write User-/UrlLinkFrames … but it doesn't work … argh!
<havenwood> TousBientot: If you can't figure it out, paste a gist of the full error, your Gemfile, and database.yml files.
sepp2k has joined #ruby
altivec has joined #ruby
saarinen has joined #ruby
yann_ck has joined #ruby
thatRD has joined #ruby
mocfive has joined #ruby
thatRD has quit [Client Quit]
tommyvyo has joined #ruby
thatRD has joined #ruby
jabbslad has quit [Quit: Linkinus - http://linkinus.com]
dknight has left #ruby [#ruby]
BizarreCake has quit [Quit: Leaving]
cHarNe2 has quit [Ping timeout: 260 seconds]
girija has quit [Ping timeout: 256 seconds]
<TousBientot> @havenwood: in database.yml -> http://pastebin.com/i89DiV7x
<havenwood> TousBientot: Yeah, so mysql2 is there. No prob.
rangle has quit [Quit: Textual IRC Client: www.textualapp.com]
<seitensei> Recommendations for a web host with Ruby? Pony doesn't seem to like dreamhost :/
pr0ton has quit [Ping timeout: 256 seconds]
mansi has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mansi has joined #ruby
blaxter_ has quit [Ping timeout: 245 seconds]
akells` has quit [Remote host closed the connection]
bean has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
cofin has joined #ruby
banjara has quit [Quit: Leaving.]
brotatos has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
<atmosx> this marshal issue maybe is related with the way data is stored in mysql, varchat vs longtext
<atmosx> hmm
phipes has joined #ruby
rangle has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
<shevy> hey atmosx whatcha working on?
altamic has joined #ruby
altamic has left #ruby [#ruby]
<atmosx> shevy: a client/server app.
pr0ton has joined #ruby
ahawkins has joined #ruby
billy_ran_away has joined #ruby
<ahawkins> is there a shortcut for super(*args, &block)? I just want to call super without knowing what arguments are required for the constructor
workmad3 has joined #ruby
<apeiros> super
<apeiros> without parens
binaryplease has joined #ruby
<apeiros> i.e., this is valid: def foo(*); super; end
danslo has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
dr_neek has joined #ruby
danslo has joined #ruby
InFlames has joined #ruby
ArchBeOS has quit [Ping timeout: 260 seconds]
Zeeraw has joined #ruby
Z_Mass has joined #ruby
seitensei has left #ruby [#ruby]
gaahrdner has joined #ruby
pr0ton has quit [Ping timeout: 256 seconds]
Zeeraw has quit [Client Quit]
dawkirst has quit [Ping timeout: 252 seconds]
eldariof has joined #ruby
Xeago has joined #ruby
<atmosx> blah I'll try YAML
ToApolytoXaos has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
<peta_> is it possible to let gem first download sources of a module and then (in a second step after modifying the source) tell it to compile/install it?
mocfive has quit [Remote host closed the connection]
alekst has quit [Quit: Leaving...]
stkowski has quit [Quit: stkowski]
Dummies_freelan1 has quit [Ping timeout: 264 seconds]
Z_Mass has quit [Ping timeout: 276 seconds]
<atmosx> peta_: I don't know, but why not?
pr0ton has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
InFlames has quit [Quit: This computer has gone to sleep]
machuga is now known as machuga|away
<peta_> atmosx: the question is how to do that
interactionjaxsn has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
_nitti has quit [Read error: Operation timed out]
cHarNe2 has joined #ruby
<peta_> i think i got it
rdark has quit [Quit: leaving]
faulkner has joined #ruby
stkowski has joined #ruby
Z_Mass has joined #ruby
atyz has joined #ruby
mocfive has joined #ruby
jimg has joined #ruby
viszu has quit [Quit: Leaving.]
kil0byte has joined #ruby
<atmosx> Okay I know what's happening
interactionjaxsn has quit [Ping timeout: 256 seconds]
<atmosx> I use session.gets and for some reason the client closes the connection
<atmosx> after receiving a newline char
cHarNe2 has quit [Ping timeout: 256 seconds]
<atmosx> I receive only the first marshaled char...
jbpros has joined #ruby
dawkirst has joined #ruby
Elhu has joined #ruby
Z_Mass has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 260 seconds]
teddyp1cker has joined #ruby
JustinAiken has left #ruby [#ruby]
jcromartie has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
akells` has joined #ruby
Elhu has quit [Client Quit]
stkowski has quit [Quit: stkowski]
Shirakawasuna has joined #ruby
jbpros has quit [Ping timeout: 246 seconds]
Shirakawasuna has quit [Client Quit]
bionhart has joined #ruby
brotatos has quit [Quit: WeeChat 0.4.1]
zigomir has joined #ruby
pcarrier_ has quit [Ping timeout: 276 seconds]
harrymoreno has quit [Ping timeout: 252 seconds]
woolite64_ has joined #ruby
saarinen has quit [Quit: saarinen]
Michael__ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
pcarrier_ has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
ArchBeOS has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
JZTech101 has joined #ruby
atyz has quit [Quit: Leaving...]
woolite64 has quit [Ping timeout: 276 seconds]
monkegjinni has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
jbpros has joined #ruby
pyrac has quit [Quit: pyrac]
harrymoreno has joined #ruby
Z_Mass has joined #ruby
Michael__ has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
brotatos has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
jbpros_ has joined #ruby
dmiller has joined #ruby
Michael__ has joined #ruby
<aedorn> I am quite enjoying this Das keyboard
jbpros has quit [Ping timeout: 260 seconds]
jbpros_ is now known as jbpros
<musl> aedorn: Nice! I'm also partial to an un-marked keyboard. I use a TypeMatrix 2030 with a blank black skin. :)
leonid_ has joined #ruby
<aedorn> oh, didn't mention that, but yes, it is indeed the unmarked "pro" version. =)
<musl> :)
jjasonclark has joined #ruby
Retistic has joined #ruby
hogeo_ has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
kuslwo has quit [Remote host closed the connection]
<aedorn> I think the best part about it is that nobody in this office can actually use a keyboard without the markings, so I have no worries of anyone touching it. Sometimes obfuscation is good!
jdunck has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
<musl> Oh yes, same here. Especially with the non-slanted keys & dvorak mapping.
havenwood has quit [Remote host closed the connection]
jdunck has quit [Client Quit]
<musl> I keep another keyboard hooked up for pairing. :)
qrohlf has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
interactionjaxsn has joined #ruby
bionhart has quit [Remote host closed the connection]
dmiller has joined #ruby
niceguyjames has joined #ruby
areil has quit [Remote host closed the connection]
bionhart has joined #ruby
bionhart has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
pyrac has joined #ruby
sumark has quit [Remote host closed the connection]
saurajeetd has joined #ruby
eldariof has quit [Read error: Operation timed out]
_nitti has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
sumark has joined #ruby
nkts has joined #ruby
s1n4 has quit [Quit: leaving]
mnaser has quit [Excess Flood]
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
mnaser has joined #ruby
atyz has joined #ruby
tmorgan has quit [Ping timeout: 264 seconds]
ivanoats has joined #ruby
LanaDelRey has quit [Quit: Leaving]
krawchyk has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sethetter has joined #ruby
<sethetter> I have a weird thing happening with the cgi library. I send my output and at the end of it appears "nil" everytime, and I can't figure out where it's coming from. I'm working in 1.8.7 btw.
<sethetter> Any hints would be greatly appreciated.
bionhart has joined #ruby
yann_ck has quit [Quit: Textual IRC Client: www.textualapp.com]
atno has quit [Remote host closed the connection]
TousBientot has quit [Ping timeout: 256 seconds]
jfelchner has joined #ruby
bionhart has quit [Remote host closed the connection]
Jackneill has quit [Ping timeout: 252 seconds]
abstrusenick has quit [Quit: abstrusenick]
slainer68 has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.1]
Takehiro has joined #ruby
phipes has quit [Quit: phipes]
sambao21 has joined #ruby
phipes has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
cj3kim has joined #ruby
brotatos has quit [Ping timeout: 252 seconds]
tmorgan has joined #ruby
brotatos has joined #ruby
nkts has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
chrishough has joined #ruby
danslo has quit [Quit: danslo]
obs has joined #ruby
pr0ton has quit [Ping timeout: 256 seconds]
BadDesign has joined #ruby
staafl_alt has quit [Quit: Leaving]
suporte85 has quit [Ping timeout: 264 seconds]
nkts has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
_ffio_ has joined #ruby
huoxito has quit [Quit: Leaving]
ffio_ has quit [Ping timeout: 245 seconds]
obs has quit [Quit: Konversation terminated!]
cofin has quit [Ping timeout: 252 seconds]
yann_ck has joined #ruby
guns has joined #ruby
jrajav has joined #ruby
Iszak has joined #ruby
Cultofmetatron has joined #ruby
Neomex has joined #ruby
_nitti has quit [Remote host closed the connection]
cofin has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
stkowski has joined #ruby
Neomex has quit [Client Quit]
jimg has joined #ruby
nkts has quit [Read error: Connection reset by peer]
LaPetiteFromage has joined #ruby
jbpros has quit [Quit: jbpros]
zlude has left #ruby ["Leaving"]
codesoda has joined #ruby
dayepa1 has joined #ruby
suprbly has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
jimg has quit [Ping timeout: 256 seconds]
axl_ has quit [Quit: axl_]
suprbly has quit [Client Quit]
mljsimone is now known as mljsimone|food
axl_ has joined #ruby
jbpros has joined #ruby
dayepa has quit [Ping timeout: 256 seconds]
axl_ has quit [Client Quit]
icole has joined #ruby
Zeeraw has joined #ruby
bean has joined #ruby
atyz has quit [Read error: Connection reset by peer]
telling has quit [Ping timeout: 264 seconds]
_nitti has joined #ruby
jbpros has quit [Client Quit]
pr0ton has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
`p has quit [Remote host closed the connection]
becom33 has joined #ruby
mocfive has quit [Remote host closed the connection]
dward has quit [Quit: Lost terminal]
<becom33> https://github.com/dfens/john-doe Im trying to run this application but it gives me this error
<becom33> /usr/lib/ruby/1.9.1/psych.rb:154:in `parse': (/var/lib/gems/1.9.1/gems/john-doe-0.1.9/lib/../default.yml): couldn't parse YAML at line 32 column 9 (Psych::SyntaxError)
benlieb has joined #ruby
workmad3 has joined #ruby
suporte85 has joined #ruby
suporte85 has quit [Max SendQ exceeded]
<atmosx> Is it a good idea to store in the DB the time object as time = Time.now.utc instead of time = Time.now.utc.string ?
peta_ has quit [Quit: peta_]
poga has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
<atmosx> becom33: try ruby2.0
sambao21 has quit [Quit: Computer has gone to sleep.]
<becom33> oh
<atmosx> Or use
<atmosx> require 'yaml'
<atmosx> YAML::ENGINE.yamler = 'syck'
<atmosx> psych should be a new replacement for parsing yaml iirc, but in 1.9.1 you can use syck
<becom33> atmosx, that works fine
woolite64_ has quit [Ping timeout: 260 seconds]
malkomalko has joined #ruby
mklappst_ has joined #ruby
mumblerit has quit [Ping timeout: 256 seconds]
brotatos has quit [Quit: WeeChat 0.4.1]
Iszak has quit [Quit: Computer has gone to sleep.]
mumblerit has joined #ruby
mumblerit is now known as Guest40708
mklappstuhl has quit [Ping timeout: 256 seconds]
carlyle has joined #ruby
Mattix has quit [Quit: Leaving]
mumblet has joined #ruby
ivanoats has quit [Remote host closed the connection]
Guest40708 has quit [Remote host closed the connection]
ybart has joined #ruby
saarinen has joined #ruby
tomsthumb has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
mklappst_ has quit [Remote host closed the connection]
becom33 has quit [Quit: Leaving]
rippa has quit [Ping timeout: 240 seconds]
aspiers has joined #ruby
devoldmx3 has joined #ruby
aedorn has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
brbcoding has quit [Ping timeout: 264 seconds]
jurbat has quit [Quit: Computer has gone to sleep.]
Iszak has joined #ruby
Michae___ has joined #ruby
Michael__ has quit [Read error: Connection reset by peer]
aedorn has joined #ruby
yalue has quit [Quit: Leaving]
nomenkun has joined #ruby
Michae___ has quit [Remote host closed the connection]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
slash_nick is now known as slash_quit
redstar1_1 has joined #ruby
nomenkun_ has joined #ruby
atyz has joined #ruby
deception has quit [Quit: Goodbye]
nomenkun has quit [Read error: Connection reset by peer]
dr_neek has quit [Quit: dr_neek]
banjara has quit [Quit: Leaving.]
redstar1_ has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
monkegjinni has joined #ruby
Takehiro has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
nomenkun has joined #ruby
ner0x has quit [Quit: Leaving]
ToApolytoXaos has quit [Quit: Leaving]
wesside_ has joined #ruby
Cultofmetatron has joined #ruby
nomenkun_ has quit [Ping timeout: 256 seconds]
<jjasonclark> any devs of doorkeeper on or someone who has used it for password based api access?
<jjasonclark> Doorkeeper error is : Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.
pothibo has joined #ruby
pothibo has joined #ruby
akells` has joined #ruby
<shevy> atmosx but they killed syck in ruby 2.0 :(
postmodern has joined #ruby
<atmosx> in ruby 2 I never had issues with psych though :-P
mnaser has quit [Excess Flood]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
mocfive has joined #ruby
chrishough has quit [Quit: chrishough]
mnaser has joined #ruby
pyrac has quit [Quit: pyrac]
Evixion has joined #ruby
Michael__ has joined #ruby
pr0ton has quit [Ping timeout: 256 seconds]
chipotl__ has joined #ruby
carloslopes has quit [Remote host closed the connection]
chrishough has joined #ruby
saurajeetd has quit [Ping timeout: 256 seconds]
phipes has quit [Quit: phipes]
ArchBeOS has quit [Ping timeout: 260 seconds]
jztech101_ has joined #ruby
brotatos has joined #ruby
BryanWB has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
AlHafoudh has joined #ruby
jimg has joined #ruby
Michael__ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 256 seconds]
snearch has joined #ruby
apod has quit [Quit: apod]
Squarepy has joined #ruby
brotatos has quit [Quit: WeeChat 0.4.1]
jimg has quit [Ping timeout: 252 seconds]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
mumblet is now known as mumblerit
gaahrdner has quit [Remote host closed the connection]
TousBientot has joined #ruby
Neomex has joined #ruby
sepp2k has quit [Quit: Leaving.]
gaahrdner has joined #ruby
brotatos has joined #ruby
ivanoats has joined #ruby
benlieb has joined #ruby
pipework has quit [Remote host closed the connection]
zommi has joined #ruby
jprovazn has quit [Ping timeout: 246 seconds]
daniel_-_ has joined #ruby
rismoney has quit [Remote host closed the connection]
JumpMast3r has joined #ruby
cHarNe2 has joined #ruby
rismoney has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
gaahrdner has quit [Ping timeout: 256 seconds]
rismoney has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
F1skr has quit [Quit: WeeChat 0.4.1]
daniel_-_ has quit [Read error: Operation timed out]
JohnBat26 has joined #ruby
rismoney has joined #ruby
mklappstuhl has joined #ruby
krawchyk has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
daniel_-_ has joined #ruby
pr0ton has joined #ruby
zommi has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
sambao21 has joined #ruby
mixel has joined #ruby
viszu has joined #ruby
johnrlive has quit [Remote host closed the connection]
<aedorn> I think my Python is improving ... depressing.
pu22l3r has quit [Ping timeout: 264 seconds]
txdv_ has joined #ruby
txdv has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
<chrisseaton> Hi everyone. What does File::FNM_SYSCASE do? It's used in fileutils.rb, but I can't find it in the core documentation.
evenix has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
JohnBat26 has quit [Ping timeout: 246 seconds]
woolite64 has joined #ruby
malkomalko has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
Guga_ has joined #ruby
k_89 has joined #ruby
Michael__ has joined #ruby
dmiller has quit [Remote host closed the connection]
Doc_X has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
arya_ has joined #ruby
<aedorn> chrisseaton: That's part of fnmatch.h sort of... it's defined in dir.c for Ruby (on POSIX systems it uses fnmatch FNM_CASEFOLD, but on Windows it will just define it as 0). Basically says case does or does not matter on the file system for matching purposes
c0rn has quit [Quit: Computer has gone to sleep.]
mljsimone|food is now known as mljsimone
Al_ has joined #ruby
<chrisseaton> aedorn: OK thanks that makes sense. Strange that it doesn't appear in the documentation though. Where should I have been looking to RTFM?
Appineer has quit [Remote host closed the connection]
Kar- has quit []
brotatos has quit [Quit: WeeChat 0.4.1]
jztech101_ has quit [Ping timeout: 246 seconds]
atmosx has quit [Quit: And so the story goes…]
arya has quit [Ping timeout: 248 seconds]
ivanoats_ has joined #ruby
<aedorn> chrisseaton: It's a bit unique to Ruby, but you can *kind* of get led to it by way of the "FNM_xxx matchers" in the File class doc: http://ruby-doc.org/core-2.0/File.html - unless you're familiar with the FNM_ prefix leading you to fnmatch.h, it's not exactly a clear path. =)
wesside_ has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
jfelchne_ has joined #ruby
Takehiro has joined #ruby
geekbri has quit [Remote host closed the connection]
jdunck has joined #ruby
sepp2k has joined #ruby
woolite64 has quit [Ping timeout: 256 seconds]
<lectrick> ruby-1.9.3-p429/lib/ruby/1.9.1/rake/dsl_definition.rb Look at the last few lines. Why the fuck is Rake, of all things, polluting the root Object namespace with a bunch of dynamically-defined methods and modules?
ivanoats has quit [Ping timeout: 256 seconds]
<lectrick> self.extend Rake::DSL
<lectrick> include Rake::DeprecatedObjectDSL
<lectrick> (for *serious*?)
Criztian has joined #ruby
Squarepy has quit [Remote host closed the connection]
gdae has joined #ruby
<xibalba> any SDRuby folks in here?
dmiller has joined #ruby
wsterling has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 276 seconds]
wsterling has joined #ruby
nuck has quit [Ping timeout: 264 seconds]
BadDesign has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 248 seconds]
v0n has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
h8R has quit [Quit: Leaving]
jmurphyuk has left #ruby [#ruby]
c0rn has joined #ruby
daniel_-_ has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
Neomex has quit [Quit: Neomex]
pskosinski has joined #ruby
devoldmx has joined #ruby
ldnunes has quit [Quit: Saindo]
LennyLinux has joined #ruby
benlieb has quit [Quit: benlieb]
atyz has quit [Quit: Linkinus - http://linkinus.com]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
wmoxam has quit [Ping timeout: 252 seconds]
gaahrdner has joined #ruby
devoldmx3 has quit [Ping timeout: 276 seconds]
nomenkun has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
zigomir has quit [Ping timeout: 246 seconds]
gdae has quit [Ping timeout: 246 seconds]
bhaak has quit [Ping timeout: 256 seconds]
druonysus has quit [Ping timeout: 246 seconds]
InFlames has joined #ruby
cj3kim has quit [Remote host closed the connection]
nomenkun has joined #ruby
nuck has joined #ruby
Spooner has joined #ruby
ariedler has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pcarrier_ has quit [Ping timeout: 276 seconds]
pskosinski has quit [Quit: pskosinski]
Michael__ has quit [Remote host closed the connection]
pskosinski has joined #ruby
zastern has joined #ruby
Michael__ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
mmitchell has quit [Read error: Operation timed out]
[m]adman has quit [Ping timeout: 246 seconds]
mumblerit has quit [Read error: Connection reset by peer]
Michael__ has quit [Read error: Connection reset by peer]
Michae___ has joined #ruby
pcarrier_ has joined #ruby
pskosinski has quit [Client Quit]
pskosinski has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
mumblerit has joined #ruby
mumblerit is now known as Guest91392
<kx> is it true that when ruby creates an instance of a class thats inherited, then the object has first (perhaps for a fraction of a second) type of the parent class before it 'morphs' into the correct, inherited class?
guest2222222 has joined #ruby
guest2222222 has quit [Read error: Connection reset by peer]
sethetter has left #ruby [#ruby]
yann_ck has quit [Quit: Computer has gone to sleep.]
bricker`away is now known as bricker`work
mercwithamouth has quit [Ping timeout: 252 seconds]
Guest91392 has quit [Ping timeout: 256 seconds]
mljsimone is now known as mljsimone|bnc
jfelchne_ is now known as jfelchner
cj3kim has joined #ruby
chrishough has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
ivanoats has joined #ruby
nomenkun has quit [Remote host closed the connection]
<ravster> hey all, I'm doing some JSON parsing. How do I test if a field's value is 'null'?
dash_ has quit [Quit: Time to beer :)]
chrishough has quit [Client Quit]
chipotl__ is now known as chipotle
chipotle has quit [Changing host]
chipotle has joined #ruby
johnmilton has quit [Remote host closed the connection]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adambeynon has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
volume has joined #ruby
pskosinski has quit [Quit: pskosinski]
<r0bgleeson> ravster: null is nil
jlast has quit [Remote host closed the connection]
<havenwood> ravster: ^^ JSON.dump nil; #=> "null"
<ravster> r0bgleeson: oh, okay. I'll try that. I was getting weird things with empty? and blank?
<ravster> that worked great, thanks r0bgleeson, havenwood
<r0bgleeson> bp
<r0bgleeson> np
chrishough has joined #ruby
AlHafoudh has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
_Amaan has quit [Quit: _Amaan]
niklasb has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
<kx> how can this line: @stringvar += (otherstringvar||'') return error: undefined method '+' for nil:NilClass?
<kx> I thought the ||'' would prevent ruby from ever interpreting the right part as nil
<moshee> + is the method being called on @stringvar
<kx> oh
<kx> okay
arya_ has quit [Ping timeout: 248 seconds]
<kx> thanks
monkegjinni has quit [Remote host closed the connection]
TousBientot has left #ruby [#ruby]
jerius has quit [Ping timeout: 252 seconds]
<r0bgleeson> kx: NilClass#to_s returns ''
<r0bgleeson> kx: you don't need that ||.
<kx> cool, didn't know that, thanks
monkegjinni has joined #ruby
<r0bgleeson> so, you could rewrite that as @stringvar ||= otherstringvar.to_s
pskosinski has joined #ruby
<r0bgleeson> erh sorry, @stringvar += otherstring.to_s
ntus1017 has quit [Remote host closed the connection]
jfelchner has quit [Ping timeout: 252 seconds]
volume has quit [Quit: Textual IRC Client: www.textualapp.com]
<kx> yeah, got it
momomomomo has quit [Quit: momomomomo]
fuzzyhorns has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
<Eiam> kx: Confident Ruby
cr3 has quit [Quit: leaving]
<Xeago> I always wonder why error messages include the type, reserved word but not the local variable that the error originated form..
telling has joined #ruby
<Xeago> s/form/from
forrest has quit [Quit: Leaving]
gasbakid has joined #ruby
marcdel_ has joined #ruby
<Eiam> kx: http://devblog.avdi.org/2012/06/05/confident-ruby-beta/ someone here recommended it to me I think via a video..
marcdel_ has quit [Client Quit]
seejohnr1n has quit [Ping timeout: 276 seconds]
maz-dev has quit [Remote host closed the connection]
<kx> O
<kx> I'll check it out*
<Eiam> I'm constantly referring back to it to help my Ruby out
marcdel_ has joined #ruby
<Eiam> this is one of those cases it would have helped
Al_ has quit [Read error: Connection reset by peer]
c0rn has quit [Quit: Computer has gone to sleep.]
guns has quit [Quit: guns]
Lubinski has quit [Quit: Leaving]
<kx> thanks, most likely I'll find some uses as I'm making an application that requires quite a bit of debugging and a lot of things can go wrong
Al_ has joined #ruby
wookiehangover is now known as sambreed
bhaak has joined #ruby
sambreed is now known as wookiehangover
<Eiam> Almost any time I write a nil check or think "better make sure this is an Array" I think "I've gone wrong somewhere"
samuel02 has joined #ruby
Al_ has quit [Client Quit]
<Eiam> unless im in the initializer =)
jfelchner has joined #ruby
mansi has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
mansi has joined #ruby
danslo has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
kofno has joined #ruby
travisjeffery has joined #ruby
seejohnrun has joined #ruby
akells` has quit [Remote host closed the connection]
breakingthings has quit [Quit: breakingthings]
mansi has quit [Ping timeout: 264 seconds]
splittingred has quit [Quit: splittingred]
bradhe has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
wesside_ has joined #ruby
pr0ton has quit [Ping timeout: 252 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
reset has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
chrisseaton has quit [Quit: Page closed]
jbpros has joined #ruby
rudisimo has quit [Quit: Leaving.]
Ortuna has joined #ruby
agjacome has quit [Quit: leaving]
ahawkins has quit [Quit: ahawkins]
woolite64 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ravster has quit [Quit: Leaving.]
wolcanus has quit [Ping timeout: 248 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
travisjeffery has quit [Ping timeout: 264 seconds]
_nitti has quit [Ping timeout: 256 seconds]
samuel02 has quit [Remote host closed the connection]
Spami has joined #ruby
jbueza has quit [Quit: Leaving.]
Spami has quit [Max SendQ exceeded]
Michae___ has quit [Remote host closed the connection]
Spami has joined #ruby
Michael__ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
c0rn has joined #ruby
seejohnrun has quit [Ping timeout: 256 seconds]
interactionjaxsn has joined #ruby
phipes has joined #ruby
speakingcode-wor has joined #ruby
RORgasm has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
Trynemjoel has quit [Ping timeout: 245 seconds]
wsterling has quit [Remote host closed the connection]
jsql has joined #ruby
jsql has left #ruby [#ruby]
atrl has joined #ruby
<atrl> hi
<atrl> to call command line commands from ruby, what's the best option ? system, exec or %x?
aedornw has joined #ruby
aedorn has quit [Ping timeout: 260 seconds]
Criztian has quit [Remote host closed the connection]
wsterling has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby
codesoda has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
nfk has quit [Remote host closed the connection]
pinpin404 has quit [Quit: d&d time kmp ! be happy !]
k_89 has quit [Ping timeout: 256 seconds]
workmad3 has quit [Read error: Operation timed out]
ckrailo has quit [Quit: Computer has gone to sleep.]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
arya has joined #ruby
Trynemjoel has joined #ruby
mumblerit has joined #ruby
Takehiro has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
arya has quit [Ping timeout: 248 seconds]
InFlames has quit [Quit: This computer has gone to sleep]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
fritz79 has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
InFlames has joined #ruby
fritz79 has quit [Client Quit]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
c0rn has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
gaahrdner has quit [Remote host closed the connection]
nkts has joined #ruby
devoldmx3 has joined #ruby
mixel has quit [Quit: mixel]
arya has joined #ruby
gaahrdner has joined #ruby
rickhull has joined #ruby
rickhull has left #ruby [#ruby]
<Mon_Ouie> They are different. %x{…} returns the output of the command, but you have to be careful with the way you insert arguments to avoid potential code injections, exec replaces the current process with a new one, and system just executes the command and waits for it to terminate
takeru has joined #ruby
JZTech101 has joined #ruby
<Mon_Ouie> You may also want to use IO.popen or Process.spawn if you want to interact with the process as it is running
devoldmx has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
<Paradox> Mon_Ouie, have you updated coolline? sorry to nag
mixel has joined #ruby
marcdel_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Mon_Ouie> Updated since when? The last commit was an update a month ago.
<Paradox> the IO#readlines error that its shoving into pry
<Mon_Ouie> I can't seem to remember that
cmarques has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
<Paradox> coolline-0.4.0/lib/coolline/history.rb:81: warning: IO#lines is deprecated; use #each_line instead
<Paradox> in 2.0
takeru has quit [Ping timeout: 276 seconds]
<Mon_Ouie> The latest version is 0.4.2
<Mon_Ouie> It doesn't give any warning on 2.0 here
<Paradox> well that would do it
ffranz has quit [Quit: Leaving]
s00pcan has quit [Quit: Lost terminal]
<Paradox> yup
<Paradox> fixes
<Paradox> thx
wesside_ has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Read error: Connection reset by peer]
teclator has quit [Ping timeout: 252 seconds]
lewix has quit [Remote host closed the connection]
gaahrdner has quit [Remote host closed the connection]
sambao21 has joined #ruby
Spami has quit [Ping timeout: 252 seconds]
MrZYX is now known as MrZYX|off
arya has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
Cultofmetatron has quit [Remote host closed the connection]
d2dchat has joined #ruby
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
nomenkun has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
ybart has quit [Quit: ybart]
reset has quit [Quit: Leaving...]
newUser1234 has quit [Remote host closed the connection]
jgarvey has quit [Quit: Leaving]
jfelchner has joined #ruby
tchebb has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
arya has joined #ruby
workmad3 has joined #ruby
Asher1 has quit [Ping timeout: 264 seconds]
Nisstyre has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
atrl has quit [Read error: Operation timed out]
saarinen has joined #ruby
`MArceLL` has quit [Ping timeout: 260 seconds]
mansi has quit [Remote host closed the connection]
generali_ has joined #ruby
chxane has joined #ruby
arya has quit [Ping timeout: 248 seconds]
`MArceLL` has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
ppppaul has joined #ruby
samuel02 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
harrymoreno has quit [Ping timeout: 256 seconds]
acamargo has joined #ruby
harrymoreno has joined #ruby
thatRD has quit [Quit: thatRD]
takeru has joined #ruby
arya has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
benweint has joined #ruby
terrellt has quit [Ping timeout: 245 seconds]
leonid_ has quit [Ping timeout: 256 seconds]
rhys has quit [Quit: Leaving]
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno has joined #ruby
Inside has joined #ruby
geggam has quit [Remote host closed the connection]
gildo has joined #ruby
ArchBeOS has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
gstamp has joined #ruby
Bleah has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 276 seconds]
robscomputer_ has joined #ruby
devoldmx3 has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
aedornw has quit [Quit: Leaving]
wsterling has quit [Remote host closed the connection]
jimg has joined #ruby
robscomputer has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 264 seconds]
robscomputer_ has quit [Ping timeout: 264 seconds]
x1337807_ has joined #ruby
Dekade has joined #ruby
pskosinski has joined #ruby
aedorn has joined #ruby
x1337807_ is now known as x1337807
bradhe has joined #ruby
jimg has quit [Remote host closed the connection]
Cyrus has joined #ruby
mikeg has joined #ruby
choobie has joined #ruby
cofin has quit [Quit: cofin]
dmiller has quit [Remote host closed the connection]
jimg has joined #ruby
benlieb has quit [Quit: benlieb]
r0bgleeson has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: leaving]
x1337807 is now known as x1337807x
jbueza has joined #ruby
jbueza has left #ruby [#ruby]
LennyLinux has quit [Remote host closed the connection]
dmiller_ has joined #ruby
strax has quit [Quit: Connection closed for inactivity]
carlyle has quit [Remote host closed the connection]
x1337807x is now known as x51339807x
dmiller_ has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
DrShoggoth has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
daniel_- has quit [Quit: WeeChat 0.4.1]
arya has joined #ruby
ivanoats has quit [Ping timeout: 256 seconds]
takeru has quit [Remote host closed the connection]
fierycatnet has joined #ruby
mixel has quit [Quit: mixel]
sambao21 has joined #ruby
tommyvyo has quit [Quit:]
arya has quit [Ping timeout: 252 seconds]
ppppaul has quit [Ping timeout: 256 seconds]
predator117 has joined #ruby
synthetix has joined #ruby
jimg has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
pskosinski has quit [Ping timeout: 276 seconds]
jjasonclark has quit [Ping timeout: 252 seconds]
orien has joined #ruby
momomomomo has quit [Quit: momomomomo]
predator217 has quit [Ping timeout: 264 seconds]
alecdhuse has joined #ruby
samuel02 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<alecdhuse> Hello all, I'm new to Ruby and have a question: It there some type of two-way dictionary in ruby? Like a hashmap but where I can lookup either by the key or the value? Thanks
momomomomo has joined #ruby
freerobby has quit [Quit: Leaving.]
zeade has quit [Quit: Leaving.]
jdunck has quit [Quit: Computer has gone to sleep.]
takeru has joined #ruby
bigmac has joined #ruby
arya has joined #ruby
reset has joined #ruby
lewix has joined #ruby
jjasonclark has joined #ruby
ia___ has quit [Quit: ia___]
ckrailo has joined #ruby
zeade has joined #ruby
joast has joined #ruby
gaahrdner has joined #ruby
viszu has quit [Quit: Leaving.]
bean has quit [Quit: Computer has gone to sleep.]
x51339807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
jbpros has quit [Quit: jbpros]
krombr has joined #ruby
<havenwood> alecdhuse: All values are unique?
terrellt has joined #ruby
lewix has quit [Ping timeout: 256 seconds]
moted has quit [Quit: moted]
<alecdhuse> havenwood: yes
momomomomo has quit [Quit: momomomomo]
<alecdhuse> both keys and values are unique
moted has joined #ruby
cj3kim has quit [Remote host closed the connection]
<havenwood> alecdhuse: You can invert the hash when you want to lookup by value. #invert
Mon_Ouie has quit [Ping timeout: 256 seconds]
m8 has quit [Quit: Sto andando via]
acamargo has quit [Ping timeout: 256 seconds]
timkohrumel has quit [Remote host closed the connection]
<alecdhuse> havenwood: thanks!
x1337807x has joined #ruby
Cultofmetatron has joined #ruby
gaahrdner has quit [Ping timeout: 264 seconds]
jfelchner has quit [Ping timeout: 252 seconds]
starscreamer has joined #ruby
dmiller has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
freerobby has joined #ruby
jfelchner has joined #ruby
reset has quit [Ping timeout: 264 seconds]
mixel has joined #ruby
seejohnrun has joined #ruby
moted has quit [Quit: moted]
moted has joined #ruby