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
bin7me has quit [Read error: Connection reset by peer]
idkazuma has quit [Ping timeout: 256 seconds]
lsegal has joined #ruby-lang
pepper_chico has joined #ruby-lang
agarie has quit [Remote host closed the connection]
hasimo-t has quit [Remote host closed the connection]
justinram has quit [Remote host closed the connection]
hasimo-t has joined #ruby-lang
ryanf has quit [Ping timeout: 248 seconds]
hasimo-t has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
hasimo-t has joined #ruby-lang
<postmodern> how do you specify a ASCII literal String in ruby 2.0?
warreng has joined #ruby-lang
<drbrain> a) # coding: US-ASCII at the top of the file
<drbrain> b) force_encoding
<postmodern> ah ha, thank you
jacktrick has quit [Quit: Leaving]
<drbrain> note that b) only works for US-ASCII, but not for ISO-8859-1
<postmodern> drbrain, is it encoding or coding, or do both work?
<drbrain> for the magic comment, both work
<warreng> is there an Iterator method similar to "find" but which returns the result of the block rather than member? [1,2,3,4,5].find { |j| some_method(j) } <-- if some_method were to return true, that .find() returns 1-5 rather than the result of some_method(j).... i don't want to run some_method twice... and i don't want to do [1,2,3,4,5].map { |j| some_method[j] }.first because this would process all entries rather than stopping once it found someth
sush24 has joined #ruby-lang
<drbrain> warreng: you can use map + break
<drbrain> rather, each + break
<warreng> [1,2,3,4,5].each { |j| some_method[j] && break } ?
<drbrain> .each { |item| item = transform item; break item if condition }
<warreng> "break item" haha
<drbrain> p [1, 2, 3].each { |item| item *= 2; break item if item > 3 }
<drbrain> ordinarily #each would return the original enumerable
ryanf has joined #ruby-lang
<warreng> ahh cool
<warreng> didn't know break worked that way.. thanks :-D
<drbrain> next does too
<drbrain> sometimes I write .map { |item| next unless condition; … }.compact
<drbrain> which is like map + select
<warreng> oh i like that better actually
<warreng> no temp variable
<drbrain> provided, of course, that nil isn't a useful value for whatever you're doing
<warreng> correct
<warreng> transformation method takes input and returns nil or a value i want
<warreng> if it's a value, i don't need to look any further in the enumerable
<warreng> .map { |item| next unless condition; … }.last
<warreng> that'd work too?
<warreng> since compact would still leave an array
<drbrain> I think you would want .compact.last
<drbrain> .map { |item| next unless condition; … } examines all the elements
<drbrain> each + break stops at the matching elements
<warreng> arr = [3,4]; [1,2,3,4,5].each { |i| break i if arr.include?(i) }
<warreng> that's equivalent to .find
<warreng> arr = [3,4]; [1,2,3,4,5].each { |i| obj = arr.include?(i); break obj if obj }
<warreng> is what i want i believe
<drbrain> are you comparing arrays like that?
marr has quit []
<drbrain> if so: p [1, 2, 3, 4, 5] & [3, 4, 6]
<warreng> haha, no
<warreng> substitute that for a "very expensive function"
<drbrain> if you were, ↑ is the shortcut
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
<drbrain> yeah, that sounds like what you want
<warreng> "given a list of urls, execute a method that does an http get, looks at content, and returns nil or a hash of parsed content"
Gues_____ has joined #ruby-lang
<warreng> is more or less the "expensive function"
<drbrain> you can also put that in a method, so blah.each { obj = arr.include? obj; return obj if obj }; return nil
<warreng> where i don't want to do a single unnecessary http-get
<drbrain> yep
<warreng> cool, that each-break works
<warreng> would be nice if it could be done with no temp varaible, but taht's good enough
<drbrain> if you're on ruby 2 you can also use .lazy
Gues_____ has quit [Client Quit]
<drbrain> so urls.lazy.map {…}.find
__butch__ has quit [Quit: Leaving.]
<warreng> drbrain: hrmm... that .map break doesn't quite work... if nothing is found, that returns the original enumerator
Gues_____ has joined #ruby-lang
<drbrain> warreng: yeah, which is why you should wrap it in a method
Gues_____ has left #ruby-lang [#ruby-lang]
<drbrain> urls.each { …; return obj if obj }; return nil
kbouwser has joined #ruby-lang
<drbrain> you can put a nice meaningful name on it too :D
<warreng> thoughts ?
<drbrain> use yield obj instead of &block/block.call(obj)
hasimo-t has quit [Remote host closed the connection]
<drbrain> but, I don't like monkey patching
<drbrain> oh, and you should probably put it in module Enumerable
<drbrain> as an enumerator is enumerable
<warreng> ah
<drbrain> so, while I don't like monkey patching, I do want you to have the best possible monkey patch
<warreng> :-D
sush24 has quit [Quit: This computer has gone to sleep]
plusk has joined #ruby-lang
plusk has quit [Client Quit]
<warreng> i'm not a huge fan of monkey patching either... but that one seems pretty harmless + convenient
lele|w has quit [Ping timeout: 264 seconds]
soknee has joined #ruby-lang
gregmoreno has quit [Ping timeout: 256 seconds]
solars has quit [Ping timeout: 245 seconds]
<andrewvos> warreng: couldn't #include? give you what you need?
sush24 has joined #ruby-lang
<andrewvos> I don't understand
<andrewvos> You and Nate Dog make some good music warreng
<andrewvos> by the way
<zzak> fo sho
<zzak> regulate
TheNotary has quit [Ping timeout: 245 seconds]
<warreng> andrewvos: sorry, i was using arr.include? as an example of what i was trying to accomplish (run a method and get the value)...
<warreng> that's not actually what i was trying to do...
bzalasky has joined #ruby-lang
hasimo-t has joined #ruby-lang
fragamus has joined #ruby-lang
ryanf has quit [Ping timeout: 246 seconds]
bzalasky has quit [Remote host closed the connection]
<andrewvos> what are you trying to do?
<warreng> read the convo above?
<andrewvos> warreng: on an iphone so i am about as useful as a chocolate teapot right now sorry
<andrewvos> zzak: that is a good song
<warreng> Array#find is close but it returns the iterator, not the value returned in the block
<warreng> i want the value itself
<warreng> .map { ... }.compact.first is close but that keeps going after it finds a result... i want the first and then to stop
benanne has quit [Quit: kbai]
<andrewvos> protip: i an drunk too
<andrewvos> am
soknee has quit [Quit: Leaving.]
<lianj> .map{ }.find{|i| i }
<andrewvos> warreng: it seems from your snippet that you are already passing the value in though
<andrewvos> if it is already known to you, what's the problem
<andrewvos> wait if drbrain answered you already then you probably have the right answer
* andrewvos has left the conversation
ryanf has joined #ruby-lang
TheNotary has joined #ruby-lang
bzalasky has joined #ruby-lang
<warreng> andrewvos: imagina an array of URLs.... return to me the HTML of the first URL that contains the word "octopus" using the least amount of HTTP gets
<warreng> iamgine
<warreng> imagine
<warreng> .map would do an http get for every url, but we want to stop when we find the first successful one
arooni-mobile has quit [Read error: Connection reset by peer]
<warreng> .find would stop but returns the url, not the HTML
<warreng> i was hoping there was a magic method that did what i wanted.. answer was no... so i monkey patched enumerable with a .find_value which works like #find but returns the value instead of the key
<lsegal> inject could do it assuming break works inside of it
<lsegal> it wouldn't look as pretty though
oddmunds has quit [Quit: WeeChat 0.3.9.2]
bzalasky has quit [Remote host closed the connection]
lele|w has joined #ruby-lang
<lsegal> warreng [1,2,3].inject(nil) {|_,x| break 10*x if x == 2 }
<andrewvos> warreng: stop trying for the shortest amount of lines do an each and use the return keyword. Get shit done.
sailias has joined #ruby-lang
agarie has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Quit: leaving]
ilyam has quit [Quit: ilyam]
hasimo-t has quit [Remote host closed the connection]
<bougyman> ¢∞˙∆˚¬å∂¨ƒ\´∑®˙
<andrewvos> bougyman: Exactly.
kurko_ has joined #ruby-lang
<andrewvos> don't monkey patch all the things :(
<andrewvos> Kernel is cry
brianpWins has joined #ruby-lang
ilyam has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Averna has quit [Quit: Leaving.]
ryanf has joined #ruby-lang
thufir_ has joined #ruby-lang
volov has quit [Remote host closed the connection]
volov has joined #ruby-lang
brhue has quit [Quit: WeeChat 0.3.8]
volov has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
ilyam has quit [Quit: ilyam]
gregmoreno has quit [Ping timeout: 264 seconds]
volov has joined #ruby-lang
volov has quit [Remote host closed the connection]
volov has joined #ruby-lang
ilyam has joined #ruby-lang
oddmunds has joined #ruby-lang
sush24 has joined #ruby-lang
volov has quit [Ping timeout: 276 seconds]
oddmunds has quit [Client Quit]
oddmunds has joined #ruby-lang
kith_ has joined #ruby-lang
faces has quit [Read error: Connection reset by peer]
face has joined #ruby-lang
kith has quit [Ping timeout: 252 seconds]
cjs226 has quit []
pepper_chico has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
sush24 has quit [Quit: This computer has gone to sleep]
emocakes has quit [Quit: emocakes]
pepper_chico has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
chessguy has joined #ruby-lang
hasimo-t has joined #ruby-lang
lele has quit [Ping timeout: 264 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
lele has joined #ruby-lang
hasimo-t has quit [Ping timeout: 245 seconds]
arooni-mobile has joined #ruby-lang
bradland has quit [Read error: Operation timed out]
havenn has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 260 seconds]
snarfmason has joined #ruby-lang
madish has quit [Quit: ChatZilla 0.9.90 [Firefox 16.0.1/20121026125834]]
dhruvasagar has quit [Ping timeout: 240 seconds]
nanoxd has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 276 seconds]
arooni-mobile has joined #ruby-lang
synthetix has joined #ruby-lang
kotp has quit [Ping timeout: 245 seconds]
vgoff has joined #ruby-lang
punchfacechamp has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
nanoxd has quit [Quit: Linkinus - http://linkinus.com]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
ilyam has quit [Quit: ilyam]
mistym has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
techlife has quit [Ping timeout: 252 seconds]
xxaM has quit [Ping timeout: 260 seconds]
techlife has joined #ruby-lang
xxaM has joined #ruby-lang
znz_v has quit [Quit: kill -QUIT $$]
ryanf has quit [Quit: leaving]
znz_v has joined #ruby-lang
volov has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
bhrgunatha has joined #ruby-lang
ivanoats has joined #ruby-lang
havenn has quit [Remote host closed the connection]
methods has joined #ruby-lang
__butch__ has joined #ruby-lang
bhrgunatha has quit [Quit: ChatZilla 0.9.90 [Firefox 22.0a1/20130322031028]]
jaska has quit [Read error: Operation timed out]
havenwood has joined #ruby-lang
breakingthings has joined #ruby-lang
bnagy has quit [Ping timeout: 252 seconds]
zigidias has quit [Read error: Connection reset by peer]
__butch__ has quit [Quit: Leaving.]
macmartine has joined #ruby-lang
knu has quit [Ping timeout: 256 seconds]
bhrgunatha has joined #ruby-lang
ilyam has joined #ruby-lang
knu has joined #ruby-lang
jaska has joined #ruby-lang
linc01n has quit [Quit: ZNC - http://znc.in]
synthetix has quit [Ping timeout: 258 seconds]
bnagy has joined #ruby-lang
jxie has quit [Quit: leaving]
jonahR has joined #ruby-lang
agarie has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
hasimo-t has joined #ruby-lang
ryanf has joined #ruby-lang
fire has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
tcopp has joined #ruby-lang
fire has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
linc01n has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wmoxam has quit [Ping timeout: 240 seconds]
nertzy2 has quit [Ping timeout: 264 seconds]
AndChat| has quit [Ping timeout: 258 seconds]
Banistergalaxy has joined #ruby-lang
brianpWins has joined #ruby-lang
tcopp has quit [Ping timeout: 240 seconds]
agarie has joined #ruby-lang
breakingthings has quit []
chendo_ has joined #ruby-lang
bryanl has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
chendo_ has quit [Remote host closed the connection]
bryanl has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
volov has quit [Remote host closed the connection]
volov has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
volov has quit [Ping timeout: 246 seconds]
dankest has joined #ruby-lang
tris has quit [Ping timeout: 260 seconds]
bhrgunatha has quit [Quit: ChatZilla 0.9.90 [Firefox 22.0a1/20130322031028]]
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
swav has quit [Ping timeout: 258 seconds]
hasimo-t has quit [Remote host closed the connection]
intellitech has quit [Ping timeout: 246 seconds]
fire has quit [Quit: WeeChat 0.4.0]
Banistergalaxy has quit [Ping timeout: 258 seconds]
Banistergalaxy has joined #ruby-lang
techlife has quit [Ping timeout: 264 seconds]
intellitech has joined #ruby-lang
fire has joined #ruby-lang
hasimo-t has joined #ruby-lang
techlife has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
pepper_chico has quit [Quit: I'm Quitting.]
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]
ilyam has quit [Quit: ilyam]
arca0 has joined #ruby-lang
bart has joined #ruby-lang
bart is now known as Guest88979
fire has quit [Quit: WeeChat 0.4.0]
concernedcitizen has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
zmike has joined #ruby-lang
concernedcitizen has quit [Remote host closed the connection]
Kuukunen has quit [Ping timeout: 252 seconds]
solars has joined #ruby-lang
Kuukunen has joined #ruby-lang
ryanf has quit [Ping timeout: 245 seconds]
zmike has quit [Quit: Выходжу]
tbuehlmann has joined #ruby-lang
swav has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
marr has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
hasimo-t has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
swav has quit [Ping timeout: 245 seconds]
swav has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
kbouwser has quit [Quit: Textual IRC Client: www.textualapp.com]
adambeynon has joined #ruby-lang
valeri_uF0 has joined #ruby-lang
meise_ has joined #ruby-lang
Spaceghost|cloud has quit [Ping timeout: 252 seconds]
lectrick has quit [Ping timeout: 252 seconds]
grandy has quit [Ping timeout: 248 seconds]
meise has quit [Read error: Connection reset by peer]
beawesomeinstead has quit [Ping timeout: 252 seconds]
valeri_ufo has quit [Read error: Connection reset by peer]
scrr_ has quit [Ping timeout: 248 seconds]
scrr has joined #ruby-lang
L0rdShrek____ has quit [Ping timeout: 252 seconds]
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
tbuehlmann has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
tonni has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
hasimo-t has joined #ruby-lang
ryanf has quit [Ping timeout: 246 seconds]
jxie has joined #ruby-lang
jxie has quit [Client Quit]
rwk1_ has joined #ruby-lang
rwk1 has quit [Ping timeout: 276 seconds]
jxie has joined #ruby-lang
dc5ala has joined #ruby-lang
bzalasky has joined #ruby-lang
maxmanders has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
xcombelle has joined #ruby-lang
jxie has quit [Ping timeout: 260 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
r0bglees0n has quit [Read error: Operation timed out]
maxmanders has joined #ruby-lang
dankest has quit [Quit: Leaving...]
maxmanders has quit [Client Quit]
maxmanders has joined #ruby-lang
workmad3 has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 248 seconds]
arooni-mobile has joined #ruby-lang
<yorickpeterse> morning
workmad3 has quit [Ping timeout: 245 seconds]
<charliesome> yorickpeterse: mornink
<yorickpeterse> Such a lovely day today...if it wasn't for the strong wind and low temperature
<charliesome> sounds like a good day
pabs has quit [Read error: Operation timed out]
<yorickpeterse> apparently it's around 5C outside
<charliesome> ouch
<andrewvos> yorickpeterse: Snowing here :)
<yorickpeterse> heh, fucking wunderground
<yorickpeterse> Search for "Busan, South Korea", click on the calendar for April, it redirects me to a city for Japan
sush24 has joined #ruby-lang
<yorickpeterse> riiiiiiight, they still write it with a P
<tbuehlmann> -4,1°C here, sun is shining
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<yorickpeterse> god damn it, it's already 14C in SK :<
<yorickpeterse> it better stays that way when I get there
<andrewvos> I miss warmth
maxmanders has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> yeah
<yorickpeterse> fuck this weather
<andrewvos> yorickpeterse: Going to Slovakia?
* rue smacks andrewvos a few lines higher
sush24 has quit [Ping timeout: 260 seconds]
<andrewvos> oh shit
<andrewvos> Korea? Cool!
<yorickpeterse> lol, somewhat of a difference
<yorickpeterse> only about 9000 KM
<yorickpeterse> But yeah, SK
<yorickpeterse> if anybody needs some SNSD videos/CDs I'm not getting them
maxmanders has joined #ruby-lang
sush24 has joined #ruby-lang
gustavnils has joined #ruby-lang
<andrewvos> can you buy me some dvdss?
<rue> yorickpeterse: Using ROK would probably be less confusing…
maxmanders has quit [Quit: Computer has gone to sleep.]
<rue> Or even KOR
Spaceghost|cloud has joined #ruby-lang
L0rdShrek____ has joined #ruby-lang
grandy has joined #ruby-lang
lectrick has joined #ruby-lang
sarclops has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
<andrewvos> How about South Korea?
sarclops has quit [Quit: sarclops]
workmad3 has joined #ruby-lang
madb055 has joined #ruby-lang
tonni has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
kain has quit [Ping timeout: 256 seconds]
<yorickpeterse> rue: FINE, GLORIOUS COUNTRY OF COREA
blacktulip has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
benanne has joined #ruby-lang
idkazuma has joined #ruby-lang
guns has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
TheNotary has quit [Ping timeout: 252 seconds]
toretore has joined #ruby-lang
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
sepp2k has joined #ruby-lang
TheNotary has joined #ruby-lang
pabs has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
<rue> Khik Corea
<yorickpeterse> whitequark: https://twitter.com/xnutsive/status/315427278106542080/photo/1 why are you burning your phone?
<yorickpeterse> also why is it smashed
TheNotary has quit [Ping timeout: 260 seconds]
<whitequark> not burning it
<whitequark> I am burning a candle on top of it
xxaM has quit [Quit: ZzZ]
dhruvasagar has joined #ruby-lang
<whitequark> and it is smashed because it could not sustain a collision with a wall
<yorickpeterse> is this some crazy ritual needed to understand parse.y?
<whitequark> burning candles, yes, is a part of it
<yorickpeterse> ha
bougyman has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<andrewvos> hahaha
alessio_rocco has joined #ruby-lang
guns has quit [Quit: guns]
kezek has joined #ruby-lang
<yorickpeterse> also for some reason I always expected whitequark to be bald
<yorickpeterse> though I have no idea why
<yorickpeterse> whitequark: your posture is terrible btw, fix that
<yorickpeterse> you don't want to end up looking like this guy http://howifeelwhen.com/wp-content/uploads/2012/02/quasimodo.jpg
<whitequark> meh.
<yorickpeterse> and if you do, please don't sleep next to dead bodies
<whitequark> I'm not SCP-447
dhruvasagar has quit [Read error: Operation timed out]
<yorickpeterse> heh
<yorickpeterse> No, in the original story Quasimodo slept next to Esmeraldas dead body for quite a long time
<yorickpeterse> until he died himself I believe
TheNotary has joined #ruby-lang
<yorickpeterse> fuckit, vidya games
dhruvasagar has joined #ruby-lang
Guest88979 has quit [Remote host closed the connection]
MaddinXx_ has joined #ruby-lang
kezek has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130227155259]]
bart has joined #ruby-lang
bart has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
<andrewvos> yorickpeterse: what ya playing?
aderyabin has joined #ruby-lang
shirokuro11 has joined #ruby-lang
aderyabin has quit [Client Quit]
bougyman has joined #ruby-lang
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
maxmanders has joined #ruby-lang
tonni has joined #ruby-lang
maxmanders has quit [Client Quit]
tcopp has joined #ruby-lang
<injekt> helo
<rue> andrewvos: Sims3
madb055 has quit [Ping timeout: 258 seconds]
<charliesome> i have stumbled into a dark corner of mri
<charliesome> send help
<injekt> all 5 corners are dark
<whitequark> charliesome: are there non-dark corners
<whitequark> also my company will soon purchase the iso standard for me
<charliesome> nice!
<whitequark> yea
flexd has quit [Quit: WeeChat 0.4.0]
arca0 has quit [Remote host closed the connection]
jonahR has quit [Ping timeout: 256 seconds]
madb055 has joined #ruby-lang
maxmanders has joined #ruby-lang
tcopp has quit [Ping timeout: 252 seconds]
<charliesome> so yeah debugging this segfault issue
maxmanders has quit [Client Quit]
flexd has joined #ruby-lang
arooni-mobile has quit [Remote host closed the connection]
alessio_rocco has quit [Remote host closed the connection]
weeb1e_ has quit [Read error: Connection reset by peer]
achiu has quit [Quit: WeeChat 0.4.0]
weeb1e has joined #ruby-lang
bart has joined #ruby-lang
bart is now known as Guest11426
Guest11426 has quit [Ping timeout: 258 seconds]
kain has joined #ruby-lang
ruby-lang407 has joined #ruby-lang
achiu has joined #ruby-lang
arca0 has joined #ruby-lang
achiu has quit [Client Quit]
achiu has joined #ruby-lang
achiu has quit [Client Quit]
achiu has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
achiu has quit [Client Quit]
publicvoid_ has quit [Remote host closed the connection]
ruby-lang407 has quit [Ping timeout: 245 seconds]
achiu has joined #ruby-lang
kristofferrr has joined #ruby-lang
<kristofferrr> Is it customary to include VCR cassettes for testing with source code or is it better to just git ignore them?
glebm has joined #ruby-lang
sailias has joined #ruby-lang
Wardrop has quit [Quit: Wardrop]
sush24 has joined #ruby-lang
<whitequark> kristofferrr: that could make distribution cumbersome
<whitequark> physically mailing VCR cassettes...
<whitequark> and think of CI!
<whitequark> even if you mail them the cassettes, they will just ignore them!
kain has quit [Quit: exit]
<kristofferrr> :P They're fixtures for web calls.
wallerdev has joined #ruby-lang
gearaholic has joined #ruby-lang
jaska has quit [Quit: leaving]
postmodern has quit [Quit: Leaving]
hasimo-t has quit [Remote host closed the connection]
hasimo-t has joined #ruby-lang
soknee has joined #ruby-lang
<whitequark> kristofferrr: yeah I know
<whitequark> that's why I have told you about CI
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<injekt> what's with all the twitter hate for sinatra?
jaska has joined #ruby-lang
sailias has quit [Quit: Leaving.]
workmad3 has joined #ruby-lang
thufir_ has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
soknee has quit [Quit: Leaving.]
synthetix has joined #ruby-lang
jxie has quit [Ping timeout: 258 seconds]
volov has joined #ruby-lang
Squarepy has joined #ruby-lang
synthetix has quit [Ping timeout: 240 seconds]
Squarepy has quit [Changing host]
Squarepy has joined #ruby-lang
shirokuro11 has quit [Remote host closed the connection]
<zzak> injekt: what happened?
JohnBat26 has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
judofyr has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
judofyr has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
glebm has quit [Quit: Computer has gone to sleep.]
judofyr has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
glebm has joined #ruby-lang
davidbalber|away is now known as davidbalbert
segy has quit [Quit: ZNC - http://znc.in]
segy has joined #ruby-lang
maxmanders has joined #ruby-lang
kurko_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
<andrewvos> people hate sinatra?
<whitequark> my boss does
sailias has joined #ruby-lang
srbaker has joined #ruby-lang
<lianj> why?
<lianj> he read a rails book?
benlovell has joined #ruby-lang
<whitequark> he runs a rails shop
<whitequark> but that doesn't matter
<zzak> whats there to hate, honestly? its such a small library
<zzak> and it stays out of your way, just doing what it does
<whitequark> the problem with it is that it's way too small
<zzak> too small for what
<whitequark> for anything serious you'll just write an incomplete and buggy clone of rails, or parts thereof
<zzak> so heroku, github, those apps arent serious?
<zzak> and buggy?
<zzak> so because someone develops a buggy clone of something with it, that makes it bad?
<whitequark> meh why are you arguing with ME
<zzak> its flawed
<zzak> i imagine we've both witnessed some pretty awful rails apps out there, but does that mean rails is bad?
<whitequark> partly, yes
<whitequark> but I don't hate sinatra
<whitequark> irclogger runs on it
maxmanders has quit [Quit: Computer has gone to sleep.]
<zzak> i just dont see why anyone would
<zzak> unless they were using it incorrectly
<zzak> whitequark: i didnt say you did, but i just dont understand the logic
<rue> Why is it an argument?
<rue> Sinatra is what it is. If you need more, then you have Padrino
<zzak> what if you need less?
<rue> less(1)
<zzak> i would have also accepted (a) net-http and (b) rue
<nmeum> zzak: if you need less you use cuba
<zzak> or just plain old rack
<nmeum> yep
maxmanders has joined #ruby-lang
samuelkadolph has quit [Quit: Quitting]
samuelkadolph has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
samuelkadolph has quit [Client Quit]
davidbalber|away is now known as davidbalbert
samuelkadolph has joined #ruby-lang
yannis has joined #ruby-lang
yannis has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
srbaker has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
Nisstyre has quit [Ping timeout: 264 seconds]
benlovell has quit [Quit: Zzz]
mistym has joined #ruby-lang
kurko_ has joined #ruby-lang
kurko_ has quit [Max SendQ exceeded]
kurko_ has joined #ruby-lang
tcopp has joined #ruby-lang
gearaholic has quit [Remote host closed the connection]
synthetix has joined #ruby-lang
Nisstyre has joined #ruby-lang
tomzx_mac has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby-lang
sailias has quit [Client Quit]
sailias has joined #ruby-lang
sailias has quit [Client Quit]
sailias has joined #ruby-lang
madb055 has quit [Ping timeout: 258 seconds]
MaddinXx_ has joined #ruby-lang
sailias1 has joined #ruby-lang
sailias has quit [Read error: Connection reset by peer]
volov_ has joined #ruby-lang
<yorickpeterse> I write my web apps in ASM for performance
<yorickpeterse> I target x86 for maximum performance, both in terms of runtime and development time
dhruvasagar has quit [Ping timeout: 258 seconds]
volov has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
bart has joined #ruby-lang
bart is now known as Guest40747
hashbangchris has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
bantic has joined #ruby-lang
jxie has joined #ruby-lang
_dumfries has quit [Excess Flood]
bzalasky has joined #ruby-lang
symm- has joined #ruby-lang
_dumfries has joined #ruby-lang
thufir_ has joined #ruby-lang
benlovell has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
Nisstyre has quit [Ping timeout: 245 seconds]
<andrewvos> Current status: New Raspberry Pi, Raspbmc, External HD and new LED TV :)
dhruvasagar has joined #ruby-lang
<andrewvos> Holy shit this little thing is cool
jxie has quit [Read error: Operation timed out]
jxie has joined #ruby-lang
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
Nisstyre has joined #ruby-lang
madb055 has joined #ruby-lang
benlovell has quit [Quit: Zzz]
kurko_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
<ddfreyne> drbrain: I’m guessing you don’t have access to http://rdoc.sourceforge.net/, right? I accidentally ended up on that site a while ago and was massively confused at first
nmeum has quit [Quit: WeeChat 0.3.8]
bzalasky has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
benlovell has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 248 seconds]
mytrile has joined #ruby-lang
bantic has quit [Quit: bantic]
swav has quit [Remote host closed the connection]
benlovell has quit []
nmeum has joined #ruby-lang
synthetix has quit [Ping timeout: 258 seconds]
warreng has left #ruby-lang [#ruby-lang]
thufir_ has quit [Quit: Leaving.]
davidbalbert is now known as davidbalber|away
kurko_ has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
kristofferrr has quit [Quit: ❤]
voker57 has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 256 seconds]
Guest40747 has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
Gue______ has joined #ruby-lang
kurko_ has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
mytrile has quit [Remote host closed the connection]
bart has joined #ruby-lang
madb055 has quit [Ping timeout: 258 seconds]
bart is now known as Guest52602
mytrile has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
bzalasky has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
Guest52602 has quit [Remote host closed the connection]
<drbrain> ddfreyne: I don't, but someday I'll be able to get Dave Thomas + network + laptop together to get access to the sf rdoc project
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
maxmanders has joined #ruby-lang
havenwood has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
kain has joined #ruby-lang
srbaker has joined #ruby-lang
symm- has quit [Quit: Leaving...]
workmad3 has joined #ruby-lang
swav has joined #ruby-lang
<injekt> zzak: just stuff on twitter about it, I didn't think there was much to hate..
sush24 has quit [Quit: This computer has gone to sleep]
MaddinXx_ has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
volov_ has quit [Remote host closed the connection]
volov has joined #ruby-lang
dhruvasagar has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
<zzak> injekt: oh well
hnanon has joined #ruby-lang
volov has quit [Ping timeout: 260 seconds]
<zzak> if i want to use unicode characters in a test, does the test file have to be encoded in utf-8 as well?
<zzak> seems like an obvious question
cored has quit [Read error: Operation timed out]
schroedinbug has quit [Ping timeout: 260 seconds]
dc5ala has quit [Quit: Ex-Chat]
cored has joined #ruby-lang
sush24 has joined #ruby-lang
<zzak> oh, rvm and rbx can die
symm- has joined #ruby-lang
<injekt> :D
<injekt> rvm has cost me so many hours
<zzak> looks like theres already a ticket open for it
sush24 has quit [Ping timeout: 260 seconds]
<zzak> get this one all the time
<injekt> ruby-head shouldn't that be 2.1?
dhruvasagar has quit [Ping timeout: 258 seconds]
<zzak> it might actually be that travis needs to update rvm
<zzak> im not sure
<injekt> yeah ruby-head should in no way be 2.0.0dev
<injekt> that's like ruby-yesterday
<drbrain> injekt: I think there are arcane rules for when the numbers get bumped
<injekt> drbrain: heh yeah probably
<zzak> and rbx-19mode always gives me a regex error on my rdoc related gems
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
<injekt> joy
<zzak> i would file a ticket on travis for the rvm thing, but im not sure where to go
<zzak> too many repos on their org
maxmanders has quit [Client Quit]
<injekt> I'd just ping khaase
mytrile has quit [Remote host closed the connection]
<zzak> khaase: help me rkh, you're my only hope
sush24 has joined #ruby-lang
mytrile has joined #ruby-lang
<ddfreyne> khaase: kitten lives are in danger!
symm- has quit [Quit: Leaving...]
volov has joined #ruby-lang
schroedinbug has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
volov has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
arca0 has quit [Ping timeout: 240 seconds]
volov has joined #ruby-lang
volov has quit [Ping timeout: 258 seconds]
Ridders24 has joined #ruby-lang
macmartine has joined #ruby-lang
<Ridders24> evening all
maxmanders has quit [Quit: Computer has gone to sleep.]
volov has joined #ruby-lang
gozes has joined #ruby-lang
volov has quit [Remote host closed the connection]
volov has joined #ruby-lang
volov has quit [Ping timeout: 260 seconds]
bart has joined #ruby-lang
bart is now known as Guest73666
Guest73666 has quit [Read error: Operation timed out]
g0bl1n has joined #ruby-lang
r0bglees0n has joined #ruby-lang
tonni has joined #ruby-lang
arca0 has joined #ruby-lang
ilyam has joined #ruby-lang
<whitequark> yorickpeterse: a teaser: https://gist.github.com/whitequark/4c84c62b26d6a0e0618a
glebm has joined #ruby-lang
davidbalber|away is now known as davidbalbert
dankest has joined #ruby-lang
agarie has quit [Remote host closed the connection]
kain has quit [Quit: exit]
kurko_ has quit [Ping timeout: 252 seconds]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
kurko_ has joined #ruby-lang
<hnanon> Hello...
<hnanon> Anyone know how I can include empty pairs from merged hashes?
Squarepy has quit [Quit: Leaving]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
kurko_ has quit [Quit: Computer has gone to sleep.]
g0bl1n has quit [Quit: g0bl1n]
<whitequark> yorickpeterse: accurately locating tokens in nested heredocs: http://showterm.io/361a8bcbe709c88e3cbc0
tbuehlmann has quit [Remote host closed the connection]
glebm has quit [Quit: Computer has gone to sleep.]
<rue> hnanon: What does that mean?
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<hnanon> rue: I have three hashtables and each has a single pair.
xcombelle has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.]
<hnanon> I merged the first two, then merged that result with the third.
<hnanon> All three have the same key.
glebm has joined #ruby-lang
<hnanon> The problem is that if there is an empty pair in one of the hashes, nothing is returned; I need to return 0.00, for example.
Gue______ has quit [Quit: Textual IRC Client: www.textualapp.com]
<rue> Maybe use a block
wallerdev has quit [Quit: wallerdev]
<rue> Also, code is much simpler for explanations
tbuehlmann has joined #ruby-lang
wallerdev has joined #ruby-lang
<rue> {a: 1}.merge({a: 2}).merge({a: nil}) I assume?
glebm has quit [Quit: Computer has gone to sleep.]
Axsuul has joined #ruby-lang
glebm has joined #ruby-lang
<injekt> drbrain: hah
sush24 has quit [Quit: This computer has gone to sleep]
glebm has quit [Quit: Computer has gone to sleep.]
countdig1 has joined #ruby-lang
glebm has joined #ruby-lang
glebm has quit [Client Quit]
glebm has joined #ruby-lang
AndChat| has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 252 seconds]
Weems has quit [Read error: Connection reset by peer]
jgoss has joined #ruby-lang
brianpWins has joined #ruby-lang
jgoss has quit [Changing host]
jgoss has joined #ruby-lang
intellitech has quit [Quit: intellitech]
Weems has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
idkazuma has joined #ruby-lang
marr has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
soknee has joined #ruby-lang
glebm has joined #ruby-lang
arca0 has quit [Remote host closed the connection]
<yorickpeterse> whitequark: what is this madness
soknee has quit [Quit: Leaving.]
soknee has joined #ruby-lang
dankest has quit [Quit: Leaving...]
soknee has quit [Quit: Leaving.]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
glebm has quit [Quit: Computer has gone to sleep.]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
sheerun has joined #ruby-lang
sheerun has quit [Excess Flood]
sheerun has joined #ruby-lang
sheerun has quit [Max SendQ exceeded]
bzalasky has joined #ruby-lang
agarie has joined #ruby-lang
volov has joined #ruby-lang
soknee has joined #ruby-lang
glebm has joined #ruby-lang
zygen_ has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
soknee has quit [Quit: Leaving.]
xxaM has joined #ruby-lang
glebm has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
kain has joined #ruby-lang
bart has joined #ruby-lang
bart is now known as Guest90528
jxweng has joined #ruby-lang
Guest90528 has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 264 seconds]
glebm has joined #ruby-lang
hasimo-t has quit [Ping timeout: 258 seconds]
soknee has joined #ruby-lang
soknee has quit [Client Quit]
jxweng has quit [Remote host closed the connection]
<hnanon> Anyone available to help?
brianpWins has quit [Quit: brianpWins]
glebm has quit [Quit: Computer has gone to sleep.]
mytrile has quit [Remote host closed the connection]
glebm has joined #ruby-lang
<wnd> can't tell without knowing the details
corundum has quit [Read error: Connection reset by peer]
thufir_ has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
glebm has quit [Client Quit]
tcopp has quit [Ping timeout: 246 seconds]
MartynKe- has quit [Quit: http://www.martynkeigher.com]
drbrain has quit [Ping timeout: 245 seconds]
thorncp has quit [Ping timeout: 245 seconds]
d_roge has quit [Ping timeout: 245 seconds]
priodev has quit [Ping timeout: 264 seconds]
corundum has joined #ruby-lang
jashank has quit [Read error: Connection reset by peer]
jashank has joined #ruby-lang
drbrain has joined #ruby-lang
<andrewvos> hnanon: what you need dude?
DT|Vinni has joined #ruby-lang
thorncp has joined #ruby-lang
d_roge has joined #ruby-lang
thufir_ has quit [Ping timeout: 256 seconds]
MartynKeigher has joined #ruby-lang
DT|Vinni has quit [Client Quit]
sepp2k has joined #ruby-lang
priodev has joined #ruby-lang
hasimo-t has joined #ruby-lang
Ridders24 has quit [Quit: Leaving]
idkazuma has quit [Remote host closed the connection]
gozes has quit [Ping timeout: 264 seconds]
idkazuma has joined #ruby-lang
hasimo-t has quit [Remote host closed the connection]
hasimo-t has joined #ruby-lang
bin7me has joined #ruby-lang
ilyam has quit [Quit: ilyam]
Banistergalaxy has joined #ruby-lang
macmartine has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
<soahccc> Hmmm any idea where to get an appealing yardoc style? The default is awful :(
nertzy has joined #ruby-lang
gozes has joined #ruby-lang
gozes is now known as Guest2981
Guest2981 has quit [Client Quit]
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
La0fer has joined #ruby-lang
marr has quit []
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
toretore has quit [Quit: Leaving]
Wardrop has joined #ruby-lang
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
<rue> soahccc: Have you tried yard sales?
mistym is now known as mistym_away
bart has joined #ruby-lang
bart is now known as Guest42542
corundum has quit [Read error: Connection reset by peer]
corundum has joined #ruby-lang
Guest42542 has quit [Ping timeout: 240 seconds]
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby-lang
davidbalbert is now known as davidbalber|away
gearaholic has joined #ruby-lang
brianpWins has joined #ruby-lang
postmodern has joined #ruby-lang
gearaholic has quit [Client Quit]
gearaholic has joined #ruby-lang
havenwood has joined #ruby-lang
dabradley has quit [Read error: Operation timed out]
mistym_away has quit [Remote host closed the connection]
mistym_away has joined #ruby-lang
thone_ has joined #ruby-lang
dabradley has joined #ruby-lang
gearaholic has quit [Remote host closed the connection]
thone has quit [Ping timeout: 252 seconds]
agarie has quit [Remote host closed the connection]
<hnanon> How can I include a default pair for empty k/v's in a hash?
<lianj> not sure i follow