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
sandbags has quit [Remote host closed the connection]
amerine has quit [Quit: Lost terminal]
amerine has joined #ruby-lang
rampantmonkey has joined #ruby-lang
asdfqwer has quit []
rampantmonkey has quit [Client Quit]
chrislgibson has joined #ruby-lang
davidbalber|away is now known as davidbalbert
gregmoreno has quit [Read error: Operation timed out]
runeb has joined #ruby-lang
injekt has quit [Ping timeout: 264 seconds]
H1gh has quit []
justinram has quit [Remote host closed the connection]
injekt has joined #ruby-lang
runeb has quit [Ping timeout: 246 seconds]
Croms has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
saxy_ has quit [Remote host closed the connection]
burgestrand has quit [Ping timeout: 246 seconds]
Dreamer3 has joined #ruby-lang
postmodern has joined #ruby-lang
saxy has joined #ruby-lang
saxy has quit [Remote host closed the connection]
cardoni has joined #ruby-lang
burgestrand has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
benanne has quit [Quit: kbai]
saxy has joined #ruby-lang
Nisstyre has joined #ruby-lang
leodbil has joined #ruby-lang
Elico has joined #ruby-lang
sleepynate has joined #ruby-lang
runeb has joined #ruby-lang
saxy has quit [Remote host closed the connection]
thone_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
sn0wb1rd_ has joined #ruby-lang
gregmoreno has joined #ruby-lang
leodbil has left #ruby-lang [#ruby-lang]
sn0wb1rd has quit [Ping timeout: 248 seconds]
sn0wb1rd_ is now known as sn0wb1rd
thone has quit [Ping timeout: 260 seconds]
cyri_ has joined #ruby-lang
runeb has quit [Ping timeout: 240 seconds]
mjio has joined #ruby-lang
mistym has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
mjio has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jstewart has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
jstewart has quit [Read error: Connection reset by peer]
tenderlo_ has quit [Remote host closed the connection]
sleepynate has quit [Ping timeout: 265 seconds]
blazes816 has quit [Quit: blazes816]
<zenspider> who has access to > 8gb RAM somewhere?
<zenspider> I can't get my rspec benchmarks to finish because I don't have enough RAM :(
sn0wb1rd has quit [Quit: sn0wb1rd]
<postmodern> EC2?
<postmodern> also kill off some processes
lsegal` has joined #ruby-lang
lsegal` has quit [Client Quit]
<zenspider> yeah. I know how unix works :P
<zenspider> I even rebooted and dropped to console
<zzak> shouldn't it use swap then?
lsegal has joined #ruby-lang
<zenspider> well... yes... but then you're comparing apples to oranges
cardoni has quit [Quit: cardoni]
<zenspider> and you still can't have a process that takes more memory than is available
<zenspider> you can just push other processes out to disk
<zzak> oh, perhaps im misunderstanding how swap disk works
<zenspider> bbiab
<iosctr> anyone here see a message w/link posted from me here at 19:48 EST ?
<iosctr> Just wondering, because I'm seeing it here, but I posted to another channel (and the message showed there as well). Kind of odd.
<iosctr> If noone else sees this earlier message, I'll assume it's an IRC client issue :)
Dreamer3 has left #ruby-lang ["Leaving..."]
swarley has quit [Read error: Connection reset by peer]
dous has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
faces has joined #ruby-lang
nertzy has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
jxie has quit [Quit: leaving]
brianpWins has quit [Quit: brianpWins]
<zzak> iosctr: i think its your client
<iosctr> zzak: ok, thanks. I thought it was a bit odd that is showed up in 2 channels here :)
mjio has joined #ruby-lang
sleepynate has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
sn0wb1rd has joined #ruby-lang
pkrnj has joined #ruby-lang
runeb has joined #ruby-lang
bluepojo has quit [Quit: Leaving.]
swarley has joined #ruby-lang
saxy has joined #ruby-lang
methods has quit [Quit: Leaving.]
krohrbaugh has quit [Quit: Leaving.]
bluepojo has joined #ruby-lang
saxy has quit [Ping timeout: 260 seconds]
CaptainJet has quit []
swarley has quit [Ping timeout: 246 seconds]
cardoni has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
runeb has quit [Ping timeout: 268 seconds]
m3nd3s_ has joined #ruby-lang
m3nd3s_ has quit [Remote host closed the connection]
m3nd3s_ has joined #ruby-lang
m3nd3s has quit [Ping timeout: 255 seconds]
chrislgibson has quit [Quit: Leaving...]
m3nd3s_ has quit [Read error: Connection reset by peer]
m3nd3s has joined #ruby-lang
mjio has quit [Quit: Computer has gone to sleep.]
RantriX has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
dous has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby-lang
dpatel has quit [Quit: dpatel]
saxy has joined #ruby-lang
saxy has quit [Remote host closed the connection]
geopet has quit [Quit: geopet]
toretore has quit [Quit: This computer has gone to sleep]
nertzy has quit [Quit: This computer has gone to sleep]
areil has joined #ruby-lang
rebelcan has quit [Quit: leaving]
runeb has joined #ruby-lang
chrislgibson has joined #ruby-lang
Aria has joined #ruby-lang
runeb has quit [Ping timeout: 252 seconds]
krohrbaugh has joined #ruby-lang
iosctr has quit [Quit: ...]
chrislgibson has quit [Ping timeout: 256 seconds]
saxy has joined #ruby-lang
saxy has quit [Remote host closed the connection]
saxy has joined #ruby-lang
jstemmer has quit [Ping timeout: 260 seconds]
saxy has quit [Ping timeout: 276 seconds]
spuk has joined #ruby-lang
gsav has joined #ruby-lang
Madis has quit [Remote host closed the connection]
<zenspider> rawr
swarley has joined #ruby-lang
jstemmer has joined #ruby-lang
savage- has joined #ruby-lang
stardiviner has joined #ruby-lang
jxie has joined #ruby-lang
runeb has joined #ruby-lang
<zzak> what is \fB?
<zzak> and \fR
sleepynate has left #ruby-lang [#ruby-lang]
<zzak> i am editting these man pages and some of the links are like: <\fBhttp://onestepback.org/redmine/projects/show/rake\fR>
<stardiviner> What is the difference between method? method! and method= ? I try to Google "Ruby method with question mark" but do not get the good answer. I hope somebody can give a link which can describe it.
<zzak> method? is a predicate, method! is a bang (usually destructive or with side-effects), method= is a setter
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
<stardiviner> zzak: thanks.
<zzak> np
savage- has quit [Quit: savage-]
runeb has quit [Ping timeout: 260 seconds]
mistym has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
synthetix has joined #ruby-lang
l0st1 has quit [Quit: leaving]
<zenspider> stardiviner: no. they're just methods names. nothing more.
<zenspider> method= has some extra semantics associated to it. (always returns the RHS no matter what the method itself returns), but otherwise, they're just names
znz_jp has quit [Quit: kill -QUIT $$]
chrislgibson has joined #ruby-lang
znz_jp has joined #ruby-lang
<zzak> right, i was just speaking more generally or culturally
Bosox20051 has joined #ruby-lang
<stardiviner> zenspider: I see.
<zzak> people typically use methods named as such
<zzak> but ruby doesn't force you in that manner
chrislgibson has quit [Ping timeout: 246 seconds]
KA_ has joined #ruby-lang
KA_ has quit [Client Quit]
<stardiviner> zzak: I see now, I'm writing ruby snippet for Vim. So I need a description word to differ them.
stonerfish has joined #ruby-lang
runeb has joined #ruby-lang
rekky has joined #ruby-lang
cardoni has quit [Quit: cardoni]
runeb has quit [Ping timeout: 264 seconds]
saxy has joined #ruby-lang
gregmoreno has joined #ruby-lang
saxy has quit [Ping timeout: 255 seconds]
sn0wb1rd has quit [Quit: I will be right back]
swarley has quit [Ping timeout: 252 seconds]
gregmoreno has quit [Remote host closed the connection]
rekky has quit [Quit: rekky]
aetcore has joined #ruby-lang
aetcore has quit [Client Quit]
beckettsfool has joined #ruby-lang
runeb has joined #ruby-lang
chrislgibson has joined #ruby-lang
richardjortega has quit [Quit: richardjortega]
rohit_ has joined #ruby-lang
savage- has joined #ruby-lang
charliesome has joined #ruby-lang
sepp2k has joined #ruby-lang
chrislgibson has quit [Ping timeout: 246 seconds]
Bosox20051 has quit [Quit: Leaving]
milesforrest has joined #ruby-lang
bluepojo has quit [Ping timeout: 246 seconds]
runeb has quit [Ping timeout: 246 seconds]
bfreeman has joined #ruby-lang
milesforrest is now known as milesforrest|afk
gsav has quit [Read error: Connection reset by peer]
kgrz has joined #ruby-lang
cardoni has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
mistym has quit [Remote host closed the connection]
rohit_ has quit [Ping timeout: 246 seconds]
svyatov has joined #ruby-lang
JohnBat26 has joined #ruby-lang
mistym has joined #ruby-lang
areil has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
senekis has quit [Quit: leaving o/]
thejspr has joined #ruby-lang
gsav has joined #ruby-lang
runeb has joined #ruby-lang
gsav has quit [Ping timeout: 260 seconds]
saxy has joined #ruby-lang
saxy has quit [Remote host closed the connection]
rohit_ has joined #ruby-lang
runeb has quit [Ping timeout: 255 seconds]
synthetix has quit [Ping timeout: 246 seconds]
ryanlecompte has joined #ruby-lang
chrislgibson has joined #ruby-lang
Nisstyre_ has joined #ruby-lang
aetcore has joined #ruby-lang
chrislgibson has quit [Ping timeout: 264 seconds]
Nisstyre has quit [Read error: Operation timed out]
Nisstyre_ has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby-lang
BigO has joined #ruby-lang
Kyril has quit [Quit: Quitte]
savage- has quit [Quit: savage-]
yxhuvud has joined #ruby-lang
runeb has joined #ruby-lang
brianpWins has joined #ruby-lang
floyd2_ has quit [Ping timeout: 268 seconds]
lianj has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
runeb has quit [Ping timeout: 240 seconds]
rippa has joined #ruby-lang
retro|cz has quit [Ping timeout: 244 seconds]
BigO has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
ground has joined #ruby-lang
cardoni has quit [Quit: cardoni]
Aria has quit [Remote host closed the connection]
saxy has joined #ruby-lang
krohrbaugh has joined #ruby-lang
RantriX has quit [Read error: Connection reset by peer]
slaytanic has quit [Ping timeout: 260 seconds]
chrislgibson has joined #ruby-lang
saxy has quit [Ping timeout: 265 seconds]
slaytanic has joined #ruby-lang
Elico has quit [Quit: elico]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
runeb has joined #ruby-lang
chrislgibson has quit [Ping timeout: 246 seconds]
stonerfish has quit [Quit: Leaving.]
saxy has joined #ruby-lang
havenn has joined #ruby-lang
ground has quit [Ping timeout: 252 seconds]
saxy has quit [Read error: Connection reset by peer]
saxy_ has joined #ruby-lang
saxy_ has quit [Remote host closed the connection]
rohit_ has quit [Quit: Leaving]
saxy has joined #ruby-lang
runeb has quit [Ping timeout: 240 seconds]
agile has quit [Ping timeout: 245 seconds]
saxy has quit [Ping timeout: 260 seconds]
aetcore_ has joined #ruby-lang
jarred has joined #ruby-lang
jarred has quit [Quit: jarred]
aetcore has quit [Ping timeout: 246 seconds]
k4k1_c0der has joined #ruby-lang
k4k1c0der has joined #ruby-lang
k4k1c0der has quit [Client Quit]
aetcore has joined #ruby-lang
aetcore_ has quit [Read error: Connection reset by peer]
aetcore__ has joined #ruby-lang
kitallis has joined #ruby-lang
aetcore has quit [Ping timeout: 256 seconds]
k4k1c0der has joined #ruby-lang
agile has joined #ruby-lang
k4k1c0der has quit [Client Quit]
saxy has joined #ruby-lang
runeb has joined #ruby-lang
isale-eko has joined #ruby-lang
k4k1_c0der has quit []
runeb has quit [Ping timeout: 240 seconds]
chrislgibson has joined #ruby-lang
cardoni has joined #ruby-lang
chrislgibson has quit [Ping timeout: 240 seconds]
heftig has quit [Quit: leaving]
Mon_Ouie has quit [Ping timeout: 264 seconds]
chimkan_ has quit [Quit: chimkan_]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
krohrbaugh has quit [Quit: Leaving.]
ryanf has quit [Quit: leaving]
solars has joined #ruby-lang
hinbody has quit [Ping timeout: 252 seconds]
thillux has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
runeb has joined #ruby-lang
agile has quit [Ping timeout: 246 seconds]
hinbody has joined #ruby-lang
KA_ has joined #ruby-lang
runeb has quit [Ping timeout: 256 seconds]
rue|w has joined #ruby-lang
saxy has quit [Remote host closed the connection]
cschwartz has joined #ruby-lang
robbyoconnor has quit [Quit: Konversation terminated!]
<mfn> Using sequel, I'm construction a query like: db[:table].where('etc.etc.').select(:id, :foo).each do ... it's a big database, takes along time. Is there a way to start iteration right when the first data receives, i.e. an running an unbuffered query (I'm using the mysql adapter).
<drbrain> mfn: so the query takes under 10ms but the row retrieval takes seconds?
ruurd has joined #ruby-lang
KnowTheLedge has quit []
<mfn> drbrain: yes, that would describe it as well too. The query itself isn't complex, but it's a lot of data for every row. I'ld like to be able to process data as it comes in, not wait for the whole query being received. In PHP this is doable, at least for mysql, with the mysql_unbuffered_query function, hence my term unbuffered. But I realize that's different in Ruby, but don't know how or if possible.
<drbrain> I don't know much about sequel, but you should ensure that the problem isn't missing indexes or poor query construction
<mfn> no, it's the amount of data; I'm pretty seure.
<drbrain> I'm pretty sure you can do this with the mysql gems directly, but I don't know if sequel gives you that capability
chrislgibson has joined #ruby-lang
unsymbol has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby-lang
workmad3 has joined #ruby-lang
unsymbol has joined #ruby-lang
chrislgibson has quit [Ping timeout: 246 seconds]
rolfb has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
lianj has joined #ruby-lang
lianj has joined #ruby-lang
lianj has quit [Changing host]
richardjapenga has joined #ruby-lang
<apeiros_> hrm, the banister is away…
<rue|w> Aww
<erikh> mfn: how many rows?
<mfn> erikh: not a lot, 2700. But quite some amount of data per row
<erikh> ah
<erikh> and you're sure execution time or network transfer isn't the bottleneck?
<erikh> if they aren't, it's probably spending a lot of time in type coercion
<mfn> erikh: I get the impression it waits till the complete query is there
<erikh> which is usually a great time to throw away your favorite database abstraction layer and go directly
runeb has joined #ruby-lang
<erikh> oh, I see. might want to hop into #sequel and ask, or step around it
<erikh> depends on what really suits you better.
<mfn> thanks
cyri_ has joined #ruby-lang
<erikh> how much data per row are we talking?
<erikh> and what kind of data?
havenn has quit [Remote host closed the connection]
moonglum has joined #ruby-lang
qwerxy has quit [Quit: offski]
<mfn> erikh: mysql "longtext", avg. byte length is 42kb
<erikh> just one column that way or several?
cyri_ has quit [Client Quit]
<erikh> sorry for the 20 q's, just trying to get an idea.
<drbrain> Just viewed rdoc's README with ri
<erikh> oh, that's hot.
<erikh> drbrain: does it handle markdown too?
<drbrain> erikh: yup
<erikh> <3
tonni has joined #ruby-lang
<erikh> now make it read from github repositories and ln -s ri lynx
<erikh> :P
<drbrain> ha
<mfn> erikh: np :) it's one column
<erikh> is 4 out yet?
<erikh> or is that what this is leading to?
<drbrain> this is leading to RDoc 4
<mfn> (I'm fetching others too but they are not big)
<erikh> mfn: that's not too bad, it's probably something else then.
<drbrain> RDoc 4 won't need to generate static HTML
<erikh> if nothing else, do it with your native library just to see if that steps around it. then your guns are loaded.
<erikh> drbrain: yeah, I remember you telling me about that.
<drbrain> which means I needed to add pages to the ri data store
<erikh> glad you're heading in that direction and not the other
<drbrain> so it didn't make any sense to not add that ability to ri
<mfn> erikh: thanks, I guess I will leave it how it is then.
<erikh> I think I'm the last person on earth that lives in ri
<erikh> I got mocked the other day at work
* erikh feels old
<erikh> drbrain: have you ever seen 'pinfo'?
brianpWins has quit [Quit: brianpWins]
<drbrain> pno
<drbrain> no
<erikh> heh
<erikh> it's an info page browser that more-or-less works like elinks or lynx
<erikh> not an easy problem, but I think it'd be pretty cool to do something like that for ri
<drbrain> github.com/rdoc/rdoc-browser
<drbrain> it's not finished, though
<erikh> you can walk the docs, highlight a reference and press right arrow to move to the reference page, etc
runeb has quit [Ping timeout: 240 seconds]
<erikh> gonna fork that
<erikh> call it mcrib
<erikh> then yank the gem in a month
<erikh> then republish it 2 years later and say "it's back"
<drbrain> mostly because Curses::Pad doesn't exist until ruby 2.0
<erikh> ah
<drbrain> erikh: even better, only allow downloads from select markets
<erikh> ooh
<erikh> I like where this is going
<drbrain> (in the 80's the McRib wasn't available nationwide)
<erikh> yeah, I remember having one
<erikh> I remember it very well
vlad_starkov has joined #ruby-lang
<erikh> they also had something when I worked there that was this burger that was topped with teriyaki onions and cheese whiz
<erikh> really
beckettsfool has quit [Quit: This computer has gone to sleep]
<erikh> I mean, props to them for experimenting I guess
dc5ala has joined #ruby-lang
heftig has joined #ruby-lang
<drbrain> McCheeseSteak?
qwerxy has joined #ruby-lang
<erikh> that's the thing, I think it was pushed as some oriental thing
<erikh> oh! one last quick story
<erikh> so all the sauces, like ketchup and mustard and mayo were in these gun-like things
<erikh> you'd pull the trigger and "plop" some ketchup would come out
<drbrain> Dick's had the same thing for evenness
voker57 has joined #ruby-lang
<erikh> someone there figured out the mayo gun had extremely high tension
<erikh> so you could hit someone with a dollop of mayo from across the kitchen
<erikh> oh yeah, and pickles get sticky when you grill them
<erikh> so we'd grill the pickles for a few seconds and then flip them with the spatula on to the ceiling
<drbrain> hah
agarcia has joined #ruby-lang
<erikh> you get really creative when you're 16 at 11pm at night with no customers
KA_ has quit [Quit: KA_]
<drbrain> when I went to the McD in Enumclaw at 11PM they were all stoned
<erikh> hahah
<erikh> yeah, I worked at a plaid pantry in pdx where we had a staff bong in the drinks cooler
<erikh> pretty much anyone you talked to there from management down was permabaked
<erikh> you really had to be
<drbrain> haha
dr_bob has joined #ruby-lang
qwerxy has quit [Quit: offski]
cyri_ has joined #ruby-lang
moonglum has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<drbrain> ok, bed time now that I've committed
<erikh> later.
<erikh> gotta roll a server, so no rest for me
blacktulip has joined #ruby-lang
<TTilus> wtf is this, after faithfully scanning all the files, rdoc says http://pastie.org/5381359 and all i got is stuff from README_FOR_APP
<erikh> what does your RDoc::Task look like?
runeb has joined #ruby-lang
<erikh> Aava.system_instance.expand_path(reldocpath)
<erikh> what does this do?
<erikh> Dir[reldocpath] or FileList[reldocpath] ?
<TTilus> erikh: expand_path('foo/**/*.rb') => ['/one/root/foo/**/*.rb', '/other/root/foo/**/*.rb']
<erikh> you never process the glob?
<erikh> sec
<TTilus> rdoc_files.include does that
<TTilus> it is a Rake::FileList right?
<TTilus> that rdoc_files
<erikh> yeah, it claims to, I didn't think it did
<erikh> humor me and try that?
<TTilus> i figure it finds the files, i get all this mmc.c....c.c.c.c.c.c..... stuff
<TTilus> ok, lemme try
<erikh> you probably need to splat it
<TTilus> ok
<TTilus> what bugs me is that rm -r doc/app on line 8 on my pastie
<TTilus> running...
<erikh> what bugs you about it?
chrislgibson has joined #ruby-lang
<erikh> oh, ha
<erikh> yeah, you might have a point there.
<TTilus> it says its generating 208 etc, and then goes destroying them and generates only on
<erikh> right
<erikh> hmm
<TTilus> *one
<TTilus> the change did not make any difference :(
<erikh> yeah, sorry, I guess I missed that
<TTilus> it reports the same amount of files, classes, modules and methods
<TTilus> and results in only README_FOR_APP being actually spit out
<erikh> right, it's almost like it's running rdoc:clobber (or whatever it's called) between two runs
<erikh> hmmmmm
saxy has joined #ruby-lang
<TTilus> uu
<TTilus> thats not right
<TTilus> how do i make it show the commands its running?
<erikh> rake blabla --trace
<TTilus> aa-ha
<TTilus> now running with tracing
aetcore__ has quit []
chrislgibson has quit [Ping timeout: 246 seconds]
runeb has quit [Ping timeout: 240 seconds]
robotmay has joined #ruby-lang
<TTilus> uhm
<TTilus> it made no difference
<TTilus> console output is the same, result is the same
<erikh> hmm
<TTilus> oh, sorry, i may have made a mistake
<TTilus> lemme revisit
saxy has quit [Ping timeout: 248 seconds]
<TTilus> yup, no mistake, i already had --trace there :)
<TTilus> thats i guess why it shows those rm -f doc/apps there
<erikh> maybe i'm not looking deep enough, but 'rm' only shows up in one spot in rdoc/task's source
<erikh> and it's for the clobber task :)
tjadc_ has joined #ruby-lang
<TTilus> complete console output looks like http://pastie.org/private/vx0pmjrvkohvu4tkttuvg
<TTilus> so it seems like it runs clobber twice
<erikh> hm
<erikh> do you have file tasks in there?
<TTilus> as it does the generation
<TTilus> "file tasks"?
<erikh> actually hm
<erikh> let me look at the source again
<jMCg> ARGH one of these things is not like the other: #<Digest::SHA1: 2b50d03dfd5c9f82cdd1c67cb5c16f5e5c44e2cd>
<jMCg> "2b50d03dfd5c9f82cdd1c67cb5c16f5e5c44e2cd"
<jMCg> -- how do I compare these two?
runeb has joined #ruby-lang
<apeiros_> still at that?
<apeiros_> convert the Digest::SHA1 to a string
<jMCg> apeiros_: again. I slept in the mean time.
<apeiros_> I think somebody recommended that yesterday already…
tjadc_ has quit [Remote host closed the connection]
<jMCg> apeiros_: yup. Some things work better after sleep. Thanks
<erikh> TTilus: what version of rdoc are you using?
kalleth has joined #ruby-lang
<TTilus> erikh: ancient, prolly
<TTilus> erikh: lemme see
<TTilus> erikh: RDoc V1.0.1 - 20041108
<TTilus> erikh: on jruby 1.5.6
<erikh> yyyyyeah.
<erikh> might want to try upgrading that.
<TTilus> <o>
wallerdev has quit [Quit: wallerdev]
<TTilus> unfortunately i havent got that luxury right now, that app is a single monolith and it includes the ruby :)
<TTilus> options are: generate rdoc with different ruby+rdoc, forget about rdocs for quite a while
<TTilus> or i could go poking around in the internals to find out what goes wrong
<TTilus> hmm
<TTilus> it _has_ worked not-all-that-long ago
<TTilus> need to figure out the difference
<whitequark> git bisect is your friend
<whitequark> esp. git bisect run, which magically presents you the offending commit after you empty your cup of @beverage.
kgrz has quit [Quit: Computer has gone to sleep.]
qwerxy has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
cardoni has quit [Quit: cardoni]
sush24 has quit [Ping timeout: 260 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
dr_bob has joined #ruby-lang
chrislgibson has joined #ruby-lang
sush24 has joined #ruby-lang
adambeynon has joined #ruby-lang
chrislgibson has quit [Ping timeout: 246 seconds]
sush24 has quit [Ping timeout: 260 seconds]
leexx has joined #ruby-lang
epitron has quit [Remote host closed the connection]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
epitron has joined #ruby-lang
digman543 has joined #ruby-lang
epitron has quit [Changing host]
epitron has joined #ruby-lang
epitron has quit [Read error: Connection reset by peer]
epitron has joined #ruby-lang
epitron has quit [Changing host]
epitron has joined #ruby-lang
epitron has quit [Remote host closed the connection]
digman543 has quit [Client Quit]
leexx has quit [Quit: Leaving]
epitron has joined #ruby-lang
epitron has quit [Changing host]
epitron has joined #ruby-lang
iCharlie has joined #ruby-lang
apeiros_ has joined #ruby-lang
iCharlie has quit [Quit: leaving]
iCharlie has joined #ruby-lang
GarethAdams has joined #ruby-lang
Madis has joined #ruby-lang
<jMCg> how do I get the error message/reason from the last error/exception?
aetcore has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
saxy has joined #ruby-lang
adambeynon has quit [Ping timeout: 255 seconds]
adambeynon has joined #ruby-lang
cultureulterior_ has quit [Ping timeout: 246 seconds]
cultureulterior_ has joined #ruby-lang
<yorickpeterse> begin; some_broken_code_here; rescue => e; puts e.message; end
<jMCg> And I can give it a backtrace too!
aetcore_ has joined #ruby-lang
aetcore has quit [Ping timeout: 255 seconds]
leopard_me has joined #ruby-lang
chrislgibson has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
chrislgibson has quit [Ping timeout: 246 seconds]
villainate has joined #ruby-lang
<villainate> i have a struct that has been encoded into a json string. JSON.parse gives me a json object, but i cant figure out how to create a struct from (for example) json_object['my_struct'].
<villainate> json_object['my_struct'] is just a string
<villainate> so how can i reconstruct a struct from a string?
<villainate> partial string value: #<struct Net::IMAP::Envelope date="Wed, 7 Nov 2012 18:13:11 +0900", subject="test" ... >
<villainate> am i asking a dumb question?
<whitequark> it has not been encoded into a json string
<whitequark> it has been converted to a string with default to_s and then JSON-encoded
sush24 has joined #ruby-lang
<whitequark> basically, there is no way to convert the data returned by #to_s back
<villainate> encoded: ... "ENVELOPE":"#<struct Net::IMAP::Envelope date=\"Wed, 7 Nov 2012 18:13:11 +0900\", subje...
<villainate> then i decode that string
<whitequark> yup, that's probably a bug
<villainate> then i have a string with "#<struct Net::IMAP::Envelope ... " in it
<whitequark> you should convert that Net::IMAP::Envelope to a Hash, then JSON-encode that Hash
<villainate> ok
<whitequark> and when decoding, convert it back to Envelope
<villainate> i see
<whitequark> or, alternatively, you can Marshal it
<villainate> gotcha
aetcore_ has quit [Read error: Connection reset by peer]
aetcore has joined #ruby-lang
sush24 has quit [Ping timeout: 252 seconds]
aetcore has quit [Read error: Connection reset by peer]
aetcore has joined #ruby-lang
benanne has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
ruurd has joined #ruby-lang
tjadc has joined #ruby-lang
chrislgibson has joined #ruby-lang
chrislgibson has quit [Ping timeout: 248 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
vlad_starkov has joined #ruby-lang
jxie has quit [Quit: leaving]
cyri_ has quit [Quit: cyri_]
saxy has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
toretore has joined #ruby-lang
kalleth is now known as kalleth__
kalleth_ has joined #ruby-lang
kalleth_ has left #ruby-lang [#ruby-lang]
kalleth has joined #ruby-lang
kalleth__ has quit [Quit: kalleth__]
banisterfiend has quit [Ping timeout: 246 seconds]
m3nd3s has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
dous has joined #ruby-lang
blacktulip has joined #ruby-lang
postmodern has quit [Quit: Leaving]
dous has quit [Ping timeout: 260 seconds]
blacktulip has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
blacktulip has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
chrislgibson has joined #ruby-lang
svyatov has quit [Quit: svyatov]
svyatov has joined #ruby-lang
kurko_ has joined #ruby-lang
chrislgibson has quit [Ping timeout: 246 seconds]
horsey has joined #ruby-lang
richardjburton has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
areil has joined #ruby-lang
runeb has quit [Remote host closed the connection]
richardjburton has quit [Client Quit]
mwjcomputing has joined #ruby-lang
horsey has quit [Ping timeout: 246 seconds]
dc5ala has quit [Quit: Ex-Chat]
aetcore_ has joined #ruby-lang
aetcore_ has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
aetcore has quit [Ping timeout: 245 seconds]
josephholsten has quit [Quit: josephholsten]
robbyoconnor has quit [Ping timeout: 252 seconds]
asaaki has joined #ruby-lang
saxy has joined #ruby-lang
richardjburton has joined #ruby-lang
saxy has quit [Ping timeout: 252 seconds]
fsvehla has quit [Quit: fsvehla]
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
fsvehla has joined #ruby-lang
fsvehla has left #ruby-lang [#ruby-lang]
fsvehla has joined #ruby-lang
richardjburton has quit [Quit: Computer has gone to sleep.]
m3nd3s has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
stardiviner has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gix- has quit [Ping timeout: 265 seconds]
gix has joined #ruby-lang
dous has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
gjaldon has quit [Quit: Leaving]
asaaki has quit [Remote host closed the connection]
asaaki has joined #ruby-lang
ttilley has quit [Quit: ttilley]
agile has joined #ruby-lang
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
datanoise has joined #ruby-lang
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
stiang has joined #ruby-lang
thisirs has joined #ruby-lang
kgrz has joined #ruby-lang
wyhaines has joined #ruby-lang
wyhaines_ has quit [Read error: Connection reset by peer]
nyuszika7h has joined #ruby-lang
nyuszika7h has quit [Disconnected by services]
BigO has joined #ruby-lang
horsey has joined #ruby-lang
nyuszika7h has joined #ruby-lang
Hakon has joined #ruby-lang
rue|w has quit [Ping timeout: 246 seconds]
horsey has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby-lang
jxie has joined #ruby-lang
outoftime has joined #ruby-lang
masterkorp has left #ruby-lang ["WeeChat 0.3.2"]
mistym has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
kgrz has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
gsav has joined #ruby-lang
nitti has joined #ruby-lang
floyd2 has joined #ruby-lang
floyd2 has quit [Client Quit]
floyd2 has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
aetcore has joined #ruby-lang
enebo has joined #ruby-lang
rue|w has joined #ruby-lang
blazes816 has joined #ruby-lang
senekis has joined #ruby-lang
agile has quit [Ping timeout: 252 seconds]
intellitech has quit [Ping timeout: 268 seconds]
slyphon has joined #ruby-lang
blazes816 has quit [Ping timeout: 252 seconds]
saxy has joined #ruby-lang
sailias has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
synthetix has joined #ruby-lang
saxy has quit [Ping timeout: 256 seconds]
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
mislav has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
methods has joined #ruby-lang
<apeiros_> huh, mislav in #ruby-lang - rare sight :) hi there
<mislav> hey there :)
zz_chrismcg is now known as chrismcg
elfenars has joined #ruby-lang
ddd has quit [Quit: Leaving.]
davidbalbert is now known as davidbalber|away
ryanlecompte has quit [Remote host closed the connection]
KA__ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
tonni has quit [Remote host closed the connection]
mislav has quit [Ping timeout: 252 seconds]
gearaholic has joined #ruby-lang
rekky has joined #ruby-lang
enebo has quit [Quit: enebo]
array has quit [Ping timeout: 246 seconds]
rekky has quit [Client Quit]
|Vargas| has quit [Quit: ...]
rekky has joined #ruby-lang
mpan has quit [Ping timeout: 240 seconds]
jamjam has joined #ruby-lang
ddd has joined #ruby-lang
davidbalbert is now known as davidbalber|away
andrewhl has joined #ruby-lang
cultureulterior_ has quit [Ping timeout: 264 seconds]
cultureulterior_ has joined #ruby-lang
ruurd has joined #ruby-lang
array has joined #ruby-lang
ryanlecompte has joined #ruby-lang
array is now known as Guest21979
andrewhl has quit [Ping timeout: 248 seconds]
ruurd has quit [Client Quit]
<yorickpeterse> I still think we need matz in here as well
agarcia has quit [Quit: Konversation terminated!]
<yorickpeterse> Hrmpf, Ruby Weekly still not out
<zzak> matz doesn't like irc
<zzak> too distracting
asaaki has quit [Quit: Bye!]
pkrnj has joined #ruby-lang
<unsymbol> but #ruby-lang is always so quiet :3 ;)
chrismcg is now known as zz_chrismcg
<kalleth> thats because everyone is in #ruby
<kalleth> :P
KA__ has quit [Quit: KA__]
<methods> i thought #ruby-lang was always the main one ?
<yorickpeterse> #ruby is where all the hipsters hang out
<wnd> methods, it is, or at least ruby-lang.org links here
<unsymbol> kalleth: wat? really? i should idle there and soak up the ambiance.
wallerdev has joined #ruby-lang
gregmoreno has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
jamjam has quit [Ping timeout: 268 seconds]
saxy has joined #ruby-lang
pkrnj has quit [Remote host closed the connection]
BigO has quit [Remote host closed the connection]
BigO has joined #ruby-lang
BigO has quit [Remote host closed the connection]
geopet has joined #ruby-lang
cyri_ has joined #ruby-lang
BigO has joined #ruby-lang
BigO has quit [Read error: Connection reset by peer]
saxy has quit [Ping timeout: 252 seconds]
BigO has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
elfenars has quit [Quit: elfenars]
richardjapenga has quit [Quit: Leaving]
blazes816 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
saxy has joined #ruby-lang
blazes816 has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
asaaki has joined #ruby-lang
saxy has quit [Ping timeout: 246 seconds]
cardoni has joined #ruby-lang
elfenars has joined #ruby-lang
tjadc has quit [Ping timeout: 240 seconds]
gearaholic has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
agile has joined #ruby-lang
intellitech has joined #ruby-lang
davidbalber|away is now known as davidbalbert
KA__ has joined #ruby-lang
<rue|w> #ruby is where all the bros hang out.
ryanlecompte has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
asaaki has quit [Quit: Bye!]
ryanlecompte has joined #ruby-lang
<zzak> i looked, and i barely recognized anyone in there
<zzak> it's like an alternate ruby universe
GarethAdams has quit [Quit: Leaving...]
<zzak> and by anyone, i mean the same 5 people i talk to in here weren't in there so fuck it
<apeiros_> hm, I should do a comparison again. ~3y ago it had like 80% overlap in people iirc
brianpWins has joined #ruby-lang
GarethAdams has joined #ruby-lang
dpatel has joined #ruby-lang
davidbalbert is now known as davidbalber|away
asaaki has joined #ruby-lang
GarethAdams has quit [Client Quit]
gaveen has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
stiang has quit [Quit: stiang]
blazes816 has joined #ruby-lang
<mistym> Just noticed that IO::NULL/File::NULL aren't in ri.
bfreeman has quit [Quit: bfreeman]
richardjortega has joined #ruby-lang
Croms has quit [Quit: Croms]
dhruvasagar has quit [Ping timeout: 276 seconds]
gmci has joined #ruby-lang
Aiur has joined #ruby-lang
gmci is now known as Guest46106
beckettsfool has joined #ruby-lang
enebo has joined #ruby-lang
enebo has quit [Client Quit]
rue|w has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
andrewhl has joined #ruby-lang
<zzak> mistym: what does it do?
<mistym> zzak: It's a string for whatever the null device on the system is. Makes it easier to redirect streams in a platform-independent way.
thisirs has quit [Remote host closed the connection]
<zzak> looks like its defined under File::Constants
<zzak> rb_file_const("NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
<zzak> can you find it in io.c?
<mistym> zzak: It used to be in IO, got moved into File. Still accessible from IO though, let me check where that's defined in the C...
<zzak> IO includes bits of File?
wallerdev has quit [Quit: wallerdev]
sush24 has quit [Quit: Leaving]
sush24 has joined #ruby-lang
melter has quit [Read error: Connection reset by peer]
asaaki has quit [Ping timeout: 264 seconds]
jkyle has quit [Ping timeout: 276 seconds]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
asaaki has joined #ruby-lang
asaaki has quit [Max SendQ exceeded]
cschwartz has quit [Ping timeout: 268 seconds]
asaaki has joined #ruby-lang
heftig has quit [Quit: leaving]
KA__ has quit [Quit: KA__]
gearaholic has joined #ruby-lang
KA_ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
datanoise has quit [Ping timeout: 240 seconds]
datanoise has joined #ruby-lang
KA_ has quit [Quit: KA_]
dr_bob has quit [Quit: Leaving.]
wallerdev has joined #ruby-lang
KA_ has joined #ruby-lang
areil has quit [Remote host closed the connection]
intellitech has quit [Ping timeout: 248 seconds]
lun_ has joined #ruby-lang
svyatov has quit [Quit: svyatov]
asdfqwer has joined #ruby-lang
dankest has joined #ruby-lang
Muz has quit [Ping timeout: 264 seconds]
gearaholic has quit [Remote host closed the connection]
pnbeast has joined #ruby-lang
justinram has joined #ruby-lang
davidbalbert is now known as davidbalber|away
mistym is now known as mistym_lunch
horsey_ has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
KA_ has quit [Quit: KA_]
heftig has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
Muz has joined #ruby-lang
saxy has joined #ruby-lang
rue|w has joined #ruby-lang
senekis has quit [Quit: leaving o/]
saxy has quit [Ping timeout: 240 seconds]
josephholsten has joined #ruby-lang
rue|w has quit [Ping timeout: 264 seconds]
lsegal has joined #ruby-lang
BigO has quit [Remote host closed the connection]
BigO has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
davidbalber|away is now known as davidbalbert
bfreeman has joined #ruby-lang
davidbalbert is now known as davidbalber|away
havenn has joined #ruby-lang
lun_ has quit [Ping timeout: 252 seconds]
robotmay has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
asdfqwer has quit [Ping timeout: 264 seconds]
KA_ has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
tentimes has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
vlad_starkov has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
apeiros_ has quit [Ping timeout: 256 seconds]
iCharlie has quit [Quit: leaving]
asaaki has quit [Quit: Computer has gone to sleep.]
rekky has quit [Quit: rekky]
lun_ has quit [Ping timeout: 246 seconds]
BigO has quit [Remote host closed the connection]
BigO has joined #ruby-lang
mistym_lunch is now known as mistym
__butch__ has quit [Quit: Leaving.]
apeiros_ has joined #ruby-lang
cschwartz has joined #ruby-lang
KA_ has quit [Quit: KA_]
lun_ has joined #ruby-lang
intellitech has joined #ruby-lang
gearaholic has joined #ruby-lang
slaytanic has quit [Quit: mmmb0p.]
slaytanic has joined #ruby-lang
bluepojo has joined #ruby-lang
__butch__ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
Aiur has quit [Quit: Computer has gone to sleep.]
isale-eko has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
saxy has joined #ruby-lang
saxy has quit [Ping timeout: 260 seconds]
intellitech has quit [Read error: Connection timed out]
intellitech has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
<mistym> I shouldn't be shocked by this, but: http://www.globalnerdy.com/2012/11/15/fizzbuzz-still-works/
saxy has joined #ruby-lang
KA_ has joined #ruby-lang
saxy has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
davidbalber|away is now known as davidbalbert
pdm has quit [Ping timeout: 268 seconds]
Croms has joined #ruby-lang
qwerxy has quit [Quit: offski]
BigO has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
lun_ has quit [Ping timeout: 246 seconds]
datanoise has quit [Ping timeout: 276 seconds]
BigO has joined #ruby-lang
nitti has quit [Remote host closed the connection]
nitti has joined #ruby-lang
zzak has quit [Quit: Lost terminal]
vlad_starkov has quit [Remote host closed the connection]
cschwartz has quit [Ping timeout: 264 seconds]
rebelcan has joined #ruby-lang
zzak has joined #ruby-lang
spuk has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
spuk has joined #ruby-lang
leopard_me has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
Harzilein has joined #ruby-lang
gearaholic has quit [Remote host closed the connection]
bluepojo has quit [Quit: Leaving.]
Hakon has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby-lang
datanoise has joined #ruby-lang
bluepojo has joined #ruby-lang
synthetix has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby-lang
<mistym> So out of curiosity - we have #flat_map, why not #compact_map?
<chris2> its trivial to emulate
Mon_Ouie has quit [Ping timeout: 246 seconds]
ttilley has joined #ruby-lang
saxy has joined #ruby-lang
sailias has quit [Quit: Leaving.]
thinkdevcode has joined #ruby-lang
KA_ has quit [Quit: KA_]
Aiur has joined #ruby-lang
havenn has joined #ruby-lang
saxy has quit [Ping timeout: 260 seconds]
vlad_sta_ has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
havenn has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby-lang
<manveru> iota ~ % ruby -e 'p [1,nil,2,nil,3,nil].each_with_object([]){|e,o| o << e ** 2 if e }'
<manveru> [1, 4, 9]
havenn has joined #ruby-lang
mrsolo has joined #ruby-lang
horsey_ has left #ruby-lang [#ruby-lang]
<heftig> [1,nil,2,nil,3,nil].flat_map { |e| e ? [e ** 2] : [] }
horsey has joined #ruby-lang
<horsey> o.
<horsey> manveru: what's iteration like in go? do they have any slick APIs comparable to the ruby Enumerable
<manveru> no
<apeiros> mistym: should the compacting happen on the return value of the block or on the value yielded to the block?
<erikh> from what I've read/seen it shouldn't be too hard to do though
<manveru> i think eleanor worked hard to get something like enumerable in go, but it's... hard
<erikh> at least, from what I was seeing regarding the interface conventions and so forth
<erikh> but I am no go programmer.
<manveru> yeah, it's just the lack of generics really
<manveru> you can do some basic iterations using for range, but it's harder to do with your own containers
methods1 has joined #ruby-lang
havenn has quit [Ping timeout: 240 seconds]
methods has quit [Read error: Connection reset by peer]
<manveru> so people write stuff like: iter := foo.SomeThing(); item := foo.Item{}; for iter.Next(&item) { doStuffWith(item) }
fushi has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
kain_ has joined #ruby-lang
saxy has joined #ruby-lang
kain has quit [Ping timeout: 255 seconds]
<zenspider> what is that?
<chris2> or a channel :P
cschwartz has joined #ruby-lang
VGoff is now known as VGoff_afk
yxhuvud has quit [Ping timeout: 246 seconds]
BigO has quit [Remote host closed the connection]
dstywho has quit [Quit: Leaving]
BigO has joined #ruby-lang
tentimes has quit [Quit: Beware of programmers who carry screwdrivers.]
saxy has quit [Ping timeout: 255 seconds]
<manveru> chris2: question is, how do you kill the other goroutine if someone just stops reading from your channel and you keep blocking? :P
cschwartz has quit [Ping timeout: 246 seconds]
<chris2> heh ;)
<manveru> so usually that needs at least another one for out-of-band communication :P
<chris2> another channel!
<manveru> anyway, that doesn't solve the problem of avoiding interface{}
<chris2> yes
<chris2> but i'm not sure i want generics :P
<erikh> just use rust?
<manveru> so you're stuck with one enumerable implementation for, say, a btree of ints :P
<erikh> :P
<chris2> erikh: yeah, just another three years until its a stable language :P
<erikh> heh, no argument
<erikh> I am hopeful though.
<manveru> i'll use rust the day they drop ;
<erikh> manveru: that's why we can't have nice things, manveru
<manveru> i don't need nice things
<manveru> i need simple ones :)
melter has joined #ruby-lang
tallship has quit [Quit: Too Hip gotta go - Going..... Down..... Mr. Tyler?]
kurko_ has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
davidbalber|away is now known as davidbalbert
Guest46106 has quit [Ping timeout: 255 seconds]
<chris2> i'm not sure the go syntax became simpler by dropping ;
<manveru> it stopped people from using silly formatting :)
<chris2> language-wise i mean
<chris2> from a programmers pov, sure
<manveru> the language is the same, gofmt inserts the semicolons, no?
gmci has joined #ruby-lang
<chris2> that's logic
<chris2> it doesnt insert semicolons everywhere
<manveru> yeah
gmci is now known as Guest59059
<manveru> there are like 3 rules for where to insert them
<erikh> still not sure why statement endings have anything to do with how good a language is
<chris2> erikh: ; are just a burden if you are used to languages which work fine without them
<erikh> technically bourne shell doesn't have them either
<erikh> and I'm damned sure bourne shell is a colossal pile of ass
<chris2> basic doesnt have them either
<chris2> whats your argument?
<manveru> smalltalk has periods and exclamation marks, i like that
<erikh> well, that it's not a reason to use or not use a language
<chris2> yeah
<rue> Just think how much worse sh would be if it did require them.
<chris2> but if you are making a new language, you can try not to have them
<chris2> because they dont make much sense, to me at least
<manveru> dunno, for me it just shows a lack of difference in goals of me and the rust designers
<manveru> err
<manveru> -lack
<erikh> chris2: the parser gets infinitely easier to write? :)
<zenspider> manveru: AND semicolons ! :P
<erikh> I mean, to be fair though, if that were a priority we'd just all be using lisp anyhow
<manveru> i'm down for lisp :)
qwerxy has joined #ruby-lang
<manveru> god knows why people keep inventing futile languages
<zenspider> I honestly fucking love the semicolons in smalltalk. they make things so much prettier and cleaner to write/read
qwerxy has quit [Client Quit]
<horsey> rue: i got object pipes working: https://gist.github.com/4079769
<zenspider> manveru: you mean like ruby?
<zenspider> or go?
<erikh> dunno. I find a lot of things hard to express in lisp
<erikh> but maybe that's just because I'm bad at it
<manveru> zenspider: yeah
<manveru> i use go mostly because i can't stand the ruby ecosystem right now
<zenspider> how so?
<rue> horsey: Good!
<manveru> it's rails this and AR that, and bundler there, and people get buried in their own shit
<zenspider> I wish ruby would pick up cascading messages like smalltalk
<erikh> manveru: a lot of the reason I keep to chef these days
<erikh> it's nicely partitioned from the majority of the ruby community.
<zenspider> and still a big ball of shit.
<rue> Jefe
<manveru> erikh: yeah, opscode and the gang is decent usually
<erikh> yep
<manveru> i'm looking for a job in that direction sometime next year :)
<erikh> they're not hard to find these days
<erikh> but hit me up if you need help, although I doubt you would
<manveru> we'll see, haven't had much chance to do open-source lately
<manveru> but yeah, things looking up right now
VGoff_afk is now known as VGoff
elfenars has quit [Quit: elfenars]
<horsey> zenspider: what's cascading messages?
qwerxy has joined #ruby-lang
workmad3 has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
<zenspider> horsey: obj msg1; msg2; msg3; msg4
<zenspider> instead of
<zenspider> obj msg1. obj msg2. obj msg3. obj msg4
qwerxy has quit [Client Quit]
saxy has joined #ruby-lang
<horsey> zenspider: we can do that with: obj.tap(&:1msg).tap(&:2msg).tap(&:msg3)
<horsey> zenspider: but we cant pass arguments :P
<horsey> without expanding the tap which looks ugly
<horsey> msg1 even
nitti_ has joined #ruby-lang
<horsey> ok, it looks ugly already
cyri_ has quit [Quit: cyri_]
<chris2> manveru: deploying go is a lot easier ;)
<manveru> chris2: aye
nitti has quit [Ping timeout: 240 seconds]
saxy has quit [Ping timeout: 246 seconds]
fushi has quit [Quit: fushi]
datanoise has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby-lang
qwerxy has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
thinkdevcode has quit [Read error: Connection reset by peer]
thinkdevcode has joined #ruby-lang
<chris2> manveru: ok, the rules are very simple indeed
<chris2> it happens purely in the lexer
slyphon has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
<zzak> chris2: hi
<chris2> hey
kadfr has joined #ruby-lang
<chris2> oh yeah, i'll query you
<zzak> :D
aetcore_ has joined #ruby-lang
aetcore has quit [Ping timeout: 246 seconds]
datanoise has joined #ruby-lang
loincloth has left #ruby-lang [#ruby-lang]
loincloth has joined #ruby-lang
<loincloth> hiyo
tenderlove has joined #ruby-lang
singpolyma has quit [Ping timeout: 260 seconds]
Nisstyre has quit [Quit: Leaving]
strst has joined #ruby-lang
kadfr has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby-lang
<andrewvos> Morning
singpolyma has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
methods1 has quit [Quit: Leaving.]
<horsey> does anyone here have "code generation in action" ?
<horsey> is it any good?
geopet has quit [Quit: geopet]
kain_ is now known as kain
Carnage\ has joined #ruby-lang
saxy has joined #ruby-lang
chendo_ has joined #ruby-lang
<whitequark> you shouldn't really generate code in actions, that's a bit of bad practice, through lots of people do that
<whitequark> it's _way_ better to use class_eval at the app startup.
tonni has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
saxy has quit [Ping timeout: 246 seconds]
chendo_ has quit [Changing host]
chendo_ has joined #ruby-lang
<horsey> whitequark: haha "in action" is just the name of the book series
Mon_Ouie has joined #ruby-lang
<horsey> "java in action", etc
pnbeast has quit [Quit: = Let's blow this popsicle stand.]
thillux has joined #ruby-lang
thillux has quit [Remote host closed the connection]
intellitech has quit [Quit: This computer has gone to sleep]
Nisstyre has joined #ruby-lang
strst has quit [Quit: Page closed]
KA_ has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
workmad3 has quit [Ping timeout: 240 seconds]
Aiur has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
aetcore_ has quit [Ping timeout: 240 seconds]
slyphon has joined #ruby-lang
<zenspider> horsey: that's horrible
<horsey> zenspider: yeah...but i do sometimes do things like this array.tap(&:pop)
<horsey> i rarely chain things though
<zenspider> that's also horrible
aetcore has joined #ruby-lang
<zenspider> I have the herrington book. meh. code generation is passe
aetcore has quit [Remote host closed the connection]
aetcore has joined #ruby-lang
<horsey> zenspider: really? why?
qwerxy has joined #ruby-lang
<zenspider> which? code generation? see whitequark's comment. if you're generating code in a dynamic language you're doing it wrong.
Dan- has joined #ruby-lang
<rue> Code generation as in creating actual source code
richardjortega has quit [Read error: No route to host]
richardjortega has joined #ruby-lang
slyphon has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 248 seconds]
slyphon has joined #ruby-lang
Dan- has quit [Remote host closed the connection]
Dan- has joined #ruby-lang
aetcore_ has joined #ruby-lang
dankest has quit [Read error: Connection reset by peer]
nitti_ has quit [Remote host closed the connection]
<horsey> zenspider: well, doesn't 'hoe' do code generation, in so far as it has templates?
herpless_ has joined #ruby-lang
herpless has quit [Read error: Connection reset by peer]
aetcore has quit [Ping timeout: 260 seconds]
gsav has quit [Ping timeout: 260 seconds]
outoftime has quit [Quit: Leaving]
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
aetcore_ has quit []
saxy has joined #ruby-lang
aetcore has joined #ruby-lang
havenn has joined #ruby-lang
KA_ has quit [Quit: KA_]
<zenspider> horsey: oh please. creating a rakefile and a stubbed out impl/test is not code generation.
KA_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
<horsey> zenspider: ah ok, i wasn't sure about hoe. but 'bones' def. generates code for you (assuming i know what 'code generation' is, which i dont properly, yet :P)
<drbrain> many SOAP libraries perform code generation
davidbalbert is now known as davidbalber|away
<drbrain> take this interface definition and turn it into classes and methods
qwerxy has quit [Quit: offski]
mistym has quit [Remote host closed the connection]
saxy has quit [Ping timeout: 252 seconds]
savage- has joined #ruby-lang
<Spaceghostc2c> whitequark: There are some situations where just doing it at boot won't suffice. Use the lesser of two evals.
<horsey> drbrain: so do you think learning robust code generation is a worthwhile skill?
apeiros has quit []
<drbrain> horsey: for ruby? not really
qwerxy has joined #ruby-lang
<Spaceghostc2c> horsey: I'd say to learn it so you can learn to not use it. My quote on it is "Always use the lesser of two evals" while preferring none at all.
<drbrain> I worked with SOAP (via UPnP) and I metaprogrammed classes from the interface definition, I didn't generate any code
<Spaceghostc2c> drbrain: Ah, so differentiating between the two methods?
<drbrain> yes, the book mentioned previously is about generating files that you then use later
<Spaceghostc2c> Ah.
<Spaceghostc2c> Yeah, I sometimes write generators, but when I do, it's for someone else.
<freedrull> anyone have any idea what kind of error this is? maybe using the wrong url? maybe ssl problemz? https://github.com/yayugu/twitterstream/issues/3
ryanlecompte has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby-lang
<Spaceghostc2c> horsey: drbrain is right. There's metaprogramming and then there's code generation.
datanoise has quit [Ping timeout: 260 seconds]
<horsey> Spaceghostc2c: i need to do actual code generation though, afaik, it's not really runtime stuff, it's generating .rb files
<drbrain> freedrull: the other end hung up on you, doesn't seem to be an SSL certificate problem, you'd get a different error with words like "Certificate" in it
<Spaceghostc2c> horsey: Yeah, there's tools for that, but it's not really a 'skill' you learn, imo.
<Spaceghostc2c> It's a nifty timesaver you can pick up quickly.
<freedrull> drbrain: ok
singpolyma has quit [Ping timeout: 260 seconds]
<Spaceghostc2c> If you're up on your ruby, should take you maybe a day. Two to learn how to do nice gems with generators.
slyphon has quit [Ping timeout: 245 seconds]
<horsey> Spaceghostc2c: well it's pretty easy just to wing it, but i'm wondering if there's any interesting patterns i could use
<Spaceghostc2c> horsey: "Don't suck" is my personal favorite.
<drbrain> horsey: in that case, just get the book
<drbrain> it'll steer you around all the typical pitfalls
<Spaceghostc2c> ^
<drbrain> (I've read it)
<eam> is it safe to modify a Hash while iterating it?
<eam> specifically h.select { |k,v| h[k] = v * 2 }
saxy has joined #ruby-lang
<Spaceghostc2c> I like being a bit function-y without side effects.
<drbrain> eam: that's safe
<eam> drbrain: but not modifying keys right?
<eam> for that I'd have to copy h.keys?
<drbrain> eam: typically
<eam> rad thanks
<drbrain> eam: ruby returns the expected result for this: h = { :a => 1, :b => 2, :c => 3, :d => 4 }; h.each do |k, v| h.delete k if v.even? end; p h
<drbrain> so some operations are OK
<eam> ah interesting
<eam> that's a big no-no in other hashes I've used
justinram has quit [Read error: Connection reset by peer]
swarley has joined #ruby-lang
justinram has joined #ruby-lang
mistym has joined #ruby-lang
justinram has quit [Read error: Connection reset by peer]
mistym has quit [Changing host]
mistym has joined #ruby-lang
justinram has joined #ruby-lang
slyphon has joined #ruby-lang
<drbrain> eam: you can get a "hash modified during iteration" RuntimeError
<drbrain> and a "rehash occurred during iteration" RuntimeErorr
davidbalber|away is now known as davidbalbert
justinram has quit [Read error: Connection reset by peer]
<drbrain> I'm not sure which types of modification causes that, though
davidbalbert is now known as davidbalber|away
justinram has joined #ruby-lang
loincloth has quit [Quit: Page closed]
<freedrull> how can i print out a streaming http response? can i pass a block, and the block gets called whenever more data is recieved?
benanne has quit [Quit: kbai]
dpatel has quit [Ping timeout: 246 seconds]
qwerxy has quit [Quit: offski]
<drbrain> freedrull: ri Net::HTTP has an example, look for "stream"
KA_ has quit [Quit: KA_]
justinram has quit [Remote host closed the connection]
<freedrull> drbrain: awesome, thanks!
qwerxy has joined #ruby-lang
datanoise has joined #ruby-lang
Harzilein has left #ruby-lang [#ruby-lang]
Harzilein has joined #ruby-lang
eyda|mon has joined #ruby-lang
<eyda|mon> how can I tell gem to install a gem locally since I don't have permissions elsewhere?
<Harzilein> any cool way to solve my earlier problem?
<Harzilein> chris2 pointed out that i'm essentially looking for the string equivalent of Array#values_at
Madis has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
wyhaines has quit [Read error: Connection reset by peer]
Aiur has joined #ruby-lang
<zenspider> gem i -i path gemname
<zenspider> or export GEM_HOME=path
<zenspider> gem i gemname
<zenspider> Harzilein: didn't see your earlier problem
wyhaines has joined #ruby-lang
<zenspider> but it sounds like you're essentially looking for the string equivalent of Array#values_at
<zenspider> :P
qwerxy has quit [Quit: offski]
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
datanoise has quit [Ping timeout: 276 seconds]
<Harzilein> zenspider: well, when i have that the rest of my problem will be trivial
<Harzilein> zenspider: so what i have is some json that looks (with some simplification) like this:
<Harzilein> zenspider: [ "Foo\nBar\nBaz", { "p" => 0, "t" => "ul", "l" => "11" }, { "p" => 0, "t" => "li", "l" => 3 }, ... ]
leopard_me has quit [Ping timeout: 245 seconds]
<Harzilein> zenspider: now i want to turn that into "<ul><li>Foo</li>\n...</ul>"
<eyda|mon> zenspider: thank you
BigO has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
<Harzilein> zenspider: so what i want is something that when given an array of offset/length tuples will give me an array of string slices
<zenspider> I... no
<zenspider> just no
<erikh> what do p and l mean in that context?
<Harzilein> zenspider: preferably without having to do calculations in the loop, i.e. i'm aware that i could split the original string at offset + length, subtract that from the next offset, split the tail end etc.
<Harzilein> erikh: position and length
<erikh> yep
<zenspider> just no. there's no ... no.
<zenspider> no
<zenspider> no
<zenspider> no
<erikh> what zenspider just said
nitti has joined #ruby-lang
<erikh> Harzilein: strong suggestion: find a better way to solve the problem you're solving.
<heftig> that's a horrible way of representing xml
<Harzilein> it's not actually xml
<Harzilein> that is the format used in google docs
<zenspider> EVEN BETT.... no
<Harzilein> they start with plaintext, then list the ranges they want to format
<erikh> you can't get a saner format out of them?
<Harzilein> i want to parse it. it's not my idea to represent it that way
<erikh> like... (and I can't believe I'm saying this) HTML?
<Harzilein> erikh: i specifically want the representation they use themselves, not one that got put through some black box converter: because i can't put that one back.