apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<DouweM> drim: you'd need to have email return an object that implements <<
<yoshie902a> ;(
enebo has quit [Quit: enebo]
binaryhat has joined #ruby
<soahccc> I think it is possible to "patch" methods onto single instances but it isn't really good usually
burlyscudd has quit [Quit: Leaving.]
mneorr_ has joined #ruby
<lethjakman> DouweM: only thing that's confusing me is I don't see sale being declared and I'm inside Sale....so how does it know which sale is in question?
<DouweM> you're passing a lambda in the :if option. a lambda is pretty much a function that can be stored and then called at any time. so what activemodel does is call that lambda with a sale when validating the sale
<DouweM> so the sale arg is the sale currently being validated
MrZYX is now known as MrZYX|off
<lethjakman> it's definitely working
thumpba has quit [Remote host closed the connection]
szerated has joined #ruby
<DouweM> what is
mneorr has quit [Ping timeout: 245 seconds]
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest7655 has quit [Ping timeout: 252 seconds]
thumpba has joined #ruby
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
Nightmare has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
fedesilva has quit [Remote host closed the connection]
sambao21 has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
andrewfree has joined #ruby
_aeris_ is now known as [_aeris_]
VTLob has quit [Quit: VTLob]
<havenwood> hrm, seems to be a segfault in 2.0+ calling anything on a dup'd or cloned Queue: Queue.new.dup.empty?
<havenwood> works in 1.9
asteros has quit [Quit: asteros]
DanBoy has joined #ruby
<shevy> see?
<shevy> I keep on telling everyone that 1.9 is better!
asteros has joined #ruby
mhenrixon is now known as mhenrixon|afk
szerated has quit [Ping timeout: 245 seconds]
<popl> everyone?
<havenwood> shevy: bah humbug!
ritek has quit [Changing host]
ritek has joined #ruby
ritek has quit [Changing host]
ritek has joined #ruby
heidi has quit [Quit: Leaving.]
heidi has joined #ruby
<Jason> 3
<Hanmac> havenwood: did you see this scene? http://youtu.be/zvwYCbBWxT8
<havenwood> Hanmac: Merry Hogswatch!
szerated has joined #ruby
yasushi has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
peregrin_ has quit []
fedesilva has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rankine has quit [Ping timeout: 272 seconds]
godd2 has joined #ruby
rankine has joined #ruby
rankine has quit [Changing host]
rankine has joined #ruby
mklappstuhl has quit [Ping timeout: 265 seconds]
mocfive has quit [Remote host closed the connection]
yaymukund has joined #ruby
mocfive has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ce_afk is now known as cescalante
kevind has quit [Quit: kevind]
peregrin_ has joined #ruby
mocfive_ has joined #ruby
<shevy> Hanmac how's rxw doing :>
hiall has quit [Quit: hiall]
yfeldblum has quit [Remote host closed the connection]
mocfive has quit [Read error: Connection reset by peer]
<Hanmac> already a few commits yesterday ... i still try to increate the comment / code ratio before i add more new functions
peregrin_ has quit [Client Quit]
DanBoy has quit [Remote host closed the connection]
peregrin_ has joined #ruby
DanBoy has joined #ruby
sergicles has joined #ruby
<shevy> well
<shevy> don't worry about the comments
peregrin_ has quit [Client Quit]
asteros has quit [Quit: asteros]
<shevy> the most important thing should be to make what is available a gem!
tkuchiki has joined #ruby
mhenrixon|afk is now known as mhenrixon
<bnagy> haha I just pushed a really awful patch :D
<bnagy> ObjectSpace finalizers ftw
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
guinslym has quit [Ping timeout: 272 seconds]
iamsean has joined #ruby
Targen has joined #ruby
<popl> why?
<bnagy> inorite?
eka has quit [Quit: Computer has gone to sleep.]
zz_karupanerura is now known as karupanerura
<popl> You might get threats.
<bnagy> basically I have some wrapped C objects that come back from the lib, and against my better instincts I want to give people a footgun to save them in an array instead of consuming them immediately via Enumerable
yfeldblum has joined #ruby
<bnagy> so I can either laboriously build a new HLL object by copying every single thing out of the C obj, or do something revolting
doodlehaus has joined #ruby
<popl> You might get threats.
diegoviola has joined #ruby
<popl> Is anyone using crabstone?
<bnagy> maybe I'll make it private, so you have to explicitly call it via private_methods
<bnagy> so the user code will look as bad as it is
<bnagy> *shrug*
havenwood has quit [Remote host closed the connection]
<bnagy> I use the go version
tkuchiki has quit [Remote host closed the connection]
<popl> You should put a big warning sign on that, yeah.
<popl> :)
<bnagy> but we wanted a ruby wrapper to at least be available
tt1187 has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
* Hanmac 's bindings point and laugh about ObjectSpace finalizers ;P
<bnagy> in other news, MRI FFI segfaults when trying to .clone FFI structs with embedded pointers
<bnagy> so that's nice
Vivekananda has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
predator217 has joined #ruby
<shevy> hehehe
mhenrixon is now known as mhenrixon|afk
digital-_ has joined #ruby
davidhq_ has joined #ruby
alexfreidah has joined #ruby
whomp has quit [Quit: leaving]
mikepack has joined #ruby
yoshie902a has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 252 seconds]
digital-ghost has quit [Ping timeout: 260 seconds]
predator117 has quit [Ping timeout: 248 seconds]
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby
davidhq has quit [Ping timeout: 276 seconds]
szerated has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
cbetta is now known as cbetta_afk
ss has joined #ruby
ss is now known as Guest4705
mikepack has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
SCommette has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cescalante is now known as ce_afk
vlad_starkov has quit [Remote host closed the connection]
Guest19668 is now known as raar
raar has quit [Changing host]
raar has joined #ruby
rootshift has joined #ruby
unixpro1970 has quit [Quit: unixpro1970 has off IRC]
gr33n7007h has quit [Ping timeout: 272 seconds]
mocfive_ has quit [Remote host closed the connection]
mocfive has joined #ruby
vlad_starkov has joined #ruby
mansi has joined #ruby
rahult has joined #ruby
axl_ has quit [Quit: axl_]
mocfive_ has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
mocfive has quit [Read error: Connection reset by peer]
Megtastique has quit []
w4pm has quit [Read error: Connection reset by peer]
w4pm has joined #ruby
mneorr_ has quit [Remote host closed the connection]
RagingDave has joined #ruby
mneorr has joined #ruby
RagingDave has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 272 seconds]
ckinni has joined #ruby
rankine has quit [Quit: Leaving]
robustus has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has joined #ruby
tkuchiki has joined #ruby
ce_afk is now known as cescalante
tylersmith has quit [Remote host closed the connection]
chrisseaton has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
Guedes0 has quit [Remote host closed the connection]
starkhalo has quit [Ping timeout: 272 seconds]
mocfive_ has quit [Remote host closed the connection]
nfk has quit [Ping timeout: 248 seconds]
mocfive has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
charliesome has joined #ruby
noob101 has joined #ruby
<noob101> Why is Gambling seen as a victimless crime?
<DouweM> what?
Guest41562 has quit [Ping timeout: 248 seconds]
maycon has joined #ruby
pizzocel has joined #ruby
jenskarlsen has quit [Remote host closed the connection]
jenskarlsen has joined #ruby
havenwood has joined #ruby
<lewellyn> ERROR: Could not find a valid gem 'gambling' (>= 0) in any repository
mocfive has quit [Ping timeout: 272 seconds]
davidhq_ has quit [Remote host closed the connection]
davidhq has joined #ruby
<noob101> Why is Gambling seen as a victimless crime? Is it really a Victimless crime?
brandonjmckay has quit [Quit: Lingo - http://www.lingoirc.com]
binaryhat has quit [Quit: Leaving]
yaymukund has quit [Ping timeout: 248 seconds]
noob101 has left #ruby [#ruby]
pizzocel has quit [Quit: Leaving.]
doodlehaus has joined #ruby
phipes has joined #ruby
godd2 has quit [Ping timeout: 248 seconds]
nathancahill_ has joined #ruby
godd2 has joined #ruby
Jetchisel has joined #ruby
nathancahill has quit [Ping timeout: 272 seconds]
nathancahill_ is now known as nathancahill
peregrin_ has joined #ruby
aspires has quit []
enebo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tt1187 has joined #ruby
davidhq has quit []
mikepack has joined #ruby
coda23 has joined #ruby
sLi_ has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
sailias has joined #ruby
davidhq has joined #ruby
CaptainJet has joined #ruby
Ehtyar has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
Hobogrammer has quit [Ping timeout: 265 seconds]
<Ehtyar> hi guys, i'm looking to capture errors from a specific ruby function in a manner similar to perl "or". Something like my_function or puts "error trying to my_function". Does such a thing exist in ruby?
mklappstuhl has joined #ruby
mehlah has quit [Quit: Leaving...]
sparrovv has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
thesheff17 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
mneorr has joined #ruby
io_syl has quit []
kenndel_ has quit [Read error: Connection reset by peer]
kenndel_ has joined #ruby
<soahccc> Ehtyar: I don't know perl. in ruby "method || puts "failed" would print if the result of method is falsy
tt1187 has quit [Ping timeout: 272 seconds]
<soahccc> Ehtyar: can you elaborate "capture errors"?
[Neurotic] has left #ruby [#ruby]
vlad_starkov has joined #ruby
mojjojo has quit [Quit: mojjojo]
zeade has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
szerated has joined #ruby
LastWhisper has quit [Ping timeout: 272 seconds]
Tamal has joined #ruby
mocfive has joined #ruby
Tamal has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
phipes has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
clevermatt has quit [Remote host closed the connection]
<Ehtyar> well i guess the return value would do
<Ehtyar> i was thinking more of exceptions
<Ehtyar> but i don't want to rescue each function individually
fijimunkii has quit [Ping timeout: 260 seconds]
<bnagy> you can do blah = obj.xyzzy rescue '4'
<bnagy> it's not usually considered to be great style though, but depends how certain you are of the possible failure states
phipes has joined #ruby
sLi- has joined #ruby
<Ehtyar> oh actually that's perfect
<Ehtyar> thank you!
clevermatt has joined #ruby
szerated has quit [Read error: Connection reset by peer]
szerated has joined #ruby
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
mojjojo has joined #ruby
habanany has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
Cephalostrum has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
idoru has joined #ruby
<shevy> soahccc awwww you should have learned perl!
<shevy> but don't worry, perl 6 is still available in the future
<centrx> In 10-20 years
phipes has quit [Remote host closed the connection]
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
bricker`1ork has joined #ruby
phipes has joined #ruby
rburton- has joined #ruby
mocfive has quit [Remote host closed the connection]
Bira has joined #ruby
mocfive has joined #ruby
LostMonk- has joined #ruby
Xiti` has joined #ruby
fella6s has joined #ruby
krz has joined #ruby
starkhalo has joined #ruby
davidhq_ has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
bricker`1A is now known as bricker`LA
peregrin_ has quit []
Vitor__ has joined #ruby
davidhq has quit [Ping timeout: 252 seconds]
synergy_ has joined #ruby
mocfive has quit [Ping timeout: 248 seconds]
Vitor_ has quit [Ping timeout: 272 seconds]
Xiti has quit [Ping timeout: 252 seconds]
LostMonk has quit [Ping timeout: 252 seconds]
fella5s has quit [Ping timeout: 252 seconds]
mocfive has joined #ruby
e62 has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
dukz has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 276 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
alexfreidah has quit [Ping timeout: 260 seconds]
drim has quit [Quit: drim]
tylersmith has joined #ruby
szerated has quit [Ping timeout: 245 seconds]
echevemaster has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
doodlehaus has quit [Remote host closed the connection]
Barrin6 has joined #ruby
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
lioninawhat has quit [Remote host closed the connection]
samuel02 has joined #ruby
guinslym has joined #ruby
brennanMKE has joined #ruby
araujo has quit [Read error: Connection reset by peer]
tylersmith has quit [Ping timeout: 252 seconds]
drim has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
godd2 has joined #ruby
<RubyPanther> It may not be finished, but [a few] people were already using Perl 6 when I switched to Ruby in 2004. So it has to be even more usable by now, regardless of completion status.
<brennanMKE> Perl 6?
<brennanMKE> over 10 years and it is still not done
mocfive has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 272 seconds]
mocfive has joined #ruby
freerobby has joined #ruby
CaptainJet has quit []
mocfive has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
deens has joined #ruby
danshultz has joined #ruby
clevermatt has quit [Remote host closed the connection]
m00nlight has joined #ruby
Wolland has quit [Remote host closed the connection]
blandflakes has quit [Quit: Page closed]
<centrx> I just used the evalbot in #perl6, and the bot immediately quit, so I think I crashed it
chomskiii has quit [Read error: Connection reset by peer]
<centrx> IRC version of Perl6 not ready for prime time
chomskiii has joined #ruby
mojjojo has quit [Quit: mojjojo]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mr_red has quit [Quit: Bye :)]
gja has joined #ruby
braincrash has quit [Read error: Operation timed out]
bnagy has quit [Ping timeout: 260 seconds]
bnagy has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
mr_red has joined #ruby
St_Marx has quit [Quit: leaving]
St_Marx has joined #ruby
vlad_starkov has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
RubyPanther has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
jenskarlsen has quit [Remote host closed the connection]
jenskarlsen has joined #ruby
sailias has quit [Ping timeout: 265 seconds]
kcombs has joined #ruby
RubyPanther has joined #ruby
gigetoo has quit [Remote host closed the connection]
mgorbach has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troyready has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
glaksmono has quit [Quit: This computer has gone to sleep]
araujo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
phinfonet has quit [Quit: exitiing]
saarinen has quit [Quit: saarinen]
thomasxie has joined #ruby
ewnd9_ has joined #ruby
szerated has joined #ruby
Hobogrammer has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
sassamo has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
jaimef has joined #ruby
Jake232 has joined #ruby
cescalante is now known as ce_afk
amclain has joined #ruby
MattStratton has joined #ruby
nari has joined #ruby
Guest4705 has quit [Remote host closed the connection]
ss has joined #ruby
ss is now known as Guest83811
szerated has quit [Ping timeout: 245 seconds]
Jdubs has quit [Remote host closed the connection]
mlpinit_ has quit [Ping timeout: 260 seconds]
Jdubs has joined #ruby
heidi has quit [Quit: Leaving.]
Jdubs has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
Guest83811 has quit [Ping timeout: 245 seconds]
fedesilva has quit [Remote host closed the connection]
Ehtyar has quit [Quit: Page closed]
burlyscudd has joined #ruby
zenNamaste has joined #ruby
m00nlight_ has joined #ruby
samuel02 has joined #ruby
godd2 has quit [Ping timeout: 252 seconds]
godd2 has joined #ruby
prc has quit [Remote host closed the connection]
m00nlight has quit [Ping timeout: 245 seconds]
szerated has joined #ruby
<zenNamaste> howdy all. I created a xmlrpc-client with: " @server = XMLRPC::Client.new_from_uri('https://beaker.engineering.redhat.com/RPC2') " but when I call a rpc-method with param = @server.call("auth.login_password", "c", "zxc"), it shows: wrong/unknown XML-RPC type 'nil' (RuntimeError).
mansi has quit [Remote host closed the connection]
radic has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
samuel02 has quit [Ping timeout: 260 seconds]
<zenNamaste> does the error message means some Version conflict?
Jetchisel has quit [Ping timeout: 256 seconds]
prc has joined #ruby
radic has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
ehaliewicz has quit [Remote host closed the connection]
aspires has joined #ruby
<bricker`LA> zenNamaste: set XMLRPC::Config::ENABLE_NIL_PARSER = true
burlyscudd has quit [Quit: Leaving.]
<zenNamaste> bricker`LA: I'll try. Thanks tons!
aspires has quit [Client Quit]
aspires has joined #ruby
aspires has quit [Client Quit]
pel_daniel has left #ruby [#ruby]
lioninawhat has joined #ruby
mansi has joined #ruby
<zenNamaste> bricker`LA: it works! but I got following warning: http://ix.io/9V7
<zenNamaste> bricker`LA: does it mean I should change the config.rb? thanks.
snath has quit [Ping timeout: 272 seconds]
cj3kim has joined #ruby
coda23 has quit [Quit: Leaving]
aspires has joined #ruby
dkamioka has joined #ruby
deens has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
ce_afk is now known as cescalante
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Wolland has joined #ruby
webus has joined #ruby
Seich has joined #ruby
ewnd9_ has quit [Ping timeout: 260 seconds]
danshultz has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
danshultz has joined #ruby
Asher has quit [Quit: Leaving.]
zeade has joined #ruby
<bricker`LA> zenNamaste: no way to get around that warning really, the constant is defined inside of Ruby's stdlib. It's just a warning afterall.
Asher has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 252 seconds]
<zenNamaste> bricker`LA: I see. Thanks.
starkhalo has quit [Ping timeout: 245 seconds]
aagdbl has quit [Quit: Leaving]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
cafhacker has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
ss has joined #ruby
mocfive has quit [Remote host closed the connection]
ss is now known as Guest2215
mocfive has joined #ruby
lioninawhat has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 248 seconds]
mocfive has quit [Ping timeout: 245 seconds]
starkhalo has joined #ruby
Jake232 has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
snath has joined #ruby
thesheff17 has quit [Remote host closed the connection]
<diegoviola> please give me a tl;dr version of what refinements are, thanks
aspires has quit []
alexfreidah has joined #ruby
goganchic has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<bricker`LA> diegoviola: a way to modify a class and apply those modifications selectively, an improvement on the common Ruby practice of modifying classes globally
mansi has quit [Remote host closed the connection]
<diegoviola> thanks\
<diegoviola> thanks*
<bricker`LA> s/class/module to be more accurate
mansi has joined #ruby
freezey has joined #ruby
yacks has joined #ruby
alexfreidah has quit [Ping timeout: 265 seconds]
digital-_ has quit [Remote host closed the connection]
guinslym has quit [Quit: Leaving]
kobain has quit []
mansi has quit [Ping timeout: 252 seconds]
<diegoviola> i see
lioninawhat has joined #ruby
jle` has quit [Quit: WeeChat 0.4.2]
gja has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
jle` has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
sensen has joined #ruby
godd2 has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
samuel02 has joined #ruby
<centrx> I see
bbloom has joined #ruby
Jetchisel has joined #ruby
lfox has quit [Quit: ZZZzzz…]
Jdubs has joined #ruby
lfox has joined #ruby
lfox has quit [Client Quit]
josbrahol has joined #ruby
josbrahol has quit [Client Quit]
samuel02 has quit [Ping timeout: 245 seconds]
b00stfr31k has joined #ruby
Jdubs has quit [Ping timeout: 245 seconds]
bbloom has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 246 seconds]
Cephalostrum has quit [Read error: Connection reset by peer]
tyl has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
starkhalo has quit [Ping timeout: 245 seconds]
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
krz has joined #ruby
Cephalostrum has joined #ruby
deens has joined #ruby
coderhs has joined #ruby
szerated has quit [Ping timeout: 245 seconds]
stryek has quit [Quit: Leaving]
lioninawhat has quit [Remote host closed the connection]
deens has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
<RubyPanther> why not factorygirl About 1,170,000 results
w4pm has quit [Ping timeout: 245 seconds]
cafhacker has quit [Quit: Textual IRC Client: www.textualapp.com]
Cephalostrum has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<pontiki> just mentioned over in the rails place...
JohnBat26 has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
Jdubs has joined #ruby
vlad_starkov has joined #ruby
phipes has quit [Remote host closed the connection]
dkamioka has joined #ruby
aspires has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
deens has joined #ruby
goganchic has quit []
mikepack has joined #ruby
icy` has joined #ruby
icy` has quit [Client Quit]
dkamioka has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
starkhalo has joined #ruby
browndawg has joined #ruby
deens has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
obbo has joined #ruby
zmansiv has quit [Ping timeout: 252 seconds]
<obbo> hello. i am trying to get a timezone name (i.e. "America/New_York") from a given datetime: 2011-03-30T14:08:14-04:00 is there any way to do this?
<lewellyn> obbo: no.
robbyoconnor has joined #ruby
<lewellyn> how do you know that the user is in America/New_York versus someplace else 4 hours behind UTC?
Soda has joined #ruby
zmansiv has joined #ruby
micah` has quit [Remote host closed the connection]
Lewix has joined #ruby
micah` has joined #ruby
<lewellyn> obbo: you have many potential choices. http://en.wikipedia.org/wiki/UTC%E2%88%9204:00
dukz has joined #ruby
RubyPanther has quit [Ping timeout: 245 seconds]
danshultz has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 245 seconds]
<lewellyn> i mean, if you have *additional* data, you can potentially make a pretty good guess.
Deele has joined #ruby
<obbo> yeah, the app is for a very specific purpose. if the offset is -0400 or -0500 you are considered to be on the "east coast"
<obbo> any way to get just the offset amount (-0400) from a datetime string?
freerobby has quit [Quit: Leaving.]
<obbo> i basically need a way to tell which section of the united states a datetime string is from
<lewellyn> so what about those in, say, nova scotia? :P
Paradox has quit [Ping timeout: 276 seconds]
<lewellyn> or is this guaranteed to be united states only?
<lewellyn> (and i assume you'll account for daylight saving time appropriately)
Guest2215 has quit [Ping timeout: 265 seconds]
Paradox has joined #ruby
<obbo> yeah, guaranteed to be in the US. it's an app that parses my emails
<lewellyn> so which timezones do you care about? and how would you classify them?
rickruby has joined #ruby
phipes has joined #ruby
<lewellyn> 4-5 east coast, 6 middle us, 7-8 west coast? (realizing that people will move between those as the seasons change)
sski has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
<obbo> i have friends who send me emails from hawaii and california, some from texas and some from ny. i just want a way to tell me the total amounts of email come from west/central/east
<obbo> is there a time method that give me the offset or should i just regex?
senayar has joined #ruby
ohwhoa has joined #ruby
senayar has quit [Remote host closed the connection]
<lewellyn> if so, i'd start by slicing the string. [-4] will get you the single digit hour offset.
senayar has joined #ruby
senayar has quit [Client Quit]
<lewellyn> then just use one of any number of ways to correlate that digit to a string.
<lewellyn> i'd probably use a case statement for the whole shebang.
<lewellyn> offset = case timestamp[-4]
VesQ has quit [Ping timeout: 246 seconds]
<lewellyn> when "6" then "Central"
Bira has quit [Remote host closed the connection]
<lewellyn> end
<lewellyn> something like that.
Sami345 has quit [Ping timeout: 260 seconds]
rezzack has quit [Ping timeout: 272 seconds]
<obbo> that sounds good. now, silly question, i'm pretty new to programming: if I parse the datetime strings into Time objects and use #utc on them. if i then sort on that, it should order chronologically, right?
jonathanwallace has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
<lewellyn> actually, if you use timestamp[-4].to_i you can use e.g. when 4..5 then "East Coast"
brennanMKE has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lewellyn> um. i thought you were parsing email headers?
<lewellyn> oh. i think i see what you're asking.
<lewellyn> hm.
<lewellyn> i don't know offhand. all i can suggest is "try it" :)
havenwood has joined #ruby
dkamioka has joined #ruby
gja has joined #ruby
<obbo> ha, thanks
obbo has quit [Quit: Page closed]
phipes has quit [Remote host closed the connection]
deens has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
IceDragon has quit [Quit: Space~~~]
cyberarm has quit [Remote host closed the connection]
deens has quit [Client Quit]
Sawbones has joined #ruby
venkat has joined #ruby
e62 has joined #ruby
r0bby_ has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
mocfive has joined #ruby
godd2 has quit [Ping timeout: 245 seconds]
godd2 has joined #ruby
phipes has joined #ruby
freezey has quit [Remote host closed the connection]
r0bby_ has quit [Ping timeout: 248 seconds]
vim_shim_ has quit [Read error: Connection reset by peer]
vim_shim_ has joined #ruby
tylersmith has joined #ruby
dkamioka has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
pranny has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
browndawg has quit [Ping timeout: 272 seconds]
cj3kim has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
sassamo has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
RubyPanther has joined #ruby
achru has joined #ruby
_tpavel has joined #ruby
Barrin6 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
soba has joined #ruby
coder_neo has joined #ruby
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
e62 has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
Seich has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
Hobogrammer_ has joined #ruby
Seich has joined #ruby
mary5030 has joined #ruby
pu22l3r_ has quit [Ping timeout: 246 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
Hobogrammer_ has quit [Ping timeout: 248 seconds]
freerobby1 has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
bjhaid has quit [Ping timeout: 276 seconds]
BrixSat has quit [Remote host closed the connection]
kate_r has joined #ruby
BrixSat has joined #ruby
pu22l3r has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
Wolland has joined #ruby
dukz has quit [Remote host closed the connection]
Seich has joined #ruby
browndawg has joined #ruby
Macaveli has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
Seich has quit [Ping timeout: 272 seconds]
phipes has joined #ruby
bluOxigen has joined #ruby
kuzushi__ has joined #ruby
VesQ has joined #ruby
rezzack has joined #ruby
Tarential has quit [Excess Flood]
kaldrenon has joined #ruby
Sawbones has joined #ruby
kate_r has quit [Read error: Connection reset by peer]
Tarential has joined #ruby
kate_r has joined #ruby
baroquebobcat has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
kuzushi_ has quit [Ping timeout: 272 seconds]
falood has joined #ruby
alexfreidah has joined #ruby
Sami345 has joined #ruby
gja has joined #ruby
aagdbl has joined #ruby
rickruby has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
SCommette has quit [Quit: SCommette]
synergy_ has quit [Remote host closed the connection]
alexfreidah has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 246 seconds]
pranny1 has joined #ruby
ckinni has joined #ruby
kate_r has quit [Quit: Textual IRC Client: www.textualapp.com]
Jake232 has joined #ruby
vlad_starkov has joined #ruby
wdiechmann has joined #ruby
pranny has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
senayar has joined #ruby
zipper has joined #ruby
amclain has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
h_kon has joined #ruby
Bira has joined #ruby
yaymukund has joined #ruby
vlad_starkov has joined #ruby
blackstar257 has joined #ruby
blackstar257 has quit [Excess Flood]
Sawbones has quit [Remote host closed the connection]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samuel02 has quit [Ping timeout: 253 seconds]
maletor has joined #ruby
Bira has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
mengu has joined #ruby
dseitz has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
gja has quit [Quit: This computer has gone to sleep]
yacks has quit [Quit: Leaving]
gja has joined #ruby
browndawg has quit [Quit: Leaving.]
jonahR has quit [Quit: jonahR]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Demo_of_doom has joined #ruby
heftig has quit [Quit: Quitting]
Demo_of_doom has quit [Read error: Connection reset by peer]
Sawbones has quit []
Hanmac has joined #ruby
St_Marx has joined #ruby
renklaf has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
artmann has quit [Quit: No Ping reply in 180 seconds.]
artmann has joined #ruby
freerobby has joined #ruby
St_Marx has quit [Client Quit]
pranny has joined #ruby
binw has quit [Read error: Connection reset by peer]
tubuliferous__ has joined #ruby
freerobby1 has joined #ruby
pranny1 has quit [Ping timeout: 272 seconds]
freerobby has quit [Read error: Connection reset by peer]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
<tubuliferous__> Wow, this is a big room.
Macaveli has quit [Ping timeout: 245 seconds]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
fijimunkii has joined #ruby
sassamo_ has joined #ruby
e62 has joined #ruby
sergicles has quit [Quit: sergicles]
sassamo has quit [Remote host closed the connection]
St_Marx has joined #ruby
Macaveli has joined #ruby
dik_dak has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
binw has joined #ruby
freerobby1 has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby
fella5s has joined #ruby
Norrin has quit [Max SendQ exceeded]
darthdeus has joined #ruby
starkhalo has quit [Ping timeout: 248 seconds]
e62 has quit [Ping timeout: 252 seconds]
fella6s has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
kewubenduben has quit [Ping timeout: 248 seconds]
derick_skibotn has joined #ruby
jprovazn has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
Norrin has joined #ruby
mengu has quit [Remote host closed the connection]
w4pm has joined #ruby
r0bby_ has joined #ruby
roidelapluie has joined #ruby
<roidelapluie> hello
phipes has quit [Remote host closed the connection]
venkat has quit []
<roidelapluie> I have a question with arrays
<roidelapluie> how can I check that an array is present in another array?
<roidelapluie> e.g ['a','b','c','d']
<roidelapluie> ['a','b'] is present
<roidelapluie> but not ['b','a']
yaymukund has quit [Ping timeout: 245 seconds]
bhaak has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Seich has joined #ruby
thomasxie has quit [Ping timeout: 248 seconds]
kcombs has quit [Remote host closed the connection]
mengu has joined #ruby
dukz has joined #ruby
St_Marx has quit [Read error: Connection reset by peer]
w4pm has quit [Ping timeout: 260 seconds]
dukz has quit [Remote host closed the connection]
brennanMKE has joined #ruby
tylersmith has quit [Remote host closed the connection]
St_Marx has joined #ruby
Seich has quit [Ping timeout: 252 seconds]
shime has joined #ruby
<centrx> roidelapluie, Are you still there?
klaut has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
artmann has quit [Quit: No Ping reply in 180 seconds.]
aspires has quit []
artmann has joined #ruby
aganov has joined #ruby
Seich has joined #ruby
aganov has quit [Client Quit]
aganov has joined #ruby
dukz has joined #ruby
Soda has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
sski has joined #ruby
Guest7655 has joined #ruby
r0bby_ is now known as robbyoconnor
thedonvaughn has quit [Read error: Operation timed out]
zipper is now known as urbanslug
sski has quit [Ping timeout: 272 seconds]
yaymukund has joined #ruby
derick_skibotn has quit [Ping timeout: 260 seconds]
derick_skibotn has joined #ruby
thedonvaughn has joined #ruby
<derick_skibotn> While we're talking stackoverflow questions, I'm wondering about how several class singleton methods defined in a module can share common code: http://stackoverflow.com/questions/21180012/ruby-how-do-i-refactor-code-from-two-module-class-methods
brennanMKE has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Guest7655 has quit [Quit: WeeChat 0.4.1]
noop has joined #ruby
jhaals has joined #ruby
St_Marx has quit [Read error: Connection reset by peer]
St_Marx has joined #ruby
Xeago has joined #ruby
tyl has quit [Quit: Textual IRC Client: www.textualapp.com]
brennanMKE has quit [Ping timeout: 272 seconds]
centrx has quit [Quit: Leaving]
mhenrixon|afk has quit [Read error: Operation timed out]
yaymukund has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
xjiujiu has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
tubuliferous__ has left #ruby ["Leaving"]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
sassamo_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
sassamo has joined #ruby
Xeago_ has joined #ruby
zeade has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 252 seconds]
andikr has joined #ruby
derick_skibotn has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Xeago has quit [Ping timeout: 245 seconds]
xjiujiu has joined #ruby
MindfulMonk has quit [Ping timeout: 272 seconds]
sassamo has quit [Ping timeout: 245 seconds]
gasbakid has joined #ruby
zegerjan has joined #ruby
camilasan has joined #ruby
cj3kim has quit [Remote host closed the connection]
browndawg has joined #ruby
LekeFly has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
maoko has joined #ruby
<DefV> q/4
klaut has quit [Ping timeout: 260 seconds]
alexfreidah has joined #ruby
phansch has joined #ruby
stetho has quit [Quit: Textual IRC Client: www.textualapp.com. I don't know why I'm advertising something I paid for but couldn't think of anything funny.]
b00stfr31k has quit [Quit: leaving]
dogonthesun has joined #ruby
echevemaster has quit [Quit: Leaving]
alexfreidah has quit [Ping timeout: 252 seconds]
fusi0n has quit [Quit: .]
avril14th has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
mhenrixon has joined #ruby
camilasan has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Xzanron has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
Wolland has quit [Remote host closed the connection]
tylersmith has joined #ruby
relix has joined #ruby
dangerousdave has joined #ruby
mneorr has joined #ruby
apeiros has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago_ has quit [Remote host closed the connection]
samuel02 has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
claymore has joined #ruby
Xeago has joined #ruby
xjiujiu has joined #ruby
tylersmith has quit [Ping timeout: 272 seconds]
mneorr has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
mocfive has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 248 seconds]
mocfive has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
gja has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
ahmedelgabri has joined #ruby
coderhs has quit [Ping timeout: 246 seconds]
mocfive has quit [Ping timeout: 252 seconds]
ephemerian has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
brennanMKE has joined #ruby
mechanicles_ has joined #ruby
tskogberg has quit [Read error: Operation timed out]
timonv has joined #ruby
wallerdev has quit [Quit: wallerdev]
allen_on_c has joined #ruby
tskogberg has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
coder_neo has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
brennanMKE has quit [Ping timeout: 252 seconds]
maroloccio has joined #ruby
jhaals has joined #ruby
samuel02 has joined #ruby
bhaak has joined #ruby
[_aeris_] is now known as _aeris_
blaxter_ has joined #ruby
Xeago has joined #ruby
zegerjan has quit [Quit: WeeChat 0.4.2]
rootshift has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
freerobby has joined #ruby
bashdy has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
waxjar has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xjiujiu has joined #ruby
waxjar has joined #ruby
e62 has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
senayar_ has joined #ruby
michael_mbp has quit [Excess Flood]
Xeago has quit [Remote host closed the connection]
michael_mbp has joined #ruby
nomenkun has joined #ruby
Xeago has joined #ruby
ctp has quit [Quit: Leaving...]
Xeago has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Seich has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
e62 has quit [Ping timeout: 272 seconds]
senayar has quit [Ping timeout: 248 seconds]
drim has quit [Read error: Connection reset by peer]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
drim has joined #ruby
Seich has quit [Ping timeout: 245 seconds]
olivier_bK has joined #ruby
m00nlight_ has quit [Quit: Konversation terminated!]
Xeago has quit [Ping timeout: 260 seconds]
kiri has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
Astralum has joined #ruby
thedonvaughn has quit [Read error: Operation timed out]
thedonvaughn has joined #ruby
kiri has joined #ruby
camilasan has joined #ruby
DaniG2k has joined #ruby
roolo has joined #ruby
Hanmac has joined #ruby
leo-the-manic has quit [Ping timeout: 246 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
maoko has joined #ruby
LekeFly has joined #ruby
Hanmac1 has quit [Ping timeout: 248 seconds]
gja has joined #ruby
decoponio has joined #ruby
DaniG2k has quit [Ping timeout: 245 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
drumusician has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
rdark has joined #ruby
xjiujiu has joined #ruby
nvrch has joined #ruby
h_kon has quit [Remote host closed the connection]
dagobah has joined #ruby
<LekeFly> https://gist.github.com/LekeFly/3b8b21a0dfc7efed7c3b this was working 2 days ago
<LekeFly> Now suddenly it doesn't :s
workmad3 has joined #ruby
<tobiasvl> dun dun DUNNNN
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
felixjet_ has quit [Read error: Connection reset by peer]
TMM has joined #ruby
Deejay_ has joined #ruby
jglauche has joined #ruby
<jglauche> hey, I'm using a lot of default variables like this:
<jglauche> foo = args[:foo] || 3
<jglauche> the problem is, that doesn't work with boolean operations
sassamo has joined #ruby
Deejay_ has quit [Client Quit]
<jglauche> is there a good and simple way to make an "kinda or" of nil which does not trigger on false?
snyp has joined #ruby
<tobiasvl> foo = (args[:foo].nil? : 3 ? args[:foo])
<tobiasvl> not sure what you mean by "kinda or" of nil
<tobiasvl> oh hang on i swapped the ternary operators
<LekeFly> Does any one got a clue what could be wrong?
<tobiasvl> foo = (args[:foo].nil? ? 3 : args[:foo])
<tobiasvl> LekeFly: no, what's wrong? you can't find your gem any more? is it in path? did your path change since yesterday? etc etc
<shevy> LekeFly do "gem list" if it can be found
<snyp> rbenv shows quite a few ruby versions. i want the stable 2.0.0 version. which is it? 2.0.0-pXYZ or 2.0.0-p0 ?
relix has joined #ruby
<LekeFly> tobiasvl the only think i have done was to install compass
<shevy> snyp p0 should indicate the first version, depends on what you mean with "stable"
shime has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
<snyp> shevy, 2.1.0 has no such pXYZ suffix. Should i use that then?
<tobiasvl> LekeFly: ok, no idea what that is but i guess it's a gem
<LekeFly> i'll try with gem install foundation again :p
<LekeFly> 'gem install foundation'
<shevy> snyp I would use 2.1.0 yeah. 2.1.0 is odd-numbering 2.1 so it should indicate a version that might change significantly, such as 1.9.x was too
DrCode has quit [Remote host closed the connection]
<shevy> snyp or simply use the highest p version of 2.0.0
<LekeFly> that worked
<LekeFly> Yay
<LekeFly> Thanks
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<snyp> i see. didn't know that. i will use 2.1.0 then. thanks
sassamo has quit [Ping timeout: 272 seconds]
xjiujiu has joined #ruby
mneorr has quit [Read error: Operation timed out]
<jglauche> tobiasvl: yes, thats possible, but ugly
Xeago has joined #ruby
<jglauche> I better put it in two rows for better readability
dogonthesun has quit [Quit: Computer has gone to sleep.]
aagdbl has joined #ruby
<shevy> hehe
rezzack has quit [Quit: Leaving.]
<tobiasvl> hehe, what? a ternary over two rows?
<shevy> it's ugly!
<shevy> tobiasvl why do you show ugly code!
<tobiasvl> :)
aagdbl has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
* jglauche cares about fast readability more
<shevy> jglauche was your initial variant beautiful? :P
<jglauche> no.
zenNamaste has quit [Remote host closed the connection]
snyp has quit [Quit: K Bye]
<shevy> fast readability I like
<shevy> the less processing my brain has to do the better
<shevy> when I look at complex regexes, the fast processing of my brain grinds down to snail speed :(
<jglauche> oh, luckily I program 3d models and not a parser .)
Bira has joined #ruby
heftig has joined #ruby
cj3kim has joined #ruby
Deejay_ has joined #ruby
Hanmac1 has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeeraw has joined #ruby
blaxter_ is now known as blaxter
nhhagen has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
cj3kim has quit [Ping timeout: 245 seconds]
OdNairy has joined #ruby
tt1187 has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
brennanMKE has joined #ruby
xjiujiu has joined #ruby
hiall has joined #ruby
Xeago has quit [Remote host closed the connection]
Zai00 has joined #ruby
g0bl1n has joined #ruby
<shevy> hmm... hash = { 'program_name' => 'htop' } vs hash = { :program_name => 'htop' }
Xeago has joined #ruby
Zai00 has quit [Client Quit]
krz has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
braincrash has joined #ruby
e62 has joined #ruby
cbetta_afk is now known as cbetta
brennanMKE has quit [Ping timeout: 252 seconds]
krz has joined #ruby
camilasan has joined #ruby
e62 has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
Bira has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
freerobby has joined #ruby
xjiujiu has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ctp has joined #ruby
clevermatt has joined #ruby
alexherbo2 has joined #ruby
<jglauche> I like symbols
freerobby has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
ahawkins has joined #ruby
<shevy> hmm
<shevy> I think symbols are more annoying to define in yaml files
<shevy> which is what my dataset is loaded from initially
diegoviola has quit [Quit: WeeChat 0.4.2]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
<RubyPanther> for some reason my ruby is stuck, and when I try to install native gems, it tries to re-build cairo. Even though cairo isn't a dep for what I'm installing
Seich has joined #ruby
<RubyPanther> and not just once, it starts like a dozen processes trying to install the same thing!
nhhagen has quit [Remote host closed the connection]
<shevy> cool
<RubyPanther> yeah, that's what I thought
<shevy> :D
h_kon has joined #ruby
<shevy> why does it want to build cairo and more importantly, what exactly - rcairo?
karupanerura is now known as zz_karupanerura
<RubyPanther> cairo-1.12.8 which I have installed already
gja has quit [Quit: This computer has gone to sleep]
ferr has joined #ruby
coder_neo has joined #ruby
<RubyPanther> but the rebuild fails
nomenkun has quit [Ping timeout: 272 seconds]
<shevy> hmmmm
<shevy> I have cairo 1.12.16 installed
nhhagen has joined #ruby
aagdbl has joined #ruby
<RubyPanther> even just running irb... it tries to compile cairo
Seich has quit [Ping timeout: 245 seconds]
aaronmcadam has joined #ruby
nari has quit [Ping timeout: 276 seconds]
gja has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
<shevy> lol
<shevy> that is awesome though
<shevy> as if you'd have a virus!
<RubyPanther> yeah, it is like that. or a poltergeist
tkuchiki has quit [Remote host closed the connection]
sec^nd has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
allen_on_c has quit [Remote host closed the connection]
allen_on_c has joined #ruby
allen_on_c has quit [Client Quit]
alexfreidah has joined #ruby
mklappstuhl has joined #ruby
chavezgu has joined #ruby
<RubyPanther> looks like I had a cairo extension with a later date than the gem
zeeraw has joined #ruby
_bart has quit []
chavezgu has left #ruby ["WeeChat 0.4.2"]
tkuchiki has quit [Ping timeout: 245 seconds]
<RubyPanther> I rm -rf 'd them both and irb starts again
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<shevy> lol
xjiujiu has joined #ruby
m00nlight has joined #ruby
francisfish has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
alexfreidah has quit [Ping timeout: 252 seconds]
nhhagen has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
mojjojo has joined #ruby
davidhq_ has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
davidhq has joined #ruby
Bira has joined #ruby
marr has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
BorjaGVO has joined #ruby
kizzx2 has joined #ruby
mengu has quit [Remote host closed the connection]
sassamo has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 265 seconds]
<BorjaGVO> Hello! How can I get info about a method in Ruby? For example, if I want to use the method "string".lines and I want info about what that method does, where anw can I get that information?
Bira has quit [Ping timeout: 272 seconds]
<apeiros> BorjaGVO: in your bash/console: ri String#lines
<apeiros> BorjaGVO: alternatively online - rdoc.info and ruby-doc.org
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
sassamo has quit [Ping timeout: 265 seconds]
<BorjaGVO> apeiros: great! thankyou
bashdy has quit [Ping timeout: 252 seconds]
h_kon has quit [Remote host closed the connection]
<workmad3> BorjaGVO: or install pry and pry-doc
<apeiros> oooh, of course. why did I omit that?
<workmad3> BorjaGVO: and then I think you can do '? String#lines' in a pry console to look it up
<apeiros> not "or". do!
<workmad3> :)
senayar_ has quit [Remote host closed the connection]
<apeiros> I still have to set up my rvm to automatically install those by default (and automatically run `rvm docs generate`)
nomenkun has joined #ruby
bashdy has joined #ruby
kitak has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
<BorjaGVO> thanks guys
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar_ has joined #ruby
sec^nd has joined #ruby
<Takumo> hmm, if I have an array of OpenStructs , and a hash , could I match the structs against the hash
<Takumo> i.e. structs.each do |s| s.each do |property| check_property_matches_hash if hash.keys.include?(property)
tyl has joined #ruby
cj3kim has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
gja has joined #ruby
xjiujiu has joined #ruby
Thanatermesis has joined #ruby
gja has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
ferr has quit [Ping timeout: 272 seconds]
cj3kim has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
mojjojo has joined #ruby
Jdubs has quit [Remote host closed the connection]
<yo61> So, custom facts are only accessibly to the root user?
coder_neo has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
mojjojo has quit [Client Quit]
vlad_starkov has joined #ruby
_5kg has quit [Ping timeout: 272 seconds]
falood has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 248 seconds]
falood has joined #ruby
mojjojo has joined #ruby
ewnd9_ has joined #ruby
nhhagen has joined #ruby
falood has quit [Remote host closed the connection]
agjacome has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomenkun has quit [Ping timeout: 252 seconds]
Asher1 has joined #ruby
danijoo_ has joined #ruby
_5kg has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
weeems has joined #ruby
<ayaz> yo61: Did you mean to ask that on #puppet or #mcollective?
weems has quit [Read error: Connection reset by peer]
mojjojo has quit [Read error: Connection reset by peer]
mojjojo_ has joined #ruby
TheNumb has quit [Read error: Connection reset by peer]
Asher has quit [Read error: Connection reset by peer]
dangerousdave has quit [Read error: Connection reset by peer]
justinxreese has quit [Read error: Connection reset by peer]
TheNumb has joined #ruby
justinxreese has joined #ruby
<yo61> Oops - the former
<yo61> *blush*
freerobby has joined #ruby
dangerousdave has joined #ruby
danijoo has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
brandon_ has quit [Ping timeout: 246 seconds]
brandon has joined #ruby
tziOm has quit [Ping timeout: 246 seconds]
brandon is now known as Guest71680
tziOm has joined #ruby
karl___ has quit [Ping timeout: 246 seconds]
<ayaz> yo61: :) But to answer your question, yes.
browndawg has quit [Quit: Leaving.]
karl___ has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Xeago_ has joined #ruby
ferr has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
jtdowney has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nhhagen has joined #ruby
karl___ has quit [Ping timeout: 246 seconds]
<yo61> thx (am discussing in #puppet)
skattyadz has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
karl___ has joined #ruby
skattyadz has left #ruby [#ruby]
Xeago_ has quit [Ping timeout: 260 seconds]
Seich has joined #ruby
BorjaGVO has quit [Quit: Page closed]
Speed has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
jlebrech has joined #ruby
mojjojo_ has quit [Quit: mojjojo_]
Seich has quit [Ping timeout: 265 seconds]
mircoblitz has joined #ruby
<mircoblitz> Hi, can someone please give me some hints on ruby. I find that I don't understand the documentation at all.
sergicles has joined #ruby
<hoelzro> mircoblitz: which parts?
<tobiasvl> mircoblitz: well that's vague. what do you need hints about?
mojjojo has joined #ruby
eka has joined #ruby
mengu has joined #ruby
<jokke> hi, i'm having some trouble with sidekiq and probably rvm... and maybe bundle. i don't know.. Anyway i'm using a sidekiq worker to trigger a rake task in a "subproject". This fails because of unmet dependencies. 'bundle check' however reports that deps are satisfied.
senayar_ has quit []
<mircoblitz> Problem. Made a small script using JSON.parse and ap (awsomeprint), wich works nice. I now want to refactor that into a class, but I can't get JSON or ap to work insode the class. I think I need to link them into the class, but I don't find out how. Its all so cryptic and these shortening drive me crazy
w4pm has joined #ruby
nomenkun has joined #ruby
h_kon has joined #ruby
skattyadz_ has joined #ruby
skattyadz_ has left #ruby [#ruby]
<Hanmac1> mircoblitz: show us your code you already have with a gist
senayar has joined #ruby
Hanmac1 is now known as Hanmac
<mircoblitz> dont use gist
<mircoblitz> i make a patebin
<jokke> pastebin sucks
<popl> patébin?
<jokke> don't use it
<jokke> !pastebin
<jokke> .. guess not
derebos has joined #ruby
<workmad3> jokke: that's helpa in #rubyonrails
<workmad3> helpa isn't in here :(
<jokke> ok
<workmad3> jokke: which is a shame, because this is a perfect time for !gist-usage :)
<mircoblitz> MY problem starts on line 31
Jdubs has joined #ruby
browndawg has joined #ruby
<jokke> yeah well
<jokke> any ideas on what exactly my problem might be?
<jokke> i'll just paste some code. maybe that helps.
w4pm has quit [Ping timeout: 252 seconds]
bamdad has joined #ruby
<mircoblitz> I am a ruby nood. And although I code in C++, Javascript, Php and some other script languages. I don't get used to ruby. But for capistrano i need to do it :-(
mojjojo has quit [Quit: mojjojo]
mechanicles_ has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
<popl> You're a noodle?
<mircoblitz> noob
<popl> That sucks. I like noodles.
<mircoblitz> ruby noob to be precise
<mircoblitz> rofl
<Hanmac> mircoblitz: why do you want JSON::Ext::Parser.parse when JSON.parse like in line 35 would work?
riku has quit [Ping timeout: 252 seconds]
<workmad3> mircoblitz: why not just use the jira-ruby gem? https://github.com/sumoheavy/jira-ruby
Garo_ has quit [Ping timeout: 276 seconds]
<mircoblitz> JSON.parse does not work! the lines above are for debugging
Jamo has quit [Ping timeout: 246 seconds]
nw has quit [Ping timeout: 252 seconds]
<mircoblitz> because its broken with jira api 6
<jokke> so line 18 outputs "The Gemfile's dependencies are satisfied"
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
shaman42 has quit [Ping timeout: 276 seconds]
mojjojo has joined #ruby
xjiujiu has joined #ruby
<mircoblitz> and with ruby 2.xxx jira-ruby does not work and it does not support all of the api i need later
<mircoblitz> these are just my first steps
<jokke> but line 24 fails with "These tasks require the following gems: chromatic, mustache, net-sftp, ruby-progressbar. Please use gem install to get those gems."
Jdubs has quit [Ping timeout: 248 seconds]
<jokke> the Gemfile however contains just those gems
<jokke> and the call works on the console
<jokke> which is why i think this is an rvm problem
<mircoblitz> Errormessage when i use JSON.parse : `block in read': uninitialized constant #<Class:0x007fa43212b618>::SpwJiraApi::JSON (NameError)
gijsje has joined #ruby
MrZYX|off is now known as MrZYX
sensen has quit [Ping timeout: 252 seconds]
<workmad3> mircoblitz: did you do 'require "json" ' anywhere in your file?
<Hanmac> i think he forgot
<mircoblitz> oops
<jokke> :P
<mircoblitz> ok another thing
<jokke> noodle :)
<mircoblitz> yes a big one :-)
<jokke> a maccaroni!
nhhagen has quit [Remote host closed the connection]
mechanicles_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
VeinMelted has joined #ruby
mechanicles_ has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 260 seconds]
zeeraw has joined #ruby
<mircoblitz> what the heck. I missed just the require. Damn thats kind of dumb. But as I said, I'm a ruby noob ;-)
<mircoblitz> thank you very much for your help.
chrisseaton has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<popl> jokke: a feather in his cap
<workmad3> mircoblitz: it's friday and people are just messing around ;)
<mircoblitz> wine with me :-)
xjiujiu has joined #ruby
coderhs has joined #ruby
<workmad3> mircoblitz: I'm more of a cider man myself...
<popl> Is it really because it's Friday?
riku has joined #ruby
<popl> I have to work later.
<mircoblitz> and fine with me. Its Firrday, lety party
<popl> I like beer.
mojjojo has quit [Quit: mojjojo]
<mircoblitz> As ruby devs. Can you give me your perspective, what makes ruby good?
ocline` has joined #ruby
<mircoblitz> Take a beer, mor wine for me
<workmad3> d'oh
<popl> bleh
<workmad3> really need to stop copying the link directly from google
wdiechmann has quit [Quit: wdiechmann]
nvrch has quit [Quit: nvrch]
sassamo has joined #ruby
<workmad3> mircoblitz: it's fun, the community is nice, the gem ecosystem can be pretty damn awesome at times, and there's an acceptance that there are many ways to do things and they can all be good
<jokke> mircoblitz: it lets you focus on the relevant parts of coding without getting in your way with complex syntax or boilerplate code. Since i've coded ruby i feel that i can be much more creative when coding and it encourages you to write beautiful code.
<popl> what community is that?
<mircoblitz> I have a real hard time to read the code. does it get better :-)
<workmad3> mircoblitz: yes
<workmad3> mircoblitz: think about how hard something like C++ was to grok initially, but I bet that's reasonably easy to read now ;)
ocline has quit [Ping timeout: 246 seconds]
<workmad3> mircoblitz: it's just a case of familiarity
<jokke> yup
Garo_ has joined #ruby
<jokke> but of course you can write very obfuscated code in ruby too.. As in any language
* Hanmac used C++ in his ruby stuff for evil purpose ;P
shaman42 has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
Jamo has joined #ruby
nw has joined #ruby
justsee has quit [Ping timeout: 265 seconds]
LekeFly has joined #ruby
<mircoblitz> I like long written code, even in c things like ap p puts and over all << disturb me much.
mneorr has joined #ruby
<mircoblitz> << is a fucking bit opperator, not a string concat :-)
<workmad3> mircoblitz: it's string concat in C++ stdlib ;)
nhhagen has joined #ruby
<workmad3> mircoblitz: and ruby generalises it to a 'shift operation'
varfoo has joined #ruby
<mircoblitz> Ahh that makes sense
<workmad3> mircoblitz: so 3 << 2 is a bitshift, some_array << new_value is some_array.shift(new_value)
nhhagen has quit [Remote host closed the connection]
<mircoblitz> pheew ok i see.
tvw has joined #ruby
<mircoblitz> Do you kno a good starting point to learn all this but not starting at "A constant is a variable that does not change"
m00nlight_ has joined #ruby
jtdowney has joined #ruby
m00nlight has quit [Ping timeout: 248 seconds]
mojjojo has joined #ruby
<workmad3> mircoblitz: not off the top of my head, I'm afraid... I normally suggest that people who are familiar with coding go through some of them anyway, just skim them rather than read in-depth
<workmad3> get a familiarity from them about how ruby works
postmodern has quit [Quit: Leaving]
mneorr has quit [Ping timeout: 272 seconds]
<mircoblitz> I see
Hanmac1 has joined #ruby
<mircoblitz> thanks for the push
<mircoblitz> in the right direction
sensen has joined #ruby
<workmad3> mircoblitz: some of it, like thinking about << as a shift operation, I'm not sure I've seen written down anywhere... it's something that just became obvious from explaining it to others :)
<Hanmac1> same as "*" is used for different stuff ... like 3 * 2 == 6; "3" * 2 == "333"; [1,2,3] * 2 == [1,2,3,1,2,3]; [1,2,3] * "2" == "12223"
<workmad3> Hanmac1: or | for set union on arrays :)
<mircoblitz> I think thats the real hard part. In every tut i find on the net. blahh is the same then blubb is the same than crunch ..... and so on
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
lkba has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
xjiujiu has joined #ruby
mojjojo has quit [Client Quit]
<workmad3> Hanmac1: I've only just realised (from reading an oldish discrete maths book) the rationale behind & and | as intersection and union on arrays :)
Hanmac1 is now known as Hanmac
clevermatt has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 272 seconds]
<Hanmac> or https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/ in general might be useful for ruby beginner because it has wisdom inside like "Everything is an Object"
<mircoblitz> Not yet. Took the one from php to ruby. But theres a lot i need to wrap my head around to realy get it.
<mircoblitz> ut as its always, i have now an urgent task, after that I need to get more fammiliar with ruby
cj3kim has joined #ruby
<prophile> no "to ruby from haskell"? :3
<mircoblitz> :-)
m00nlight_ is now known as m00nlight
riku has quit [Quit: ZNC - http://znc.sourceforge.net]
ewnd9_ has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
mhenrixon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tyl has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
riku has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
lorelei_ has joined #ruby
xjiujiu has joined #ruby
mojjojo has joined #ruby
clevermatt has joined #ruby
urbanslug has quit [Quit: leaving]
DaniG2k has joined #ruby
chrisseaton has quit []
zipper has joined #ruby
tyl has joined #ruby
vlad_starkov has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 248 seconds]
wdiechmann has joined #ruby
mojjojo has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
mojjojo has joined #ruby
vlad_starkov has joined #ruby
mikepack has joined #ruby
razibog has joined #ruby
coderhs has quit [Read error: Connection timed out]
freerobby has joined #ruby
Hanmac1 has joined #ruby
Macaveli has joined #ruby
nhhagen has joined #ruby
chrisseaton has joined #ruby
coderhs has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
sensen has quit [Quit: leaving]
mikepack has quit [Ping timeout: 245 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
mircoblitz has quit [Quit: mircoblitz]
xjiujiu has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
claymore has quit [Ping timeout: 248 seconds]
mklappst_ has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
ringaroses has joined #ruby
chrisseaton has quit []
mojjojo has quit [Quit: mojjojo]
danshultz has joined #ruby
var1 has joined #ruby
mojjojo has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
fella5s has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
Seich has joined #ruby
mojjojo has quit [Client Quit]
Hanmac has joined #ruby
mansi has quit [Remote host closed the connection]
mojjojo has joined #ruby
mehlah has quit [Quit: Leaving...]
<marwinism> I just tossed out ubuntu, and went over to Fedora 20 (Korora, it's fedora with closed sauce drivers) - anywho. I'm unable to install rbenv version 2.0.0-p247, even with the patch described on github here: https://github.com/sstephenson/ruby-build
Hanmac1 has quit [Ping timeout: 252 seconds]
clevermatt has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 260 seconds]
m00nlight has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Macaveli has joined #ruby
LadyRainicorn has joined #ruby
ndrei has joined #ruby
mehlah has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
m00nlight has joined #ruby
dukz has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
zeeraw has joined #ruby
<Hanmac> marwinism: what error did you got? what patch did you use and why did you use that patch?
clevermatt has joined #ruby
ringaroses has quit [Quit: Leaving]
webus has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
ringaroses has joined #ruby
<LadyRainicorn> Ugh, why is gem so slow? ;-;
LostMonk- has quit [Read error: Connection reset by peer]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
kristiandelay has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coda23 has joined #ruby
nhhagen has quit [Remote host closed the connection]
kristiandelay has quit [Ping timeout: 272 seconds]
<marwinism> Hanmac: because ruby-build page told me to use it (not working anyway) - error: http://pastebin.com/AZNLMRRF
aagdbl has quit [Quit: This computer has gone to sleep]
<marwinism> that's the one without the patch btw.
<Hanmac> marwinism: i want the content of /tmp/ruby-build.20140117130205.3572.log
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
habanany has joined #ruby
var1 has quit [Quit: Leaving]
bamdad has quit [Quit: bamdad]
clevermatt has quit [Remote host closed the connection]
bamdad has joined #ruby
sassamo has joined #ruby
nhhagen has joined #ruby
aagdbl has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
phinfonet has joined #ruby
<marwinism> Hanmac: http://pastebin.com/q3dKJbm3
sassamo has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
<marwinism> Hanmac: the patch is a workaround for the ossl_pkey_ec.c if i'm not mistaken
MrZYX is now known as MrZYX|off
claymore has joined #ruby
gja has joined #ruby
<Hanmac> hm yes, what did you get with the patch?
<Hanmac> PS: why do you not try ruby2.1 ?
<marwinism> We are developing with 2.0.0-p247, I did get p538 og whatever going, but it's an advantage to use the same version as the rest of the team ;) Hang on, i'll try the logs for the patch.
brennanMKE has joined #ruby
<LadyRainicorn> Why does your team not want to upgrade?
<Hanmac> pure lazyness
<Hanmac> or its a rails problem
<apeiros> my instinct tells me that Hanmac hasn't yet worked for a corporation
m00nlight_ has joined #ruby
<marwinism> I could run up a virtual machine with ubuntu, where it does work. But i'll keep on hacking
bamdad has quit [Quit: bamdad]
m00nlight has quit [Ping timeout: 272 seconds]
<Hanmac> i did, and in the last one we are used centos *ugh
<LadyRainicorn> Why would anyone want to do that, apeiros?
<apeiros> LadyRainicorn: money?
<LadyRainicorn> LIES.
ahmedelgabri has quit [Remote host closed the connection]
<apeiros> also while some decisions in corporations suck, the work experience as a whole doesn't have to
<apeiros> I enjoy work where I am, yet we still have an app on ruby 1.8.2 and rails 1.2.x (1.2.3 I think)
<LadyRainicorn> Ugh 15 minutes installing nokogiri and counting.
<Hanmac> ruby 1.8.2 oO ???
<LadyRainicorn> w t f
brennanMKE has quit [Ping timeout: 252 seconds]
<apeiros> ever heard of "don't touch a running system"? :)
<LadyRainicorn> Continuous integration!
<marwinism> "If it works, don't fix it!"
<Hanmac> ever heard of "dont ride a dead horse" ? ;P
<zumba_addict> sorry guys for the off topic question, what is that slang when our wives are not around and we do all their hardwork at home?
<LadyRainicorn> I want to ride a dead horse!
<marwinism> bahabahahaha, good one Hanmac.
<apeiros> Hanmac: ain't dead. as I said, it runs.
<LadyRainicorn> zumba_addict: huh?
<zumba_addict> hi LadyRainicorn
<marwinism> not dead, just overly ready for retirement
<LadyRainicorn> Hi
<apeiros> Hanmac: tell me, what value is in it, to upgrade the app? (hint: correct answer is "none")
<Hanmac> with my newest commits in my bindings some of them might not support ruby < 2.0 ;P
<LadyRainicorn> Vulnerabilities?
<zumba_addict> there was a slang that I heard about 7 years ago from my officemate and he said his wife is at work and he'll be staying home to take care of kids
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<apeiros> LadyRainicorn: not a concern/issue with this app
<zumba_addict> LadyRainicorn: my visual memory tells me that there is a word daddy in the slang
<apeiros> (read-only, internal-only)
<apeiros> and the read-only is enforced on the DB level
freerobby has joined #ruby
<marwinism> sounds about what our app is doing now. Read only, from a bunch of DB's (MSSQL, Access *puke*, ++ )
<marwinism> Big data sort of thingy
<LadyRainicorn> I suppose if you don't have to develop for it and everyone who can access it can run code on the machine anyway and the information it uses is unimportant.
aagdbl has quit [Quit: Leaving]
jan1337z has joined #ruby
nwertman has quit [Ping timeout: 246 seconds]
aagdbl has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
RaCx has joined #ruby
codebauss has joined #ruby
bashdy has quit [Read error: Connection reset by peer]
dreinull has joined #ruby
<dreinull> From a calendar I get Date and DateTime Strings and I want to easily check if they are #today. Is there an easier way than checking if it is this or that kind of class?
mojjojo has quit [Quit: mojjojo]
diegoviola has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
codebauss has left #ruby [#ruby]
<apeiros> dreinull: do you get Strings now or Date/DateTime?
dkamioka has joined #ruby
<dreinull> apeiros: String representations of either (json basically)
<apeiros> dreinull: well, Date/DateTime implies you have actual instances of that, so stating it that way is confusing…
<apeiros> and if you always have strings, there's no point in checking the class, right?
clevermatt has joined #ruby
clevermatt has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 246 seconds]
<dreinull> apeiros: you're right. Problem is that the key is called date or dateTime so in a way it is still true :S
mojjojo has joined #ruby
browndawg has quit [Quit: Leaving.]
razibog has quit [Quit: Leaving.]
popl has quit [Ping timeout: 252 seconds]
gijsje has quit []
<apeiros> json has no standardization for date/datetime, so you have to check with the json producer what their standardize on for any meaningful answer.
<apeiros> *they standardize on
Seich has joined #ruby
DaZ has quit [Ping timeout: 272 seconds]
<dreinull> apeiros: ok, thanks
g0bl1n has quit [Ping timeout: 248 seconds]
<Hanmac> you can try something like DateTime.parse(str) rescue Date.parse(str) but i dont know if that would help you
<apeiros> I would absolutely not use .parse
<apeiros> I was about to suggest to - if they only ever use one of two formats in those strings - use a regex to determine which one it is and extract the values in the same step.
<dreinull> apeiros: sounds good
Hamburglr has quit [Quit: Textual IRC Client: www.textualapp.com]
clevermatt has joined #ruby
Hamburglr has joined #ruby
araujo has joined #ruby
Seich has quit [Ping timeout: 245 seconds]
fedez77 has joined #ruby
doodlehaus has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
VeinMelted has quit [Ping timeout: 252 seconds]
clamstar has joined #ruby
mklappst_ has quit [Remote host closed the connection]
drumusician has joined #ruby
Bira has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
davidhq has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
canton7-mac has joined #ruby
ndrei has joined #ruby
colonolGron has joined #ruby
pranny has quit [Quit: Leaving.]
Jdubs has joined #ruby
nfk has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 245 seconds]
IceyEC has joined #ruby
funburn has quit [Quit: funburn]
Soda has joined #ruby
yalue has joined #ruby
yasushi has joined #ruby
mark_locklear has joined #ruby
Jdubs has quit [Ping timeout: 265 seconds]
nwertman has joined #ruby
mojjojo has quit [Quit: mojjojo]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexherbo2 has joined #ruby
mojjojo has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
ohwhoa has quit [Quit: woah!]
kurkale6ka has joined #ruby
kurkale6ka has left #ruby ["WeeChat 0.4.2"]
max96at has joined #ruby
SeySayux has quit [Ping timeout: 276 seconds]
pu22l3r has quit [Ping timeout: 246 seconds]
maycon has quit [Quit: Saindo]
ArchBeOS-work has joined #ruby
msx__ is now known as msx
coda23 has quit [Quit: Leaving]
SeySayux has joined #ruby
msx is now known as Guest93491
Guest93491 is now known as msx
msx has quit [Changing host]
msx has joined #ruby
kaldrenon has joined #ruby
bamdad has joined #ruby
sepp2k has joined #ruby
sassamo has joined #ruby
prc has quit [Quit: Leaving.]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
dziga has left #ruby [#ruby]
LekeFly has joined #ruby
mojjojo has quit [Quit: mojjojo]
gja has quit [Quit: This computer has gone to sleep]
colonolGron has quit [Quit: leaving]
ndrei has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
LekeFly_ has joined #ruby
LekeFly has quit [Read error: Operation timed out]
<dreinull> Dates are driving me crazy
sassamo has quit [Ping timeout: 248 seconds]
<apeiros> stop dating then. living solo is socially acceptable nowadays ;o)
mojjojo has quit [Client Quit]
ndrei has joined #ruby
<dreinull> I'm not in for simple solutions
rmorello has joined #ruby
cj3kim has joined #ruby
sski has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<dreinull> No wonder people pay money to get around Dates.
sec^nd has quit [Remote host closed the connection]
zigomir has joined #ruby
LekeFly_ has quit [Client Quit]
mklappstuhl has joined #ruby
sec^nd has joined #ruby
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
mojjojo has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
swerter has joined #ruby
cj3kim has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
brennanMKE has joined #ruby
Squarepy has joined #ruby
dfranciosi has joined #ruby
lfox has joined #ruby
m00nlight_ has quit [Ping timeout: 252 seconds]
h_kon has quit [Remote host closed the connection]
m00nlight_ has joined #ruby
swerter has quit [Client Quit]
mklappstuhl has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 265 seconds]
enebo has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
nwertman has quit [Ping timeout: 246 seconds]
ferr has quit [Ping timeout: 245 seconds]
derebos has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
gja has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
coder_neo has joined #ruby
coder_neo has quit [Remote host closed the connection]
bamdad has quit [Quit: bamdad]
freerobby has quit [Ping timeout: 272 seconds]
allaire has joined #ruby
Bira has quit [Remote host closed the connection]
hp_ has joined #ruby
hp_ is now known as Guest79784
fede_ has joined #ruby
gja has quit [Client Quit]
dangerousdave has joined #ruby
<apeiros> dreinull: odd, normally people pay money to get dates…
breakingthings has joined #ruby
ewnd9 has joined #ruby
TMM has quit [Ping timeout: 272 seconds]
fedez77 has quit [Ping timeout: 245 seconds]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhaals has joined #ruby
soba has quit [Ping timeout: 252 seconds]
Seich has joined #ruby
rootshift has joined #ruby
ferr has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
chrisseaton has joined #ruby
fedesilva has joined #ruby
RaCx has joined #ruby
Seich has quit [Ping timeout: 252 seconds]
Bira has joined #ruby
<LadyRainicorn> apeiros: Really?
<apeiros> LadyRainicorn: never seen ads for any of all those dating websites?
<LadyRainicorn> I always thought that was abnormal.
<apeiros> less abnormal than paying to not get dates
claymore has quit [Ping timeout: 252 seconds]
IceColdM_ has joined #ruby
* Hanmac has NoScript + AdblockPlus + RequestPolicy ... i dont see any kind of Ads ;P
<apeiros> your tv has noscript? :)
kristiandelay has joined #ruby
<apeiros> but that's actually interesting - I don't think I've ever seen a dating-site ad on the internet
IceColdM_ has left #ruby [#ruby]
<apeiros> but tons of them in tv
claymore has joined #ruby
IceColdM_ has joined #ruby
dfcnvt has quit [Ping timeout: 272 seconds]
IceColdM_ has quit [Client Quit]
<DouweM> radio as well
IceColdMax has joined #ruby
tobago has joined #ruby
tobago has quit [Changing host]
tobago has joined #ruby
pranny has joined #ruby
Guest79784 has quit [Quit: Ex-Chat]
<DouweM> but I actually have seen dating-sites ads on the internet. before I installed adblock, obviously
Guest79784 has joined #ruby
<apeiros> I don't use ad-block. I accept that websites I want to use need money to work. if a website is obnoxious, I stop visiting it.
browndawg has joined #ruby
Haegin has left #ruby [#ruby]
<DouweM> yeah, I'm morally conflicted over it as well
fire has joined #ruby
<DouweM> but for now convenience wins
<DouweM> I disable it for sites I like though
<DouweM> as long as the advertising isn't obnoxious
ereslibre has quit [Ping timeout: 252 seconds]
nwertman has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aalmenar has quit [Ping timeout: 276 seconds]
yaymukund has joined #ruby
sambao21 has joined #ruby
pranny has quit [Ping timeout: 252 seconds]
Mekkis has quit [Quit: ZNC - http://znc.in]
clamstar has quit [Quit: Computer has gone to sleep.]
jerius has joined #ruby
jhaals has joined #ruby
jhaals has quit [Max SendQ exceeded]
Mekkis has joined #ruby
jhaals has joined #ruby
jerius has quit [Read error: Connection reset by peer]
jerius has joined #ruby
Guest79784 has quit [Quit: Ex-Chat]
Guest79784 has joined #ruby
clamstar has joined #ruby
afhammad has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
TMM has joined #ruby
iamjarvo has joined #ruby
palachy has joined #ruby
ndrei has quit [Read error: Operation timed out]
nhhagen has quit [Remote host closed the connection]
<palachy> hello
<TheLarkInn> Good morning!
vlad_starkov has joined #ruby
xjiujiu has quit [Remote host closed the connection]
<palachy> here is night. I'm from China
cescalante is now known as ce_afk
<palachy> :)
<TheLarkInn> Oh. Ni hao ma!
dblessing has joined #ruby
<LadyRainicorn> Night people unite!
<jokke> hey
Guest79784 has quit [Ping timeout: 272 seconds]
<palachy> Great! you know chinese! 哈哈
araujo has quit [Remote host closed the connection]
Astralum has quit [Read error: Connection reset by peer]
bamdad has joined #ruby
<TheLarkInn> Bu ke qi
<jokke> anyone here have experience with ruby-git? I'm trying to set all branches to the status of the remote versions of them or if there is no local branch fetch the remote one. So i have the following code: https://paste.jreinert.com/wGCBeA/ruby
mneorr has joined #ruby
<jokke> which doesn't work however
Astralum has joined #ruby
<jokke> as in it doesn't update
<jokke> the local repo
e62 has joined #ruby
aspiers has joined #ruby
sailias has joined #ruby
<jokke> branch.checkout should probably be on top though
<jokke> but it still doesn't work
gr33n7007h has joined #ruby
<TheLarkInn> 不客气! palacy
<TheLarkInn> palachy
Astralum has quit [Read error: Connection reset by peer]
mansi has joined #ruby
ringaroses has quit [Ping timeout: 246 seconds]
Astralum has joined #ruby
Es0teric has joined #ruby
sassamo has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
samuel02 has quit []
Astralum has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
vxr74 has joined #ruby
IceColdMax has quit [Quit: Soiya!]
IceColdMax has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
tyl has joined #ruby
fire has quit [Quit: WeeChat 0.4.1]
doodlehaus has joined #ruby
palachy has quit [Quit: WeeChat 0.4.0]
phansch has quit [Quit: Leaving]
fire has joined #ruby
tyl has quit [Client Quit]
drumusician has quit [Read error: Connection reset by peer]
Targen has quit [Ping timeout: 252 seconds]
sassamo has quit [Ping timeout: 272 seconds]
drumusician has joined #ruby
mansi has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
mengu has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
blaxter has quit [Quit: foo]
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
mlpinit has joined #ruby
meatherly has joined #ruby
nwertman has quit [Ping timeout: 248 seconds]
sparrovv has joined #ruby
brennanMKE has joined #ruby
jfojtl has joined #ruby
g0bl1n has joined #ruby
bamdad has quit [Quit: bamdad]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krz has quit [Quit: WeeChat 0.4.2]
IceColdMax has quit [Quit: Soiya!]
meatherly has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
meatherly has joined #ruby
rippa has joined #ruby
aryaching has joined #ruby
ndrei has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jhaals has joined #ruby
sparrovv has quit [Remote host closed the connection]
rosssssssss has joined #ruby
sparrovv has joined #ruby
vlad_starkov has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Read error: No route to host]
acrussell has joined #ruby
mklappstuhl has joined #ruby
maoko has joined #ruby
mojjojo has quit [Quit: mojjojo]
fantazo has joined #ruby
Deejay_ has joined #ruby
bamdad has joined #ruby
_aeris_ has left #ruby ["Konversation terminated!"]
Megtastique has joined #ruby
brennanMKE has joined #ruby
jfojtl has left #ruby [#ruby]
Hanmac1 has joined #ruby
leo-the-manic has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 272 seconds]
sparrovv has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
Hanmac has joined #ruby
sparrovv has joined #ruby
LastWhisper has joined #ruby
OdNairy has quit [Client Quit]
acrussell has left #ruby [#ruby]
Seich has joined #ruby
afhammad has quit []
m00nlight_ has quit [Ping timeout: 252 seconds]
m00nlight__ has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
DaZ has joined #ruby
duggiefresh has joined #ruby
nifty has joined #ruby
freezey has joined #ruby
mary5030 has joined #ruby
tobago has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Squarepy has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Seich has quit [Ping timeout: 245 seconds]
tolstoi has joined #ruby
m8 has joined #ruby
cj3kim has joined #ruby
vxr74 has quit [Quit: peace]
sassamo has joined #ruby
v0n has joined #ruby
nwertman has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
enebo has quit [Quit: enebo]
relix has joined #ruby
Neomex has joined #ruby
freerobby has joined #ruby
tylersmith has joined #ruby
colonolGron has joined #ruby
zeeraw has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
francisfish has quit [Remote host closed the connection]
g3orge has joined #ruby
g3orge has quit [Client Quit]
chrisseaton has quit []
thesheff17 has joined #ruby
pranny has joined #ruby
Jdubs has joined #ruby
snath has quit [Read error: Operation timed out]
yasushi has quit [Remote host closed the connection]
pranny1 has joined #ruby
pranny has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
sparrovv has quit [Remote host closed the connection]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
kiri has quit [Quit: Leaving]
Jdubs has quit [Ping timeout: 272 seconds]
chrisseaton has joined #ruby
tvw has quit []
cyberarm has joined #ruby
yasushi has quit [Ping timeout: 260 seconds]
<shevy> dumdedum
coderhs has quit [Ping timeout: 248 seconds]
<shevy> when should a class be split up into a new class?
<shevy> after 1000 lines of code?
<workmad3> shevy: when it's doing more than one thing
larissa has joined #ruby
<shevy> ack
eka has joined #ruby
<workmad3> shevy: typically well before 1000 lines, I find ;)
Hobogrammer has quit [Ping timeout: 272 seconds]
SCommette has joined #ruby
mengu has quit []
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xzanron has quit [Read error: Connection reset by peer]
mansi has quit [Read error: Connection reset by peer]
Targen has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
lmickh has joined #ruby
andikr has quit [Remote host closed the connection]
havenwood has joined #ruby
mneorr has joined #ruby
poulson has joined #ruby
starkhalo has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dukz has joined #ruby
arturaz has joined #ruby
jhaals has joined #ruby
maroloccio has quit [Ping timeout: 248 seconds]
nhhagen has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
dfcnvt has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
krz has joined #ruby
lmickh_ has joined #ruby
bean__ has joined #ruby
heftig has quit [Quit: Quitting]
saarinen has joined #ruby
nhhagen has quit [Client Quit]
lmickh has quit [Ping timeout: 252 seconds]
gasbakid has joined #ruby
p8952 has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
nachtwandler has joined #ruby
mordocai has joined #ruby
apeiros has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
jprovazn is now known as jprovazn_afk
nachtwandler has quit [Quit: leaving]
cgore has joined #ruby
ahmedelgabri has joined #ruby
coderhs has joined #ruby
rayners has joined #ruby
dfcnvt has quit [Ping timeout: 272 seconds]
dfcnvt has joined #ruby
enebo has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
end_guy has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
Hanmac has joined #ruby
ereslibre has quit [Remote host closed the connection]
aalmenar has quit [Read error: Connection reset by peer]
killfill has joined #ruby
kate_r has joined #ruby
iamsean has quit [Quit: iamsean]
ereslibre has joined #ruby
aalmenar has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
killfill has quit [Client Quit]
avril14th has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emptymag00 has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
fedesilva has quit [Remote host closed the connection]
maroloccio has joined #ruby
krz has quit [Ping timeout: 245 seconds]
killfill has joined #ruby
nfisher has joined #ruby
bbloom has joined #ruby
pel_daniel has joined #ruby
ce_afk is now known as cescalante
krz has joined #ruby
fire has quit [Read error: Connection reset by peer]
fire has joined #ruby
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
Virtualize has joined #ruby
gja has joined #ruby
yaymukund has quit [Ping timeout: 245 seconds]
DaZ has quit [Quit: ZNC - http://znc.in]
LzrdKing has joined #ruby
<Takumo> Here's a question, I'm building an API client where the response objects are passed into classes inheriting from OpenStruct
Jdubs has joined #ruby
Jdubs has quit [Remote host closed the connection]
<LzrdKing> hi all, i am having a problem when i go to /users in redmine, which appears to be the only page affected. the error is at http://pastie.org/8642628, can someone help me out?
<Takumo> but if I have say a user object , and a user has posts, how can I make the posts be lazy-loaded?
sski has quit [Remote host closed the connection]
<Takumo> LzrdKing: ask #redming or #rubyonrails ;)
<LzrdKing> Takumo: thanks
sparrovv has joined #ruby
<Takumo> * #redmine
sski has joined #ruby
LzrdKing has left #ruby [#ruby]
deception has joined #ruby
sparrovv has quit [Remote host closed the connection]
DaZ has joined #ruby
senj has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
LekeFly has joined #ruby
diegoviola has joined #ruby
m00nlight__ has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Remote host closed the connection]
jaxxstorm has joined #ruby
krz has quit [Ping timeout: 265 seconds]
diegoviola has quit [Client Quit]
sski has quit [Ping timeout: 272 seconds]
yasushi has joined #ruby
krz has joined #ruby
<workmad3> Takumo: how to lazy load depends entirely on how you're loading the data, apart from the basic idea that your 'user.posts' method will do the loading if needed (e.g. with an @posts ||= load_posts or similar call)
<workmad3> Takumo: or, in other words, in order to lazy load, you need to write the method yourself, it's not handled by openstruct ;)
nifty has quit [Ping timeout: 248 seconds]
diegoviola has joined #ruby
mikepack has joined #ruby
vlad_starkov has joined #ruby
Seich has joined #ruby
m00nlight__ has joined #ruby
TMM has quit [Quit: Ex-Chat]
lethjakman has joined #ruby
Aserpent10 has joined #ruby
sparrovv has joined #ruby
freezey has quit [Remote host closed the connection]
<Aserpent10> Anybody know of any good websites for learning Ruby?
digital-ghost has joined #ruby
enebo has quit [Quit: enebo]
<Aserpent10> or advice for best way of learning Ruby?
danshultz has quit [Read error: Connection reset by peer]
ferr has quit [Quit: Lost terminal]
freerobby has quit [Quit: Leaving.]
gja has joined #ruby
danshultz has joined #ruby
<Aserpent10> Anybody???
Seich has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby
fedesilva has joined #ruby
zerun0 has joined #ruby
cj3kim has joined #ruby
ffranz has quit [Quit: Leaving]
<havenwood> Aserpent10: Some good resources listed here: http://www.ruby-lang.org/en/documentation/
<shevy> Aserpent10 do you already know at least one other programming language
Xeago has quit [Remote host closed the connection]
<shevy> Aserpent10, otherwise start here, it is very good -> http://pine.fm/LearnToProgram/?Chapter=00
terrellt has joined #ruby
<Aserpent10> HTML/CSS/JS
Xeago has joined #ruby
Lewix has joined #ruby
simao has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
<shevy> so basically no ;)
CaptainJet has joined #ruby
cj3kim has joined #ruby
geggam has joined #ruby
araujo has joined #ruby
simao has quit [Client Quit]
alexfreidah has joined #ruby
dblessing has left #ruby [#ruby]
Kruppe has quit [Quit: ZNC - http://znc.in]
<Aserpent10> lol cut me some slack I wanted to make sure I had a strong grasp of the basics first
Kruppe has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
DannyJ has joined #ruby
<DannyJ> hi all
joshu has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
freezey has joined #ruby
sassamo has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
sassamo has joined #ruby
lkba has joined #ruby
g0bl1n has quit [Read error: Operation timed out]
blandflakes has joined #ruby
alexfreidah has quit [Ping timeout: 245 seconds]
<DouweM> yo
saarinen has quit [Quit: saarinen]
<DannyJ> hey
AndChat| has quit [Read error: Connection reset by peer]
<DannyJ> so is Ruby a good language to start on pr python ?
<DannyJ> what is ruby used for?
<Takumo> DannyJ: what do you want to use it for? would be a better question
<DannyJ> well I'm not sure
<DannyJ> what are its purposes?
<Jamo> you can do "anything" with ruby
<Jamo> as well as with any other language...
joshu has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<DouweM> scripts and web apps mostly, can be used for iOS apps well. Python does scripts and web apps as well, but no iOS apps, and there's a lot of scientific libraries
<lewellyn> just as you can do anything in pure machine language
<DannyJ> ah
<havenwood> DannyJ: General purpose programming language. Web apps, super computers, fighter jet simulations, whatever.
<DannyJ> nice
<Jamo> I personally prefer ruby for almost everything
<DannyJ> is it easy to learn?
<DannyJ> I want so,ething with a easy learning curve
chomskiii has quit [Read error: Connection reset by peer]
<lewellyn> yeah. mobile apps and scripting languages don't tend to go together.
<DannyJ> I think the IRC app I'm using is made from RUby
<DannyJ> its nifty
<DannyJ> stable
<DannyJ> :)
chomskiii has joined #ruby
<DouweM> it's pretty easy to get started with ruby, but so it is with python. to fully understand the whole language is another thing
<lewellyn> especially on ios, since apple has this weird thing about intepreted code in the app store
<Jamo> Imo. ruby is easy to learn - syntax is much more flexible when compared to python
<DouweM> lewellyn: RubyMotion
<DannyJ> I do know that Minecraft is based on it
killfill has left #ruby [#ruby]
<DannyJ> My friend works at Google
<DouweM> both are fine languagues, but here we're obviously biased
<DannyJ> he said he coded some maps via RUby
<DannyJ> I forget..
<lewellyn> DouweM: i said tend :)
<DouweM> Minecraft is Java
<DannyJ> what part of Minecraft is part of Ruby?
<DannyJ> well he mtjioned something of it being Ruby too
<DannyJ> mentioned*
<DouweM> could be it's scriptable using Ruby, but the game is Java
<DannyJ> ah
cj3kim has quit [Remote host closed the connection]
<DouweM> lewellyn: right ;) but RubyMotion is compiled
<DannyJ> intersting
<havenwood> JRuby
<Takumo> workmad3: I know OpenStruct wouldn't handle that, but how would I pass a reference to the API client object or something to allow the resource to make the request?
<lewellyn> yes, which is not what i said. ;)
<Jamo> DannyJ: ^
<Jamo> some great resources to learn ruby
<DouweM> lewellyn: I thought you didn't know RubyMotion. You're definitely right on interpreted langages
sassamo has quit [Ping timeout: 245 seconds]
<lewellyn> DouweM: i was speaking in generalities since he's trying to figure out what he wants.
<DouweM> gotcha
Aserpent10 has left #ruby [#ruby]
* lewellyn is gently trying to suggest that maybe a scripting language might not be the best choice.
m00nlight__ has quit [Read error: Connection reset by peer]
<DannyJ> thanks
<DouweM> if you wanna build iOS apps, RubyMotion is a fine choice :P But yeah, for applications in general, be it mobile or desktop, scripting language is not the best choice
<lewellyn> it's a might. we don't know enough :)
<DouweM> web apps is fine obvs
<DouweM> so DannyJ, what do you want from the language?
<DannyJ> maybe make a app
<DannyJ> :)
<shevy> DannyJ both python and ruby should be good languages. if you would pick one, you could as well pick the other.
<DouweM> web or mobile or desktop?
bamdad has quit [Quit: bamdad]
<shevy> DannyJ there are more python users and python devs out there on the www
<DouweM> there are? if so, I've never found the smaller size of ruby to be a problem
roolo has quit [Remote host closed the connection]
<DouweM> so that's a bit of a non-argument
<Takumo> problem with python is versions, 2.0 → 3.0 is a big change that few are taking
freerobby has joined #ruby
<DannyJ> hm
joker___ has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
<DannyJ> I'm new to programming
<DannyJ> so im not sure
hornairs has joined #ruby
apeiros has joined #ruby
m00nlight__ has joined #ruby
<shevy> DannyJ start with php
<DouweM> nononono
<canton7-mac> no no no
<shevy> eventually you want to switch away from it
<DouweM> jesus
chrisseaton has quit []
<DouweM> what are you doing
<DouweM> noooo
<DannyJ> ok
ckinni has joined #ruby
<havenwood> Ruby is best. Crush the snake. PHP...
<DouweM> So. No PHP. Ruby is a fine language to start programming
<shevy> he needs to first go through hell ;)
<apeiros> shevy is a sadist
<DouweM> clearly
<shevy> you were using php too apeiros!!!
VTLob has joined #ruby
<canton7-mac> shevy, many people don't make it out. You woudn't wish that on him, would you?
<DouweM> lots of us were, including me
<havenwood> shevy: I came to Ruby after a month of PHP.
<shevy> he'll make it out
<shevy> or he'll break
<apeiros> shevy: yes, which is why I know better than recommending that as a programming primer
<DouweM> I don't want anyone to go through that ever again
mansi has quit [Read error: Connection reset by peer]
kevind has joined #ruby
<DouweM> ^^
zumba_addict has quit [Ping timeout: 252 seconds]
<shevy> DannyJ look they are all weaklings here :P
mansi has joined #ruby
<shevy> but hardened by their php experience
<apeiros> and I never used it because I thought it was good. I came from perl, which was (and still is) vastly superior to php.
mansi has quit [Read error: Connection reset by peer]
<DouweM> yeah DannyJ if you wanna be touch like shevy go with PHP
<workmad3> Takumo: you'd probably want to pass the connection in during initialize, or have some form of service locator that you can use to find or create a connection
<DouweM> *tough
zumba_addict has joined #ruby
<DannyJ> I'll do python or ruby I guess
<shevy> why doesn't anyone suggest perl!
mansi has joined #ruby
<shevy> DannyJ YES
<DannyJ> is ruby pre default with most OS"S ?
<shevy> YES
<havenwood> DannyJ: Yes.
<DannyJ> ok
<DannyJ> :)
<Takumo> any sane OS that is ;)
<shevy> WINDOWS
<workmad3> DannyJ: going with ruby as a first language means that you get to follow the nice 'Learn to Program' book by C. Pine ;)
krawchyk has joined #ruby
joshu has quit [Ping timeout: 248 seconds]
<Takumo> workmad3: if I passed it in during initialize wouldn't that copy the client object as a member of the created object. Although I'm not familiar with ruby's memory management
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Takumo> and weather or not it would pass a reference to the client
<Takumo> or could I pass a reference to the client?
<workmad3> Takumo: no, everything in ruby is pass by reference-value
<workmad3> Takumo: in that you pass a reference as a value (so re-assignments don't influence the original)
<canton7-mac> a fair number of things are immutable, so behave as though they're pass-by-value
<Takumo> sounds good
<Takumo> brb gotta clean the office
pzula has joined #ruby
mneorr has joined #ruby
joshu has joined #ruby
Cephalostrum has joined #ruby
senayar_ has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
i_s has joined #ruby
<shevy> DannyJ do you have ruby installed on your system?
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
meatherly has joined #ruby
deception is now known as deception_away
<shevy> DannyJ let's teach you interactively
i_s has quit [Read error: Connection reset by peer]
bamdad has joined #ruby
i_s has joined #ruby
rayners has quit [Remote host closed the connection]
hornairs has quit [Read error: Connection reset by peer]
rayners has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
DannyJ has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rubyracer has joined #ruby
DannyJ has joined #ruby
joshu has quit [Ping timeout: 246 seconds]
meatherly has quit [Read error: Connection reset by peer]
<workmad3> Takumo: they make you clean the office? :(
meatherly has joined #ruby
<DannyJ> I'll do Python first
triptec has quit [Quit: leaving]
<workmad3> DannyJ: :(
<workmad3> DannyJ: #python isn't as nice as us
momomomomo has joined #ruby
<DannyJ> thats true
<DannyJ> but Pyton is easier
<DannyJ> :P
<workmad3> DannyJ: I disagree ;)
<shevy> lol
mojjojo has joined #ruby
<shevy> DannyJ you have to REGISTER before you can join #python - look at this kind of philosophy! :(
<workmad3> shevy: technically you have to register before you can join the official ruby channel...
<shevy> you must be a GOOD NETIZEN before you can SPEAK
<DannyJ> oh
<angusiguess> The best language is the one you come to enjoy! Program in what makes your <3 smile.
<DannyJ> thats true
maletor has joined #ruby
aspires has joined #ruby
<shevy> workmad3 #ruby is the only channel that exists
<workmad3> shevy: #ruby-lang
<shevy> workmad3 you mean #ruby-crossdressers ?
yasushi has quit [Remote host closed the connection]
mocfive has joined #ruby
<shevy> DannyJ don't go to #ruby-lang YOU WILL BE MUTE
<workmad3> shevy: I didn't know #ruby-crossdressers existed... I must join that channel!
<shevy> they fled to #ruby-lang
yasushi has joined #ruby
<workmad3> hehe
<shevy> actually I think there are more people on #python-unregistered or whatever was the name than there are people here on #ruby :(
<DannyJ> ok
<shevy> DannyJ you wanna know what will sway your opinion in favour of ruby?
Cephalostrum has quit [Remote host closed the connection]
<DannyJ> sure
<DannyJ> I'm new her
<DannyJ> ehere
tylersmith has quit [Remote host closed the connection]
<shevy> DannyJ read this http://www.artima.com/intv/rubyP.html it's an old interview but matz is 100% right
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
<workmad3> DannyJ: why ruby? MINASWAN
Cephalostrum has joined #ruby
mojjojo has quit [Client Quit]
<DannyJ> ok
<DannyJ> :P
<shevy> DannyJ that interview convinced me to go with ruby when I left php. I had a choice between python and ruby, php is just an awful thing. it's not really a language at all
<DannyJ> It dosent matter what language you start with you just need to get really good with one language first.
<DannyJ> friend at Gogole said that ^'
fedesilva has quit [Remote host closed the connection]
<DannyJ> in a text :p
<DannyJ> I asked him thats better
<workmad3> DannyJ: yes and no :)
<DannyJ> whats*
<shevy> yeah
<DannyJ> ok
<DannyJ> anyhow I'll try ruby I guess ..
<angusiguess> DannyJ: That's pretty good advice. Asking what language to use to write programs is like asking what pencil to use to write books.
<shevy> but an awful language will give you more obstacles
<DannyJ> I mean the python guys are rude
<shevy> so don't pick php for the rest of your life :P
<DannyJ> right..
<angusiguess> People get good at writing books by writing them!
<DannyJ> I mean Ruby is a easy way to get into iOS app dev right?
<shevy> DannyJ python is a snake, what else do you expect! didn't you watch the junglebook? ;)
achru has quit [Remote host closed the connection]
<angusiguess> Try some stuff out and see how it makes you feel.
<workmad3> DannyJ: first language can affect how you think about coding
<workmad3> DannyJ: and can affect what habits you pick up
<havenwood> DannyJ: Also they'll never take pull requests. They pride themselves on never moving. Nicer to be part of the Ruby community imho.
<DannyJ> I just want something easy
<shevy> DannyJ well "easy" ... you have to know some things before you can productive really
<DannyJ> I took grammar in HS
<DannyJ> erm
<DannyJ> java
<DannyJ> It made me cry
<shevy> java is awful too
<workmad3> DannyJ: it's possible to get past that eventually, but it can be difficult
mojjojo has joined #ruby
<angusiguess> Scheme is pretty fun.
achru has joined #ruby
<shevy> but it does not fit into the scripting languages
yasushi has quit [Ping timeout: 252 seconds]
<DannyJ> well
drumusician has quit [Ping timeout: 248 seconds]
<DannyJ> for a retart
<DannyJ> Ruby shall do ?
<shevy> wat
<angusiguess> Ruby is a good start.
<shevy> hehe
<shevy> Ruby shall do well.
Cephalostrum has quit [Read error: Connection reset by peer]
<DannyJ> friend said if I want to do iOS apps
<DannyJ> stick with it
<DannyJ> Rub ythat is
<DannyJ> Ruby*
<shevy> no idea, I can't work for apple
Cephalostrum has joined #ruby
aryaching has quit []
<shevy> but ruby is general purpose really
m00nlight has joined #ruby
m00nlight__ has quit [Ping timeout: 245 seconds]
<DannyJ> ah
<DannyJ> I'll do ruby
<workmad3> DannyJ: well, if you want to do iOS stuff, you should really grok objective-C, but ruby-motion is a step along the way I guess :)
<DannyJ> again I'm new to programming
<DannyJ> so im not sure
<DannyJ> :(
<workmad3> DannyJ: and I suspect you'll pick up objective-C more easily after some ruby anyway :)
<DannyJ> I mean Ruby is easy right?
<workmad3> I think so
* Hanmac1 does not trust ruby motion because its closed source
<angusiguess> DannyJ: Programming is hard, but ruby is approachable.
<DannyJ> ok
<DannyJ> Ruby will do
<DannyJ> :)
<DannyJ> I agree
Spami__ has joined #ruby
<DannyJ> ALL THE python channels i've been i have been mean
<DannyJ> they never respond
<DannyJ> and ignore my questions
<workmad3> DannyJ: the thing you'll be learning is how to think in a certain way
soulcake has quit [Read error: Connection reset by peer]
<workmad3> DannyJ: which will be guided by the language
aryaching has joined #ruby
<DannyJ> Are the Python guys that rude?
blackmesa has quit [Ping timeout: 240 seconds]
<shevy> DannyJ "easy" is really a bad term. I dont think there are really many "easy" languages
wdiechmann has quit [Quit: wdiechmann]
soulcake has joined #ruby
<shevy> there are a lot of features available in ruby that you won't find in many other languages. blocks for instance
<shevy> DannyJ they are not really fun people
<shevy> when you have a nick called "python", you can not join #python :(
<workmad3> DannyJ: I find the python community quite a bit more insular than the ruby community, and they're not very newcomer friendly (especially for learners or less-able newcomers) IMO
achru has quit [Ping timeout: 252 seconds]
dkamioka has quit [Remote host closed the connection]
saarinen has joined #ruby
<shevy> DannyJ look at this: http://bash.org/?400459
<workmad3> but it has been about 4-5 years since I was in #python :)
<DannyJ> agreed
<DannyJ> They are very rude
<DannyJ> they troll too much
<DannyJ> They called people idiots
<DannyJ> seriously
<DannyJ> I understand off topicness
<DannyJ> but really? trolling?
<shevy> wow
<shevy> that was fast
<shevy> how can you type so quickly??
<workmad3> shevy: connection lag? :)
<DannyJ> workmad3: will do
<shevy> hmmmmmm
<DannyJ> I'll keep out
<angusiguess> It's worth mentioning that the more work you put into a problem you're working on or a question you're asking, the nicer _any_ programmer will be.
<shevy> could be :-)
<shevy> it was like in one second...
<DannyJ> I agree
<DannyJ> Why do you have to register ?
<DannyJ> thats kind of stupid ..
<DannyJ> its a programming channel
<DannyJ> im not on IRC all day
<workmad3> DannyJ: troll-prevention
<DannyJ> workmad3: well just ban the ip's
<shevy> I can register and then troll!
<DannyJ> done
<DannyJ> I cant get a cloak either
<workmad3> DannyJ: IP bans are kinda pointless
<DannyJ> the staff are rude
<DannyJ> they are?
<DannyJ> Most don't know hot oget a new one
<DannyJ> to get*
hornairs has joined #ruby
<workmad3> DannyJ: sure, IP addresses are recycled
<DannyJ> Except technically experienced people
<DannyJ> hmm
<DannyJ> agreed
<shevy> you can google this up easily DannyJ :P
<shevy> eh it is just the amount of time you invest into a topic
<workmad3> DannyJ: and spam bots can cycle them pretty easily ;)
<workmad3> shevy: sure, and then your account can be banned
<shevy> I call myself technically experienced but I am also damn lazy, if my IP is banned, I am done because I would never in my life google for that
<DannyJ> btw I found this
<DannyJ> Is that good?
<DannyJ> I used it for 1 python lesson
<shevy> workmad3 I just insult all who wanna ban me :D
<DannyJ> but was i said the Python guys didn't seem happy
gja has quit [Quit: This computer has gone to sleep]
<DannyJ> I never asked a qeustion
<DannyJ> but I saw how they respond to others
<DannyJ> quite rude
<DannyJ> so I will stay here
<shevy> DannyJ most trolls are on reddit, I keep on fighting them but they are coming back
<DannyJ> :(
<DannyJ> :)
<DannyJ> shevy: Im on reddit too
<DannyJ> :)
<DannyJ> but I just read and comment etc
<shevy> eh #php can be worse than #python actually
<DannyJ> dpeends ..
glaksmono has joined #ruby
<DannyJ> well
Cephalostrum has quit [Read error: Connection reset by peer]
<shevy> though you dont have to register, so that is a plus
<DannyJ> I'm staying here for programming
<DannyJ> :)
MattStratton has joined #ruby
Cephalostrum has joined #ruby
<workmad3> DannyJ: registering is a good way to ensure a stable nick btw
<shevy> DannyJ I think there is only the initial hurdle, once you know enough in any single programming language, transitioning to another one is not that hard if you invest the time
hornairs has quit [Client Quit]
<DannyJ> belh
<shevy> except for haskell
<DannyJ> I'll do ruby
<workmad3> DannyJ: it's also nice and easy to do, although I'd suggest that if you do that you do a quick bit of investigation to set up SASL auth with your IRC client
<shevy> I cant overcome the monad barrier
<DannyJ> yeah
<DannyJ> some cute girl I knew in Hs did java
<DannyJ> and she's taking it at university
<DannyJ> heh
<DannyJ> I think most uni's want java
pushpak has joined #ruby
<DannyJ> but I hate java. from what I've head it has too many issues
Virtualize has quit [Read error: Connection reset by peer]
<workmad3> shevy: what? you don't get monads? they're just endofunctors!
<DannyJ> malicious etc
<DannyJ> anyhow guys
troyready has joined #ruby
<DannyJ> I go by Jay_M
meatherly has quit [Ping timeout: 246 seconds]
<DannyJ> I really want to thank you guys for being freindly
<shevy> lol
<DannyJ> Python was just rude
<shevy> as long as is it not Jay-Z
<workmad3> DannyJ: MINASWAN ftw :)
<DannyJ> :P
clevermatt has quit [Remote host closed the connection]
<DannyJ> I never liked JayZ
<DannyJ> so haha
<workmad3> DannyJ: Matz Is Nice And So We Are Nice
<DannyJ> thanks
<Takumo> workmad3: yes they do make me clean it, they make all the devs clean it, as there are only devs in it
<shevy> I only know hip hop of the 1990es actually
<DannyJ> good bye Python till later
Jdubs has joined #ruby
<DannyJ> Ruby will do
<shevy> matz is cool
dkamioka has joined #ruby
<shevy> guido perhaps too but matz is cooler
<workmad3> Takumo: bah, they should hire a cleaner :)
clevermatt has joined #ruby
<shevy> larry was cool 20 years ago. he is still cool but not highly relevant anymore
<angusiguess> @shevy Some of the best writing I've seen about monads is by js guys.
sassamo has joined #ruby
<shevy> javascript guys?
user258467 has quit [Read error: Connection reset by peer]
<shevy> I will read that. maybe.
<shevy> well ok I will read it ;)
<workmad3> yeah, JS seems to be getting quite a lot of functional love atm
<angusiguess> Futures, the dollar in jQuery, are both good examples.
<workmad3> kinda re-inforces what a guy I used to work with - javascript is really a functional language dressed up in some OO clothes
<angusiguess> ActiveRelations in rails are actually probably monadic.
<workmad3> *work with said
<DannyJ> Issue is
<DannyJ> Should I stay in #programming or not?
<DannyJ> I figured #ruby is better to keep it at?
<workmad3> DannyJ: how many peeps are in there?
<workmad3> DannyJ: and are they saying useful stuff?
<DannyJ> well let me put it this way
<DannyJ> and no
<angusiguess> ActiveRecord::Relations**
<DannyJ> well unreal is the founder there
<DannyJ> he's in my own channel
<DannyJ> :)
<DannyJ> but ..
<DannyJ> mostly #Porgramming is garbage
<DannyJ> lots of trolls and meanies
<DannyJ> I'll stay here
<DannyJ> #programming*
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<workmad3> DannyJ: you can be in more than 1 channel at a time ;)
<shevy> Porkgamming?
<colonolGron> :D
<DannyJ> well I know
<shevy> DannyJ you gotta insult the trolls!
<DannyJ> but I won't use it
<DannyJ> its not wroth it
<Hanmac1> shevy more like Pork-gambling ;P
<workmad3> DannyJ: yeah, that's reasonable :)
<shevy> indeed, time is precious
stryek has joined #ruby
<shevy> I try to reduce the amount of channels I am in all the time but it's hard
<DannyJ> good
<DannyJ> I mean ..
<shevy> I am in 8 channels right now... I could cut 4 of these
<workmad3> shevy: yeah, I can't seem to get below about 10 :(
<shevy> hehe
<DannyJ> I don't want to be in too many channels
mansi has quit [Remote host closed the connection]
<DannyJ> makes it hard to see
<shevy> yeah
<DannyJ> what I'm doing
yfeldblum has quit [Ping timeout: 265 seconds]
Jdubs has quit [Ping timeout: 252 seconds]
<DannyJ> well 'll use LearnRubythehardway
<DannyJ> :)
phansch has joined #ruby
dagobah has quit [Quit: Leaving...]
mhenrixon has joined #ruby
<shevy> be aware that it was written by someone who left ruby
cleverma_ has joined #ruby
<workmad3> shevy: rails (2 channs), ruby (3 chans), chef(2 chans), and some user groups
<DannyJ> oh
<DannyJ> oh well I'll use it
<DannyJ> I used it for Pyton
rootshift has joined #ruby
<DannyJ> it wasn't bad
<shevy> yeah he is still using python
<DannyJ> so I'll use it for Ruby
<DannyJ> :)
<angusiguess> @DannyJ it's a good book.
<shevy> :P
<DannyJ> the gudide was easy
<DannyJ> people were rude
<DannyJ> so Ruby it is
<DannyJ> :)
<shevy> workmad3, two rails channels???
<DannyJ> again THIs is my first langauge
Deejay_ has quit [Quit: Computer has gone to sleep.]
<workmad3> shevy: yup, one's a seekrit one though
<shevy> hehe
<shevy> #rails-take-over-the-world
maletor has quit [Quit: Computer has gone to sleep.]
<workmad3> DannyJ: one thing I can heartily recommend (if that book doesn't cover it) is to approach coding right from the start in a test-driven fashion
momomomomo has quit [Quit: momomomomo]
mansi has joined #ruby
Seich has joined #ruby
<DannyJ> Python was easy
<DannyJ> but as I said
<DannyJ> ok
<DannyJ> Ruby to me fron alaysis seems easier
<workmad3> DannyJ: it's a really good habit to be in, and unlearning habits is hard :)
<DannyJ> I'll do Ruby
<DannyJ> :
<DannyJ> :)
mocfive has quit [Remote host closed the connection]
ahawkins has quit [Quit: leaving]
Al1_andre_ has joined #ruby
<workmad3> DannyJ: so now all that's left is to go and learn it ;)
mocfive has joined #ruby
<DannyJ> hehe
<DannyJ> like a poop cow
clevermatt has quit [Ping timeout: 252 seconds]
<DannyJ> :D
<DannyJ> right?
<shevy> nah
<DannyJ> kidding
<shevy> let's chat
<DannyJ> :P
<shevy> you'll hate programming
<shevy> think of ALL the bugs you will CREATE
<DannyJ> Ruby tw
<DannyJ> ftw
asteros has joined #ruby
jlast has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<shevy> is there a way to make an array of symbols?
tkuchiki has joined #ruby
SHyx0rmZ has joined #ruby
mojjojo has quit [Quit: mojjojo]
b00stfr3ak has joined #ruby
<canton7-mac> shevy, %s I think?
<canton7-mac> ah no, that's a single symbol
mojjojo has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
<havenwood> shevy: %i
mocfive has quit [Ping timeout: 245 seconds]
asteros has quit [Client Quit]
acoyfellow has joined #ruby
<havenwood> shevy: You'll need a *modern* Ruby. :P 2.0+
<shevy> :(
meatherly has joined #ruby
w4pm has joined #ruby
echevemaster has joined #ruby
Al1_andre_ has quit [Read error: Connection reset by peer]
mhenrixon has quit [Quit: Textual IRC Client: www.textualapp.com]
mhenrixon has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
kobain has joined #ruby
fedesilva has joined #ruby
baroquebobcat has joined #ruby
tolstoi has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
maletor has joined #ruby
dukz has joined #ruby
iamjarvo has quit [Ping timeout: 252 seconds]
mityaz has joined #ruby
Al1_andre has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
yaymukund has joined #ruby
meatherly has quit [Ping timeout: 246 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mojjojo has quit [Quit: mojjojo]
BeanDip_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
sweeper has quit [Ping timeout: 272 seconds]
BeanDip has quit [Ping timeout: 272 seconds]
Al1_andre has quit [Client Quit]
sweeper has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
canton7-mac has quit [Quit: Leaving]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dukz has joined #ruby
mojjojo has joined #ruby
saarinen has quit [Quit: saarinen]
meatherly has joined #ruby
cj3kim has joined #ruby
RaCx has joined #ruby
pzula has quit [Ping timeout: 252 seconds]
hl has quit [Ping timeout: 276 seconds]
John445 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hl has joined #ruby
Niele has joined #ruby
drim has quit [Quit: drim]
meatherly has quit [Read error: Connection reset by peer]
RubyPanther has quit [Ping timeout: 248 seconds]
jtdowney has joined #ruby
Al1_andre_ has joined #ruby
meatherly has joined #ruby
zeeraw has joined #ruby
Niele has quit []
John445 has quit [Client Quit]
DannyJ has quit [Ping timeout: 272 seconds]
shaunbaker has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 245 seconds]
cj3kim has quit [Ping timeout: 272 seconds]
mojjojo has quit [Quit: mojjojo]
mercwithamouth has joined #ruby
freezey has quit [Remote host closed the connection]
Al1_andre_ has quit [Remote host closed the connection]
pen has joined #ruby
coderhs has quit [Read error: Connection timed out]
Al1_andre has joined #ruby
nifty has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
drim has joined #ruby
mklappstuhl has joined #ruby
pzula has joined #ruby
zipper has joined #ruby
mneorr has joined #ruby
zipper has quit [Client Quit]
jhaals has joined #ruby
RaCx has joined #ruby
k0m has joined #ruby
heidi has joined #ruby
bamdad has quit [Quit: bamdad]
allaire has quit []
mojjojo has joined #ruby
sparrovv has quit [Remote host closed the connection]
pzula has quit [Ping timeout: 272 seconds]
bigkevmcd has quit [Quit: outta here]
rayners has quit [Remote host closed the connection]
peregrin_ has joined #ruby
rayners has joined #ruby
saarinen has joined #ruby
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
pzula has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
fedesilv_ has joined #ruby
zoscoy has joined #ruby
v0n has quit [Read error: Operation timed out]
RaCx has quit [Ping timeout: 252 seconds]
gja has joined #ruby
araujo has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
RaCx has joined #ruby
Seich has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
charlies_ has joined #ruby
DrShoggoth has joined #ruby
fedesilva has quit [Ping timeout: 248 seconds]
relix has joined #ruby
heidi has quit [Quit: Leaving.]
Clooth has joined #ruby
pzula has quit [Ping timeout: 248 seconds]
asteros has joined #ruby
nifty has quit [Ping timeout: 248 seconds]
thumpba has quit []
<sickweezle> ... a poop cow?
albertgrala has joined #ruby
thumpba has joined #ruby
Xeago has quit [Remote host closed the connection]
e62 has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
_tpavel has quit [Ping timeout: 272 seconds]
charliesome has quit [Ping timeout: 248 seconds]
heidi has joined #ruby
heidi has quit [Client Quit]
coderhs has quit [Read error: Connection timed out]
thumpba has quit [Client Quit]
coderhs has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
thumpba has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> I guess he liked cows
browndawg has quit [Quit: Leaving.]
<shevy> ever since Diablo, I was very impressed with the abilities of combat-ready cows anyway
<shevy> and their warcry is just outstanding
<sickweezle> a herd of cows with halberds is indeed a thing to fear
ndrei has quit [Ping timeout: 272 seconds]
zeade has joined #ruby
pzula has joined #ruby
pzula has quit [Client Quit]
Neomex has quit [Quit: Neomex]
jasonwebster has joined #ruby
allaire has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
diegovio1 has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
Seich has joined #ruby
diegovio1 has quit [Changing host]
diegovio1 has joined #ruby
diegovio1 is now known as diegoviola
jasonwebster has quit [Client Quit]
lsmola_ has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
keen__ has quit [Ping timeout: 276 seconds]
mojjojo has quit [Client Quit]
klaut has quit [Remote host closed the connection]
mojjojo has joined #ruby
<Hanmac1> shevy i also liked the first diablo game ;P ... (i also had a mod that addeds creatures from diablo I into Diablo II, but it was to mean ... )
Fitzsimmons has joined #ruby
Xeago_ has joined #ruby
ndrei has joined #ruby
Seich has quit [Ping timeout: 252 seconds]
fantazo has quit [Ping timeout: 252 seconds]
<Fitzsimmons> there's Comparable for <=>, is there a similar module for basic arithmetic?
yfeldblum has joined #ruby
<canton7> how do you mean?
mojjojo has quit [Client Quit]
Xeago_ has quit [Remote host closed the connection]
<canton7> <=> is an operator which can compare any two objects - say whether one is equal, greater to, or less than, the other. Comparable breaks this down in to specific 'less than', 'less than or equal to', etc, operators
<canton7> there isn't a general "combine two objects arithmetically in all possible ways" operator
<Fitzsimmons> I'm pretty sure you can implement - and * as long as + is defined, for example
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<apeiros> canton7: depends. theoretically there could be.
<LadyRainicorn> That sounds like a pretty fun operator canton7.
workmad3 has quit [Ping timeout: 252 seconds]
duggiefresh has quit [Remote host closed the connection]
arietis has joined #ruby
aaronmcada has joined #ruby
aaronmcada has quit [Client Quit]
<apeiros> wouldn't be very efficient, though
<LadyRainicorn> I actually don't think there could be.
Xeago has quit [Ping timeout: 252 seconds]
meatherly has quit [Read error: Connection reset by peer]
<canton7> if you had a unary minus, 1/x, add, and multiply operators, you could infer subtract and divide :P
<LadyRainicorn> I am fairly sure the resultant set is uncountably infinite.
<apeiros> LadyRainicorn: in binary arithmetic, you can do all operations implemented using a single operation
<apeiros> or was it two?
<canton7> NAND
<canton7> all you need
<apeiros> bah, been a while since theory
<canton7> (or NOR, but you need some form of conversion)
<canton7> s/conversion/inversion
meatherly has joined #ruby
<shevy> LadyRainicorn when I wake up, before I leave bed, I count to Infinity
<LadyRainicorn> And you still couldn't make the operator of awesomeness!
Seich has joined #ruby
Bira has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
derick_skibotn has joined #ruby
aaronmcadam has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
Asher has quit [Quit: Leaving.]
coderhs has quit [Read error: Connection timed out]
meatherly has quit [Read error: Connection reset by peer]
lmickh_ has quit []
meatherly has joined #ruby
baroquebobcat has joined #ruby
lmickh has joined #ruby
lmickh has quit [Client Quit]
albertgrala has quit [Quit: Leaving]
coderhs has joined #ruby
blueOxigen has joined #ruby
lmickh has joined #ruby
Hanmac has joined #ruby
mojjojo has joined #ruby
e62 has joined #ruby
aspires has quit [Remote host closed the connection]
blueOxigen has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
aspires has joined #ruby
mansi has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
zigomir has joined #ruby
<colonolGron> for someone who never did web dev, would you suggest to start with ruby or php? i need to know both, but am not sure which one is good for a start
benzrf has joined #ruby
<benzrf> so 'wtf!?!' is valid ruby syntax
<benzrf> i enjoy this fact
<havenwood> colonolGron: Ruby
bluOxigen has quit [Ping timeout: 252 seconds]
MattStra_ has joined #ruby
MattStra_ has quit [Max SendQ exceeded]
<colonolGron> hmm
<havenwood> colonolGron: I'd suggest learning Ruby basics then looking at Jekyll and Sinatra.
<colonolGron> actually i also read some tutorials about ruby :) i know the basics but never applied them
<shevy> benzrf hmm but only via define_method()
peregrin_ has quit []
<shevy> colonolGron go with php. soon you will want a better language, then you'll never look back again at php
<benzrf> shevy: false
MattStratton has quit [Ping timeout: 248 seconds]
terrellt has quit [Ping timeout: 248 seconds]
mojjojo has quit [Client Quit]
<benzrf> >> 'test?'
<eval-in> benzrf => "test?" (https://eval.in/91223)
<benzrf> woop
rezzack has joined #ruby
<shevy> ohhh a string
<colonolGron> shevy: haha okay
<shevy> wow, cool awesome.
<benzrf> eval-in: def wtf!(v); puts "wtf!{#v}"; end; wtf!?!
<shevy> :O
deception_away is now known as deception
<benzrf> >> def wtf!(v); puts "wtf!{#v}"; end; wtf!?!
<eval-in> benzrf => wtf!{#v} ... (https://eval.in/91224)
<benzrf> wat
<benzrf> o derp
<benzrf> >> def wtf!(v); puts "wtf!#{v}"; end; wtf!?!
<eval-in> benzrf => wtf!! ... (https://eval.in/91225)
mocfive has joined #ruby
mercwithamouth has joined #ruby
mojjojo has joined #ruby
<shevy> hmm
Clooth_ has joined #ruby
<shevy> ah
<colonolGron> shevy: you have a php background?
<shevy> I forgot ?char
<shevy> colonolGron I did php before ruby
zigomir has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 272 seconds]
mansi has quit [Ping timeout: 265 seconds]
<shevy> colonolGron you can do web-related things with php quite ok. but try to move outside it and it'll explode
madhatter has quit [Ping timeout: 246 seconds]
<colonolGron> shevy: okay i see
yfeldblum has quit [Remote host closed the connection]
<colonolGron> shevy: i plan to apply for a web dev job, and they want you to know php and its a plus if you know some rails.
<shevy> >> def wtf!(i); puts "wtf!#{i*3}"; end; wtf! ?!
|RicharD| has joined #ruby
<eval-in> shevy => wtf!!!! ... (https://eval.in/91226)
<colonolGron> now i try to learn some of that stuff
<havenwood> colonolGron: save yourself the pain though, context shifting away from php's way of doing web sounds harder than just starting with Ruby
<|RicharD|> hi to all, i'm using the oauth2 gem
devdazed has quit [Quit: Bye]
<|RicharD|> I have a problem when i create a token object from a existing access token(that i have in db)
<havenwood> colonolGron: tons of jobs in Ruby, Rails and otherwise
<|RicharD|> I do something like this: token = OAuth2::AccessToken.from_hash(client, auth_hash[:credentials])
zipper has joined #ruby
devdazed has joined #ruby
tylersmith has joined #ruby
zipper has left #ruby [#ruby]
madhatter has joined #ruby
Clooth has quit [Ping timeout: 245 seconds]
Clooth_ has quit [Client Quit]
<|RicharD|> the problem is that create an object with params @params=
<|RicharD|> {"token"=>
<|RicharD|> "XXXXXXXXXXXXXXXXX"},
mojjojo has quit [Client Quit]
<|RicharD|> instead the service want access_ token like params and not token, how i can do ?
alexfreidah has joined #ruby
<|RicharD|> i tried to create the object with .from_hash(client, :access_token => token)
<colonolGron> havenwood: so you suggest to learn rails only?
<|RicharD|> but not work
shaunbaker has joined #ruby
mojjojo has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
LulzonAway is now known as Lulzon
<|RicharD|> colonolGron: learn rails without ruby is the wrong way of work ;)
nwertman has quit [Quit: Lost terminal]
<havenwood> well, I'd say learn Ruby well - then you have access to Rails, Sinatra, Chef, Puppet, all types of work.
linguini has joined #ruby
tyl has joined #ruby
<havenwood> colonolGron: But Rails isn't my favorite Ruby framework to work with.
vlad_starkov has quit [Remote host closed the connection]
<havenwood> colonolGron: Others love it. ;)
<colonolGron> hmm i see
<colonolGron> well the company i apply for asked for it
vlad_starkov has joined #ruby
yfeldblu_ has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
carraroj has joined #ruby
<colonolGron> i am going to move to another city, and its the only company i found that does something besides ph
<colonolGron> *php
iamjarvo has joined #ruby
zeropx has joined #ruby
<|RicharD|> Where you move?
zeropx has quit [Client Quit]
zeropx has joined #ruby
zeropx has left #ruby [#ruby]
<colonolGron> |RicharD|: to Mannheim, Germany
<|RicharD|> and where you from ?
<b00stfr3ak> Has any one used prawn/graph before?
alexfreidah has quit [Ping timeout: 252 seconds]
<colonolGron> |RicharD|: from Freiburg, also Germany ;)
pixelgremlins has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
butc has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
rdark has quit [Quit: leaving]
coderhs has quit [Read error: Connection timed out]
benzrf has left #ruby [#ruby]
tt1187 has quit [Ping timeout: 265 seconds]
apples_ has joined #ruby
coderhs has joined #ruby
senayar_ has quit [Remote host closed the connection]
<shevy> is there a simple way to shift down a hash? example: hash = { 'foo' => { bla: 5, ble: 6 } } <--- remove 'foo', shift the value of foo down to the main hash
wereHamster has quit [Remote host closed the connection]
senayar has joined #ruby
spider-mario has joined #ruby
huttan has quit [Quit: leaving]
<|RicharD|> any expert of oauth2 ?
RaCx has joined #ruby
huttan has joined #ruby
Macaveli has joined #ruby
arturaz has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
nanoyak has joined #ruby
ahmedelgabri has quit []
IceDragon has quit [Quit: Space~~~]
zeropx has joined #ruby
matchaw_ has joined #ruby
maroloccio has quit [Ping timeout: 252 seconds]
<havenwood> shevy: #values
matchaw has quit [Ping timeout: 245 seconds]
<shevy> cool
dukz has quit [Remote host closed the connection]
io_syl has joined #ruby
dukz has joined #ruby
rosssssssss has quit [Remote host closed the connection]
<Hanmac> shevy: like that
<Hanmac> >> hash = { 'foo' => { bla: 5, ble: 6 }, 'something' => 7 }; hash.merge(hash.delete("foo"))
<eval-in> Hanmac => {"something"=>7, :bla=>5, :ble=>6} (https://eval.in/91228)
Thanatermesis has quit [Read error: Operation timed out]
duggiefresh has joined #ruby
ndrei has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> no that wouldn't be proper
butc has left #ruby ["PART #bitcoin :PONG :hobana.freenode.net"]
Bira has joined #ruby
<shevy> shift down one level of the whole, 'something' is on the same level as 'foo' so it would be discarded
Macaveli has quit [Ping timeout: 260 seconds]
<shevy> and I wouldn't know the name 'foo' beforehand anyway
<shevy> .values[0] works nicely
coffeina has joined #ruby
<shevy> next question!
<shevy> easy way to change all string keys in a hash to symbol keys? (The initial dataset I have to load from a yaml file, and it is easier to use string keys in yaml so I cant change that easily)
olivier_bK has quit [Ping timeout: 248 seconds]
hiall has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
w4pm has joined #ruby
<Hanmac> shevy single or multi dimensional array?
<shevy> array?
kirun has joined #ruby
<Hanmac> i mean hash
<shevy> yeah, always single
duggiefresh has quit [Ping timeout: 272 seconds]
Bira has quit [Read error: Operation timed out]
<shevy> lemme fetch an example
<Hanmac> >> hash = { 'foo' => 6, 'something' => 7 }; Hash[hash.map {|k,v|[k.to_sym,v]}]
shaunbaker has quit [Remote host closed the connection]
terrellt has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Jake232 has joined #ruby
<shevy> cool
<shevy> that seems to work just fine, thanks Hanmac
farn has quit [Read error: Connection reset by peer]
matchaw has joined #ruby
mocfive has quit [Remote host closed the connection]
farn has joined #ruby
matchaw_ has quit [Ping timeout: 246 seconds]
RaCx has joined #ruby
mocfive has joined #ruby
<eval-in> Hanmac => {:foo=>6, :something=>7} (https://eval.in/91229)
coderhs has quit [Read error: Connection timed out]
RubyPanther has joined #ruby
<shevy> eval-in is kinda delayed
brianpWins has joined #ruby
<waxjar> >> sleep 10; "lol"
hornairs has joined #ruby
<eval-in> waxjar => (https://eval.in/91231)
interactionjaxsn has quit [Remote host closed the connection]
aantix has joined #ruby
ineb has joined #ruby
po10 has quit [Quit: /]
Thanatermesis has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
Senjai has quit [Ping timeout: 276 seconds]
mocfive has quit [Ping timeout: 246 seconds]
larissa has quit [Quit: Leaving]
ghr has joined #ruby
<ineb> hello, short question how to do that in ruby: i have a collection and want to iterate over a subset of that collection. my approach is foo = collection.select { criteria } and then foo.each. is there a more ruby-like way?
ndrei has quit [Ping timeout: 272 seconds]
thesheff17 has joined #ruby
alexherbo2 has joined #ruby
<waxjar> that is superduper ruby ineb
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cantonic has joined #ruby
<shevy> ineb can't get much shorter than that can it
Zai00 has quit [Quit: Zai00]
<Morrolan> Chain!
mordocai has quit [Remote host closed the connection]
<shevy> :P
<Morrolan> Unless you're doing something with the intermediate collection, there's no real reason to store it somewhere.
<Morrolan> Unless the line would get horribly long, of course. ;)
<ineb> Morrolan: yes, that would be the case
<ineb> but cool. thanks
<Morrolan> Yea, then I understand the temporary variable. :)
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bjhaid has joined #ruby
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
camilasan has quit []
v0n has joined #ruby
<waxjar> ineb: code like this is also valid: https://gist.github.com/britishtea/b3a78259109288cb4f20
iamsean has joined #ruby
<waxjar> it's not very pretty, but at least its clear
Oog has joined #ruby
<Oog> IO.readline with a limit seems to cause a broken pipe if the line does not end before the limit....
<Oog> is there something analogous that would not cause a broken pipe?
Virtualize has joined #ruby
cbetta is now known as cbetta_afk
pixelgremlins has joined #ruby
<ineb> waxjar: i kinda like it. the map makes it a bit messy, but i only need the .each here, so i think its fine
venkat has joined #ruby
Senjai has joined #ruby
zigomir has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
ReachingFarr has joined #ruby
senayar_ has joined #ruby
synergy_ has joined #ruby
<ReachingFarr> I have RDoc installed (twice: once in the system gem path and once in my local GEM_HOME) and can require it from IRB, but when I try and install a new gem I get the following error: RDoc is not installed: cannot load such file -- rdoc/rdoc
sassamo has quit [Remote host closed the connection]
<ReachingFarr> Does anyone know why this might be?
coderhs has joined #ruby
sassamo has joined #ruby
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
IceDragon has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
senj has joined #ruby
ndrei has joined #ruby
chomskiii has joined #ruby
m_3_ has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 252 seconds]
bricker`1ork is now known as bricker`work
senayar_ has quit [Ping timeout: 251 seconds]
sassamo has quit [Read error: No route to host]
francisfish has joined #ruby
bricker`work is now known as bricker
pu22l3r has quit [Ping timeout: 245 seconds]
sassamo has joined #ruby
ivom has joined #ruby
cbetta_afk is now known as cbetta
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<ivom> newbie question probably: some manual suggests running 'ruby bundle', the result for 1.9.3 and earlier versions is:
acoyfellow has quit [Remote host closed the connection]
<ivom> ruby: No such file or directory -- bundle (LoadError)
<ivom> why is that?
rmorello has joined #ruby
benzrf has joined #ruby
<benzrf> whats new ruby fans
gr33n7007h has quit [Quit: Leaving]
<shevy> hmm
<havenwood> ivom: Bundler is a gem. Before you can run it install it: gem install bundler
<shevy> why is there a module called 'etc' on rubygems.org
<benzrf> shevy: because somebody had to take it
pu22l3r has joined #ruby
<shevy> but it is also in stdlib
<shevy> so which one will people use when I do require 'etc'
<shevy> :(
freezey has joined #ruby
<benzrf> what does stdlib etc do
<benzrf> o-o
<waxjar> iirc its an interface to /etc/
<DouweM> Yeah
<DouweM> specifically /etc/passwd and /etc/group
<waxjar> but i might have made taht up
m_3 has joined #ruby
duggiefresh has joined #ruby
<waxjar> apparantly i havent \o/
reset has joined #ruby
<ivom> havenwood: havenwood: gem install bundler
wedgeV has quit [Quit: wedgeV]
<ivom> havenwood: havenwood: ruby bundle still gives the same error
maroloccio has joined #ruby
mansi has joined #ruby
<havenwood> ivom: just `bundle`
mojjojo_ has joined #ruby
<havenwood> ivom: not `ruby bundle`
<shevy> I think my main question is what if people populate on rubygems.org all of stdlib and core
Astralum has joined #ruby
mojjojo has quit [Ping timeout: 245 seconds]
mojjojo_ is now known as mojjojo
<ivom> havenwood: you were right :)
rezzack has quit [Quit: Leaving.]
<shevy> "This gem is not currently hosted on Gemcutter."
* ivom watching dots...
mojjojo has quit [Client Quit]
freezey has quit [Ping timeout: 248 seconds]
Seich has quit [Quit: Computer has gone to sleep.]
Seich has joined #ruby
coderhs has quit [Remote host closed the connection]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> ivom hehehe
<shevy> rdoc porn strikes again
nanoyak has quit [Quit: Computer has gone to sleep.]
jaxxstorm is now known as The-Sentinel
The-Sentinel is now known as lbriggs
RubyPanther has quit [Ping timeout: 272 seconds]
lbriggs is now known as jaxxstorm
mansi has quit [Quit: Leaving...]
drumusician has joined #ruby
RubyPanther has joined #ruby
coca_rails has joined #ruby
gr33n7007h has joined #ruby
tt1187 has joined #ruby
gr33n7007h has left #ruby [#ruby]
Jdubs has joined #ruby
vlad_sta_ has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
Seich has quit [Ping timeout: 252 seconds]
camt has joined #ruby
nateberkopec has joined #ruby
blandflakes has quit [Ping timeout: 272 seconds]
bamdad has joined #ruby
Seich has joined #ruby
bamdad has quit [Client Quit]
Megtastique has quit []
vlad_starkov has quit [Ping timeout: 265 seconds]
coderhs has joined #ruby
wedgeV has joined #ruby
centrx has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
vlad_sta_ has quit [Remote host closed the connection]
dangerousdave has joined #ruby
mocfive has joined #ruby
vlad_starkov has joined #ruby
mneorr_ has joined #ruby
nanoyak has joined #ruby
peregrin_ has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
thesheff17 has quit [Remote host closed the connection]
i_s has quit []
peregrin_ has quit [Client Quit]
coca_rails has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 245 seconds]
Megtastique has joined #ruby
senayar has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<shevy> guys
<shevy> array.map {|foo|
<shevy> vs
<shevy> array.map { |foo|
<centrx> Big decision
<apeiros> second one
mklappstuhl has joined #ruby
breakingthings has quit []
lethjakm1 has joined #ruby
<Morrolan> Either is a syntax error.
mlpinit_ has joined #ruby
<apeiros> o0
lethjakman has quit [Ping timeout: 245 seconds]
danijoo_ has quit [Remote host closed the connection]
nanoyak has quit [Ping timeout: 246 seconds]
lethjakm1 is now known as lethjakman
<Morrolan> Missing, at the very least, a closing brace. ;)
<waxjar> with the space shevy
<apeiros> weeeeeell…
danijoo has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Quit: Lost terminal]
Matriks has joined #ruby
Eiam has joined #ruby
ndrei has joined #ruby
Seich_ has joined #ruby
coca_rails has joined #ruby
mocfive has quit [Remote host closed the connection]
mlpinit has quit [Read error: Operation timed out]
LekeFly has joined #ruby
kobain has quit []
LekeFly has quit [Max SendQ exceeded]
peregrin_ has joined #ruby
peregrin_ has quit [Max SendQ exceeded]
mocfive has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
LekeFly has joined #ruby
rdark has joined #ruby
peregrin_ has joined #ruby
nari has joined #ruby
freezey has joined #ruby
<ReachingFarr> Is there a description of what can be specified in the .gemrc file anywhere?
e62 has quit [Ping timeout: 252 seconds]
MrJoshua has quit [Quit: MrJoshua]
ndrei has quit [Client Quit]
habanany1 has joined #ruby
<Morrolan> Yea, rubygems.org has one.
dfrancio_ has joined #ruby
ndrei has joined #ruby
<Morrolan> Searching for gemrc reference should bring it up.
nanoyak has joined #ruby
dfranciosi has quit [Remote host closed the connection]
<shevy> hmm
shadoi has joined #ruby
<shevy> strange... I would have thought you guys would prefer {|foo|
jtdowney has quit []
<Morrolan> Nah.
<apeiros> nope
<Morrolan> The space seems to have penetrated the Ruby community pretty much.
<apeiros> for hashes, yes
<apeiros> {foo: 1}
<Morrolan> Neither there. :o
<apeiros> but { |foo| 1 }
<Morrolan> But really, it's mainly a matter of aesthetics. ;)
<ReachingFarr> Morrolan: I see a gem command reference, but nothing on the gemrc file.
mocfive has quit [Ping timeout: 272 seconds]
<apeiros> it's all just a matter of getting used to
jerius has quit []
dfrancio_ has quit [Read error: Operation timed out]
<ReachingFarr> Morrolan: That is for gem specifications. I'm looking for the specification for the .gemrc file.
po10 has joined #ruby
nari has quit [Ping timeout: 252 seconds]
<Morrolan> Oooh, I misread, sorry. :D
mikepack has quit [Remote host closed the connection]
habanany has quit [Quit: Leaving]
<Morrolan> I've only ever used the .gemrc to add --no-rdoc --no-ri, i.e. CLI parameters. Not sure what it actually supports besides that. :)
<shevy> hehehe
Jdubs has quit [Remote host closed the connection]
jfoy has joined #ruby
dlibanori has joined #ruby
habanany has joined #ruby
OdNairy has joined #ruby
aspires has quit []
chrisseaton has joined #ruby
dukz has quit [Remote host closed the connection]
breakingthings has joined #ruby
<ReachingFarr> Morrolan: Is there another way to get gem to install gems in my home directory?
<Morrolan> http://rubygems.rubyforge.org/rubygems-update/Gem/ConfigFile.html contains a description of the valid keys.
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Morrolan> `gem install` will respect the GEM_HOME environment variable.
cescalante is now known as ce_afk
interactionjaxsn has joined #ruby
<Morrolan> Generally you'd use a version manager (chruby, rbenv, rvm, ...) to handle these things for you. :)
jfoy has left #ruby [#ruby]
<Morrolan> Will allow you to install Ruby versions and gems anywhere you want, preventing conflicts with the system-wide installation.
<Morrolan> (Plus allows to switch between them easily)
jfoy has joined #ruby
carraroj has quit [Ping timeout: 246 seconds]
hornairs has quit [Quit: hornairs]
ozgun has joined #ruby
dorei has joined #ruby
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 248 seconds]
chrisseaton has quit [Read error: Connection reset by peer]
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
meatherl_ has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
meatherly has quit [Ping timeout: 272 seconds]
phansch has quit [Ping timeout: 272 seconds]
<dlibanori> Hi guys, I am having troubles when I use backtick with process that is taking more them free memory. I get "Cannot allocate memory".
jarileskinen has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
mneorr_ has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
tyl has quit [Ping timeout: 272 seconds]
pcya9111 has left #ruby [#ruby]
ozgun has quit [Quit: Leaving]
tyl has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
Astralum has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
Astralum has joined #ruby
asteros has quit [Quit: asteros]
coffeina has quit [Ping timeout: 272 seconds]
phansch has joined #ruby
<centrx> dlibanori, Are you low on memory?
jfoy has quit [Quit: jfoy]
<centrx> dlibanori, What process are you running
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
meatherl_ has quit [Ping timeout: 248 seconds]
drumusician has quit [Ping timeout: 248 seconds]
m8 has quit [Quit: Sto andando via]
sambao21 has joined #ruby
benzrf has left #ruby [#ruby]
mojjojo has joined #ruby
mercwithamouth has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Astralum has quit [Read error: Connection reset by peer]
asteros has joined #ruby
coderhs has quit [Read error: Connection timed out]
felixjet has joined #ruby
dlibanori has quit [Quit: dlibanori]
lethjakman has quit [Quit: WeeChat 0.4.0]
RaCx has joined #ruby
MrZYX|off is now known as MrZYX
alvaro_o has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
danijoo_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
relix has joined #ruby
danijoo has quit [Read error: Operation timed out]
Seich_ has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
jtdowney has joined #ruby
derebos has joined #ruby
mikepack has joined #ruby
nifty has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
coca_rails has quit [Remote host closed the connection]
Seich_ has joined #ruby
mark_locklear has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
mojjojo has joined #ruby
danshult_ has joined #ruby
senayar has quit [Remote host closed the connection]
txdv has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
poulson has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
michael_mbp has joined #ruby
txdv has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
w4pm has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
ctp has quit [Quit: Leaving...]
alexfreidah has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
Xiti has joined #ruby
havenwood has quit [Remote host closed the connection]
mradmacher has joined #ruby
mlpinit has joined #ruby
vlad_sta_ has joined #ruby
dlibanori has joined #ruby
Xiti` has quit [Ping timeout: 252 seconds]
alexfreidah has quit [Ping timeout: 252 seconds]
<dlibanori> centrx: take a look at this gist https://gist.github.com/dlibanori/8479129
mojjojo has quit [Quit: mojjojo]
k0m has joined #ruby
k0m has quit [Remote host closed the connection]
mikepack has joined #ruby
<dlibanori> centrx: look its output https://gist.github.com/dlibanori/8479247
venkat has quit [Remote host closed the connection]
<dlibanori> I am running on a VM with 256mb
<apeiros> dlibanori: you can have 2 files in 1 gist
mklappstuhl has quit [Remote host closed the connection]
<dlibanori> apeiros: ;) you are right
lkba has quit [Read error: Connection reset by peer]
venkat has joined #ruby
AndChat| has joined #ruby
Wixy has joined #ruby
<Wixy> Hi guys
<dlibanori> centrx: you can see, it still has free memory
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
carraroj has joined #ruby
<Wixy> I know I can do Thread.current[:foo] = "and save some value.."
sambao21 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 246 seconds]
nfisher has quit [Quit: Good-bye all!]
<Wixy> but how do you do the same with a thread in a variable?
vlad_sta_ has quit [Remote host closed the connection]
carraroj has quit [Client Quit]
<apeiros> Wixy: Thread.current returns a Thread instance
<Wixy> for example: t = Thread.new do t.current[:foo] = 123; end; puts t.current[:foo]
<apeiros> Wixy: your variable returns a Thread instance
vlad_starkov has joined #ruby
<dlibanori> centrx: the first gist works perfectly without backtick
<centrx> Interesting
<Wixy> I supposed it should work but it doesn't, apeiros
<apeiros> Wixy: why t.current?
<dlibanori> centrx: it happens on ruby 1.9.3, 2.0.0 and 2.10
<Wixy> ahhhhh, wait a sec
cj3kim has joined #ruby
<Wixy> the .current is somehow global
<apeiros> Wixy: nooo
mikepack has quit [Read error: Operation timed out]
dkamioka has quit [Remote host closed the connection]
<apeiros> Thread.current means "call the method `current` on `Thread`"
mehlah has joined #ruby
rootshift has joined #ruby
<dlibanori> I think ruby is invalidating VM memory before change process binary
fijimunkii has joined #ruby
<apeiros> like Array.new means "call the method `new` on `Array`"
<Wixy> apeiros, yeah, I meant, it's the same thing for all threads
sambao21 has joined #ruby
<Wixy> what I intended to do was to save :foo in a local environment available only for this thread
<centrx> dlibanori, It sure looks like the problem is being caused by str.next! not the ``
<dlibanori> in another words: it is not CoW friendly when forking
<apeiros> Wixy: Thread.current is not somehow global. it returns the current thread. it makes no sense if it works differently.
<dlibanori> centrx: but it works perfectly if I remove `
venkat has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
<centrx> dlibanori, It is the array that is causing you to run out of memory
<centrx> dlibanori, creating an array with 20 million elements in memory
<dlibanori> centrx: It works perfectly without backtick
<Wixy> look. I think this example is pretty clear: t1 = Thread.new do t.current[:foo] = 10; end \n t2 = Thread.new do t.current[:foo] = 5; end \n puts t1.current[:foo] + t2.current[:foo]
klaut has joined #ruby
<Wixy> I'm expecting "15"
e62 has joined #ruby
<Wixy> argh, never mind, the example is wrong. let me rewrite it in a pastebin
<dlibanori> centrx: if I comment line #5, everything goes right
cj3kim has quit [Ping timeout: 260 seconds]
<apeiros> Wixy: t.current *makes no sense*
rudisimo has joined #ruby
<Wixy> apeiros, I know it doesn't work, but just to get the idea..
<Wixy> v
<centrx> dlibanori, The OS may be refusing to start a new process on low memory, but allowing the running process to continue
<centrx> dlibanori, You should have a swap partition as well
<apeiros> Wixy: why call .current to get a Thread instance, when t *already is a Thread instance*?
<centrx> dlibanori, Lack of a swap partition can cause issues in Linux
<apeiros> Thread.current # => Thread, Thread.current[] --> calls Thread#[]
Seich_ is now known as Seich
ringaroses has joined #ruby
<apeiros> I don't think I've the patience right now.
<dlibanori> centrx: why ` is trying to allocate memory?
<Wixy> I'm certainly misunderstanding something
* Wixy is checking the doc
<dlibanori> centrx: why ` is trying to allocate same amount of memory as ruby process?
vlad_starkov has quit [Remote host closed the connection]
<centrx> dlibanori, ` runs the program free, running any program requires memory
<havenwood> Wixy: t1[:foo] + t2[:foo]
<dlibanori> centrx: sure, but free takes more them 66mb?
<Wixy> ahhhhhhhhhh
<Wixy> it wasn't thaaat wrong!
<centrx> dlibanori, The memory is exhausted by the array
<Wixy> thank you both
<dlibanori> centrx: no, it's not, there are 66mb free
<Wixy> yeah, it makes sense now. I got what you meant apeiros :P
<dlibanori> centrx: it is not exhausting memory, the first gist run nicely without backtick
<dlibanori> centrx: the system has enough memory to run the program without backtick
sparrovv has joined #ruby
<centrx> dlibanori, 66MB is not much memory, you have no swap space
<dlibanori> centrx: I am forcing this situation
acoyfellow has joined #ruby
ringaroses has quit [Ping timeout: 246 seconds]
<dlibanori> centrx: actually, it happens in an Rails application, running under unicorn, using Dragonfly
<havenwood> dlibanori: so system('command') works but `command` doesn't?
<dlibanori> havenwood: I haven't tried system. I really needs command output, but I can try if you want
Ergon has joined #ruby
<havenwood> dlibanori: i'd prolly try, just to confirm that is the issue
<dlibanori> sure
thumpba_ has joined #ruby
Hobogrammer has joined #ruby
rmorello has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> dlibanori: not sure how best to do output, maybe use popen3?: http://www.ruby-doc.org/stdlib-2.1.0/libdoc/open3/rdoc/Open3.html#method-c-popen3
<shevy> lalalala
aryaching_ has joined #ruby
rmorello has joined #ruby
<TheLarkInn> so has anyone tried to run ruby on a RaspberryPi, I'm interested to hear about success stories
<dlibanori> havenwood: I can try to use popen, but I think Ruby is trying to allocate memory before change its binary
mikepack has joined #ruby
thumpba_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<havenwood> TheLarkInn: Yeah, i'm working on a RaspberryPi project right now in Ruby.
<MrZYX> TheLarkInn: it just works ;)
freerobby has joined #ruby
<shevy> ruby just works (tm)
<TheLarkInn> OH awesome. Well, I've heard because of size constraints and speed that you have to buy some fancy stage 10 flash card as your storage, and that takes a special distro of ruby
<shevy> there are special distros of ruby?
<shevy> I wanna get one!
<TheLarkInn> lol shush
aryaching has quit [Ping timeout: 272 seconds]
<shevy> python has gentoo
<shevy> we got nothing :(
sambao21 has quit [Quit: Computer has gone to sleep.]
<TheLarkInn> DOn't make fun of me.
<shevy> perl has debian
<MrZYX> it depends on what you want to do with ruby, but that's more a general concern
<DanBoy> what does yellow dog have
<TheLarkInn> What Ruby v are you guys using on your apps for it?
<DanBoy> :P
mlpinit has quit [Remote host closed the connection]
<TheLarkInn> Ruby works 1.9
<ReachingFarr> It appears that gem is installing gems in $GEM_HOME/ruby/gems. Is this correct?
<havenwood> TheLarkInn: Actually, right now were running Raspbian apt-get's Ruby 1.9.3. Though we'll probably switch to a ruby-install of 2.1.0 very soon.
<apeiros> havenwood: ruby or mruby?
<shevy> TheLarkInn I am still on 1.9 but I will probably switch to 2.1 soon though I'll probably stop using yaml files for my config, may have to start from scratch with a new format
<havenwood> apeiros: ruby
terrellt has left #ruby [#ruby]
<havenwood> I wasn't able to get JRuby working. But Ruby works great.
<TheLarkInn> anyone try Rubinius?
<havenwood> have to check back on JRuby, because it would be nice to have access to SWIG on a Pi
vlad_starkov has joined #ruby
Ergon has quit []
prc has joined #ruby
<havenwood> TheLarkInn: Nope, haven't tried on Pi.
ctp has joined #ruby
<TheLarkInn> I kind of want to buy one and write a few apps to control the doors and lighting in my chicken coop lol
postmodern has joined #ruby
<TheLarkInn> simply time based stuff,
<TheLarkInn> YES I OWN CHICKENS don't judge.
Jdubs has joined #ruby
<shevy> lol
mlpinit has joined #ruby
<shevy> if it walks like a duck
<shevy> if it quacks like a duck
<shevy> and if it shits like a duck
<RubyPanther> TheLarkInn: The Pi isn't the best for that, there are others with built-in motor control
<shevy> it may be some chicken
<shevy> at least something birdy
<TheLarkInn> Really? What do you recommend RubyPanther?
<RubyPanther> Lots of people own chickens in my town, my mom and brother both do
<havenwood> TheLarkInn: No internal clock, so you'll have to get a RTC module for your Pi, or give it internet access so it can get time from an NTP server.
<shevy> Hanmac qt4 built fine, now I am building the latest kde, and soon glibc and THEN ruby 2.1
<RubyPanther> TheLarkInn: beagleboard
<TheLarkInn> What os does it run on
<TheLarkInn> or should I say what linux does it run on
<havenwood> TheLarkInn: Could even do an Arduino Yun.
<TheLarkInn> Wow all these things are so exciting.
derebos has quit [Ping timeout: 272 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Ping timeout: 260 seconds]
aspires has joined #ruby
jtdowney has quit [Remote host closed the connection]
aryaching has joined #ruby
<havenwood> TheLarkInn: Ubuntu, Angstrom, Android, whatever on a Beaglebone Black: http://beagleboard.org/products/beaglebone%20black
<havenwood> TheLarkInn: Linino Linux on Yun
<dlibanori> havenwood: it works with system
jtdowney has joined #ruby
DrShoggoth has quit [Quit: Leaving]
aryaching_ has quit [Ping timeout: 264 seconds]
jtdowney has quit [Client Quit]
<TheLarkInn> wow thats sweet
Matriks has quit [Read error: Connection reset by peer]
<TheLarkInn> Now if we could only get Xcode to work with MacRuby again, my life would be complete.
jtdowney has joined #ruby
jtdowney has quit [Client Quit]
<TheLarkInn> xCode5 + Mavericks*
Matriks has joined #ruby
jcarouth has left #ruby [#ruby]
ctp has quit [Ping timeout: 252 seconds]
<havenwood> apeiros: I saw the mruby on pi talk at RubyConf this year, but they just did it purely for fun (i think they had mruby with 16gb space extra)
w4pm has joined #ruby
<TheLarkInn> lol
<havenwood> apeiros: Pi is about same system specs as my PC in undergrad. :O
<apeiros> yeah, progress of hardware is amazing
<apeiros> my iphone has 1000x more space in ram than my first computer had space on its hard drive
ktosiek has joined #ruby
rezzack has joined #ruby
<apeiros> ah, wait, only 50x actually :)
pu22l3r has quit [Remote host closed the connection]
<wmoxam> apeiros: your first computer had a hard drive?!
<havenwood> mmm, back when floppy disks flopped
<wmoxam> fancy
pu22l3r has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
yalue has quit [Quit: Leaving]
<TheLarkInn> yeah but the real question is, when does the plateau happen?
<apeiros> yes, a 20MB HD. and a 9" monochrome monitor with 512x384 pixel resolution. and 2.5MB ram (at that time, most PCs had around 256KB ram)
* wmoxam remembers loading programs off of cassette tapes
<TheLarkInn> beacuse at the rate things are going, in 10 years we will have petabyte flashdrives the size of pinky fingers
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<wmoxam> apeiros: super fancy!
<apeiros> wmoxam: yeah, totally :)
<wmoxam> my first was a TRS 80
<wmoxam> and we had Commodore PETs at school
<TheLarkInn> mine was a Tandy Windows 3.1
<apeiros> and technically it wasn't mine 0:-)
<TheLarkInn> 92'
asteve has joined #ruby
<TheLarkInn> '92*
<apeiros> (I was in elementary school back then)
<wmoxam> :D
venkat has joined #ruby
<asteve> so I'm writing a test, I need to verify that the returned record, which is a Json object which contains a record field which points to an array of other json objects
yfeldblu_ has quit [Remote host closed the connection]
<asteve> I need to verify that the interior json object contains specific ids
<wmoxam> my first PC (well, my family's first PC) was a 486 DX4-100 with 4MB RAM! I forget how big the hard drive was
<havenwood> my dad had a Kaypro 2000 when i was a kid: http://oldcomputers.net/kaypro2000.html
yfeldblum has joined #ruby
<wmoxam> It could run DOOM2 like a boss
<havenwood> shoulda kept it, prolly worth more now >.>
<apeiros> I think I started with "System 4" (classic mac os)
deception has quit [Quit: Goodbye]
<apeiros> lode runner was my favorite game :)
<ddd> commodore 64+
<asteve> {:records => [{:other => "stuff", :id => 1},{:more => "stuff", :id => 2]}; how do I assert that both id 1 and id 2 are in the interior?
Seich has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
justsee has joined #ruby
<havenwood> the Kaypro 2000 really was an odd beast
kobain has joined #ruby
davidhq has quit [Read error: Connection reset by peer]
<havenwood> WordStar
Seich has joined #ruby
<wmoxam> Kaypro 2000 looks sweet
<apeiros> and I was super proud when I wrote my first game, memory, and managed to reduce the time to shuffle the cards from ~17min down to ~5s in a couple of iterations.
<wmoxam> complete with a mechanical keyboard!
<ddd> wow, haven't even heard the name WordStar in years!
davidhq has joined #ruby
yfeldblu_ has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
asteve has left #ruby ["Textual IRC Client: www.textualapp.com"]
senayar_ has joined #ruby
<shevy> you guys are not only geeks
<shevy> you are OLD GEEKS
<TheLarkInn> asteve: object[:records].find{|hash| values.include?(1) || values.include?(2)}
<TheLarkInn> does that work?
<RubyPanther> Timex/Sinclair 2000
<apeiros> TheLarkInn: |hash|, then values?
ddd has quit [Quit: leaving]
<apeiros> mistake?
<TheLarkInn> oops haha I mean
<TheLarkInn> hash.values*
<apeiros> that should work
<RubyPanther> 2K, BASIC ROM, no drives
<TheLarkInn>  object[:records].find{|hash| hash.values.include?(1) || hash.values.include?(2)}
ddd has joined #ruby
<apeiros> but searching a hash for its values is *you're doing it wrong* :-)
<TheLarkInn> lol how come?
<apeiros> that's not what hashes exist for
<shevy> apeiros hey... for a moment I thought you meant a method called .mistake?
<apeiros> their purpose is to search by key
<apeiros> shevy.mistake?
yfeldblum has quit [Ping timeout: 272 seconds]
jfoy has joined #ruby
sambao21 has joined #ruby
<ktosiek> he wants to assert both, not any of 1 and 2 if I understand correctly
<TheLarkInn> oh I see what you are saying,
ndrei has joined #ruby
<TheLarkInn> object[:records].find{|hash| hash[:id] == 1 || hash[:id] == (2)}
<TheLarkInn> like that?
timonv has quit [Remote host closed the connection]
jtdowney has joined #ruby
_maes_ has joined #ruby
<TheLarkInn> I'm sure that can be refactoreed even more just reading the reduntant typing
Seich has quit [Ping timeout: 272 seconds]
lorelei_ has quit [Quit: TTFN]
Zenreich has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has quit [Ping timeout: 252 seconds]
jtdowney has quit [Client Quit]
agjacome has quit [Read error: Operation timed out]
asteve has joined #ruby
jtdowney has joined #ruby
<ktosiek> oh, I was saying it looked like he wanted it to fail on [{:id => 1}, {:id => 1}] (as the id 2 is missing)
cbetta is now known as cbetta_afk
<TheLarkInn> so fail if both exist
<asteve> is it possible to loop over variable names, say I have var1, var2, var3; in a for loop can I do something like var#{i} = "this is not going to work"
<ktosiek> asteve: you still here? Can you say if the given solutions are ok?
lmickh_ has joined #ruby
shaunbaker has joined #ruby
<asteve> I missed any solutions, sorry
<TheLarkInn> -_- rofl
RaCx has quit [Quit: Computer has gone to sleep.]
* TheLarkInn thinks its the last time he tries to contribute
kreantos has joined #ruby
<asteve> is there a .to_var or something?
<asteve> "blah".constantize?
<TheLarkInn> erm, there kinda is
ivom has quit [Quit: leaving]
gja has quit [Quit: This computer has gone to sleep]
apples_ has quit [Ping timeout: 245 seconds]
<centrx> asteve, What are the variables used for?
zeropx has quit [Quit: has left the room … Or did he?]
yfeldblu_ has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
lmickh has quit [Ping timeout: 245 seconds]
<asteve> centrx: well, they store json objects
<centrx> asteve, Right but I am not clear why you need the variable names. Why not just loop over the variables?
<asteve> I would like to do something like `for i in 0..100 { "var#{i}".constantize = value }
krawchyk has quit []
<centrx> asteve, That is not good practice
<havenwood> asteve: `method(:puts).call 'hi'` or `send(:puts, 'hi')` for example
clamstar has quit [Quit: Computer has gone to sleep.]
<asteve> centrx: yes, I figured as much
<centrx> asteve, Why not use an array?
<asteve> I was hoping for an easier way out
lmickh_ has quit [Ping timeout: 272 seconds]
fire has quit [Quit: WeeChat 0.4.1]
end_guy has quit [Remote host closed the connection]
<centrx> asteve, Use an array or a hash
<asteve> ya, that's the best answer
Jdubs has quit [Remote host closed the connection]
<TheLarkInn> isnt there a method off of Class Object which lets you do instance_variable_set
<havenwood> asteve: This would define 100 methods that return `:whatev`: 1.upto(100).map { |n| define_method("var#{n}") { :whatev } }
davidhq_ has joined #ruby
chipotle has joined #ruby
<havenwood> oh, you said variable, i dunno why i was thinking method
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<chipotle> hi, i'm learning ruby but would like to hire a mentor to help me out as i go through the well grounded rubyist. anybody here interested?
<centrx> TheLarkInn, Yes
<TheLarkInn> I'm sure if you were wanting to take some strings or something and make instance vars out of them that would be the way to do it
<TheLarkInn> I forget how it works
<centrx> chipotle, And here I was wasting my time helping people for free!
* TheLarkInn looks it up
<chipotle> centrx: well, free would be nice, but i assume people would want to be paid
DrShoggoth has joined #ruby
<chipotle> i'm looking for a mentor that can help me when i get stuck and encourage me
<centrx> chipotle, Oh :( I only help people with a very discouraging demeanor
lmickh_ has joined #ruby
jkamenik has quit [Quit: Leaving.]
joshu has joined #ruby
philtr_ is now known as philtr
davidhq has quit [Ping timeout: 272 seconds]
<centrx> TheLarkInn, It is doable, but for what he wanted to do it is bad practice
Megtastique has quit []
<TheLarkInn> yeah you are right, I suppose he could make a results class and then have every result be an instance variable
<LadyRainicorn> chipotle: Maybe
<TheLarkInn> wouldn't be TERRIBLE
<TheLarkInn> but yeah not what it is designed for
<havenwood> chipotle: Here is a good place to ask questions, but yeah a mentor is nice.
<centrx> TheLarkInn, You could get rid of arrays and hashes with that :)
<TheLarkInn> well what are hashes other than a bunch of loosey goosy properties of something or other
<LadyRainicorn> What sort of help do you want?
* LadyRainicorn is good at encouragement.
<TheLarkInn> I've been yelling at my obj-c/cocoa friends to stop using NSDictionary because everything is easier using object properties or ivars
* LadyRainicorn gives chipotle a gold star.
<mjc_> heh
lmickh has joined #ruby
MrJoshua has joined #ruby
<TheLarkInn> I actually like using hashes like switches
mlpinit has quit [Remote host closed the connection]
<LadyRainicorn> That sounds like a bad idea.
<TheLarkInn> {0 => "Hi", 1 => "Hey There", 2 => "Good Bye", 3 => "See Ya"}
<TheLarkInn> in a db that returns just id's and you don't want to access the tie table
rudisimo has quit []
lmickh_ has quit [Ping timeout: 252 seconds]
<TheLarkInn> storing a hash const of the ids as keys and their values as the values has been fun
<chipotle> LadyRainicorn: whats your rate?
Jdubs has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> Ah, I was thinking {red: ->{puts('hi')}, blue: ->{puts('yo')}}[:blue].()
<TheLarkInn> LOL oh no hahahaha
<TheLarkInn> god that is aweful
<TheLarkInn> no but I am not oppsed to making called Proc's as values
cj3kim has joined #ruby
<TheLarkInn> so much easier to read, and seems to run faster than case switches
<havenwood> chipotle: A bit spendy, but I bet Jesse Storimer's workshops are worth every penny: http://www.jstorimer.com/products/unix-fu-workshop
Virtualize has quit [Quit: Leaving...]
mlpinit has joined #ruby
phipes has joined #ruby
<chipotle> thxs
dangerousdave has quit []
dlibanori has quit [Quit: dlibanori]
tyl has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<LadyRainicorn> I actually had to use that once, but the procs were being generated programatically.
<LadyRainicorn> (I forget why, but the construct was highly memorable.)
maletor has joined #ruby
<TheLarkInn> a = Proc.new {puts "Hello there how are you"}
<TheLarkInn> b = Proc.new {puts "Goodbye"}
<TheLarkInn> c = Proc.new {puts "Oh hai"}
<TheLarkInn> hash = {:a => a, :b => b, :c => c}
<TheLarkInn> hash[:a].call
<TheLarkInn> Hello there how are you
<TheLarkInn> => nil
LadyRainicorn has left #ruby ["Leaving"]
LadyRainicorn has joined #ruby
end_guy has joined #ruby
Megtastique has joined #ruby
<LadyRainicorn> That is what came to my mind when you said you replaced case statements with hashes.
cj3kim has quit [Ping timeout: 252 seconds]
Hobogrammer has quit [Quit: Leaving]
<LadyRainicorn> (It was not an image of well-written code. ;p)
tyl has quit [Client Quit]
<TheLarkInn> thats not toooooo terrible
fede_ has quit [Ping timeout: 245 seconds]
<DouweM> but in that case why not just use a case statement
<LadyRainicorn> It's pretty terrible.
tyl has joined #ruby
jglauche has left #ruby [#ruby]
tyl has quit [Client Quit]
AndChat| has quit [Ping timeout: 248 seconds]
<shevy> your code sickens me
drumusician has joined #ruby
<centrx> Thy code is like the toad, ugly and venomous.
prc has left #ruby [#ruby]
DrOwl has quit [Ping timeout: 245 seconds]
freezey has quit [Remote host closed the connection]
achru has joined #ruby
wtfitsme has joined #ruby
<LadyRainicorn> >> {->{}: ->{:evil}}[->{}].()
<eval-in> LadyRainicorn => /tmp/execpad-905d573e60ea/source-905d573e60ea:2: syntax error, unexpected ':', expecting => ... (https://eval.in/91255)
<LadyRainicorn> >> {->{} => ->{:evil}}[->{}].()
<eval-in> LadyRainicorn => undefined method `call' for nil:NilClass (NoMethodError) ... (https://eval.in/91256)
<LadyRainicorn> Aww
<LadyRainicorn> >> {->{} => ->{:evil}}.first.()
<eval-in> LadyRainicorn => undefined method `call' for #<Array:0x423c6300> (NoMethodError) ... (https://eval.in/91257)
<LadyRainicorn> >> {->{} => ->{:evil}}.keys.first.()
<eval-in> LadyRainicorn => nil (https://eval.in/91258)
<LadyRainicorn> huh
<LadyRainicorn> >> {->{} => ->{:evil}}.values.first.()
<eval-in> LadyRainicorn => :evil (https://eval.in/91259)
zigomir has quit [Remote host closed the connection]
<LadyRainicorn> oh god I'm so tired lol
<ktosiek> Hi! I'm just starting to learn Ruby (I'm coming from mostly Python), what versions of Ruby are in use now?
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<LadyRainicorn> 2.1
<wtfitsme> Hello I am new to Ruby and trying to understand the following statement: inline.map{ |js| js[/new Highcharts\.Chart\((.+?\})\);/m,1] }.compact[0] - specifically I an wondering what the the significance of "js[/new Highcharts\.Chart\((.+?\})\);/m,1]" in the block.
Hobogrammer has joined #ruby
<LadyRainicorn> (Unlike Python, we looooove upgrades. ;p0
<shevy> ktosiek I use 1.9.3
<ktosiek> LadyRainicorn: yeah, I know, like with 1.8 -> 1.9 migration
zigomir has joined #ruby
<centrx> wtfitsme, It is using regex to select from an array
<DouweM> I'm on 1.9.3 as well, but there's no reason not to go with 2.1 if you're starting now
<DouweM> it's not like Python 2/3
<shevy> ohhh
<shevy> why are you not on 2.1 DouweM?
<wtfitsme> I understand it is a regex match but I dont under stand the [ ]'s
<DouweM> shevy: laziness I guess
<ktosiek> (I hope 1.8 is dead now?)
<wtfitsme> ah because it is an array?
phinfonet has quit [Read error: Connection reset by peer]
<shevy> wtfitsme the [] ? is a method on a string I reckon
<apeiros> ktosiek: [] is a method in ruby
<centrx> wtfitsme, Yes, the basic usage would be array[0] (or maybe it is a string)
phinfonet has joined #ruby
<LadyRainicorn> 1.8 is dead except for that one person who never turned off their work computer here earlier.
<apeiros> >> "some_string"[0,2]
<eval-in> apeiros => "so" (https://eval.in/91260)
<shevy> wtfitsme look
<apeiros> with numbers it's a substring based on offset+length
<shevy> >> "abc"[/a/]
<eval-in> shevy => "a" (https://eval.in/91261)
<apeiros> with a regex, it's a substring based on the regex
<wtfitsme> aha! brilliant thanks!
<apeiros> >> "abcd"[/.c./]
<eval-in> apeiros => "bcd" (https://eval.in/91262)
<wtfitsme> thanks all!
<shevy> hehe
<shevy> now that eval-in is back, it accounts for like 40% of the channel traffic :D
rburton- has joined #ruby
<wtfitsme> i was thinking list comprehensions coming from erlang :)
<shevy> bring some erlang magic into ruby wtfitsme
<wtfitsme> elixir!
<ktosiek> are there any tools for testing code on multiple versions of ruby? (maybe something like python's tox if anyone knows that)
<TheLarkInn> wait LadyRainicorn, why is that worse than a case switch
ineb has left #ruby [#ruby]
<ktosiek> and is there a good tutorial for people who know some other dynamic language already?
<TheLarkInn> codecademy.com
<TheLarkInn> is my fav
<LadyRainicorn> It's extremely icky and doesn't allow control flow as well.
shadoi has quit [Quit: Leaving.]
<LadyRainicorn> I suppose there might be places where it's a valid use.
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LadyRainicorn> But really you should think very hard if procs are your values.
<TheLarkInn> Well I mean, if I'm wanting "flow control" I prob wouldn't use it
francisfish has quit [Remote host closed the connection]
<LadyRainicorn> (and go kill yourself if they're keys.)
<TheLarkInn> so I understand what you mean
<angusiguess> ruby edgecase koans is interesting if you want to know a lot about the language's basic behaviour.
zigomir has quit [Ping timeout: 264 seconds]
Naoe-Kanno has joined #ruby
justsee has quit [Ping timeout: 265 seconds]
<TheLarkInn> yeah if you are using abunch of boolean flow control yeah thats true
<TheLarkInn> but if simply if this then that
deens has joined #ruby
<TheLarkInn> I mean I suppose you could also incorporate else, by setting a proc as the default value for a hash lol
<TheLarkInn> now that seems disgusting
yaymukund has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
DrShoggoth has joined #ruby
SHyx0rmZ has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby
yfeldblum has joined #ruby
rayners has quit [Remote host closed the connection]
Naoe-Kanno has quit [Ping timeout: 260 seconds]
blueOxigen has quit [Ping timeout: 272 seconds]
davidhq_ has quit [Remote host closed the connection]
rayners has joined #ruby
DrShoggoth has quit [Client Quit]
davidhq has joined #ruby
<TheLarkInn> d = Proc.new {puts "hello world"}
<TheLarkInn> hash = Hash.new(d)
<TheLarkInn> hash[:a] = a
<TheLarkInn> hash[:herp].call
<TheLarkInn> hello world
<TheLarkInn> => nil
iliketurtles has joined #ruby
<apeiros> TheLarkInn: that piece in the topic about >3 lines in a paste service is serious :)
iliketurtles has quit [Excess Flood]
justsee has joined #ruby
shadoi has joined #ruby
iliketurtles has joined #ruby
davidhq has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 272 seconds]
davidhq has joined #ruby
<TheLarkInn> OH crud I totally spaced, I'm sorry about that
<TheLarkInn> I'll gist next time.
davidhq has quit [Remote host closed the connection]
ctp has joined #ruby
davidhq has joined #ruby
<shevy> LET'S BAN HIM!!!
<TheLarkInn> :-(
nisstyre has joined #ruby
<TheLarkInn> there ya go! :-D line friendly and interactive fun version
mlpinit has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
<shevy> I am too lazy to look at external pastes
ctp has quit [Ping timeout: 272 seconds]
<shevy> paste here
Virtualize has joined #ruby
fijimunkii has quit [Ping timeout: 246 seconds]
mlpinit has joined #ruby
thumpba_ has joined #ruby
mhenrixon is now known as mhenrixon|afk
mocfive has joined #ruby
allaire has quit []
DrOwl has joined #ruby
allaire has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
IceyEC has quit [Quit: IceyEC]
decoponio has joined #ruby
thumpba_ has quit [Client Quit]
thumpba_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
funburn has joined #ruby
aspires has joined #ruby
Vitor__ has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
Virtualize has quit [Ping timeout: 260 seconds]
asteve has left #ruby ["Textual IRC Client: www.textualapp.com"]
allaire has quit [Client Quit]
atmosx has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
yfeldblum has quit [Remote host closed the connection]
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
<atmosx> hello
thumpba__ has joined #ruby
burlyscudd has joined #ruby
phansch has quit [Quit: Leaving]
mois3x has joined #ruby
colonolGron has quit [Quit: leaving]
e62 has quit [Ping timeout: 272 seconds]
kaldrenon has quit [Remote host closed the connection]
rooster_rus has joined #ruby
derick_skibotn has quit [Ping timeout: 245 seconds]
rayners has quit [Remote host closed the connection]
kaldrenon has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
thumpba_ has quit [Remote host closed the connection]
<sickweezle> ohai
mityaz has quit [Quit: See ya!]
thumpba_ has joined #ruby
<sickweezle> Erm , what would cause RSpec::Core::ExampleGroup::Nested_3 to be the return value from an rspec test? O.o
mocfive has quit [Remote host closed the connection]
<MrZYX> your code would? :P
larissa has joined #ruby
mocfive has joined #ruby
<sickweezle> :p
prc has joined #ruby
cbetta_afk is now known as cbetta
mocfive_ has joined #ruby
spyderman4g63 has quit []
mocfive has quit [Read error: Connection reset by peer]
<shevy> hmm
<shevy> some_string.gsub(/\n/,'') vs some_string.delete("\n")
<shevy> .delete is better in this case or?
<MrZYX> I'd say so
<apeiros> IMO yes
alexfreidah has joined #ruby
ukd1 has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
<atmosx> Hello fellas
kevinykchan has quit [Ping timeout: 272 seconds]
<atmosx> I saw the 'Jobs' movie with Kutcher. I want two hours of my life back.
bean__ has joined #ruby
<shevy> haha
<centrx> You should have seen "Yukihiro Matsumoto"
<shevy> atmosx don't say you don't like Kutcher
<atmosx> is there a way inspect 'm' here in order to understand if the object returns an exception? In line 11 https://gist.github.com/atmosx/8482743
<shevy> centrx man I want to see a movie with Samurai Yukihiro Matsumoto slicing monster python apart with a red katana
<atmosx> shevy: it's not Kutcher, it's the whole thing... It's not a movie, doesn't feel like it, nor as a documentary. And it's all wrong no idea why did it.
rootshift has joined #ruby
graft has quit [Ping timeout: 264 seconds]
<shevy> hehehe
thumpba_ has quit [Remote host closed the connection]
<sickweezle> Okay. https://gist.github.com/ncolton/0f8ac6984aad83812c58 has the two files involved and the output of rspec. I must be doing something wrong, but /what/ sure isn't obvious to me. Please help?
chrisseaton has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
pranny1 has quit [Quit: Leaving.]
kevinykchan has joined #ruby
jerius has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
thumpba_ has joined #ruby
<sickweezle>
cbetta is now known as cbetta_afk
cbetta_afk is now known as cbetta
achru has quit [Remote host closed the connection]
thesheff17 has joined #ruby
ctp has joined #ruby
claymore has quit [Ping timeout: 260 seconds]
asteros has joined #ruby
sassamo has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
thumpba_ has quit [Remote host closed the connection]
fijimunkii has joined #ruby
ehc has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
OdNairy has joined #ruby
claymore has joined #ruby
dayepa has quit [Quit: dayepa]
vlad_sta_ has quit [Remote host closed the connection]
deens has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 272 seconds]
tannerburson has quit [Quit: tannerburson]
mocfive_ has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
graft has joined #ruby
mocfive has joined #ruby
cbetta is now known as cbetta_afk
Megtastique has quit []
yfeldblum has joined #ruby
frog0909_ has joined #ruby
<atmosx> Oh, that was extremely easy.. hm
tjbiddle has joined #ruby
shaunbaker has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
asteros has quit [Quit: asteros]
mradmacher has quit [Quit: leaving]
EngierkO has quit [Ping timeout: 252 seconds]
e62 has joined #ruby
frog0909 has quit [Ping timeout: 246 seconds]
mocfive has quit [Ping timeout: 260 seconds]
stryek has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
cbetta_afk is now known as cbetta
ndrei has quit [Ping timeout: 252 seconds]
claymore has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
Megtastique has joined #ruby
kotk has joined #ruby
claymore has joined #ruby
philtr has left #ruby [#ruby]
LadyRainicorn has quit [Ping timeout: 252 seconds]
pushpak_ has joined #ruby
pushpak_ has quit [Client Quit]
freerobby has quit [Ping timeout: 252 seconds]
philtr has joined #ruby
apples_ has joined #ruby
pushpak has quit [Ping timeout: 265 seconds]
Al1_andre has quit [Quit: Ex-Chat Timed out]
sailias has quit [Quit: Leaving.]
asteros has joined #ruby
mocfive has joined #ruby
<MrZYX> sickweezle: try checking LinkHandler.method(:describe).source_location inside the test, maybe rspec overwrites it
mhenrixon|afk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peregrin_ has quit []
asteros has quit [Client Quit]
wchun has quit [Quit: Leaving]
Zenreich has quit [Ping timeout: 252 seconds]
cgore has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
nanoyak has joined #ruby
nobitanobi has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
<nobitanobi> hi guys.
<nobitanobi> I am confused about this method: http://www.imagemagick.org/RMagick/doc/image1.html#new -- It says I can pass optional parameters in { }. But how do I separate each parameter? Right now I have Image.new(width,height) { self.background_color => 'black' } And I would like to add depth => 8
ReachingFarr has left #ruby [#ruby]
frog0909_ has quit [Ping timeout: 246 seconds]
<nobitanobi> sorry I have { self.background_color = 'black' }
jtdowney has quit []
nisstyre has quit [Read error: Connection reset by peer]
deens has joined #ruby
<MrZYX> it's ruby code
<MrZYX> just separate it by newlines
nateberkopec has quit [Quit: Leaving...]
ukd1 has quit [Read error: Connection reset by peer]
<nobitanobi> oh, new lines?
<MrZYX> it's a normal block, yes
<nobitanobi> hum, that's new to me
<nobitanobi> I didn't know that. Thanks MrZYX
ukd1 has joined #ruby
<MrZYX> like when you do some_array.each do |item|
<MrZYX> nothing else
Jake232 has joined #ruby
Jake232 has quit [Client Quit]
nateberkopec has joined #ruby
<TheLarkInn> meh I like one liners, blocks seem so unruby to me
coda23 has joined #ruby
wallerdev has quit [Quit: wallerdev]
<bnagy> that's a really crap initialisation API imho
<nobitanobi> MrZYX, i SEE :)
<nobitanobi> *ups I see
<TheLarkInn> array.map{|x| x.map{|y| y + y + 4; y / y;}}
<bnagy> Image.new(blah) { BLOCK THAT ACCESSES CLASS METHODS LOL I READ TOO MUCH _WHY }
<TheLarkInn> hello.come.to.the.ruby.side.map{|x| forevvvveerrrr }
<MrZYX> bnagy: sure, they tried and failed a ruby builder pattern I think
<centrx> Where does that self come from anyway
ukd1 has quit [Client Quit]
<MrZYX> it's probably instance_eval'd
<bnagy> like if they're going to be "tricksy" they should at least have taken out the self.
mlpinit has quit [Remote host closed the connection]
<MrZYX> you have to choose between the "beautiful" = or not doing the self
<MrZYX> key "value" or self.key = "value"
peregrin_ has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
mlpinit has joined #ruby
tyl has joined #ruby
baordog_ has joined #ruby
saarinen has quit [Quit: saarinen]
workmad3 has joined #ruby
tkuchiki has joined #ruby
ndrei has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
pranny has quit [Quit: Leaving.]
mocfive has quit [Remote host closed the connection]
nanoyak has quit [Ping timeout: 264 seconds]
mocfive has joined #ruby
<shevy> ewww
<shevy> that is so python!
nisstyre has joined #ruby
duggiefresh has quit [Remote host closed the connection]
ctp has joined #ruby
nanoyak has joined #ruby
mhenrixon has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freezey has joined #ruby
mhenrixon is now known as mhenrixon|afk
coder_neo has joined #ruby
mhenrixon|afk is now known as mhenrixon
klaut has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 248 seconds]
<atmosx> shevy: what's wrong with py? :-P it's like if you hate it or something
dik_dak has joined #ruby
<shevy> atmosx yes. explicit self stinks for a "OOP" language
thesheff17 has quit [Ping timeout: 246 seconds]
freezey has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
claymore has quit [Quit: Leaving]
kevinykchan has quit [Quit: Computer has gone to sleep.]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
mary5030 has quit [Remote host closed the connection]
mordocai has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
v0n has quit [Quit: WeeChat 0.4.3-dev]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
devdazed has quit [Quit: Bye]
kirun has quit [Quit: Client exiting]
ndrei has joined #ruby
brianpWi1s has joined #ruby
pu22l3r has joined #ruby
trinode has joined #ruby
<sickweezle> MrZYX: Will do. Thank you! That gives me a good place to start.
interactionjaxsn has quit [Remote host closed the connection]
<trinode> in rubymine, if **/features/{*_test,test_*}.rb matches my feature tests, and **/controllers/{*_test,test_*}.rb matches my controller tests, how do I write one expression to cover both?
<trinode> oh that was easy
<trinode> I never work it out until I ask
<centrx> Glad we could help
<trinode> :)
<shevy> our hive brain helped you
<shevy> it's like the zen of ruby
IcyDragon is now known as IceDragon
<shevy> as individual you don't see the individual tree anymore
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mhenrixon has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
mhenrixon has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Soda has quit [Quit: Soda]
coderhs has quit [Ping timeout: 265 seconds]
coder_neo has quit [Quit: Leaving]
vinse has joined #ruby
vinse has left #ruby [#ruby]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fijimunkii has quit [Ping timeout: 252 seconds]
fedesilv_ has quit [Ping timeout: 246 seconds]
ldcicconi has joined #ruby
thumpba__ has quit [Remote host closed the connection]
cj3kim has joined #ruby
OdNairy has joined #ruby
OdNairy has quit [Client Quit]
maroloccio has quit [Quit: WeeChat 0.4.2]
mlpinit has quit [Remote host closed the connection]
baordog_ has quit [Remote host closed the connection]
<ldcicconi> when I run bundle install, the installation will get to json and exit and print an error statement. any ideas?
vlad_starkov has joined #ruby
havenwood has quit [Remote host closed the connection]
nifty has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
heftig has joined #ruby
freezey has joined #ruby
cj3kim has quit [Ping timeout: 248 seconds]
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
cantonic has quit [Quit: cantonic]
aspires has quit [Remote host closed the connection]
jarileskinen has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
<sickweezle> MrZYX: Dead on. 'puts LinkHandler.method(:describe).source_location' inside the test resultes in -> ...lib/rspec/core/dsl.rb\n17
<shevy> I swear
<shevy> KDE and GNOME...
nateberkopec has quit [Quit: Leaving...]
<MrZYX> ldcicconi: reading the error message generally helps
<MrZYX> sickweezle: since you're nowhere using subject or described_class, I'd check if just not doing describe LinkHelper fixes that
Megtastique has quit []
cantonic has joined #ruby
cantonic has quit [Client Quit]
<ldcicconi> MrZYX: this is the error http://pastebin.com/pA1Xveg9
<MrZYX> iirc you're missing ruby19-full or -dev or whatever it was
freezey has quit [Ping timeout: 246 seconds]
<shevy> yeah
<shevy> ldcicconi your system was crippled by debian
<shevy> they took away mkmf by default
<shevy> because they know you are not going to need it!
<ldcicconi> nooooooooooooo
<ldcicconi> damn debian
<sickweezle> MrZYX: Yeah. Didn't realize describe was a method that way. Heh. >.<
w4pm has quit [Ping timeout: 272 seconds]
deens has quit [Remote host closed the connection]
<shevy> ldcicconi you can apt-get restore that thing somehow, you only have to find out by which name they are hiding it
<sickweezle> So yeah, I'm feeling a bit dumb at the problem.
<ldcicconi> shevy: what exactly am I looking for?
jonahR has joined #ruby
<shevy> sudo aptitude install ruby1.9.1-dev
<shevy> something like that
<shevy> one day consider using a distribution that doesn't cripple stuff for ya :D
habanany1 has quit [Ping timeout: 252 seconds]
terrellt has joined #ruby
cbetta is now known as cbetta_afk
habanany has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
relix has joined #ruby
fijimunkii has joined #ruby
kevind has quit [Quit: kevind]
jay_m has joined #ruby
<jay_m> hi all
unixpro1970 has joined #ruby
coda_23 has joined #ruby
e62 has quit [Ping timeout: 265 seconds]
<centrx> Ahoy
<jay_m> hey
<jay_m> Im new to ruby its my first programming language ever
<jay_m> :)
<jay_m> Python guys were rude
<jay_m> so I'm here
<centrx> Cool
<jay_m> :)
<centrx> Python is awful anyway :)
<jay_m> thanks
<shevy> jay_m wait
<jay_m> so ruby for life
<jay_m> :)
<jay_m> shevy: its me
<shevy> jay_m I remember you
<shevy> JAY-Z
<jay_m> I know this morning
<jay_m> :P
<jay_m> we talked
<shevy> why do you switch nicks :(
<jay_m> Im back at home
mocfive has joined #ruby
<shevy> it confuses the hell outta me
<jay_m> sorry sorry
<jay_m> this is my main one
<jay_m> lo
<shevy> I am old man
<jay_m> lol
<jay_m> I was at uni
SHyx0rmZ has joined #ruby
<shevy> well alright, you are excused
<jay_m> Ruby ftw
<jay_m> :D
<shevy> yeah
<shevy> ruby rocks
<shevy> but I can tell you, there is shit software out there ALL OVER THE PLACE
<jay_m> :)
<jay_m> shevy: thanks
<jay_m> Python sucks
coda23 has quit [Ping timeout: 272 seconds]
<jay_m> Im going ruby
<jay_m> Already added a bunch of Ruby bookmark
<shevy> ../../py-compile: Missing argument to --destdir.
<jay_m> thx again
<jay_m> lol
<jay_m> .py
<jay_m> ;P
Jetchisel has joined #ruby
<shevy> and avahi fails because of that
Megtastique has joined #ruby
venkat has quit [Remote host closed the connection]
<jay_m> :)
tyl has joined #ruby
ktosiek has quit [Ping timeout: 248 seconds]
asteros has joined #ruby
mehlah has quit [Quit: Leaving...]
SCommette has quit [Quit: SCommette]
pel_daniel has left #ruby [#ruby]
<shevy> if software would only be written in ruby
funburn has quit [Quit: funburn]
<shevy> but no we have C/C++/Obj-C/D/Java/Go/anything_else and then we have autoconfigure/cmake/ant/gmake/who-knows-what-else
<centrx> Now you've gotten him riled up
lmickh has quit [Remote host closed the connection]
<MrZYX> shevy: do you know topaz?
jlast has quit [Remote host closed the connection]
<shevy> topaz? the stone?
<MrZYX> no the ruby implementation. it's ruby written in python
<shevy> !!!!!!
<shevy> hmm no, have not heard of that before