ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
brisbin_ has joined #ruby-lang
butchanton has quit [Quit: Leaving.]
brisbin_ has quit [Client Quit]
IPGlider has quit []
igaiga has joined #ruby-lang
ootoovak has joined #ruby-lang
amateurhuman has joined #ruby-lang
amateurhuman has quit [Client Quit]
bryancp has joined #ruby-lang
msaffitz has joined #ruby-lang
wpaulson has joined #ruby-lang
benjammin891 has quit [Ping timeout: 260 seconds]
QaDeS_ has joined #ruby-lang
QaDeS has quit [Ping timeout: 245 seconds]
badfish129 has left #ruby-lang [#ruby-lang]
DEac-_ has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
RORgasm has quit [Remote host closed the connection]
RORgasm has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
msaffitz has quit [Quit: Computer has gone to sleep.]
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
jimmy1980 has quit [Ping timeout: 276 seconds]
jakko has quit [Remote host closed the connection]
jimmy1980 has joined #ruby-lang
slyphon has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
QaDeS_ has quit [Quit: Ex-Chat]
tr-808_ has quit [Ping timeout: 244 seconds]
neoesque has joined #ruby-lang
qpingu has joined #ruby-lang
perryh_away is now known as perryh
qpingu has left #ruby-lang [#ruby-lang]
igaiga has quit [Remote host closed the connection]
A124 has quit [Quit: Leaving.]
tr-808 has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
dv310p3r has quit [Ping timeout: 276 seconds]
seanstickle has quit [Quit: Nihil sub sole novum]
akira989 has quit [Remote host closed the connection]
gix has quit [Ping timeout: 244 seconds]
kurko_ has joined #ruby-lang
msaffitz has joined #ruby-lang
havenn has joined #ruby-lang
sduckett has joined #ruby-lang
gregf has joined #ruby-lang
kurko_ has quit [Client Quit]
gix has joined #ruby-lang
umttumt has joined #ruby-lang
imperator has quit [Quit: Leaving]
<zenspider> woo! I'm down to < 300 lines of structural diff between the MRI parser and my 1.9 parser
<erikh> zenspider: I got my mod_mruby working last night for nginx
<erikh> it's really simple, but it's building, evaluating, and even sending back responses
<zenspider> mruby does stuff now?
<erikh> a little bit :)
<zenspider> hrm... that prolly means he's removing from ruby instead of building up a new ruby, doesn't it?
<erikh> it's Rite
<zenspider> sooo much cruft in mri that it makes me sad.
<erikh> and mruby's code is definitely a lot cleaner.
Hakon|mbp has quit [Quit: Leaving...]
<zenspider> also... I have officially given a name to the "a.()" syntax: fonz
<erikh> ha
<zenspider> this shouldn't be possible, but it is in 1.9:
<zenspider> class NilClass; def !; false; end; end
<zenspider> that makes me sad
<erikh> everyone hates the ! overload I think
<zenspider> everyone but matz
<zenspider> which is odd... I argued against it
<erikh> is it used for anything in the wild?
<erikh> I mean, popular code
<zenspider> when I argued for allowing us to do prototyping (assign a method to a different class) he said no because people could screw it up
<zenspider> when I argued for injecting bytecodes into the vm, he said no because people could screw it up
<zenspider> but when I argued against ! methods, he said no... because developers would just have to not screw up
<erikh> ha
<erikh> consistency is !
<erikh> anyone know how one might go about reading a zip file progressively, e.g., to read contents without exploding?
<zenspider> drbrain could answer that and he just left for the bus
sduckett has left #ruby-lang [#ruby-lang]
<zenspider> it might not be possible until his changes are in core
<erikh> no worries. just trying to help a friend.
<zenspider> but I honestly don't know
<erikh> pkzip
<erikh> not gzip
<zenspider> ah. ew. nevermind
<erikh> hehehe.
ilyam has quit [Quit: ilyam]
kurko_ has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
savage- has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
msaffitz has joined #ruby-lang
perryh is now known as perry
skipper has joined #ruby-lang
skipper has quit [Remote host closed the connection]
msaffitz has quit [Client Quit]
havenn has quit [Ping timeout: 252 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
wpaulson has joined #ruby-lang
woollyams has quit [Ping timeout: 245 seconds]
andrewhl has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
rockpapergoat has joined #ruby-lang
Ace20 has joined #ruby-lang
benjammin891 has joined #ruby-lang
rockpapergoat has quit [Remote host closed the connection]
igaiga has joined #ruby-lang
Torrieri has quit [Read error: Connection reset by peer]
<macmartine> I'm in a class that inherits from Range, so how come 'p super' and 'p super.class' return false?
<macmartine> actually p super.class returns FlasClass
<macmartine> FalseClass, sorry
<lianj> calling super where?
<macmartine> FYI, I'm trying to narrow down a bug that occurs in ruby 1.9.3 but not 1.9.2 and this is where I am at the moment
KINGSABRI has quit [Ping timeout: 245 seconds]
<macmartine> ugh, 1 sec
<macmartine> nevermind for a sec
benjammin891 has quit [Ping timeout: 276 seconds]
<macmartine> oh, right, yeah. should work
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
<macmartine> and p respond_to? :super => false. weird
Torrieri has quit [Client Quit]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
bfreeman has joined #ruby-lang
Kellin has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
<lianj> macmartine: http://ideone.com/0hKQV
stardiviner has joined #ruby-lang
<macmartine> lianj: right. works in 1.9.2 but not 1.9.3
<lianj> im on 1.9.3 and it works here
ootoovak has quit [Quit: ootoovak]
<macmartine> hmm
coryf has joined #ruby-lang
<jarred> How do I or a symbol? I want to do something like "constraints :subdomain => "www" || :subdomain => "" || :subdomain => "m""
igaiga has quit [Remote host closed the connection]
<macmartine> lianj: this is what i'm getting https://gist.github.com/2969846
<macmartine> lianj: oops, reload
<macmartine> lianj: i guess maybe that's expected, if super returns false? but when I step in, I am immediately in method_missing
TDJACR has quit [Read error: Operation timed out]
TDJACR has joined #ruby-lang
<macmartine> I mean, this is weird https://gist.github.com/2969856
postmodern has joined #ruby-lang
horesman has quit [Remote host closed the connection]
mistym has joined #ruby-lang
KINGSABRI has joined #ruby-lang
KINGSABRI has quit [Ping timeout: 272 seconds]
asahi has joined #ruby-lang
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 246 seconds]
jbsan_ is now known as jbsan
<asahi> wondering how I can iterate over an array but do something different for the last element. For example, creating a string like "link1<br />link2<br />link3" from an array of links
wpaulson has joined #ruby-lang
<lianj> ['a','b','c'].join('<br />')
<asahi> ah, thanks
benjammin891 has joined #ruby-lang
macmartine has quit [Ping timeout: 245 seconds]
Ace20 has quit [Quit: Page closed]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Boohbah has quit [Quit: 3.4.3-1-ck]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
asahi has quit [Quit: Leaving.]
sepp2k1 has quit [Remote host closed the connection]
umttumt has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
ryanf has joined #ruby-lang
kurko_ has quit [Quit: This computer has gone to sleep]
jarred has quit [Quit: jarred]
daym0n has joined #ruby-lang
imperator has joined #ruby-lang
kurko_ has joined #ruby-lang
asahi has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
<whitequark> hm
_whitelogger has quit [Remote host closed the connection]
umttumt has joined #ruby-lang
asahi has quit [Quit: Leaving.]
kurko_ has quit [Quit: This computer has gone to sleep]
savage- has joined #ruby-lang
sepp2k has joined #ruby-lang
coryf has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
robbyoconnor has joined #ruby-lang
dfr|mac has joined #ruby-lang
igotnolegs has joined #ruby-lang
woollyams has joined #ruby-lang
wpaulson has joined #ruby-lang
brianpWins has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
d3vic3 has quit [Ping timeout: 245 seconds]
d3vic3 has joined #ruby-lang
benjammin891 has quit [Ping timeout: 255 seconds]
msaffitz has joined #ruby-lang
emjaydub has joined #ruby-lang
emjaydub has left #ruby-lang [#ruby-lang]
coryf has joined #ruby-lang
flowerpot has quit [Quit: Ex-Chat]
ben_m has quit [Quit: Leaving]
umttumt has quit [Remote host closed the connection]
dfr|mac has quit [Remote host closed the connection]
iamlacroix has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
Z33K|Lux has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
RORgasm has quit [Remote host closed the connection]
Fullmoon has joined #ruby-lang
imperator has quit [Quit: Leaving]
daym0n has left #ruby-lang [#ruby-lang]
ryanf has quit [Quit: leaving]
andrewhl has joined #ruby-lang
bglusman has quit [Remote host closed the connection]
Carnage\ has joined #ruby-lang
cout has quit [Ping timeout: 244 seconds]
Carnage\ has quit []
macmartine has joined #ruby-lang
cout has joined #ruby-lang
Utkarsh_ has quit [Quit: No Ping reply in 180 seconds.]
Utkarsh has joined #ruby-lang
akira989 has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
naz has joined #ruby-lang
M4g1c5t0rM has quit [Ping timeout: 245 seconds]
yumike has joined #ruby-lang
gregf has quit [Quit: WeeChat 0.3.8]
jimmy1980 has quit [Ping timeout: 244 seconds]
mytrile has joined #ruby-lang
neocoin has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
zmack has joined #ruby-lang
coryf has quit [Remote host closed the connection]
Natch has joined #ruby-lang
savage- has quit [Remote host closed the connection]
piyush has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
Axsuul has quit [Ping timeout: 245 seconds]
Axsuul has joined #ruby-lang
msaffitz has joined #ruby-lang
TheHunter_1039 has quit [Quit: TheHunter_1039]
ryanf has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
outsmartin has joined #ruby-lang
ilyam has joined #ruby-lang
Z33K|Lux has quit []
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
solars has joined #ruby-lang
ilyam has quit [Client Quit]
workmad3 has joined #ruby-lang
bearlulz has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
Silex^^ has joined #ruby-lang
Silex has quit [Quit: quit]
Silex^^ is now known as Silex
savage- has joined #ruby-lang
solars has quit [Ping timeout: 265 seconds]
igaiga has joined #ruby-lang
igaiga_ has joined #ruby-lang
macmartine has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby-lang
igaiga has quit [Ping timeout: 250 seconds]
Nekka has joined #ruby-lang
RORgasm has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
Nekka has left #ruby-lang [#ruby-lang]
igaiga has joined #ruby-lang
macmartine has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby-lang
Nekka has joined #ruby-lang
igaiga_ has quit [Ping timeout: 250 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
qwerxy has joined #ruby-lang
Manhose has joined #ruby-lang
QaDeS has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
judofyr has joined #ruby-lang
macmartine has quit [Quit: macmartine]
Manhose has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby-lang
SiliconDon has joined #ruby-lang
JohnBat26 has joined #ruby-lang
postmodern has quit [Quit: Leaving]
lonre has joined #ruby-lang
neocoin has quit [Ping timeout: 272 seconds]
lonre has left #ruby-lang [#ruby-lang]
robin850 has joined #ruby-lang
<zenspider> rawr
<zenspider> I need ideas for a talk
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
srbartlett has quit [Remote host closed the connection]
perry is now known as perryh_away
<zenspider> I guess I shouldn't have expected much at 0040
neocoin has joined #ruby-lang
<zenspider> neocoin: YOU! Give me ideas for a talk!
qwerxy has quit [Read error: Connection reset by peer]
piyush has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby-lang
<judofyr> zenspider: hm… don't you usually have ten different insane silly projects?
<rue> Ooh, I had a good idea
<rue> But I don’t remember it now
SiliconDon has quit [Quit: SiliconDon]
<zenspider> judofyr: I have lots of silly projects... but that doesn't necessarily lead to a talk.
<zenspider> neocoin: you're a disappointment.
<zenspider> rue: you are too... but you knew that. :P
<rue> Yep
piyush has joined #ruby-lang
<zenspider> I'm still seeeriously tempted by that lapland vacation idea
fayimora has quit [Quit: Be back in a gifii]
fayimora has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<judofyr> lapland vacation?
telemachus has quit [Ping timeout: 246 seconds]
fra000 has joined #ruby-lang
telemachus has joined #ruby-lang
<rue> zenspider: You should go
<rue> seydar’s up there now, actually
bearlulz has quit [Quit: Computer has gone to sleep.]
mssola has joined #ruby-lang
ttilley_off is now known as ttilley
ttilley is now known as ttilley_off
gnufied has joined #ruby-lang
kunsel has joined #ruby-lang
postmodern has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby-lang
woollyams has quit [Ping timeout: 244 seconds]
ryanf has quit [Quit: leaving]
solars has joined #ruby-lang
hakunin has quit [Ping timeout: 276 seconds]
kunsel|2 has joined #ruby-lang
toretore has joined #ruby-lang
kunsel has quit [Ping timeout: 248 seconds]
kitallis has joined #ruby-lang
workmad3 has joined #ruby-lang
rking has quit [Ping timeout: 265 seconds]
iamlacroix has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
kunsel has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
bastilian has joined #ruby-lang
neoesque has quit [Quit: Bye!]
kunsel|2 has quit [Ping timeout: 255 seconds]
futurechimp has joined #ruby-lang
robotmay has joined #ruby-lang
tjadc has joined #ruby-lang
kunsel|2 has joined #ruby-lang
Criztian has joined #ruby-lang
savage- has quit [Remote host closed the connection]
kunsel has quit [Ping timeout: 265 seconds]
yannis has quit [Quit: yannis]
piyush has quit [Ping timeout: 248 seconds]
piyush has joined #ruby-lang
kunsel has joined #ruby-lang
IPGlider has joined #ruby-lang
kunsel|2 has quit [Ping timeout: 246 seconds]
IPGlider has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby-lang
<dhruvasagar> Hey
<dhruvasagar> record.created_at.as_json returns "2012-05-24T08:39:16Z"
ramonmaruko has quit [Quit: Leaving.]
<dhruvasagar> but that does not have timezone information, so when parsed at client side (Datejs), it automatically treats it as client timezone which is not the same as server timezone
IPGlider has joined #ruby-lang
<bnagy> it does have timezone information?
<bnagy> it's in zulu
<bnagy> utc+0
virunga has joined #ruby-lang
Axsuul has quit [Ping timeout: 240 seconds]
ramonmaruko has joined #ruby-lang
<workmad3> bnagy: just told him exactly the same in #rubyonrails :)
fayimora has quit [Ping timeout: 264 seconds]
<judofyr> bnagy: zulu?
fayimora has joined #ruby-lang
<oddmunds> zulu is just phonetic for z?
<rue> Yes
d3vic3 has quit [Ping timeout: 248 seconds]
fayimora has quit [Client Quit]
<judofyr> ah
d3vic3 has joined #ruby-lang
ryez has joined #ruby-lang
<apeiros_> the zululanians are proud of their timezone
kunsel|2 has joined #ruby-lang
rolfb has joined #ruby-lang
gouthamvel has joined #ruby-lang
kunsel has quit [Ping timeout: 272 seconds]
kunsel|2 has quit [Ping timeout: 252 seconds]
gouthamvel has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
ando_ has joined #ruby-lang
ando_ has quit [Client Quit]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
soahccc` is now known as soahccc
<matti> apeiros_: Hehe
dhruvasagar has quit [Read error: Connection reset by peer]
<rue> Actually, do the zulus fall under UTC?
kunsel|2 has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
<bnagy> ie I guess some of them might, but generally, no
<lzhz> rue: the zulus fell under the british empire
zmack has quit [Remote host closed the connection]
kunsel has joined #ruby-lang
kunsel has quit [Client Quit]
<rue> Hm, no…they’re decidedly close to modern-day RSA, it seems. Shows how much I know
kunsel|2 has quit [Ping timeout: 244 seconds]
QaDeS has quit [Quit: Ex-Chat]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
krz has joined #ruby-lang
justinmcp has quit [Ping timeout: 252 seconds]
justinmcp has joined #ruby-lang
<andrewvos> I had a zulu friend.
<andrewvos> He was short.
<rue> Oh, that guy
workmad3 has quit [Ping timeout: 255 seconds]
rking has joined #ruby-lang
woollyams has joined #ruby-lang
workmad3 has joined #ruby-lang
jstemmer has quit [Quit: leaving]
umttumt has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
umttumt has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
Hakon|mbp has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gouthamvel has joined #ruby-lang
KINGSABRI has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
cuttooth has quit [Remote host closed the connection]
fra000 has quit [Quit: Leaving]
bryancp has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
<andrewvos> .gsub(/([A-Z])/, "_#{$1}")
<andrewvos> I want to convert camelCase to snake_case.
<andrewvos> Make it happen ruby-lang!
<matti> LOL
umttumt has quit [Remote host closed the connection]
<matti> ThisCamelCaseString'.split(/([A-Z][a-z]+)/).reject(&:empty?).collect(&:downcase).join('_')
umttumt has joined #ruby-lang
<matti> Happy?
<matti> ;]
<ddfreyne> andrewvos: you can take gsub with a block
<ddfreyne> andrewvos: .gsub(/([A-Z])/) { |m| "_#{m.downcase}")
<ddfreyne> untested
<ddfreyne> andrewvos: .gsub(/([A-Z])/) { |m| "_#{m.downcase}" }
<oddmunds> is there a casing gem/lib?
<andrewvos> matti, ddfreyne: Wonder why $1 doesn't work inside gsub like that.
<oddmunds> camelcasing, snakecasing, screaming snake or what it's called. it could title case also
<matti> andrewvos: IIRC, *sub does not have back-tracking / caputring ability.
<ddfreyne> andrewvos: because the method arguments are evaluated before the method is executed
<apeiros_> andrewvos: steal it from active support
<apeiros_> well tested
<oddmunds> crouching tiger case and hidden dragon case
<andrewvos> ddfreyne: Ahh ok that seems obvious. Thanks.
umttumt has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
M4g1c5t0rM has joined #ruby-lang
justinmcp has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
zmack has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
yumike has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
banisterfiend has quit []
banisterfiend has joined #ruby-lang
mark_locklear has joined #ruby-lang
kaz_ has quit [Remote host closed the connection]
yugui_zzz is now known as yugui
gouthamvel has joined #ruby-lang
srbartlett has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
gouthamvel has quit [Ping timeout: 276 seconds]
jperry2 has joined #ruby-lang
gouthamvel has joined #ruby-lang
d3vic3 has quit [Ping timeout: 264 seconds]
d3vic3 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sailias has joined #ruby-lang
yugui is now known as yugui_zzz
tonni has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
dhruvasa1ar has quit [Read error: Connection reset by peer]
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
Nekka has quit [Quit: WeeChat 0.3.8]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mytrile has joined #ruby-lang
QaDeS has joined #ruby-lang
<mytrile> Hey, guys. Is there a way to filter array by value by not using find_all or reject ?
<rue> Filter how?
<rue> [1,2,3,4].magic # => ?
srbartlett has quit [Remote host closed the connection]
<banisterfiend> mytrile: ?
My_Hearing has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 276 seconds]
<mytrile> Say we have an array with 1000 elements, some of the are equal to 1. I want to get all indexes for elements equal to 1
<Muz> Oh sorry, you want the indexes, not the values, rght?
<mytrile> yep
<banisterfiend> mytrile: array.each_with_index.with_object([]) { |(v, i), o| o << i if v == 1 }
<rue> [1,2,1].select.with_index.map {|o, i| i if o == 1}.squeeze
<Muz> array.each_index { |i| puts i if array[i] == 1 }
<rue> Er, wait, what gets rid of nils?
<banisterfiend> rue: compact
<banisterfiend> rue: wtf is squeeze
<rue> That’s the bunny
<rue> String#squeeze
<banisterfiend> cool
<rue> Actually the #select does nothing there, I guess
<rue> Ah, #partition
<rue> Duh
francisfish has joined #ruby-lang
<judofyr> rue: #compact gets rid of nil
<rue> Yes, that’s the one
srbartlett has joined #ruby-lang
kurko_ has joined #ruby-lang
<banisterfiend> rue: that's the bunny
<rue> So array.map {|o, i| i if some_condition }.compact
<rue> But I’d probably put that in a method
<banisterfiend> map.with_index ?
<rue> And using #with_object is probably nicer.
<rue> That, yes
neocoin has joined #ruby-lang
<banisterfiend> that's the bunny
<banisterfiend> :P
<rue> Fucking bunnies escaping everywhere
Criztian has joined #ruby-lang
<mytrile> thanks guys
<banisterfiend> mytrile: which one did u go with mytr
<banisterfiend> rue: did u see prometheus?
<rue> Nah
<rue> Any good?
<mytrile> banisterfiend: I'll test which is the fastest now
<banisterfiend> rue: hmm, i just saw it tonight. It's a good premise but there's absolutely no resolutions; none of the mysteries are resolved at the end of the film so you're left thinking 'wtf???'
<banisterfiend> rue: so i found it frustrating
<rue> Still better than the ME3 ending™
<banisterfiend> rue: haha, ok, it was apparently written by the same guy who wrote lost
<banisterfiend> so maybe that it explains it
<Muz> You say "written", that would suggest that there was some sort of conclusive direction in the plot...
<banisterfiend> Muz: you saw prometheus?
<Muz> Nah, I'm just being snide and presenting an opinion about something, whilst not having a leg to stand on. ;)
<judofyr> banisterfiend: hm? J.J Abrams didn't write prometheus…
hynkle has joined #ruby-lang
carloslopes has joined #ruby-lang
postmodern has quit [Quit: Leaving]
<judofyr> banisterfiend: oh, JJ Abrams was the co-creator of Lost…
<judofyr> actually, it seems that Damon Lindelof was too
<judofyr> "Lost was created by Jeffrey Lieber, J. J. Abrams and Damon Lindelof"…
<judofyr> nevermind then
<judofyr> banisterfiend: CARRY ON
<banisterfiend> judofyr: finished :P did you see prometheus?
<judofyr> nope
<banisterfiend> too bad, i want to hear other people's theories on it
<banisterfiend> i didnt understand it at all
zz_wasnotrice is now known as wasnotrice
<lzhz> there will be a sequel, that's why there's some unanswered questions
<judofyr> banisterfiend: plot.send(:binding).pry
<banisterfiend> lzhz: well, if it's anything like 'lost', the answers will either not exist or be unsatisfying :/
<lzhz> like why the hell did the keep running forward instead of taking two steps to the side when the ship came rolling after them. ;)
ben_m has joined #ruby-lang
<banisterfiend> judofyr: hehe
<judofyr> banisterfiend: JJ Abrams had a lunch talk at WWDC this year. there was a Q&A. some guy started: "well, I have a lots of questions about Lost…". Abrams ran off the stage :)
<judofyr> s/a lots/lots/
TheHunter_1039 has joined #ruby-lang
andrewhl has joined #ruby-lang
<banisterfiend> judofyr: haha, yeah. it's relatively easy to create mystery piled on mystery, but infinitely more difficult to resolve them all in a satisfying way. what did u thin of the endig to lost?
wasnotrice is now known as zz_wasnotrice
<judofyr> banisterfiend: haven't seen Lost
imperator has joined #ruby-lang
zmack has quit [Remote host closed the connection]
EvilJStoker has quit [Excess Flood]
zz_wasnotrice is now known as wasnotrice
dfr|mac has joined #ruby-lang
sockmonk has joined #ruby-lang
<workmad3> judofyr: if you like resolved stories... never watch it
ttilley_off is now known as ttilley
dv310p3r has joined #ruby-lang
EvilJStoker has joined #ruby-lang
sailias has quit [Ping timeout: 248 seconds]
akira989 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
bryancp has joined #ruby-lang
piyush has quit [Ping timeout: 276 seconds]
enebo has joined #ruby-lang
rhodee has joined #ruby-lang
fgomez has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
d3vic3 has quit [Ping timeout: 252 seconds]
tzvi has joined #ruby-lang
digitalbane has joined #ruby-lang
tcopp has joined #ruby-lang
<jperry2> so I came a cross a nice approach to not using class variables and use class instance variables instead to save state but something from the top level can change the value of the class instance variable
<jperry2> any way to protect that so only your instances can change it?
zmack has joined #ruby-lang
<workmad3> jperry2: not in a way that can't be subverted :)
<workmad3> jperry2: but that's true of just about everything in ruby (and in fact, true in just about every language)
piyush has joined #ruby-lang
<jperry2> say for example I have this
<jperry2> class Test
<jperry2>
<jperry2> def self.test_variable
<jperry2> @test_variable ||= 0
<jperry2> end
<jperry2>
<jperry2> def self.test_variable=(n)
<jperry2> @test_variable = n
<jperry2> end
<andrewvos> jperry2: gist.github.com
<jperry2>
<jperry2> def initialize
<jperry2> self.class.test_variable += 1
<jperry2> end
<jperry2> end
<jperry2> sorry
<andrewvos> jesus
bryancp has quit [Remote host closed the connection]
<jperry2> wasn't thinking
tzvi has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
<jperry2> if I do Test.new test_variable is incremented
<outsmartin> please use gist
<outsmartin> this thing doesnt even load
<jperry2> but anything can just do a Test.test_variable = 0
<jperry2> and reset it
<jperry2> haste bin works too
<workmad3> jperry2: yes... but it's your code, so just don't do that :P
<andrewvos> Defensive coding --
<workmad3> jperry2: basically, learn to trust that people aren't automatically going to do crazy stuff just because they could
<jperry2> I see
<jperry2> I understand that but I just wanted to see if there was a way to prevent it
<jperry2> using ruby yes you have to trust
<workmad3> andrewvos: defensive coding is, to me, more about protecting against potentially crazy things in the environment rather than the code :)
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<workmad3> jperry2: any language, you have to trust
<workmad3> jperry2: just some, they pretend you don't
<jperry2> agreed
<jperry2> again sorry about the pasted code :)
<outsmartin> maybe put test_variable= under private?
<jperry2> that doesn't work
<outsmartin> jperry2: still cant open the hastebin link in chrome under linux
<workmad3> outsmartin: self.class.send(:test_variable=, 0)
<workmad3> jperry2: if you want to stop people doing it accidentally, maybe you want to not give a setter and getter
ttilley is now known as ttilley_off
cdt has joined #ruby-lang
<jperry2> well it allowed your instances to save state instead of using a class variable
<jperry2> which is an alternative
<workmad3> jperry2: for example, instead of giving a 'test_variable=' setter, give a 'increment_test_variable'
<jperry2> but when you subclass something that class variable state is shared
<lianj> jperry2: http://ideone.com/452Rl
<workmad3> jperry2: basically, by giving a 'test_variable_=' method, you're implicitly stating with your design that setting this variable is OK
gnufied has quit [Quit: Leaving.]
<workmad3> jperry2: whereas if you want it incremented, you give an increment method that advertises that this variable shouldn't be reset
<jperry2> got it I'm not using this in any code yet but wanted to see what people though
<outsmartin> lianj: my brain cannot comprehend
jgerry has joined #ruby-lang
jgerry has left #ruby-lang [#ruby-lang]
<jperry2> ha
<workmad3> lianj: yeah, that's a nicer way of doing it :)
<outsmartin> ah i understand
<jperry2> not a fan of the class << self usage
<workmad3> jperry2: it's the same as doing def self.whatever
<lianj> jperry2: true
<workmad3> jperry2: but does let you use class macros
zmack has quit [Ping timeout: 265 seconds]
kitallis has quit [Quit: Computer has gone to sleep.]
bglusman has quit [Remote host closed the connection]
kitallis has joined #ruby-lang
bglusman has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
hynkle has quit [Quit: hynkle]
kitallis has quit [Client Quit]
judofyr has quit [Remote host closed the connection]
bglusman has quit [Ping timeout: 260 seconds]
kurko__ has joined #ruby-lang
bryancp has joined #ruby-lang
zmack has joined #ruby-lang
bastilian has quit [Quit: Leaving...]
dfr|mac has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<Silex> I have the weirdest problem http://codepad.org/D9mfqLa4
rmascarenhas has joined #ruby-lang
<Silex> it happens in a rails app
<Silex> if I set obj explicitely to an array before hand it works
<Silex> but when it's from a rails collection array, this happens
dhruvasagar has quit [Ping timeout: 245 seconds]
rowanu has joined #ruby-lang
<imperator> does rails redefine === on its objects?
<jarib> Silex: IIRC case will do Array === obj
<jarib> (not obj === Array)
<whitequark> нуы
<whitequark> *yes
<imperator> what jarib said
<Silex> (rdb:1) p Array === obj
<Silex> false
<imperator> whitequark, what was that?
<Silex> (rdb:1) p Array === []
<Silex> true
crackity_jones has quit [Ping timeout: 248 seconds]
<Silex> so, now I only have to find out wth is happening with obj
<whitequark> imperator: wrong keyboard layout, which resulted in a few russian symbols
dfr|mac has joined #ruby-lang
<whitequark> happens from time to time.
<imperator> omg you're russian?!
<Silex> what is funny is that Array.object_id is == obj.class.object_id
<whitequark> yes
<Silex> rofl, WTF rails. calling #to_a makes it work again
<imperator> Silex, of course, the real question is....why are you checking?
<whitequark> imperator: what's so unusual about that? :)
<Silex> imperator: "of course" ?!?!? see this paste, same class same object_id same everything, yet different somehow
<kyrylo> Russians are odd.
<jarib> Silex: i'm pretty sure rails collections don't return the real class
<Silex> oh they fake the object_id too
<Silex> bastards
<Silex> okay, thanks!
<lianj> evil sorcery
<imperator> never try to understand the rails internals, you'll go insane
<imperator> just do what the nice manual says
<whitequark> did you know that AR3 scope is a monad?
<imperator> whitequark, oh, nothing, was just going to make a cold war joke or something, but then i couldn't think of one
bastilian has joined #ruby-lang
<whitequark> imperator: not only I'm russian, but also I was born after USSR fallen apart, so I won't grasp it anyway
<whitequark> (as3 scope) each scope is a dup of the original class
<whitequark> pretty clever I'd say
<banisterfiend> whitequark: are you one of those russians who does chin-ups from a bridge 200ft in the air
<banisterfiend> seems to be a thing in russia ;)
<whitequark> never heard of
<imperator> banisterfiend, was it you that asked me about c99 patches on windows a little while ago?
<banisterfiend> imperator: Yeah
<imperator> i was thinking about that and realized it would never be an issue
<banisterfiend> imperator: interesting why's dat
mytrile has quit [Remote host closed the connection]
<imperator> ruby compiles with msvc currently; always has (since 1.8 anyway); any incompatible c99 change would be reported as a bug; ergo it would never be an issue in practice
<banisterfiend> imperator: really? i saw a lot of c99 in the yarv code base
<banisterfiend> imperator: maybe microsoft extensions to c89 lets it pass
<imperator> well, it's not that msvc doesn't support c99, it's just not 100% compliant
<imperator> so the c99 code you see must be compatible
<banisterfiend> well, they officially refuse to support c99, so if they support it, they almost support it by accident as one of their extensions i think, rather than trying to support c99 explicitly
<imperator> whitequark, you and mentalguy would get along :)
<imperator> banisterfiend, or, just you know, compile as c++ ;)
<banisterfiend> imperator: does that 'just work' ?
<imperator> not always
qwerxy has quit [Ping timeout: 244 seconds]
msaffitz has joined #ruby-lang
msaffitz has quit [Client Quit]
KINGSABRI has quit [Ping timeout: 240 seconds]
qwerxy has joined #ruby-lang
piyush has quit [Ping timeout: 245 seconds]
crackity_jones has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
saLOUt has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
<kith> is it possible to compare/diff two tables in sequel?
hynkle has joined #ruby-lang
macmartine has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
<imperator> kith, assuming identical ddl, sure, though that's not a ruby question :)
<kith> ddl?
<imperator> data definition, i.e. the tables have the same columns
<kith> and i thought i'd ask on here because you guys use sequel too :D
<kith> imperator: ah, how would i do that?
fgomez has quit [Ping timeout: 252 seconds]
<kith> i'm using postgres and in sql i do something like select foo except select bar etc etc
<kith> i know i could pass sql statements to sequel but if there was build in methods that would be kinda cool :)
kurko__ has quit [Ping timeout: 244 seconds]
<imperator> kith, i did it in oracle using minus
<kith> dataset - dataset2?
<imperator> dunno if postgres supports that, e.g. select x,y,z from table1 minus select x,y,z from table2
<kith> yeah in postgres its "except" instead of "minus"
<imperator> there you go
thone_ has joined #ruby-lang
<kith> yeah but i was hoping to do it without writing sql
<imperator> are you using an ORM?
<kith> sequel
<imperator> oh, the gem, got it
<kith> yeah sry
<Tasser> kith, all abstractions break at a point
<kith> Tasser: what does that mean?
ryez has quit [Quit: Page closed]
dfr|mac has quit [Remote host closed the connection]
<kith> uhoh... dont tell me its not working like that... :S
<imperator> kith, never used it, but just looking at the docs, does d1.select(...) - d2.select(...) not work?
<kith> imperator: i'll try that
<Tasser> and hope it does it on the database, not in ruby
kurko__ has joined #ruby-lang
<imperator> Tasser, especially ORM's ;)
A124 has joined #ruby-lang
thone has quit [Ping timeout: 265 seconds]
<kith> uhmmm that doesnt sound good
<Tasser> imperator, indeed
<kith> so what do you guys suggest? ditch ORM's entirely? :D
<Tasser> nope, just be aware they are booby-trapped
<Tasser> just like a woman
<imperator> kith, depends what you're doing
<andrewvos> women are booby-trapped?W
<imperator> me? i used dbi for years before orm's in ruby got popular
zz_wasnotrice is now known as wasnotrice
<imperator> because, you see, I KNOW FUCKING SQL
<imperator> sorry, sorry, too much caffeine
<lianj> f'ing caffeine
KINGSABRI has joined #ruby-lang
<andrewvos> Someone get imperator a medal.
<imperator> that's it, i'm installing rdbi right now!
<andrewvos> Hold him back1
gnufied has joined #ruby-lang
<imperator> well, if there's one benefit to orm's, it's that they abstract away the vendor specific stuff
bglusman has joined #ruby-lang
<imperator> just in case your company decides to move 20 years of baggage to a new vendor for kicks
<imperator> you'll be safe!
gouthamvel has quit [Ping timeout: 260 seconds]
<Tasser> imperator, if you're using an ORM, you can't use most of the stuff your vendor provides anyway
bfreeman has quit [Quit: bfreeman]
<imperator> Tasser, indeed
<Tasser> what's the 'if this script is run as $0, run this code' in ruby?
<imperator> if $0 == __FILE__
<Tasser> thx
<kith> hmm switch from rdbms to oodbms ::D
<kith> :D
IPGlider has quit []
<andrewvos> FFUUUUU
coryf has joined #ruby-lang
d3vic3 has joined #ruby-lang
<workmad3> kith: nah, just think about your data structure a bit and make sure you've got a good fit, rather than just chucking a RDBMS in and throwing an ORM on top and assuming that it will sort everything out for you and solve your problems and be magical
* imperator wonders if Og is still around
<imperator> hm, does seem to be
sailias has joined #ruby-lang
<Tasser> argh @ minitest test shuffling
<oddmunds> that's supposed to be a good thing
<Tasser> how the heck do I test like http://sprunge.us/IUjG if minitest shuffles my test?
<imperator> don't use minitest?
yannis has joined #ruby-lang
<lianj> Tasser: seed to 0?
<Tasser> lianj, I can deactivate shuffling, but that sucks
florentg2 has joined #ruby-lang
Silex has quit [Quit: WeeChat 0.3.8]
<imperator> every day i'm shuffling
Silex has joined #ruby-lang
<oddmunds> Tasser: is your tests dependent on order of sequence?
<oddmunds> that's like a major test stink
andrewhl has quit [Remote host closed the connection]
<workmad3> Tasser: I think the idea is that you shouldn't test like that ;)
<Tasser> workmad3, how else should I test then?
<workmad3> oddmunds: no, he's generating a set of tests from an array
<imperator> yeah, yeah
<workmad3> Tasser: I'd personally trim down the examples and write a specific test for each one
<Tasser> workmad3, most of my tests are actually like that... I start writing tests if I want to test more than one case with the same method
<workmad3> Tasser: or move it out of a unit-test style into something that allows more table-based test approaches
<Tasser> workmad3, got me a lib for that? apeiros kinda abandoned his baretest ^^
<workmad3> Tasser: sounds like you'd actually be better served with Cucumber scenario outlines or Fitness tbh :)
lsegal has joined #ruby-lang
<Tasser> cucumber is overkill
bastilian has quit [Quit: Linkinus - http://linkinus.com]
<andrewvos> Cucumber is pretty cool if you use it right actually
<imperator> dare i say...rspec?
* imperator isn't a fan personally
<oddmunds> this is sort of acceptance testy, isn't it?
<workmad3> Tasser: I dunno then... as I said, I personally wouldn't consider tests like that
<Tasser> oddmunds, what's that?
<Tasser> workmad3, I do :-)
d3vic3 has quit [Quit: leaving]
<imperator> oddmunds, i've used it for unit testing
<imperator> not my favorite thing
<workmad3> Tasser: it makes the test too complicated for my liking, makes me want to test the test
<oddmunds> Tasser: i meant that the way you test is more akin to acceptance testing than unit testing
<oddmunds> or i meant to say that it "feels" that way to me
<Tasser> oddmunds, it's just a small piece of code I want to be sure it does work as it should...
<Tasser> in which case I'd like to test more than just one case
<oddmunds> it almost looks like a textbook cucumber thing
d3vic3 has joined #ruby-lang
<workmad3> Tasser: that said... what does the shuffling do at the moment?
<andrewvos> yeah
<workmad3> Tasser: does it just flat-out not work?
<workmad3> Tasser: or are you worrying about stuff that you haven't tried? :)
<Tasser> workmad3, fuck up @verb scope
<workmad3> Tasser: hmm... actually, that looks like rspec... can't you use a 'let(:verb)' instead of assigning an ivar?
bglusman has quit [Remote host closed the connection]
<lianj> its minitest/spec
<workmad3> you can let in minitest too, by the looks of things :)
<lianj> Tasser: tried putting the before block inside the second describe block?
<Tasser> workmad3, yes, you can, no doesn't help
<workmad3> describe "describe the word"; subject{Verb.new(verb)}; it"
<Tasser> lianj, eeeehm, nope. point for you.
<workmad3> Tasser: I think lianj may be onto something... the before location is the real problem
<workmad3> Tasser: think about it... in the outside describe block, you have 4 before blocks...
<workmad3> I think that would be borked even without shuffling :)
<Tasser> fail
<workmad3> the last one to run would always be the @verb you get
<Tasser> fuck
<Tasser> lianj, or should I undelete the question?
<lianj> i havent logged on to stackoverflow in years :D
<Tasser> oke
carloslopes has quit [Ping timeout: 252 seconds]
<workmad3> Tasser: if you're going to do that style btw, maybe consider sticking the word into the describe string too
<workmad3> Tasser: so you have 'describe "describe the word #{verb}" do...
<lianj> good point
arooni-mobile has quit [Quit: Leaving]
<Tasser> workmad3, thanks
<Tasser> alias new old or alias old new ?
<Tasser> and any good clue how to remember that?
<workmad3> Tasser: and I'm guessing you should always have the describe as the first thing in the block... you could potentially create an extension for minitest to let you do ary.describe_each "%{item} should do stuff" do ... end
<Tasser> workmad3, I'll think about that
<workmad3> I'm just procrastinating on a friday afternoon now, btw :)
Defusal has quit [Quit: Quit message goes here]
jano has joined #ruby-lang
<Tasser> good, you're helping someone else (me) work :D
<Tasser> consider it indulgences
<workmad3> :)
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
<Tasser> 18 tests, 18 assertions, 0 failures, 0 errors, 0 skips
<Tasser> weeehee
hynkle has quit [Quit: hynkle]
<workmad3> :)
apeiros_ has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
andrewhl has joined #ruby-lang
krz has quit [Ping timeout: 255 seconds]
vmoravec has quit [Quit: Leaving]
hakunin has joined #ruby-lang
<Tasser> 16 files changed, 3323 insertions(+), 37 deletions(-)
<banisterfiend> Tasser: seems like a small amount of tests for that many files :P
robotmay has quit [Remote host closed the connection]
<Tasser> 3129 total
<Tasser> that's data :-)
<banisterfiend> cool, what's the project Tasser?
<Tasser> ehh, ~ 10 more of data
zmack has quit [Ping timeout: 276 seconds]
<Tasser> banisterfiend, apertium for rumantsch (still incubator state)
<banisterfiend> Tasser: wht does it do
<banisterfiend> i have no idea what apterium or rumantsch are :P
asahi has joined #ruby-lang
<Tasser> banisterfiend, apertium is machine translation, rumantsch a language spoken in swizerland and around - with a shitload of idioms (more differences than dialects)
<Tasser> banisterfiend, is there a pry module for starting up at failed minitest examples?
zmack has joined #ruby-lang
stamina has quit [Quit: Lost terminal]
stamina has joined #ruby-lang
butchanton has joined #ruby-lang
kurko___ has joined #ruby-lang
<banisterfiend> Tasser: yes plymouth, but i haven't worked on it for a while
<banisterfiend> Tasser: let me nkow if plymouth works for u: https://github.com/banister/plymouth
kurko__ has quit [Ping timeout: 276 seconds]
<Tasser> pry-minitest ? :-)
<banisterfiend> Tasser: no, it's called plymouth :P
dhruvasagar has joined #ruby-lang
sora_h is now known as s0ra_h
dhruvasagar has quit [Client Quit]
<banisterfiend> Tasser: can u get back to me on the efficacy of plymouth? i haven't had much feedback
<jano> any treetop experts around? i have this erb grammar and would like to ignore trailing whitespace. https://gist.github.com/2973631 ping me if you know this stuff :D
msaffitz has joined #ruby-lang
fgomez has quit [Ping timeout: 252 seconds]
ttilley has joined #ruby-lang
tjadc has quit [Ping timeout: 240 seconds]
deryl has quit [Ping timeout: 265 seconds]
fgomez has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
deryl has joined #ruby-lang
carloslopes has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
solars has quit [Ping timeout: 246 seconds]
deryldoucette has joined #ruby-lang
deryl is now known as Guest60214
deryldoucette is now known as deryl
Guest60214 has quit [Ping timeout: 272 seconds]
enebo has quit [Quit: enebo]
savage- has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
tcopp has left #ruby-lang [#ruby-lang]
akira989 has quit [Remote host closed the connection]
bfreeman has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
cantonic_ has joined #ruby-lang
zmack has quit [Remote host closed the connection]
solars has joined #ruby-lang
cantonic has quit [Ping timeout: 240 seconds]
cantonic_ is now known as cantonic
akira989 has joined #ruby-lang
rhodee has quit [Quit: rhodee]
asahi has left #ruby-lang [#ruby-lang]
<zzak> let is just a fancy lambda
yannis has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
<macmartine> Why does this return false? https://gist.github.com/2973942
ttilley has quit [Remote host closed the connection]
d3vic3 has quit [Quit: leaving]
ilyam has joined #ruby-lang
virunga has quit [Read error: Connection reset by peer]
qwerxy has quit [Ping timeout: 244 seconds]
corsican has quit [Quit: leaving]
iamlacroix has joined #ruby-lang
benanne has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
florentg2 has quit [Ping timeout: 276 seconds]
heftig has quit [Ping timeout: 245 seconds]
rhodee has joined #ruby-lang
soahccc is now known as soahccc`
crackity_jones has quit [Quit: Computer has gone to sleep.]
heftig has joined #ruby-lang
naz has joined #ruby-lang
rmascarenhas has joined #ruby-lang
sailias has quit [Ping timeout: 264 seconds]
tcopp has joined #ruby-lang
ilyam has quit [Quit: ilyam]
Hakon|mbp has quit [Quit: Leaving...]
fgomez has quit [Ping timeout: 252 seconds]
hynkle has joined #ruby-lang
florentg2 has joined #ruby-lang
crackity_jones has joined #ruby-lang
corsican has joined #ruby-lang
mrsolo has joined #ruby-lang
fgomez has joined #ruby-lang
ilyam has joined #ruby-lang
Skif has quit [Ping timeout: 240 seconds]
enebo has joined #ruby-lang
Nekka has joined #ruby-lang
Skif has joined #ruby-lang
A124 has quit [Quit: Leaving.]
neocoin has joined #ruby-lang
Xzyx987X_ has quit [Read error: Connection reset by peer]
Xzyx987X_ has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
Xzyx987X_ has quit [Read error: Connection reset by peer]
LnL has joined #ruby-lang
mssola has quit [Quit: Konversation terminated!]
A124 has joined #ruby-lang
LnL has quit [Remote host closed the connection]
qpingu has joined #ruby-lang
futurechimp has quit [Quit: Leaving]
Torrieri has quit [Remote host closed the connection]
Hakon|mbp has joined #ruby-lang
My_Hearing is now known as Mon_Ouie
wallerdev has joined #ruby-lang
TDJACR has quit [Read error: Operation timed out]
rippa has joined #ruby-lang
gregf has joined #ruby-lang
Axsuul has joined #ruby-lang
bglusman has joined #ruby-lang
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
jperry2_ has joined #ruby-lang
Jake232 has joined #ruby-lang
hynkle has quit [Read error: Connection reset by peer]
jperry2_ has quit [Ping timeout: 276 seconds]
jperry2 has quit [Ping timeout: 276 seconds]
cmaujean has joined #ruby-lang
fgomez has quit [Ping timeout: 260 seconds]
hynkle has joined #ruby-lang
cmaujean_ has quit [Ping timeout: 265 seconds]
sailias has joined #ruby-lang
SiliconDon has joined #ruby-lang
fgomez has joined #ruby-lang
gouthamvel has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
akira989 has quit [Remote host closed the connection]
selvakumaran has joined #ruby-lang
florentg2 has quit [Quit: florentg2]
elux has joined #ruby-lang
akira989 has joined #ruby-lang
<elux> wycats: hey you there..? quick one for you about Thor
<elux> its a very simple namespace example, one that seemed to work about a year ago as the original author showed the expected output..
gouthamvel has quit [Ping timeout: 248 seconds]
slyphon has joined #ruby-lang
pcboy_ has quit [Ping timeout: 246 seconds]
pcboy_ has joined #ruby-lang
florentg2 has joined #ruby-lang
florentg2_ has joined #ruby-lang
ilyam has quit [Quit: ilyam]
florentg2 has quit [Ping timeout: 276 seconds]
florentg2_ is now known as florentg2
<elux> wycats: yea.. pretty sure theres a bug in thor with namespaces when running it as a custom executable.. in some way
hynkle has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby-lang
Criztian_ has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby-lang
Austin__ has joined #ruby-lang
Criztian has quit [Ping timeout: 276 seconds]
Hakon|mbp has quit [Remote host closed the connection]
Austin__ has left #ruby-lang [#ruby-lang]
Hakon|mbp has joined #ruby-lang
hynkle has joined #ruby-lang
Austin__ has joined #ruby-lang
selvakumaran has quit [Ping timeout: 276 seconds]
robin850 has quit [Quit: Konversation terminated!]
publicvoid__ has quit [Ping timeout: 240 seconds]
hynkle has quit [Quit: hynkle]
cwd1 has joined #ruby-lang
tspy has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
akira989 has joined #ruby-lang
digitalbane has left #ruby-lang [#ruby-lang]
publicvoid__ has joined #ruby-lang
elux has quit [Quit: Bye!]
s0ber_ has joined #ruby-lang
cwd1 has quit [Remote host closed the connection]
Xzyx987X has joined #ruby-lang
bearlulz has joined #ruby-lang
bearlulz has joined #ruby-lang
s0ber has quit [Ping timeout: 272 seconds]
s0ber_ is now known as s0ber
msaffitz has quit [Quit: Computer has gone to sleep.]
mark_locklear has quit [Remote host closed the connection]
tcopp has left #ruby-lang [#ruby-lang]
achiu has quit [Quit: WeeChat 0.3.8]
msaffitz has joined #ruby-lang
chuck is now known as cmelbye
cjs226 has joined #ruby-lang
Austin__ has left #ruby-lang [#ruby-lang]
burgestrand has joined #ruby-lang
erics has joined #ruby-lang
Skif has quit [Ping timeout: 240 seconds]
qwerxy has joined #ruby-lang
tspy has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
<zenspider> imperator: oi
bearlulz has quit [Quit: Computer has gone to sleep.]
<zenspider> ARGH. I have writers block
<zenspider> I need ideas for a talk.
<zenspider> OK... GO:
carloslopes has quit [Quit: Leaving.]
carloslopes has joined #ruby-lang
ilyam has joined #ruby-lang
sockmonk has quit [Remote host closed the connection]
rmascarenhas has quit [Quit: leaving]
rowanu has quit [Remote host closed the connection]
<burgestrand> zenspider: how long?
Hakon|mbp has quit [Quit: Linkinus - http://linkinus.com]
tonni has joined #ruby-lang
cjs226 has quit []
jano has quit [Remote host closed the connection]
saLOUt has quit [Quit: Konversation terminated!]
Guedes has quit [Quit: Saindo]
bglusman has quit [Remote host closed the connection]
havenn has joined #ruby-lang
S1kx has joined #ruby-lang
rippa has quit [Ping timeout: 248 seconds]
rhodee has quit [Quit: rhodee]
S2kx has quit [Ping timeout: 265 seconds]
florentg2 has quit [Quit: florentg2]
florentg2 has joined #ruby-lang
fgomez has quit [Ping timeout: 245 seconds]
kurko___ has quit [Quit: Saindo]
misham has joined #ruby-lang
<zenspider> burgestrand: sorry. I got distracted. um. 30 minutes
<zenspider> also thinking about gogaruco and I'm not sure how long that is
<burgestrand> zenspider: no worries, I’m distracted too :p
<zenspider> I think it is 45-50
coryf has quit [Read error: Connection reset by peer]
coryf_ has joined #ruby-lang
sailias has quit [Quit: Leaving.]
<burgestrand> Have been thinking a bit about it but I don’t have any ideas I’m afraid
wpaulson has joined #ruby-lang
robotmay has joined #ruby-lang
<burgestrand> I tend to take a liking to the motivational/inspirational talks as opposed to the technical or demo talks when it comes to longer sessions
florentg2 has quit [Quit: florentg2]
<rue> Oh! I thought about it today too
<rue> Didn’t come up with anything
neocoin has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<zenspider> rue: seriously... a disappointment.
<rue> :D
qwerxy has quit [Quit: offski]
mistym has quit [Remote host closed the connection]
dv310p3r has quit [Ping timeout: 276 seconds]
qwerxy has joined #ruby-lang
Nekka has quit [Ping timeout: 276 seconds]
neocoin has quit [Remote host closed the connection]
qwerxy has quit [Client Quit]
hinbody has quit [Ping timeout: 245 seconds]
fayimora has joined #ruby-lang
outsmartin has quit [Quit: Leaving.]
hinbody has joined #ruby-lang
outoftime has quit [Quit: Leaving]
s0ra_h is now known as sora_h
<rue> I really did have a good idea
peppyheppy has joined #ruby-lang
peppyheppy has quit [Client Quit]
sepp2k has joined #ruby-lang
<zenspider> rue: write it down damnit
havenn has quit [Remote host closed the connection]
florentg2 has joined #ruby-lang
LnL has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 260 seconds]
LnL has quit [Remote host closed the connection]
M4g1c5t0rM has quit [Read error: Connection reset by peer]
coryf_ has quit [Remote host closed the connection]
solars has quit [Read error: Operation timed out]
M4g1c5t0rM has joined #ruby-lang
misham has quit [Ping timeout: 244 seconds]
Kuukunen has quit [Read error: Connection reset by peer]
Criztian_ has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 244 seconds]
A124 has quit [Quit: Leaving.]
LnL has joined #ruby-lang
sora_h is now known as s0ra_h
workmad3 has joined #ruby-lang
rmascarenhas has joined #ruby-lang
LnL has quit [Remote host closed the connection]
havenn has joined #ruby-lang
mobile_ has joined #ruby-lang
benjammin891 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
misham has joined #ruby-lang
scientes has joined #ruby-lang
<scientes> has anyone ported ruby to emscripen, so that you can run ruby in the browser?
sailias has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
s0ra_h is now known as sora_h
<zenspider> meh
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
<naquad> i have a StringScanner instance and i want to get matched groups from string_scanner_obj.scan(/([^:]+):(.+?)\]\]/) expression. how do i do that?
florentg2 has quit [Quit: florentg2]
mobile_ has quit [Remote host closed the connection]
florentg2 has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
wpaulson has joined #ruby-lang
misham has quit [Ping timeout: 260 seconds]
<zenspider> naquad: ri StringScanner.[]
<naquad> zenspider, thanks, found it already :) finally googled sane docs for StringScanner. first result was old version of rdoc with really bad docs
<zenspider> ri works better than google
Kuukunen has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Kellin has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
seanstickle has joined #ruby-lang
sora_h is now known as s0ra_h
burgestrand has quit [Quit: Leaving.]
<imperator> zenspider, yo
florentg2 has quit [Quit: florentg2]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
florentg2 has joined #ruby-lang
woollyams has joined #ruby-lang
<imperator> you rang?
ilyam has quit [Quit: ilyam]
macmartine has quit [Quit: macmartine]
toretore has quit [Quit: This computer has gone to sleep]
robotmay has quit [Remote host closed the connection]
Jake232 has quit [Quit: Computer has gone to sleep.]
benanne has quit [Quit: kbai]
s0ra_h is now known as sora_h
Natch has quit [Ping timeout: 248 seconds]
yannis has joined #ruby-lang
<zenspider> oh hey
sora_h is now known as s0ra_h
<zenspider> um. I didn't understand some of your diffs
<zenspider> but. I have no brain now so I don't remember what... looking again
<zenspider> imperator: ^
<imperator> zenspider, which one?
Natch has joined #ruby-lang
<zenspider> ah. right. like this: file, line = caller[1].split(/:\d/)
<imperator> for winders paths
<imperator> c:/foo/bar
igaiga has joined #ruby-lang
<imperator> you were splitting on ":", which resulted in the rest of the path getting chopped off
<zenspider> but your split throws away the most significant digit of the line number, no?
<imperator> does it matter? it's just a comment in the generated source, right? and it passes your tests :)
sepp2k has joined #ruby-lang
<imperator> unless there's some significance of which i am unaware
<zenspider> '# line' is used for generated source so that you can refer back to the original code correctly
workmad3 has quit [Ping timeout: 264 seconds]
butchanton has quit [Quit: Leaving.]
<zenspider> ie, not a comment... but a preprocessor macro
<imperator> oh, let me check
* imperator fires up his windows vm