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
havenn has joined #ruby-lang
outoftime has quit [Quit: Leaving]
ottbot has quit [Ping timeout: 264 seconds]
kgrz has joined #ruby-lang
jonahR has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 255 seconds]
marcostoledo has joined #ruby-lang
kgrz has quit [Ping timeout: 248 seconds]
jtoy has quit [Quit: jtoy]
mercwithamouth has joined #ruby-lang
jonahR has quit [Quit: jonahR]
mercwithamouth has quit [Ping timeout: 264 seconds]
dorei has joined #ruby-lang
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
jacktrick has quit [Quit: Leaving]
jtoy has joined #ruby-lang
baustin has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
<headius> does this fail for anyone else? https://gist.github.com/headius/5043649
anonymuse has quit [Quit: Leaving...]
<headius> something about iterating results via setpwent+getpwent seems to be changing future results
krohrbaugh has joined #ruby-lang
duderonomy has joined #ruby-lang
snarfmason has joined #ruby-lang
<headius> might be specific to OS X or Mountain Lion
<headius> ahhh
justinra_ has quit [Remote host closed the connection]
Qfwfq has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
marcostoledo has quit [Ping timeout: 248 seconds]
sn0wb1rd_ has joined #ruby-lang
sn0wb1rd has quit [Ping timeout: 264 seconds]
sn0wb1rd_ is now known as sn0wb1rd
<chris2> >> "fooFOO" =~ /(...)\1/i
<chris2> => 0
<chris2> thats neat :P
nXqd has quit [Ping timeout: 276 seconds]
methods has joined #ruby-lang
jbsan has joined #ruby-lang
davidbalbert is now known as davidbalber|away
brianpWins has quit [Quit: brianpWins]
mjio has quit []
mjio has joined #ruby-lang
mercwithamouth has joined #ruby-lang
klebervirgilio has joined #ruby-lang
mwjcomputing has joined #ruby-lang
duderonomy has quit [Quit: duderonomy]
krohrbaugh has quit [Quit: Leaving.]
mwjcomputing has quit [Client Quit]
KA_ has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 246 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
jbsan has quit [Read error: Connection reset by peer]
jtoy has quit [Quit: jtoy]
mwjcomputing has joined #ruby-lang
krohrbaugh has joined #ruby-lang
<chris2> i think ruby encoding support has been defined only to drive me crazy
<whitequark> :(
<chris2> >> "foo".force_encoding("Windows-1252").encode("UTF-8")
<chris2> => "foo"
<chris2> erm, 1258
<whitequark> hm, what is surprising here?
<chris2> >> "f\xE4".force_encoding("Windows-1258").encode("UTF-8")
<chris2> Encoding::ConverterNotFoundError: code converter not found (Windows-1258 to UTF-8)
<chris2> it only detects the converter is not found when it needs it :>
<whitequark> ugh
<chris2> and i can't add new aliases without dropping into c :>
spuk has quit [Ping timeout: 244 seconds]
kogent has quit [Quit: kogent]
<whitequark> chris2: ffi
<whitequark> but that's evil
<chris2> meh
<drbrain> Fiddle?
<whitequark> or ^
sebastiansier has joined #ruby-lang
kurko_ has joined #ruby-lang
spuk has joined #ruby-lang
sailias has joined #ruby-lang
seoaqua has joined #ruby-lang
jbsan has joined #ruby-lang
mwjcomputing has left #ruby-lang ["Leaving"]
mercwithamouth has quit [Ping timeout: 248 seconds]
mjio has quit []
pr0ton has quit [Quit: pr0ton]
Mon_Ouie has quit [Ping timeout: 248 seconds]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
earthquake has quit [Quit: earthquake]
brianpWins has joined #ruby-lang
sebastiansier has quit [Ping timeout: 246 seconds]
sebastiansier has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
mercwithamouth has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
gregmoreno has quit [Read error: Operation timed out]
bantic has quit [Quit: bantic]
<ged> Hey @drbrain, you around/have time for an RDoc question?
<drbrain> ged: what's up?
pr0ton has joined #ruby-lang
<ged> I'm trying to use the 'setup_options' generator method for a custom generator, but the example seems to assume that RDoc::Options has a spell_dictionary= method...
<ged> Is there a way to add the attribute for a custom option? I can't seem to find one.
sailias has quit [Quit: Leaving.]
<drbrain> you probably have rdoc-spellcheck installed which uses the same API
<drbrain> oh,
<drbrain> hold on
<ged> I get: undefined method `spell_dictionary=' for #<RDoc::Options:0x007fcce42234a0>
<drbrain> looks like my example is incomplete
<ged> But rdoc-spellcheck probably has the example of how to do that?
<drbrain> sorry about that
<ged> No worries.
<ged> Just thought I was missing something obvious.
sebastiansier has quit [Remote host closed the connection]
<ged> Ah, gotcha. Thanks!
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
headius has quit [Quit: headius]
lcdhoffman has quit [Quit: lcdhoffman]
sailias has joined #ruby-lang
jtoy has joined #ruby-lang
musl has quit [Quit: WeeChat 0.3.9.2]
tenderlove has quit [Remote host closed the connection]
<seoaqua> hi all, how to define the CSV.foreach encoding? ENV['LANG']="zh_CN.UTF-8" doesn't work, cuz crond changes the system's default encoding in /etc/locale
brianpWins has quit [Quit: brianpWins]
<drbrain> ged: ok, I updated the documentation: https://github.com/rdoc/rdoc/commit/6608646f
<drbrain> dinner time
nXqd has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
__BigO__ has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
mjio has joined #ruby-lang
nXqd has quit [Ping timeout: 256 seconds]
<chris2> hm. any idea why IO.popen would not respect :rlimit_cpu?
<chris2> it seems to work for IO.system...
__BigO__ has joined #ruby-lang
jtoy has quit [Quit: jtoy]
musl has joined #ruby-lang
jtoy has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
rwilcox has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
soypirate has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
krohrbaugh has joined #ruby-lang
jtoy has quit [Quit: jtoy]
<freedrull> seoaqua: what are you trying to do? CSV just uses the normal ruby string encodings, not the system locales
pkrnj has joined #ruby-lang
thone has quit [Ping timeout: 252 seconds]
<seoaqua> freedrull, I'm trying to use CSV to read a csv file, but crond or sublime text will report encoding error while the system shell doesn't
thone has joined #ruby-lang
<freedrull> i dont know anything about sublime text, but i dont see why your editor should matter :)
jtoy has joined #ruby-lang
crazyhorse has joined #ruby-lang
<crazyhorse> i'm having difficulty on ruby-1.8.7 using the pg (postgres gem)
<crazyhorse> i've done gem install pg
srbaker has joined #ruby-lang
<crazyhorse> but when i go into irb.. and require 'pg' it claims it doesn't exist
<crazyhorse> ah.. my bad.. require 'rubygems' require 'pg' did the trick
<seoaqua> freedrull, the problem is crond and sublime text will change the default system encoding and i need some way to change it back :S
havenn has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
davidbalber|away is now known as davidbalbert
<crazyhorse> hmmm still having the same problem require 'pg' 9): Symbol not found: _rb_eEncCompatError
jmaya has joined #ruby-lang
r0bby has joined #ruby-lang
<charliesome> crazyhorse: trying to use a 1.9 c ext on 2.0?
<charliesome> oh wait scroll up, i see you mention 1.8.7
davidbalbert is now known as davidbalber|away
livinded has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 248 seconds]
<crazyhorse> yeah i just uninstalled pg and reinstalled with a pg config pointing at a homebrew dir
<crazyhorse> same result
<livinded> If I have a ruby process that spawns a new thread and is doing a blocking operation (read) will that block the main ruby process since only one thread can run at a time?
sailias has quit [Ping timeout: 248 seconds]
sebastiansier has joined #ruby-lang
<livinded> if not, do I need to use something like select and manually switch threads?
jtoy has quit [Quit: jtoy]
dorei has quit []
<charliesome> livinded: ruby will release the GVL before doing blocking syscalls
<charliesome> livinded: you can only have one ruby thread actually doing computation at once
<charliesome> but you can have a bunch waiting on I/O
<charliesome> nothing fancy that you have to do
havenwood has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
io_syl has quit [Ping timeout: 272 seconds]
<drbrain> chris2: OS X?
<drbrain> chris2: oh, I doubt popen has been extended with that stuff from spawn
jmaya has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
crazyhorse has quit [Ping timeout: 244 seconds]
jbsan has quit [Quit: JB.. OUT!]
mercwithamouth has quit [Ping timeout: 252 seconds]
sailias has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
hahuang65_ has quit [Quit: Computer has gone to sleep.]
FiXato has quit [Remote host closed the connection]
FiXato has joined #ruby-lang
hahuang65_ has joined #ruby-lang
hahuang65_ has quit [Read error: Operation timed out]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 248 seconds]
sebastiansier has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
r0bby has quit [Max SendQ exceeded]
r0bby has joined #ruby-lang
lsegal` has joined #ruby-lang
<yfeldblum> how can i convert a hash into json in ruby-1.8 with the keys guaranteed to be in lexicographically sorted order?
lsegal` has quit [Client Quit]
lsegal has joined #ruby-lang
imajes has quit [Excess Flood]
<drbrain> yfeldblum: build the JSON by hand, most likely
imajes has joined #ruby-lang
r0bby has quit [Ping timeout: 248 seconds]
mjio has quit []
krz has joined #ruby-lang
<livinded> how can I read until 0x0 in ruby?
<drbrain> livinded: gets "\0"
davidbalber|away is now known as davidbalbert
kurko_ has quit [Quit: Computer has gone to sleep.]
bluepojo_ has joined #ruby-lang
<livinded> drbrain: it never stops reading
<livinded> but the socket isn't sending anything
MehLaptop has joined #ruby-lang
<drbrain> well, yes
bluepojo has quit [Read error: Operation timed out]
<drbrain> a "\0" is different from nothing at all
<livinded> errr, well how do I read until eof?
<drbrain> livinded: read
<livinded> that hangs as well
<drbrain> it hasn't reached end of file hten
<drbrain> then
<drbrain> if the socket is still open read will wait until it closes (end of file) or there is an error
<drbrain> if you want to abort the reading after a certain amount of time use IO.select and read_nonblock
bluepojo_ has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
RobertBirnie has joined #ruby-lang
agile has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
toretore has quit [Quit: Leaving]
soypirate has quit [Read error: Connection reset by peer]
geopet has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
neverminding has joined #ruby-lang
baustin has quit [*.net *.split]
stardiviner has quit [*.net *.split]
djinni` has quit [*.net *.split]
chendo_ has quit [*.net *.split]
tallship has quit [*.net *.split]
Caius has quit [*.net *.split]
bcol has quit [*.net *.split]
zanea has quit [*.net *.split]
asio has quit [*.net *.split]
ggreer has quit [*.net *.split]
amerine has quit [Quit: Computer has gone to sleep.]
baustin has joined #ruby-lang
stardiviner has joined #ruby-lang
djinni` has joined #ruby-lang
77CAAQFXE has joined #ruby-lang
zanea has joined #ruby-lang
Caius has joined #ruby-lang
bcol has joined #ruby-lang
tallship has joined #ruby-lang
ggreer has joined #ruby-lang
asio has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
concerne_ has joined #ruby-lang
concerne_ has left #ruby-lang [#ruby-lang]
concernedcitizen has joined #ruby-lang
RobertBirnie has quit [Quit: RobertBirnie]
KA_ has quit [Quit: KA_]
amerine has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
r0bby has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
MehLaptop has joined #ruby-lang
dustint has joined #ruby-lang
bzalasky_ has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
geopet has quit [Quit: geopet]
bzalasky has quit [Remote host closed the connection]
geopet has joined #ruby-lang
davidbalbert is now known as davidbalber|away
dhruvasagar has quit [Ping timeout: 248 seconds]
concernedcitizen has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby-lang
KA_ has joined #ruby-lang
dustint has quit [Quit: Leaving]
iamjarvo has joined #ruby-lang
torrieri has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 276 seconds]
sn0wb1rd_ has joined #ruby-lang
imajes has quit [Excess Flood]
sn0wb1rd has quit [Ping timeout: 248 seconds]
sn0wb1rd_ is now known as sn0wb1rd
imajes has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
Domon has joined #ruby-lang
stonerfish has joined #ruby-lang
stonerfish has quit [Client Quit]
mjio has joined #ruby-lang
geopet has quit [Quit: geopet]
mistym has joined #ruby-lang
CoverSlide has joined #ruby-lang
vbatts has quit [Ping timeout: 255 seconds]
geopet has joined #ruby-lang
kgrz has joined #ruby-lang
<mehwork> is => really 'dead'? I keep seeing it a lot still even though i get that : is used more for hashes. But what about things, especially in rails, where => is used a lot still
havenwood has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
KA_ has quit [Quit: KA_]
<wmoxam> mehwork: => is needed for non-symbol keys
torrieri has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
KA_ has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
torrieri_ has joined #ruby-lang
torrieri has quit [Read error: Connection reset by peer]
tomzx_mac has quit [Read error: Operation timed out]
rippa has joined #ruby-lang
dankest has joined #ruby-lang
KA_ has quit [Quit: KA_]
wallerdev has quit [Quit: wallerdev]
geopet has quit [Quit: geopet]
<mehwork> wmoxam: right but there are times it does and doesn't work even with symbols for me...
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
<wmoxam> mehwork: wat
<mehwork> For example this SASS doesn't work if i change :url => path to :url: path = simple_form_for @message, :url => path do |form|
ryanf_ has joined #ruby-lang
<ryanf> mehwork: that's because ":url: path" is not real syntax
<mehwork> oh because path isn't a symbol
<ryanf> no
<mehwork> yeah it is
<mehwork> this works: = form.input :body, as: :text
<mehwork> oh wait that's different
<ryanf> do you not see the difference between those two examples
<mehwork> i'm confused :(
<ryanf> oh good
<ryanf> mehwork: "url: path" is the same thing as ":url => path"
bzb has quit [Quit: I hate to quit but my bladder's full. :-(]
<mehwork> thanks for helping me sharpen my vision. Not used to this syntax at all yet
<mehwork> :)
Mon_Ouie has joined #ruby-lang
dankest has quit [Quit: Leaving...]
ryanf_ has quit [Ping timeout: 252 seconds]
rbright has joined #ruby-lang
rbright has quit [Changing host]
rbright has joined #ruby-lang
iamjarvo has quit [Quit: Leaving.]
imajes has quit [Excess Flood]
ryanf has quit [Ping timeout: 240 seconds]
rbright has quit [Client Quit]
geopet has joined #ruby-lang
imajes has joined #ruby-lang
<mehwork> although, now i'm confused as to why you don't have to have {} around hashes like the above examples
dankest has joined #ruby-lang
<mehwork> seems like almost everything is optional in ruby
kgrz has joined #ruby-lang
<mehwork> just read up on it. Seems to be only for methods because of how they already treat arguments as hashes or something
kgrz has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
RobertBirnie has joined #ruby-lang
noop has joined #ruby-lang
ryanf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
unix has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
klebervirgilio has joined #ruby-lang
<Mon_Ouie> It's just syntax sugar. If the last arguments are key => value pairs, it assumes they are supposed to form a hash
<mehwork> like an orgy, i'm fine with it once i understand the rules
<mehwork> the less typing, the better
tonni has quit [Remote host closed the connection]
mjio has quit []
klebervirgilio has quit [Ping timeout: 264 seconds]
rippa has joined #ruby-lang
bzalasky has joined #ruby-lang
seoaqua has quit [Quit: 离开]
tonni has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
nertzy2 has joined #ruby-lang
wmoxam has quit [Quit: leaving]
torrieri_ has quit [Quit: Leaving...]
nertzy has quit [Ping timeout: 245 seconds]
torrieri has joined #ruby-lang
fsvehla has joined #ruby-lang
dhruvasagar has joined #ruby-lang
vbatts has joined #ruby-lang
[1]Apollo has joined #ruby-lang
amerine has joined #ruby-lang
unix has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Ping timeout: 257 seconds]
[1]Apollo has left #ruby-lang [#ruby-lang]
[1]Apollo has joined #ruby-lang
[1]Apollo has left #ruby-lang [#ruby-lang]
dcwu has joined #ruby-lang
[1]Apollo has joined #ruby-lang
unix has joined #ruby-lang
nXqd has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
unix has quit [Ping timeout: 246 seconds]
ApolloWire has joined #ruby-lang
ApolloWire has quit [Client Quit]
tonni has quit [Remote host closed the connection]
xalei has joined #ruby-lang
unix has joined #ruby-lang
brianpWins has joined #ruby-lang
zmack has joined #ruby-lang
zmack has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
amerine has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
geopet has quit [Quit: geopet]
Elico1 has joined #ruby-lang
livinded has quit [Ping timeout: 246 seconds]
techlife has quit [Ping timeout: 244 seconds]
[1]Apollo has left #ruby-lang [#ruby-lang]
ApolloWire has joined #ruby-lang
techlife has joined #ruby-lang
ApolloWire has quit [Client Quit]
[1]Apollo has joined #ruby-lang
<[1]Apollo> Recommendations for defining a method in a base class that uses variables in classes that then inherit that base class?
<[1]Apollo> ie. class TestBase
JohnBat26 has joined #ruby-lang
<[1]Apollo> def test; puts @@classid; end
<[1]Apollo> end
tonni has joined #ruby-lang
<[1]Apollo> class TestDerived; @@classid = "test"; end
<[1]Apollo> TestDerived.new.test
<[1]Apollo> Kind of thing.
<ryanf> [1]Apollo: you can just use an instance variable
<ryanf> unless you mean class methods
<ryanf> in which case I'd probably just use the template method pattern or something, since hopefully you aren't changing it after subclass definition time
torrieri has quit [Quit: Leaving...]
klebervirgilio has joined #ruby-lang
<[1]Apollo> Thanks.
livinded has joined #ruby-lang
gnufied has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 276 seconds]
francisfish has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
abstr4ct has quit []
unix has quit [Quit: WeeChat 0.4.0]
dr_bob has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
RobertBirnie has quit [Quit: RobertBirnie]
kevinfagan has quit [Quit: Leaving...]
rsl has joined #ruby-lang
Bosox20051 has quit [Quit: Leaving]
solars has joined #ruby-lang
ottbot has joined #ruby-lang
michagogo has joined #ruby-lang
<michagogo> Any idea what might cause this?
<michagogo> I typed " at line 13 and then this happened
charliesome_ has joined #ruby-lang
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
mytrile has joined #ruby-lang
michagogo has left #ruby-lang [#ruby-lang]
livinded has quit [Quit: leaving]
schaerli has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
kgrz has quit [Quit: Computer has gone to sleep.]
dzhulk has joined #ruby-lang
dzhulk has quit [Read error: No route to host]
dzhulk has joined #ruby-lang
<yorickpeterse> morning
woollyams has joined #ruby-lang
woollyams has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
kgrz has joined #ruby-lang
dankest has quit [Quit: Leaving...]
vmoravec has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
piotrj has joined #ruby-lang
hackeron has joined #ruby-lang
marr has joined #ruby-lang
zmack has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
judofyr has joined #ruby-lang
kevinfagan has joined #ruby-lang
marr has quit [Client Quit]
zmack has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
gnufied has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
[1]Apollo has quit [Ping timeout: 276 seconds]
gokul has joined #ruby-lang
77CAAQFXE has quit [Ping timeout: 252 seconds]
chendo_ has joined #ruby-lang
JohnBat26 has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
apod has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
hahuang65_ has joined #ruby-lang
GarethAdams has joined #ruby-lang
dcwu has quit [Quit: Leaving.]
beiter has joined #ruby-lang
gokul has quit [Quit: Leaving]
gokul has joined #ruby-lang
unix has joined #ruby-lang
kgrz has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
klebervirgilio has joined #ruby-lang
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
blacktulip has joined #ruby-lang
chendo_ has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby-lang
fsvehla has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
nkr has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 252 seconds]
gokul has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
bin7me has joined #ruby-lang
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
kristofferrr has joined #ruby-lang
chendo_ has joined #ruby-lang
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
schaerli has joined #ruby-lang
imajes has quit [Excess Flood]
schaerli has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
imajes has joined #ruby-lang
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
<andrewvos> helloo
chendo_ has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby-lang
<rue> andrewvos: Helloooo nurse
floyd2_ has quit [Ping timeout: 244 seconds]
lianj has quit [Ping timeout: 276 seconds]
<andrewvos> rue: Hey I bought this bag for cycling today: http://www.bigxtop.com/2012/08/01/mini-messenger-final-shots/
<rue> andrewvos: Looks nice, fits a 15"?
Elico1 has quit [Quit: Elico1]
<andrewvos> rue: Probably. I have an 11" though.
<andrewvos> rue: And it fits snugly
<andrewvos> This bag is tough as fuck though. Quite like it
beho has joined #ruby-lang
Elico1 has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
lian_ has joined #ruby-lang
kristoff_ has joined #ruby-lang
lian_ has quit [Client Quit]
lian_ has joined #ruby-lang
lian_ has quit [Client Quit]
kristofferrr has quit [Ping timeout: 252 seconds]
cultureulterior_ has joined #ruby-lang
lianj has joined #ruby-lang
lianj has joined #ruby-lang
lianj has quit [Changing host]
kristoff_ has quit [Client Quit]
Squarepy has quit [Changing host]
Squarepy has joined #ruby-lang
kristofferrr has joined #ruby-lang
chendo_ has joined #ruby-lang
marr has joined #ruby-lang
Domon has quit [Remote host closed the connection]
<kristofferrr> I'm trying to limit the results returned from a .map with both key and value. At the moment it returns a limited amount of values per key instead of total. I know why it it works the way it does, but not how to fix it. Any ideas? - http://pastie.org/private/fz8h6etd9xmzgh4xsistg
<andrewvos> kristofferrr: Do you know about #select?
<andrewvos> [1,2,3].select {|d| d==1} #=> [1]
<injekt> andrewvos: he uses select in that paste :P
<andrewvos> injekt: *facepalm*
<kristofferrr> That won't work as I don't have specific values to look for.
<injekt> I still dont really understand the code
fsvehla has quit [Ping timeout: 248 seconds]
<kristofferrr> The select is used to filter out results I can't use (They're from a JSON result).
<GarethAdams> kristofferrr: what is the first(3) line for? it sounds like you *want* it to return a limited amount
dcwu has joined #ruby-lang
<kristofferrr> Okay there are several keys, they can be "exact", "substring", etc.
<kristofferrr> I want to be able to limit the amount of results returned total, not per key.
<kristofferrr> I guess what I need is a way to break out of .map
<kristofferrr> Unless I should just use a loop.
<GarethAdams> right, you want the first 3 key/value pairs from the hash that match the condition
skade has joined #ruby-lang
<judofyr> kristofferrr: could you show us example input and expected output?
<kristofferrr> Actually no, what I want is the first 3 values total, regardless of what the key is. I know the current code is per pair, but I don't know how to do it differently.
<kristofferrr> judofyr: One second.
<GarethAdams> the simple way is to move the .first(3) onto the result of the map
dhruvasagar has quit [Ping timeout: 260 seconds]
gokul has joined #ruby-lang
<GarethAdams> but of course you'll end up evaluating the select for all items, not just the first 3 matches
<kristofferrr> Hmm yeah, I guess I might have to do it like that. Should work.
<GarethAdams> lazy-evaluated enumerators would be the perfect solution, but I still never got my head around those
apod has quit [Ping timeout: 264 seconds]
* judofyr still doesn't understand the problem
<judofyr> oh
dhruvasagar has joined #ruby-lang
Elico1 has quit [Quit: Elico1]
<judofyr> kristofferrr: you want to avoid running the .select-block because you just want the 3 first element?
<judofyr> s*
chendo_ has quit [Quit: Leaving...]
<kristofferrr> Actually I want to avoid running anything after the .first - I just cut that out in the paste :/
<kristofferrr> I shouldn't have, my bad.
<kristofferrr> Here's an example of input and the output I am trying to get: http://pastie.org/private/todywhcajdoquk05egmka
Elico1 has joined #ruby-lang
<kristofferrr> And here's a more complete example of my code: http://pastie.org/private/vm9ylvnpfnt4vl41sorcsq - I'm trying to avoid running the second .map on results that will be filtered anyway.
unix has quit [Quit: WeeChat 0.4.0]
fire has joined #ruby-lang
hahuang65_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
hahuang65 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dcwu has quit [Read error: Connection reset by peer]
urbanmonk has joined #ruby-lang
Elico1 has quit [Quit: Elico1]
skade has quit [Ping timeout: 252 seconds]
sebastiansier has joined #ruby-lang
skade has joined #ruby-lang
sebastiansier has quit [Remote host closed the connection]
apod has joined #ruby-lang
hackeron has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has joined #ruby-lang
hackeron has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
sebastiansier has joined #ruby-lang
beiter has quit [Quit: beiter]
vlad_starkov has joined #ruby-lang
sebastiansier has quit [Ping timeout: 255 seconds]
rsl has quit [Quit: Computer has gone to sleep.]
GarethAdams has joined #ruby-lang
chendo_ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
sebastiansier has joined #ruby-lang
jxie has quit [Quit: leaving]
postmodern_ has joined #ruby-lang
postmodern has quit [Ping timeout: 264 seconds]
apod has quit [Quit: Leaving]
gnufied has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
schaerli has joined #ruby-lang
fsvehla has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<GarethAdams> Is there any method which is like map, but lazy evaluated and returns the first truish value?
<GarethAdams> s/any/any array/
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
sush24 has quit [Quit: Leaving]
tomzx_mac has joined #ruby-lang
carloslopes has joined #ruby-lang
beiter has joined #ruby-lang
sailias has joined #ruby-lang
io_syl has joined #ruby-lang
sush24 has joined #ruby-lang
gnufied has joined #ruby-lang
arsinh has quit [Ping timeout: 276 seconds]
methods has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
kristofferrr has joined #ruby-lang
<judofyr> GarethAdams: #detect
<judofyr> GarethAdams: oh, wait
crazyhorse has joined #ruby-lang
<crazyhorse> how can i give sudo a password through Net:SSH?
xalei has quit [Remote host closed the connection]
beho has quit [Remote host closed the connection]
iamjarvo has joined #ruby-lang
xcombelle has joined #ruby-lang
<chris2> drbrain: linux. and apparently it has...
dustint has joined #ruby-lang
<charliesome> kewl my Class#subclasses can see through iclasses
<charliesome> irb(main):001:0> BasicObject.subclasses
<charliesome> => [Object]
<crazyhorse> hmmm
<crazyhorse> sending passwords seems very difficult
<judofyr> crazyhorse: isn't it just stdin?
<crazyhorse> c.send_data('my_password') if String === d and d[/\[sudo\]|Password/i]
<crazyhorse> that's what i tried
<crazyhorse> c is the channel, d is data
<judofyr> ah
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<crazyhorse> hmmmm
<crazyhorse> how tf does capistrano manage it
sailias has quit [Quit: Leaving.]
skade has joined #ruby-lang
miraks has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
kgrz has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby-lang
schaerli has joined #ruby-lang
skade has quit [Ping timeout: 252 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
piotrj has joined #ruby-lang
skade has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 252 seconds]
dblack__ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Stilo has joined #ruby-lang
urbanmonk has quit [Quit: Bye!]
kurko_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
bzb has joined #ruby-lang
miraks has quit []
mistym has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: Leaving.]
postmodern_ has quit [Quit: Leaving]
bzb has quit [Ping timeout: 248 seconds]
baustin has quit [Remote host closed the connection]
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.]
mistym has quit [Remote host closed the connection]
eklarskov has joined #ruby-lang
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
chendo_ has quit [Quit: Computer has gone to sleep.]
jxie has joined #ruby-lang
gokul has quit [Quit: Leaving]
tonni has quit [Remote host closed the connection]
beho has joined #ruby-lang
bzb has joined #ruby-lang
<soahccc> Isn't there any other solution to track gem versions than gemnasium? I'm looking for something more instance based rather than project based and not limited to github.
skade has quit [Read error: Operation timed out]
sockmonk has joined #ruby-lang
rsl has joined #ruby-lang
mistym has joined #ruby-lang
noop has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
methods has quit [Quit: Leaving.]
skade has joined #ruby-lang
jtoy has joined #ruby-lang
workmad3 is now known as wm3|away
melter has quit [Remote host closed the connection]
dblack__ has quit [Quit: dblack__]
tonni has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
stiang has joined #ruby-lang
stiang has quit [Client Quit]
banister`bbl has joined #ruby-lang
stiang has joined #ruby-lang
dblack__ has joined #ruby-lang
wmoxam has joined #ruby-lang
eklarskov has quit [Quit: leaving]
dr_bob has quit [Quit: Leaving.]
dblack_ has joined #ruby-lang
dblack__ has left #ruby-lang [#ruby-lang]
melter has joined #ruby-lang
enebo has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 252 seconds]
scampbell has joined #ruby-lang
sduckett has joined #ruby-lang
dr_bob has joined #ruby-lang
iamjarvo has joined #ruby-lang
geopet has joined #ruby-lang
dr_bob has quit [Client Quit]
beiter has quit [Quit: beiter]
sduckett has quit [Quit: leaving]
breakingthings has joined #ruby-lang
__BigO__ has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
beiter has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
mistym has quit [Remote host closed the connection]
retro|cz has joined #ruby-lang
marr has quit [Ping timeout: 248 seconds]
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
sebastiansier has quit [Remote host closed the connection]
__BigO__ has quit [Ping timeout: 276 seconds]
srbaker has joined #ruby-lang
agile has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
kgrz has joined #ruby-lang
wm3|away is now known as workmad3
mercwithamouth has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
sailias has joined #ruby-lang
spuk has quit [Ping timeout: 244 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
methods has joined #ruby-lang
davidbalber|away is now known as davidbalbert
methods has left #ruby-lang [#ruby-lang]
<zzak> good morning!
hackeron has quit [Read error: Connection reset by peer]
hackeron has joined #ruby-lang
Austin__ has joined #ruby-lang
jbsan has joined #ruby-lang
fire has quit [Ping timeout: 264 seconds]
baustin has joined #ruby-lang
<judofyr> morning zzak!
dblack_ has quit [Quit: dblack_]
ruby-lang975 has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
tonni has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
duderonomy has joined #ruby-lang
Austin__1 has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
Austin__ has quit [Ping timeout: 240 seconds]
<ruby-lang975> Can anyone help me out and tell me why this is giving me a "uninitialized constant CSV_Scripts::Session (NameError)"? http://pastie.org/6348198
<ruby-lang975> Using latest RSpec and Ruby 2.0.0
bzalasky has quit [Remote host closed the connection]
<judofyr> ruby-lang975: I'd put some "p :loaded" in the files to see what files are loaded
Austin__1 has quit [Quit: Leaving.]
<ruby-lang975> It's strange, because it works for Cucumber and then give the error in RSpec
Austin__ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
fire has joined #ruby-lang
davidbalbert is now known as davidbalber|away
Qfwfq has quit [Ping timeout: 255 seconds]
<ruby-lang975> It seems like when I run RSpec and it gets to require 'csv_scripts/session', it loads 'spec/csv_scripts/session' instead of 'lib/csv_scripts/session'
dhruvasagar has joined #ruby-lang
mechanicles has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
stiang has quit [Quit: stiang]
gnufied has joined #ruby-lang
rippa has joined #ruby-lang
duderonomy has quit [Quit: duderonomy]
bantic has joined #ruby-lang
Guest90390 is now known as ddd
geopet has quit [Quit: geopet]
<judofyr> ruby-lang975: ah
<judofyr> ruby-lang975: makes sense. the LOAD_PATH is different
kogent has joined #ruby-lang
dblack__ has joined #ruby-lang
dblack_ has joined #ruby-lang
llaskin has joined #ruby-lang
llaskin has quit [Changing host]
llaskin has joined #ruby-lang
<llaskin> anyone here use TestUnit?
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo1 has joined #ruby-lang
<ruby-lang975> judofyr: Thanks. Do you have a suggestion for fixing it? Do I need to specify the LOAD_PATH somewhere?
<injekt> llaskin: probably lots of people, ask your question
<judofyr> ruby-lang975: name your files _spec.rb
<judofyr> llaskin: you should use MiniTest now :)
<ruby-lang975> omg
<llaskin> injekt: is a test unit supposed to run its tests one by one? or all at once?
<mfn> what would be an idiomatic way to slice a string from the second character to the end? "foo" should become "oo". I'm not so happy with "foo".slice(1,"foo".length-1)
<judofyr> llaskin: but yes, I ue it
<ruby-lang975> I'm a moron
<ruby-lang975> lol
<ruby-lang975> judofyr: thanks
<judofyr> mfn: .slice(1..-1)
<llaskin> judofyr: i'm using mintest, but still following the old testunit conventions hence my question
<judofyr> llaskin: you need to `require "minitest/autorun"` to run the test when you run the test file
<judofyr> mfn: or [1..-1]
<injekt> llaskin: none of them run concurrently by default
<llaskin> injekt: how can I make them run concurrently?
dblack__ has left #ruby-lang [#ruby-lang]
gustavnils has joined #ruby-lang
<llaskin> (i'm testing selenium tests, and want to spawn 10 tests at the same time to speed up time-to-test)
<ruby-lang975> judofyr: thanks again. that did it.
realDAB has joined #ruby-lang
<whitequark> O_o
<whitequark> I was quite sure that the content of #order scope was passed by rails to the backend verbatim
<whitequark> "don't put user input there" and all
<whitequark> hell no. it gets his fucking greasy gsub and replaces desc to asc sometimes
<whitequark> and also puts either of those before comma, breaking my little precious NULLS FIRST
__BigO__ has joined #ruby-lang
<mfn> judofyr: argl, thanks. I tried "foo".slice(1,-1) .. but not the range. small semantics ;) thank you
slyphon has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
dblack_ has left #ruby-lang [#ruby-lang]
tonni has joined #ruby-lang
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
beho has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
krohrbaugh has quit [Quit: Leaving.]
solars has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
banister`bbl has quit [Remote host closed the connection]
__BigO__ has quit [Remote host closed the connection]
mwjcomputing has quit [Quit: Leaving]
ruby-lang975 has quit [Quit: Page closed]
carloslopes has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
mytrile has quit [Remote host closed the connection]
imajes has joined #ruby-lang
io_syl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
imajes has quit [Excess Flood]
ckim has joined #ruby-lang
davidbalbert is now known as davidbalber|away
imajes has joined #ruby-lang
sush24 has joined #ruby-lang
beiter has quit [Quit: beiter]
bin7me has quit [Quit: Verlassend]
imajes has quit [Excess Flood]
judofyr has quit [Remote host closed the connection]
imajes has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
geopet has joined #ruby-lang
<injekt> llaskin: no idea, maybe check out parallel_tests it's not something I would do and I dont think it's a good idea
<rue> eeeenkjjeeeet
Squarepy has quit [Quit: Leaving]
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
_MJ_4Q_ has joined #ruby-lang
llaskin has left #ruby-lang [#ruby-lang]
ckim has quit [Remote host closed the connection]
crazymykl has joined #ruby-lang
davidbalber|away is now known as davidbalbert
fsvehla has quit [Quit: fsvehla]
nXqd has quit [Ping timeout: 248 seconds]
bougyman has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby-lang
Kevin has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Kevin is now known as Guest25657
kevinfagan has quit [Ping timeout: 248 seconds]
skade has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
realDAB has quit [Quit: realDAB]
Guest25657 has quit [Ping timeout: 248 seconds]
jerrytgarcia has joined #ruby-lang
nXqd has joined #ruby-lang
dankest has joined #ruby-lang
justinseiter has joined #ruby-lang
poga has joined #ruby-lang
xcombelle has joined #ruby-lang
sebastiansier has joined #ruby-lang
dblack__ has joined #ruby-lang
smathy has joined #ruby-lang
dblack__ has quit [Client Quit]
apeiros_ has joined #ruby-lang
sepp2k has quit [Ping timeout: 248 seconds]
davidbalbert is now known as davidbalber|away
<andrewvos> uh
<smathy> Ruby2 question, did initialize_dup switch from a public to a private method between 1.x and 2.0?
krohrbaugh has joined #ruby-lang
sepp2k has joined #ruby-lang
imajes has quit [Excess Flood]
<apeiros_> initialize_dup?
<apeiros_> you mean initialize_copy?
<apeiros_> and initialize_copy was always private afair
dzhulk has joined #ruby-lang
<zzak> `ri initialize_copy`
iamjarvo1 has quit [Quit: Leaving.]
<zzak> its pretty barren
<whitequark> smathy: *uses his psychic powers* I guess you want to wait until rails 3.2.13
<injekt> smathy: yes
imajes has joined #ruby-lang
<injekt> smathy: and yes that's the only latest rails incompatibility with 2.0
<smathy> injekt, awesome, thanks for the confirmation.
<smathy> whitequark, not sure if something changed overnight, but I was still having the problem on 3-2-stable yesterday.
<smathy> …I was just looking for confirmation before submitting a PR - so thanks.
<whitequark> smathy: 3-2-stable worked fine for me
<apeiros_> so initialize_dup is an actual thing? wow… didn't know that one
<whitequark> bundle update it or whatever
<smathy> whitequark, thanks.
<injekt> apeiros_: aye
RobertBirnie has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<apeiros_> same as initialize_copy but only on dup?
<apeiros_> what's the execution order?
<injekt> dup -> copy
<injekt> both initialize_clone and dup call initialize_copy
<injekt> iirc
shiningblue has quit [Ping timeout: 248 seconds]
<apeiros_> yeah, just verified
<apeiros_> at least in 1.9
<apeiros_> oh, no, that tab was actually on ruby 2 :)
<injekt> heh yeah only difference is scope
skade has joined #ruby-lang
<apeiros_> hm?
<injekt> I think rails had a respond_to? which failed on 2 because intiialize_dup scope changed to private
<injekt> so iirc all they needed was to add the second arg
<apeiros_> ah, that's visibility
<apeiros_> not scope
<apeiros_> (not my invention, bad term IMO)
<injekt> ops yes that's why I meant
<zzak> inkjet
<apeiros_> IMO should rather be something like 'accessability'
<whitequark> injekt: no
<whitequark> they added it way before
<whitequark> but they tried to call the actual method then like `obj.initialize_dup'
<injekt> what?
<whitequark> and it obviously failed
<whitequark> check the PR and history.
<injekt> ah right
<apeiros_> since initialize_dup works like initialize_copy, it's odd that it has ever been public
<apeiros_> oversight?
<injekt> i dont really care too much, i was only assuming anyway
brianpWins has joined #ruby-lang
<zzak> appreciate some more eyes on my thread guide: https://github.com/ruby/ruby/blob/trunk/vm.c#L2244...L2390
<apeiros_> zzak: IMO one should not use => for anything but return values
<apeiros_> personally I use -> for prints and !> for exceptions
<apeiros_> not sure whether anyone else follows that, though :)
<injekt> I use => for prints too but it makes sense to use something else, haven't really considered it
<zzak> it's used throughout
<zzak> im more concerned with the content tho, i suck at this threading stuff
<apeiros_> zzak: "If we don't call +thr.join+ before the main thread terminates, then all other threads including +thr+ will be killed."
<injekt> zzak: thr.status should return false not "false"
<apeiros_> + ", which can be before they finished" (or something akin that)
<apeiros_> or "might be before…"
<zzak> :D
__butch__ has joined #ruby-lang
marr has joined #ruby-lang
<zzak> i tried to be specific what "they" was
sn0wb1rd has quit [Ping timeout: 276 seconds]
<apeiros_> zzak: "Any local variables created within this block are accessible to only this thread." <-- not true
<apeiros_> ah, wait… "created"
<apeiros_> hmmm
<zzak> injekt: you mean it's not a string?
neverminding has quit [Quit: neverminding]
<apeiros_> ok, I retract my "not true", I think it's correct.
<zzak> you're right, i thought "false" was the return
<injekt> zzak: ah, yeah it's not a string
carloslopes has joined #ruby-lang
<zzak> apeiros_: yeah
* apeiros_ thinks Kernel#thread_variable_* would be nice
<apeiros_> just forwards to Thread.current.*
havenwood has quit [Remote host closed the connection]
<zzak> threads are already confusing enough hah
havenwood has joined #ruby-lang
<apeiros_> also IMO Thread#thread_ is the same thing said twice over…
crunk has joined #ruby-lang
<apeiros_> like it'd be String#string_downcase
<apeiros_> (but that's not a documentation thing, so ignore me :D)
<zzak> not sure i follow
<zzak> you mean the docs in the overview == the method docs for thread_variable_*?
<apeiros_> I was criticizing the method naming
<apeiros_> but the method naming is unrelated to you documenting the class
<apeiros_> i.e., I deviate
gnufied has quit [Quit: Leaving.]
<zzak> ahh
havenwood has quit [Ping timeout: 255 seconds]
<zzak> nagachika-san mentioned something about the exception handling section being falsy
<zzak> that moment you realize your laptop's subversion working copy is a week old
<andrewvos> zzak: :(
<andrewvos> zzak: Feel your pain man
<zzak> there is no pain greater
<andrewvos> zzak: well today svn killed some work that I had not checked in
<andrewvos> oh wait disregard that, just remembered that I managed to get it back
<andrewvos> But, potentially!
torrieri has joined #ruby-lang
<zzak> it is always scary when you see code disappear
sebastiansier has quit [Read error: Connection reset by peer]
<zzak> injekt: thanks inkblob
KA_ has joined #ruby-lang
<zzak> committted your typo in 39530
sebastiansier has joined #ruby-lang
smathy has left #ruby-lang [#ruby-lang]
tylersmith has joined #ruby-lang
geson_ has joined #ruby-lang
MaddinXx has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
Stilo has joined #ruby-lang
geson_ has quit [Client Quit]
<eam> porting perl that mixes string/numbers to ruby is killing me
sailias has quit [Ping timeout: 248 seconds]
geson has joined #ruby-lang
<apeiros_> class StringNumber; def coerce(other) …
<apeiros_> have fun
<eam> is there a way to get "1" == 1 to raise instead of return false?
<apeiros_> you can redefine it
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
<eam> hrm
crunk has quit [Quit: crunk]
jtoy has quit [Remote host closed the connection]
<apeiros_> alias equal_without_raise; def ==(other); raise ArgumentError unless blah; equal_without_raise(other); end
musl has quit [Quit: WeeChat 0.3.9.2]
<eam> interesting, will run it with that to test, thanks
thone_ has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
<apeiros_> within the class of choice of course
KA_ has quit [Quit: KA_]
<zzak> apeiros_: im not sure how to rephrase the "if we dont call thr.join" line
<apeiros_> mhm, not sure either. I guess I have to take dinner before my brain works again.
iamjarvo has joined #ruby-lang
<zzak> hah
thone has quit [Ping timeout: 255 seconds]
<zzak> np, i appreciate the feedback
kristofferrr has joined #ruby-lang
* apeiros_ ponders taking up work on Chronos again
davidbalber|away is now known as davidbalbert
sush24 has quit [Ping timeout: 248 seconds]
ryanf has quit [Quit: leaving]
dblack_ has joined #ruby-lang
gregmore_ has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
beiter has joined #ruby-lang
slyphon has quit [Quit: slyphon]
davidbalbert is now known as davidbalber|away
neverminding has joined #ruby-lang
bougyman has joined #ruby-lang
amerine has joined #ruby-lang
slyphon has joined #ruby-lang
sush24 has joined #ruby-lang
breakingthings has quit []
cultureulterior_ has quit [Quit: cultureulterior_]
dhruvasagar has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby-lang
jtoy has joined #ruby-lang
mrsolo has joined #ruby-lang
<eam> I just spent way too long trying to figure out why I couldn't add a break to a loop written as 0..max.times { |x| ... break if thing }
<eam> can you spot the error?
<yorickpeterse> double dot
<eam> well, 0..max was intended as a range, so times => each
<yorickpeterse> ah
<apeiros_> (0..max).each
<apeiros_> not times
<apeiros_> ah
<apeiros_> you already solved it
<eam> it was evaluating as 0..(max.times do {} )
<apeiros_> also… right
<eam> which worked (!!) until I added a break on a conditional
<eam> and then "ArgumentError: bad value for range"
sush24 has quit [Quit: This computer has gone to sleep]
<apeiros_> 0.upto(max)
<eam> yeah. Was complicated by max.times performing the same function as 0..max.each -- so the thing was *working* until I added a break
<eam> just need to remove the 0..
<apeiros_> (0..max).each # ;-)
<eam> porting perl that did for $x (0..$max) and I'm copying over constructs without thinking
<eam> finding all kinds of weird syntax issues where stuff ostensibly works but actually has a bizarre issue
<apeiros_> well, `for x in 0..max` is valid ruby too
<apeiros_> just not very well received in the community
<zzak> i always forget the range literal
<eam> yeah I'm half-trying to make it idiomatic
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<eam> but, silly me I used .times on Range instead of .each
<eam> I was going crazy because my conditional was like: break if foo[0..i] != bar[0..i]
<eam> and I thought the "bad value for range" was a result of my conditional expression ...
<eam> did not occur that it would be the call to break
crazyhorse has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
schaerli has joined #ruby-lang
jbelcher has joined #ruby-lang
jbelcher has quit [Client Quit]
jbelcher has joined #ruby-lang
<jbelcher> All—I frequently run into problems building various Ruby-related projects, and I think there's just a lot of misconfiguration debt on my OSX machine. Does anyone have any words of advice to "start over" with my Ruby installation? There's ruby, gem, rvm, bundle, and homebrew on this machine
__butch__ has joined #ruby-lang
anonymuse has joined #ruby-lang
<apeiros_> jbelcher: hope that you haven't touched system ruby (wouldn't know how to restore that other than system reinstall), uninstall homebrew ruby, rvm implode, then check what rubies exist (locate, find, whatever tool you prefer…)
rushed has joined #ruby-lang
<jbelcher> apeiros_ no I don't think any of the base ruby has been touched
jerrytgarcia has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
dc5ala has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
krz has quit [Quit: krz]
calveto has joined #ruby-lang
mechanic_ has joined #ruby-lang
mechanicles has quit [Read error: Connection reset by peer]
<havenwood> jbelcher: To completely tear down rvm: rvm implode
mechanic_ has quit [Read error: Connection reset by peer]
[1]Apollo has joined #ruby-lang
mechanicles has joined #ruby-lang
slyphon has quit [Quit: slyphon]
sailias has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
calveto has left #ruby-lang [#ruby-lang]
mistym is now known as mistym_coffee
slyphon has joined #ruby-lang
jbelcher has quit [Quit: jbelcher]
sailias has quit [Ping timeout: 264 seconds]
nkr has quit [Ping timeout: 252 seconds]
shiningblue has joined #ruby-lang
solars has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
reppard has joined #ruby-lang
maxmanders has joined #ruby-lang
musl has joined #ruby-lang
_MJ_4Q_ has quit [Remote host closed the connection]
sailias has joined #ruby-lang
krisvage has joined #ruby-lang
reppard has quit [Read error: Operation timed out]
_MJ_4Q_ has joined #ruby-lang
justinram has joined #ruby-lang
nkr has joined #ruby-lang
dankest has quit [Quit: Leaving...]
breakingthings has joined #ruby-lang
r0bby has quit [Ping timeout: 252 seconds]
lteo has quit [Quit: leaving]
[[johnonymous]] has joined #ruby-lang
pkrnj has joined #ruby-lang
_carloslopes has joined #ruby-lang
Weems has quit [Read error: Connection reset by peer]
geson has quit [Quit: leaving]
tylersmith has quit [Read error: Connection reset by peer]
pr0ton has joined #ruby-lang
rushed has quit [Quit: rushed]
carloslopes has quit [Ping timeout: 272 seconds]
solars has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: Leaving.]
methods1 has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
rushed has joined #ruby-lang
pasties has quit [Ping timeout: 244 seconds]
pasties has joined #ruby-lang
hackeron has quit [Read error: Connection reset by peer]
rushed has quit [Client Quit]
rushed has joined #ruby-lang
beho has joined #ruby-lang
tylersmith has joined #ruby-lang
hackeron has joined #ruby-lang
ottbot has quit [Ping timeout: 276 seconds]
dankest has joined #ruby-lang
dankest has quit [Client Quit]
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
slyphon_ has joined #ruby-lang
hackeron has quit [Read error: Connection reset by peer]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
torrieri has quit [Quit: Linkinus - http://linkinus.com]
torrieri has joined #ruby-lang
slyphon has quit [Ping timeout: 246 seconds]
slyphon_ is now known as slyphon
Criztian has joined #ruby-lang
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
alesia21 has joined #ruby-lang
mechanicles has quit [Remote host closed the connection]
alesia21 has left #ruby-lang [#ruby-lang]
yxhuvud has joined #ruby-lang
solars has joined #ruby-lang
justinram has quit [Remote host closed the connection]
MehLaptop has joined #ruby-lang
KA_ has quit [Quit: KA_]
hackeron has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
mwjcomputing has joined #ruby-lang
_MJ_4Q_ has quit [Remote host closed the connection]
kristoff_ has joined #ruby-lang
mistym_coffee is now known as mistym
justinram has joined #ruby-lang
kristofferrr has quit [Ping timeout: 252 seconds]
Stilo has joined #ruby-lang
justinram has quit [Ping timeout: 252 seconds]
justinram has joined #ruby-lang
hackeron has quit [Read error: Connection reset by peer]
hackeron has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
_MJ_4Q_ has joined #ruby-lang
nXqd has quit [Read error: Connection reset by peer]
cultureulterior_ has joined #ruby-lang
havenwood has quit [Read error: Operation timed out]
ryanf has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
sebastiansier has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
hackeron has quit [Read error: Connection reset by peer]
Austin__ has quit [Quit: Leaving.]
rippa has quit [Ping timeout: 240 seconds]
hackeron has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
iamjarvo has joined #ruby-lang
havenwood has joined #ruby-lang
beiter has quit [Quit: beiter]
beiter has joined #ruby-lang
headius has joined #ruby-lang
goatish_mound has joined #ruby-lang
dankest has joined #ruby-lang
<injekt> zzak: step 1: name in changelog, step 2: 100 commits
rsl has quit [Ping timeout: 248 seconds]
goatish_mound is now known as rsl
jerrytgarcia has quit [Read error: Connection reset by peer]
<zzak> step 3?
crackity_jones has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
rushed has quit [Quit: rushed]
<injekt> im working on it
<CoverSlide> profit!
<injekt> ^
<injekt> naturally
ottbot has joined #ruby-lang
havenwood has quit [Ping timeout: 260 seconds]
_MJ_4Q_ has quit [Remote host closed the connection]
_MJ_4Q_ has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
yorickpeterse has quit [Changing host]
yorickpeterse has joined #ruby-lang
justinseiter has quit [Ping timeout: 248 seconds]
dc5ala has quit [Quit: Ex-Chat]
kristoff_ has quit [Quit: ❤]
[2]Apollo has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
imajes has quit [Excess Flood]
pr0ton has joined #ruby-lang
nkr has quit [Quit: Linkinus - http://linkinus.com]
imajes has joined #ruby-lang
adambeynon has joined #ruby-lang
[1]Apollo has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
torrieri has quit [Read error: Connection reset by peer]
torrieri has joined #ruby-lang
torrieri_ has joined #ruby-lang
justinseiter has joined #ruby-lang
yalue has quit [Quit: Leaving]
torrieri_ has quit [Read error: Connection reset by peer]
torrieri has quit [Ping timeout: 264 seconds]
benanne has joined #ruby-lang
workmad3 has joined #ruby-lang
ottbot has quit [Ping timeout: 252 seconds]
benanne has quit [Client Quit]
benanne has joined #ruby-lang
dblack_ has quit [Quit: dblack_]
crackity_jones has quit [Quit: Computer has gone to sleep.]
fsvehla has joined #ruby-lang
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
[2]Apollo has quit [Quit: I love my HydraIRC -> http://www.hydrairc.com <-]
_carloslopes has quit [Remote host closed the connection]
agile has joined #ruby-lang
burgestrand has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
MehLaptop has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 252 seconds]
Nicholas has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
krohrbaugh has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Nicholas has quit [Client Quit]
sailias1 has joined #ruby-lang
dankest has quit [Remote host closed the connection]
dankest has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
headius has quit [Quit: headius]
asdfqwer has joined #ruby-lang
r0bgleeson has joined #ruby-lang
sailias1 has quit [Ping timeout: 244 seconds]
headius has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
snarfmason has joined #ruby-lang
dankest has quit [Quit: Leaving...]
krohrbaugh has quit [Quit: Leaving.]
headius has quit [Quit: headius]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Stilo has joined #ruby-lang
sailias has joined #ruby-lang
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
snarfmason has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
scampbell has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
joren has quit [Read error: Operation timed out]
joren has joined #ruby-lang
slyphon has quit [Quit: slyphon]
brianpWins has joined #ruby-lang
bluepojo has joined #ruby-lang
sailias has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 248 seconds]
imajes has quit [Excess Flood]
EvilJStoker is now known as JStoker
headius has joined #ruby-lang
sockmonk has quit [Ping timeout: 264 seconds]
imajes has joined #ruby-lang
reppard has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 272 seconds]
Banistergalaxy has joined #ruby-lang
q1w2e3 has joined #ruby-lang
headius has quit [Quit: headius]
charliesome has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ottbot has joined #ruby-lang
krohrbaugh has joined #ruby-lang
imajes has quit [Excess Flood]
krohrbaugh has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 248 seconds]
imajes has joined #ruby-lang
krohrbaugh has joined #ruby-lang
justinram has quit [Remote host closed the connection]
jerrytgarcia has quit [Read error: Connection reset by peer]
jerrytgarcia has joined #ruby-lang
neverminding has quit [Quit: neverminding]
reppard has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
nazty has quit [Read error: Connection reset by peer]
chendo_ has joined #ruby-lang
beho has quit [Remote host closed the connection]
mjio has joined #ruby-lang
sebastiansier has joined #ruby-lang
jxie_ has joined #ruby-lang
beho has joined #ruby-lang
davidbalbert is now known as davidbalber|away
jxie has quit [Ping timeout: 255 seconds]
davidbalber|away is now known as davidbalbert
justinram has joined #ruby-lang
breakingthings has quit []
wmoxam has quit [Ping timeout: 264 seconds]
beiter has quit [Quit: beiter]
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mistym has quit [Remote host closed the connection]
dbck has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
_MJ_4Q_ has quit [Remote host closed the connection]
dustint has quit [Quit: Leaving]
KA_ has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
neverminding has joined #ruby-lang
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
sebastiansier has quit [Remote host closed the connection]
dbck has left #ruby-lang ["Verlassend"]
asdfqwer has quit []
chendo_ has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 276 seconds]
jsilver has joined #ruby-lang
postmodern has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
fire has quit [Ping timeout: 264 seconds]
mjio has quit []
solars has quit [Ping timeout: 248 seconds]
mjio has joined #ruby-lang
slyphon has joined #ruby-lang
enebo has quit [Quit: enebo]
agile has quit [Quit: Ex-Chat]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
jsilver has quit [Remote host closed the connection]
Averna has joined #ruby-lang
robnik has joined #ruby-lang
fire has joined #ruby-lang
justinram has quit [Remote host closed the connection]
ottbot has quit [Ping timeout: 272 seconds]
ryanv-raptor has left #ruby-lang [#ruby-lang]
krohrbaugh has quit [Quit: Leaving.]
anonymuse has quit [Quit: Leaving...]
arsinh has joined #ruby-lang
jsilver has joined #ruby-lang
beho has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
benanne has quit [Quit: kbai]
bantic has quit [Quit: bantic]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]