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
<nhhagen> godd2: a line a least, there are 60k lines or something
<godd2> nhhagen: just a handful of lines to get the idea
fgo has quit [Remote host closed the connection]
Guest15306 has quit [Ping timeout: 272 seconds]
shadoi has quit [Quit: Leaving.]
<godd2> bnagy: You're right, I was wrong, File.read won't do that.
Spami has quit [Quit: This computer has gone to sleep]
maletor has quit [Quit: Computer has gone to sleep.]
breakingthings has quit []
darthdeu has joined #ruby
Lewix has joined #ruby
<bnagy> File.foreach("no.txt").map {|l| l.split[1]}.uniq works for me on that data
_mtr has joined #ruby
<nhhagen> it is just so lovely to move away from C# and Java and back to highlevel languages, used to do python when I was young
<nhhagen> bnagy: I'll give i a go
eka has joined #ruby
RSTJNII has quit [Ping timeout: 272 seconds]
<nhhagen> bnagy: no uniq.each?
<bnagy> split splits on whitespace by default :/ probably more readable to explicitly split by "\t"
<bnagy> well just tack each onto the end
laphlaw has joined #ruby
<nhhagen> bnagy: and the might be spaces to keep as well
<bnagy> I'm just saying the uniq'ing works fine
<nhhagen> thx
Animawish has joined #ruby
sparrovv has joined #ruby
pcya911 has joined #ruby
kotk has quit [Ping timeout: 245 seconds]
geggam has quit [Quit: fewd and sleep]
Txandy|away is now known as Txandy
darthdeus has quit [Ping timeout: 260 seconds]
ctp has quit [Quit: Leaving...]
Spami has joined #ruby
<bnagy> I don't know how smart open is, but you might find foreach or readlines has a better memory profile if the file is huge
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<bnagy> File.readlines // map // uniq // each is pretty readable imho
yazdmich has quit [Changing host]
yazdmich has joined #ruby
sassamo has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
sassamo has joined #ruby
VTLob has quit [Quit: VTLob]
Jetchisel has joined #ruby
Wolland has joined #ruby
<godd2> Fractional: have you messed around with Ocra at all? https://github.com/larsch/ocra
<nhhagen> these files might get "hugeish", millions of records is likely
el_cristobal has left #ruby ["Leaving"]
<godd2> That and releasy will help you distribute your games.
ambushsabre has quit [Quit: rip]
vlad_starkov has quit [Ping timeout: 272 seconds]
sassamo has quit [Remote host closed the connection]
<bnagy> nhhagen: if that's the case then uniq might not be lazy enough
sassamo_ has joined #ruby
<bnagy> but meh, not much to be done about that
<nhhagen> bnagy: they might get cleaned in stages and stored on disk in between
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
<nhhagen> bnagy: mostly I'm using this as a case to learn some ruby
<bnagy> you can use a KV store as a lazy uniqing tool
chrisseaton has joined #ruby
LadyRainicorn has quit [Ping timeout: 272 seconds]
parduse has quit [Read error: Connection reset by peer]
<nhhagen> bnagy: elasticsearch is the destination, if I se the the key to be "place" then it will take care of that for me, but i a production scenario this info will probably be pulled from some kind of DB, cleaned and ready
apeiros has quit []
cbetta is now known as cbetta_afk
cashnguns has joined #ruby
<bnagy> also if it's mapreducey type stuff it's sometimes easier just to live with the dups, they fall out in reduce anyway
<nhhagen> bnagy: yep, I work with search engines on a daily basis
mehlah has quit [Quit: Leaving...]
braddeicide has joined #ruby
braddeicide has left #ruby [#ruby]
<godd2> According to this StackOverflow, "File#each doesn't load the whole file into memory, it does one line at a time:": http://stackoverflow.com/questions/1090357/how-can-i-handle-large-files-in-ruby
LadyRainicorn has joined #ruby
asteros has joined #ruby
cbetta_afk is now known as cbetta
spyderman4g63 has quit [Read error: No route to host]
MatthewsFace has joined #ruby
deens has joined #ruby
spyderman4g63 has joined #ruby
rootshift has joined #ruby
Txandy is now known as Txandy|away
deens has quit [Remote host closed the connection]
ambushsabre has joined #ruby
godd2 is now known as godd2|away
ambushsabre has quit [Client Quit]
ss_ has joined #ruby
thumpba has quit [Remote host closed the connection]
ambushsabre has joined #ruby
<leo-the-manic> Is it better to comment my functions with # or with =begin/=end?
maletor has joined #ruby
fedesilva has joined #ruby
<leo-the-manic> Not inline comments but descriptions of args, etc
lfox has quit [Quit: ZZZzzz…]
Animawish has quit [Quit: Animawish]
ambushsabre has quit [Client Quit]
<bnagy> use # imho
<bnagy> =begin has stupid indenting rules
bw_ has joined #ruby
ambushsabre has joined #ruby
whomp has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Remote host closed the connection]
maxhodak has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
jedimind has quit [Disconnected by services]
<maxhodak> i'm getting really weird behavior where hashes are being passed by reference: https://gist.github.com/maxhodak/8428717
yedimind has joined #ruby
<maxhodak> has this always been true? i feel like i run into something like this every now and then and somehow avoid it the rest of the time
alexfreidah has joined #ruby
MattStratton has joined #ruby
<maxhodak> (obviously this has always been true, that's a joke.)
ambushsabre has quit [Quit: rip]
benlieb has quit [Quit: benlieb]
ambushsabre has joined #ruby
whomp has joined #ruby
<maxhodak> it gets even weirder when even if i .clone() and get different object_ids
<maxhodak> it *STILL* mutates the original
ambushsabre has quit [Client Quit]
byprdct has joined #ruby
<bnagy> it's not weird
<bnagy> well, clone not working is weird
<maxhodak> okay well it's undesired behavior. how should i work around it?
pskosinski has quit [Remote host closed the connection]
zz_karupanerura is now known as karupanerura
<maxhodak> i don't want to blow away a value while using the data somewhere else
marr has quit [Read error: Operation timed out]
<bnagy> then don't write to the hash
<bnagy> if you want a copy then make a copy :/
<maxhodak> making a copy doesn't work
baroquebobcat has quit [Quit: baroquebobcat]
<chrisseaton> maxhodak: can you show your copy with a copy?
Catie has quit [Disconnected by services]
KernelPone has joined #ruby
<bnagy> >> a={foo: 3}; b=a.clone; b[:foo]=4; a
<eval-in> bnagy => {:foo=>3} (https://eval.in/89342)
<bnagy> works for me (tm) ?
MatthewsFace has quit [Quit: This computer has gone to sleep]
sethen has joined #ruby
<bnagy> if the value were a ref to something else then you might see weirdness
vlad_starkov has joined #ruby
_HolyCow1 has joined #ruby
kep has quit [Quit: WeeChat 0.4.2]
<maxhodak> hmm. the toy example works with .clone, but my real code doesn't. calling `myfunction(data.clone)` still ends up in `data` being mutated as a side-effect
<maxhodak> `data` should just be a hash
<bnagy> well we can't debug code we can't see
<bnagy> but you could try the old deep_copy trick
_HolyCow has quit [Ping timeout: 265 seconds]
<bnagy> where you roundtrip through Marshal.dump / load
virt|away has quit []
<bnagy> it's relatively expensive though
<maxhodak> let me find the simplest block to reproduce here.
RagingDave has joined #ruby
RagingDave has quit [Remote host closed the connection]
fmcgeough has joined #ruby
<bnagy> honestly, though, simplest is likely "don't do that"
<bnagy> like, don't write to a hash you're being passed
<bnagy> you could eg make a shadow hash just to keep modified copies of the entries you want
<bnagy> local to your misbehaving method
vlad_starkov has quit [Read error: Connection reset by peer]
laphlaw has quit [Quit: Computer has gone to sleep.]
Xiti has quit [Ping timeout: 245 seconds]
<chrisseaton> maxhodak: you write to the hash on lines 9 and 19
predator117 has joined #ruby
araujo has joined #ruby
<chrisseaton> maxhodak: Ruby has call-by-reference (or call-by-name) semantics, so this is correct behaviour
laphlaw has joined #ruby
<maxhodak> yeah but why doesn't calling `linearize(data.clone)` fix it?
amacgregor_ has quit [Ping timeout: 246 seconds]
Megtastique has quit []
_HolyCow has joined #ruby
<bnagy> I think I would probably refactor this as a 'normal' recursion using a blank hash and then leave the user data alone
<maxhodak> also i want to seed the local hash with the existing contents, so just `local = data` will inherit the same reference
po10 has quit [Read error: Connection reset by peer]
<bnagy> like method recursion as opposed to lambda recursion.
virt|away has joined #ruby
Xiti has joined #ruby
_HolyCow1 has quit [Ping timeout: 245 seconds]
po10 has joined #ruby
predator217 has quit [Ping timeout: 260 seconds]
Jdubs has quit [Remote host closed the connection]
<bnagy> but, without looking at it, I don't know why clone doesn't work
<maxhodak> but seriously, why doesn't clone fix it?
top4o_ has joined #ruby
<bnagy> would need to see the actual data and debug the code
michael_mbp has quit [Read error: Operation timed out]
<bnagy> which I don't really want to do IRL :)
michael_mbp has joined #ruby
<chrisseaton> maxhodak: we can't see what you expect to happen - can you write the and a failing test?
<bnagy> if in doubt, write it again, stuff always works the second time
top4o has quit [Ping timeout: 252 seconds]
Sc0rp10n has quit [Quit: Leaving]
mlpinit has joined #ruby
chrisseaton has quit []
_mtr has quit [Remote host closed the connection]
nateberkopec has joined #ruby
nowthatsamatt has joined #ruby
nowthatsamatt has quit [Read error: Connection reset by peer]
vikhyat has quit [Read error: Connection reset by peer]
top4o has joined #ruby
cads has joined #ruby
mikepack has joined #ruby
<shevy> lol
vikhyat has joined #ruby
<bnagy> oh, no I think I do know why the clone doesn't work, and it's the obvious reason
sassamo_ has quit [Remote host closed the connection]
<bnagy> it's like I said before - if your toplevel has refs to other stuff, those will get cloned
lethjakman has quit [Ping timeout: 276 seconds]
<bnagy> and you're recursing into them
<bnagy> and modifying them
Animawish has joined #ruby
sassamo has joined #ruby
brunops has joined #ruby
<bnagy> so try the deep_copy trick I suggested above
<maxhodak> > if your toplevel has refs to other stuff, those will get cloned ?
<bnagy> yeah like if you clone {foo: some_hsh} then some_hsh is a ref
<maxhodak> marshalling seems like a totally ridiculous solution to this problem
<bnagy> if you then modify some_hsh then it will be modified for everthing that points to it
MrZYX is now known as MrZYX|off
<maxhodak> some_hsh is a ref only because apparently everything is a ref in ruby
<maxhodak> its just a hash
meatherly has joined #ruby
top4o_ has quit [Ping timeout: 252 seconds]
heidi has quit [Ping timeout: 252 seconds]
<maxhodak> like foo
<bnagy> no, it's a ref to a hash
<maxhodak> so if thats the problem i don't see how clone could ever work with hashes in ruby
<maxhodak> or you're saying
<maxhodak> it only works with 1-level hashes
<bnagy> it works fine for most simple stuff
<maxhodak> if we're defining {"a": {"b": 1}} as "advanced stuff"
mikepack has quit [Ping timeout: 245 seconds]
Hobogrammer has quit [Ping timeout: 272 seconds]
<bnagy> embedded refs, yeah
sassamo has quit [Ping timeout: 252 seconds]
rankine has joined #ruby
rrecio has joined #ruby
rrecio has quit [Remote host closed the connection]
rrecio has joined #ruby
brianpWins has quit [Quit: brianpWins]
vikhyat has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 276 seconds]
<godd2|away> Will {"a": {"b": 1}} work in Ruby 2.0? cause it wont in 1.9.3
godd2|away is now known as godd2
LadyRainicorn has quit [Quit: Bye]
vikhyat has joined #ruby
<bnagy> anyway rather than implement a deep copy for Hash you may as well just do your recursion with a new blank hash
<maxhodak> {"a" => {"b" => 1}}
rootshift has quit [Quit: rootshift]
<maxhodak> i'd rather not need to pass the hash around through the recursion
<bnagy> as I may have mentioned in the first place, since it involves the same recursive walk
sergicles has joined #ruby
<maxhodak> yeah but it's harder to build up a linear structure that way
<maxhodak> obviously you can do it but this is easier
<Fractional> Is after(milliseconds) {} default in ruby or from the Chingu library?
<bnagy> *shrug* I don't see why it's hard either way
robustus has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
<bnagy> but anyway. cheat and marshal, or write it properly, either should work
<bnagy> not sure I have much more to offer
mercwithamouth has quit [Ping timeout: 260 seconds]
SupaYoshi has joined #ruby
tyl has joined #ruby
Rix has quit [Ping timeout: 252 seconds]
<godd2> Fractional: looks like it's part of the chingu library
Fire-Dragon-DoL has joined #ruby
mr_red has quit [Ping timeout: 245 seconds]
robustus has joined #ruby
thumpba has joined #ruby
Rix has joined #ruby
ephemerian has left #ruby [#ruby]
bricker has quit [Quit: leaving]
IceDragon_ has joined #ruby
<Fractional> godd2: How would you make so a sample in Gosu would play every 122:th second?
IceyEC has joined #ruby
<godd2> 122:th ? as in every 0.0081967 seconds? or every 2 minutes 2 seconds?
ch0mskiii has quit [Read error: Connection reset by peer]
kevind has quit [Quit: kevind]
ch0mskiii has joined #ruby
IceDragon has quit [Disconnected by services]
IceDragon_ is now known as IceDragon
nanoyak has quit [Quit: Computer has gone to sleep.]
<Fractional> Sorry, my bad: 112:th second
<Fractional> Every 1 minute and 52 seconds
jtbw has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
recurrence has quit [Ping timeout: 252 seconds]
lyanchih_ has joined #ruby
brianpWins has joined #ruby
brianpWins has quit [Client Quit]
laphlaw has quit [Quit: Lingo - http://www.lingoirc.com]
<shevy> Fractional have you built a gem already?
_Andres has quit [Read error: Connection reset by peer]
<godd2> Fractional: I guess you could do something like this: https://gist.github.com/nicklink483/8429058\
nanoyak has joined #ruby
nhhagen has quit [Remote host closed the connection]
<godd2> sorry, fat fingered it: https://gist.github.com/nicklink483/8429058
cescalante is now known as ce_afk
<Fractional> shevy: A gem for what?
fedesilva has quit [Remote host closed the connection]
<shevy> Fractional a gem of one of your projects
rankine has quit [Quit: Leaving]
thenovices has joined #ruby
rrecio has left #ruby [#ruby]
tt1187 has quit [Ping timeout: 260 seconds]
<Fractional> Shevy: No I do not think so
DrShoggoth has quit [Quit: Leaving]
IceyEC_ has joined #ruby
<Fractional> shevy: I tried Ocra without much success a couple of months ago.
<shevy> ocra?
<Fractional> shevy: http://ocra.rubyforge.org/
<Fractional> godd2: Thank you very much, it works flawlessly!
<Fractional> flawless*
wald0 has quit [Quit: Lost terminal]
heidi has joined #ruby
MatthewsFace has joined #ruby
IceyEC has quit [Ping timeout: 253 seconds]
IceyEC_ is now known as IceyEC
havenwood has joined #ruby
<Fractional> I'm logging off. Take care and thanks for today! :)
Fractional has quit [Quit: Leaving]
sparrovv has quit [Remote host closed the connection]
mr_red has joined #ruby
zxd has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
sassamo has joined #ruby
nateberkopec has quit [Quit: Leaving...]
eka has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
<godd2> shevy: ocra helps you package your game for distribution. It bundles up a ruby interpreter to the exe it generates so the person doesn't have to install ruby or worry about dependencies
MatthewsFace has quit [Ping timeout: 245 seconds]
<godd2> but it only makes an executable for windows
maletor has quit [Quit: Computer has gone to sleep.]
MatthewsFace has joined #ruby
stryek has quit [Ping timeout: 245 seconds]
petey has joined #ruby
zxd has quit [Ping timeout: 272 seconds]
sepp2k has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
_Andres has joined #ruby
sassamo has quit [Ping timeout: 272 seconds]
sassamo has joined #ruby
troyready has quit [Ping timeout: 252 seconds]
olivier_bK has quit [Ping timeout: 252 seconds]
Targen has quit [Ping timeout: 272 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
Testing1231 has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
Testing1231 has quit [Client Quit]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
nhhagen has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
godd2 has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
Virtualize has quit [Quit: Leaving...]
timonv has joined #ruby
shadoi has joined #ruby
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
vikhyat has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
smathieu has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
Animawish has quit [Quit: Animawish]
jdguzman has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
mmcdaris has quit [Remote host closed the connection]
nhhagen has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 260 seconds]
heidi1 has joined #ruby
mneorr_ has joined #ruby
fedesilva has joined #ruby
framling has joined #ruby
asteros has quit [Quit: asteros]
heidi has quit [Read error: Connection reset by peer]
asteros has joined #ruby
habanany has joined #ruby
danshultz has joined #ruby
mneorr has quit [Ping timeout: 272 seconds]
IceyEC has quit [Quit: IceyEC]
nhhagen has quit [Ping timeout: 252 seconds]
mneorr_ has quit [Ping timeout: 245 seconds]
gja has joined #ruby
thedonvaughn has quit [Ping timeout: 252 seconds]
SupaYoshi has quit []
sailias has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
dukz has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
dj21 has quit [Remote host closed the connection]
thedonvaughn has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
fedesilva has quit [Remote host closed the connection]
jasonpp has left #ruby [#ruby]
amclain has joined #ruby
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
gja has quit [Quit: This computer has gone to sleep]
petey has quit [Remote host closed the connection]
fgo has joined #ruby
freerobby has joined #ruby
LiquidInsect has quit [Ping timeout: 248 seconds]
LiquidInsect has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
lyanchih_ has joined #ruby
KernelPone has quit [Quit: Time to go!]
heidi1 is now known as heidi
Xiti has joined #ruby
Virtualize has joined #ruby
maxhodak has quit [Quit: Textual IRC Client: www.textualapp.com]
aspires has quit []
mansi has joined #ruby
Briareos1 has quit [Remote host closed the connection]
Bosox20051 has quit [Remote host closed the connection]
gja has joined #ruby
nateberkopec has joined #ruby
sailias has joined #ruby
cashnguns has quit [Ping timeout: 252 seconds]
mmcdaris has joined #ruby
gja has quit [Client Quit]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Virtualize has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
gja has joined #ruby
replay has quit [Ping timeout: 248 seconds]
ch0mskiii has quit [Read error: Connection reset by peer]
replay has joined #ruby
ch0mskiii has joined #ruby
fgo has quit [Remote host closed the connection]
fedesilva has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtbw has joined #ruby
Lewix has quit [Remote host closed the connection]
gja has quit [Client Quit]
Lewix has joined #ruby
mmcdaris has quit [Client Quit]
vikhyat has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
vikhyat has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
Targen has joined #ruby
fgo has joined #ruby
tyl has quit [Ping timeout: 246 seconds]
sailias has quit [Ping timeout: 276 seconds]
vikhyat has quit [Read error: Connection reset by peer]
mykeus has quit [Quit: Leaving]
Lewix has quit [Ping timeout: 248 seconds]
vikhyat has joined #ruby
tyl has joined #ruby
digital-ghost has quit [Remote host closed the connection]
peterhellberg has quit [Ping timeout: 252 seconds]
subbyyy has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
vikhyat_ has joined #ruby
vikhyat has quit [Ping timeout: 252 seconds]
tyl has quit [Ping timeout: 272 seconds]
Voodoofish4301 has quit [Quit: Leaving.]
tyl has joined #ruby
fedesilva has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
havenwood has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
narcan has joined #ruby
fgo has quit [Remote host closed the connection]
ce_afk is now known as cescalante
lifestream has left #ruby ["Leaving"]
heidi has quit [Quit: Leaving.]
Trynemjoel has quit [Ping timeout: 245 seconds]
cashnguns has joined #ruby
lethjakman has joined #ruby
fgo has joined #ruby
Jdubs has joined #ruby
krz has joined #ruby
Butcho has joined #ruby
amacgregor_ has joined #ruby
vikhyat_ has quit [Read error: Connection reset by peer]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
vikhyat has joined #ruby
mneorr has joined #ruby
cescalante is now known as ce_afk
vikhyat has quit [Read error: Connection reset by peer]
<Butcho> getting a "can't convert nil into string" on https://gist.github.com/anonymous/8429920. Anyone tell what I'm doing wrong?
vikhyat has joined #ruby
michael_mbp has quit [Excess Flood]
tonni_ has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
agent_white has quit [Ping timeout: 272 seconds]
fijimunkii has joined #ruby
asteros has joined #ruby
mikepack has joined #ruby
tonni has joined #ruby
maletor has joined #ruby
byprdct has joined #ruby
Lewix has joined #ruby
<bnagy> post returns nil
agent_white has joined #ruby
<bnagy> you're using puts, which prints the output, but the puts method returns nil
rezzack has quit [Ping timeout: 276 seconds]
lioninawhat has joined #ruby
<Butcho> indeed, thanks
Trynemjoel has joined #ruby
ewnd9 has joined #ruby
cixelsyd has joined #ruby
lachesis has joined #ruby
IcyDragon has joined #ruby
cixelsyd has left #ruby [#ruby]
gregoriokusowski has quit [Quit: gregoriokusowski]
nhhagen has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
cbetta is now known as cbetta_afk
mocfive has joined #ruby
Hanmac1 has joined #ruby
nari has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
carif has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
havenwood has joined #ruby
mneorr has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
reset has quit [Quit: Leaving...]
reset has joined #ruby
<Butcho> so I just change puts to return and it returns the json. cool beans
nhhagen has quit [Ping timeout: 272 seconds]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
asteros has quit [Quit: asteros]
wildroman2 has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
mneorr has quit [Ping timeout: 272 seconds]
mocfive has quit [Remote host closed the connection]
reset has quit [Ping timeout: 245 seconds]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
crazymykl has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
freezey has joined #ruby
firewater5 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<firewater5> Can you include a comma inside a #{parameter} thing?
<firewater5> Example:
havenwood has quit [Ping timeout: 245 seconds]
<pontiki> if it's valid ruby syntax
<firewater5> "Hello, #{parameter}"
<firewater5> Can you have the parameter inside that thing, or is there not a way to really do that?
<pontiki> that's not inside the #{parameter} thing
<firewater5> I know its not.
wildroman2 has quit [Remote host closed the connection]
<pontiki> it's in the string, alongside the #{parameter} thing
<firewater5> I'm saying is there a way to make it though?
<firewater5> Yes, I know that.
<pontiki> whatever is inside #{} has be valid ruby syntax
<pontiki> it's just another block, basically
<firewater5> Or not really and if you want to vary a sentence based off of a certain thing happening, you would have to use if or cases?
fgo has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<pontiki> or write a method to put inside the #{} that returns what you'd like
<firewater5> So, basically, if I wanted to just say "hello" in one case and "hello, #{name}" with a comma in another, I would have to use if cases basically?
<firewater5> It seems the simplest way of doing it, and it does solve my problem.
<firewater5> But, I am just checking to see if there is another way or if that is the best way I guess.
alexfreidah has quit [Ping timeout: 252 seconds]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vikhyat has quit [Read error: Connection reset by peer]
<pontiki> do the simplest thing that works
vikhyat has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
freezey has quit [Remote host closed the connection]
<firewater5> Ok, I guess the simpliest way I can think of is an if else thing then.
<firewater5> I will just stick with that then.
<bnagy> >> @name = 'fred'; "hello#{@name && ", " << @name}"
<bnagy> awww evail-in died again already?
alekst has quit [Quit: Computer has gone to sleep.]
freezey has joined #ruby
Riking has quit [Ping timeout: 252 seconds]
jtbw has quit [Ping timeout: 245 seconds]
<firewater5> bnagy: Don't you think that doing a if else thing would be better though?
jtbw has joined #ruby
<pontiki> yeah, see, there are lots of ways to do something. do you understand how bnagy's thing works?
<pontiki> and will you in a year?
<firewater5> I don't 100% understand it no.
<firewater5> I think I get the idea behind it, but don't know if it actually works.
<pontiki> which is just slowing down your development
<firewater5> I know the if else thing works though.
amacgregor__ has joined #ruby
<pontiki> there's a time for learning, and time for play, and also a time for getting on with things
amacgregor_ has quit [Ping timeout: 276 seconds]
figgleberry has joined #ruby
<firewater5> pontiki: Are you saying that me not understanding that is bad or that sticking with a basic if else thing is bad?
<pontiki> neither is bad
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> it depends on what your desired outcome is
<firewater5> Desire is to learn stuff and get things done.
<pontiki> if you put the if-else in your code, you'd probably understand it every time you look at it
Butcho has joined #ruby
<firewater5> I think the if else statements meet my needs right now.
Butcho has quit [Max SendQ exceeded]
<firewater5> Yep.
<firewater5> I would basically yes.
<pontiki> if you put bnagy's in, it's a bit obscure, and you may stumble over it every time you see it
freezey has quit [Ping timeout: 272 seconds]
samuelkadolph has quit [Quit: Quitting]
yarou has joined #ruby
<pontiki> and stuff like that can be a distraction when you have to get a bug fixed fast, for example
Butcho has joined #ruby
<pontiki> neither is bad
samuelkadolph has joined #ruby
<bnagy> >> @name = "fred"; greeting = "hello"; greeting << ", #{@name}" if @name; greeting
lifestream has joined #ruby
nanoyak has quit [Ping timeout: 276 seconds]
<firewater5> Gotcha, thanks.
lifestream has left #ruby [#ruby]
lethjakman has quit [Ping timeout: 245 seconds]
<firewater5> Ok, well going to head off, appriciate both your guys help.
mneorr has joined #ruby
<bnagy> that would actually be readable and reasonable ( not all on one line )
<pontiki> as you grow used to the idioms, you can stretch out more
<bnagy> the first one isn't, really
<firewater5> pontiki: True.
<pontiki> bnagy: but it is cool
lifestream has joined #ruby
<firewater5> bnagy: Thanks for the xample, not saying its bad :).
<firewater5> Anyhow, thanks again going to head off.
<firewater5> See you all later :).
lifestream has left #ruby [#ruby]
<pontiki> take care
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
saarinen has quit [Quit: saarinen]
radic has quit [Ping timeout: 248 seconds]
qpls_ has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
timonv has joined #ruby
figgleberry has quit [Ping timeout: 252 seconds]
qpls has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
firewater5 has quit [Quit: Page closed]
byprdct has joined #ruby
vikhyat has joined #ruby
smathieu has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 272 seconds]
brunops has quit [Ping timeout: 245 seconds]
radic has joined #ruby
speakingcode has joined #ruby
smathieu has joined #ruby
IcyDragon has quit [Quit: Space~~~]
ewnd9 has quit [Ping timeout: 272 seconds]
thenovices has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 272 seconds]
_tpavel has joined #ruby
Butcho has quit [Quit: Textual IRC Client: www.textualapp.com]
smathieu has quit [Ping timeout: 272 seconds]
lachesis has quit [Ping timeout: 276 seconds]
ixti has quit [Ping timeout: 260 seconds]
petey has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
vikhyat has joined #ruby
mansi has joined #ruby
lachesis has joined #ruby
thomasxie has joined #ruby
fgo has joined #ruby
joast has quit [Ping timeout: 264 seconds]
rhys has quit [Remote host closed the connection]
dseitz has joined #ruby
dseitz has quit [Max SendQ exceeded]
dseitz has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
rhys has joined #ruby
baroquebobcat has joined #ruby
jtbw has quit [Ping timeout: 245 seconds]
darthdeu has quit [Quit: Leaving...]
jerius has quit []
aryaching_ has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
habanany has quit [Ping timeout: 252 seconds]
aryaching has quit [Ping timeout: 276 seconds]
ss_ has quit [Remote host closed the connection]
ss_ has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
aryaching has joined #ruby
ss_ has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
postmodern has quit [Quit: Leaving]
fijimunkii has quit [Ping timeout: 265 seconds]
aryaching_ has quit [Ping timeout: 265 seconds]
SHyx0rmZ has joined #ruby
havenwood has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
habanany has joined #ruby
yasushi has joined #ruby
braincra- has quit [Quit: bye bye]
yasushi has quit [Remote host closed the connection]
Txandy|away is now known as Txandy
sensen has joined #ruby
braincrash has joined #ruby
gja has joined #ruby
dukz has joined #ruby
JohnBat26 has joined #ruby
fijimunkii has joined #ruby
marcofernandez has joined #ruby
aryaching has joined #ruby
tyl has joined #ruby
thenovices has joined #ruby
vikhyat_ has joined #ruby
w4pm has quit [Ping timeout: 246 seconds]
thomasxie has quit [Ping timeout: 260 seconds]
vikhyat has quit [Ping timeout: 260 seconds]
yasushi has joined #ruby
juarlex has joined #ruby
thenovices has quit [Ping timeout: 260 seconds]
bricker`LA has quit [Ping timeout: 252 seconds]
dukz has quit [Remote host closed the connection]
bricker`LA has joined #ruby
dukz has joined #ruby
wildroman2 has joined #ruby
jacobsmith has joined #ruby
danshultz has quit [Remote host closed the connection]
Txandy is now known as Txandy|away
Barrin6 has joined #ruby
sassamo has joined #ruby
jacobsmith has quit [Client Quit]
thomasxie has joined #ruby
wildroman2 has quit [Ping timeout: 248 seconds]
petey has quit [Remote host closed the connection]
petey has joined #ruby
i_s has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
figgleberry has joined #ruby
yarou has quit [Quit: This computer has gone to sleep]
stetho has joined #ruby
sassamo has quit [Ping timeout: 245 seconds]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Riking has joined #ruby
petey has quit [Ping timeout: 252 seconds]
petey has joined #ruby
byprdct has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
meatherly has joined #ruby
aryaching has joined #ruby
Riking has quit [Ping timeout: 252 seconds]
vikhyat has joined #ruby
kate_r has joined #ruby
vikhyat_ has quit [Ping timeout: 272 seconds]
mneorr has quit [Ping timeout: 245 seconds]
Barrin6 has quit [Quit: Leaving]
Riking has joined #ruby
Riking has quit [Changing host]
Riking has joined #ruby
sLi_ has joined #ruby
gja has quit [Ping timeout: 252 seconds]
Virtualize has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
habanany has quit [Ping timeout: 272 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Virtualize has quit [Ping timeout: 245 seconds]
sguselnikov has joined #ruby
sguselnikov has quit [Client Quit]
fella7s has joined #ruby
_maes_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
aryaching_ has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 252 seconds]
danijoo has joined #ruby
CaptainJet has quit []
vikhyat has joined #ruby
bricker`LA has joined #ruby
fella6s has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
tyl has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
vikhyat has quit [Read error: Connection reset by peer]
kiri has quit [Ping timeout: 272 seconds]
mikepack has quit [Ping timeout: 246 seconds]
Spami has joined #ruby
vikhyat has joined #ruby
kiri has joined #ruby
nhhagen has joined #ruby
yasushi has joined #ruby
browndawg has quit [Quit: Leaving.]
vikhyat has quit [Read error: Connection reset by peer]
Deele has joined #ruby
i_s has joined #ruby
yasushi has quit [Remote host closed the connection]
vikhyat has joined #ruby
yasushi has joined #ruby
nhhagen has quit [Ping timeout: 245 seconds]
shadoi has quit [Quit: Leaving.]
vikhyat has quit [Read error: Connection reset by peer]
bluepojo has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
vikhyat has quit [Remote host closed the connection]
vikhyat has joined #ruby
cads has quit [Read error: Operation timed out]
i_s has quit [Ping timeout: 252 seconds]
snath has quit [Read error: Connection reset by peer]
vikhyat has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 248 seconds]
samsonasu has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
vikhyat has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
snath has joined #ruby
ahmedelgabri has joined #ruby
Virtualize has joined #ruby
mneorr has joined #ruby
vikhyat has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
havenwood has quit []
alexfreidah has joined #ruby
figgleberry has quit [Ping timeout: 252 seconds]
sLi_ has quit [Remote host closed the connection]
vikhyat has quit [Read error: Connection reset by peer]
Virtualize has quit [Ping timeout: 272 seconds]
vikhyat has joined #ruby
pu22l3r has joined #ruby
alexfreidah has quit [Ping timeout: 248 seconds]
thenovices has joined #ruby
timonv has joined #ruby
brunops has joined #ruby
mykeus has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
h0lyalg0rithm has joined #ruby
h0lyalg0rithm has quit [Max SendQ exceeded]
h0lyalg0rithm has joined #ruby
jcarouth has quit [Excess Flood]
jcarouth has joined #ruby
sparrovv has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
thenovices has quit [Ping timeout: 272 seconds]
h0lyalg0rithm has quit [Client Quit]
timonv has quit [Ping timeout: 252 seconds]
vikhyat has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
dseitz has quit [Max SendQ exceeded]
cads has joined #ruby
binw has quit [Read error: Connection reset by peer]
sparrovv has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
sassamo has joined #ruby
dukz has quit [Remote host closed the connection]
mneorr has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
petey has quit [Remote host closed the connection]
Alina-malina has joined #ruby
vikhyat has joined #ruby
vikhyat has quit [Remote host closed the connection]
xpirator has joined #ruby
binw has joined #ruby
vikhyat has joined #ruby
dseitz has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
sassamo has quit [Ping timeout: 276 seconds]
mneorr has quit [Ping timeout: 272 seconds]
mlpinit has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
danshultz has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
thenovices has joined #ruby
nateberkopec has quit [Quit: Leaving...]
gregoriokusowski has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
lioninawhat has quit [Read error: Operation timed out]
danshultz has quit [Ping timeout: 260 seconds]
AllusiveGold has joined #ruby
<AllusiveGold> Resolve anyones skype name into an IP address using "http://ct.lefs.me/skype/resolve.php?id=USERNAME" free skype resolver, fast and accurate! || DivineStresser.com for 150Gbps network stress testing!
AllusiveGold has left #ruby [#ruby]
thenovices has quit [Ping timeout: 245 seconds]
<bricker`LA> lol
Spleeze has joined #ruby
prateekp has joined #ruby
<prateekp> hi
<prateekp> I have made a rails application
<prateekp> would be happy to have your feedback
mary5030 has joined #ruby
meatherly has quit [Remote host closed the connection]
mneorr has joined #ruby
cads has quit [Ping timeout: 248 seconds]
thenovices has joined #ruby
<bnagy> try #rubyonrails
fgo has quit [Remote host closed the connection]
ahmedelg_ has joined #ruby
<bnagy> prateekp: please don't pm anyone without asking, it's considered rude.
<prateekp> hmm sorry
<prateekp> dint know that
justsee has joined #ruby
justsee has joined #ruby
sethen has quit [Quit: Leaving...]
<prateekp> bnagy: can i pm you
<prateekp> ?
<bnagy> no
<prateekp> ok
amclain has quit [Quit: Leaving]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmedelgabri has quit [Ping timeout: 245 seconds]
<prateekp> bnagy: Though the application is in rails. But i wanted to have a general feedback
<bnagy> if it's rails, go ask rails people
jonahR has joined #ruby
<prateekp> but i just wanted to show the thing i have made ... it basically dynamically extracts information related to algorithms at one place
<bnagy> cool story
mbytes has joined #ruby
<prateekp> u just check it once
<bnagy> under no circumstances
<prateekp> rails has nothing to do
serp` has joined #ruby
<bnagy> you're spamming some wacky link, and you care way too much.
serp` has quit [Client Quit]
thenovices has quit [Remote host closed the connection]
jonahR has quit [Client Quit]
thenovices has joined #ruby
<prateekp> no its not wacky ... i just wanted to know whether th thing i have built ease out the life of programmers
<prateekp> so i just wanted to have ur feedback
<bnagy> I'm going to go ahead and guess no
<prateekp> thats it
lethjakman has joined #ruby
BrixSat has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<prateekp> bnagy : are u checking :(
<bnagy> absolutely not
BrixSat has joined #ruby
<Nilium> From what I can see of your site, prateekp, your markdown's not working.
<Nilium> Also, just listing off names of algorithms isn't very useful.
krz has quit [Ping timeout: 272 seconds]
sandGorgon has joined #ruby
<prateekp> Nilium : thnx for ur feedback ...
<prateekp> hmm you are probably right ... there should be more than just names of algorithms
<prateekp> like common errors or something like that
<Nilium> http://xlinux.nist.gov/dads/ I would say this is likely to be more useful.
<bnagy> mmm NIST
sensen has quit [Ping timeout: 272 seconds]
<bnagy> everybody's favourite org!
brunops has quit [Ping timeout: 245 seconds]
thenovices has quit [Ping timeout: 265 seconds]
<mbytes> haha!
hl has quit [Ping timeout: 260 seconds]
<lewellyn> who is your dad? ;)
<prateekp> Nilium: helpful link ... but what i have in my application(not online though) is ... you can add anything thats useful or related to certain algorithm
<Nilium> 5 points to lewellyn for the most out of context question so far
terrellt_ has quit [Read error: Connection reset by peer]
hl has joined #ruby
sensen has joined #ruby
jbueza has joined #ruby
<lewellyn> Nilium: context is the url.
<bnagy> also, trigger warning, orphans and foundlings
maletor has quit [Quit: Computer has gone to sleep.]
<prateekp> like if you get a blog o quick sort and you wanted to add to this repository... then you can commit that article and then it would be linked up in repository
<prateekp> blog on* quick sort
agent_white has quit [Read error: Connection reset by peer]
<bnagy> well that sounds like the best thing ever
<Nilium> The only blog post about quicksort I could imagine wanting to store is the one that utterly demolishes the Haskell sorting tutorial thing.
<bnagy> just think of it! Unlimited links to information about useless sorting algorithms could be mine at a touch!
<bnagy> just how DO I implement Bubble Sort? These are the questions that need answers!
<prateekp> thans bnagy :)
agent_white has joined #ruby
lethjakm1 has joined #ruby
brunops has joined #ruby
<prateekp> bnagy : hmm agree ... so there are good sites which contain lots of information
<prateekp> like the one Nilium showed
<prateekp> but are never showed on googl
<bnagy> no seriously. You'll soon eclipse Wikipedia. It will be the global font of Algorithmic Elucidation
<prateekp> or like this one rosettacode.org/wiki/Quicksort
<Nilium> Those both come up on Google pretty quickly for me.
lethjakman has quit [Ping timeout: 272 seconds]
<prateekp> hmm Nilium: rosetta comes for me as well
<prateekp> but not nist
<Nilium> It is really unpleasant being unable to drink anything other than luke-warm water.
krz has joined #ruby
maletor has joined #ruby
<prateekp> Nilium : might be google uses ur history to customize search
<prateekp> google is doing that
speakingcode has quit [Quit: Changing server]
<Nilium> Not might be, they do.
<prateekp> hmm exactly
calimike has joined #ruby
<Nilium> Which is why when I search for tits, they actually bring up bird links, because I spend a lot of time searching for info on birds.
<prateekp> yes hhaha
<bnagy> ...
<prateekp> :)
timonv has joined #ruby
mmcdaris has joined #ruby
<bnagy> that's how Nilium gets all the chicks
<prateekp> actually before starting this project. I thought that there should be repository of information
Txandy|away is now known as Txandy
<Nilium> http://www.youtube.com/watch?v=-fxycZFDfUM ⇐ Behold, parrots.
sandGorgon has quit [Ping timeout: 272 seconds]
<bnagy> psittacosis
<Nilium> The pionus is a blue-headed pionus, since there are a few kinds of pionus and the video doesn't mention it.
ferr has joined #ruby
Macaveli has joined #ruby
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
<prateekp> Nilium: nice birds
CodeBunny has joined #ruby
<bnagy> hmm sounds more like psittacophilia
mmcdaris has quit [Client Quit]
CodeBunny has quit [Client Quit]
<Nilium> http://www.youtube.com/watch?v=uZiNlBxusHw ⇐ Also, that's my blue headed pionus.
<Nilium> He is adorable.
<prateekp> really awesome
_tpavel has quit [Ping timeout: 276 seconds]
<prateekp> Hey Nilium: what markdown error you were talking about
browndawg has joined #ruby
bricker`LA has quit [Remote host closed the connection]
bricker`LA has joined #ruby
LostMonk has quit [Ping timeout: 245 seconds]
_tpavel has joined #ruby
<prateekp> btw thanks everybody for ur feedback
marcofernandez has quit [Ping timeout: 272 seconds]
sandGorgon has joined #ruby
Hanmac has joined #ruby
lethjakm1 has quit [Ping timeout: 272 seconds]
vikhyat has joined #ruby
marcofernandez has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
pranny has joined #ruby
mengu has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
vikhyat has joined #ruby
<prateekp> bnagy: i will be back again for ur feedback
<prateekp> :)
Jetchisel has joined #ruby
mbytes has quit [Remote host closed the connection]
<bnagy> I will breathlessly count the minutes until your return
vikhyat has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
tvw has joined #ruby
vikhyat has joined #ruby
sandGorgon has quit [Ping timeout: 272 seconds]
juarlex has quit [Remote host closed the connection]
vikhyat has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
i_s has joined #ruby
<prateekp> bnagy : :)
<prateekp> btw ... could you let me know the best e-address to ping you
amclain has joined #ruby
CodeBunny has joined #ruby
CodeBunny has quit [Client Quit]
mansi has joined #ruby
noop has joined #ruby
CodeBunny has joined #ruby
CodeBunny has quit [Client Quit]
CodeBunny has joined #ruby
vikhyat_ has joined #ruby
vikhyat has quit [Ping timeout: 245 seconds]
yasushi has joined #ruby
mary5030 has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 245 seconds]
DJJeff has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
bricker`LA has joined #ruby
bxuz has joined #ruby
vikhyat has joined #ruby
yasushi has quit [Ping timeout: 248 seconds]
vikhyat_ has quit [Ping timeout: 276 seconds]
vikhyat has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
cjsarette has joined #ruby
sandGorgon has joined #ruby
fixl has joined #ruby
gja has joined #ruby
timonv has quit [Remote host closed the connection]
bxuz has quit [Ping timeout: 272 seconds]
heftig has quit [Ping timeout: 245 seconds]
sassamo has joined #ruby
brunops has quit [Ping timeout: 248 seconds]
calimike has quit [Quit: Leaving]
bricker`LA has quit [Ping timeout: 245 seconds]
thenovices has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
vikhyat has joined #ruby
lethjakm1 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<lethjakm1> does <=> mean something in ruby?
Txandy is now known as Txandy|away
sassamo has quit [Ping timeout: 252 seconds]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lethjakm1> I tried googling and couldn't find anything for that
ferr has quit [Quit: Konversation terminated!]
thenovices has quit [Ping timeout: 252 seconds]
gja has joined #ruby
Jdubs has quit [Remote host closed the connection]
<lethjakm1> ahhh spaceship
<lethjakm1> thank you
<agent_white> It's a comparison operator. Try doing ` "abc" <=> "ab" and "abc" <=> "acbd"`
amclain has quit [Quit: Leaving]
<lethjakm1> ooooooo
<agent_white> lethjakm1: For those wierd operators, best bet is to Google them in a parens, aka "<=>", so it's searching for that string. :)
<lethjakm1> I tried that...not sure why it didn't work for me
<agent_white> erm Gooble them in a " "'s ;P
brunops has joined #ruby
<lethjakm1> are there any other weird operators for ruby?
<marcofernandez> it makes easy to sorting collections
<bnagy> ~> is pretty weird
<bnagy> ->
<marcofernandez> lambda?
<bnagy> yeah we call it the 'retarded lambda' operator
<lethjakm1> how's it different from a lambda?
<agent_white> It's not, just a different way to say it ;)
<bnagy> because unretarded lambda is the character sequence 'lambda'
<agent_white> Just like blocks with doend {}
<lethjakm1> hrm, I'm also looking at this gem: https://github.com/libgit2/rugged and it has an include Enumerable and I can't seem to find where it's coming from. anyone know what the include Enumerable does?
<lethjakm1> I don't think it's a part of the ruby langauge but I don't see anywhere for it to be including from...
lethjakm1 is now known as lethjakman
bricker`LA has quit [Remote host closed the connection]
bricker`LA has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<lethjakman> oh weird...why does it have to be included?
<bnagy> because that's how modules work
ss_ has joined #ruby
<lethjakman> hrm...ok
alexfreidah has joined #ruby
tylersmith has quit [Remote host closed the connection]
<agent_white> lol whoa, that combined comparison operator is gnarly.
<agent_white> especially with nil or false
<agent_white> (false <=> nil) | (nil <=> false) #=> false
<agent_white> (false <=> nil) || (nil <=> false) #=> nil
<agent_white> (false <=> nil) <=> (nil <=> false) #=> 0
<agent_white> lol kewl
klaut has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
gregoriokusowski has quit [Quit: gregoriokusowski]
himsin has joined #ruby
thenovices has joined #ruby
vikhyat has joined #ruby
starkhalo has quit [Ping timeout: 272 seconds]
alexfreidah has quit [Ping timeout: 248 seconds]
LekeFly has joined #ruby
LekeFly has quit [Client Quit]
bricker`LA has quit [Ping timeout: 276 seconds]
vikhyat has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vikhyat has joined #ruby
dukz has joined #ruby
<lethjakman> what does | do?
<agent_white> "or"
brunops has quit [Ping timeout: 272 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<bnagy> depends
larissa has quit [Quit: Leaving]
thenovices has quit [Ping timeout: 252 seconds]
Vivekananda has quit [Ping timeout: 276 seconds]
Txandy|away is now known as Txandy
fire has joined #ruby
<bnagy> for numerics it's bitwise | for arrays etc it's union, for nil it's a wacked ternary
zxd has joined #ruby
<agent_white> Ooo for nil it's truth comparison? idk how to put it, but that's also rad.
dogonthesun has joined #ruby
<bnagy> return RTEST(obj2)?Qtrue:Qfalse;
bluOxigen has joined #ruby
<lethjakman> ahhh interesting.
<lethjakman> that's good to know.
<bnagy> it's not a 'real' operator
<bnagy> as in it's not syntax like ||, it's a method
<lethjakman> ahhh that makes sense
<lethjakman> so can you use spaces on all methods like that?
echevemaster has quit [Quit: Leaving]
<lethjakman> or do you have to do something special?
petey has joined #ruby
lachesis has quit [Quit: ZNC - http://znc.in]
<bnagy> :/ parser weirdness
<bnagy> no, you can't
<lethjakman> hrm....
zxd has quit [Ping timeout: 272 seconds]
dagobah has joined #ruby
zipper has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lachesis has joined #ruby
camilasan has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
petey has quit [Ping timeout: 272 seconds]
kate_r_ has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
kate_r_ has quit [Client Quit]
Txandy is now known as Txandy|away
Txandy|away is now known as Txandy
soba has quit [Ping timeout: 260 seconds]
zz_N00D has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
dukz has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
dukz has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
sergicles has quit [Quit: sergicles]
Xeago has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
dukz has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
bricker`LA has joined #ruby
vikhyat has quit [Remote host closed the connection]
vikhyat has joined #ruby
vikhyat has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
fire has quit [Quit: WeeChat 0.4.1]
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
mikepack has joined #ruby
centrx has quit [Quit: Leaving]
bricker`LA has quit [Remote host closed the connection]
bricker`LA has joined #ruby
andikr has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
jprovazn has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
zipper has quit [Ping timeout: 248 seconds]
tesuji has joined #ruby
artmann has quit [Quit: No Ping reply in 180 seconds.]
ndrei has joined #ruby
artmann has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
camilasan has quit [Ping timeout: 252 seconds]
aganov has joined #ruby
sassamo has joined #ruby
zipper has joined #ruby
w1xz has joined #ruby
<lethjakman> I tried googling := too and couldn't come up with anything, what does that do?
whomp has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
lyanchih_ has joined #ruby
relix has joined #ruby
sassamo has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
bhaak has joined #ruby
h_kon has joined #ruby
kobain_ has joined #ruby
rdark has joined #ruby
kobain has quit [Ping timeout: 265 seconds]
LekeFly has joined #ruby
Hanmac1 has joined #ruby
luckyruby has joined #ruby
theRoUS` has quit [Quit: Coyote finally caught me]
Hanmac has quit [Ping timeout: 246 seconds]
Dorf has quit [Ping timeout: 260 seconds]
<bricker`LA> lethjakman: nothing, I think that's Smalltalk
razibog has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
<lethjakman> hrm....ok
<lethjakman> weird
razibog has quit [Client Quit]
<lethjakman> wonder where I saw that
i_s has quit [Remote host closed the connection]
zipper has joined #ruby
<lethjakman> thanks bricker`LA :)
i_s has joined #ruby
nhhagen has joined #ruby
predator117 has quit [Ping timeout: 272 seconds]
zigomir has joined #ruby
predator117 has joined #ruby
noname001__ has joined #ruby
blaxter_ has joined #ruby
sandGorgon has quit [Ping timeout: 248 seconds]
sectionme has joined #ruby
seoaqua has joined #ruby
senayar has quit []
prateekp has quit [Quit: Page closed]
vikhyat has joined #ruby
senayar has joined #ruby
mercwithamouth has joined #ruby
blaxter_ is now known as blaxter
<bhaak> I'm reading out of a database and one value is a nullable boolean. so I can get nil, true or false in Ruby. but I want that to map to a proper boolean. "value == true" or "value && true" do the correct mapping but both expressions look kind of odd
mneorr has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<bhaak> "value == true" looks even worse than the other one but I guess that comes from the fact that this is a horrible idea in Java
vikhyat has quit [Read error: Connection reset by peer]
i_s has quit [Ping timeout: 245 seconds]
vikhyat has joined #ruby
jovon_ has quit [Quit: Leaving]
fwaokda has quit []
thenovices has joined #ruby
seoaqua has quit [Ping timeout: 252 seconds]
<RTG`> bhaak: nil evaluates to false
<bricker`LA> bhaak: or you could make the database column not null if possible
<pontiki> the := assignment began way back in Algol, i think
brunops has joined #ruby
<lethjakman> pontiki: what did it do there?
<pontiki> variable assignment, same as in Smalltalk
<dseitz> bhaak If these are ruby expressions, you could map false/true using !!
<lethjakman> dseitz: that's an interesting idea...could you show me how you would do that?
<lethjakman> I know it's not my question but I'm curious
<dseitz> !!nil => false
<bhaak> oops, nil && true doesn't return true. I must have tested something wrong
renklaf_ has joined #ruby
<pontiki> it shouldn't...
kobain_ has quit []
<bhaak> RTG`: I want the actual "false" value not just the "falsy" value as I feed the mapped values back into another table
thenovices has quit [Ping timeout: 246 seconds]
r0ber has joined #ruby
<bhaak> dseitz: yes, !! works too. although also not very pretty but much better than "== true" :-)
ahmedelg_ has quit [Remote host closed the connection]
<dseitz> It's not pretty, but it's well-known
seoaqua has joined #ruby
<pontiki> bhaak: if you really do want just a boolean, not a tri-state, make the db field not null
<bhaak> I know it mostly from C so it's a bit tainted. that's why it didn't occur to me to use it. thx
<lethjakman> dseitz: ohhhh yeah I get that, I thought you meant something else.
<dseitz> oh
<bhaak> pontiki: not possible. the source database is a legacy db outside of my reach and the code is part of a migration program.
<pontiki> bhaak: then i would suggest abstracting it
mengu has quit [Remote host closed the connection]
tylersmith has joined #ruby
vikhyat has quit [Remote host closed the connection]
<lethjakman> dseitz: you could monkey patch Object....not sure how frowned upon that would be though and add a .to_b method or something.
<bhaak> the real WTF is that the tri-state value is directly shown to the user in the UI of the legacy app, the NULL value being a greyed out checkbox. I have a hard time imagining what the users think this checkbox means when it's greyed out
_HolyCow1 has joined #ruby
<pontiki> monkeypatching Object...
aqua_ has joined #ruby
<pontiki> whoa, bhaak
Apocalypse has quit [Ping timeout: 252 seconds]
<dseitz> Rails already does that, .blank? :)
kenndel_ has joined #ruby
<lethjakman> dseitz: isn't that just string?
<bhaak> blank? is on Object?
<pontiki> Rails is chock-full of metaprogramming
<bhaak> pontiki: what do you mean with abstracting it?
<lethjakman> I kinda feel like .to_b would be nice, there's a lot of times I would like that.
<lethjakman> or you could just define a method to wrap it with...
zxd has joined #ruby
kizzx21 has joined #ruby
_HolyCow has quit [Ping timeout: 252 seconds]
<lethjakman> I've done similar things when I needed a true nil.
Apocalypse has joined #ruby
<pontiki> bhaak: if you migration code doesn't have to know about the tri-stateness of it, you can make a wrapper for it, creating an abstraction layer for that field
<dseitz> It's around the level of object
<dseitz> tests for '', "", [], {}, nil, etc.
mengu has joined #ruby
seoaqua has quit [Ping timeout: 246 seconds]
mengu has quit [Changing host]
mengu has joined #ruby
kenndel has quit [Ping timeout: 245 seconds]
<pontiki> bhaak: it's just a suggestion rather than have to deal with the tri-stateness all over
<dseitz> code is something like empty? || !self
<dseitz> with a test to make sure empty? doesn't explode I think
<pontiki> blank?() is defined on a number of classes
<bhaak> lethjakman: there's a gem for that :) obviously named "t_b". but usually this is considered bad as truthy and falsey give you 99% of all use cases and is much more clean (and has better performance) than calling to_b
tylersmith has quit [Ping timeout: 264 seconds]
<pontiki> haha
brunops has quit [Ping timeout: 252 seconds]
<pontiki> "THere's a gem for that!"
<pontiki> now i feel dirty
aqua_ has quit [Ping timeout: 272 seconds]
<bhaak> paontiki: ah, well, the mapping already happens in a DSL and adding one line of code for the rare cases where the booleans have tri-state is okay.
<bhaak> oops, how did I break a tab completion?
einarj has joined #ruby
heftig has joined #ruby
lethjakman has quit [Ping timeout: 272 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
ctp has joined #ruby
kreantos has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
nhhagen has quit [Remote host closed the connection]
sandGorgon has joined #ruby
cj3kim has quit [Remote host closed the connection]
ghr has joined #ruby
<pontiki> idk...
ylluminate has quit [Quit: Bye!]
zipper is now known as urbanslug
nhhagen has joined #ruby
claymore has joined #ruby
<agent_white> pontiki: Speaking of meta-stuff, I just hit chapter 6 in _why's guide. My mind is exploding and it's wonderful.
dfranciosi has joined #ruby
<pontiki> hehe
<pontiki> "make your mind as large as the universe, so you can hold all the paradoxes"
<agent_white> "-- just don't get a hemorrhoid doing it." - agent_white
mansi has joined #ruby
Advocation has joined #ruby
jbueza has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
gozali has joined #ruby
<agent_white> pontiki: It's very true though, makes me think that we haven't even skimmed the surface of dynamic languages.
<pontiki> weeeell, we're still only using them to solve problems and make things go, so yeah
<agent_white> We need to let them learn things instead!
benlieb has joined #ruby
nwertman has quit [Ping timeout: 272 seconds]
<agent_white> #YoDawgMyProgramsTeachMyProgramsToProgram
<pontiki> evolutionary computing is revolutionary!
mansi has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
<agent_white> It's time to break out the hula hoop!
* agent_white dances
nvrch has joined #ruby
mhenrixon has joined #ruby
<luckyruby> Which way is preferrable? https://gist.github.com/anonymous/51488b03cd7b366a8c7e
subbyyy has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
<mhenrixon> I would prefer #2 @luckyruby
blackmesa has joined #ruby
thomasxie has quit [Ping timeout: 245 seconds]
<luckyruby> mhenrixon: what do you think about putting open_time and close time as attributes instead of child elements?
jaimef has quit [Excess Flood]
tvw has quit [Ping timeout: 252 seconds]
kate_r_ has joined #ruby
aagdbl0 has joined #ruby
<mhenrixon> @luckyruby I think it does make the resulting xml a whole lot smaller so no objections to that
aagdbl has quit [Disconnected by services]
kate_r_ has quit [Client Quit]
aagdbl0 is now known as aagdbl
rootshift has joined #ruby
dogonthesun has quit [Quit: Computer has gone to sleep.]
<pontiki> i wonder why ppl come in #ruby to ask questions about every other language on the planet
<mhenrixon> @luckyruby Now we are talking each element is a day and the attributes describe that day like they should
jaimef has joined #ruby
<bhaak> luckyruby: usually, it's more a matter of taste as it is more or less the same when you can only have one value. I prefer child elements when I have to use xpaths to access them. xpaths selection for attributes is a bit of pain to me as I have to always look it up.
roolo has joined #ruby
<pontiki> pro tip: use JSON
<luckyruby> pontiki: sorry if it seems off topic but I'd prefer a rubyist's take on xml
Lewix has quit [Remote host closed the connection]
<bhaak> a rubyist's take on xml is "don't use it"
<luckyruby> lol, i wish it was optional
akemrir has joined #ruby
<luckyruby> I'd much prefer json
Lewix has joined #ruby
<pontiki> anytime i have to deal with XML, i get shut of it as fast as possible
ss_ has quit [Remote host closed the connection]
chomskiii has joined #ruby
ch0mskiii has quit [Read error: Connection reset by peer]
ss_ has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
troessner has joined #ruby
craigp has joined #ruby
<pontiki> anyway, that xml, <open> or open= is redundant
<luckyruby> I'll implement a json solution as well and see if that's an option with Priceline
sparrovv has joined #ruby
<pontiki> you wouldn't have open and close times if they were not open
<agent_white> 'Gentlemen, XML is a simple thing..': http://www.youtube.com/watch?v=kZIt7Blx7zQ&t=0m30s
sassamo has joined #ruby
kate_r_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<pontiki> are you proposing a structure, or having to meet someone else's definition?
camilasan has quit [Remote host closed the connection]
Xeago has joined #ruby
subbyyy_ has joined #ruby
<pontiki> oh i loved tha movie!
subbyyy has quit [Ping timeout: 248 seconds]
camilasan has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
olivier_bK has joined #ruby
<luckyruby> pontiki: i was presented with a structure that was painful to use. Trying to simplify it as much as I can.
<agent_white> Hahah it's on my to-watch list :D
kate_r_ has quit [Client Quit]
ss_ has quit [Ping timeout: 272 seconds]
<agent_white> phrik has been drinking
<agent_white> mt
<pontiki> bedtime. nini rubyland!
<agent_white> G'night pontiki!
sandGorgon has quit [Quit: Leaving]
sandGorgon has joined #ruby
kate_r_ has joined #ruby
drumusician has joined #ruby
mehlah has joined #ruby
Lewix has joined #ruby
sassamo has quit [Ping timeout: 245 seconds]
w1xz has quit [Ping timeout: 248 seconds]
subbyyy_ has quit [Ping timeout: 245 seconds]
dukz has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
dukz has joined #ruby
ss_ has joined #ruby
nomenkun has joined #ruby
Txandy is now known as Txandy|away
arturaz has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
figgleberry has joined #ruby
kate_r_ has quit []
hiall has quit [Quit: hiall]
vpretzel has joined #ruby
kep has joined #ruby
bhaak has quit [Ping timeout: 252 seconds]
nhhagen has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
nhhagen has joined #ruby
OdNairy has joined #ruby
w4pm has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
nwertman has joined #ruby
alexfreidah has joined #ruby
figgleberry has quit [Ping timeout: 252 seconds]
vpretzel has joined #ruby
dawkirst has joined #ruby
nwertman has quit [Read error: Connection reset by peer]
Dorf has joined #ruby
Dorf has joined #ruby
Dorf has quit [Changing host]
mneorr has quit [Remote host closed the connection]
poulson has joined #ruby
Dorf has quit [Client Quit]
mneorr has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
camilasan has quit [Remote host closed the connection]
Xeago_ has joined #ruby
mikecmpbll has joined #ruby
camilasan has joined #ruby
skywhopper has quit [Read error: Connection reset by peer]
jhaals has joined #ruby
dogonthesun has joined #ruby
thenovices has joined #ruby
alexfreidah has quit [Ping timeout: 252 seconds]
w4pm has quit [Ping timeout: 272 seconds]
nwertman has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
klaut has quit [Remote host closed the connection]
okinomo has joined #ruby
okinomo has left #ruby [#ruby]
mneorr has quit [Ping timeout: 276 seconds]
camilasan has quit [Ping timeout: 260 seconds]
kung has joined #ruby
aryaching_ has quit [Ping timeout: 272 seconds]
thenovices has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
dangerousdave has joined #ruby
dukz_ has joined #ruby
gijsje has joined #ruby
stetho has joined #ruby
<gijsje> gd, i'm trying out this gem https://github.com/frenesim/schema_to_scaffold but i'm confused how to use it. in my bash i just type schaffold but it doesnt work.
camilasan has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
<gijsje> nm :D
sparrovv has quit [Remote host closed the connection]
petey has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
mojjojo has joined #ruby
agjacome has joined #ruby
TMM has joined #ruby
sergicles has joined #ruby
petey has quit [Ping timeout: 252 seconds]
Txandy|away is now known as Txandy
pranny has quit [Ping timeout: 272 seconds]
_tpavel has quit [Ping timeout: 252 seconds]
shime has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
hiall has joined #ruby
okinomo has joined #ruby
okinomo has left #ruby [#ruby]
ohwhoa has joined #ruby
ndrei has quit [Quit: Lost terminal]
_5kg has quit [Ping timeout: 252 seconds]
darthdeus has joined #ruby
timonv has joined #ruby
karupanerura is now known as zz_karupanerura
tobago has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
chomskiii has joined #ruby
camilasan has quit [Remote host closed the connection]
zxd has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
tt1187 has joined #ruby
nhhagen has quit [Remote host closed the connection]
camilasan has joined #ruby
wildroman2 has joined #ruby
nhhagen has joined #ruby
shaunbaker has joined #ruby
wildroman2 has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.2]
wildroman2 has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
kuzushi has quit [Read error: Connection reset by peer]
kuzushi has joined #ruby
mikepack has joined #ruby
artmann has quit [Quit: No Ping reply in 180 seconds.]
LapsuS has joined #ruby
apeiros has joined #ruby
artmann has joined #ruby
amundj has quit [Read error: Connection reset by peer]
luckyruby has quit [Remote host closed the connection]
amundj has joined #ruby
[_aeris_] is now known as _aeris_
mikepack has quit [Ping timeout: 260 seconds]
marr has joined #ruby
zz_karupanerura is now known as karupanerura
klaut has joined #ruby
xDevz has joined #ruby
aaronmcadam has joined #ruby
sassamo has joined #ruby
ephemerian has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
monkegjinni has joined #ruby
Txandy has quit [Quit: Leaving...]
sparrovv has joined #ruby
ss_ has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
karupanerura is now known as zz_karupanerura
ss_ has joined #ruby
sandGorgon has quit [Ping timeout: 272 seconds]
<xDevz> If you need any help with development, full Website coding, Script modifications, small fixes and others.. msg me
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sparrovv_ has joined #ruby
sassamo has quit [Ping timeout: 272 seconds]
ss_ has quit [Ping timeout: 272 seconds]
sparrovv has quit [Ping timeout: 272 seconds]
roolo has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
xDevz has quit []
dweeb_ has joined #ruby
roolo has joined #ruby
zxd has joined #ruby
albertgrala has joined #ruby
wildroman2 has quit [Remote host closed the connection]
sandGorgon has joined #ruby
fluve has joined #ruby
habanany has joined #ruby
popl has joined #ruby
popl has joined #ruby
decoponio has joined #ruby
_Andres has joined #ruby
monkegjinni has joined #ruby
Speed has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
thenovices has joined #ruby
_aeris_ is now known as [_aeris_]
albertgrala has quit [Quit: Leaving]
tyl has joined #ruby
gregoriokusowski has joined #ruby
fluve has quit []
Giorgio has joined #ruby
thenovices has quit [Ping timeout: 252 seconds]
mojjojo has quit [Quit: mojjojo]
lyanchih has joined #ruby
cjsarette has quit [Ping timeout: 276 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 248 seconds]
Guedes has joined #ruby
wildroman2 has joined #ruby
Guedes has left #ruby [#ruby]
agent_white has quit [Quit: leaving]
DJJeff has quit [Ping timeout: 252 seconds]
nhhagen has quit [Remote host closed the connection]
Hanmac has joined #ruby
decoponio has quit [Quit: My PC will restarting]
kitak has quit [Remote host closed the connection]
DJJeff has joined #ruby
mklappstuhl has joined #ruby
ahmedelgabri has joined #ruby
lele has quit [Ping timeout: 264 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has quit [Ping timeout: 272 seconds]
drumusician has quit [Ping timeout: 260 seconds]
end_guy has quit [Remote host closed the connection]
ss_ has joined #ruby
cbetta_afk is now known as cbetta
aryaching has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
fgo has joined #ruby
lele has joined #ruby
lyanchih has quit [Quit: lyanchih]
ss_ has quit [Ping timeout: 245 seconds]
ahmedelgabri has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
blackmesa has joined #ruby
dukz_ has quit [Remote host closed the connection]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
marcgg_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
dogonthesun has quit [Quit: Lingo - http://www.lingoirc.com]
froy has quit [Ping timeout: 246 seconds]
craigp has joined #ruby
jlebrech has joined #ruby
ss_ has joined #ruby
gijsje has quit []
froy has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
marcgg has quit [Ping timeout: 276 seconds]
Hanmac1 has joined #ruby
ace_striker has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
ace_striker is now known as Guest69996
Guest69996 has quit [Client Quit]
Hanmac has quit [Ping timeout: 245 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
lyanchih has joined #ruby
pushpak has joined #ruby
nhhagen has joined #ruby
Kovensky has quit [Ping timeout: 248 seconds]
decoponio has joined #ruby
mklappstuhl has joined #ruby
<shevy> dumdedum
sassamo has joined #ruby
nhhagen has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
LekeFly has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
mhenrixon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gja has joined #ruby
Kovensky has joined #ruby
ss_ has quit [Remote host closed the connection]
nhhagen has joined #ruby
kate_r has joined #ruby
sassamo has quit [Ping timeout: 245 seconds]
nhhagen has quit [Remote host closed the connection]
tejas has joined #ruby
nari has quit [Ping timeout: 245 seconds]
gja has quit [Ping timeout: 252 seconds]
bhaak has joined #ruby
benlieb has quit [Quit: benlieb]
blackmesa has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
Giorgio has quit [Ping timeout: 272 seconds]
justsee has quit [Quit: leaving]
mercwithamouth has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
monzie has joined #ruby
arturaz has quit [Ping timeout: 252 seconds]
Giorgio has joined #ruby
TejasDinkar has joined #ruby
monzie has quit [Client Quit]
sectionm1 has joined #ruby
tejas has quit [Ping timeout: 248 seconds]
aagdbl has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
aryaching has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
sectionme has quit [Ping timeout: 246 seconds]
monzie has joined #ruby
browndawg1 has joined #ruby
monzie has quit [Client Quit]
pranny has joined #ruby
monzie has joined #ruby
<monzie> Hello everyone!
thenovices has joined #ruby
sectionm1 has quit [Ping timeout: 260 seconds]
sectionme has joined #ruby
claymore has quit [Ping timeout: 272 seconds]
Wolland has quit [Remote host closed the connection]
monzie has left #ruby [#ruby]
browndawg has quit [Ping timeout: 276 seconds]
eka has joined #ruby
DJJeff has quit [Read error: Connection reset by peer]
claymore has joined #ruby
aryaching has joined #ruby
fgo_ has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
sectionme has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
camilasan has joined #ruby
ocline``` has joined #ruby
mengu has quit [Read error: Connection timed out]
dogonthesun has joined #ruby
thenovices has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mhenrixon has joined #ruby
Cache_Money1 has quit [Quit: Leaving]
bricker`LA has joined #ruby
tvw has joined #ruby
aryaching_ has joined #ruby
Beoran_ has joined #ruby
amritanshu_RnD has joined #ruby
ocline`` has quit [Ping timeout: 272 seconds]
camilasan has quit [Ping timeout: 252 seconds]
petey has joined #ruby
ahawkins has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
Beoran__ has quit [Ping timeout: 252 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
petey has quit [Ping timeout: 260 seconds]
sparrovv_ has quit [Remote host closed the connection]
nhhagen has joined #ruby
cascalheira has joined #ruby
camilasan has joined #ruby
drumusician has joined #ruby
senayar_ has joined #ruby
zeeraw has joined #ruby
monkegjinni has joined #ruby
Giorgio has quit [Quit: Leaving]
fixl has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
aryaching has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
aryaching_ has quit [Ping timeout: 252 seconds]
yjmsf20 has quit [Quit: leaving]
senayar has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
samuel02 has joined #ruby
yjmsf20 has joined #ruby
colonolGron has joined #ruby
mansi has joined #ruby
ss_ has joined #ruby
ozgun has joined #ruby
guilund has joined #ruby
<samuel02> hi, I'm creating some service objects that inherits from an interface object, both service objects are going to implement one method each in their own way but I want to wrap both methods in one begin block, is this a good way to do this: https://gist.github.com/samuel02/64867c98df47a14da172
shime has quit [Ping timeout: 252 seconds]
_Andres has quit [Read error: Connection reset by peer]
_5kg has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
relix has quit [Read error: Connection reset by peer]
urbanslug has quit [Remote host closed the connection]
relix has joined #ruby
urbanslug has joined #ruby
ahawkins has quit [Quit: leaving]
nari has joined #ruby
chrisseaton has quit []
sensen has quit [Quit: leaving]
mikepack has joined #ruby
mojjojo has joined #ruby
chrisseaton has joined #ruby
arturaz has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
ss_ has quit [Remote host closed the connection]
marcgg has joined #ruby
ss_ has joined #ruby
<aagdbl> samuel02, seems like a sort of anti-pattern
mklappst_ has joined #ruby
po10_ has joined #ruby
sassamo has joined #ruby
<aagdbl> Is it possible for you separate the implementer and user interfaces for the class?
ewnd9 has joined #ruby
marcgg_ has quit [Ping timeout: 252 seconds]
<aagdbl> then users will call method foo which will call bar inside a begin rescue
<workmad3> ^^ implement a 'do_foo' method or similar as your implementation
<aagdbl> eg. the public interface for a class object is "new". but implementors write "initialize"
w1xz has joined #ruby
ss_ has quit [Ping timeout: 248 seconds]
<samuel02> aagdbl, sure that sounds good. Why is it better?
_tpavel has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
<samuel02> I really want to get better at ruby patterns
<workmad3> samuel02: it makes it easier to write classes that conform to your style
po10 has quit [Ping timeout: 252 seconds]
<samuel02> ok, true
<workmad3> samuel02: with your current method, people need to implement and somehow know that they implement method X and then wrap the body in 'super do end'
<samuel02> how common are interface classes in ruby?
<workmad3> not that common
<samuel02> workmad3, true
<samuel02> is there a reason not to use them?
<workmad3> it's the sort of thing generally handled with a mixin instead
<samuel02> do you care to explain how this would have been done in a mixin instead?
<workmad3> samuel02: it's not really an inheritance relationship... B and C don't really have an 'IS A' relationship to A, they merely implement a compatible interface
<samuel02> basically what I'm doing is a FileStorage object where one will use Amazon S3 and the other object will be diskbased
<workmad3> samuel02: module A; <same implementation>; end; class B; include A; <same stuff>; end
<samuel02> ok
<samuel02> so maybe I'm overcomplicating stuff..
DaniG2k has joined #ruby
sassamo has quit [Ping timeout: 272 seconds]
<shevy> yes!
<workmad3> samuel02: from what you're doing, I'd be tempted to reverse it personally
<aagdbl> samuel02, since you mentioned interfaces, do come from a Java background?
<shevy> yes!
<samuel02> workmad3, ok
<workmad3> samuel02: so that you deal with a FileStorage object that has the expected interface, and that has a StorageBackend (e.g S3, FileSystem) that gets plugged in
ahmedelgabri has quit [Remote host closed the connection]
<samuel02> aagdbl, not really. I guess that's where I learned to work with interfaces though
sepp2k has joined #ruby
<aagdbl> samuel02, so think of it this way. A class could implement multiple interfaces. Would it be correct to call super in Java?
<workmad3> samuel02: the storage backend then doesn't need to include or inherit from anything, it just needs to have a couple of known methods (duck typed interface)
<samuel02> workmad3, sounds smart
<samuel02> aagdbl, yeah
<samuel02> workmad3, ok
tkuchiki has quit [Remote host closed the connection]
<workmad3> samuel02: and someone using it can just pass in a backend when creating a FileStorage object to interact with (or rely on a default)
<aagdbl> samuel02, it would be ok to call super in java from your interface method?
tkuchiki has joined #ruby
<workmad3> interfaces in java can't have implementation
<samuel02> correct
<aagdbl> by interface method I mean a method part of an interface
<samuel02> aagdbl, in Java the methods are usually abstract methods without implementation
<samuel02> i.e. in an interface
<workmad3> samuel02: that's an abstract class, not an interface, in java
colonolGron has quit [Ping timeout: 272 seconds]
<samuel02> that's right, I'm getting all confused
<aagdbl> the base class of an object is completely unknown. you shouldnt be calling super in a method that is part of an interface implementation in Java
<aagdbl> or at least, not mandating it
<samuel02> ok
<samuel02> thanks both of you
<aagdbl> actually lets put it this way - you shouldnt have a base class mandate what a subclass implementation should do to achieve common behaviour
<samuel02> ok, that sounds reasonable
<samuel02> I'm gonna change the implementation according to the advice from workmad3
tkuchiki has quit [Ping timeout: 276 seconds]
kreantos has quit [Ping timeout: 252 seconds]
urbanslug has quit [Ping timeout: 252 seconds]
<samuel02> by the way, this is all in a gem that may be used in a Rails app, do you think I handle the logging part correctly
<samuel02> ?
sepp2k has quit [Quit: Konversation terminated!]
shime has joined #ruby
mercwithamouth has joined #ruby
senayar_ has quit [Remote host closed the connection]
kreantos has joined #ruby
Panicky has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ahmedelgabri has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
gomix has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
clevermatt has quit [Remote host closed the connection]
<workmad3> samuel02: make sure you can handle a logger being passed in, if one isn't then use Rails.logger if Rails is defined otherwise create a Logger on stdout
thenovices has joined #ruby
<samuel02> apeiros, yes
<samuel02> workmad3, ok thanks
drumusician has quit [Read error: Connection reset by peer]
<workmad3> samuel02: Rails.logger will fail if Rails isn't loaded
<samuel02> workmad3, ok
drumusician has joined #ruby
w1xz has quit [Ping timeout: 272 seconds]
clevermatt has joined #ruby
<apeiros> samuel02: if that's the whole thing, then IMO the solution is rather poor, sorry.
<workmad3> samuel02: you need to structure something around 'if defined?(Rails)'
<apeiros> forced inheritance is a bad thing. it could be solved nicer with just a module.
<samuel02> yeah ok
kate_r has joined #ruby
<workmad3> apeiros: that's already been covered ;)
<samuel02> apeiros, workmad3 has already helped me with that :)
<samuel02> thanks though
<samuel02> do any of you have any good tips on books to read to get better at patterns in ruby?
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
bluenemo has joined #ruby
<workmad3> samuel02: Practical Object Oriented Design with Ruby
mklappst_ has quit [Remote host closed the connection]
<samuel02> ok, going to order it right away :)
<DaniG2k> hmm I was looking into the same thing actually
max96at has joined #ruby
<workmad3> samuel02: also consider Growing Object Oriented Software (examples are in java), maybe Ruby Design Patterns and Refactoring: Ruby Edition
AlSquirrel has joined #ruby
<apeiros> an alternative implementation
<apeiros> and if it has already been said - good, then I +1 that :D
freerobby has quit [Client Quit]
<workmad3> apeiros: still need to do something with 'defined?(Rails)' to prevent an issue with Rails not being present ;)
<apeiros> workmad3: ah, yes, if use outside rails is a concern, then definitively
urbanslug has joined #ruby
<apeiros> I also don't like the fact that setting logger to nil is not respected
thenovices has quit [Ping timeout: 272 seconds]
<apeiros> I f'ing hate undisablable (is that a word?) logging
<shevy> hehe
<shevy> blable is a good word, I approve
colonolGron has joined #ruby
<workmad3> apeiros: same, but to me that's an issue when it doesn't respect the set log level rather than setting a logger to nil
<apeiros> shevyblable. fits.
<apeiros> workmad3: naw, setting the logger to nil should work everywhere IMO
<DaniG2k> workmad3: that book (Ruby design patterns) is from 2012...is it still worth buying
<workmad3> DaniG2k: that's one I haven't read tbh
<apeiros> DaniG2k: you consider 2012 old for a book? o0
<DaniG2k> I suppose the concepts are the same
<DaniG2k> well, software book, yes
<workmad3> DaniG2k: hehe :) for christmas I got a 'software book' from the 80's
<apeiros> concepts in software don't change that fast either…
<workmad3> DaniG2k: Smalltalk Best Practice Patterns
<DaniG2k> workmad3: which one
<DaniG2k> :D
<workmad3> DaniG2k: not to mention things like Refactoring from the 90's
<apeiros> workmad3: I've a pascal book from around 1975 :D
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lyanchih has quit [Ping timeout: 252 seconds]
<workmad3> DaniG2k: my basic rule of thumb is that books on specific technologies obsolete quickly, while books on concepts stay valid for decades even if they have examples in an older language
zeeraw has joined #ruby
<apeiros> +1
<DaniG2k> workmad3: hmm ok. I might consider buying it
<DaniG2k> the Practical OO Ruby one I mean
browndawg1 has quit [Ping timeout: 252 seconds]
<workmad3> apeiros: I also discovered I had this on my bookshelf: http://www.amazon.com/Object-Oriented-Software-Engineering-Approach/dp/0201544350
<DefV> Ruby Design Patterns is pretty good if you haven't read any other design pattern books
<workmad3> apeiros: which I 'borrowed' from my dad probably 15 years ago now and never really read
<apeiros> lol
freerobby has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
<shevy> pascal ... eiffel ....
OdNairy has joined #ruby
<shevy> all those dead languages!
krz has quit [Quit: WeeChat 0.4.2]
<shevy> I always tell people to go with the future
<shevy> go perl 6
<apeiros> those who don't know history are damned to repeat it
monkegjinni has quit [Remote host closed the connection]
ohwhoa has quit [Quit: woah!]
sandGorgon has quit [Remote host closed the connection]
ohwhoa has joined #ruby
ItSANg___ has joined #ruby
ItSANgo has quit [Ping timeout: 272 seconds]
<DaniG2k> perl 6
<DaniG2k> hmm
<DaniG2k> i need to deal with perls sometimes
<DaniG2k> all them perls
<DaniG2k> I can't read it very well
<DaniG2k> Ruby is more readable
LapsuS has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> fuck that - automation of paper workflows would work so swell if it weren't for the involvement of those puny humans
<shevy> DaniG2k but perl is older than ruby!
gregoriokusowski has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coder_neo has joined #ruby
gregoriokusowski has joined #ruby
wallerdev has joined #ruby
<Hanmac1> shevy perl has a future? ;D
Hanmac1 is now known as Hanmac
<shevy> sure
<shevy> perl 6
<shevy> http://perl6.org/ it even has the Butterfly of Hope
<shevy> Hanmac given that you like cartoons, you must love it
<shevy> look how happy it is
<shevy> ruby doesn't have anything like that
<shevy> just a cold, dead ruby ...
Targen has quit [Ping timeout: 260 seconds]
tesuji has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
browndawg has joined #ruby
<Hanmac> shevy depends in some animes a butterfly could also be a death omen ;P
<shevy> it shines in bright red but it is a cold glare
<DaniG2k> shevy: i think it's happy :D https://www.ruby-lang.org/images/ruby_pattern.png
<shevy> animes are sick
gregoriokusowski has quit [Ping timeout: 272 seconds]
<shevy> are there any colours on ruby_pattern.png ?
mklappstuhl has joined #ruby
<DaniG2k> shevy: go to #perl
<shevy> what shall I do on a dead channel man :(
<DaniG2k> join the dead
<shevy> hehe
<Hanmac> shevy: necromacy ?
mojjojo has quit [Quit: mojjojo]
pedda has joined #ruby
_Andres has joined #ruby
mehlah has quit [Quit: Leaving...]
<shevy> dunno
<shevy> I am learning from them now
<shevy> if (elem $x, [$y])
<shevy> I can feel it
<shevy> oh
<shevy> they have one cool thing though
<shevy> a working bot!
* shevy stabs at eval-in with a knife
lorelei_ has joined #ruby
<workmad3> >> "What's wrong?"
<workmad3> ah eval-in died again
<shevy> Hanmac why did you have to break the bot here :(
lorelei_ has quit [Changing host]
lorelei_ has joined #ruby
<workmad3> it was working yesterday...
<shevy> lol
<Hanmac> huch i wansnt
<shevy> it's a heisenbot
<shevy> works one day, next day it does not
<apeiros> yeah, Hanmac, stop breaking eval-in!
canton7 has quit [Remote host closed the connection]
<apeiros> Hanmac: bah, everybody knows it was you! :)
canton7 has joined #ruby
gregoriokusowski has joined #ruby
yalue has joined #ruby
<Hanmac> you mean it was my youki that breaks the bot? ... how mean ... ;( ;P
mengu has quit []
<shevy> sub def($); def $x == 'y'
<shevy> wow
<shevy> this is cool
browndawg has quit [Quit: Leaving.]
pranny has quit [Quit: Leaving.]
<shevy> ruby could learn from that
Ziarkaen has joined #ruby
<canton7> what does that do?
Ziarkaen` has joined #ruby
DaniG2k has quit [Quit: leaving]
<shevy> I am still trying to find out myself :D
<shevy> apparently it is related to "prototypes", whatever that means in perl
nhhagen has joined #ruby
TejasDinkar has quit [Quit: This computer has gone to sleep]
sassamo has joined #ruby
Xeago_ has quit [Remote host closed the connection]
senayar has joined #ruby
spyderman4g63 has joined #ruby
Ziarkaen has quit [Remote host closed the connection]
Ziarkaen` has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
aagdbl has quit [Quit: This computer has gone to sleep]
dfranciosi has quit [Remote host closed the connection]
Xeago has joined #ruby
mojjojo has joined #ruby
mehlah has joined #ruby
lioninawhat has joined #ruby
Virtualize has joined #ruby
craigp has quit []
craigp has joined #ruby
dogonthesun has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
Virtualize has quit [Client Quit]
ewnd9 has quit [Ping timeout: 246 seconds]
dogonthesun has joined #ruby
dogonthesun has quit [Read error: Connection reset by peer]
sassamo has quit [Ping timeout: 272 seconds]
dogonthesun has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lorelei_ has quit [Ping timeout: 272 seconds]
eleve has joined #ruby
<eleve> Could not locate Gemfile -_-
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
dfranciosi has joined #ruby
tesuji has joined #ruby
dogonthesun has quit [Ping timeout: 260 seconds]
MrZYX|off is now known as MrZYX
Virtualize has joined #ruby
tommyvyo_ is now known as tommyvyo
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
w4pm has joined #ruby
fedez77 has joined #ruby
senayar has quit [Remote host closed the connection]
LekeFly has joined #ruby
<Hanmac> shevy: did you see that? http://www.youtube.com/watch?v=6vm12cwIp7M
_Andres has quit [Read error: Connection reset by peer]
nhhagen has quit [Remote host closed the connection]
cascalheira has quit [Quit: Leaving...]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
clevermatt has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
w4pm has quit [Ping timeout: 245 seconds]
yasushi has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
krawchyk has joined #ruby
thenovices has joined #ruby
mark_locklear has joined #ruby
marcgg_ has joined #ruby
jkamenik has joined #ruby
Megtastique has joined #ruby
JaTochNietDan has joined #ruby
huttan_ has joined #ruby
habanany has quit [Ping timeout: 252 seconds]
alexherbo2 has joined #ruby
ComingHome has joined #ruby
huttan has quit [Ping timeout: 248 seconds]
huttan_ is now known as huttan
<ComingHome> chile chhile lindo!
<ComingHome> lindo como el sol xd
thenovices has quit [Ping timeout: 245 seconds]
marcgg has quit [Ping timeout: 245 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kreantos has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
urbanslug has quit [Ping timeout: 248 seconds]
petey has joined #ruby
urbanslug has joined #ruby
vitornascimento has joined #ruby
popl has quit [Read error: Operation timed out]
<shevy> Hanmac pretty cool idea
_Andres has joined #ruby
kreantos has joined #ruby
xpirator has quit [Quit: Leaving...]
xpirator has joined #ruby
Targen has joined #ruby
petey has quit [Ping timeout: 245 seconds]
xpirator has quit [Client Quit]
<Hanmac> shevy: i want AR glasses where you does not know if that what you see is real or not ;P
<apeiros> Hanmac: get occulus rift?
stryek has joined #ruby
<shevy> no
<shevy> get drunk
<shevy> is cheaper
<Hanmac> apeiros: occulus is VR not AR ;P
<shevy> Hanmac I kinda stopped gaming for the most part myself, not enough time :(
ComingHome has quit [Quit: Lost terminal]
_Andres has quit [Read error: Connection reset by peer]
<Hanmac> shevy i dont think about gaming at the point ... just image about visual interfaces on puplic places ...
<Hanmac> or for the ökos it can show you trees where they are not ;D
breakingthings has joined #ruby
Sammael has quit [Ping timeout: 252 seconds]
<apeiros> Hanmac: that's a pointless distinction if the AR is indistinguishable from VR…
<apeiros> (which is what you requested)
colonolGron has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 252 seconds]
dachi_ has quit [Ping timeout: 252 seconds]
<Hanmac> currently VR tech only shows you the VR part, not the "real life", i want some interface where VR and real are so connected, that you cant tell the difference without removing the glasses (or disabling the interface)
ahmedelgabri has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
nhhagen has joined #ruby
ahmedelgabri has joined #ruby
dachi_ has joined #ruby
phutchins has joined #ruby
sambao21 has joined #ruby
<phutchins> Is there a quicker or easier way to check if a variable is nil and check its value? I.E. if (!my_var.nil? && !my_var.empty?)
fedesilva has joined #ruby
timonv has quit [Remote host closed the connection]
phansch has joined #ruby
<shevy> what would be cool would be more games in ruby
<shevy> phutchins that seems to be covered by the rails addon .blank? I think
<shevy> but in standard ruby ... not sure
<shevy> you mean, to check if a variable is not nil, or?
<Hanmac> phutchins: i think one of the coolest ways would be like that: if(!(my_var=String(my_var)).empty?)
urbanslug has quit [Ping timeout: 272 seconds]
<shevy> ewww
<shevy> why are Hanmac's examples always less readable
aryaching has joined #ruby
<shevy> I think he is doing that on purpose with a grin on his face
Lewix has quit [Remote host closed the connection]
clevermatt has joined #ruby
<phutchins> Hanmac: ah, wrapping it in string would ensure its not nul
ahmedelg_ has joined #ruby
<Hanmac> phutchins: String(nil) #=> ""
ahmedelgabri has quit [Ping timeout: 272 seconds]
<phutchins> right
Lewix has joined #ruby
JaTochNietDan has quit [Quit: Right.]
r0ber has quit [Quit: Saliendo]
<phutchins> this is a rails config file so the .blank may work
<phutchins> not sure if its availabel in that context
timonv_ has joined #ruby
lioninawhat has quit [Ping timeout: 248 seconds]
MrPopinjay has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
_tpavel has quit [Read error: Operation timed out]
nateberkopec has joined #ruby
monkegjinni has joined #ruby
mikepack has joined #ruby
<MrPopinjay> Hi all. I have a question about array slicing. What's the difference between the ones returning [] and the ones returning nil in this? https://gist.github.com/lpil/e9a469d742cab5aa4553 Thank you
yarou has joined #ruby
Lewix has quit [Ping timeout: 248 seconds]
urbanslug has joined #ruby
_Andres has joined #ruby
Deejay_ has joined #ruby
dkamioka has joined #ruby
end_guy has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
razibog has joined #ruby
<w|t> We seem to have missed the gist of that gist you were looking for.
Hanmac1 has joined #ruby
marcgg has joined #ruby
mehlah has quit [Quit: Leaving...]
monkegji_ has joined #ruby
enebo has joined #ruby
<MrPopinjay> w|t: sorry, let me repost
<MrPopinjay> Hi all. I have a question about array slicing. What's the difference between the ones returning [] and the ones returning nil in this? http://bpaste.net/show/HXnQUJ1JvYMwJN5UDVd3/ Thank you
<MrPopinjay> I didn't realise that gist wasn't anon
<MrPopinjay> Silly me :)
monkegjinni has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
<Hanmac1> shevy & apeiros: think firefox error messages where more informative before: http://i.imgur.com/8zwicb1.png
brunops has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Hanmac1 is now known as Hanmac
<shevy> Hanmac hehe you use german firefox?
mehlah has joined #ruby
<Hanmac> shevy hm yes, but that should not happen ;P
tkuchiki has joined #ruby
ewnd9 has joined #ruby
MrZYX|off is now known as MrZYX
relix has joined #ruby
sassamo has joined #ruby
marcgg_ has quit [Ping timeout: 272 seconds]
m8 has joined #ruby
thenovices has joined #ruby
himsin has quit [Quit: himsin]
kpshek has joined #ruby
freerobby has quit [Quit: Leaving.]
ahmedelg_ has quit [Remote host closed the connection]
_Andres has quit [Ping timeout: 252 seconds]
sassamo has quit [Ping timeout: 272 seconds]
zigomir has quit []
Glacer232 has joined #ruby
_Andres has joined #ruby
samsonasu has quit [Quit: samsonasu]
<soahccc> MrPopinjay: Hmm usually you get nil if index (or starting index) is out of range which is in both cases
_Andres_ has joined #ruby
_Andres_ has quit [Read error: Connection reset by peer]
gozali has quit [Remote host closed the connection]
noop has quit [Ping timeout: 272 seconds]
lfox has joined #ruby
<apeiros> MrPopinjay: http://imgur.com/fBoM2
zegerjan has joined #ruby
ixolit has joined #ruby
danshultz has joined #ruby
_Andres has quit [Ping timeout: 272 seconds]
bluOxigen has quit [Ping timeout: 252 seconds]
<MrPopinjay> apeiros: Oh wow. Ok, I guess that makes sense. Kinda confusing to me
sethen has joined #ruby
CorySimmons has joined #ruby
<apeiros> MrPopinjay: imagine the indices to be like posts of a fence
<CorySimmons> Has anyone used RSVG?
<apeiros> i.e., if you have 4 "fence segments" you need 5 posts
<CorySimmons> I'm trying to convert pdf to svg. Is that possible?
<apeiros> CorySimmons: nobody ever has used rsvg
<apeiros> (and yes, that's one of the questions in the list of silly questions :-p)
_Andres has joined #ruby
jerius has joined #ruby
mikecmpbll has joined #ruby
monkegji_ has quit [Remote host closed the connection]
<MrPopinjay> Aye, I understand the behaviour now. However, why is is done this way? Is there a practical advantage? :)
<CorySimmons> apeiros: Sorry, I guess I meant, is anyone here familiar with RSVG?
<MrPopinjay> Oh, wait
<MrPopinjay> hm
Glacer232 has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> MrPopinjay: I have no special insight into the decision making of the language designers.
<MrPopinjay> haha, ok :)
kaldrenon has quit [Remote host closed the connection]
<apeiros> I'm not sure I'd handle this particular case the same way
<apeiros> probably not
<CorySimmons> apeiros: Is "I'm trying to convert pdf to svg. Is that possible?" what you were answering when you said "(and yes, that's one of the questions in the list of silly questions)"
kobain has joined #ruby
monkegjinni has joined #ruby
<apeiros> CorySimmons: I refered to "has anyone ever used X?", that's one of the silly questions.
<shevy> CorySimmons most of the time I convert .pdf into pure text files
<CorySimmons> shevy: I'm trying to go from .ai (with PDF editing capabilities) to <svg> :[
<MrPopinjay> shevy: Could you recommend a tool for that? :)
<shevy> first answer is to suggest using inkscape
<shevy> CorySimmons I have no idea what .ai is, sorry
<apeiros> given that pdf is a series of printing instructions, it would seem that it should be possible to convert it to svg. might not be a good idea, though.
<MrPopinjay> Adobe illustrator?
<CorySimmons> shevy: I can convert .ai to .pdf by changing the extension. But no real tool offers .ai conversion.
<CorySimmons> MrPopinjay: Yes
<apeiros> CorySimmons: eh, what?
gomix has joined #ruby
<MrPopinjay> hehe
<apeiros> CorySimmons: that's most certainly bollocks. .ai and .pdf are not compatible formats afaik.
<shevy> MrPopinjay the pdf->text ? there is ... pdf convert tools... pdftotext
netQT has joined #ruby
<MrPopinjay> I wonder if mupdf does it. I do like mupdf
<shevy> lol
<shevy> mooooooopdf
<shevy> approved by cows
<shevy> it would be cool if we would have more ruby tools for manipulating pdf files
<shevy> not just prawn and then... nothing else :P
<MrPopinjay> echo '<3 moooooopdf' | cowsay
<shevy> CorySimmons I guess if you just rename the extension alone, it is not a real conversion
bluOxigen has joined #ruby
netQT has quit [Read error: Connection reset by peer]
<shevy> CorySimmons can't you simply abandon .ai altogether?
nhhagen has quit [Remote host closed the connection]
<MrPopinjay> I do a fair amount of pdf editing (I work in print) and generally the tools that do it are either terrible or really expensive. I'd like to see more work done on a stand alone OSS pdf editor :)
<lewellyn> apeiros: tell that to adobe :)
browndawg has joined #ruby
razibog has quit [Ping timeout: 272 seconds]
<lewellyn> shevy: i expect anyone who spends significant time in illustrator would say "no" without giving you a chance to finish that question.
<shevy> poor guys
<shevy> adobe slaves!
<lewellyn> there are no real alternatives.
<MrPopinjay> mmm
<MrPopinjay> Depends what you're doing
<shevy> you could become pimp slaves instead!!!
<shevy> I mean gimp
<tobiasvl> pimp slaves
<MrPopinjay> Adobe people try to crowbar their favourite tool into any situation
<MrPopinjay> like I do with vim
<shevy> sometimes I do: pimp foobar.png
<shevy> It's a real alias I have.
krz has joined #ruby
<MrPopinjay> Wait
<lewellyn> gradient meshes are rightly the top item.
<MrPopinjay> ai to svg?
<shevy> water to wine
<MrPopinjay> I just opened illustrator, it saves to svg
<shevy> lead to gold
LekeFly has joined #ruby
RobertBrewitz has joined #ruby
<shevy> perhaps CorySimmons has a certain noob factor
<lewellyn> MrPopinjay: indeed it does. even compliant SVG which are still editable as if they were AI files.
<shevy> :>
<MrPopinjay> Am I not understanding the problem? What needs to be done?
<shevy> MrPopinjay you are on windows?
<MrPopinjay> OSX at work
<shevy> MrPopinjay I think it all started that CorySimmons wanted some ruby-related tool (or pure ruby or something)
RobertBrewitz has left #ruby [#ruby]
<MrPopinjay> It'll never happen
<shevy> he used MiniMagick before if I remember correctly
<shevy> hehehehe
_maes_ has joined #ruby
<MrPopinjay> paaaain
arietis has quit [Quit: Computer has gone to sleep.]
<lewellyn> i expect that no one in rubyland has bothered going through both the ai and svg specs sufficiently
<shevy> I am going to hire you as the weatherman MrPopinjay
<shevy> I like your forecasts already
po10_ has quit [Quit: /]
vlad_starkov has joined #ruby
<shevy> I never went through any spec at all
<shevy> they are so boring!
<MrPopinjay> Do adobe products have a CLI?
monkegjinni has quit [Remote host closed the connection]
<banister> MrPopinjay prolly
Txandy has joined #ruby
<lewellyn> inkscape, irritatingly, can't even render certain SVGs which are totally valid and render fine elsewhere which are created with AI.
<MrPopinjay> I should look into that
<MrPopinjay> I'm currently trying to automate my entire day job with ruby
ixolit has left #ruby [#ruby]
<lewellyn> "hm. we know we don't support this feature, so we're going to totally ignore it even though we can do a reasonable representation of it!" :P
<lewellyn> MrPopinjay: you're on a mac. you have automator and applescript ;)
<shevy> ok I now checked where pdftotext is
<MrPopinjay> lewellyn: yeah, but this way I'm learning something useful
<shevy> MrPopinjay, it is part of poppler: "pdfdetach,pdffonts,pdfimages,pdfinfo,pdfseparate,pdftocairo,pdftohtml,pdftoppm,pdftops,pdftotext,pdfunite,poppler-glib-demo", URL at http://poppler.freedesktop.org/poppler-0.24.5.tar.xz
<lewellyn> MrPopinjay: adobe products used to have large applescript dictionaries.
<shevy> MrPopinjay I use ruby as glue language for EVERYTHING!
<MrPopinjay> That's the plan
<shevy> imagine if we could even control any GUI from the commandline
<MrPopinjay> Though having said that, I think most the things I can automate that I might use adobe rubbish for I could do with other external applications, ones that are better suited to this sort of thing
monkegjinni has joined #ruby
<lewellyn> MrPopinjay: you don't like ASS? :)
<shevy> what is ass
<lewellyn> applescript studio.
<lewellyn> now part of xcode.
VTLob has joined #ruby
<shevy> wait
<lewellyn> how that ever got approved is beyond me.
<shevy> isn't xcode something for OSX?
<lewellyn> 06:24 MrPopinjay: OSX at work
<shevy> yeah but I mean in regards to ASS
<shevy> you OSXers are confusing
<lewellyn> ASS is inherently for OSX. so being part of XCode is sane.
vlad_starkov has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
bluOxigen has quit [Read error: Connection reset by peer]
<lewellyn> OS 9 and below had Script Editor instead.
vlad_starkov has joined #ruby
<MrPopinjay> shevy: make it so
<MrPopinjay> Right, I'm gunna go have lunch. Goodbye all, it's been a pleasure, as always.
bluOxigen has joined #ruby
marcgg_ has joined #ruby
<MrPopinjay> I'm not really an OSXer
<MrPopinjay> I'm a Linux guy.
<MrPopinjay> But it's this or Windows, and I sure as hell know what I'm doing in this situation
gregoriokusowski has quit [Quit: gregoriokusowski]
<lewellyn> i never wanted to be an $operatingSystem guy... i wanted to be a LUMBERJACK!
fijimunkii has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
gregoriokusowski has joined #ruby
<MrPopinjay> baii
MrPopinjay has quit [Quit: leaving]
marcgg has quit [Read error: No route to host]
<soahccc> We have the same OS choice as google
marcgg__ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<shevy> linux forever!
<lewellyn> you might.
<shevy> it's shit but it works!
<lewellyn> SunOS looking-glass 5.10 Generic_137137-09 sun4u sparc SUNW,UltraAX-i2
wildroman2 has joined #ruby
<lewellyn> woo.
freerobby has joined #ruby
<shevy> Hanmac hehehe
marcgg has joined #ruby
jokke is now known as jokke[away]
siwica has joined #ruby
marcgg has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jokke[away] is now known as jokk
fedez77 has quit [Read error: Connection reset by peer]
jokk is now known as jokke
marcgg_ has quit [Ping timeout: 245 seconds]
<soahccc> shevy: I have seen linux desktops way better than OS X but they always needed like years to accomplish this perfection
nhhagen has joined #ruby
tyl has joined #ruby
fedez77 has joined #ruby
samsonasu has joined #ruby
<shevy> soahccc well the problem is that gnome, kde and partially ubuntu/unity are shaping most of the linux desktop
bjhaid has joined #ruby
<Morrolan> Pft, fancy clicky stuff.
<soahccc> working clicking stuff
<Morrolan> My non-clicky WM works too. :P
Xeago_ has joined #ruby
mansi has joined #ruby
poseid has joined #ruby
<Morrolan> 'course it's got a different target audience.
<soahccc> The best imho is that I can use my normal shortcuts in my terminal :)
marcgg__ has quit [Read error: No route to host]
<poseid> so, I want to define a time window in unit of days, but subtracting 4.weeks.ago - DateTime.now doesnt really work
Fire-Dragon-DoL has joined #ruby
<poseid> what would be the ruby way to do this?
ace_striker has quit [Ping timeout: 272 seconds]
marcgg has joined #ruby
sLi_ has joined #ruby
<soahccc> poseid: what is your desired output? x days?
<poseid> yes, it is for statistics
nettoweb has joined #ruby
<poseid> like x events/day, or 100 days over the last 4 weeks, etc
<poseid> I am having access to ActiveSupport maybe I should read the docs there
Xeago has quit [Ping timeout: 260 seconds]
dblessing has joined #ruby
<soahccc> poseid: well you substract and end up with a negative date
po10 has joined #ruby
dogonthesun has joined #ruby
Advocation has quit [Quit: Advocation]
LiohAu has joined #ruby
ixti has joined #ruby
camilasan has quit [Remote host closed the connection]
<LiohAu> what is the syntax to call a method B defined in a module A ? A.B ?
<poseid> ok, maybe I should use strings, and convert those to dates myself.
kevind_ has joined #ruby
Sammael has joined #ruby
chrisseaton has quit []
bjhaid has quit [Quit: Leaving.]
dogonthesun has quit [Client Quit]
bjhaid has joined #ruby
Virtualize has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
<Morrolan> LiohAu: A::b() or A.b() both work. Mainly a matter of preference.
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.)]
nettoweb has quit [Quit: nettoweb]
nettoweb has joined #ruby
drumusician has quit [Quit: Leaving]
rudisimo has joined #ruby
nettoweb has quit [Client Quit]
avalarion has quit [Read error: Connection reset by peer]
drumusician_ has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
OdNairy has quit [Ping timeout: 265 seconds]
nhhagen has quit [Remote host closed the connection]
kpshek has quit []
drumusician_ has quit [Client Quit]
mlpinit has joined #ruby
<shevy> soahccc you can use normal shortcuts in the terminal?
camilasan has joined #ruby
burlyscudd has quit [Quit: Leaving.]
monkegjinni has quit [Remote host closed the connection]
po10 has quit [Ping timeout: 245 seconds]
<soahccc> shevy: Well on OS X you do everything with CMD (which would be the windows key) so, cmd+c, cmd+v. They don't collide with the terminal specific shortcuts like ctrl-c for interrupt
<shevy> LiohAu, one way: module Foo; def bla; puts 'bla!'; end; extend self; end; Foo.bla # bla!
OdNairy has joined #ruby
<shevy> soahccc I see
<shevy> I am a poor man, I only have kde konsole :(
<soahccc> I get crazy when I copy on select and insert on right click :<
__main__ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
DouweM has joined #ruby
fgo_ has quit [Remote host closed the connection]
LekeFly has quit [Ping timeout: 265 seconds]
MattStratton has joined #ruby
JaTochNietDan has joined #ruby
kcombs has joined #ruby
ghr has joined #ruby
poseid has quit [Quit: Page closed]
fantazo has joined #ruby
<LiohAu> Morrolan: thx
<LiohAu> shevy: ok
kevind_ is now known as kevind
meatherly has joined #ruby
guilund has quit [Remote host closed the connection]
<Fuzai> how can I convert a string from camel case to snake case?
<apeiros> lewellyn: tell what adobe?
<apeiros> lewellyn: that .ai and .pdf aren't compatible formats? why'd I tell them that? I'm pretty sure they know…
pranny has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<Takumo> so I've got an object of a class which has "attr_accessor :account_id"
jcarouth has quit [Excess Flood]
<Takumo> however if object.attrs["account_id"] is set , object.account_id still returns nil
sassamo has joined #ruby
<DouweM> Fuzai: there's not built-in way, but you could check out Rails's #underscore and #camelize
jcarouth has joined #ruby
yedimind is now known as jedimind
<apeiros> Takumo: attr_accessor is about instance variables
CorySimmons has quit [Quit: Leaving.]
Sid05 has joined #ruby
<apeiros> Takumo: so unless object.attr["account_id"] somehow maps to object's @account_id ivar, those two won't have any relation.
<ericwood> all about dem instance variables
mansi has quit [Remote host closed the connection]
<apeiros> Fuzai: if you don't use rails, you can add a dependency on active_support
<Takumo> ah yes
mansi has joined #ruby
<apeiros> (that's the part of rails which defines #underscore and #camelize)
kaldrenon has joined #ruby
<ericwood> hmmmm is that actually worth doing? AS is pretty beefy, isn't it?
<ericwood> ActiveSupport is pretty great, though
<DouweM> apeiros: all of AS would be overkill
<apeiros> DouweM: have they separated AS into smaller chunks?
<ericwood> you *could* just borrow the methods from AS
<DouweM> apeiros: I think you can require just what you need
h_kon has quit [Remote host closed the connection]
<DouweM> apeiros: but for two methods adding a gem is still overkill
bricker`LA has joined #ruby
<apeiros> DouweM: you can't require anything without having it as a dependency first :-p
<DouweM> as I said, overkill ;)
<ericwood> just copypasta the methods from the AS source
<hoelzro> >> 'camelCase'.gsub(/(?<=\w)([A-Z])/) { |l| '_' + l.downcase }
<hoelzro> Fuzai: ^^
<DouweM> :)
nhhagen has joined #ruby
pranny has quit [Ping timeout: 246 seconds]
<Morrolan> Is that even complex enough to warrant adding a dependency? Quick & dirty solution would be to scan for /[A-Z][a-z]+/, call downcase on each, then join with '_' as separator.
mansi_ has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
<apeiros> DouweM: subjective. writing my own methods is overkill :-)
bluenemo has quit [Remote host closed the connection]
chrisseaton has joined #ruby
<Morrolan> Or, in case of camelCase rather than CamelCase, make the first uppercase letter optional.
mansi has joined #ruby
<apeiros> (+maintaining)
mansi has quit [Read error: Connection reset by peer]
<DouweM> true
<ericwood> there ya go
sassamo has quit [Ping timeout: 253 seconds]
fedesilva has quit [Remote host closed the connection]
mansi has joined #ruby
<DouweM> well, you'd need the Inflector's camelize
<ericwood> lol yeah
jlast has joined #ruby
<Morrolan> Looks fancy.
<ericwood> dem regexes
<ericwood> mmmmmmmm
theRoUS has joined #ruby
theRoUS has joined #ruby
<DouweM> it's got logic for acronyms and :: that you probably won't need.
Cephalostrum has joined #ruby
bricker`LA has quit [Ping timeout: 276 seconds]
bluOxigen has quit [Ping timeout: 248 seconds]
nhhagen has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
nhhagen has joined #ruby
mary5030 has joined #ruby
kai1 has joined #ruby
kai1 has left #ruby [#ruby]
nwertman has quit [Quit: Lost terminal]
petey has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
CorySimmons has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.2]
Doc_X is now known as Doc_XI
nhhagen has quit [Read error: Connection reset by peer]
allaire has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
tesuji has quit [Ping timeout: 272 seconds]
w4pm has joined #ruby
nateberkopec has joined #ruby
nhhagen has joined #ruby
ahmedelgabri has joined #ruby
ms_steampunk has joined #ruby
<ms_steampunk> Hey guys, quick question. If you make a gem, and let's assume it's a working gem, you can both require it from terminal and from a file without any added code right?
<ms_steampunk> I'm trying to explain to someone that you don't have to "implement" differently for both methods of require IIRC.
Hobogrammer has quit [Ping timeout: 272 seconds]
arturaz has quit [Remote host closed the connection]
<Morrolan> "Require from terminal"?
<ms_steampunk> Ah sorry I meant lets say
<Morrolan> Do you mean from within an interactive Ruby shell (e.g. irb, pry)?
<ms_steampunk> You're in IRB
<ms_steampunk> Yeah
nhhagen has quit [Remote host closed the connection]
<Morrolan> In this case - yes.
<ms_steampunk> So it IS the same thing/action being done?
dnorthrup has joined #ruby
<Morrolan> Yes.
nhhagen has joined #ruby
kep has quit [Quit: WeeChat 0.4.2]
deception has joined #ruby
w4pm has quit [Ping timeout: 248 seconds]
ahmedelgabri has quit [Ping timeout: 246 seconds]
<ms_steampunk> Thanks Morrolan
<Morrolan> :)
<ms_steampunk> Now just to convince him that I am right lol
acrussell has joined #ruby
<Morrolan> I certainly wonder why he thought that it'd be different. :P
OdNairy has quit [Ping timeout: 246 seconds]
<Morrolan> The easiest way to convince him is probably to just show him.
<ms_steampunk> I don't know haha. He said he's been using Rails too long and haven't done Ruby in a while.
dnorthrup has quit [Client Quit]
<lewellyn> apeiros: note the highlighted checkbox. http://i.imgur.com/rmWJTU6.png
<Morrolan> Rails probably does something funky with the load path when using its console vs starting the server, but I'm not sure. :)
Doc_X has joined #ruby
<apeiros> lewellyn: so that file can indeed be "converted" to a pdf by a mere rename?
ewnd9 has quit [Read error: Connection reset by peer]
<soahccc> Morrolan: No but if you install gems via bundler you can't require them within a irb/pry session which is not in you bundle context unless it is also installed via gem command
ewnd9 has joined #ruby
<apeiros> lewellyn: but even if - the existence of the checkbox implies that while some .ai files may be .pdf compatible, it's not all .ai files which are. so the extension alone is insufficient.
heftig has quit [Ping timeout: 246 seconds]
IceyEC has joined #ruby
Doc_XI has quit []
ayumin has joined #ruby
OdNairy has joined #ruby
<ms_steampunk> soahccc so if I gem install nokogiri, I can use it in irb
tobago has quit [Remote host closed the connection]
<soahccc> yes
<petey> I'm currently using angular and google spreadsheet as a backend to pull all the data onto the page. I want to try doing it differently. The data is changed once every few weeks, but it can't be static. Can I do this more efficiently with Ruby?
<lewellyn> apeiros: the checkbox is checked by default. and the files begin with: %PDF-1.5
<petey> I want to be able to make changes in the google spreadsheet and have them appear on refresh, for example.
<Morrolan> soahccc: Won't Bundler install to $GEM_HOME by default?
brunops has quit [Ping timeout: 272 seconds]
<ms_steampunk> soahccc and when you mean installed by bundler its 'require nokogiri' in a file right and then running bundle install ?
<apeiros> lewellyn: default or not doesn't matter. it means not all .ai files are pdf compatible.
<Morrolan> ms_steampunk: Need to add it to the Gemfile for Bundler to do anything about it.
pu22l3r_ has joined #ruby
<ms_steampunk> Oh okay thanks Morrolan!
<lewellyn> apeiros: the question specifically stated that it was regarding the default case.
bean__ has joined #ruby
* apeiros off for commute
apeiros has quit []
<soahccc> Morrolan: you're right I can use the gems installed by bundler. It was the other way around which doesn't work since bundler complains :)
akemrir has joined #ruby
rippa has joined #ruby
vlad_starkov has joined #ruby
burlyscudd has joined #ruby
guilund has joined #ruby
tagrudev has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
dweeb_ has quit [Quit: Computer has gone to sleep.]
kreantos has quit [Ping timeout: 245 seconds]
MatthewsFace has joined #ruby
avalarion has joined #ruby
MrZYX is now known as MrZYX|off
fantazo has quit [Ping timeout: 245 seconds]
sergicles has quit [Quit: sergicles]
arietis has joined #ruby
kcombs has quit [Remote host closed the connection]
tylersmith has joined #ruby
user258467 has joined #ruby
fedesilva has joined #ruby
brunops has joined #ruby
<zxd> http://pastebin.com/Ts6gGAq4 anyone know why it dosen't read #{user['home']} variable under ruby_block and git ?
MrZYX|off is now known as MrZYX
vlad_starkov has quit [Remote host closed the connection]
kreantos has joined #ruby
yasushi has quit [Remote host closed the connection]
pranny has joined #ruby
pranny has quit [Client Quit]
vlad_starkov has joined #ruby
Jdubs has joined #ruby
SCommette has joined #ruby
sergicles has joined #ruby
Jdubs has quit [Remote host closed the connection]
Jdubs has joined #ruby
Virtualize|away has quit [Read error: Connection reset by peer]
<zxd> test
Virtualize has joined #ruby
<tobiasvl> zxd: 1. what does it do instead? is the code being run, but the string isn't interpolated? 2. are you sure user['home'] is set?
kotk has joined #ruby
interactionjaxsn has joined #ruby
freezey has joined #ruby
brunops has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 272 seconds]
dukz has joined #ruby
CorySimmons has quit [Quit: Leaving.]
DouweM_ has joined #ruby
<shevy> zxd split it up and check the content
Kruppe has quit [Quit: ZNC - http://znc.in]
DouweM has quit [Ping timeout: 248 seconds]
shime has quit [Ping timeout: 272 seconds]
<zxd> tobiasvl: the string isn't interpolated
burlyscudd has quit [Quit: Leaving.]
Es0teric has joined #ruby
Kruppe has joined #ruby
<zxd> it is set in the first block if user['git_user'] && user['git_user']['enabled']
<zxd> I could be wrong
<workmad3> zxd: that doesn't set anything
vlad_starkov has quit [Remote host closed the connection]
<workmad3> zxd: that just checks if the user has a couple of attributes (not the one you're interpolating)
<zxd> including home no ?
CorySimmons has joined #ruby
<workmad3> no
CaptainJet has joined #ruby
<zxd> it passes home to the git_user resource
<zxd> hmm
starkhalo has joined #ruby
<workmad3> zxd: that doesn't mean it's set, just that the git_user resource has a default that can be used there if home has no varue
<workmad3> *value
atmosx has joined #ruby
<workmad3> zxd: the real thing to tell if it's been set... did you add a 'home' key to the item in the data bag?
<zxd> yes
<workmad3> zxd: prove it with a pastie ;)
crystal77 has joined #ruby
<zxd> oh man
<zxd> I didn't
<workmad3> there you go ;)
<crystal77> Hi, is there a guide that will explain the difference between gems, gemsets, rvm, rake, etc. All the tutorials I read assume pre-existing knowledge, and I'm at a loss.
<zxd> there's only id and other stuff user cookbook auto appends /home + user
Bira has joined #ruby
dweeb_ has joined #ruby
lmickh has joined #ruby
vlad_starkov has joined #ruby
allaire has quit []
<MrZYX> crystal77: gems are ruby libraries, rvm is a tool to manage multiple installations of ruby, gemsets is a feature of rvm (not ruby), rake is a tool to run tasks written in ruby, much like make
lmickh has quit [Remote host closed the connection]
Virtualize has quit [Quit: Leaving...]
OdNairy has quit [Ping timeout: 248 seconds]
Sid05 has quit [Ping timeout: 252 seconds]
aryaching has quit []
<crystal77> Hmm. I understand RVM, and gems (used them before). And I'm learning about unit tests, but again, no tutorials cover how to learn them, just why they're good to use. Always wonder how people learned about unit tests, probably in Uni.
<ericwood> lol nope
<LastWhisper> crystal77: what do you want to learn about unit tests
ewnd9 has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood> uni doesn't teach you shit about testing
mikeg has joined #ruby
<LastWhisper> i am an automation engineer full time... i never learend about it in uni
<LastWhisper> haha
<crystal77> Nice! How did you learn it?
ewnd9 has joined #ruby
<LastWhisper> slow and steady :P
<ericwood> reading things like the railsguides on testing
<crystal77> And I think before I dive into that stuff, I should learn ruby first, as that's my biggest hurdle.
<LastWhisper> What specifically do you want to learn?
ewnd9 has quit [Remote host closed the connection]
<crystal77> everything :x
<ericwood> yeah please learn ruby first!
<LastWhisper> What do you want to test?
<crystal77> I keep running back to PHP, because it's my comfort zone, and I want to get out of it. ):
<ericwood> okay let's forget about testing for a second
<ericwood> you should pick up the language first
<ericwood> then we'll talk about unit testing
mikepack has joined #ruby
<crystal77> Makes sense. Pickaxe book?
<MrZYX> or RVM or Gems or anything else
<ericwood> sure
freezey has quit [Remote host closed the connection]
<crystal77> Or Codecademy? Or whatever? Tutorial overload, there are wayyyy too many tutorials out there.
po10 has joined #ruby
<LastWhisper> crystal77: I knew very basic ruby
<MrZYX> well, do you have a preferred style?
pranny has joined #ruby
pranny has quit [Client Quit]
<LastWhisper> and started writing tests in watir
<LastWhisper> and just learned as i went
<crystal77> I only learn by doing, not by reading/watching videos.
<LastWhisper> i dont really use watir any more, ive switched to capybara, but watir is still very useful
dogonthesun has joined #ruby
<shevy> I got a table
<MrZYX> crystal77: maybe go through tryruby.org and then go straight to the ruby koans
ewnd9 has joined #ruby
<MrZYX> and ask us all the dumb questions you'll get in that process
<shevy> I want this table to become a 2D-plot
lmickh has joined #ruby
<ericwood> I hate video tutorials
<shevy> is there a simple way from the commandline to display this or otherwise create images or similar, ideally from using ruby?
chrisseaton has quit []
snath has quit [Ping timeout: 248 seconds]
dukz has quit [Remote host closed the connection]
_maes_ has joined #ruby
aryaching has joined #ruby
<ericwood> there's libraries for generating SVGs
sassamo has joined #ruby
<ericwood> that might be a decent approach
wildroman2 has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 252 seconds]
devdazed has quit [Quit: Bye]
Shidash has joined #ruby
<shevy> hmm let me think
<Takumo> hmm still not cracked this whole attribute readers thing
freezey has joined #ruby
eleve has quit [Quit: eleve]
fantazo has joined #ruby
<shevy> Takumo what's with it. attr_reader :foo - that is all :)
ace_striker has joined #ruby
<Takumo> It's mostly based on the twitter gem, I've got an object that is created from a JSON object returned by a REST API
<shevy> ewwwww
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
devdazed has joined #ruby
<Takumo> well I want a clean way that I can create an object with some attributes (i.e. :account_id ) currently they all live in a hash of @attrs
dj21 has joined #ruby
<MrZYX> Look at OpenStruct
<workmad3> shevy: regarding your 2d plot... it might be amenable to formatting with graphviz
chrisseaton has joined #ruby
<dj21> is shellescape enough to prevent shell injection?
dukz has joined #ruby
<Doc_X> bbssysop: yeah, i'd just drop the JSON into a file, do 'knife role from file role.json' and add it that way. Ruby DSL, while interesting, is not what i've used or would suggest.
nhhagen has quit [Remote host closed the connection]
<Doc_X> but that's just me, i could be wrong :-)
jprovazn has quit [Quit: Leaving]
guilund_ has joined #ruby
<Doc_X> damn, wrong channel :(
<Takumo> Is there a better way to create objects based on a REST API with attr_readers ?
<workmad3> dj21: afaik, just using the multi-arg forms of system and exec stop shell injection
CaptainJet has quit []
<MrZYX> Takumo: look at OpenStruct
<workmad3> dj21: e.g. system("foobar", "arg1", "arg2", ...)
<shevy> workmad3 good idea
<dj21> this makes me nervous
<Takumo> MrZYX: is that 1.8.7 compatible?
<shevy> I once used graphviz like 8 years ago but only for circle----circle---circle drawings
<dj21> i have to pass user input into a shell
nwertman has joined #ruby
<dj21> shudder
<crystal77> MrZYX: haha alright then
<Takumo> dj21: No you don't, your solution is clearly flawed if you're doing that...
<workmad3> dj21: as arguments to a command?
guilund has quit [Ping timeout: 260 seconds]
jlast has joined #ruby
<dj21> Takumo: need to take a screenshot of a webpage. thinking of piping a url to cutycapt, got a better idea?
<dj21> and the capit gem won't cut it
<MrZYX> Takumo: I don't care and so shouldn't you. Ruby 1.8 is EOL, some company picking up emergency security patches doesn't change that
<workmad3> dj21: system("cutycapt", user_url)
samsonasu has quit [Quit: samsonasu]
<dj21> does that return from stdout?
<workmad3> dj21: or whatever the setup of the command is ;)
burlyscudd has joined #ruby
<Takumo> MrZYX: It's still the newest Ruby available in may distros
arietis has quit [Quit: Computer has gone to sleep.]
<MrZYX> in many stupid distros
<MrZYX> don't know a single sane one
<shevy> debian!!!
<sec^nd> What is the best way to merge a scalar value in yaml?
<soahccc> Takumo: even debian, DEBIAN, I mean debian has 1.9
<Morrolan> Unless you're on oldstable. :P
<shevy> sec^nd what is a scalar value in ruby?
samsonasu has joined #ruby
<Morrolan> Or *cough* CentOS 5.
<shevy> Morrolan dinosaurstable 2.0!
dogonthesun has quit [Quit: Computer has gone to sleep.]
<sec^nd> shevy: I'm using YAML
<shevy> huh
<shevy> I thought you were using ruby
<workmad3> dj21: it's just a normal system() call
<dj21> (shudder)
<Hanmac> CentOS ... from a long time ago before Stone was invented ...
<dj21> i guess i want IO::popen
kep has joined #ruby
<Takumo> well then, 1.9.3 minimum it is
jlast has quit [Read error: Operation timed out]
<workmad3> dj21: it's a normal system call that's passing arguments as separate params so they're correctly escaped ;)
<workmad3> dj21: e.g. 'system("echo", "*")' echos out '*' rather than a directory listing
sambao21 has quit [Quit: Computer has gone to sleep.]
dogonthesun has joined #ruby
petey has quit [Remote host closed the connection]
dogonthesun has quit [Client Quit]
fantazo has quit [Ping timeout: 245 seconds]
petey has joined #ruby
sambao21 has joined #ruby
rayners has joined #ruby
<Hanmac> dj21 & workmad3 whats why there is a difference between 'system("echo", "*")' and 'system("echo *")'
mhenrixon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> dj21: however, if you want access to the IO streams then yeah IO::popen is what you want, I believe
poseid has joined #ruby
[_aeris_] is now known as _aeris_
<poseid> what is the fastest way to see the help for a class, e.g. DateTime from the console?
<workmad3> poseid: use pry and pry-doc
<Hanmac> dj21 & workmad3 http://www.ruby-doc.org/core-2.1.0/Kernel.html#method-i-system << RTFM ... this special case is already documented ... :/
sailias has joined #ruby
jlast has joined #ruby
<poseid> thanks
<workmad3> Hanmac: I do RTFM ;)
<workmad3> Hanmac: that's how I know about the multi-arg form that escapes the args
mojjojo has quit [Quit: mojjojo]
petey_ has joined #ruby
petey has quit [Read error: Connection reset by peer]
lfox has quit [Ping timeout: 252 seconds]
terrellt has joined #ruby
<poseid> subtracting two DateTime gives Rational ?
senj has joined #ruby
wald0 has joined #ruby
razibog has joined #ruby
Xeago_ has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Xeago has joined #ruby
mikecmpbll has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
wald0 has quit [Client Quit]
jedimind has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
_aeris_ is now known as [_aeris_]
sparrovv has joined #ruby
kreantos has quit [Ping timeout: 252 seconds]
atmosx has quit [Quit: Lost in trance]
aganov has quit [Remote host closed the connection]
mneorr has joined #ruby
dukz has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
gregoriokusowski has quit [Quit: gregoriokusowski]
Virtualize has joined #ruby
Virtualize has quit [Client Quit]
mojjojo has joined #ruby
araujo has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
DrShoggoth has joined #ruby
thenovices has quit [Remote host closed the connection]
apeiros has joined #ruby
digital-ghost has joined #ruby
Shidash has quit [Remote host closed the connection]
cj3kim has joined #ruby
IceDragon has joined #ruby
cj3kim has quit [Remote host closed the connection]
_tpavel has joined #ruby
dukz has quit [Remote host closed the connection]
<shevy> dumdedum
MatthewsFace has quit [Quit: This computer has gone to sleep]
lethjakman has joined #ruby
dukz has joined #ruby
<shevy> (DateTime.parse('02-09-2007 12:30:44 AM') - DateTime.parse('02-09-2007 12:10:44 AM')).class # => Rational
<shevy> yes!
<shevy> why does Fixnum not have to_r or to_rational
<shevy> oh wait
<shevy> it has to_r
<shevy> when will mruby be ready?
MrZYX is now known as MrZYX|off
juarlex has joined #ruby
juarlex has quit [Remote host closed the connection]
<Hanmac> shevy: mruby will be ready after my rwx binding is finish and documented ;P
vlad_starkov has joined #ruby
mansi has quit [Remote host closed the connection]
kevind_ has joined #ruby
mansi has joined #ruby
<dj21> i want to test if a url is valid for making a screenshot based on the HTTP code. should i just only accept 200 <= x < 300?
noop has joined #ruby
dukz_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
troessner has quit [Quit: Leaving]
dogonthesun has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
<Hanmac> dj21: hm normaly you should only allow 200 each other need more work like redirecting
cj3kim has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<dj21> only 200 itself?
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
<Hanmac> imo yes
_tpavel has quit [Ping timeout: 245 seconds]
<dj21> hmm
<apeiros> dj21: 200 after following N redirects
<dj21> do you know a url with a 30x redirect?
<apeiros> where N is a number you'd have to choose yourself
MrZYX|off is now known as MrZYX
cj3kim has quit [Remote host closed the connection]
<dj21> well. i'm stuck with httparty and cutycapt (through a system call)
claymore has quit [Ping timeout: 245 seconds]
<dj21> i wonder if i can find a page with a 301
<dj21> or 302
burlyscudd has quit [Quit: Leaving.]
brunops has joined #ruby
thenovices has joined #ruby
urbanslug has quit [Read error: Operation timed out]
<shevy> you guys are weird
<shevy> finding the lost page in the intarnetz
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
<dj21> i better just test the broken command on the server
<shevy> Hanmac ok forget the documentation, but do make it into a gem
arietis has joined #ruby
fijimunkii has joined #ruby
urbanslug has joined #ruby
_tpavel has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<dj21> how do i get bash to print the return status of a command
<MrZYX> echo $? ?
<Morrolan> echo $?
<Morrolan> Heh.
<dj21> mmn perlish
<workmad3> dj21: by modifying your PS1 so that a cat is either happy or unhappy depending on the previous exit status...
vitornascimento has quit [Remote host closed the connection]
poseid has quit [Ping timeout: 272 seconds]
<dj21> actually i think i'll just do a sanity check on the output
<dj21> itself
<dj21> good to know tho thx
<dj21> :O
noname001__ has quit [Ping timeout: 272 seconds]
zegerjan has quit [Ping timeout: 260 seconds]
bricker`LA has joined #ruby
<workmad3> dj21: http://grab.by/loTk there's my exit-code cat :)
Hobogrammer has joined #ruby
kuzushi_ has joined #ruby
thenovices has quit [Remote host closed the connection]
bluehavana has joined #ruby
Zai00 has joined #ruby
_HolyCow1 is now known as _HolyCow
<Doc_X> dj21: http://cnn.com/ provides a 301 redirect
petey_ has quit [Remote host closed the connection]
urbanslug has quit [Quit: Lost terminal]
kuzushi has quit [Ping timeout: 276 seconds]
burlyscudd has joined #ruby
petey has joined #ruby
thenovices has joined #ruby
deception has quit [Read error: Connection reset by peer]
[_aeris_] is now known as _aeris_
crystal77 has quit [Remote host closed the connection]
ahmedelgabri has quit []
vlad_starkov has joined #ruby
petey has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
ahmedelgabri has joined #ruby
mikepack has quit [Remote host closed the connection]
petey has joined #ruby
araujo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
mhenrixon has joined #ruby
_tpavel has quit [Quit: Leaving]
mikepack has joined #ruby
Voodoofish430 has joined #ruby
heftig has joined #ruby
baroquebobcat has joined #ruby
yacks has joined #ruby
<dj21> thx
zoscoy has joined #ruby
<Doc_X> np
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmedelg_ has joined #ruby
senj has joined #ruby
<workmad3> dj21: for any HTTP status code, you can also use http://httstat.us/<code>
<workmad3> dj21: and you'll get a response with the specified code
<workmad3> Doc_X: you may find that useful too ;)
krz has quit [Quit: WeeChat 0.4.2]
<Doc_X> hmm... it'll return invalid HTTP status codes (presuming you mean http://httpstat.us/<code>)
mercwithamouth has quit [Ping timeout: 245 seconds]
<workmad3> yup
<workmad3> and yeah, httpstat.us sorry for the typo
<Doc_X> though it knows about HTTP 418 which is a plus :-)
ahmedelgabri has quit [Ping timeout: 252 seconds]
pu22l3r_ has quit [Remote host closed the connection]
<workmad3> the main site httpstat.us lists all valid and commonly used extension status and their meanings
ohwhoa has quit [Quit: woah!]
pu22l3r_ has joined #ruby
<workmad3> although httpstatus.es or httpstatusdogs.com are a bit better for that IMO :)
<dj21> oh crap. cutycapt needs an x server, WTF
timonv_ has quit [Remote host closed the connection]
<dj21> all that work for nothing
<workmad3> oops
bbloom has joined #ruby
adthul has joined #ruby
<workmad3> dj21: xvfb?
guyz is now known as digifiv5e
<dj21> that is such a gross solution
<dj21> to this problem, frustrated....
<workmad3> dj21: well I'm guessing you wouldn't have time to do the neat solution...
<dj21> xvfb?
jedimind has joined #ruby
<workmad3> dj21: no, reimplement cutycapt so that it doesn't need an x server
<dj21> ugh no way
KK4MGV has left #ruby [#ruby]
petey has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
alekst has joined #ruby
<dj21> think i'm sending this out to a third party
<dj21> smh
dogonthesun has quit [Quit: Computer has gone to sleep.]
dukz_ has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
petey has joined #ruby
CorySimmons has quit [Quit: Leaving.]
mneorr has joined #ruby
KK4MGV has joined #ruby
<dj21> oh actually there are instructions on the cutycapt page to do it with xvfb...
<dj21> am i crazy or does that sound insanely insecure
CorySimmons has joined #ruby
Hobogrammer_ has joined #ruby
roolo has quit [Remote host closed the connection]
digifiv5e is now known as guyz
pel_daniel has joined #ruby
<Hanmac> shevy how college works: https://i.chzbgr.com/maxW500/8003570688/h2AB5AD78/
petey_ has joined #ruby
thenovices has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
phansch has quit [Read error: Connection reset by peer]
maletor has joined #ruby
petey has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
phansch has joined #ruby
ohwhoa has joined #ruby
ambushsabre has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
mneorr has quit [Ping timeout: 252 seconds]
<Takumo> MrZYX: Would it be sensible for my API client to have resouces which inherit from ::OpenStruct?
<dweeb_> What do I call a class that takes some "sources" as argument and tries to find the best alternative? Is there a good name for that?
mhenrixon has quit [Quit: Textual IRC Client: www.textualapp.com]
terrellt has quit [Read error: Connection reset by peer]
<Takumo> i.e. MyGem::MyResource < ::OpenStruct
<MrZYX> Takumo: if the API is _very_ unstable
sparrovv has quit [Remote host closed the connection]
<MrZYX> I guess I'd rather use normal structs
<Hanmac> Takumo: about "sensible" are you scared that someone might touch your code?
gregoriokusowski has joined #ruby
<Takumo> Hanmac: its a gem, so I want it to be clean and stable
<Takumo> anyway, Struct sounds likea better place to go
* Hanmac is the wrong person to ask about "clean" and "stable" ;D (ask shevy he can prof my point ;P )
billiam has joined #ruby
CorySimmons has quit [Quit: Leaving.]
MrThePlague has joined #ruby
tkuchiki has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
tkuchiki has joined #ruby
starkhalo has quit [Ping timeout: 260 seconds]
rootshift has joined #ruby
<shevy> I am the wrong person to ask about OpenStruct
<shevy> Takumo, ask apeiros
ace_striker has quit [Ping timeout: 272 seconds]
Hobogrammer_ is now known as Hobogrammer
mityaz has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
<Takumo> well I just want a way that I can take a hash and make it into an object (so I can add methods) with accessor methods for all the data...
freezey has quit [Remote host closed the connection]
camilasan has quit []
burlyscudd has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
camilasan has joined #ruby
albertgrala 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.)]
alexfreidah has joined #ruby
dscrd has joined #ruby
cascalheira has joined #ruby
<apeiros> Takumo: see OpenStruct
aspires has joined #ruby
ephemerian has quit [Quit: Leaving.]
starkhalo has joined #ruby
juarlex has joined #ruby
geggam has joined #ruby
<Takumo> apeiros: Ok so I could just extend OpenStruct to add my own helper methods?
nvrch has quit [Quit: nvrch]
<apeiros> I wouldn't extend OpenStruct. I'd inherit from it.
<apeiros> (not the same)
TMM has quit [Quit: Ex-Chat]
<Takumo> that's what I meant
vlad_starkov has quit [Remote host closed the connection]
<Takumo> MyGem::MyClass < ::OpenStruct (as opossed to MyGem::MyClass; extend ::OpenStruct)
freezey has joined #ruby
<shevy> is openstruct like a prototypic object? can you clone from it?
alexfreidah has quit [Ping timeout: 252 seconds]
<workmad3> Takumo,apeiros: wouldn't a plain Struct be better for inheriting into your own objects? e.g. 'class Foo < Struct.new(:bar, :buzz)'
saarinen has joined #ruby
<apeiros> workmad3: depends on his details. personally I avoid OpenStruct as it used to leak. Not sure whether that got better.
<Takumo> workmad3: possibly, but you do have to contend with then having Struct.new(:foo , :bar , :baz , :buzz , ...[100 more arguments])...
<apeiros> I recommended OpenStruct based on his requirement to go from Hash to Object with all keys available as accessors
<workmad3> ah, true
zeade has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
agjacome has quit [Ping timeout: 246 seconds]
Czupa has joined #ruby
chomskiii has joined #ruby
<apeiros> if his keys are always the same, as Struct would IMO be better, yes. less space, faster, better exceptions (e.g. on typoed attr names)
MatthewsFace has joined #ruby
claymore has quit [Ping timeout: 260 seconds]
<Takumo> that said this API will never change, its not changed in 8 years
pel_daniel has quit [Read error: No route to host]
aspiers has quit [Ping timeout: 260 seconds]
MatthewsFace has quit [Client Quit]
mercwithamouth has joined #ruby
<shevy> quiz: how many methods do you think does BasicObject have
<shevy> omg...
<shevy> undefined method `send' for #<BasicObject:0x88c73ac> (NoMethodError)
andikr has quit [Read error: Connection reset by peer]
<apeiros> :)
moted has joined #ruby
lethjakman has quit [Ping timeout: 265 seconds]
<shevy> how can I invoke the method ! on BasicObject without send?
<shevy> Hanmac help me out, that's obfuscated code that you'd like
<apeiros> it has more than I'd have estimated (I'd have guessed 4)
<cout> shevy: use ffi to call rb_funcall
<Hanmac> shevy: i know lets see if you get the answer yourself
<apeiros> I didn't expect ==, !=, ! and equal?
<shevy> damn
<Hanmac> >> "bot-test"
gr33n7007h has quit [Read error: Operation timed out]
<shevy> cout hmm let me think ...
whomp has joined #ruby
pel_daniel has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
<Hanmac> shevy: BasicObject.instance_methods[-2]
claymore has joined #ruby
<shevy> wah
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> I wanna try with ffi now
<Hanmac> shevy: BasicObject.instance_methods[-2] #=> __send__
<shevy> oh wait
<shevy> yeah you cheat!
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> BasicObject.instance_methods # => [:, :equal?, :!, :!, :instance_eval, :instance_exec, :__send__, :__id__]
<shevy> huh
<shevy> why is :! listed twice?
<shevy> ah
<shevy> my mistake
<shevy> [:==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :__id__]
agjacome has joined #ruby
olivier_bK has quit [Ping timeout: 248 seconds]
<shevy> cout so far I am at: require 'ffi'
fedesilv_ has joined #ruby
<shevy> :-)
<cout> shevy: I wasn't proposing that as a serious solution... P)
<cout> :)
<shevy> I know that one has to extend a module somewhere via extend FFI::Library
<Hanmac> cout did you know about evil ruby? ;P
<shevy> and attach_function
<cout> hanmac: which one?
<shevy> but I have no idea how to call something directly in core ruby that way
mudmaste_ has quit [Quit: Leaving...]
<Hanmac> shevy https://github.com/yugui/evil-ruby does use the ruby lib with FFI too
<cout> hanmac: yeah that's the same one that florian gross started
blaxter has quit [Ping timeout: 252 seconds]
<cout> he used to be a regular here
cafhacker has joined #ruby
<shevy> cool
agjacome has quit [Client Quit]
<shevy> yugui also was here
aspiers has joined #ruby
<shevy> where are they now!
razibog has quit [Ping timeout: 272 seconds]
cafhacker has quit [Client Quit]
chomskiii has quit [Read error: Connection reset by peer]
fedesilva has quit [Ping timeout: 272 seconds]
<shevy> I want ffi example
<Hanmac> oh ups i thought it would use fFi
chomskiii has joined #ruby
<cout> Hanmac: it predates ffi
fijimunkii has quit [Ping timeout: 265 seconds]
<shevy> huh
<shevy> why is struct faster than a hash here? http://stackoverflow.com/questions/1177594/ruby-struct-vs-openstruct
<Hanmac> cout: does it mean its as old as centos? *me waits for the answer: nothing is as old as centos * ;P
Virtualize has joined #ruby
<Hanmac> shevy because Struct is C powerd? ;P
<shevy> hmm
pel_daniel has left #ruby [#ruby]
arietis has quit [Quit: Computer has gone to sleep.]
Anonomastos has joined #ruby
<cout> hanmac: ok, to be more precise, I meant it predates ruby-ffi
Jdubs has quit [Remote host closed the connection]
<cout> I thought that was obvious but I guess not
agjacome has joined #ruby
adthul_ has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
<shevy> didn't ffi also die already? :>
arietis has joined #ruby
Cooler_ has joined #ruby
Liothen has quit [Remote host closed the connection]
Liothen has joined #ruby
shaunbaker has quit [Remote host closed the connection]
cbetta is now known as cbetta_afk
CorySimmons has joined #ruby
adthul has quit [Ping timeout: 245 seconds]
CorySimmons has quit [Client Quit]
laphlaw has joined #ruby
allaire has joined #ruby
subbyyy_ has joined #ruby
laphlaw has quit [Read error: Connection reset by peer]
laphlaw has joined #ruby
Deejay_ has quit [Ping timeout: 246 seconds]
chrisseaton has quit []
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ms_steampunk has quit []
_Andres has quit [Read error: Connection reset by peer]
Jdubs has joined #ruby
Jdubs has quit [Remote host closed the connection]
lupine has quit [Quit: ZNC - http://znc.in]
fantazo has joined #ruby
rubyracer has joined #ruby
i_s has joined #ruby
vitornascimento has joined #ruby
petey_ has quit [Remote host closed the connection]
vitornascimento is now known as vitor
whomp has quit [Ping timeout: 245 seconds]
vitor is now known as VItor
petey has joined #ruby
VItor is now known as Vitor
enebo has quit [Quit: enebo]
pel_daniel has joined #ruby
jragon has joined #ruby
brunops has quit [Quit: leaving]
lupine has joined #ruby
brandonjmckay has joined #ruby
mudmaster has joined #ruby
craigp has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 276 seconds]
klaut has quit [Remote host closed the connection]
subbyyy_ has quit [Read error: Operation timed out]
petey has quit [Ping timeout: 265 seconds]
dEPy has joined #ruby
lethjakman has joined #ruby
poulson has quit [Remote host closed the connection]
aaronmcada has joined #ruby
aaronmcada has quit [Client Quit]
vikhyat has joined #ruby
kotk has quit [Ping timeout: 252 seconds]
dEPy has quit [Client Quit]
Spami has joined #ruby
<cout> shevy: here's a start: https://gist.github.com/cout/8441150
mercwithamouth has quit [Ping timeout: 252 seconds]
aaronmcadam has quit [Ping timeout: 245 seconds]
subbyyy_ has joined #ruby
<shevy> waaaah
mikeg has quit [Remote host closed the connection]
stetho has quit [Quit: Textual IRC Client: www.textualapp.com]
i_s has quit []
<shevy> hmm
<shevy> Could not open library 'libruby-1.9.1.so': libruby-1.9.1.so: cannot open shared object file: No such file or directory
sparrovv has joined #ruby
<shevy> wait
<shevy> got it
<shevy> ffi_lib 'libruby.so.1.9.1'
<shevy> that works
craigp has joined #ruby
thenovices has joined #ruby
<shevy> not sure I really understand it though
<cout> yeah it might be named differently on different machines
<cout> shevy: have you ever used the C API?
<shevy> We make available three C functions: rb_intern, :rb_obj_id, :rb_funcall2
rootshift has joined #ruby
<shevy> cout, yeah, years ago. I did only make the example of the jukebox
jmaya has joined #ruby
thesheff17 has joined #ruby
<shevy> 10 years old now :)
<cout> it's still applicable
<shevy> hehehe
<cout> (mostly -- the string API has changed a bit)
<shevy> C never changes...
<lethjakman> shevy: isn't it like c89 right now or something?
<shevy> ok so 3 functions... obj_id I suppose is #object_id
<shevy> but what is rb_intern? is that #to_sym ?
<cout> lethjakman: we also have c99 and c11
<shevy> lethjakman no idea really, I dont quite follow C much
<lethjakman> cout: I know about c++11 didn't realize there was a c11 as well
laphlaw has left #ruby [#ruby]
_maes_ has quit [Ping timeout: 260 seconds]
OdNairy has joined #ruby
camilasan has quit []
<cout> shevy: rb_intern is what you use to get an ID from a char*
<Hanmac> cout: lies! ruby C-API makes a massive change between ruby1.8.6 and ruby1.8.7 ;P
vikhyat_ has joined #ruby
craigp has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
<shevy> oh yeah I even have an old example
craigp has joined #ruby
<shevy> ID2SYM( rb_intern("verbose") ); # should be :verbose in ruby effectively
<cout> yes
<shevy> one question
araujo has joined #ruby
<shevy> why are these three functions stored in a module? is that absolutely mandatory?
<shevy> module Foo in this case
<cout> I just followed the ffi example in the readme
vikhyat has quit [Ping timeout: 276 seconds]
<shevy> ok
whomp has joined #ruby
nwertman has quit [Remote host closed the connection]
centrx has joined #ruby
craigp_ has joined #ruby
rumi has joined #ruby
craigp has quit [Read error: Connection reset by peer]
rumi has quit [Client Quit]
jmaya has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
petey has joined #ruby
* Hanmac prefers helper macros and templates for the Data_Get_Struct macros ... with that its much more fun ;P
sassamo has quit [Remote host closed the connection]
nwertman has joined #ruby
mneorr has joined #ruby
sassamo has joined #ruby
mneorr has quit [Remote host closed the connection]
heidi has joined #ruby
mneorr has joined #ruby
<shevy> is that what you use in rxw
rdark has quit [Quit: leaving]
kobain has quit [Ping timeout: 252 seconds]
<sn0wb1rd> Is it possible to skip the after(:all) block in rspec if there is a failure in tests?
enebo has joined #ruby
yacks has quit [Quit: Leaving]
i_s has joined #ruby
adthul__ has joined #ruby
rickruby has joined #ruby
yfeldblum has joined #ruby
Anonomastos has quit [Quit: Quitte]
smathieu has joined #ruby
<Hanmac> shevy: yes ... unwrap<T*> templates that doing the Data_Get_Struct and other nice stuff for you, and _self macros that makes them inside a method more easier ...
sassamo has quit [Ping timeout: 248 seconds]
adthul_ has quit [Ping timeout: 245 seconds]
<Hanmac> shevy for sample the unwrap templates does much more than Data_Get_Struct, for primitive types like Color, Size, Point, Rect and other it also works for "similar" classes, that means functions that want WX::Color does also work with other color objects (from other libs or self defined) ... some classes like WX::Bitmap and WX::Image does automaticlly look for files if you give them a String
freezey has quit [Remote host closed the connection]
sassamo has joined #ruby
dweeb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
nathancahill has joined #ruby
zxd has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
Advocation has joined #ruby
ohwhoa has quit [Quit: woah!]
<RubyPanther> <3 C99 CRuby if you've got Ruby by your side as your stdlib replacement, you can write really simple C and get away with it
_Andres has joined #ruby
wildroman2 has quit [Remote host closed the connection]
petertretyakov has joined #ruby
soukihei has joined #ruby
unixpro1970 has joined #ruby
mocfive has joined #ruby
Bira has quit [Remote host closed the connection]
trollface has joined #ruby
mojjojo has quit [Quit: mojjojo]
Paradox has quit [Ping timeout: 240 seconds]
poutine has quit [Ping timeout: 240 seconds]
dmarr has quit [Ping timeout: 240 seconds]
poutine has joined #ruby
m4rcu5 has quit [Ping timeout: 240 seconds]
epochwolf has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
freezey has joined #ruby
guilund_ has quit []
vikhyat_ has quit [Read error: Connection reset by peer]
dmarr has joined #ruby
soukihei has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jhaals has joined #ruby
epochwolf has joined #ruby
mercwithamouth has joined #ruby
<Hanmac> RubyPanther: i wrote evil C macros for ruby "and get away with it" ;P
snath has joined #ruby
adthul_ has joined #ruby
vikhyat has joined #ruby
mengu has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
Bira has joined #ruby
browndawg has quit [Quit: Leaving.]
vikhyat has joined #ruby
ohwhoa has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
vikhyat has joined #ruby
jonahR has joined #ruby
skoilk has joined #ruby
aaronmcadam has joined #ruby
adthul has joined #ruby
adthul__ has quit [Ping timeout: 252 seconds]
fantazo has quit [Ping timeout: 245 seconds]
<danijoo> does it make any sense to use multiple workers with rails + puma on ruby MRI or does this only make a real difference under jruby/rubinius?
<RubyPanther> I doubt my macros would get high ratings
spider-mario has joined #ruby
deception has joined #ruby
sambao21 has joined #ruby
adthul_ has quit [Ping timeout: 265 seconds]
<Hanmac> RubyPanther: you can look at my ones ... https://github.com/Hanmac/rwx/blob/master/ext/main.hpp#L342-L407 ... i like macro_attr_func at most ;P
tt1187 has quit [Ping timeout: 245 seconds]
petey has quit [Remote host closed the connection]
wgosling has quit [Quit: Konversation terminated!]
zegerjan has joined #ruby
<RubyPanther> Hanmac: Other than the template it all looks sane to me :) https://github.com/rubypanther/dec_number/blob/master/ext/dec_number/dec_number.c#L23-L56
subbyyy_ has quit [Ping timeout: 246 seconds]
egyp7 has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 252 seconds]
<Hanmac> RubyPanther: look at the past parameter of the set_hash_option ... its a template specification for a function pointer ;D
<sn0wb1rd> Is it possible to skip the after(:all) block in rspec if there is a failure in tests?
thenovices has quit [Remote host closed the connection]
<Hanmac> RubyPanther: do you want to know where my Data_Get_struct is? look at this part: https://github.com/Hanmac/rwx/blob/master/ext/main.hpp#L170-L226
adthul_ has joined #ruby
Megtastique has quit []
mocfive has quit [Remote host closed the connection]
dweeb_ has joined #ruby
tvw has quit [Read error: Operation timed out]
<soahccc> jruby can't do that? :( NoMethodError: undefined method `signame' for Signal:Module
<mostlybadfly> Has anyone had any luck with using a chromebook for programming?
tvw has joined #ruby
mocfive has joined #ruby
<RubyPanther> Hanmac: It's great, it is such a good stdlib that it makes sense what you're doing even where it is not something I would ever want to do lol
chrisseaton has joined #ruby
adthul has quit [Ping timeout: 272 seconds]
jlebrech has quit [Quit: Konversation terminated!]
mengu has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
kebabski has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
soukihei has joined #ruby
Speed has joined #ruby
<soahccc> is there any complete list of ruby's predefined constants? I always find this one which lacks at least one http://www.tutorialspoint.com/ruby/ruby_predefined_constants.htm
vikhyat has joined #ruby
kewubenduben has quit [Ping timeout: 276 seconds]
Astralum has joined #ruby
burlyscudd has joined #ruby
subbyyy_ has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Jdubs has joined #ruby
mocfive has quit [Ping timeout: 272 seconds]
zegerjan has quit [Ping timeout: 260 seconds]
<MrZYX> what about Object.constants.reject {|c| c.match /[a-z]/ } ?
<Hanmac> MrZYX: i tihnk soahccc wants this: http://www.ruby-doc.org/core-2.1.0/doc/globals_rdoc.html#label-Pre-defined+global+constants
kewubenduben has joined #ruby
<soahccc> Hanmac: Thanks, couldn't find it :<
ewnd9 has quit [Ping timeout: 265 seconds]
<MrZYX> but that's not complete either :P
<soahccc> It also lacks RUBY_PATCHLEVEL though
craigp_ has quit []
kebabski has quit [Ping timeout: 252 seconds]
<MrZYX> or RUBY_ENGINE
<soahccc> yeah objectspace is good =)
jaimef has quit [Excess Flood]
<MrZYX> oh we got RUBY_COPYRIGHT :D
<Hanmac> there are still some things you can only do in C-Ruby with a C-extension or with FFI ... (like rb_define_hooked_variable) ;P
thenovices has joined #ruby
bricker has joined #ruby
jaimef has joined #ruby
aspiers has quit [Read error: No route to host]
kebabski has joined #ruby
momomomomo has joined #ruby
w4pm has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
senayar_ has joined #ruby
kewubenduben has quit [Ping timeout: 252 seconds]
shadoi has joined #ruby
vikhyat has joined #ruby
<soahccc> lol there is even the thing I need... RUBY_DESCRIPTION... why isn't that documented? o.O
senayar__ has joined #ruby
whomp has quit [Ping timeout: 246 seconds]
yarou has quit [Quit: This computer has gone to sleep]
mocfive has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
kebabski has quit [Ping timeout: 272 seconds]
wald0 has joined #ruby
nanoyak has joined #ruby
mocfive has quit [Remote host closed the connection]
senayar_ has quit [Ping timeout: 252 seconds]
w4pm has quit [Ping timeout: 276 seconds]
samsonasu has quit [Quit: samsonasu]
pskosinski has joined #ruby
wildroman2 has joined #ruby
momomomomo has quit [Quit: momomomomo]
aspiers has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
tannerburson has quit [Quit: tannerburson]
Advocation has quit [Quit: Advocation]
yfeldblum has quit [Remote host closed the connection]
mocfive has joined #ruby
vikhyat has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
e62 has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<shevy> japanese hackers don't know english
pietr0 has joined #ruby
carraroj has joined #ruby
nwertman_ has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
vikhyat has joined #ruby
Advocation has joined #ruby
tannerburson has joined #ruby
klaut has joined #ruby
thesheff17 has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
w4pm has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
nwertman has quit [Remote host closed the connection]
agjacome has quit [Ping timeout: 246 seconds]
mansi has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
sepp2k has joined #ruby
gregoriokusowski has joined #ruby
hiall has quit [Ping timeout: 248 seconds]
Advocation has quit [Client Quit]
agjacome has joined #ruby
aspires has quit []
ahmedelgabri has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
vikhyat has quit [Remote host closed the connection]
aspires has joined #ruby
mercwithamouth has joined #ruby
mocfive has quit [Remote host closed the connection]
ghr has joined #ruby
kewubenduben has joined #ruby
ahmedelg_ has quit [Ping timeout: 276 seconds]
Animawish has joined #ruby
burlyscudd has quit [Quit: Leaving.]
jbueza has joined #ruby
banister is now known as banisterfiend
kebabski has joined #ruby
senayar__ has quit [Remote host closed the connection]
EngierkO has joined #ruby
dfranciosi has quit [Remote host closed the connection]
gja has joined #ruby
kaldrenon has quit [Remote host closed the connection]
kewubenduben has quit [Ping timeout: 248 seconds]
kewubenduben has joined #ruby
noop has quit [Ping timeout: 272 seconds]
<shevy> we need more action here
sparrovv has quit [Remote host closed the connection]
kebabski has quit [Ping timeout: 248 seconds]
alexfreidah has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
Neomex has joined #ruby
kebabski has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
rezzack has joined #ruby
kebabski has quit [Client Quit]
Neomex has quit [Client Quit]
kewubenduben has quit [Ping timeout: 245 seconds]
sepp2k has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
cascalheira has quit [Quit: Leaving...]
sepp2k has joined #ruby
* Morrolan tickles shadoi
alexfreidah has quit [Ping timeout: 252 seconds]
<Morrolan> ... darn. shevy, I meant.
hukl has joined #ruby
CodeBunny has joined #ruby
sparrovv has joined #ruby
yekta has joined #ruby
senayar has joined #ruby
securitycrush has joined #ruby
<bricker> soahccc: maybe it's meant to be private :O
phansch has quit [Quit: Leaving]
thesheff17 has joined #ruby
Panicky has quit [Ping timeout: 246 seconds]
Wolland has joined #ruby
<soahccc> bricker: would be interesting if this is also the reason with RUBY_COPYRIGHT :)
wildroman2 has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
vky has joined #ruby
Cephalostrum has joined #ruby
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
terrellt has joined #ruby
terrellt_ has joined #ruby
terrellt has quit [Client Quit]
pu22l3r_ has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has quit [Ping timeout: 246 seconds]
MrZYX is now known as MrZYX|off
<mneorr> is there a flag on Dir.glob that sorts by proximity instead of alphabetically?
ahmedelgabri has joined #ruby
vky has quit [Ping timeout: 246 seconds]
<mneorr> e.g. /lib/file.rb, zzzfile.rb is default output for Dir.glob(**/*.rb)
<mneorr> i want the zzzfile.rb to be first
emptymag00 has joined #ruby
<Morrolan> Sort by count of forward slashes which aren't preceeded by a backward slash, if there isn't.
<Hanmac> mneorr: Dir.glob should return in filesystem order ... (so not alphabetically sorted)
MrZYX|off is now known as MrZYX
_emptymag00 has joined #ruby
_emptymag00 has quit [Read error: Connection reset by peer]
Dorf has joined #ruby
Dorf has joined #ruby
vlad_starkov has joined #ruby
<mneorr> Hanmac: not sure that's the behavior on my machine :)
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
pu22l3r_ has joined #ruby
<Hanmac> mneorr: i only mean you cant trust the order of Dir.glob ... so if you want it sorted you need to sort it yourself
carraroj has quit [Quit: Konversation terminated!]
burlyscudd has quit [Quit: Leaving.]
petey has joined #ruby
freezey has quit [Remote host closed the connection]
zeropx has quit [Quit: has left the room … Or did he?]
freezey has joined #ruby
petey has quit [Remote host closed the connection]
akemrir has quit [Quit: WeeChat 0.4.2]
ambushsabre has quit [Quit: rip]
ayumin has quit [Remote host closed the connection]
kobain has joined #ruby
ayumin has joined #ruby
Bira has quit [Ping timeout: 276 seconds]
centrx has quit [Quit: Leaving]
emptymag00 is now known as gladmynameisntmi
Hanmac1 has joined #ruby
gladmynameisntmi is now known as mikesucks
alvaro_o has joined #ruby
mikesucks has left #ruby ["Leaving"]
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.)]
Bira has joined #ruby
tt1187 has joined #ruby
SCommette has quit [Quit: SCommette]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Bira_ has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
zipper has joined #ruby
burlyscudd has joined #ruby
rayners has quit [Ping timeout: 252 seconds]
Shidash has joined #ruby
kaldrenon has joined #ruby
ayumin has quit [Ping timeout: 265 seconds]
Shidash has quit [Client Quit]
iamjarvo has joined #ruby
Bira has quit [Ping timeout: 245 seconds]
subbyyy_ has quit [Ping timeout: 252 seconds]
zipper has quit [Client Quit]
petey has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tannerburson has quit [Quit: tannerburson]
fuzzyhorns has joined #ruby
fuzzyhorns has left #ruby [#ruby]
e62 has joined #ruby
aspires has quit [Ping timeout: 252 seconds]
tannerburson has joined #ruby
kirun has joined #ruby
bnagy has quit [Ping timeout: 245 seconds]
EngierkO has quit [Quit: Textual IRC Client: www.textualapp.com]
bnagy has joined #ruby
Cephalostrum has joined #ruby
momomomomo has joined #ruby
Animawish has quit [Quit: Animawish]
EngierkO has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
EngierkO has quit [Max SendQ exceeded]
randomnick_ has joined #ruby
sassamo has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
EngierkO has joined #ruby
sassamo has joined #ruby
EngierkO has quit [Max SendQ exceeded]
troyready has joined #ruby
mansi has joined #ruby
EngierkO has joined #ruby
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
Hamburglr has quit [Quit: Textual IRC Client: www.textualapp.com]
EngierkO has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
EngierkO has joined #ruby
Hanmac has joined #ruby
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby
SCommette has joined #ruby
juarlex has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
axl_ has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
sassamo has quit [Ping timeout: 272 seconds]
alexherb1 has joined #ruby
<shevy> soahccc curiously enough, the pickaxe mentioned RUBY_VERSION but I cant recall that it mentioned RUBY_DESCRIPTION at the same page
<shevy> mneorr you can always #reverse
mikepack has quit [Remote host closed the connection]
whomp has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
DarthGandalf has quit [Ping timeout: 272 seconds]
* Hanmac wanted an reverse sort but it is not in code ;(
<shevy> and use File.basename
<shevy> and split up to the first .
vim_shim_ has quit [Read error: Connection reset by peer]
redmenace has joined #ruby
assurbanipal has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
<shevy> mneorr it often is easier if you give us sample input, and desired output precisely, then we can tell you what ruby code should be used in between :)
ephemerian has joined #ruby
vim_shim_ has joined #ruby
<soahccc> shevy: don't you mean the last .
<shevy> soahccc I am no longer sure
<shevy> how he wanted to sort "z" vs "Z"
aspires has joined #ruby
<Hanmac> yeah, give us the input, and the output and we do the putput ;P
subbyyy_ has joined #ruby
<soahccc> gist is down for me
bluOxigen has joined #ruby
Czupa has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
sassamo has joined #ruby
petey has quit [Remote host closed the connection]
adthul_ has quit [Ping timeout: 265 seconds]
joast has joined #ruby
whomp has quit [Ping timeout: 276 seconds]
petey has joined #ruby
yfeldblum has joined #ruby
ambushsabre has joined #ruby
vky has joined #ruby
adthul_ has joined #ruby
<shevy> as long as it it's not what is in your pants that is down
mansi has joined #ruby
heidi is now known as heidi-ramen
smathieu has quit []
echevemaster has joined #ruby
Animawish has joined #ruby
whomp has joined #ruby
Animawish has left #ruby [#ruby]
burlyscudd has quit [Quit: Leaving.]
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
IcyDragon has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
coder_neo has quit [Quit: Leaving]
DarthGandalf has joined #ruby
mikepack has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
IcyDragon is now known as IceDragon
ClientAlive has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmedelgabri has quit []
tyl has joined #ruby
mark_locklear has quit [Ping timeout: 245 seconds]
subbyyy_ has quit [Ping timeout: 246 seconds]
<shevy> Hanmac I am now writing a class called UpdateGemspec which will update all my .gemspec files
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
ClientAlive has quit [Ping timeout: 246 seconds]
ClientAlive has joined #ruby
gigetoo has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
nhhagen has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
gigetoo has joined #ruby
tyl has quit [Ping timeout: 276 seconds]
sparrovv has quit [Remote host closed the connection]
weems has quit [Quit: Leaving]
txdv has quit [Read error: Operation timed out]
Hobogrammer has joined #ruby
heidi-ramen has quit [Quit: Leaving.]
weems has joined #ruby
burlyscudd has joined #ruby
siwica has quit [Quit: siwica]
wildroman2 has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Ping timeout: 252 seconds]
ClientAlive has quit [Ping timeout: 276 seconds]
DaZ has joined #ruby
CodeBunny has quit [Read error: Connection reset by peer]
ClientAlive has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
chrisseaton has quit [Ping timeout: 245 seconds]
sparrovv_ has joined #ruby
senayar has joined #ruby
Czupa has joined #ruby
adthul__ has joined #ruby
senayar has quit [Remote host closed the connection]
Xeago has joined #ruby
karl___ has joined #ruby
ClientAlive has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
senayar has joined #ruby
codezomb has joined #ruby
<karl___> I want to use regex to pull out a part of a string (I can do this), and then puts the matched string followed by the unmatched string (don't know how to do this). What is the proper way to get the portion of the string not matching the regex (inverse match, i suppose)?
adthul_ has quit [Ping timeout: 245 seconds]
<shevy> not sure if there is a way for inverse matching
<mostlybadfly> Any answers on the chromebook thing?
<shevy> but you could use multiple () match groups and access these via $1 $2 $3
tvw has quit []
<shevy> or via [1] [2] etc..
<karl___> shevy: that sounds like it might be a good solution
<shevy> karl___ can you give example input string, and desired output you wish to achieve
burlyscudd has quit [Ping timeout: 245 seconds]
rickruby has quit [Remote host closed the connection]
<karl___> sure; in each case, the input string is the same: IP, username/password
<karl___> e.g., 127.0.0.1 root/password
top4o has joined #ruby
CodeBunny has joined #ruby
<karl___> i would like to regex the IP address, perform a DNS lookup, and then insert the DNS hostname in the middle between the IP and username/password
mansi has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
mansi has joined #ruby
cbetta_afk is now known as cbetta
<MrZYX> karl___: can't you just split by /?
Czupa has quit [Ping timeout: 252 seconds]
<MrZYX> and space
lorelei_ has joined #ruby
mocfive has joined #ruby
mocfive has quit [Remote host closed the connection]
<MrZYX> ip, credentials = input.split(' '); user, passsword = credentials.split('/')
timonv has quit [Remote host closed the connection]
mocfive has joined #ruby
danshultz has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
<MrZYX> host = lookup(ip); "#{ip} #{host} #{credentials}"
danshultz has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
<karl___> ...yeah that's way easier
<karl___> thanks for your help
<karl___> :)
<shevy> \o/
lorelei_ has quit [Changing host]
lorelei_ has joined #ruby
dkamioka has quit [Remote host closed the connection]
chrisseaton has joined #ruby
Xeago has joined #ruby
jonahR has quit [Quit: jonahR]
wudofyr has quit [Remote host closed the connection]
blandflakes has quit [Quit: Page closed]
Virtualize has quit [Quit: Leaving...]
mocfive has quit [Ping timeout: 252 seconds]
Gonzih has joined #ruby
weems has quit [Read error: Connection reset by peer]
Virtualize has joined #ruby
mehlah has quit [Quit: Leaving...]
danshultz has quit [Ping timeout: 272 seconds]
shevy has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
axl_ has quit [Quit: axl_]
Virtualize has quit [Client Quit]
binw has quit [Read error: Connection reset by peer]
godd2 has joined #ruby
zegerjan has joined #ruby
DarthGandalf has joined #ruby
Gonzih has quit [Ping timeout: 245 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
txdv has joined #ruby
nanoyak has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
drumusician has joined #ruby
tvw has joined #ruby
shevy has joined #ruby
mocfive has joined #ruby
gregoriokusowski has joined #ruby
shime has joined #ruby
weems has joined #ruby
MrThePla_ has joined #ruby
szerated_ has joined #ruby
krawchyk has quit []
binw has joined #ruby
mocfive has quit [Remote host closed the connection]
kidoz has joined #ruby
tjaco has joined #ruby
yarou has joined #ruby
yarou has joined #ruby
drumusician has quit [Read error: Connection reset by peer]
tvw has quit [Client Quit]
MrThePlague has quit [Read error: Operation timed out]
s2013 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Foomusic has joined #ruby
<Foomusic> Hi
tvw has joined #ruby
<Foomusic> is the another way to initialize an instance variable @yada than in the initialize method?
<Foomusic> something like class Yada @yada = 123; end
<MrZYX> no
<MrZYX> not at object creation
<Foomusic> why is that?
<MrZYX> because when you create the class there's no object where the variable could live
<Foomusic> sure there is no
<MrZYX> no
timonv has joined #ruby
<Foomusic> the same apply for Java for example
MrThePla_ has quit [Remote host closed the connection]
<s2013> i have a hash.. and i want to aggregate the value. https://gist.github.com/ss2k/f1c5c91afbf6010f4cea example of how the hash is and what i want
<MrZYX> that java does this always confuses me and I try to not use it when I write Java actually
mehlah has joined #ruby
<s2013> trying to figure out the ideal way to do it
MrThePlague has joined #ruby
<MrZYX> anyway, javas object model is different in that regard
<Foomusic> well, that doesn't change the fact that you don't need an object right there in order to support this feature
<Foomusic> which is actually pretty useful for many people (including me)
<Foomusic> :P
bean__ has joined #ruby
<MrZYX> are two lines more really that hard?
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
brandonjmckay has quit [Quit: Computer has gone to sleep.]
adthul_ has joined #ruby
<lectrick> Anyone know of a gem or just a block of Ruby code that does Reed-Solomon error correction? (Or another error correction code)
<MrZYX> note also that you can do what you wrote, it's just an instance variable for the class objects singleton class and not for the objects made from your class
<Foomusic> it's not about hardness, it's about beauty, MrZYX
<apeiros> Foomusic: having a method which cleanly encapsulates initialization is beatiful
<apeiros> *beautiful
<MrZYX> ^
securitycrush has quit [Remote host closed the connection]
<Foomusic> it is unless you are forced to create such a method to initialize one single variable
<apeiros> Foomusic: especially in a language where the whole class body is ordinary code - not some special mojo jojo like in other languages.
Czupa has joined #ruby
<apeiros> Foomusic: and suddenly we're talking about hardness again :-p
<Foomusic> class Foo @bar = 1; end is x10 times more beautiful than class Foo def initialize @bar = 1; end end
<apeiros> Foomusic: anyway, the short answer is: no, there is no other way. the long answer is: you can monkey patch Module (or Class), adding some meta-code to simplify initializer creation.
araujo has quit [Remote host closed the connection]
<apeiros> Foomusic: that's just, like, your opinion :-p
Zai00 has joined #ruby
<Foomusic> hehe, ok
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Advocation has joined #ruby
petertretyakov has quit [Remote host closed the connection]
<Foomusic> I just wanted to be sure there was only the "traditional" method
<Foomusic> thanks
<apeiros> e.g. you could create something like: class Foo; initializes :@bar, 1; end
adthul__ has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
Bira_ has quit [Remote host closed the connection]
<apeiros> ah, too sad, @bar is not eligible for 1.9 hash syntax :(
<apeiros> no `initializes @bar: 1`
Lewix has joined #ruby
Jake232 has joined #ruby
sLi_ has quit [Remote host closed the connection]
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
yfeldblum has quit [Remote host closed the connection]
juarlex has joined #ruby
Zai00 has left #ruby [#ruby]
<Foomusic> oh, I just remembered
nhhagen has quit [Remote host closed the connection]
rootshift has joined #ruby
<Foomusic> is it planned to add list comprehension in the future?
freezey has joined #ruby
<Foomusic> it's not that I like it too much, but it's the number 1 thing pythonist say ruby lacks
phansch has joined #ruby
<Foomusic> pythonists*
brandonjmckay has joined #ruby
Hanmac has joined #ruby
artmann has quit [Quit: No Ping reply in 180 seconds.]
artmann has joined #ruby
yalue has quit [Quit: Leaving]
Lewix has quit [Ping timeout: 272 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
timonv has quit [Remote host closed the connection]
<apeiros> Foomusic: I hope not
<Foomusic> why?
<apeiros> because artificial syntax << proper methods
Spami has joined #ruby
<Foomusic> it could be done with proper methods I guess
<apeiros> I'm a big fan of rubys approach to use little syntax
mansi has quit [Read error: Connection reset by peer]
<apeiros> hard to balance it right
mansi has joined #ruby
parduse has joined #ruby
nhhagen has joined #ruby
<godd2> Hey all, I'm reading The RSpec book, and I got hung up on something. on page 85 it says "The output allows the messages it receives when we call start() because it uses as_null_object." But I don't understand. The output allows the messages to -what-?
<Foomusic> btw, I don't think it would be more artificial than a block like { ... }
terrellt_ is now known as terrellt
<s2013> if i have an array [1,2,3] how do sum each element to the one before it? so its like [1,3,6]
<shevy> Foomusic {} also means hash though
<s2013> kind of like fibonacci sequence
aspires has quit []
petey has quit [Remote host closed the connection]
phutchins has quit [Read error: Operation timed out]
<Foomusic> shevy, I know, I said "a block"
Loaft has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zegerjan has quit [Ping timeout: 260 seconds]
redmenace has quit [Ping timeout: 276 seconds]
<s2013> nvm i got it
Advocation has quit [Quit: Advocation]
nhhagen has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
kpshek has quit [Client Quit]
danshultz has joined #ruby
<Hanmac> s2013: [1,2,3].each_with_object([]) {|i,o|o << o.last.to_i + i}
sergicles has quit [Quit: sergicles]
<s2013> i just did sum += x
nhhagen has joined #ruby
stetho has joined #ruby
<godd2> Foomusic: What do you want to be able to do as a list comprehension that you can't do with Array#map ?
petey has joined #ruby
heidi has joined #ruby
fedez77 has quit [Ping timeout: 272 seconds]
<Foomusic> what do you want to do with a map that you can't do with a loop? godd2
<godd2> Nothing because a map is a loop
<Foomusic> "a loop" like in "loop do"
szerated_ has quit [Ping timeout: 265 seconds]
<godd2> I guess what I meant to ask was how is map not offering list comprehension functionality?
<apeiros> Foomusic: correct. block is also added syntax. but as I said, the key is in not adding too much syntax.
SCommette has quit [Quit: SCommette]
acrussell has left #ruby [#ruby]
rickruby has joined #ruby
<Foomusic> yeah, I know what you mean. I'm a big fan of it too apeiros
<reactormonk> is it possible to somehow compress lines of JSON so I can still append them to a file? Separate them by zero bytes?
centrx has joined #ruby
<Foomusic> but {} syntax is pretty close to list comp.
kpshek has joined #ruby
SCommette has joined #ruby
<reactormonk> ... after gzipping them
mneorr has joined #ruby
<apeiros> reactormonk: tar?
gregoriokusowski has quit [Quit: gregoriokusowski]
yekta has quit [Remote host closed the connection]
<reactormonk> apeiros, tar doesn't compress and the JSON is streamed
<apeiros> reactormonk: you said after you gzipped the line
<Foomusic> a = { i+1 for i in [1,2,3,4,5] if i%2==0 }
<Foomusic> it's aaaaaaaalmost there :P
<apeiros> so the data already is compressed and all you need is a container which can separate its parts
<apeiros> been a while since I implemented a tar parser, but iirc it can be streamed
<apeiros> might be that gzipped data itself is streamable
<apeiros> never looked into that
<centrx> Foomusic, There is also i.even?
<Foomusic> yep, I just wanted to make it close to python :P
<apeiros> Foomusic: if you want to code python, just use python
<reactormonk> apeiros, the data arrives as zmq message, I'm not sure I can just concat those
<shevy> I have never seen for used inside {}
<Foomusic> haha, no. I don't like python
e62 has quit [Ping timeout: 276 seconds]
<apeiros> Foomusic: maybe there's a reason :-p
iamjarvo has joined #ruby
<Foomusic> anyway, I was just saying, thanks for your answers guys!
ohwhoa has quit [Quit: woah!]
aspires has joined #ruby
dvarrui has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
<reactormonk> apeiros, so tar what together exactly?
<mneorr> @shevy sry, had a lunch break
prc has joined #ruby
<shevy> mneorr I dont remember what we spoke about anyway :D
<mneorr> about dir.glob :)
<mneorr> i've ended up doing Dir.glob("**/*.xcworkspace").sort_by(&:length).first
pu22l3r__ has joined #ruby
<apeiros> reactormonk: the gzipped json parts. but now you said you have zmq. not sure how that fits in with you saying you had a stream.
lorelei_ has quit [Ping timeout: 252 seconds]
<shevy> ah now I remember
<apeiros> I haven't used zmq, but I thought it was based on discrete messages, not streams
Txandy is now known as Txandy|away
<Hanmac> mneorr: look at min_by
zumba_addict has joined #ruby
pu22l3r_ has quit [Ping timeout: 272 seconds]
<reactormonk> apeiros, I have a stream of distinct messages
<zumba_addict> hi folks, we have an app listening on port 9292. It works when connecting to http://localhost:9292. How do I get this connection to work though? https://localhost:9292
<reactormonk> zumba_addict, ohh, ssl is a different biest
assurbanipal has quit [Remote host closed the connection]
<zumba_addict> ok
<zumba_addict> how do I get it work?
<reactormonk> what server do you use?
Czupa has quit [Remote host closed the connection]
<zumba_addict> btw, it's for our own local development
<reactormonk> you'll have to do different stuff locally and in production
<zumba_addict> reactormonk: we don't have any issues in apache. The only issue is on our local development laptop
pu22l3r__ has quit [Ping timeout: 272 seconds]
endash has joined #ruby
endash has quit [Client Quit]
<reactormonk> zumba_addict, why would that be relevant? Just force SSL in production and you're golden.
<zumba_addict> I mean, everything is working great in remote apache but not from our local ruby setup
Txandy|away is now known as Txandy
vlad_starkov has joined #ruby
Bira has joined #ruby
<zumba_addict> it's because of the ie9 crappy browser
nhhagen has quit [Remote host closed the connection]
<reactormonk> huh?
<zumba_addict> here
<zumba_addict> we have a file where we define our REST endpoint
mocfive has joined #ruby
<zumba_addict> we have 2 remote dev servers. One is running on https and the other is regular http
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
<zumba_addict> we develope/code using our ruby localhost:9292 setup
<zumba_addict> when my localhost setup points to our remote http dev server and using IE9, it's fine
<zumba_addict> but when I change our environment setup on my local file to point to the remote https server, it's failing
<zumba_addict> i was told that IE9 won't allow http -> https
MrZYX is now known as MrZYX|off
dvarrui has quit [Ping timeout: 246 seconds]
phansch has quit [Quit: Leaving]
<reactormonk> huh.
<reactormonk> Well, which server are you using locally?
<zumba_addict> ruby
<zumba_addict> rack
<zumba_addict> we run a tool called rackup which listens on port 9292
iamjarvo has quit [Ping timeout: 245 seconds]
Fuzai is now known as Ponyo
LekeFly has joined #ruby
<reactormonk> which server does rackup use?
<reactormonk> blow it up and check the callstack.
timonv has joined #ruby
tropicalmug has joined #ruby
<zumba_addict> I can tell to connect to either remote servers via a file that I can update manually
aaronmcadam has quit [Quit: Leaving...]
Bira has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
tropicalmug has left #ruby [#ruby]
MrZYX|off is now known as MrZYX
<zumba_addict> reading
sLi_ has joined #ruby
benzrf has joined #ruby
<benzrf> hey
Hobogrammer_ has quit [Ping timeout: 272 seconds]
<shevy> damn
<benzrf> when i do 'def foo; a = 3; b = 4; proc {a}; end;'
<shevy> benzrf is here, let's pretend that we are idling
<benzrf> when i call foo
<benzrf> obviously a will not be gc'd
<benzrf> [ignore that its fixnums w/e]
dangerousdave has quit []
<benzrf> but will b be gc'd
wudofyr has joined #ruby
dominikh has left #ruby ["WeeChat 0.4.1"]
wudofyr has quit [Remote host closed the connection]
<benzrf> does ruby pay attention to what you closed over?
<benzrf> or does it just preserve the context entirely?
wudofyr has joined #ruby
<bnagy> good question. I don't know.
mocfive has quit [Remote host closed the connection]
<bnagy> my guess is that you'd get the whole binding
<apeiros> ruby is usually pretty naive
timonv has quit [Ping timeout: 245 seconds]
<benzrf> ha
<apeiros> so I'd assume it closes over everything
wudofyr has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<benzrf> dang thats bad news
<bnagy> you could write up a test using strings with a magic value and walk objectspace for a while afterwards
<benzrf> hmmm
petey has quit [Remote host closed the connection]
<benzrf> i dont know how to use ObjectSpace
<bnagy> well now's your chance
<benzrf> :I
<apeiros> though, since 1.9, the level of optimization has been raised from version to version
lorelei_ has joined #ruby
petey has joined #ruby
lorelei_ has quit [Changing host]
lorelei_ has joined #ruby
<apeiros> one reason to close over everything: eval
<apeiros> and `alias whatever eval`
<benzrf> :{
<apeiros> it's not too easy to optimize
shevy has quit [Quit: ""]
<bnagy> yeah, very hard for the compiler to statically determine that something in the binding can't ever be ref'd
mityaz has quit [Quit: See ya!]
<apeiros> one variant would be to have an eval keyword, which is powerful enough to be used as base for the implementation of all other eval forms (instance_eval, instance_exec, class_eval etc.)
<apeiros> then trace added method signatures for evals
<apeiros> and optimize all closures which don't use any form of eval
bluOxigen has quit [Ping timeout: 272 seconds]
<apeiros> I might have missed two dozen corner cases in that outline, though.
<apeiros> s/corner/edge/
<bnagy> surely that can't be the only tricky case
yjmsf20_ has joined #ruby
tjaco has quit [Ping timeout: 248 seconds]
<benzrf> wait wat
<benzrf> def make_clozure a = "shit" b = "ok" p a.object_id
<benzrf> end
lele has quit [Ping timeout: 252 seconds]
szerated_ has joined #ruby
<benzrf> [33] pry(main)> f = make_clozure
<benzrf> 28265000
<benzrf> [39] pry(main)> ObjectSpace.each_object.any? {|o| o.object_id == 28265000}
<benzrf> => true
<benzrf> ?!
<MrZYX> sure, why should it be false?
petey has quit [Ping timeout: 246 seconds]
<benzrf> shouldnt a be gc'd
Jetchisel has joined #ruby
<benzrf> oh derp its not instant is it
<benzrf> oops
<MrZYX> you can force a gc run
axl_ has joined #ruby
cid404 has quit [Quit: cid404]
<MrZYX> GC.start or so
<benzrf> and now it dosent
<benzrf> neat o_O
yjmsf20 has quit [Ping timeout: 252 seconds]
<bnagy> I don't know what the guarantees are on object id reuse
<benzrf> yep the entire scope is preserved when a block is passed out
e62 has joined #ruby
lele has joined #ruby
<benzrf> can it detect whether the block is only a downward arg?
vlad_starkov has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<apeiros> a gc run doesn't guarantee collection, mind you (in ruby <2.1's implementation it does, I think - but doesn't mean all implementations do)
<benzrf> oh wait
<benzrf> if it considers the block obj a pointer to the entire scope
<reactormonk> apeiros, what does 2.1 bring?
<benzrf> then it does not matter whether it can tell a downwards arg
<benzrf> derp
<apeiros> reactormonk: a new gc
<reactormonk> apeiros, which does?
<apeiros> and a couple of other stuff, there are good sites listing them ;-)
<apeiros> generational gc
<MrZYX> what about def foo; a="notgcd"; a = "gcd"; build(a); end; def build(a); proc { a }; end; ? am I too naive?
<bnagy> inch by inch MRI crawls closer to being a crappy version of the JVM ;)
<MrZYX> one of course s/a/b/
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.)]
<Hanmac> bnagy i dont care about JVM as long it isw without java ,P
<benzrf> MrZYX: my guess is that a proc is considered to be referencing the scope in which it was created
<bnagy> Hanmac: liar
<benzrf> MrZYX: that seems like the simplest approach...
<bnagy> otherwise you would have switched to jruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Client Quit]
<bnagy> you will never leave MRI because otherwise you couldn't write your crazy C++ extensions :)
<Hanmac> bnagy thats right ... but most of them work on rubinius too
albertgrala has quit [Quit: Leaving]
<bnagy> write them with a proper C API added on
<bnagy> then you can use FFI
<bnagy> every C++ project ever should do this :<
* bnagy shakes first at LLVM
<benzrf> yo MrZYX
<benzrf> as i expected
shevy has joined #ruby
<shevy> benzrf
<MrZYX> right link for sure?
<shevy> did you make your first gem already
petey has joined #ruby
Cephalostrum has joined #ruby
cads has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
Hobogrammer_ has joined #ruby
<benzrf> shevy no
<benzrf> i will when you tell me something i can make
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
<bnagy> hey what's the last thing you need to do to push a gem from github to being gem install-able?
tvw has quit [Remote host closed the connection]
<shevy> benzrf hmm
Cephalostrum has joined #ruby
<shevy> bnagy I don't know! I always do things like this: rubygen bla.rb (rubygen creates a skeleton for a new class for me), modify bla.rb, turnitintogem bla.rb # turnitinto gem will create project structure + .gemspec and open that .gemspec in my editor, then I fill up some more things into .gemspec, like description, then exit editor, "pgem" to make gem and publish it - done!
<shevy> benzrf a game would be great
<shevy> benzrf or a smaller gem before you make a game
Squarepy has quit [Quit: Leaving]
<bnagy> shevy: I have the gem
<bnagy> it's just not pubished
<benzrf> well my game idea was legend
<benzrf> but you know what happened with that
jonahR has joined #ruby
<shevy> benzrf well don't sulk, get the ideas in for a new game!
spider-mario has quit [Remote host closed the connection]
Cephalostrum has quit [Client Quit]
<bnagy> MrZYX: ok thanks. signup + gem push.
<MrZYX> yup
<bnagy> way easier than I expected given the byzantine collection of tools people use to actually create gems :)
mocfive has joined #ruby
Jdubs_ has joined #ruby
gregoriokusowski has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
rickruby has quit [Remote host closed the connection]
yjmsf20 has joined #ruby
chomskiii has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
habanany has joined #ruby
IceyEC has quit [Quit: IceyEC]
<shevy> hehe
Jdubs__ has joined #ruby
jaimef has quit [Excess Flood]
MrZYX is now known as MrZYX|off
Jdubs has quit [Ping timeout: 276 seconds]
yjmsf20 has quit [Client Quit]
jaimef has joined #ruby
drumusician has joined #ruby
Jdubs_ has quit [Ping timeout: 272 seconds]
subbyyy_ has joined #ruby
ozgun has quit [Quit: Leaving]
nhhagen has quit [Ping timeout: 252 seconds]
maycon_ has joined #ruby
maycon_ has joined #ruby
maycon_ has quit [Changing host]
lorelei_ has quit [Ping timeout: 272 seconds]
shadoi has quit [Quit: Leaving.]
<shevy> s.add_dependency "foobar", ">= 1.0.0"
<shevy> this is valid entry in a .gemspec file?
<benzrf> wouldnt it be possible to make a dsl that lets you directly write a gemfile like 'sinatra >= 3'
DarthGandalf has quit [Ping timeout: 252 seconds]
szerated_ has quit [Quit: Ex-Chat]
<benzrf> instead of gem 'sinatra', '>= 3'
szerated_ has joined #ruby
<centrx> shevy, foobar is only at version 0.0.1
darthdeus has quit [Read error: Connection reset by peer]
<shevy> :P
darthdeus has joined #ruby
unixpro1970 has quit [Quit: unixpro1970 has off IRC]
<shevy> benzrf probably
rootshift has quit [Read error: Connection reset by peer]
<shevy> benzrf but gem evolves at snail speed
vlad_starkov has joined #ruby
<shevy> also remember in 1.8.x it was not integrated
<shevy> it's an AFTERTHOUGHT
maycon has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
deception has quit [Quit: Goodbye]
kaldrenon has quit [Remote host closed the connection]
cjsarette has joined #ruby
mengu has quit []
Hien_ has quit [Ping timeout: 252 seconds]
aspires has quit []
gl- has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
JaTochNietDan has quit [Ping timeout: 252 seconds]
Hien has joined #ruby
gl- has joined #ruby
kep has quit [Quit: WeeChat 0.4.2]
wedgeV has joined #ruby
rootshift has joined #ruby
Cephalostrum has joined #ruby
aspires has joined #ruby
JaTochNietDan has joined #ruby
chinkung has joined #ruby
vky has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0a2/20140110004002]]
tyl has joined #ruby
shadoi has joined #ruby
shadoi has quit [Client Quit]
nhhagen has joined #ruby
redmenace has joined #ruby
kung has quit [Ping timeout: 245 seconds]
shadoi has joined #ruby
sethen has quit [Ping timeout: 252 seconds]
thoraxe has joined #ruby
mikepack has quit [Remote host closed the connection]
Cephalostrum has quit [Client Quit]
fijimunkii has joined #ruby
DarthGandalf has joined #ruby
<thoraxe> i am dealing with some pretty old code, and I think I may have run across some ruby version syntax changes. Here's the code: https://gist.github.com/thoraxe/f2b4e61f374f854608ed -- I get an error at line 33: syntax error, unexpected ':', expecting keyword_then or ';' or '\n' (SyntaxError)
wedgeV has quit [Quit: wedgeV]
Cephalostrum has joined #ruby
<apeiros> thoraxe: `if condition.is_a?(Array):` is not valid syntax. remove the `:` at the end.
<lupine> case x : y is not valid in 1.8 either
<thoraxe> ahhh
jedimind has quit [Quit: going home.]
jkamenik has quit [Quit: Leaving.]
tyl has quit [Ping timeout: 272 seconds]
redmenace has quit [Ping timeout: 252 seconds]
<benzrf> thoraxe: python guy?
habanany has quit [Ping timeout: 265 seconds]
rootshift has quit [Ping timeout: 252 seconds]
mdpatrick has joined #ruby
ferr has joined #ruby
<shevy> @values.empty? ? @conditions << condition.shift : @conditions << join << condition.shift
<shevy> you like to write non-simple code
<benzrf> dang
<benzrf> thoraxe: dont use ?: for effectful code
rootshift has joined #ruby
<benzrf> thoraxe: if you stick to using if for effectful stuff it makes it easier to parse code without worrying about whats effectful and whats not
diegoviola has joined #ruby
nanoyak has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
<shevy> does haskell have if/else
ffranz has quit [Quit: Leaving]
freezey has quit [Remote host closed the connection]
zumba_addict has quit [Quit: zumba_addict]
DaveHSussex has joined #ruby
cascalheira has joined #ruby
ambushsabre has quit [Quit: rip]
Virtualize has joined #ruby
<DouweM_> yes
Megtastique has quit []
MrThePlague has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
<Hanmac> thoraxe: look at think code: @conditions.push([@values.empty? ? nil : join, Array(condition).shift].compact)
mikepack has joined #ruby
thenovices has quit [Remote host closed the connection]
cascalheira has quit [Client Quit]
Jetchisel has quit [Ping timeout: 256 seconds]
senj has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
deens has joined #ruby
breakingthings has quit []
mikepack has quit [Ping timeout: 265 seconds]
rickruby has joined #ruby
DarthGandalf has quit [Ping timeout: 276 seconds]
stryek has quit [Quit: Leaving]
pel_daniel has quit [Ping timeout: 265 seconds]
ferr has quit [Read error: Connection reset by peer]
jan1337z has quit [Quit: System is going down.]
avalarion has quit [Read error: Connection reset by peer]
ehaliewicz has joined #ruby
jragon has quit [Ping timeout: 276 seconds]
rubyracer has quit [Quit: Konversation terminated!]
whomp has quit [Ping timeout: 252 seconds]
lorelei_ has joined #ruby
lorelei_ has quit [Changing host]
lorelei_ has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
DaveHSussex has quit [Quit: Leaving]
iamjarvo has joined #ruby
narcan has joined #ruby
drumsrgr8forn8 has joined #ruby
rickruby has quit [Ping timeout: 265 seconds]
m8 has quit [Quit: Sto andando via]
ehc has joined #ruby
DarthGandalf has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
nifty has joined #ruby
drumsrgr8forn8 has quit [Client Quit]
CodeBunny has joined #ruby
test__ has joined #ruby
mikepack has joined #ruby
maycon_ is now known as maycon
kenndel_ is now known as kenndel
test__ has quit [Client Quit]
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
MrThePlague has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
<thoraxe> Hanmac: you are assuming i know way more ruby than I do :)
<benzrf> tell us thoraxe
<benzrf> how much ruby do you know?
<Hanmac> no ... i will cause that you know more ruby than you do ;P
pel_daniel has joined #ruby
rickruby has joined #ruby
deens has quit [Remote host closed the connection]
recurrence has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
habanany has joined #ruby
camilasan has joined #ruby
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
<shevy> Hanmac I finished writing UpdateGemspec. but it is buggy and now I am sleepy
s2013 has quit [Ping timeout: 272 seconds]
snath has quit [Ping timeout: 245 seconds]
freezey has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sergicles has joined #ruby
mary5030 has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
pel_daniel has quit [Ping timeout: 252 seconds]
enebo has quit [Quit: enebo]
LekeFly has joined #ruby
petey has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
mansi has joined #ruby
Bira has quit [Remote host closed the connection]
combinatirix has joined #ruby
Bira has joined #ruby
VTLob has quit [Quit: VTLob]
mansi has quit [Ping timeout: 265 seconds]
drumusician has quit [Ping timeout: 246 seconds]
w4pm has joined #ruby
<lupine> hmm, I'm using revel.Config in a goroutine spawned from an init() function and it seems to occasionally race
<lupine> ahem, whoops
* lupine hides evidence of infidelity
jonahR has quit [Quit: jonahR]
iamjarvo has quit [Ping timeout: 245 seconds]
peregrin_ has joined #ruby
shadoi has quit [Quit: Leaving.]
monkegjinni has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
<centrx> lupine, This is outrageous!
<lupine> what can I say? go is seductive
jerius has quit [Ping timeout: 252 seconds]
w4pm has quit [Read error: Operation timed out]
yfeldblum has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
snath has joined #ruby
combinatirix has quit [Remote host closed the connection]
wildroman2 has joined #ruby
camilasan has quit [Read error: Operation timed out]
<shevy> hmm
claymore has quit [Quit: Leaving]
chomskiii has quit [Read error: Connection reset by peer]
w4pm has joined #ruby
chomskiii has joined #ruby
yfeldblum has joined #ruby
dscrd has quit [Read error: Connection reset by peer]
po10_ has joined #ruby
dscrd has joined #ruby
sassamo has quit [Remote host closed the connection]
chomskiii has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
sassamo has joined #ruby
chomskiii has joined #ruby
<bnagy> stab stab stab stab FFI
Megtastique has joined #ruby
Hamburglr has joined #ruby
meatherly has quit [Remote host closed the connection]
po10 has quit [Ping timeout: 252 seconds]
fijimunkii has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
fijimunkii has joined #ruby
benzrf has quit [Quit: leaving]
wallerdev has joined #ruby
<RubyPanther> kill it, before it gets to the children!
szerated_ has quit [Ping timeout: 265 seconds]
Dorf2 has joined #ruby
synergy__ has joined #ruby
<Hamburglr> how can I run mechanize and mail gems in the same script? I get this error: Unable to activate mail-2.5.4, because mime-types-2.0 conflicts with mime-types (~> 1.16)
pel_daniel has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
dekz__ has joined #ruby
szerated_ has joined #ruby
SCommette has quit [Quit: SCommette]
sassamo has quit [Ping timeout: 248 seconds]
freerobby has quit [Quit: Leaving.]
sh1ps has joined #ruby
justsee_ has joined #ruby
sassamo has joined #ruby
deavidsedice has joined #ruby
TheTFEF has joined #ruby
ambushsabre has joined #ruby
mneorr_ has joined #ruby
soahccc_ has joined #ruby
kewubenduben has joined #ruby
lioninawhat has joined #ruby
_aeris has joined #ruby
lioninawhat has quit [Remote host closed the connection]
e62 has quit [Ping timeout: 252 seconds]
combinatirix has joined #ruby
shadoi has joined #ruby
peregrine81_ has joined #ruby
diegovio1 has joined #ruby
akitada_ has joined #ruby
pcya9111 has joined #ruby
mr_red- has joined #ruby
thumpba has quit [Remote host closed the connection]
telling_ has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
Trickydee has joined #ruby
sparrovv has joined #ruby
thumpba has joined #ruby
Rennex_ has joined #ruby
niftylettuce_ has joined #ruby
isieo has joined #ruby
thumpba has quit [Remote host closed the connection]
Xuerian_ has joined #ruby
thumpba has joined #ruby
yjmsf20 has joined #ruby
qubit_ has joined #ruby
Radar has quit [Ping timeout: 245 seconds]
culturelabs_ has joined #ruby
marr has quit [Ping timeout: 245 seconds]
dekz_ has quit [Ping timeout: 245 seconds]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
Dorf has quit [Ping timeout: 245 seconds]
three18ti has quit [Ping timeout: 245 seconds]
mattmcclure has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 245 seconds]
isieox has quit [Ping timeout: 245 seconds]
m4rcu5 has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
synergy_ has quit [Ping timeout: 245 seconds]
Nightmare has quit [Ping timeout: 245 seconds]
TigerWolf has quit [Ping timeout: 245 seconds]
deavid has quit [Ping timeout: 245 seconds]
pragmatism has quit [Ping timeout: 245 seconds]
Xuerian has quit [Ping timeout: 245 seconds]
_aeris_ has quit [Ping timeout: 245 seconds]
soahccc has quit [Ping timeout: 245 seconds]
dubios has quit [Ping timeout: 245 seconds]
pragmatism has joined #ruby
telling has quit [Ping timeout: 245 seconds]
mr_red has quit [Ping timeout: 245 seconds]
peregrine81 has quit [Ping timeout: 245 seconds]
niftylettuce has quit [Ping timeout: 245 seconds]
go|dfish has quit [Ping timeout: 245 seconds]
poutine has quit [Ping timeout: 245 seconds]
pcya911 has quit [Ping timeout: 245 seconds]
akitada has quit [Ping timeout: 245 seconds]
culturelabs has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 245 seconds]
TheMoonMaster has quit [Ping timeout: 245 seconds]
JaTochNietDan has quit [Ping timeout: 245 seconds]
sparrovv_ has quit [Ping timeout: 245 seconds]
trollface has quit [Ping timeout: 245 seconds]
wlanboy has quit [Ping timeout: 245 seconds]
qubit has quit [Ping timeout: 245 seconds]
Rennex has quit [Ping timeout: 245 seconds]
mneorr has quit [Ping timeout: 245 seconds]
Zackio has quit [Ping timeout: 245 seconds]
wuest has quit [Ping timeout: 245 seconds]
yjmsf20_ has quit [Ping timeout: 245 seconds]
gwb3 has quit [Ping timeout: 245 seconds]
derf- has quit [Ping timeout: 245 seconds]
garndt has quit [Ping timeout: 245 seconds]
Tritania has quit [Ping timeout: 245 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
mark| has quit [Ping timeout: 245 seconds]
epochwolf has quit [Ping timeout: 245 seconds]
PhilK has quit [Ping timeout: 245 seconds]
machty has quit [Ping timeout: 245 seconds]
dekz__ is now known as dekz_
gwb3 has joined #ruby
mr_red- is now known as mr_red
gwb3 has quit [Changing host]
gwb3 has joined #ruby
agjacome has quit [Ping timeout: 246 seconds]
sh1ps is now known as mattmcclure
Xeago_ has joined #ruby
bricker`LA has joined #ruby
wald0 has quit [Ping timeout: 245 seconds]
juni0r has quit [Ping timeout: 245 seconds]
nhmood has quit [Ping timeout: 245 seconds]
Virtualize has quit [Quit: Leaving...]
wuest has joined #ruby
PhilK has joined #ruby
m4rcu5 is now known as 64MABBCA6
TheMoonMaster_ has joined #ruby
top4o has quit [Read error: Connection reset by peer]
derf- has joined #ruby
peregrine81_ is now known as peregrine81
dazeddev has quit [Quit: So long, and goodbye!]
rndstr has quit [Ping timeout: 245 seconds]
fivethreeo has quit [Ping timeout: 245 seconds]
Megtastique has quit []
Tritania has joined #ruby
go|dfish has joined #ruby
TigerWolf has joined #ruby
mark| has joined #ruby
wald0 has joined #ruby
nhmood has joined #ruby
Paradox has joined #ruby
helpa has quit [Ping timeout: 264 seconds]
machty has joined #ruby
culturelabs_ is now known as culturelabs
64MABBCA6 has quit [Ping timeout: 245 seconds]
garndt has joined #ruby
niftylettuce_ is now known as niftylettuce
poutine has joined #ruby
epochwolf has joined #ruby
allaire has quit []
juni0r has joined #ruby
wlanboy has joined #ruby
JaTochNietDan has joined #ruby
akitada_ is now known as akitada
fivethreeo has joined #ruby
havenwood has joined #ruby
rndstr has joined #ruby
dubios has joined #ruby
top4o has joined #ruby
Zackio has joined #ruby
three18ti has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kobain has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
subbyyy_ has quit [Ping timeout: 248 seconds]
ayumin has joined #ruby
combinatirix has quit [Remote host closed the connection]
SCommette has joined #ruby
klaut has quit [Remote host closed the connection]
kpshek has quit []
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yasushi has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Remote host closed the connection]
hukl has quit [Quit: Leaving...]
Morrolan has quit [Ping timeout: 276 seconds]
speakingcode-wor has joined #ruby
thenovices has joined #ruby
marr has joined #ruby
sarlalian has quit [Quit: WeeChat 0.4.0]
<speakingcode-wor> i am having an issue with uniq... it doesn't seem to be giving distinct results when comparing on the return value of a passed block https://gist.github.com/speakingcode/24f8b1748fa3195ff2f6
mlpinit_ has joined #ruby
ayumin has quit [Ping timeout: 272 seconds]
Morrolan has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
heidi1 has joined #ruby
szerated_ has quit [Ping timeout: 265 seconds]
sarlalian has joined #ruby
heidi has quit [Ping timeout: 245 seconds]
kevind has quit [Quit: kevind]
Thanatermesis has quit [Read error: Operation timed out]
<centrx> speakingcode-wor, Does it do the same if you send it to to_a before uniq
mlpinit has quit [Ping timeout: 248 seconds]
Aryasam has joined #ruby
thenovices has quit [Ping timeout: 246 seconds]
_aeris is now known as _aeris_
petey has quit [Ping timeout: 252 seconds]
wald0 has quit [Ping timeout: 248 seconds]
momomomomo has quit [Quit: momomomomo]
wildroman2 has quit [Remote host closed the connection]
recurrence has quit [Ping timeout: 272 seconds]
TheMoonMaster_ is now known as TheMoonMaster
brandonjmckay has quit [Remote host closed the connection]
_aeris_ is now known as [_aeris_]
brandonjmckay has joined #ruby
<speakingcode-wor> centrx: let me see
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<speakingcode-wor> centrx: that did it thanks
petey has joined #ruby
<speakingcode-wor> i guess b/c it's an AR result set and not a true array?
<bnagy> hooray for AR
dscrd has quit [Quit: .]
<speakingcode-wor> so my question then is when doing uniq{|s| s.abrv} what IS s, and s.abrv, and what's going on behind the scenes to make that not work? heh
petey has quit [Client Quit]
<soahccc_> [2] pry(main)> Post.all.method(:uniq) => #<Method: ActiveRecord::Relation::ActiveRecord_Relation_Post(ActiveRecord::QueryMethods)#distinct>
<centrx> speakingcode-wor, The uniq for ActiveRecord::Relation does not support blocks
Xeago_ has quit [Remote host closed the connection]
<centrx> speakingcode-wor, It adds DISTINCT to the query
workmad3 has joined #ruby
<speakingcode-wor> distinct on what tho?
soahccc_ is now known as soahccc
Xeago has joined #ruby
<speakingcode-wor> i guess that's dumb of me to look at ruby uniq doc and not the AR one, knowing it's an AR result set. bleh
<centrx> SELECT DISTINCT x, y, z
nanoyak has quit [Quit: Computer has gone to sleep.]
<speakingcode-wor> ah
nathancahill has quit [Read error: Connection reset by peer]
heidi1 is now known as heidi
<soahccc> speakingcode-wor: see my output there? My favorite way to find out which method is actually invoked
deens has joined #ruby
TheTFEF is now known as Nightmare
<centrx> soahccc, Is pry much better than irb?
<soahccc> definitely yes
<soahccc> no doubt about this from my side
lioninawhat has joined #ruby
<centrx> Does it ever have incompatibilities?
Txandy has quit [Quit: Leaving...]
magoo has joined #ruby
_gautam has joined #ruby
postmodern has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
closer has quit [Quit: ZNC - http://znc.in]
<soahccc> centrx: What do you mean? It has some commands which could eventually collide with yours but this is very unlikely and if it happens you can un/remap the commands
<soahccc> This would only affect your terminal not your app
Trickydee has quit [Quit: Textual IRC Client: www.textualapp.com]
<speakingcode-wor> pry really is nice
<soahccc> centrx: Look at the tutorials but just to illustrate: http://files.sven.bmonkeys.net/images/pry_awesome_20140116_004406.png
lioninawhat has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 276 seconds]
SCommette has quit [Quit: SCommette]
alexherb1 has quit [Quit: WeeChat 0.4.3-dev]
blackmesa has quit [Ping timeout: 240 seconds]
helpa has joined #ruby
Radar_ has joined #ruby
po10_ has quit [Ping timeout: 272 seconds]
Radar_ is now known as Radar
alexherbo2 has quit [Quit: WeeChat 0.4.2]
nanoyak has joined #ruby
hiall has joined #ruby
Wolland has joined #ruby
Jetchisel has joined #ruby
thecodethinker has joined #ruby
<thecodethinker> Has anyone here got shoes4 to install as a gem? when I try to it seems to get stuck in a redirect loop
yfeldblum has quit [Read error: Connection reset by peer]
Megtastique has quit []
yfeldblum has joined #ruby
shime has quit [Ping timeout: 272 seconds]
mansi has joined #ruby