ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
qwerxy has joined #ruby-lang
chimkan has joined #ruby-lang
Carnage\ has joined #ruby-lang
qwerxy has quit [Client Quit]
datanoise has joined #ruby-lang
benanne has quit [Quit: kbai]
postmodern has joined #ruby-lang
anachronistic has left #ruby-lang [#ruby-lang]
bosie has quit [Quit: Lost terminal]
wyhaines_ has joined #ruby-lang
outoftime has quit [Quit: Leaving]
wyhaines has quit [Read error: Connection reset by peer]
chessguy has joined #ruby-lang
kjr has quit [Quit: kjr]
datanoise has quit [Ping timeout: 260 seconds]
wyhaines has joined #ruby-lang
wyhaines_ has quit [Read error: Connection reset by peer]
imperator has quit [Quit: This computer has gone to sleep]
__butch__ has quit [Remote host closed the connection]
cschwartz has joined #ruby-lang
cschwartz has quit [Ping timeout: 268 seconds]
sailias has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
imperator has joined #ruby-lang
<matti> zzak: Ack :)
<matti> zzak: To be fair.
<matti> zzak: FileUtils could use documentation improvement across the whole.
<imperator> yo
<matti> zzak: Its either confusing or missing.
<matti> Yo imperator
<matti> zzak: My lutimes patch might be rejected (as per what Win32 maintainer told me) due to lack of symlink? support on Windows.
<matti> zzak: I cried like a baby sea lion because of this.
<imperator> windows has had symlinks since vista
<matti> Yes.
<imperator> who the fuck told you that?
<matti> But Ruby does not have this implemented.
<matti> Apparently.
<imperator> i implemented it in win32-file
<matti> You did?
<imperator> yup
<matti> I was talking to Luis.
<matti> He claims that File.symlink? is not behaving correctly.
<matti> :<
<imperator> i've never seen a bug report
datanoise has joined #ruby-lang
<imperator> been there for years
<matti> Aye.
ksaw1234 has joined #ruby-lang
marr has quit []
sailias has quit [Quit: Leaving.]
ksaw1234 has quit [Client Quit]
datanoise has quit [Ping timeout: 265 seconds]
kain has quit [Read error: Connection reset by peer]
kain_ has joined #ruby-lang
voker57 has quit [Ping timeout: 245 seconds]
kjr has joined #ruby-lang
<zzak> matti: if you spot anything else let me know, ill put something together for chmod, but im clueless on the rest
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
roadt_ has joined #ruby-lang
<matti> zzak: OK ;]
<matti> zzak: Are you in PST?
cschwartz has joined #ruby-lang
datanoise has joined #ruby-lang
havenn has quit [Ping timeout: 246 seconds]
sailias has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
<zzak> est
DefV has quit [Ping timeout: 260 seconds]
DefV has joined #ruby-lang
cschwartz has quit [Ping timeout: 276 seconds]
datanoise has quit [Ping timeout: 252 seconds]
<matti> zzak: I will be in CA for 6 weeks, wanted to drag you for a beer ... but ;/
sailias has quit [Quit: Leaving.]
xalei has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
arubin_ has joined #ruby-lang
rebelcan has quit [Quit: leaving]
kurko_ has quit [Quit: Computer has gone to sleep.]
<zzak> matti: thanks tho
mrsolo has quit [Quit: Leaving]
blazes816 has quit [Quit: blazes816]
kain_ has quit [Read error: Operation timed out]
thinkdevcode has joined #ruby-lang
kain has joined #ruby-lang
jarib has quit [Excess Flood]
Aiur has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jarib has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
ulisescab has joined #ruby-lang
CaptainJet has joined #ruby-lang
kjr has quit [Quit: kjr]
joseairosa has joined #ruby-lang
cschwartz has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
<matti> zzak: :)
dpatel has quit [Quit: dpatel]
cschwartz has quit [Ping timeout: 240 seconds]
macmartine has joined #ruby-lang
Madis has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Carnage\ has quit []
isale-eko has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
ulisescab has quit [Remote host closed the connection]
spuk has joined #ruby-lang
imperator has quit [Quit: Leaving]
chimkan has quit [Quit: chimkan]
CaptainJet has quit []
brianpWins has joined #ruby-lang
dankest has quit [Quit: Linkinus - http://linkinus.com]
sn0wb1rd has joined #ruby-lang
bfreeman has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
cschwartz has joined #ruby-lang
toretore has quit [Quit: Leaving]
cschwartz has quit [Ping timeout: 240 seconds]
lsegal has joined #ruby-lang
mjio has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
ilyam has quit [Quit: ilyam]
stardiviner has joined #ruby-lang
chimkan has joined #ruby-lang
chendo_ is now known as chendo
svyatov has joined #ruby-lang
kurko_ has joined #ruby-lang
kjr has joined #ruby-lang
brianritchie has joined #ruby-lang
totallymike has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
codewrangler has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ilyam has joined #ruby-lang
chimkan has quit [Ping timeout: 260 seconds]
cschwartz has joined #ruby-lang
woollyams has joined #ruby-lang
wyhaines has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chessguy has quit [Remote host closed the connection]
cschwartz has quit [Ping timeout: 265 seconds]
chimkan_ has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
Kingy has quit [Quit: Leaving]
chimkan_ has quit [Read error: Connection reset by peer]
methods has joined #ruby-lang
wmoxam has quit [Quit: leaving]
siyusong has quit [Quit: Computer has gone to sleep.]
chimkan_ has joined #ruby-lang
sn0wb1rd_ has joined #ruby-lang
sn0wb1rd has quit [Ping timeout: 246 seconds]
sn0wb1rd_ is now known as sn0wb1rd
krz has joined #ruby-lang
chimkan_ has quit [Ping timeout: 255 seconds]
datanoise has joined #ruby-lang
cschwartz has joined #ruby-lang
areil has joined #ruby-lang
cschwartz has quit [Ping timeout: 260 seconds]
solars has quit [Ping timeout: 252 seconds]
solars has joined #ruby-lang
Gekz has quit [Ping timeout: 244 seconds]
dous has quit [Ping timeout: 252 seconds]
savage- has joined #ruby-lang
nXqd has quit [Ping timeout: 260 seconds]
methods has left #ruby-lang [#ruby-lang]
johndoy_ has joined #ruby-lang
Gekz has joined #ruby-lang
Gekz has quit [Changing host]
Gekz has joined #ruby-lang
nignaztic has quit [Ping timeout: 256 seconds]
johndoy has quit [Ping timeout: 276 seconds]
wmoxam has joined #ruby-lang
lun_ has joined #ruby-lang
cschwartz has joined #ruby-lang
gregmoreno has quit [Quit: Leaving...]
xalei has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
cschwartz has quit [Ping timeout: 260 seconds]
gregmoreno has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 240 seconds]
ramu3 has joined #ruby-lang
ramu3 has quit [Client Quit]
JohnBat26 has joined #ruby-lang
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
ryanf has quit [Ping timeout: 255 seconds]
lun__ has joined #ruby-lang
siyusong has joined #ruby-lang
lun_ has quit [Ping timeout: 252 seconds]
kitallis has joined #ruby-lang
spuk has quit [Ping timeout: 265 seconds]
spuk has joined #ruby-lang
siyusong has quit [Quit: Computer has gone to sleep.]
senekis has quit [Quit: leaving o/]
imperator has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cschwartz has joined #ruby-lang
kitallis has joined #ruby-lang
<imperator> gem install obama
<Aria> "installing dependencies drone, healthcare"
woollyams has quit [Quit: Computer has gone to sleep.]
cschwartz has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 246 seconds]
imperator2 has joined #ruby-lang
<imperator2> hmm
pold has joined #ruby-lang
pold has quit [Client Quit]
ryanf has joined #ruby-lang
ryanf_ has joined #ruby-lang
imperator2 has quit [Quit: Leaving]
t0h has quit [Ping timeout: 240 seconds]
t0h has joined #ruby-lang
rippa has joined #ruby-lang
imperator has quit [Read error: Connection reset by peer]
siyusong has joined #ruby-lang
roadt_ has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
solars has joined #ruby-lang
datanoise has joined #ruby-lang
JohnBat26 has joined #ruby-lang
roadt_ has joined #ruby-lang
anannie has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby-lang
nXqd has joined #ruby-lang
datanoise has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Read error: Connection reset by peer]
chris2 has quit [Ping timeout: 260 seconds]
chris2 has joined #ruby-lang
JohnBat26 has joined #ruby-lang
cschwartz has joined #ruby-lang
siyusong has quit [Quit: Computer has gone to sleep.]
Andrew__ has joined #ruby-lang
idzuna has joined #ruby-lang
Andrew__ is now known as andrewhl
erichmenge has joined #ruby-lang
cschwartz has quit [Ping timeout: 260 seconds]
mjio has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
roadt_ has quit [Read error: Connection reset by peer]
brianritchie has quit [Quit: brianritchie]
Aria has quit [Remote host closed the connection]
anannie has joined #ruby-lang
pold has joined #ruby-lang
pold has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby-lang
fsvehla has joined #ruby-lang
robbyoconnor has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
Mon_Ouie has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 252 seconds]
woollyams has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
rohit has joined #ruby-lang
lcdhoffman has joined #ruby-lang
cschwartz has joined #ruby-lang
nXqd has quit [Ping timeout: 245 seconds]
cschwartz has quit [Ping timeout: 252 seconds]
gsav has joined #ruby-lang
nXqd has joined #ruby-lang
bluepojo has quit [Ping timeout: 246 seconds]
wyhaines_ has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 246 seconds]
nXqd has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
gsav has quit [Read error: Connection reset by peer]
achiu has quit [Read error: Connection reset by peer]
achiu has joined #ruby-lang
arubin_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
siyusong has joined #ruby-lang
rohit has quit [Ping timeout: 252 seconds]
siyusong has quit [Client Quit]
lcdhoffman has quit [Quit: lcdhoffman]
datanoise has joined #ruby-lang
kjr has quit [Quit: kjr]
fsvehla has quit [Quit: fsvehla]
datanoise has quit [Ping timeout: 246 seconds]
fsvehla has joined #ruby-lang
kjr has joined #ruby-lang
datanoise has joined #ruby-lang
datanoise has quit [Ping timeout: 240 seconds]
cschwartz has joined #ruby-lang
dhruvasagar has joined #ruby-lang
mytrile has joined #ruby-lang
apeiros_ has quit [Ping timeout: 252 seconds]
cschwartz has quit [Ping timeout: 246 seconds]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
rue|w has joined #ruby-lang
kjr has quit [Quit: kjr]
svyatov has quit [Quit: svyatov]
charliesome has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Averna has quit [Quit: Leaving.]
ilyam has quit [Quit: ilyam]
uuair has joined #ruby-lang
judofyr has joined #ruby-lang
gnufied has joined #ruby-lang
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
knu has quit [Ping timeout: 255 seconds]
savage- has quit [Quit: savage-]
savage- has joined #ruby-lang
cschwartz has joined #ruby-lang
tris has quit [Ping timeout: 260 seconds]
znz_v0 has quit [Ping timeout: 265 seconds]
savage- has quit [Client Quit]
isale-eko has joined #ruby-lang
icooba has joined #ruby-lang
znz_v has joined #ruby-lang
richardjapenga has joined #ruby-lang
qwerxy has joined #ruby-lang
jarib has quit [Excess Flood]
tris has joined #ruby-lang
jarib has joined #ruby-lang
joseairosa has quit [Ping timeout: 245 seconds]
<yorickpeterse> Morning
marr has joined #ruby-lang
agarcia has joined #ruby-lang
tbuehlmann has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf_ has quit [Quit: leaving]
qwerxy has quit [Quit: offski]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
havenn has joined #ruby-lang
blacktulip has joined #ruby-lang
havenn has quit [Read error: No route to host]
dc5ala has joined #ruby-lang
<yorickpeterse> namidark: http://joshrendek.com/2012/11/sidekiq-vs-resque/ not sure if you wrote this but you might want to rephrase "As of 1.9 the GIL (Global Interpreter Lock) is gone! But it’s only been renamed to the GVL "
<yorickpeterse> It implies the GVL is something entirely different but the concept is still the same
fsvehla has quit [Quit: fsvehla]
<yorickpeterse> Also, your example of the GC being "broken" isn't because it's broken
<yorickpeterse> it's because you're storing data in an array and never cleaning it up
<yorickpeterse> Nor does the GC know to clean it up itself since the context doesn't change and thus the variable remains valid
<yorickpeterse> Let me just write this in the comments as well
datanoise has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby-lang
<yorickpeterse> Somebody explain this to me, how is this any different than modules?: http://blog.txus.io/2012/11/traitor-an-implementation-of-traits-for-ruby-2-dot-0/
<yorickpeterse> Maybe I just don't get it
<yorickpeterse> Hm, seems it doesn't mess with the anchestors tree
vlad_starkov has joined #ruby-lang
felixc has joined #ruby-lang
felixc has left #ruby-lang [#ruby-lang]
ReinH has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
havenn has joined #ruby-lang
bmaland has joined #ruby-lang
Madis has joined #ruby-lang
ruskie has quit [Ping timeout: 256 seconds]
havenn has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby-lang
uuair has quit [Quit: uuair]
workmad3 has joined #ruby-lang
Rizzle has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
ViperMaul|_ has quit [Ping timeout: 246 seconds]
yanovitchsky has joined #ruby-lang
havenn has joined #ruby-lang
woollyams has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
francisfish has joined #ruby-lang
havenn has quit [Ping timeout: 246 seconds]
toretore has joined #ruby-lang
knu has joined #ruby-lang
flexd has joined #ruby-lang
GarethAdams has joined #ruby-lang
anannie has quit [Ping timeout: 248 seconds]
banister_ has joined #ruby-lang
heftig has quit [Quit: leaving]
ruskie has joined #ruby-lang
banister_ has quit [Ping timeout: 268 seconds]
GarethAdams has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
anannie has joined #ruby-lang
anannie has quit [Remote host closed the connection]
anannie has joined #ruby-lang
darix has quit [Ping timeout: 260 seconds]
fsvehla has joined #ruby-lang
Axsuul has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
d3vic3 has quit [Ping timeout: 252 seconds]
d3vic3 has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
retro|cz has joined #ruby-lang
havenn has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
dhruvasagar has joined #ruby-lang
havenn has quit [Ping timeout: 256 seconds]
datanoise has quit [Ping timeout: 268 seconds]
sepp2k has joined #ruby-lang
kurko_ has joined #ruby-lang
carloslopes has joined #ruby-lang
cultureulterior_ has quit [Ping timeout: 240 seconds]
cultureulterior_ has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby-lang
vlad_starkov has joined #ruby-lang
adambeynon has joined #ruby-lang
leopard_me has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
judofyr has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
krz has quit [Quit: krz]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
kurko_ has quit [Ping timeout: 260 seconds]
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
kurko_ has joined #ruby-lang
nertzy has joined #ruby-lang
dekroning has joined #ruby-lang
dekroning has left #ruby-lang [#ruby-lang]
dekroning has joined #ruby-lang
heftig has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
mwjcomputing has joined #ruby-lang
vlad_starkov has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
lun__ has quit [Remote host closed the connection]
vlad_sta_ has quit [Read error: Connection reset by peer]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
lun_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
rub has joined #ruby-lang
lun_ has quit [Ping timeout: 246 seconds]
sailias has joined #ruby-lang
rippa has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 246 seconds]
lun_ has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
sailias has quit [Quit: Leaving.]
imperator has joined #ruby-lang
nofxx has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 252 seconds]
<imperator> good morning
erichmenge has joined #ruby-lang
<ddd> morning
kurko_ has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
erichmenge has quit [Quit: Be back later]
dekroning has quit [Ping timeout: 265 seconds]
wyhaines has joined #ruby-lang
<andrewvos> Anyone know a site that accepts emails to *@site.com and has an api you can access the emails with? Want to use it for integration testing.
dekroning has joined #ruby-lang
* imperator does not
cored has quit [Ping timeout: 244 seconds]
<ddd> not i
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
runeb has joined #ruby-lang
rippa has quit [Ping timeout: 264 seconds]
dekroning has quit [Ping timeout: 260 seconds]
dekroning has joined #ruby-lang
ddv has quit [Ping timeout: 240 seconds]
<tsou> andrewvos: think it's faster to set up your own than find one
ddv has joined #ruby-lang
johndoy_ has quit [Ping timeout: 276 seconds]
<charliesome> andrewvos: i wrote a dirt simple smtp server to do that
<charliesome> i don't have the code on my at the moment, but it's basically a matter of listening on a socket
<charliesome> reading in lines from the client, and sending back appropriate responses
dr_bob has joined #ruby-lang
anannie has quit [Remote host closed the connection]
herpless_ is now known as herpless
judofyr has quit [Remote host closed the connection]
<andrewvos> charliesome: Yeah I would rather I don't have to write a whole new service.
<andrewvos> charliesome: Something free would be nice.
<charliesome> you could write a dirt simple smtp server in as many lines as it'd take to integrate into some 3rd party service
<charliesome> also, if you can avoid actually sending the mail do that
<andrewvos> charliesome: But then I need to deploy it somewhere etc.
<andrewvos> charliesome: No I can't do that. The application I'm testing is not under my control.
<charliesome> just run it in another thread in your test process
<charliesome> ah
<charliesome> yeah similar situation with mine
<andrewvos> Oh well
<charliesome> i just have my test runner create a new thread and listen there
<andrewvos> Yeah, that's what I would do too.
mytrile has quit [Remote host closed the connection]
<andrewvos> imperator: Just realised I also can't change the SMTP server.
<charliesome> that's no fun!
<charliesome> i wonder if you could set the MX record of some subdomain to 127.0.0.1
<andrewvos> Programming is never fun, unless of course you're doing it at home alone.
dhruvasagar has quit [Ping timeout: 240 seconds]
Uranio has quit [Remote host closed the connection]
<andrewvos> Naked.
* ddd looks down at his boxers. "What? I'm not naked enough? Damn!"
bmaland has quit [Quit: leaving]
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
<imperator> heya wyhaines
goyox86 has joined #ruby-lang
<imperator> andrewvos, and now in colorado, i can do it while getting stoned too!
<andrewvos> imperator: Is it legal there?
gmci has quit [Quit: Computer has gone to sleep.]
<imperator> andrewvos, yeah, amendment 64 passed
<ddd> there and washington
<andrewvos> cool
<ddd> imperator: aren't they the only two states to make it legal? (even though the federal gov still has it as a schedule 1 drug so it'll be interesting to see how the states in question handle *that*)
gmci has joined #ruby-lang
<imperator> so far as i know, yes
<imperator> yes, as our governor (John Hickenlooper) says, "That said, federal law still says marijuana is an illegal drug so don’t break out the Cheetos or gold fish too quickly."
<ddd> i hope the feds decriminalize weed sometime this decade. I can see coke, meth, herin, and stuff, but weed? I mean when was the last time you read about someone knocking oveer an ATM to get their munchy on?
<ddd> hahah gold fish
rub has quit [Ping timeout: 245 seconds]
goyox86 has quit [Remote host closed the connection]
<ddd> s/herin/heroin/
<imperator> i think it's more about how weed tends to become a lifestyle
lake has quit [Quit: WeeChat 0.3.7]
<imperator> saw a bunch of kids fuck up their college careers doing nothing but smoking weed all day
mfn has joined #ruby-lang
<mfn> hi
<imperator> howdy mfn
gmci has quit [Client Quit]
<ddd> it was first made illegal to 'stop the black man from ravaging our white women. they go crazy on mary jane'. talk about so late 1800s
<ddd> imperator: yeah but thats due to lack of self control, not due to the drug itself unless you get shit weed that just knocks you out all day
<imperator> "lack of self control" - that's kinda all drugs isn't it?
gmci has joined #ruby-lang
<imperator> and college kids and self control don't really mix too well
<imperator> but, we'll see how it goes
<ddd> ehh, i can agree with that
<imperator> i think basically it's come down to money - the state doesn't want to waste time enforcing and prosecuting, plus they can now tax it
<ddd> that is going to be interesting. a single solitary non-sterile seed gets out, their tax plans go to shit
dc5ala has quit [Quit: Ex-Chat]
<yorickpeterse> imperator: if that were true all of The Netherlands would be crack addicts by now
<wmoxam> imperator: I don't know anyone who smoked less/didn't smoke weed because it was illegal
<wmoxam> :p
<ddd> i can't say i don't know people who won't smoke because its illegal.
<ddd> then again i think those folks are nuts ;)
<wmoxam> heh
<imperator> yorickpeterse, different culture
<imperator> i predict kids will go apeshit at first for a while, then we'll settle down
<ddd> imperator: yeah thats exactly what I need
<yorickpeterse> The only reason it's different here is because we did it a while ago
<yorickpeterse> and the only reason it's not going to shit is because people learned to control it themselves instead of the government saying "NO!"
<yorickpeterse> So yes, the sale of pot will grow but don't expect mass anarchy
<wmoxam> I dunno
gmci has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby-lang
dfanjul has joined #ruby-lang
<wyhaines> Morning imperator.
gmci has joined #ruby-lang
<imperator> if mass anarchy happens i'll just throw cheetos and goldfish at them
<yorickpeterse> clearly you need cops with pepperspray
<imperator> tasty tasty pepperspray
<imperator> back to ruby, did anyone here go to rubyconf?
gmci has quit [Client Quit]
outoftime has joined #ruby-lang
gmci has joined #ruby-lang
<ddd> woot adium update. back in a few
ddd has left #ruby-lang [#ruby-lang]
gsav has joined #ruby-lang
ddd has joined #ruby-lang
nitti has joined #ruby-lang
postmodern has quit [Quit: Leaving]
<yorickpeterse> imperator: sadly not
erichmenge has joined #ruby-lang
ilyam has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
gmci has quit [Quit: Computer has gone to sleep.]
mytrile has joined #ruby-lang
judofyr has joined #ruby-lang
gmci has joined #ruby-lang
dfanjul has quit [Quit: leaving]
lcdhoffman has joined #ruby-lang
bastilian has joined #ruby-lang
gmci has quit [Client Quit]
gmci has joined #ruby-lang
<andrewvos> ddd: That excites you?
gnufied has quit [Quit: Leaving.]
<ddd> andrewvos: yep. fixed a couple issues i was having. so yes, the less bugs in my infrastructure the happier i am :)
methods has joined #ruby-lang
gmci has quit [Client Quit]
guns has joined #ruby-lang
gmci has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
gmci has quit [Client Quit]
guns has quit [Client Quit]
gmci has joined #ruby-lang
francisfish has quit [Ping timeout: 265 seconds]
gmci has quit [Client Quit]
rue|w has quit [Ping timeout: 265 seconds]
gmci has joined #ruby-lang
<andrewvos> How can I rectangles depending on lets say "importance" of 1 to 100, like this application does http://www.uderzo.it/main_products/space_sniffer/
wallerdev has joined #ruby-lang
<yorickpeterse> what
<yorickpeterse> "How can I rectangles", what's that supposed to mean?
rue has quit [Ping timeout: 252 seconds]
<andrewvos> yorickpeterse: haha sorry
<andrewvos> yorickpeterse: I accidentally some words
<andrewvos> yorickpeterse: I want to fit rectangles inside a larger rectangle.
<andrewvos> yorickpeterse: The larger rectangle is a web browser, and I want to display a whole lot of rectangles inside it perfectly fitted together.
<andrewvos> yorickpeterse: And I want their sizes to depend on how "important" they are.
<yorickpeterse> ehh
gnufied has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<yorickpeterse> What are you using for drawing these rectangles?
gmci has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> Regardless, you'd build a array of shapes and sort that list in descending order
<yorickpeterse> Then you'd paint each rectangle on top of the other
<yorickpeterse> Assuming you use different colors and one of the corners is the same you'll get a nice layer
<yorickpeterse> (the same position)
francisfish has joined #ruby-lang
<andrewvos> yorickpeterse: No I'm going for the effect in the screenshot.
gmci has joined #ruby-lang
<andrewvos> So the boxes are all fitted kind of next to eachother.
<andrewvos> Not on top of eachother
<andrewvos> And I will use javascript or something to draw them.
siyusong has joined #ruby-lang
<yorickpeterse> Stuff like that is fairly trivial in CSS
<yorickpeterse> Either you use canvas or abuse the z-index CSS property
<whitequark> andrewvos: you're gonna need to read some CS papers
<yorickpeterse> In both cases the core concept remains the same
<whitequark> I'm absolutely sure there is some fancy readymade algorithm which does that sort of layout
<whitequark> solved.
<yorickpeterse> dat Javascript
siyusong has quit [Client Quit]
jxie has joined #ruby-lang
<andrewvos> whitequark: AWW YEAH
heftig has quit [Quit: leaving]
<ddd> treemap makes you happy? ;)
* ddd runs
methods has quit [Quit: Leaving.]
qwerxy has quit [Quit: offski]
<Spaceghostc2c> Dude, d3 has been srsfun the past week or two at work.
gnufied has quit [Ping timeout: 260 seconds]
<andrewvos> ddd: haha shutup
guns has joined #ruby-lang
<ddd> hehe
<whitequark> andrewvos: btw re backlog
<whitequark> gem install mailcatcher
gmci has quit [Quit: Computer has gone to sleep.]
<matti> ddd: ;]
Serial_Killer_C has joined #ruby-lang
<andrewvos> whitequark: Yeah was looking at that. Might give it a try if I get some time.
<ddd> hey matti
krz has joined #ruby-lang
gmci has joined #ruby-lang
<whitequark> free time?! wtf man
<whitequark> $ mailcatcher
<whitequark> then just redirect that host with /etc/hosts for example
<whitequark> or iptables
<whitequark> -t nat -A POSTROUTING -d $SITE_IP -j DNAT --to-destination 127.0.0.1
<whitequark> something like that
<andrewvos> whitequark: Sigh. I wish it was that easy. I need it hosted somewhere externally.
<andrewvos> whitequark: And I'm not paying for an ec2 box.
<whitequark> well, if you're that greedy (I assume that testing doesn't last longer than a bunch of days), then there are free VPS's on the net
Serial_Killer_C has quit [Remote host closed the connection]
<yorickpeterse> andrewvos: I have a server for you, just sign this very vague contract that doesn't mention something about selling souls and anything at all :>
<whitequark> virtualmaster.cz was one iirc
<andrewvos> yorickpeterse: I would likely get fired for using "some guys server on the internet" :)
<whitequark> andrewvos: if it's that important, get the one who needs that app to pay for a ec2 instance. no?
rippa has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
<yorickpeterse> andrewvos: hey now, I'm a very trustworthy "guy on the internet"
<yorickpeterse> Just give me your bank details first
dous has quit [Remote host closed the connection]
kurko_ has quit [Quit: Computer has gone to sleep.]
gnufied has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Uranio has joined #ruby-lang
<andrewvos> :)
<andrewvos> whitequark: Big companies tend to take a while with these things.
<andrewvos> whitequark: I'll probably create a simple website that does it at some point. For now, I think i'm going to give up.
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
guns has quit [Quit: guns]
runeb has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
runeb has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
senekis has joined #ruby-lang
sn0wb1rd_ has joined #ruby-lang
d3vic3 has quit [Ping timeout: 245 seconds]
Spakman has quit [Quit: leaving]
tbuehlmann has joined #ruby-lang
d3vic3 has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
sn0wb1rd has quit [Ping timeout: 276 seconds]
sn0wb1rd_ is now known as sn0wb1rd
erichmenge has quit [Quit: Be back later]
apeiros_ has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
vlad_starkov has joined #ruby-lang
yanovitchsky has quit [Quit: yanovitchsky]
qwerxy has joined #ruby-lang
yanovitchsky has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
<yorickpeterse> "Hack: remove this....." One year later
<yorickpeterse> God I hate code like that
<yorickpeterse> It's like a rotting corpse except people still try to make use of it
senekis has quit [Read error: Operation timed out]
blacktulip has quit [Ping timeout: 240 seconds]
blacktulip has joined #ruby-lang
<masterkorp> ahahah
<FiXato> whenever you add such comments, you should also include a date check at the same place; raising an exceptions if the code is still there a year later :P
<masterkorp> #TODO: Fix this
<mfn> lol
jimmy1980 has joined #ruby-lang
* FiXato imagines that a year after people start using that approach, most Ruby-based websites suddenly go down :P
senekis has joined #ruby-lang
<whitequark> better delete the file
krohrbaugh has quit [Quit: Leaving.]
<whitequark> suicide by todos.
<yorickpeterse> The best one:
<yorickpeterse> TODO: remove this
<whitequark> not entirely unlike death by a thousand papercuts
mytrile has quit [Remote host closed the connection]
<FiXato> #Not sure why this works, but leave it in.
<yorickpeterse> http://pastebin.com/raw.php?i=1kxmHU86 this is also all over the place
<yorickpeterse> hnnnggg, 3 more weeks and this madness is over
<FiXato> PANIIIIIIIIIIIIIIIIIIIIIIIC
<andrewvos> If I ever write code like that I always include at least a paragraph of explanation and I put my name and date at the bottom.
<yorickpeterse> shut up andrew
<yorickpeterse> don't mock my old doc style
<andrewvos> :(
<andrewvos> yorickpeterse: Oh lordy I just saw your paste. Scary.
<yorickpeterse> Personally I feel I go a bit over the top sometimes
<andrewvos> yorickpeterse: A while ago I went over to support this team who were writing an api in java. There was this one model class that just had a huge amount of properties on it. At the top of the file there was a 5 step process to add a new property. Like, there were comments explaining how to add a property to the class.
<yorickpeterse> ha
<yorickpeterse> Step 1: open your editor
<yorickpeterse> step 1.a: make sure that X is installed
<yorickpeterse> step 1.b: if not, install Y
<yorickpeterse> etc
dekroning has quit [Ping timeout: 276 seconds]
<yorickpeterse> https://github.com/YorickPeterse/rlint/blob/definitions-list/lib/rlint/iterator.rb this is the stuff I want to see (yeah I know, self boasting, whatever)
d3vic3 has quit [Ping timeout: 260 seconds]
<yorickpeterse> but alas, this team thinks code is self explaining
d3vic3 has joined #ruby-lang
kjr has joined #ruby-lang
|Vargas| has quit [Quit: ...]
mistym has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 246 seconds]
nXqd has joined #ruby-lang
<whitequark> yorickpeterse: "make sure that X is installed"?
<whitequark> for _adding a property_?
gregmoreno has joined #ruby-lang
<andrewvos> yorickpeterse: Nice. 1 billion lines of comments per line of code is what I aim for too :)
richardjapenga has quit [Quit: Leaving]
<andrewvos> whitequark: I believe you lack context. See my previous comment.
gnufied has quit [Quit: Leaving.]
idzuna has quit [Ping timeout: 255 seconds]
Gordian has joined #ruby-lang
<andrewvos> How come "alias" doesn't have a comma?
<andrewvos> `alias :meh :bleh` <-- the fuck?
<andrewvos> Is it not really a method as such?
emptyflask has joined #ruby-lang
<lianj> andrewvos: no, alias_method is
apeiros_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
isale-eko has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
<andrewvos> lianj: So what is alias then?
<lianj> andrewvos: a keyword?
<andrewvos> lianj: That's weird. I wonder why.
banisterfiend has joined #ruby-lang
<whitequark> andrewvos: maybe for the cases like BasicObject
Swimming_Bird has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<whitequark> where you don't have any methods at all
<whitequark> or to complement def
cschwartz has quit [Ping timeout: 255 seconds]
runeb- has joined #ruby-lang
runeb has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
runeb- is now known as runeb
<apeiros_> o0
jimmy1980 has quit [Ping timeout: 256 seconds]
<apeiros_> alias is indeed a keyword, and unlike what the article misses is that alias can also be used to alias global variables
<apeiros_> (not that you actually should do that)
<apeiros_> (since you shouldn't be using globals in the first place)
<apeiros_> and other than alias being convenient in that you don't need to write a : nor a , to use it, there's no reason I'm aware of to use it instead of alias_method
andrewhl has joined #ruby-lang
<banisterfiend> apeiros_: you can use it defensively against some freak show that replaces alias_method with loop { puts "lol" }
alvaro_o has joined #ruby-lang
<apeiros_> but you're not safe against a custom preprocessor which replaces alias with something insane!
jimmy1980 has joined #ruby-lang
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<andrewvos> def alias_method; puts "NOEP LOL"; end
<yorickpeterse> wat
bastilian has quit [Quit: Leaving...]
gmci has joined #ruby-lang
gmci has quit [Max SendQ exceeded]
krohrbaugh has joined #ruby-lang
gmci has joined #ruby-lang
gmci is now known as Guest25517
dfanjul has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
krohrbaugh has quit [Client Quit]
krz has quit [Quit: krz]
banisterfiend has quit [Ping timeout: 245 seconds]
rue has joined #ruby-lang
dfanjul has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 276 seconds]
dpatel has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
blazes816 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<andrewvos> I have a class in front of my eyes that takes a "browser" as a parameter in initialize. It then goes on to use this browser object one billion times. Thinking of using method_missing to forward on any calls this class makes to the browser object. Should I just not do that and go home?
<apeiros_> the latter
<apeiros_> magic--
<andrewvos> Yeah I agree. TIME TO GO PICK UP MY NEW MACBOOK AIR FROM UPS!!
<whitequark> oh, yes, also global variables.
imperator has quit [Quit: Leaving]
siyusong has joined #ruby-lang
sush24 has joined #ruby-lang
ryanlecompte has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
retro|cz has quit [Ping timeout: 244 seconds]
fsvehla has joined #ruby-lang
fsvehla has quit [Remote host closed the connection]
fsvehla has joined #ruby-lang
dekroning has joined #ruby-lang
bpuzzled has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
cultureulterior_ has quit [Read error: Connection reset by peer]
cultureulterior_ has joined #ruby-lang
dankest has joined #ruby-lang
Guest25517 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bfreeman has quit [Quit: bfreeman]
dekroning has quit [Quit: leaving]
runeb has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
methods has joined #ruby-lang
__butch__ has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
jmeeuwen has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
jmeeuwen has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
cschwartz has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
wwalker has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
krz has joined #ruby-lang
cschwartz has quit [Ping timeout: 268 seconds]
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
erichmenge has joined #ruby-lang
<wwalker> vim colorscheme? syntax/ruby.vim exposes 90+ element types, yet most color schemes lump them all into about 7 colors. anyone using a scheme that is dark background and uses more colors (not 90, but maybe 10 to 15 differentiating some more stuff?
<yorickpeterse> it looks like...
<yorickpeterse> ah, there are screenshots
<yorickpeterse> Forgot that
<yorickpeterse> Damn, 2 years already
<wwalker> yorickpeterse: thank you. I'm ancient, so I'm also looking for higher contrast.
ddd has quit [Quit: Leaving.]
<yorickpeterse> heh
mistym has quit [Remote host closed the connection]
singpolyma has joined #ruby-lang
runeb has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
fletch_ has joined #ruby-lang
Carnage\ has joined #ruby-lang
mrsolo has joined #ruby-lang
nitti has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
nertzy has quit [Quit: This computer has gone to sleep]
yanovitchsky has quit [Quit: yanovitchsky]
runeb has quit [Ping timeout: 240 seconds]
yanovitchsky has joined #ruby-lang
retro|cz has joined #ruby-lang
havenn has joined #ruby-lang
ddd has joined #ruby-lang
Dreamer3 has joined #ruby-lang
ilyam has quit [Quit: ilyam]
vlad_starkov has quit [Remote host closed the connection]
methods has quit [Quit: Leaving.]
methods has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has quit [Client Quit]
svyatov has joined #ruby-lang
justinram has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
brianpWins has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
qwerxy has quit [Quit: offski]
brianpWins has quit [Client Quit]
areil has quit [Remote host closed the connection]
nitti has joined #ruby-lang
heftig has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
rippa has joined #ruby-lang
brianpWins has joined #ruby-lang
totallymike has joined #ruby-lang
qwerxy has joined #ruby-lang
siyusong has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Quit: This computer has gone to sleep]
intellitech has quit [Ping timeout: 264 seconds]
nitti has quit [Ping timeout: 260 seconds]
emptyflask has joined #ruby-lang
bfreeman has joined #ruby-lang
rippa has quit [Ping timeout: 260 seconds]
bpuzzled has quit [Ping timeout: 260 seconds]
methods has quit [Quit: Leaving.]
mwjcomputing has joined #ruby-lang
rebelcan has joined #ruby-lang
anannie has joined #ruby-lang
senekis has quit [Remote host closed the connection]
erichmenge has quit [Ping timeout: 246 seconds]
faces has quit [Ping timeout: 245 seconds]
Hakon has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
thone_ has joined #ruby-lang
nitti has joined #ruby-lang
erichmenge has joined #ruby-lang
thone has quit [Ping timeout: 248 seconds]
darkmug has quit [Ping timeout: 244 seconds]
lcdhoffman has joined #ruby-lang
cored has quit [Quit: Lost terminal]
ddv has quit [Changing host]
ddv has joined #ruby-lang
thinkdevcode has joined #ruby-lang
setmeaway2 has quit [Ping timeout: 245 seconds]
tbuehlmann has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
siyusong has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
thatdutchguy has joined #ruby-lang
workmad3 has joined #ruby-lang
swarley has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby-lang
Austin__ has joined #ruby-lang
Austin__ has left #ruby-lang [#ruby-lang]
Austin__ has joined #ruby-lang
rampantmonkey has joined #ruby-lang
alessio has joined #ruby-lang
tubbo has joined #ruby-lang
benanne has joined #ruby-lang
<tubbo> so i have this line of code: `r = arr.lists.any? ? true : r`
<tubbo> i feel like this is a bit wordy ;)
<tubbo> i'd like to use something along the lines of `r ||= arr.lists.any?`, but that only sets the var when `r` is nil
<tubbo> so basically what i want is a way to tell ruby "favor T over F, and set the variable here if the condition is not met"
<apeiros_> x = y if cond
<apeiros_> (or unless instead of if)
Uranio has quit [Quit: WeeChat 0.3.8]
Austin__1 has joined #ruby-lang
<tubbo> that's what we got not
<tubbo> now*
Austin__ has quit [Ping timeout: 245 seconds]
<tubbo> apeiros_: but it would be kinda nice if i could do something like r ^= condition
<tubbo> and ^= would basically say "if r is set to false, run condition"
<tubbo> :D
<lianj> false || p(:foo)
emptyflask has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
krz has quit [Quit: krz]
swarley has quit [Read error: Connection reset by peer]
siyusong has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 264 seconds]
swarley has joined #ruby-lang
<apeiros_> tubbo: variables being boolean or value is odd anyway IMO
rampantmonkey has quit [Ping timeout: 260 seconds]
<apeiros_> nil or type, but not boolean or type
lcdhoffman has joined #ruby-lang
<tubbo> apeiros_: well the value is actually a boolean also
<tubbo> it's a call to .any?
<tubbo> basically the line of code is "if any of the collections inside this parent collection have elements in them, include this JS in the page"
<tubbo> (rails app)
<tubbo> but that's all irrelevant to my question of course lol
<tubbo> we basically just did r = condition unless r
<tubbo> all in a reduce()
lun_ has joined #ruby-lang
emptyflask has joined #ruby-lang
<apeiros_> o0
<tubbo> lol
sn0wb1rd has quit [Quit: sn0wb1rd]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
ddd has quit [Quit: Leaving.]
bluepojo has joined #ruby-lang
kurko_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
svyatov has quit [Quit: svyatov]
rampantmonkey has joined #ruby-lang
svyatov has joined #ruby-lang
spuk has quit [Ping timeout: 260 seconds]
swarley has quit [Read error: Operation timed out]
datanoise has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
swarley has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
goyox86 has joined #ruby-lang
cczona has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
cczona has quit [Quit: cczona]
lun_ has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 246 seconds]
datanoise has joined #ruby-lang
lun_ has joined #ruby-lang
havenn has joined #ruby-lang
jakob- has joined #ruby-lang
jakob- has quit [Excess Flood]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
znake has joined #ruby-lang
lcdhoffman has joined #ruby-lang
benanne has quit [Read error: Operation timed out]
Serial_Killer_C has quit [Ping timeout: 246 seconds]
havenn has quit [Ping timeout: 252 seconds]
Serial_Killer_C has joined #ruby-lang
aetcore has joined #ruby-lang
Carnage\ has quit [Read error: Connection reset by peer]
znake has quit [Quit: Linkinus - http://linkinus.com]
Carnage\ has joined #ruby-lang
havenn has joined #ruby-lang
benanne has joined #ruby-lang
rampantmonkey has quit [Quit: Computer has gone to sleep.]
mrsolo has quit [Quit: This computer has gone to sleep]
erichmenge has quit [Ping timeout: 246 seconds]
jkyle has joined #ruby-lang
aetcore has quit [Remote host closed the connection]
mrsolo has joined #ruby-lang
siyusong has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
svyatov has quit [Quit: svyatov]
aetcore has joined #ruby-lang
kurko_ has quit [Ping timeout: 276 seconds]
FastJack has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
Serial_K_ has joined #ruby-lang
Serial_K_ has quit [Read error: Connection reset by peer]
Serial_K_ has joined #ruby-lang
Serial_Killer_C has quit [Read error: Connection reset by peer]
Serial_Killer_C has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
FastJack has joined #ruby-lang
Serial_K_ has quit [Read error: Operation timed out]
bastilian has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby-lang
kentos has joined #ruby-lang
kentos has quit [Client Quit]
aetcore has quit [Remote host closed the connection]
nitti has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
alexkira has joined #ruby-lang
elux has joined #ruby-lang
sailias has quit [Quit: Leaving.]
bpuzzled has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
qwerxy has joined #ruby-lang
chris2 has quit [Read error: Operation timed out]
adam12 has quit [Remote host closed the connection]
CaptainJet has joined #ruby-lang
chris2 has joined #ruby-lang
aetcore has joined #ruby-lang
fletch_ has quit []
gregmoreno has quit [Ping timeout: 276 seconds]
gregmoreno has joined #ruby-lang
emptyflask has joined #ruby-lang
siyusong has quit [Quit: Computer has gone to sleep.]
erichmenge has joined #ruby-lang
bastilian has quit [Quit: Linkinus - http://linkinus.com]
ilyam has joined #ruby-lang
kith_ has joined #ruby-lang
goyox86 has quit [Remote host closed the connection]
ViperMaul|_ has joined #ruby-lang
tockitj_ has joined #ruby-lang
<tockitj_> are hash keys immutable ?
elux has quit [Quit: Bye!]
<tockitj_> is it posible to map all keys to have.. say.. +"_" at the end
nitti has joined #ruby-lang
headius has quit [Quit: headius]
wnd^ has joined #ruby-lang
ktih has joined #ruby-lang
<tockitj_> and why: ` ( {}.class === Hash ) == false `
blacktulip has quit [Remote host closed the connection]
array_ has joined #ruby-lang
darix- has joined #ruby-lang
darix- has quit [Changing host]
darix- has joined #ruby-lang
woollyams has joined #ruby-lang
<tsou> tockitj_: why would you compare classes with === and not with == ?
KnowTheLedge has quit [Read error: Connection reset by peer]
Rizzle has quit [Read error: Connection reset by peer]
wnd has quit [Excess Flood]
kith has quit [Ping timeout: 264 seconds]
array has quit [Ping timeout: 264 seconds]
darix has quit [Ping timeout: 264 seconds]
bcardarella has quit [Ping timeout: 264 seconds]
nitti_ has joined #ruby-lang
darix- is now known as darix
KnowTheLedge has joined #ruby-lang
bcardarella has joined #ruby-lang
kith_ has quit [Ping timeout: 244 seconds]
<tockitj_> thou, i'm using case to determine class type
<tockitj_> tsou
<tsou> not even Hash === Hash is true, not sure why though ;)
nitti has quit [Ping timeout: 252 seconds]
<tockitj_> {} === Hash
<bluepojo> > {a: 'b'} === Hash
<bluepojo> => false
nitti_ has quit [Remote host closed the connection]
<tockitj_> try other way around
<apeiros_> tsou: because Hash is not an instance of Hash
<tockitj_> Hash === {}
<apeiros_> which is what Class#=== tests
<bluepojo> => true
<bluepojo> {}.kind_of? Hash
<bluepojo> ;)
<tsou> apeiros_: thanks ;)
<tockitj_> apeiros_, say you want to handle each of possible 10 types of given parameter class individually - how would you do it ?
<apeiros_> I wouldn't. that sounds like a horrible code smell.
<apeiros_> case obj; when KlassA …; when KlassB …; …
siyusong has joined #ruby-lang
<tockitj_> apeiros_, thanks
<tockitj_> why does it sound like that ?
<apeiros_> because it most likely means that you're having a method that does by far too much
<apeiros_> and/or discriminates by type instead of behavior
nitti has joined #ruby-lang
<tockitj_> i have recurrent hash structure i want to process (if nested object is array or hash, need to go deeper into recurrence)
<tockitj_> also i'd like to handle several leaf nodes specially.. therefore i need this case
<tockitj_> do you know a way to do this more elegantly ?
sailias has joined #ruby-lang
<tockitj_> its very concrete 20 line method
lun_ has quit [Remote host closed the connection]
<apeiros_> well, since those are core classes, no. normally you'd add methods to the classes and have them use the same name. then just call that method.
thinkdevcode has quit [Remote host closed the connection]
methods has joined #ruby-lang
<tockitj_> something like composite pattern ?
methods has quit [Client Quit]
methods has joined #ruby-lang
Austin__1 has quit [Quit: Leaving.]
yanovitchsky has quit [Quit: yanovitchsky]
<tockitj_> so is it still bad code or not ?
<bluepojo> seems reasonable
<zenspider> tockitj_: sure sounds like a case for proper object orientation...
<zenspider> you're using hashes and arrays when you should be using real classes/instances
<zenspider> aka... you're writing perl
<tockitj_> or dealing with json
intellitech has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
qwerxy has quit [Quit: offski]
Carnage\ has quit []
jimmy1980 has quit [Ping timeout: 248 seconds]
dankest has quit [Quit: Linkinus - http://linkinus.com]
Mon_Ouie has quit [Ping timeout: 246 seconds]
<zenspider> and?
erichmenge has quit [Quit: Be back later]
banisterfiend has joined #ruby-lang
<zenspider> if you're a perler, that's a fine explanation. if you're a proper OO developer, it's a cop-out
bpuzzled has quit [Quit: Leaving]
ddd has joined #ruby-lang
ddd is now known as Guest17445
Guest17445 has quit [Client Quit]
alessio has quit [Quit: Leaving]
ddd has joined #ruby-lang
swarley has quit [Ping timeout: 260 seconds]
<tockitj_> i like perl
<Harzilein> tockitj_: good for you :D
sailias has quit [Quit: Leaving.]
<tockitj_> is there a way for proc to call itself ? to have recurrence
<zenspider> procs are blocks and blocks are closures...
intellitech is now known as intellitech|away
<tockitj_> is there a way to create anonymous method to call itself ?
<zenspider> there's no such thing
lewrker_ has quit [Ping timeout: 256 seconds]
<zenspider> there are procs/lambdas... and I answered than one
lewrker has joined #ruby-lang
erichmenge has joined #ruby-lang
<zenspider> I keep reading "sent_nil"
<sent_hil> heh
<tockitj_> sent_hil, that definition seems problematic
<tockitj_> however, question is can these functions be self called
<tockitj_> to have 'inline' recursive block/lambda/whatever
<zenspider> *tap tap* is this thing on?
<zenspider> block/lambda/whatever are _closures_
<tockitj_> whatever is closure ? :)
<zenspider> oh... is google down again?
* amerine grabs some popcorn
<tockitj_> besides, there is example on previous SO page on recurrent block
nitti has quit [Remote host closed the connection]
outoftime has quit [Quit: Leaving]
kjr has quit [Quit: kjr]
<tockitj_> however, i'd like it to be anonymous.. in that example it was given name
jmeeuwen has quit [Read error: Connection reset by peer]
jmeeuwen has joined #ruby-lang
<zenspider> assigning a lambda to a local variable is not considered giving a method a name
<TTilus> tockitj_: why do you not wanna assign it to a var?
<tockitj_> of course not, lambda != method
<tockitj_> TTilus, why would i ?
<tockitj_> for same reason blocks are not given names
wyhaines_ has joined #ruby-lang
<TTilus> tockitj_: you wouldnt need a combinator to do what you are aiming at :)
benanne has quit [Quit: kbai]
<tockitj_> is there a way to reference an executing proc, from within a proc
<TTilus> no
wyhaines has quit [Read error: Connection reset by peer]
<zenspider> blocks have names. whether YOU know the name, it still has them.
headius has joined #ruby-lang
<tockitj_> this is trivial to dispute :S
Gordian has quit []
<tockitj_> how to reference a block from block itself ?
<andrewvos> YAY new macbook
<andrewvos> Mountain Lion is a bit hard to get running with though.
<TTilus> tockitj_: if you want to recursively call proc without writing an assignment, use combinator
<tockitj_> TTilus, what is combinator ?
<zenspider> andrewvos: you got a new macbook and downgraded it? heh
<zenspider> which one did you get?
<TTilus> tockitj_: function combining functions
<andrewvos> zenspider: Wait, isn't Mountain Lion the new one?
<zenspider> google is down AGAIN? wow
<andrewvos> zenspider: Got the 11 inch
<zenspider> andrewvos: *sigh* yes... yes it is. I need more coffee
<TTilus> zenspider: :) they have loads of problems today
<zenspider> andrewvos: how do you like the 11? my hands are huge and the top row bugs me
chrismcg is now known as zz_chrismcg
<banisterfiend> andrewvos: what specs did u get
<andrewvos> zenspider: I can never remember what the new one is with these stupid names. When people talk about "mountain lion this snow leopard that" I just kind of go to a happy place.
<andrewvos> banisterfiend: Got highest specs I could except for the storage, which is 256.
<banisterfiend> cool
<andrewvos> It's soo small :)
Serial_Killer_C has quit [Remote host closed the connection]
<zzak> shoulda go a 13
<zzak> better battery
Kingy has joined #ruby-lang
<banisterfiend> huge differnece in portability between 13 and 11
<banisterfiend> and 5 hour battery isnt bad
<banisterfiend> at least it hasn't bugged me yet
<zenspider> andrewvos: mmmm kitties
<andrewvos> zzak: Yeah I know, the battery on this sucks. Thing is, I'm always plugged in.
<zenspider> 13's battery is AMAZING
<zenspider> I fucking love this laptop...
<andrewvos> banisterfiend: zenspider: Exactly. I could almost put this thing in my pocket.
<zenspider> prolly could with cargo pants
<andrewvos> Yeah, I've still got a 13 around if I take a flight or something. Honestly don't think I'll notice the battery life though.
<zenspider> they should make that... I'd do it
<andrewvos> Yeah, but then I have a new problem ;)
<zzak> apple pants (tm)
<zenspider> I'm almost never plugged in, so that's the big difference
<andrewvos> hehehe
<zzak> ipants rather
<zenspider> I generally don't even take my power adapter with me on a daily basis
<andrewvos> zenspider: Either that sounds cool, or you just are in too many meetings :/
herpless has quit [Remote host closed the connection]
herpless_ has joined #ruby-lang
<zenspider> tenderlove has an 11" so the pants would be ideal for him... but he is almost always wearing hipster pants so I doubt he'd buy them
<andrewvos> Want to try make this a background but it's got those stupid buttons at the bottom :/ http://www.eso.org/public/images/eso1242a/zoomable/
<zenspider> andrewvos: I'm almost never in meetings
sebastianb has quit [Ping timeout: 246 seconds]
<zenspider> my battery life is just that good that I need not have it
<andrewvos> zenspider: Yeah my pants are pretty tight. Doubt I could fit a macbook on there.
<TTilus> tockitj_: proc { |recursethis| recursethis.call(recursethis) }.call(proc { |me| me.call })
havenn has quit [Remote host closed the connection]
<TTilus> tockitj_: look ma! no assignments!
<banisterfiend> zenspider: do u have the maxed out 2012 model?
<andrewvos> zenspider: Oh wow. Guess you don't run VirtualBox then :)
bfreeman has quit [Read error: Connection reset by peer]
sebastianb has joined #ruby-lang
havenn has joined #ruby-lang
<tockitj_> TTilus, thanks - that looks good
<zenspider> banisterfiend: yeah
bfreeman has joined #ruby-lang
<banisterfiend> cool
<TTilus> tockitj_: but it is obviously way simplier just to assign the recursed block to var
<zenspider> andrewvos: hah. no. I can't even figure out virtual box for that matter... I've stuck to vmware for the UI, but I don't use it much
<banisterfiend> next gen mbas are likely getting retinas
<tockitj_> though.. would be better if proc could just reference self somehow
<andrewvos> Oh, one thing I immediately noticed is the ESC key is frikkin tiny.
<banisterfiend> probably 2013 :)
sent_hil has left #ruby-lang [#ruby-lang]
* zzak waits
__butch__ has quit [Quit: Leaving.]
<zenspider> andrewvos: exactly
<zenspider> banisterfiend: I highly doubt it
<zenspider> airs are the consumer level laptops... replacing the ibook
<andrewvos> zenspider: Yeah at my previous role it was all about vagrant/virtualbox and lately I've been running the Android emulator. Basically my battery lasts an hour max while working.
<zenspider> retina will prolly remain a pro level feature
<zenspider> andrewvos: hah
<TTilus> tockitj_: if you are gonna use that in a real life app, DONT!
<andrewvos> zenspider: A bit scared when I go in to work tomorrow and try use vim with this little ESC key. Might map CAPSLOCK to ESC or something :/
<zenspider> is android that bad?
<andrewvos> zenspider: No just the emulator uses a lot of battery.
alexkira has quit [Remote host closed the connection]
<tockitj_> TTilus, its just y combinator ;)
<zenspider> I wonder why... what's the processor in an android?
havenn_ has joined #ruby-lang
<andrewvos> zenspider: I think it's ARM and something else. That's the choice you get in the emulator.
<apeiros_> damn, wtf did they mutilate Object#inspect ?
<apeiros_> and how do I get it back? :(
<TTilus> tockitj_: thets the exact reason :)
<zenspider> apeiros_: ??
<apeiros_> zenspider: Object#inspect is now #to_s
<andrewvos> What, in 2?
<apeiros_> and to_s does not show the ivars in the object
<apeiros_> no, in 1.9.3
<andrewvos> What?
<tockitj_> TTilus, if Enumerator methods could reference self, they could process recursive structures that simply implement Enumerator
<tockitj_> instead of just dealing with flat lists & hashes
<tockitj_> thats way more powerful
<TTilus> apeiros_: dont believe u
havenn has quit [Ping timeout: 240 seconds]
<zenspider> apeiros_: I see ivars across all my versions
<zenspider> multiruby -e 'o = Object.new; o.instance_variable_set :@a, 42; p o'
<zenspider> or am I still needing coffee?
<zenspider> hrm... I should do that.
<andrewvos> Holy shit multiruby. Damn
<apeiros_> zenspider: hrm, maybe something in irbrc is messed up then…
<TTilus> tockitj_: i just cant see hows that not possible right now
<tockitj_> TTilus, i don't
<apeiros_> zenspider: def o.to_s; "hi"; end
<apeiros_> now o.inspect is fucked up
<tockitj_> TTilus, can we settle on not using both y-combinators and double negation ?
qwerxy has joined #ruby-lang
<apeiros_> and Object.instance_method(:to_s).bind(o).call is fucked up too, no ivars
<TTilus> tockitj_: agreed
<tockitj_> ok.. how to do better than y combinator ?
<tockitj_> need proc to reference self
<apeiros_> seriously, this is odd behavior…
datanoise has quit [Ping timeout: 255 seconds]
<TTilus> tockitj_: sorry, need sleep, its past 1am for me
* TTilus zzleeps
<tockitj_> how to saayy.. use .map on tree-like structure stored in nested hashes ??
<tockitj_> without defining method
<TTilus> tockitj_: dont use nested hash, do proper oo and ruby loves you
nitti has joined #ruby-lang
<tockitj_> TTilus, they are part of _life_. Lets face it.
<zenspider> apeiros_: all versions default to to_s.
<apeiros_> zenspider: not true
<apeiros_> 1.8 did not
<zenspider> I think it's always been that way
<zenspider> true
fjfish has joined #ruby-lang
<zenspider> Passed: mri_trunk, 1.8.7-p249, 1.9.3-p194, 1.9.2-p320
<zenspider> DON'T YOU MAKE ME GO LOOK AT THE 1.6 SOURCE! :P
<apeiros_> zenspider: 1.8 definitively did not use to_s
L0L0L0L0L has joined #ruby-lang
<tockitj_> apeiros_ is right
francisfish has quit [Ping timeout: 245 seconds]
<zenspider> return rb_funcall(obj, rb_intern("to_s"), 0, 0);
<zenspider>
<zenspider> 1.8.6
<zenspider> why don't they store off that rb_intern? I never understand that
<erikh> oh hey ryan, got a q for you
<apeiros_> wtf? am I going insane or what?
<zenspider> ah. ok. I see. you need BOTH the ivar and the def to_s... I shortcutted on the commandline
<zenspider> lemme go compare against the 1.9 source
<apeiros_> anyway, that redefining to_s means you lose any way to inspect with ivars is odd
<apeiros_> I mean why wouldn't Object.instance_method(:to_s).bind(o).call return the original value?
<erikh> this doohickey basically replays a proc against a receiver
<zenspider> apeiros_: yeah. they're comparing differently
<zenspider> TYPE(obj) == T_OBJECT && rb_obj_basic_to_s_p(obj)
<erikh> it's not perfect, it's just meant to solve a problem where I need to get code from system A to system B and there's no sane interface to do so
<zenspider> wow
<zenspider> me && me->def && me->def->type == VM_METHOD_TYPE_CFUNC && me->def->body.cfunc.func == rb_any_to_s
<erikh> just wondering if there's a better solution, seems like mitchell really isn't interested in making this easier for me
<zenspider> and I thought rails code read horribly :P
bfreeman has quit [Quit: bfreeman]
<zenspider> apeiros_: try calling super ?
<zenspider> erikh: looking...
<zenspider> so this is a method_missing -> storage -> custom eval?
banisterfiend has quit [Ping timeout: 246 seconds]
<erikh> right. it basically plays the code and generates the structure as the code is played
<apeiros_> zenspider: no dice
<erikh> then replays it into the receiver specified later
<apeiros_> alias doesn't work either
<zenspider> erikh: @hash = Hash.new { |h,k| h[k] = [] }
<erikh> the intermediary system is suitable for marshalling
<zenspider> pls
<erikh> ok, but I'm just wondering if there's an easier way really
<erikh> I started with ruby_parser, but that seemed even more backwards than what I'm doing here
<zenspider> not if you want to cover yields
<erikh> bummer
<erikh> yeah, there's a lot of yield in vagrant config files.
GarethAdams has joined #ruby-lang
<zenspider> btw... don't populate yields unless the block is given and the inspect cleans up a bit
<zenspider> are you multicasting vagrant or something?
<erikh> I'm integrating it into minitest
<erikh> :)
<zenspider> hah
<apeiros_> bedtime. n8
<zenspider> omg this is the best espresso EVAR
apeiros_ has quit [Remote host closed the connection]
<erikh> one of the things we're solving is a solid way to integration test chef
<zenspider> ape... I'm surprised the super doesn't work given the C code's tests
<erikh> he bailed
<zenspider> I know
<zenspider> what does minitest-chef provide?
<zenspider> or is it chef-minitest??
justinram has quit [Remote host closed the connection]
<erikh> it's assertions mostly
<erikh> it's not orchestration
<erikh> this gives me the ability to start a network of VMs, provision them, then run minitest on the node meta or perform server searches, etc.
<erikh> or walk into the boxes and fire off other testing systesm
<erikh> and when the test cleans up, they go away
siyusong has quit [Quit: Computer has gone to sleep.]
<zenspider> cool
<andrewvos> Anyone know of a good notification app for OSX that chcks gmail?
<erikh> biff
<andrewvos> Oh, and why the fuck do I keep hearing a whoosing sound in Mountain Lion?
<zenspider> andrewvos: whoosing?
<zenspider> heh
<andrewvos> whooshing*
<zenspider> sending email?
<andrewvos> zenspider: Nope, not doing much other than being in the terminal.
<andrewvos> Oh I think it's Messages :/
yanovitchsky has joined #ruby-lang
<andrewvos> Wow that was irritating.
nitti has quit [Remote host closed the connection]
L0L0L0L0L has quit [Ping timeout: 256 seconds]
<zenspider> oh... someone logging in / out
<zenspider> I use adium w/ the (old) tokyo train station sound set... so it's much more subtle
Dreamer3 has joined #ruby-lang
L0L0L0L0L has joined #ruby-lang
<zenspider> I just checked... you can control that in the prefs
<zenspider> under alerts
<erikh> it's also used when you delete files in the finder
datanoise has joined #ruby-lang
<zenspider> that's a crunchy sound
thatdutchguy has quit [Ping timeout: 245 seconds]
rampantmonkey has joined #ruby-lang
thatdutchguy has joined #ruby-lang
rampantmonkey has quit [Client Quit]
cantonic has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]