apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
brixen has joined #ruby-lang
<brianpWins> banisterfiend: 1 more question. So the code you gist. In layman's terms would that be a piece of the eval in REPL? After it gets a pointer ruby does the inspect?
MehLaptop has joined #ruby-lang
Averna has joined #ruby-lang
wmoxam has quit [Quit: leaving]
Guest31807 has quit [Quit: Leaving]
pkrnj has joined #ruby-lang
poga has quit [Remote host closed the connection]
Vektur has quit []
mjio has quit []
sebasoga has quit [Quit: Computer has gone to sleep.]
JoelMcCracken has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
chrismar035 has quit [Quit: chrismar035]
macmartine has joined #ruby-lang
vlad_starkov has joined #ruby-lang
blacktulip has quit [Ping timeout: 245 seconds]
rwilcox has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has quit [Ping timeout: 264 seconds]
mjio has joined #ruby-lang
datanoise has joined #ruby-lang
cored has quit [Ping timeout: 252 seconds]
ezkl has joined #ruby-lang
realDAB has quit [Quit: realDAB]
stonerfish has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
S3kx has quit [Read error: Connection reset by peer]
S3kx has joined #ruby-lang
kurko__ has joined #ruby-lang
kurko__ has quit [Max SendQ exceeded]
kurko__ has joined #ruby-lang
jerrytgarcia has quit [Read error: Connection reset by peer]
jerrytgarcia has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
miquella has joined #ruby-lang
Honeycomb has quit [Quit: Leaving.]
mjio has quit []
miquella has quit [Ping timeout: 272 seconds]
brianpWins has quit [Quit: brianpWins]
davidbalber|away is now known as davidbalbert
amerine has quit [Ping timeout: 252 seconds]
rsl has quit [Quit: Computer has gone to sleep.]
baba has joined #ruby-lang
nazty has quit [Read error: Connection reset by peer]
fire has quit [Ping timeout: 260 seconds]
amerine has joined #ruby-lang
davidbalbert is now known as davidbalber|away
gregmoreno has quit [Read error: Operation timed out]
davidbalber|away is now known as davidbalbert
tylersmith has quit [Quit: tylersmith]
mjio has joined #ruby-lang
pepper_chico has quit [Quit: Computer has gone to sleep.]
sebastiansier has joined #ruby-lang
sebastiansier has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
bzalasky has joined #ruby-lang
marr has quit []
davidbalber|away is now known as davidbalbert
mjio has quit [Read error: Connection reset by peer]
davidbalbert is now known as davidbalber|away
bzalasky has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
baba has quit [Quit: WeeChat 0.4.0]
pepper_chico has joined #ruby-lang
xsdg has quit [Ping timeout: 246 seconds]
xsdg has joined #ruby-lang
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
xalei has quit [Remote host closed the connection]
amerine has quit [Quit: Computer has gone to sleep.]
davidbalber|away is now known as davidbalbert
miquella has joined #ruby-lang
Honeycomb has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
bzalasky has joined #ruby-lang
blacktulip has joined #ruby-lang
jxie has quit [Ping timeout: 246 seconds]
lcdhoffman has joined #ruby-lang
<zenspider> blowmage: oi
<zenspider> you've not been on IM of late
jxie has joined #ruby-lang
datanoise has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
<zenspider> 82 slides so far... and I'm probably only half done
dhruvasagar has joined #ruby-lang
davidbalbert is now known as davidbalber|away
xalei has joined #ruby-lang
intellitech has joined #ruby-lang
<zenspider> this talk is gonna kill me
davidbalber|away is now known as davidbalbert
pkrnj has joined #ruby-lang
lsegal has joined #ruby-lang
Domon has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
pepper_chico has quit [Quit: Computer has gone to sleep.]
cstrahan has joined #ruby-lang
Honeycomb has quit [Quit: Leaving.]
Honeycomb has joined #ruby-lang
davidbalbert is now known as davidbalber|away
joevandyk_ has joined #ruby-lang
bgcoup has joined #ruby-lang
bluepojo has quit [Ping timeout: 255 seconds]
totallymike has quit [Ping timeout: 256 seconds]
meatballhat has quit [Quit: leaving]
srbaker has quit [Quit: Computer has gone to sleep.]
totallymike has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
spuk has joined #ruby-lang
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
<blowmage> zenspider: switching to im
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
yxhuvud has joined #ruby-lang
davidbalber|away is now known as davidbalbert
spuk has joined #ruby-lang
mbull9 has joined #ruby-lang
Qwak has quit []
Wildhoney has quit [Ping timeout: 245 seconds]
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
Swimming_Bird has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
bzalasky has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
jonahR has quit [Quit: jonahR]
bzalasky has quit [Remote host closed the connection]
spuk has joined #ruby-lang
bzalasky has joined #ruby-lang
cstrahan has quit [Ping timeout: 256 seconds]
<zenspider> foods
xxaM has joined #ruby-lang
jerrytgarcia has quit [Read error: Connection reset by peer]
sebasoga has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
intellitech has quit [Ping timeout: 260 seconds]
sebasoga_ has joined #ruby-lang
sebasoga has quit [Ping timeout: 256 seconds]
mjio has joined #ruby-lang
sebasoga_ has quit [Ping timeout: 272 seconds]
sebasoga has joined #ruby-lang
nXqd has quit [Ping timeout: 260 seconds]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
spuk has joined #ruby-lang
gregmore_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Cherrum has joined #ruby-lang
gregmoreno has quit [Ping timeout: 256 seconds]
rsl has joined #ruby-lang
datanoise has joined #ruby-lang
pepper_chico has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
datanoise has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
sebasoga has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
spuk_ has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
rking has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 252 seconds]
nXqd has joined #ruby-lang
lectrick has quit [Ping timeout: 245 seconds]
lectrick has joined #ruby-lang
nXqd has quit [Ping timeout: 246 seconds]
Artheist has joined #ruby-lang
carloslopes has joined #ruby-lang
ryanf has quit [Quit: leaving]
headius has quit [Quit: headius]
hasimo has quit [Remote host closed the connection]
amerine has joined #ruby-lang
hasimo has joined #ruby-lang
intellitech has joined #ruby-lang
jonahR has joined #ruby-lang
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
rking has joined #ruby-lang
mbull9 has quit [Remote host closed the connection]
pepper_chico has quit [Quit: Computer has gone to sleep.]
kurko__ has quit [Quit: Computer has gone to sleep.]
psycho_one has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 252 seconds]
mjio has quit []
robbyoconnor has quit [Ping timeout: 264 seconds]
davidbalbert is now known as davidbalber|away
carloslopes has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
miquella has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
rippa has joined #ruby-lang
chendo_ is now known as chendo
psycho_one has quit [Remote host closed the connection]
mbull9 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
amerine has quit [Read error: Connection reset by peer]
Domon has quit [Remote host closed the connection]
randallagordon has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
mjio has joined #ruby-lang
psycho_one has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
Artheist has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
jonahR has quit [Quit: jonahR]
amerine has joined #ruby-lang
mistym has quit [Remote host closed the connection]
wallcloc_ has joined #ruby-lang
wallclockbuilder has quit [Ping timeout: 252 seconds]
huydx has joined #ruby-lang
Domon has joined #ruby-lang
soypirate has joined #ruby-lang
joevandyk_ has quit [Ping timeout: 252 seconds]
miquella has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
miquella has quit [Ping timeout: 246 seconds]
intellitech has quit [Quit: intellitech]
soypirate has quit [Remote host closed the connection]
skade has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
intellitech has joined #ruby-lang
kentos has quit [Quit: Leaving]
psycho_one has quit [Remote host closed the connection]
noop has joined #ruby-lang
brianpWins has joined #ruby-lang
JohnBat26 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kgrz has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby-lang
headius has joined #ruby-lang
swav has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
Kuukunen- has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
tomzx_mac has quit [Ping timeout: 245 seconds]
Kuukunen has joined #ruby-lang
psycho_one has joined #ruby-lang
lele|w has quit [Remote host closed the connection]
jigfox has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
psycho_one has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros_ has quit [Remote host closed the connection]
skade has joined #ruby-lang
headius has quit [Quit: headius]
Averna has quit [Quit: Leaving.]
skade has quit [Client Quit]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
mjio has quit []
workmad3 has joined #ruby-lang
solars has joined #ruby-lang
v0yager has joined #ruby-lang
beho has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
v0yager has quit []
robbyoconnor has quit [Read error: Connection reset by peer]
v0yager has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
nXqd has joined #ruby-lang
r0bby has joined #ruby-lang
charliesome has joined #ruby-lang
psycho_one has joined #ruby-lang
dr_bob has joined #ruby-lang
jigfox has quit [Quit: jigfox]
r0bby_ has joined #ruby-lang
r0bby has quit [Ping timeout: 255 seconds]
francisfish has quit [Ping timeout: 256 seconds]
mbull9 has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
babinho_ has left #ruby-lang [#ruby-lang]
dr_bob has left #ruby-lang [#ruby-lang]
beho_ has joined #ruby-lang
beho has quit [Ping timeout: 264 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ryez has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
hasimo has quit [Remote host closed the connection]
r0bby_ has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
mytrile_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
ioga_wrk has joined #ruby-lang
hasimo has joined #ruby-lang
gregmoreno has joined #ruby-lang
<charliesome> TIL:
<charliesome> >> nil.to_i
<eval-in> charliesome => 0 (http://eval.in/12656)
benlovell has joined #ruby-lang
mbull9 has joined #ruby-lang
psycho_one has quit [Ping timeout: 245 seconds]
psycho_one has joined #ruby-lang
gregmoreno has quit [Ping timeout: 276 seconds]
srbaker has joined #ruby-lang
joe212 has joined #ruby-lang
skade has quit [Ping timeout: 252 seconds]
jigfox has joined #ruby-lang
beho_ has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
skade has joined #ruby-lang
wallcloc_ has quit [Remote host closed the connection]
xalei has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
amerine has quit [Read error: Connection reset by peer]
<zenspider> charliesome: is that your bot?
<zenspider> yup. looks like it.
<zenspider> corundum is the only bot in here
wallerdev has quit [Quit: wallerdev]
Weems has quit []
mbull9 has quit [Remote host closed the connection]
<apeiros_> zenspider: drbrain agreed to give it a try
beho has joined #ruby-lang
chekcmate has joined #ruby-lang
* zenspider sighs
<zenspider> the times... they change
srbaker has quit [Quit: Computer has gone to sleep.]
<apeiros_> is #ruby-lang still `register to speak`?
mixandgo has joined #ruby-lang
<chekcmate> yes
<rking> zenspider: Oh, random thing. Several months ago I asked you if you'd entertain a multi_stub for minitest that didn't require nesting blocks. I wanted to say that I've not forgotten about the idea, or even stopped wanting it -- but my issue is I'm not sure if it's encouraging the wrong things.
<rking> Maybe each stub should cost you one tooth and when you lose all your teeth you just have to eat applesauce for the rest of that test file.
<rking> (But I do a lot of legacy coding, so the ridiculously powerful mock libs are a way out for me)
maxmanders has joined #ruby-lang
<zenspider> apeiros_: yeah. keeps the spammers out
<apeiros_> also makes the bot a lesser problem
<zenspider> rking: agreed
<zenspider> on both counts
<rking> Which of the two directions would you rather see MiniTest's mocks go?
<rking> What about a thing like i_suck_and_my_tests_are_order_dependent
alessio_rocco has joined #ruby-lang
<rking> this_code_sucks_and_i_am_going_to_just_stub_mock_and_claw_my_way_to_sanity
<zenspider> hahaha
<zenspider> DO IT
mbull9 has joined #ruby-lang
<rking> Hehe, OK.
thebastl has joined #ruby-lang
<charliesome> zenspider: ah yep that's my bot. it's of the less spammy variety so i'm hoping it's ok
rue_XIV has joined #ruby-lang
<apeiros_> rking: don't. sanity is dull.
<rking> Oh? You like insanity? Perhaps you would like to apply for a position as "Rails Developer at <my company".
<rking> +>
<apeiros_> depends. my insanity has a high upkeep :D
<jaska> sanity scmanity
rue has quit [Ping timeout: 256 seconds]
<yorickpeterse> whitequark: re: diamondback, wasn't that done using source code annotations?
brianpWins has quit [Quit: brianpWins]
hasimo has quit [Remote host closed the connection]
psycho_one has quit [Remote host closed the connection]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
simi has quit [Ping timeout: 258 seconds]
<zenspider> aaaand that's why I don't like bots
hasimo has joined #ruby-lang
blacktulip has joined #ruby-lang
judofyr has joined #ruby-lang
<yorickpeterse> zenspider: little to do with bots and everything to do with a shitty network
<charliesome> yorickpeterse: not a shitty network, cowboy coding in production
<charliesome> it's all good now
zmack has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 245 seconds]
alessio_rocco has joined #ruby-lang
dr_bob has joined #ruby-lang
darix has quit [Ping timeout: 264 seconds]
<yorickpeterse> pffff, change your nick fgt
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
<yorickpeterse> /nick charlie-cowboy
<charliesome> hehe
xxaM has quit [Remote host closed the connection]
<andrewvos> cone to candy mountain charlie
thebastl has quit [Ping timeout: 245 seconds]
<tbuehlmann> charliesome, is the bot code available somewhere for me?
<charliesome> nope
<charliesome> it just uses the eval.in api anyway so it's pretty straight forward
adambeynon has joined #ruby-lang
<yorickpeterse> y u no open sores it
<charliesome> something about security and obscurity
hasimo has quit [Remote host closed the connection]
<charliesome> also it was open source at one point and then i decided that it'd be easier for me if i could just bung the config in the repo so i closed it
<Paradox> cinch+httparty=done
<Paradox> not hard to do
<charliesome> yeah waht Paradox said
<Paradox> charliesome, its a cinchbot?
<charliesome> Paradox: yeah
<Paradox> heh
mbull9 has quit [Remote host closed the connection]
<Paradox> i've played with cinch
<charliesome> cinch is really good
<Paradox> i keep meaning to build a nice full oper bot that does timed bans
<Paradox> but the most ive done is a bot that looks up reddit crap
<Paradox> i started building one with mongo
<Paradox> lost interest
<Paradox> few months later started one with activerecord
<Paradox> attempted to swap to sequel
<Paradox> lost interest
<chekcmate> you need more crazy ideas
mbull9 has joined #ruby-lang
<Paradox> i made a ruby script that slaves computers into a giant pong game screensaver
<chekcmate> eventually it won't get boring
<Paradox> i've got a shitload of shit on my github
<Paradox> but very little of it is relevant
<judofyr> I've got too many projects that I find interesting :(
<charliesome> judofyr: same problem. too many ideas, too little time
<Paradox> https://github.com/paradox460/snoo is the one im most proud of
<chekcmate> haha
<Paradox> i should go through and delete old shit
<chekcmate> 5 lines just came in suddenly
<chekcmate> dat network
<chekcmate> last week
<chekcmate> someone stole 20m of fibre optics
<judofyr> I got lots of empty repos too: https://github.com/judofyr/ufwx
<chekcmate> did you guys experience a lag too?!
<chekcmate> so we couldnt work on production systems
<charliesome> judofyr: these projects have excellent names
<charliesome> this is the most useful thing i have ever written: https://github.com/charliesome/ptydo
<charliesome> i use it all the time
<judofyr> I wrote my own TODO tool for Vim: https://github.com/judofyr/willdo
Wildhoney has joined #ruby-lang
<chekcmate> .
<whitequark> yorickpeterse: well, yes?
chekcmate has quit [Quit: Page closed]
tms has joined #ruby-lang
<charliesome> brb
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
wallclockbuilder has joined #ruby-lang
<apeiros_> zenspider: you do ASM, right?
<yorickpeterse> whitequark: my approach doesn't and using diamondback's approach wouldn't gain me a lot
<apeiros_> or know it a bit at least
<zenspider> fuck me running... this talk is gonna kill me
<zenspider> apeiros_: gah. I try not to
<Paradox> oh yeah
<apeiros_> zenspider: know any good resources for x86-64 ASM?
<Paradox> i wrote a sinatra-powered tea timer
<Paradox> lol
<zenspider> apeiros_: I got nothing for 64
<whitequark> yorickpeterse: discover sed
<yorickpeterse> get out
<whitequark> yorickpeterse: wat?
tms has left #ruby-lang [#ruby-lang]
<whitequark> I've suggested you a way to get thousands of annotations for free
<whitequark> so, I should now "get out"? huh.
mbull9 has quit [Remote host closed the connection]
<yorickpeterse> In the time it takes me to get the source code, figure out where the fuck it all is and write some crazy Bash for it I can do the entire stdlib/core myself
mbull9 has joined #ruby-lang
<whitequark> that's bullshit, but...
* whitequark shrugs
<whitequark> it's your problem not mine
<yorickpeterse> Feel free to prove me wrong
Axsuul has quit [Ping timeout: 240 seconds]
<manveru> apeiros_: i've used http://www.nasm.us/xdoc/2.10.07/html/nasmdo11.html only
<manveru> but not sure what you use
<whitequark> apeiros_: what do you need that for?
<apeiros_> right now I use nothing at all. I'd want it to run on osx.
<apeiros_> whitequark: shits and giggles :)
* apeiros_ probably shouldn't research such stuff at work, but jquery just bored me out
<manveru> nasm works on osx afaik
<whitequark> apeiros_: the simplest way to write asm I know yet is to write LLVM assembly
<whitequark> and then let the thing figure out the details of the platform
huydx has quit [Quit: huydx]
<zenspider> I used nasm to build wilson
<apeiros_> whitequark: llvm assembly looks very different from other assemblies, no?
<zenspider> but that was 32 bit land at the time
<yorickpeterse> assembly in general differs based on the architecture/platform
<whitequark> apeiros_: yes
<apeiros_> yorickpeterse: sure, but most assemblies look very similar. llvm assembly does not.
<whitequark> mostly because it operates 0.5 levels of abstraction higher
<yorickpeterse> ah
havenwood has quit [Remote host closed the connection]
<apeiros_> llvm assembly… I might give it another try. last time I tried 2 different tutorials, and got stuck at the very first examples (which were ought to just run/work)
<apeiros_> oh, afk…
<manveru> hmm, asm with gc does sound weird
<whitequark> manveru: llvm does not have gc
<whitequark> apeiros_: http://pastie.org/6487529
<whitequark> cat >foo.ll; lli-3.2 foo.ll
<manveru> it even has functions
<manveru> with fancy return values and stuff
mbull9 has quit [Remote host closed the connection]
mbull9 has joined #ruby-lang
<whitequark> manveru: (functions) yes, it abstracts the details of the ABI of target platform
<whitequark> (gc) LLVM does not include any garbage collectors
<whitequark> it is a facility for a compiler plugin to step in and store the stack roots in some kind of structure
<manveru> yeah, but i assume GCs exist for it :)
<whitequark> manveru: well, GCs exist not for LLVM, but for languages compiled via LLVM
<whitequark> there is no "generic LLVM GC", and there could not be
jxie has quit [Ping timeout: 272 seconds]
jxie has joined #ruby-lang
<zenspider> 110 slides in 30 minutes... NO FUCKING PROBLEM
root___ has joined #ruby-lang
<rking> zenspider: What's the topic?
<zenspider> writing an interpreter
alessio_rocco has quit [Ping timeout: 260 seconds]
alessio_rocco has joined #ruby-lang
simi has joined #ruby-lang
mbull9 has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
barttenbrinke has joined #ruby-lang
sepp2k has joined #ruby-lang
dr_bob has quit [Ping timeout: 272 seconds]
wallclockbuilder has quit [Remote host closed the connection]
fire has joined #ruby-lang
root___ has left #ruby-lang [#ruby-lang]
jayne_ is now known as jayne
<ddfreyne> zenspider: I did 110 slides in 15 minutes once
<ddfreyne> Beat that!
<ddfreyne> I'm also not going to repeat that performance
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
<zenspider> ddfreyne: yeah... but my slides have CONTENT :P
<injekt> mornin'
<apeiros_> ddfreyne: "ah, this, ignore this, oh, this one too, and this one as well, …" :)
<zenspider> I did 117 in 45 for my ruby sadism talk...
Guu has left #ruby-lang [#ruby-lang]
<zenspider> but that was very takahashiesque
antbody has joined #ruby-lang
Wildhoney has quit [Ping timeout: 264 seconds]
<antbody> zenspider: Will the slides be public? Would be sweet to read them.
Wildhoney has joined #ruby-lang
Demux has quit [Ping timeout: 240 seconds]
<ddfreyne> zenspider: Yeah, same... I was pretty exhausted after those 15 minutes!
hasimo has joined #ruby-lang
Demux has joined #ruby-lang
fullybaked has joined #ruby-lang
xcombelle has joined #ruby-lang
<zenspider> antbody: yeah. I publish all my slides and link to recordings
<zenspider> 84 in 30 min...
<zenspider> oh hell... my last cascadia talk was 112 slides too. this will be a cinch
fullybaked has left #ruby-lang [#ruby-lang]
hasimo has quit [Ping timeout: 256 seconds]
Wildhoney has quit [Ping timeout: 255 seconds]
Wildhoney has joined #ruby-lang
sush24 has joined #ruby-lang
dr_bob has joined #ruby-lang
francisfish has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 256 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
Domon has quit [Remote host closed the connection]
tbuehlmann has quit [Quit: Quitting.]
toretore has joined #ruby-lang
voker57 has quit [Read error: Operation timed out]
<ddfreyne> zenspider: http://zenspider.com/presentations/lightning_talks.html has no links to anything -- is this intended?
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
barttenbrinke has quit [Remote host closed the connection]
beiter has joined #ruby-lang
<zenspider> ddfreyne: no. I should fix that
Wildhoney has quit []
alessio_rocco has quit [Ping timeout: 256 seconds]
alessio_rocco has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
cultureulterior has joined #ruby-lang
nkr has joined #ruby-lang
realDAB has joined #ruby-lang
kith_ is now known as kith
lcdhoffman has quit [Quit: lcdhoffman]
maxmanders has quit [Ping timeout: 256 seconds]
joe212 has quit [Quit: Sto andando via]
<antbody> zenspider: You should do it University style, first 20 slides you go through with great detail. Then mumble something random and skip the last 80 slides in 5 minutes.
<antbody> Then ask "any questions?" while you walk out of the door.
david1 has joined #ruby-lang
david1 has left #ruby-lang [#ruby-lang]
david3 has joined #ruby-lang
david3 has left #ruby-lang [#ruby-lang]
simi has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
retro|cz has joined #ruby-lang
maxmanders has joined #ruby-lang
Honeycomb has quit [Quit: Leaving.]
charliesome has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
cultureulterior has quit [Ping timeout: 260 seconds]
fsvehla has joined #ruby-lang
Stilo has joined #ruby-lang
Bwild has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
alessio_rocco has quit [Ping timeout: 255 seconds]
Cherrum has quit [Read error: Connection reset by peer]
Cherrum has joined #ruby-lang
alessio_rocco has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
_whitelogger has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tonni_ has joined #ruby-lang
Bwild has joined #ruby-lang
GarethAdams has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
martynas has joined #ruby-lang
srbaker has joined #ruby-lang
martynas is now known as Guest34045
Guest34045 has left #ruby-lang [#ruby-lang]
kgrz has joined #ruby-lang
Bwild has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
Bwild has joined #ruby-lang
dhruvasagar has joined #ruby-lang
stardiviner has joined #ruby-lang
banisterfiend has joined #ruby-lang
realDAB has quit [Quit: realDAB]
cultureulterior_ has quit [Ping timeout: 264 seconds]
chekcmate has joined #ruby-lang
barttenbrinke has joined #ruby-lang
<chekcmate> why do I get a SSL error, although I edited the gem source? :(
<injekt> chekcmate: what?
<chekcmate> I started to take a look at rails
<chekcmate> installed ruby 1.9.3 on a fresh machine
<chekcmate> and followed the steps to get rails
<chekcmate> no problems until rails new *name*
<injekt> what's your gem -v
<chekcmate> 2.0.3
<injekt> and bundle --version?
barttenbrinke has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Remote host closed the connection]
<chekcmate> "Fetching source index from https://rubygems.org/ <= I edited this with gem source -a http://rubygems.org/ & -r https://rubygems.org/
<injekt> source is specified in the gemfile too, is that http ?
<chekcmate> hu? gem source is not enough?
cultureulterior has joined #ruby-lang
<injekt> bundler will use the source in the gemfile
<injekt> that's the point in bundler, to use what you tell it to in the gemfile
<chekcmate> gem env says :sources => [:"http://rubygems.org/"]
<injekt> uh
<injekt> dude, gemfile
<injekt> if it says https in your gemfile, it's gonna use https to install gems
<injekt> (in that bundle)
<chekcmate> alright
<chekcmate> got that changed
<injekt> now bundle install should work ok
<injekt> im pretty sure all that got fixed though, I dont need to do it anymore
<injekt> on Bundler version 1.3.1
<chekcmate> works :)
<chekcmate> or not...
<chekcmate> forgot a char
<chekcmate> thanks imn
<chekcmate> injekt:
jxie has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
benlovell has quit [Quit: Computer has gone to sleep.]
<darix> chekcmate: 1. what SSL error exactly? 2. if you have all the gem installed in system rails new --skip-bundle
srbaker has joined #ruby-lang
<chekcmate> darix: Could not verify the SSL certificate for https://rubygems.org/.
wmoxam has joined #ruby-lang
srbaker has quit [Client Quit]
<chekcmate> There is a chance you are experiencing a mitm attack, but most likely your system doesn't have the CA certs needed for ver. For inf about oSSL certs, see bit.ly/ssl-certs. To connect without using SSL, edit your Gemfile sourches and change 'https' to 'http'.
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
banisterfiend has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<chekcmate> also got to install a JS runtime, right?
<chekcmate> does it matter for starters which of them?
<whitequark> no
<chekcmate> hu? but rake complains about not having one
kgrz has quit [Ping timeout: 260 seconds]
<chekcmate> whitequark: your "no" was for the first or second question? heh
<chekcmate> second one I guess
<yorickpeterse> One a Cold Thursday Afternoon
<yorickpeterse> GitHub is acting stupid
<yorickpeterse> Yorick quietly weeps in the corner
<yorickpeterse> it seems that every odd `git clone` it fails
|Vargas| has quit [Ping timeout: 252 seconds]
realDAB has joined #ruby-lang
<whitequark> yorickpeterse: that's not 5-7-5 :/
scampbell has joined #ruby-lang
<yorickpeterse> Ah shit that's right
<yorickpeterse> let me fix that
<yorickpeterse> On a cold Thursday afternoon
<yorickpeterse> GitHub is acting like a fucking cunt
<yorickpeterse> Yorick is terrible at Haiku
carloslopes has joined #ruby-lang
<injekt> that is a long 5
marr has joined #ruby-lang
sailias has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has quit [Remote host closed the connection]
cultureulterior_ has joined #ruby-lang
banisterfiend is now known as banisterpig
<injekt> heh
tomzx_mac has joined #ruby-lang
<injekt> I thought we were doing 5-7-5
kgrz has joined #ruby-lang
cultureulterior has quit [Ping timeout: 272 seconds]
<zzak> i dont get chruby
benlovell has joined #ruby-lang
<injekt> zzak: why not?
<yorickpeterse> injekt: it's too simple
<zzak> i installed it, and it built, but i dont know how to use it
<zzak> also, i still have rvm
<yorickpeterse> zzak: did you add the required `source` line to your bashrc file?
<injekt> yorickpeterse: that's why I like it
<yorickpeterse> and make sure RVM is gone
<yorickpeterse> injekt: /sarcasm
<zzak> oh ok
<yorickpeterse> zzak: you're looking for this, hold on:
<zzak> im not ready to get rid of rvm tho
<injekt> zzak: RUBIES=~/.rvm/rubies/*
<injekt> you dont need to
<yorickpeterse> source /usr/share/chruby/chruby.sh # path may differ
<yorickpeterse> injekt: you'll want to implode rvm
<injekt> nope
<injekt> why?
<zzak> cant i just do rvm system?
JoelMcCracken has quit [Ping timeout: 252 seconds]
<injekt> his rubies are built in .rvm/rubies
<yorickpeterse> injekt: doesn't that conflict?
<injekt> yorickpeterse: not if you dont load rvm
<injekt> that's what I meant
<yorickpeterse> also, make sure RUBIES is set *after* sourcing the files, I got some weird syntax bullshit in Tmux without doing that
<yorickpeterse> injekt: aah
<zzak> so remove it from bashrc?
<whitequark> injekt: well it depends on how you count. I couldn't do better than that though
sebasoga has joined #ruby-lang
<injekt> whitequark: depends how you count? wut?
<injekt> zzak: yup
<zzak> how do i install more rubies?
vlad_starkov has joined #ruby-lang
<injekt> build them yourself or use ruby-build, chruby isnt built for that
<yorickpeterse> http://pastebin.com/raw.php?i=BmLKX88m le bashrc
<yorickpeterse> And yeah, I use ruby-build for that
<whitequark> injekt: because it's not 5-7-5 _syllables_
<zzak> i dont have /usr/sharechruby/chruby.sh :(
<whitequark> injekt: essentially that's 5-7-5 kana characters, but they don't really map to english
<yorickpeterse> zzak: path may be different, how did you install it?
<yorickpeterse> If you installed it from source I believe it's at /usr/local/share instead
<zzak> yorickpeterse: from the readme
<zzak> yup
<injekt> whitequark: right, a haiku is between 10-14 syllables, yours is still a haiku i was commenting on it not being 5-7-5 is all
charliesome has quit [Ping timeout: 252 seconds]
<zzak> so i can still use the rubies installed by rvm?
<injekt> (in english characters)
<injekt> zzak: yup
<yorickpeterse> asdhjajksdhjks Github
<yorickpeterse> or maybe it's my internet
<injekt> works ok for me
voker57 has quit [Ping timeout: 264 seconds]
ryland has quit [Quit: Lost terminal]
vlad_starkov has quit [Ping timeout: 256 seconds]
alessio_rocco has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
martynas has joined #ruby-lang
martynas is now known as Guest91202
voker57 has joined #ruby-lang
Guest91202 has quit [Client Quit]
devoper has joined #ruby-lang
<zzak> cool
<zzak> still breaks rdoc :(
randallagordon has joined #ruby-lang
breakingthings has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
alessio_rocco has quit [Ping timeout: 256 seconds]
alessio_rocco has joined #ruby-lang
GarethAdams|Work has joined #ruby-lang
rsl has joined #ruby-lang
barttenbrinke has joined #ruby-lang
GarethAdams|Work has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 252 seconds]
kurko__ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
GarethAdams has quit [Ping timeout: 264 seconds]
GarethAdams has joined #ruby-lang
<injekt> zzak: how so?
dustint has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
kgrz has joined #ruby-lang
kgrz has quit [Client Quit]
_carloslopes has joined #ruby-lang
carloslopes has quit [Ping timeout: 272 seconds]
joe212 has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
psycho_one has joined #ruby-lang
xcombelle has joined #ruby-lang
publicvoid_ has quit [Remote host closed the connection]
chrismar035 has joined #ruby-lang
banisterpig has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
chekcmate has quit [Quit: Page closed]
alessio_rocco has quit [Ping timeout: 240 seconds]
alessio_rocco has joined #ruby-lang
forrest has joined #ruby-lang
cultureulterior has joined #ruby-lang
davidbalbert is now known as davidbalber|away
mbull9 has joined #ruby-lang
cultureulterior_ has quit [Ping timeout: 252 seconds]
sockmonk has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
Stilo has joined #ruby-lang
sush24 has joined #ruby-lang
<sockmonk> something going on with rubygems.org? I'm getting a lot of 'too many connection resets' errors trying to install rdoc
outoftime has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 272 seconds]
beiter has quit [Quit: beiter]
<zzak> sockmonk: http://status.rubygems.org/ and #rubygems
<sockmonk> zzak: thanks for the link
cstrahan has joined #ruby-lang
__Big0__ has joined #ruby-lang
cstrahan_ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
yfeldblum has quit [Ping timeout: 272 seconds]
cstrahan_ has quit [Client Quit]
cultureulterior_ has joined #ruby-lang
cultureulterior has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
cupakromer has joined #ruby-lang
sarclops__ has joined #ruby-lang
cultureulterior_ has quit [Ping timeout: 240 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
davidbalbert is now known as davidbalber|away
jmeeuwen has joined #ruby-lang
davidbalber|away is now known as davidbalbert
<blowmage> zenspider: not kill you, make you stronger :)
davidbalbert is now known as davidbalber|away
ddd has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
alessio_rocco has quit [Ping timeout: 252 seconds]
<zzak> how do i add more rubies? :(
alessio_rocco has joined #ruby-lang
gustavnils has joined #ruby-lang
sush24 has quit [Ping timeout: 245 seconds]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
<zzak> i think "ruby" should be 2.1.0-dev
<zzak> but "chruby ruby" sends me to p385
sush24 has joined #ruby-lang
ddd has joined #ruby-lang
<injekt> eh you called it 'ruby' eh :D
<injekt> you should include the version
<injekt> iirc chruby 'ruby' will just select the first ruby* match
noop has quit [Remote host closed the connection]
<injekt> surely rvm doesn't call the latest ruby download 'ruby' :/
<injekt> with no version suffix
<zzak> yeah
<injekt> well shit
<zzak> i need to build trunk with a prefix or something
<injekt> that's f'ed up
<zzak> no its not rvm
<injekt> oh
<zzak> i built trunk and installed it myself to /usr/local
<injekt> you built it yourself? yeah you need a suffix or something
<zzak> but what do i do about the existing one?
<injekt> rm -rf
<zzak> :/
<injekt> if its built, the paths will be messed up if you change it
<zzak> what do i remove tho
<zzak> surely /usr/local/bin/ruby wasn't the only thing make install setup
datanoise has joined #ruby-lang
yfeldblum has joined #ruby-lang
wyhaines has joined #ruby-lang
<zzak> whereis helps
<judofyr> I've done `ln -s ruby-1.9.3-p362 %1.9.3`
GarethAdams has quit [Quit: Leaving...]
<judofyr> % sorts first
realDAB has quit [Quit: realDAB]
<judofyr> so `chruby 1.9.3` matches that first
blowmage has quit [Quit: Coyote finally caught me]
bzalasky has joined #ruby-lang
blowmage has joined #ruby-lang
<injekt> judofyr: that would work anyway
<injekt> unless there's other patch versions installed
realDAB has joined #ruby-lang
<judofyr> injekt: exactly :)
<injekt> heh :)
<injekt> but yeah good idea on the symlink
GarethAdams has joined #ruby-lang
<zzak> the heck
<injekt> :D
rontec76 has joined #ruby-lang
<zzak> why does it append bin/ruby?
<injekt> RUBIES should contain directories of ruby versions, so chruby will append /bin/ruby to it I guess
<injekt> you couldn't just provide it with the path to the executable
<zzak> $ echo $RUBIES
<zzak> /home/zzak/.rvm/rubies/default
<zzak> $ RUBIES=/usr/local/bin/ruby-trunk chruby ruby-trunk
<zzak> chruby: /usr/local/bin/ruby-trunk/bin/ruby not executable
<zzak> oh
<injekt> ya
<zzak> so i need to make a folder in /usr/local/bin?
blowmage has quit [Quit: Coyote finally caught me]
blowmage has joined #ruby-lang
<injekt> zzak: why dont you just build ruby into ~/.rvm/rubies with the rest of them
glebm has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
Guest85414 has quit [Read error: Operation timed out]
Muz has quit [Read error: Operation timed out]
valeri_ufo has quit [Read error: Connection reset by peer]
sheerun has quit [Read error: Operation timed out]
valeri_ufo has joined #ruby-lang
sailias has quit [Quit: Leaving.]
sheerun has joined #ruby-lang
blowmage has quit [Client Quit]
sailias has joined #ruby-lang
<zzak> ill try that
Muz has joined #ruby-lang
blowmage has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 245 seconds]
alessio_rocco has joined #ruby-lang
miquella has joined #ruby-lang
davidbalber|away is now known as davidbalbert
mbull9 has quit [Remote host closed the connection]
nazty has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
tbuehlmann has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
chrismar035 has quit [Remote host closed the connection]
marr has quit [Ping timeout: 260 seconds]
<zzak> injekt: <3
<zzak> ../configure --prefix=$HOME/.rvm/rubies/ruby-trunk
<zzak> make && make install
<zzak> source ~/.bashrc
<zzak> chruby ruby-trunk
<zzak> ruby --version
<zzak> ruby 2.1.0dev (2013-03-14 trunk 39754) [x86_64-linux]
<injekt> woop!
devoper has quit [Quit: Leaving]
bzalasky has quit [Remote host closed the connection]
<injekt> whitequark: hey, any idea how to do string concat stuff in arel? something I've found sequel to also be nicer with
rockpapergoat has joined #ruby-lang
jonahR has joined #ruby-lang
<injekt> meh I went with sql literals, and it sucks https://gist.github.com/injekt/2b985eb4623d5e75bed0
<zzak> does rvm implode kill ~/.rvm/rubies?
<injekt> zzak: yes
<injekt> rvm implode kills ~/.rvm
<injekt> when I last checked, anyway
<zzak> so much killing
<zzak> sweet, looks like im setting up ruby-build
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
anonymuse has joined #ruby-lang
<matti> zzak: zzak zzak
<matti> :)
<matti> zzak: rbenv is less intrusive than rvm.
realDAB has quit [Quit: realDAB]
bzalasky has joined #ruby-lang
<injekt> ugh shims
cupakromer has left #ruby-lang [#ruby-lang]
<zzak> im using standalone
bzalasky has quit [Remote host closed the connection]
* zzak went from In a relationship to Its complicated
<whitequark> injekt: sec
alessio_rocco has quit [Read error: Operation timed out]
noop has joined #ruby-lang
<injekt> https://gist.github.com/injekt/2b985eb4623d5e75bed0 starting to look pretty eh?
<whitequark> injket looks like this: https://gist.github.com/whitequark/5162586
<whitequark> I'm going to submit this as a PR now
alessio_rocco has joined #ruby-lang
<injekt> whitequark: nice :)
<matti> zzak: Well done on 2.0!
* matti hugs zzak
judofyr has quit [Remote host closed the connection]
barttenbrinke has quit [Remote host closed the connection]
rockpapergoat has quit [Remote host closed the connection]
Qfwfq has quit [Ping timeout: 264 seconds]
rockpapergoat has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
Qfwfq has joined #ruby-lang
<zzak> matti: :D
<zzak> <33
rue_XIV has quit [Remote host closed the connection]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
rue has joined #ruby-lang
Stilo has joined #ruby-lang
bzalasky has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 264 seconds]
alessio_rocco has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
retro|cz is now known as simi
nXqd has quit [Ping timeout: 245 seconds]
sebasoga has quit [Ping timeout: 260 seconds]
nXqd has joined #ruby-lang
mbull9 has joined #ruby-lang
<whitequark> injekt: roflrejected
<injekt> hah
sebasoga has joined #ruby-lang
amerine has joined #ruby-lang
<zzak> needs a test
benlovell has quit [Quit: Computer has gone to sleep.]
<injekt> LOLMYSQL
forrest has quit [Quit: Leaving]
_carloslopes has quit [Remote host closed the connection]
mytrile_ has quit [Remote host closed the connection]
<yorickpeterse> MyFirstSQL
tylersmith has joined #ruby-lang
<whitequark> someone
<whitequark> suggest me a code golf way to insert an element inside a 2-element array?
<whitequark> ie [x,y] ??? p # => [x,p,y]
beho has quit [Ping timeout: 260 seconds]
<zzak> [x,y] + [y]
<whitequark> zzak: hm?
<whitequark> [1,3] + [2] # => [1,3,2]
<whitequark> and I need [1,2,3]
<zzak> ([1,3] + [2]).sort
<breakingthings> arbitrary order
<breakingthings> he needs to insert inbetween
joe212 has quit [Quit: Sto andando via]
<breakingthings> [1,3] => [1,5,3]
<whitequark> ^
<whitequark> actually nevermind
<whitequark> qsort in 4 lines of ruby:
<whitequark> qsort = ->((p, *r)) do l, g = r.partition { |e| e <= p }.map(&qsort) if r.any? [*l, p, *g] if p
<whitequark> end
<whitequark> erm, the paste is wrong...
<breakingthings> well
<breakingthings> there's Array.insert, isn't there?
<zzak> sure, i was just starting from the easiest solution
realDAB has joined #ruby-lang
<breakingthings> >>a=['x','y']; a.insert(1, 'p');
<eval-in> breakingthings => ["x", "p", "y"] (http://eval.in/12714)
<whitequark> breakingthings: cool, that would actually work
<breakingthings> :)
sarclops_ has joined #ruby-lang
<zzak> you could do something with printf and split
<whitequark> actually I think this is the best I could do: http://pastie.org/6495031
sarclops__ has quit [Ping timeout: 252 seconds]
eam_ has left #ruby-lang [#ruby-lang]
<breakingthings> Strangely, insert appears to modify in place.
<breakingthings> no bang version.
snarfmason has joined #ruby-lang
<whitequark> breakingthings: yeah, insert does that
eam has joined #ruby-lang
<whitequark> I'm not sure what is the value of non-bang version.
<whitequark> it's not Erlang.
<apeiros_> whitequark: unless r.empty? # more proper than r.any?
<realDAB> breakingthings: a lot of non-bang methods modify their receivers
* breakingthings shrugs
<breakingthings> Yeah, I've heard.
<apeiros_> should not matter for this use-case. but empty? and any? differ e.g. on [false, nil]
<whitequark> apeiros_: oh you're right
<whitequark> actually Rails present? could be in stdlib...
<realDAB> a classic, if i say so myself :-)
* realDAB really should get back to blogging, having had a two-year hiatus
jxie has joined #ruby-lang
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
alessio_rocco has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 246 seconds]
fire has quit [Ping timeout: 264 seconds]
jmeeuwen__ has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
dr_bob has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
fire has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
nXqd has quit [Ping timeout: 245 seconds]
marr has joined #ruby-lang
breakingthings has quit []
beho has joined #ruby-lang
headius has joined #ruby-lang
kgrz has joined #ruby-lang
yankeefan04 has joined #ruby-lang
simi has quit [Ping timeout: 276 seconds]
barttenbrinke has joined #ruby-lang
sarclops__ has joined #ruby-lang
yankeefan04 has quit [Remote host closed the connection]
sarclops_ has quit [Read error: No route to host]
barttenbrinke has quit [Ping timeout: 258 seconds]
meizaps_ has quit [Ping timeout: 258 seconds]
yankeefan04 has joined #ruby-lang
dr_bob has joined #ruby-lang
rippa has joined #ruby-lang
meizaps has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
Guest85414 has joined #ruby-lang
dustint has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby-lang
realDAB has quit [Quit: realDAB]
wattsinabox has joined #ruby-lang
sarclops__ has quit [Quit: sarclops__]
sarclops_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
jigfox has quit [Quit: jigfox]
sarclops_ has quit [Client Quit]
beho has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
psycho_o_ has joined #ruby-lang
psycho_one has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
glebm has quit [Ping timeout: 246 seconds]
glebm has joined #ruby-lang
noop has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
psycho_o_ has quit [Ping timeout: 276 seconds]
wattsinabox has quit [Quit: wattsinabox]
bgcoup has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby-lang
lightcap has joined #ruby-lang
tonni_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
devoper has joined #ruby-lang
s1n4 has joined #ruby-lang
psycho_one has joined #ruby-lang
rockpapergoat has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
apeiros_ has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
psycho_o_ has joined #ruby-lang
psycho_one has quit [Ping timeout: 276 seconds]
pepper_chico has quit [Quit: Computer has gone to sleep.]
barttenbrinke has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
breakingthings has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
dustint has joined #ruby-lang
carloslopes has joined #ruby-lang
__butch__ has joined #ruby-lang
Stilo has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
tenderlove has joined #ruby-lang
ryanf has joined #ruby-lang
mistym is now known as mistym_lunch
glebm has quit [Quit: Computer has gone to sleep.]
barttenbrinke has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 240 seconds]
davidbalbert is now known as davidbalber|away
s1n4 has quit [Quit: leaving]
s1n4 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
MehLaptop has joined #ruby-lang
yankeefan04 has quit [Remote host closed the connection]
<MartynKeigher> hey all
<MartynKeigher> I'm adding an rb file to my Thin app and I'm getting a syntax error. any ideas?
yankeefan04 has joined #ruby-lang
<MartynKeigher> i can run sudo start thin & stop thin just fine, but when i run dashing start, then it fails with error msg
<breakingthings> You probably have a syntax error.
* breakingthings escorts himself out
<MartynKeigher> lol
<MartynKeigher> but i did this on server, and it worked fine…and I'm having issues on second one
droptone_ has joined #ruby-lang
<MartynKeigher> typically…its working on test server, it fails on live
<breakingthings> any trace?
<MartynKeigher> how do u mean?
yankeefan04 has quit [Remote host closed the connection]
<breakingthings> stack trace? error logging?
<droptone_> I have a question, that might be fairly basic, as I'm relatively new to Ruby but am currently at exercise 45 on "Learn Ruby the Hard Way". I am trying to set a function inside of a Module (located in a seperate file from the main file, included with the require statement) so that it returns an array, and while it works fine when I execute the file on its own, when I reference it from within the main ruby file and attempt to execute the function, I g
<droptone_> This is in regards a little game I'm creating to complete this exercise.
<droptone_> Here's the "enemies.rb" file, which works fine on its own: http://pastebin.com/YMxLzgz9
realDAB has quit [Quit: realDAB]
<whitequark> droptone_: your first message was truncated by irc
<whitequark> after "attempt to execute the function, I g"
<droptone_> oh, sorry
<droptone_> I get "unknown variable" errors.
jigfox has joined #ruby-lang
wobblini has joined #ruby-lang
<droptone_> here's the main file, which calls the function within the enemies.rb file: http://pastebin.com/2d2ekPYj
<droptone_> and here's the error I get when I try to execute the main file:
<droptone_> enemies.rb:22:in `block in getEnemies': undefined local variable or method `enemy_array' for EnemyModule:Module (NameError) from /home/vic/projects/ruby_adventure/lib/enemies.rb:22:in `each_line'
<droptone_> from /home/vic/projects/ruby_adventure/lib/enemies.rb:22:in `getEnemies'
<droptone_> from ./ruby_adventure.rb:10:in `<main>'
<droptone_> I don't get this error if I execute enemies.rb on its own, it works fine, and I've tested that its working properly by printing each array element
<droptone_> I've been googling everywhere, and I don't understand why this variable would fail. I've tried adding @ to the variable name to make it part of the module, no luck.
<droptone_> normally I'm on the nick "droptone" but my password to verify it is on a spreadsheet on a computer at home, so I'm on this alternate nick for now.
forrest has joined #ruby-lang
<breakingthings> droptone_: looks like enemies.each_line isn't running at least 1 time, therefore enemy_array doesn't exist when it gets to enemy_array.each
<breakingthings> at a glance, anyway.
<breakingthings> which makes sense given allEnemies=[]; in main
<breakingthings> wait that doesn't have to do with it
<breakingthings> i'm drank
<breakingthings> the rest of it though makes sense I think.
dustint has quit [Remote host closed the connection]
<droptone_> hmm, ok
dustint has joined #ruby-lang
<breakingthings> droptone_: you could probably solve this problem by instantiating that as an empty array before the block
<breakingthings> (you might want to do that for allEnemies too)
<droptone_> I tried that, I got the same error
<droptone_> I'll try again
<droptone_> bearing in mind that this works fine when I execute enemies.rb on its own
<droptone_> it only returns this exception when I execute the main file, which calls EnemyModule.getEnemies
<breakingthings> right
<breakingthings> I'm thinking it might be that 'open' call
<breakingthings> perhaps ENEMY_URL isn't working from main for some reason
<breakingthings> is it a relative path from enemies.rb?
wizonesolutions has quit [Ping timeout: 260 seconds]
<droptone_> no, all that works
<droptone_> enemies.rb, when executed on its own, works fine
marr has quit [Ping timeout: 246 seconds]
<breakingthings> Right, but that's what I'm saying
<breakingthings> enemies.rb executed works, but if say ENEMY_URL was a relative path from enemies.rb, and main.rb is in another location, that would presumably break it.
* breakingthings is not an expert, but he figures a hunch is better than nothing
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Changing host]
wizonesolutions has joined #ruby-lang
<droptone_> yeah, that's all fine, thank you though.
<droptone_> and declaring the variables outside of the block didn't help either.
miquella has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
miquella has joined #ruby-lang
<breakingthings> droptone_: what exactly did you do?
jmeeuwen__ has quit [Quit: Caught sigterm, terminating...]
<breakingthings> enemy_array = []; enemies.each_line {…}; allEnemies = []; enemy_array.each { … }; yeah?
<breakingthings> and it still gave the same exact 'block in getEnemies': undefined 'enemy_array' error?
yankeefan04 has joined #ruby-lang
<droptone_> I tried placing the variable decleration first outisde of the method, but still within the module, then I tried placing the variable decleration outside of the module itself
<breakingthings> no, inside the method
<breakingthings> like this… sec
<droptone_> yes, for enemy_array and allEnemies
<breakingthings> like taht
<breakingthings> that*
<breakingthings> L#17 and L#20
<droptone_> I'll be damned, that did it
<droptone_> the variable declerations need to be within the method
<droptone_> thank you, very nice
<breakingthings> yeah
sockmonk has quit [Quit: meeting]
vlad_starkov has quit [Remote host closed the connection]
<breakingthings> basically, because open(ENEMY_URL) wasn't pulling anything back, enemies.each_line never ran to create enemy_array
<breakingthings> ruby's smart and auto-instantiated enemy_array when you called array#push
davidbalber|away is now known as davidbalbert
<breakingthings> but if it never ran #push, it never instantiated enemy_array
<breakingthings> :)
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
devoper has quit [Remote host closed the connection]
nkr has quit [Ping timeout: 245 seconds]
<breakingthings> I'm not too sure how it managed to instantiate it inside the block, that's some magic right there, but that seems to be what it was doing.
jmeeuwen__ has joined #ruby-lang
dustint has quit [Remote host closed the connection]
<breakingthings> Actually, I'm entirely not sure how running it on it's own worked :P
<breakingthings> Some magic happened there that I'm not aware of.
<breakingthings> oh… I think I know
<breakingthings> Yeah, must be because it was defined in the module, but you weren't adding the module you were just calling it's function.
<breakingthings> if you had a class and extended the module or something it would have worked fine.
* breakingthings goes back to stumbling around in the dark with other things
<droptone_> lol
<droptone_> is p just shorthand for puts?
<breakingthings> no
dustint has joined #ruby-lang
<droptone_> oh, ok
thone_ has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
dustint has quit [Client Quit]
dustint has joined #ruby-lang
thone has quit [Ping timeout: 255 seconds]
wobblini has quit [Ping timeout: 255 seconds]
tenderlove has quit [Remote host closed the connection]
yankeefan04 has quit [Remote host closed the connection]
yxhuvud has joined #ruby-lang
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
sepp2k has quit [Quit: Leaving.]
yxhuvud2 has quit [Ping timeout: 256 seconds]
MehLaptop has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
glebm has joined #ruby-lang
cupakromer has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
xcombelle has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
mistym_lunch is now known as mistym
barttenbrinke has quit [Ping timeout: 255 seconds]
ohsix has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby-lang
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby-lang
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
amateurhuman has quit [Quit: IRCRelay - http://ircrelay.com]
amateurhuman has joined #ruby-lang
benanne has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
wobblini has joined #ruby-lang
maxmanders has joined #ruby-lang
justinseiter has joined #ruby-lang
bradland has joined #ruby-lang
bradland has quit [Client Quit]
bradland has joined #ruby-lang
adambeynon has joined #ruby-lang
psycho_o_ has quit [Remote host closed the connection]
pepper_chico has quit [Quit: Computer has gone to sleep.]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
Wildhoney has joined #ruby-lang
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
devoper has joined #ruby-lang
mbull9 has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
marr has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
bluepojo has joined #ruby-lang
io_syl has quit [Ping timeout: 276 seconds]
yxhuvud2 has joined #ruby-lang
io_syl has joined #ruby-lang
yxhuvud has quit [Ping timeout: 245 seconds]
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
justinseiter has quit [Quit: Leaving]
tenderlove has joined #ruby-lang
agile has quit [Ping timeout: 240 seconds]
<droptone_> I cannot get this to work.
amdprophet has left #ruby-lang [#ruby-lang]
francisfish has quit [Ping timeout: 255 seconds]
bawigga has joined #ruby-lang
<bawigga> What's the difference between method_defined? and respond_to?
<bawigga> From my understanding, messages get passed to objects. When the object receives a message it attempts to respond with a method. Is that correct?
<apeiros_> bawigga: you check a class for wether an *instance* method is defined
<apeiros_> you check an object, whether it itself responds to a method
<apeiros_> i.e., String.method_defined? :gsub
<apeiros_> "some string".respond_to? :gsub
<apeiros_> (which is why the former is Module#method_defined?, and the latter Object#respond_to?)
Nisstyre-laptop has joined #ruby-lang
<bawigga> so it's simply the difference between class methods and instance methods?
<apeiros_> no
io_syl has quit [Ping timeout: 252 seconds]
<apeiros_> it's the difference between asking the implementing class and the concrete object
<apeiros_> String.respond_to? :new
workmad3 has joined #ruby-lang
<apeiros_> classes are objects too, they respond to methods as well (class methods)
<bawigga> ohhh right
<yorickpeterse> andrewvos: holy shit, you're actually Richard Hammond?
<bawigga> ok think i got it
<bawigga> apeiros_: thanks for the explanation
<yorickpeterse> andrewvos: that joke went into *puts on sunglasses* top gear
<yorickpeterse> YEAAAAAAHHHH
bradland has quit [Quit: bradland]
<droptone_> in this code here: http://pastebin.com/by54qZSf
io_syl has joined #ruby-lang
<droptone_> the statement allEnemies.each { |x| puts x }, which is there only to test
<droptone_> it prints out a series of statements like this:
<droptone_> #<EnemyClass:0x00000000a919b0>
<apeiros_> `p allEnemies`, or `p *allEnemies`
<apeiros_> more useful for inspection of data
<apeiros_> (since you say "only to test")
<droptone_> ok
<droptone_> so I should replace the statement allEnemies.each { |x| puts x }
<droptone_> with
<droptone_> p allEnemies
<droptone_> ?
<apeiros_> yes. or p *allEnemies, if you prefer the enemies to be on separate lines
<droptone_> allEnemies is an array of EnemyClass objects
<droptone_> ok
<apeiros_> ruby convention is all_enemies, btw.
<droptone_> for an array, ok
<apeiros_> no, for all naming (except constants/classes)
<apeiros_> we use snake_case rather than camelCase
<droptone_> gotcha
<droptone_> so, it's working successfuly, but the question I have now is, I've presumably created an array of all_enemies, which is an array of EnemyClass objects
<droptone_> and when I use your recommended p* statement, which works great
<droptone_> I see output such as the following
<droptone_> #<EnemyClass:0x00000001dea2f0 @id="0", @name="Gremlin", @attack="5", @defense="1", @hp="5\n">
<droptone_> #<EnemyClass:0x00000001dea160 @id="1", @name="Evil Cat", @attack="6", @defense="2", @hp="7\n">
<droptone_> and this goes on.
<matti> Evil Cat
<matti> ;]
<droptone_> how do I reference the individual array elements, like all_enemies[0].name?
<droptone_> hah, yes, it's for a game I'm making to complete exercise 45 on "learn ruby the hard way"
<droptone_> just a little text-based game
<droptone_> anyway
<matti> You need:
Nisstyre-laptop has quit [Quit: Leaving]
<matti> #<EnemyClass:0x00000001dea160 @id="666", @name="Sysadmin", @attack="999", @defense="4096", @hp="65535\n">
<matti> MAke it a boss class.
<matti> ;d
<droptone_> what?
<droptone_> ok
<matti> Just being silly.
<droptone_> ya, gotcha
<droptone_> any idea how I reference the individual array elements, in the manner described?
cupakromer has left #ruby-lang [#ruby-lang]
<droptone_> all_enemies is an array of EnemyClass objects, with those parameters set
<droptone_> I mean, surely I don't have to use that entire hex memory address
carloslopes has quit [Remote host closed the connection]
<droptone_> that would be nutty
ohsix has joined #ruby-lang
wmoxam has quit [Ping timeout: 260 seconds]
<apeiros_> droptone_: no, you don't have to use it
<apeiros_> it's just part of the standard Object#inspect output
<apeiros_> you can redefine #inspect in your EnemyClass to change how p prints your objects
rontec76 has quit [Remote host closed the connection]
<apeiros_> you can redefine #to_s in your EnemyClass to change how puts prints your objects
<droptone_> gotcha
<apeiros_> (puts -> to_s, p -> inspect - former is more for end-users, latter for devs to, well, inspect stuff)
<droptone_> but, having said that, I could do puts "#{all_enemies[0].name}" and it should print the name parameter of index 0 of the array?
brianpWins has quit [Quit: brianpWins]
<apeiros_> with the code you've given - no
<apeiros_> you need to provide an accessor
<droptone_> ok
banisterpig has joined #ruby-lang
<apeiros_> let me show you how I'd rewrite this…
<droptone_> ok
<droptone_> I've changed that allEnemies.each { |x| puts x } line to p *allEnemies, as specified by matti
<droptone_> to inspect the object
<droptone_> and I changed the allEnemies variable to all_enemies
<droptone_> also as instructed
breakingthings has quit []
<apeiros_> droptone_: step 1, use proper argument names, to make it possible, note the * in line 21: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da
yfeldblum has quit [Ping timeout: 258 seconds]
alessio_rocco has joined #ruby-lang
<apeiros_> err, to step 1 :)
<apeiros_> droptone_: step 2, move the knowledge of how to deserialize a string into an EnemyClass object into EnemyClass: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/dd8056324f5d00f7485ad68e8f76951430858468
realDAB has joined #ruby-lang
<droptone_> ok, thank you
<droptone_> FYI, the reason for the split statement was the enemy list is pulled from an HTML file where all the enemy names and parameters are seperated by /
<droptone_> like 0/Evil Cat/20/4/6
<droptone_> and so you have to split the string, and split returns an array
<apeiros_> step 3, convert the input data to the proper datatype: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/758001d5d617754b3e80ee8b38fac01043b9b66c
<droptone_> so how do you go about splitting the string by / as done originally?
<apeiros_> droptone_: yupp, understood that from the source. doesn't seem to be html, though ;-)
<droptone_> it's raw text
<droptone_> it's a text file on the web
<droptone_> so deserialize takes care of that?
<droptone_> I can just EnemyClass.deserialize(en) to automatically seperate the parameters?
<apeiros_> yes
<droptone_> even if they're seperated by /?
<droptone_> and not space?
<droptone_> it just automatically does that somehow?
<apeiros_> you can see the method in line 2-4
<apeiros_> no, not magically
<droptone_> oh
<droptone_> I see
<droptone_> you write that method
<apeiros_> ;-)
melter has quit [Remote host closed the connection]
<droptone_> oh, wow
<droptone_> yeah, that's good shit
<apeiros_> (you can see all revisions on the left btw. - github even shows nice diffs)
vlad_starkov has quit [Remote host closed the connection]
<droptone_> man
<droptone_> thank you
<droptone_> I have so much to learn, it's almost overwhelming
<apeiros_> step 4: EnemyClass is redundant, Enemy is sufficient ;-) https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/1d11ada2512cb83431998a6d15cffefd3a17b5cf
<apeiros_> yeah, don't worry if it goes too fast right now. I'll just pound it on you. all steps are on github. you can take your time to go through the changes.
<droptone_> right
<droptone_> well thank you
pr0ton has joined #ruby-lang
<apeiros_> instead of `enemy_array.each {|en| allEnemies << Enemy.deserialize(en) }`, you can use Array#map, that's step 5
adambeynon has quit [Quit: Computer has gone to sleep.]
<apeiros_> gah, stupid me, linked the gist instead of the commit - link above should be: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/b59ebef9799c7f038a9ac735a744e5436c7a0eb7
<apeiros_> now we don't need to go the intermediate step over enemy_array, we can do that directly on `enemies`, step 6: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/00bd307b6763bf5dd46b6a8e7523b420cff5c96f
<droptone_> ok
<droptone_> I assume Integer(jp, 10)
<droptone_> is meant to be hp, right?
<droptone_> and since that all_enemies.each { |x| puts x } doesn't work anyway, it's pointless
workmad3 has quit [Ping timeout: 240 seconds]
srbaker has joined #ruby-lang
<apeiros_> yay, yes, jp should be hp
<apeiros_> 10 is the base which Integer() should use
<droptone_> votcha
<droptone_> gotcha*
alessio_rocco has quit [Ping timeout: 245 seconds]
mbull9 has joined #ruby-lang
sockmonk has joined #ruby-lang
<apeiros_> now, the last expression in a method is the methods return value. so we can drop the return and a lot of other stuff around it, step 7: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/214086494bc6325604f547d68e9aaeef9d04d27b
<drbrain> jump points
<droptone_> ok
tenderlo_ has joined #ruby-lang
<droptone_> nice
scampbell has quit [Remote host closed the connection]
banisterpig has quit [Read error: Connection reset by peer]
<apeiros_> a method like `open` you should use in the so-called block-form. this ensures that have been opened are closed again after use, step 8: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/3c011645a1e73b07f4a79a622de3227669f5b8cd
yxhuvud has joined #ruby-lang
nXqd has joined #ruby-lang
<apeiros_> now lets move the getEnemies method to the Enemy class itself, step 9: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/37aa9798a2809837e2b6ced7caedfceb66c95636
<apeiros_> I've added the inspection on the bottom here
<droptone_> ok
tenderlove has quit [Ping timeout: 252 seconds]
tbuehlmann has quit [Ping timeout: 246 seconds]
<apeiros_> now I'd move the ENEMY_URL into the namespace of the Enemy class, step 10: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da/d4a451f896549cc820674996faac6e4f618c4298
<apeiros_> and that's it for now :)
<apeiros_> the next steps depend on where you're heading with this
<apeiros_> hope this rewrite walkthrough is helpful to you :)
realDAB has quit [Quit: realDAB]
yxhuvud2 has quit [Ping timeout: 276 seconds]
justinram has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
wmoxam has joined #ruby-lang
randallagordon has quit [Quit: leaving]
tomzx_mac has joined #ruby-lang
randallagordon has joined #ruby-lang
MaddinXx has joined #ruby-lang
Stilo has joined #ruby-lang
alessio_rocco has joined #ruby-lang
randallagordon has quit [Client Quit]
randallagordon has joined #ruby-lang
realDAB has joined #ruby-lang
<droptone_> apeiros_ : extremely helpful
<droptone_> thank you
<apeiros_> yw
melter has joined #ruby-lang
jonahR has quit [Quit: jonahR]
melter has quit [Quit: Client exiting]
melter has joined #ruby-lang
<yorickpeterse> This is your friendly public service announcement that Ruby sometimes fucking sucks:
<yorickpeterse> String.instance_method(:initialize).parameters # => [[:rest]]
<yorickpeterse> String.new('foo', 'bar') # => ArgumentError: wrong number of arguments (2 for 0..1)
<yorickpeterse> (this is discussed on the ML atm actually)
<matti> LOL
<matti> +1 yorickpeterse
<yorickpeterse> jruby does that right I believe, at least according to headius
sailias has quit [Ping timeout: 252 seconds]
<apeiros_> kekeke
<yorickpeterse> rb_str_init(int argc, VALUE *argv, VALUE str)
<yorickpeterse> GO HOME RUBY, YOU'RE DRUNK
<droptone_> lmao
nazty has quit [Ping timeout: 245 seconds]
banisterpig has joined #ruby-lang
devoper has quit [Remote host closed the connection]
cstrahan has quit [Ping timeout: 252 seconds]
barttenbrinke has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 264 seconds]
tenderlo_ has quit [Ping timeout: 264 seconds]
xalei has joined #ruby-lang
realDAB has quit [Quit: realDAB]
rsl has quit [Ping timeout: 272 seconds]
barttenbrinke has quit [Ping timeout: 258 seconds]
rsl has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
<yorickpeterse> holy shit. So my linter had some code to dynamically import stuff from the current Ruby runtime in a rather aggressive manner. Removing this and replacing it with code that defines these constants explicitly made my code *a lot* faster
<yorickpeterse> (note that this is primarily because atm I define less)
wyhaines has quit [Remote host closed the connection]
__Big0__ has quit [Remote host closed the connection]
<yorickpeterse> As in, from 3.86 seconds for the entire suite down to 0.20
yfeldblum has joined #ruby-lang
mwjcomputing has joined #ruby-lang
joevandyk has joined #ruby-lang
<joevandyk> what's the simplest deployment option for heroku+jruby these days?
<joevandyk> trinidad?
<headius> joevandyk: probably
<headius> or puma
<headius> trinidad will try to spin up multiple JRuby instances in one process to avoid concurrency issues, so it can eat up more memory than you want without threadsafe mode
<headius> trinidad + one instance across dynos might work fine, but that's basically the simplicity of puma
tenderlove has joined #ruby-lang
forrest has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
mjio has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
sockmonk has quit [Ping timeout: 264 seconds]
<droptone_> hey aperios_, on your code, I'm here studying step 10
<droptone_> apeiros_*
<droptone_> and in this line:
<droptone_> id, name, attack, defense, hp = *en.split("/")
<droptone_> I don't see en defined anywhere else, does putting the * in front automatically assign it to the method arguments?
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<apeiros_> droptone_: aha! you found a bug :)
<apeiros_> that should be `string`
blacktulip has quit [Remote host closed the connection]
yxhuvud2 has joined #ruby-lang
<andrewvos> yorickpeterse: hahaha tweet that
<apeiros_> droptone_: https://gist.github.com/apeiros/cb0fab5c4d7ffd9309da fixed it here
<andrewvos> twist: I am Richard Hammond
<andrewvos> all this tjme
<andrewvos> tjme
<drbrain> ha
<andrewvos> tiiiime stupid iphone
yxhuvud has quit [Ping timeout: 255 seconds]
<andrewvos> context ^
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
soypirate has joined #ruby-lang
<injekt> andrewvos: :D
srbaker has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Read error: Operation timed out]
mixandgo has quit [Quit: mixandgo]
srbaker has joined #ruby-lang
ruby-lang541 has joined #ruby-lang
<joevandyk> does doing a 'sleep' in a thread block other threads?
mixandgo has joined #ruby-lang
<andrewvos> are you in a language with threads?
<injekt> joevandyk: wouldn't that defeat the point of a thread?
<joevandyk> andrewvos: ugh, thought i was in #jruby :)
<andrewvos> heh
postmodern has joined #ruby-lang
s1n4 has quit [Quit: leaving]
<joevandyk> trying to figure out why this silly load test of puma/jruby with a sleep of 2 and a bunch of threads doesn't seem to process as many connections per second as it should
<yorickpeterse> joevandyk: yes
<yorickpeterse> not in jruby though I believe
<yorickpeterse> unless sleep means "Pause the entire VM" opposed to "Pause the current thread"
free_slave has joined #ruby-lang
<injekt> pause yo life
dustint has quit [Quit: Leaving]
<free_slave> hello every body
<andrewvos> hey
<yorickpeterse> wat
Wildhoney has left #ruby-lang [#ruby-lang]
Wildhoney has joined #ruby-lang
havenwood has joined #ruby-lang
<injekt> anyone in here interested in helping out maintaining a large well known open source project?
<injekt> i'd tell you the name of said project, but you'd say no so you have to agree to it first
<whitequark> injekt: i can say yes and then deceive you
<yorickpeterse> injekt: sounds like basically any given startup
<andrewvos> slop
<yorickpeterse> "I have this idea but it's so cool I won't tell you about it until you sign this NDA"
<injekt> haha 'large and well known' cant be slop
<whitequark> yeah I guess that's why NDAs are thrown
<yorickpeterse> injekt: how about yo mamma?
<injekt> yorickpeterse: ooo touche
<andrewvos> yo momma is rails
<yorickpeterse> I think I laughed harder about that than I should
<andrewvos> hahah
<injekt> :D
<injekt> I think I'm more upset about 'yo momma is rails'
<injekt> yo momma is omakase
<andrewvos> yeh I crossed the line man, sorry
<injekt> it's ok hammond
<andrewvos> :(
<injekt> so back to this open source project
srbaker has quit [Quit: Computer has gone to sleep.]
<injekt> it's been around since 2006, and everyone knows it
<injekt> I feel like im trying to sell it
free_slave has quit [Quit: free_slave]
<andrewvos> just like yo mama
<yorickpeterse> Rails?
<injekt> hah
<andrewvos> ok i stop now
<injekt> yorickpeterse: you got me
<whitequark> injekt: what is the point of the whole conversation?
<andrewvos> injekt: what, how are you just handing out rails? you won it in a poker game or something
<yorickpeterse> suspense and bad jokes
<injekt> ^
<injekt> and someone to help maintain the shit i dont have time to maintain :D
<andrewvos> why else are we here?
<injekt> open source, it's complicated
<andrewvos> going to open your gh page in a moment
<yorickpeterse> injekt: JUST GIVE THE FUCKING GITHUB LINK ALREADY
<andrewvos> wait wait, is it written with rails?
<injekt> ok, ya'll like dealing with dates and times right?
<injekt> :D:D:D:D
<andrewvos> yeah love it idream of parsing dates
ruby-lang541 has quit [Ping timeout: 245 seconds]
<injekt> sweet
<whitequark> chronic...
<andrewvos> Date, DateTime, Time etc.
<injekt> whitequark: :D
<whitequark> injekt: used it in the past
<whitequark> I think it doesn't really work well with russian
<injekt> nope but there's a pull request to add i18n
<injekt> so it could!
<andrewvos> You wrote chronic? I used it when I was just learning Ruby. You were my hero for a time injekt! Weird
<whitequark> injekt: dunno not using it anymore for years
<injekt> andrewvos: no i maintain it
<injekt> andrewvos: tom wrote it
<andrewvos> Oh ok
<andrewvos> redacted
<injekt> :(
<injekt> although my 393 commits to his 41 says I sweat more!
<whitequark> wow
<andrewvos> true
<injekt> I started rewriting the parser
<injekt> then remember i suck at writing parsers
<injekt> and lose the will to live easily
<andrewvos> wheres that gif of homer disappearkng into a bush backwards
<injekt> hahhaa
<andrewvos> haha exactly :)
hasimo has joined #ruby-lang
<andrewvos> injekt: why not choose someone who has submitted multiple pull requests?
<injekt> andrewvos: chronic is a ghetto
<injekt> the code is bad and tbh I really would like to rewrite it (and I started with a library called relapse) but dont have time to continue with it right now
<injekt> chronic still runs on 1.8.6
davidbalbert is now known as davidbalber|away
solars has quit [Ping timeout: 264 seconds]
<injekt> and probably even lower
<yorickpeterse> wat
<lightcap> replase is an aweomse name for a rewrite
<yorickpeterse> I actually had cases where Time.parse was way better than Chronic
<injekt> lightcap: thank you :)
<lightcap> should write it just cuz the name is so good.
<injekt> yorickpeterse: me too, they're not supposed to do the same thing
Mon_Ouie has quit [Ping timeout: 246 seconds]
<injekt> chronic will parse 'the third monday of next month' it's not really intended to parse timestamps
<injekt> though in most cases I've added a lot of that functionality
mixandgo has quit [Quit: mixandgo]
<injekt> funny that went unmaintained after less than 6 months
<yorickpeterse> xaviershay authored a year ago
<lightcap> haha
<injekt> Xavier is awesome anyway, and it looks like it doesn't really compare
<lightcap> holy crap, I just noticed I had two fat fingered typos out of 8 words.
KDiddy has joined #ruby-lang
justinram has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
fragamus has joined #ruby-lang
tomzx_mac_ has joined #ruby-lang
fragamus has quit [Client Quit]
KDiddy has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
tomzx_mac has quit [Ping timeout: 258 seconds]
anonymuse has quit [Quit: Leaving...]
tomzx_mac_ has quit [Ping timeout: 246 seconds]
fragamus has joined #ruby-lang
outoftime has quit [Quit: Leaving]
alessio_rocco has joined #ruby-lang
yankeefan04 has joined #ruby-lang
yxhuvud has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 264 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
maxmanders has quit [Quit: Computer has gone to sleep.]
Stilo has joined #ruby-lang
<postmodern> question, do you think OpenStruct#method_missing should accept a block?
<postmodern> currently it ignores the fact a block is given
<postmodern> perhaps it could raise an ArgumentError?
headius has quit [Quit: headius]
banisterpig has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend> postmodern: where the block behaves similarly to the Hash block?
<banisterfiend> Hash.new
<postmodern> banisterfiend, im more worried about OpenStructs being passed into other methods that call methods on it with blocks
lightcap has quit [Quit: Computer has gone to sleep.]
nXqd has quit [Ping timeout: 256 seconds]
<banisterfiend> postmodern: what currently happens, it just silently ignores the block?
<postmodern> banisterfiend, correct
<banisterfiend> what's wrong with that out of interest? there's tonnes of methods that dont except blocks that just silently ignore it. In fact i think there's hardly any methods at all that raise when they receive blocks that they dont care about
<whitequark> ([].reverse)()
<whitequark> (x=[].reverse)()
<whitequark> []
<banisterfiend> accept*
<postmodern> banisterfiend, hmm good point
<whitequark> TypeError: Array.prototype.reverse called on null or undefined([].reverse)()
<whitequark> (x=[].reverse)()
<whitequark> []
<whitequark> um sorry for that
<whitequark> paste by middle button is evil
Cherrum has quit [Remote host closed the connection]
alessio_rocco has quit [Remote host closed the connection]
sebasoga has quit [Quit: Computer has gone to sleep.]
hasimo has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
realDAB has joined #ruby-lang