apeiros changed the topic of #ruby-lang to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
elico has quit [Ping timeout: 245 seconds]
pythonsnake has joined #ruby-lang
davidbalbert is now known as davidbalber|away
headius has quit [Ping timeout: 256 seconds]
rhizmoe has joined #ruby-lang
elico has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
enebo has quit [Quit: enebo]
outoftime has quit [Quit: Leaving]
<rhizmoe> is there a convention regarding when i would want a method to return false vs. nil ?
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
<rhizmoe> wherein the alternative would be to return an object, data, etc..
lun__ has joined #ruby-lang
lun_ has quit [Ping timeout: 240 seconds]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
Sinestro has joined #ruby-lang
<drbrain> rhizmoe: I only worry about false vs nil when I want to distinguish between "no" and "I don't know"
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
<drbrain> rhizmoe: it's very rare
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
<CoverSlide> usually nil if the return type is an object
<CoverSlide> false if the return type is a boolean
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
<zenspider> return... type...
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
<zenspider> I return something truthy or falsey if it is a predicate method. What it actually is is of no concern to the user
ViPi has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
lun__ has quit [Ping timeout: 248 seconds]
hakunin_ is now known as hakunin
lun_ has joined #ruby-lang
richardjortega has quit [Quit: richardjortega]
ViPi has quit [Quit: Computer has gone to sleep.]
<andrewvos> I appreciate the fact that you say what you think zenspider.
benanne has quit [Quit: kbai]
<andrewvos> Sometimes you come off as quite rude, but we do need people like you.
<andrewvos> re: link above
<zenspider> I don't see anything in that post that is "quite rude"... what specifically are you referring to?
Bearproof has joined #ruby-lang
<andrewvos> Well the first paragraph can be seen as rude, by some people.
<andrewvos> Anyway, it's generally a good thing to complain about what is wrong.
* imperator looks
jtoy has joined #ruby-lang
<andrewvos> Anyway, night night x
Averna has joined #ruby-lang
mjolk has joined #ruby-lang
mjolk is now known as Guest84309
carloslopes has joined #ruby-lang
<andrewvos> zenspider: Wow that b.!() part really screwed me over recently! Might have to book mark that post.
<andrewvos> bookmark*
<havenn> zenspider: Just a nit, but was referencing QuickRef and it looks like "$PID" bests fits in the middle column under "Medium".: http://zenspider.com/Languages/Ruby/QuickRef.html#require-english
<andrewvos> k night
<zenspider> havenn: sec... looking
andrewhl has joined #ruby-lang
Bearproof has quit [Quit: Leaving.]
<zenspider> havenn: fixed and published. thanks
elico has quit [Quit: Elico]
<zenspider> oh. it was prolly the $$ before it that screwed up my regexp for aligning
<zenspider> poo
ViPi has joined #ruby-lang
Guest84309 has quit [Ping timeout: 264 seconds]
ViPi has quit [Max SendQ exceeded]
marr has quit [Ping timeout: 256 seconds]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
mwjcomputing has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
banisterfiend has joined #ruby-lang
<banisterfiend> l
<banisterfiend> drbrain: any idea what's goin on here? http://pastebin.com/pe5FkDhc
<drbrain> banisterfiend: it's probably a bug I've fixed in RDoc 4…
<banisterfiend> cool
lun_ has quit [Ping timeout: 248 seconds]
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
lun_ has joined #ruby-lang
<drbrain> banisterfiend: odd, I can't reproduce it with rdoc 3.12 and 1.9.3-p286
ryanv-raptor has quit [Quit: Leaving.]
<drbrain> I'll build the latest 1.9.3 later and try
<banisterfiend> thanks
lun__ has joined #ruby-lang
lun_ has quit [Ping timeout: 256 seconds]
carloslopes has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
unlikely_monkey has joined #ruby-lang
itsmeduncan has quit [Quit: itsmeduncan]
workmad3 has quit [Ping timeout: 255 seconds]
mwjcomputing has quit [Ping timeout: 245 seconds]
RORgasm has joined #ruby-lang
fjfish has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
RORgasm has quit [Ping timeout: 248 seconds]
francisfish has quit [Ping timeout: 248 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
jkyle has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
mjio has quit []
socialcoder has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
<socialcoder> just as ~= is called match, what is %s called?
<drbrain> sprintf
RWN_ has joined #ruby-lang
RWN has quit [Read error: Connection reset by peer]
earthquake has joined #ruby-lang
cjs226 has quit []
mistym has quit [Remote host closed the connection]
<imperator> what do i have to require to get at Net::HTTP::Proxy?
<imperator> i thought it was just net/http, but that doesn't seem to be cutting it
ddd has quit [Ping timeout: 245 seconds]
<drbrain> imperator: that's all you need
<drbrain> remember, it's a method
<drbrain> Net::HTTP::Proxy(...)
<imperator> oic
<imperator> thanks
rsl has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
bantic has quit [Quit: bantic]
<imperator> drbrain, any suggestions on how to handle ENV['no_proxy'] with Net::HTTP?
<drbrain> imperator: ruby 2.0 handles it :/
krz has joined #ruby-lang
<drbrain> in 1.9 and older my net-http-persistent can use the proxy environment variables also
<drbrain> shoot, I need to update it for 2.0 still
spuk has joined #ruby-lang
<drbrain> maybe I'll do that tomorrow
<imperator> ah, well I'm updating net-ping, got a bug report
bfreeman_ has quit [Quit: bfreeman_]
<drbrain> in 1.9 there's code in open-uri that can detect proxy information from ENV but I don't recall if no_proxy is included or not
cirenyc has joined #ruby-lang
ten1 has quit [Ping timeout: 276 seconds]
<imperator> on a side note, i kinda wish ENV wasn't case sensitive
<rhizmoe> drbrain: ah, "no" vs. "i don't know" is good enough a heuristic for me, thanks :)
<imperator> this seem reasonable? https://github.com/djberg96/net-ping/issues/14
mjio has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
blazes816 has quit [Quit: blazes816]
<drbrain> imperator: I think you need the proxy host and proxy port in there
<imperator> ah, i can set that in the constructor
<drbrain> also, lowercase env is preferred over uppercase
<drbrain> there's also a security vulnerability when you use HTTP_PROXY from a CGI script
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<imperator> oh wait, i get the port from the uri normally, i'll have to do that in the ping method
<drbrain> this giant method is what net/http uses in 2.0 (and open-uri in 1.9)
<imperator> ok, thanks
<drbrain> line 1616 plugs the security hole
banisterfiend is now known as banister`sleep
<imperator> line 1616 of http.rb ?
<imperator> wow
<imperator> (doesn't deal with cgi vuln though)
emptyflask has joined #ruby-lang
<drbrain> I think it should look like:
<drbrain> if (proxy stuff) then http_klass = Net::HTTP::Proxy(proxy_host, proxy_port) else http_klass = Net::HTTP end
<drbrain> http = Net::HTTP.new(uri.host, uri.port)
<drbrain> Net::HTTP::Proxy returns an anonymous class
havenn has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 276 seconds]
<drbrain> oops! that second line should be http_klass.new(uri.host, uri.port)
emptyflask has quit [Ping timeout: 244 seconds]
<imperator> what happens if both http_proxy and https_proxy are set?
<imperator> just realized my code might not make sense there
ivanoats has quit [Remote host closed the connection]
<drbrain> I think you're supposed to use https_proxy for https:// URLs
<drbrain> but I don't know
imajes has quit [Excess Flood]
ilyam has quit [Quit: ilyam]
imajes has joined #ruby-lang
ged has joined #ruby-lang
<imperator> ok
<imperator> and now....how do i test this? is there a public proxy i can use?
havenn has joined #ruby-lang
tomzx_mac has joined #ruby-lang
<imperator> oh, found a list of free proxies, i'll try one of those
drbrain has quit [Remote host closed the connection]
ViPi has quit [Quit: Computer has gone to sleep.]
esad has joined #ruby-lang
earthquake has quit [Quit: earthquake]
ddd has joined #ruby-lang
datanoise has joined #ruby-lang
methods has joined #ruby-lang
ilyam has joined #ruby-lang
karasawa has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
RWN_ has quit [Remote host closed the connection]
methods has left #ruby-lang [#ruby-lang]
aedornm has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
gregmoreno has quit [Ping timeout: 264 seconds]
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
madish has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 252 seconds]
<socialcoder> what does is_a stand for?
<erichmenge> what?
<erichmenge> It doesn't stand for anything. It is just English. "is a?"
<socialcoder> assert_equal __, nil.is_a?(Object)
<socialcoder> I thgt it is something seeing the ? after it
<erichmenge> I'm not quite following, but that is a strange test
<erichmenge> nil.is_a?(Object) #=> true
<socialcoder> class AboutNil < EdgeCase::Koan def test_nil_is_an_object assert_equal __, nil.is_a?(Object), "Unlike NULL in other languages" end
<socialcoder> thats the whole thing
karasawa has quit [Quit: Lost terminal]
karasawa has joined #ruby-lang
<erichmenge> socialcoder: Well I'm not sure what __ is...
<erichmenge> is_a? just tests if an object is of a particular inheritance
Croms has joined #ruby-lang
<erichmenge> nil is an object, so that's true
<socialcoder> I see
sn0wb1rd has joined #ruby-lang
<erichmenge> and assert_equal tests if two objects are "equal", but I'm not sure what __ is.
<erichmenge> oh I see
<erichmenge> I googled your Koan and you're supposed to "fill in the blank"
<socialcoder> what?
<socialcoder> yes
<socialcoder> I am supposed to
bzalasky has joined #ruby-lang
<socialcoder> just wondering what am I supposed to fill
<socialcoder> well
<socialcoder> I am supposed to fill in with true
datanoise has joined #ruby-lang
sn0wb1rd has quit [Remote host closed the connection]
<erichmenge> Yeah, that is a strange exercise.
<erichmenge> Don't test if anything is equal to true when you're trying to test truthyness, FYI.
<erichmenge> I don't know the context of that exercise, but I feel like it could cause confusion.
<erichmenge> (I'm not familiar with Koans)
<socialcoder> can you elaborate please?
<erichmenge> socialcoder: don't assert_equal true, because:
<erichmenge> irb(main):006:0> "a" == true
<erichmenge> => false
<socialcoder> strange
<erichmenge> no
<socialcoder> this one gave me success
ddd1 has joined #ruby-lang
<erichmenge> well, yes in that example true is true
<erichmenge> What I'm saying is, don't test if something equals true in your own tests.
<socialcoder> right
<erichmenge> I have to go catch a bus. Good luck!
<socialcoder> everyone' catching a bus these days
<socialcoder> nice!
ddd1 has left #ruby-lang [#ruby-lang]
ddd has quit [Ping timeout: 245 seconds]
imajes has quit [Excess Flood]
karasawa has quit [Quit: Lost terminal]
karasawa has joined #ruby-lang
imajes has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
bzb has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
davidbalber|away is now known as davidbalbert
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
drbrain has joined #ruby-lang
RORgasm has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
drbrain has quit [Ping timeout: 244 seconds]
RORgasm has quit [Ping timeout: 248 seconds]
ViPi has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
rdw200169 has quit [Ping timeout: 260 seconds]
elux has joined #ruby-lang
elux has quit [Read error: Connection reset by peer]
ViPi has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
elux_ has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
io_syl has quit [Ping timeout: 240 seconds]
Bearproof has joined #ruby-lang
techlife has quit [Ping timeout: 244 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
havenn has quit [Remote host closed the connection]
ddd has joined #ruby-lang
techlife has joined #ruby-lang
havenn has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
hahuang65 has quit [Quit: Computer has gone to sleep.]
socialcoder has quit [Ping timeout: 256 seconds]
thufir_ has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
mercwithamouth has joined #ruby-lang
levifig has quit [Excess Flood]
levifig has joined #ruby-lang
dwu1 has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
levicole has joined #ruby-lang
Kero has quit [Ping timeout: 260 seconds]
Kero has joined #ruby-lang
imajes has quit [Excess Flood]
jtoy has quit [Quit: jtoy]
bfreeman has joined #ruby-lang
imajes has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
cirenyc has quit [Quit: Leaving...]
cirenyc has joined #ruby-lang
ten1 has joined #ruby-lang
cirenyc has quit [Client Quit]
jonahR has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
rdw200169 has joined #ruby-lang
bluepojo has quit [Quit: Leaving.]
em0ral has joined #ruby-lang
socialcoder has joined #ruby-lang
earthquake has joined #ruby-lang
jonahR has quit [Quit: jonahR]
b1rkh0ff has quit [Ping timeout: 248 seconds]
elux_ has quit [Quit: Bye!]
Croms_ has joined #ruby-lang
Croms has quit [Ping timeout: 264 seconds]
drbrain has joined #ruby-lang
cirenyc has joined #ruby-lang
thufir_ has quit [Quit: Leaving.]
Bearproof has quit [Quit: Leaving.]
cirenyc has quit [Ping timeout: 245 seconds]
asaaki|home has quit [Ping timeout: 276 seconds]
jonahR has joined #ruby-lang
io_syl has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
RORgasm has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
RORgasm has quit [Ping timeout: 248 seconds]
em0ral has quit [Remote host closed the connection]
em0ral has joined #ruby-lang
cirenyc has joined #ruby-lang
havenn has quit [Remote host closed the connection]
asaaki has joined #ruby-lang
cirenyc has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby-lang
brianpWins has joined #ruby-lang
cirenyc has joined #ruby-lang
socialcoder has quit []
hahuang65 has joined #ruby-lang
ryanf has quit [Quit: leaving]
cirenyc has quit [Ping timeout: 256 seconds]
mpan has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Read error: Connection timed out]
mpan has joined #ruby-lang
hahuang65 has joined #ruby-lang
ilyam has quit [Quit: ilyam]
mistym has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 252 seconds]
tomzx_mac has quit [Read error: Operation timed out]
wmoxam has joined #ruby-lang
gokul has joined #ruby-lang
mpan has quit [Ping timeout: 248 seconds]
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
ryanf has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
cirenyc has quit [Ping timeout: 248 seconds]
tonni has quit [Remote host closed the connection]
headius has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
gregmoreno has joined #ruby-lang
Croms_ has left #ruby-lang [#ruby-lang]
ryanf has joined #ruby-lang
ryanf has quit [Client Quit]
ryanf has joined #ruby-lang
JohnBat26 has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 245 seconds]
mjio has quit []
tonni has joined #ruby-lang
tonni has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
cirenyc has quit [Ping timeout: 264 seconds]
em0ral has quit [Remote host closed the connection]
mossplix has joined #ruby-lang
mercwithamouth has joined #ruby-lang
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
davidbalbert is now known as davidbalber|away
earthquake has quit [Quit: earthquake]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
RORgasm has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
RORgasm has quit [Ping timeout: 248 seconds]
Sinestro has quit [Ping timeout: 240 seconds]
mossplix has quit [Ping timeout: 276 seconds]
mossplix has joined #ruby-lang
cirenyc has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
em0ral has joined #ruby-lang
em0ral has quit [Remote host closed the connection]
cirenyc has quit [Ping timeout: 245 seconds]
thufir_ has joined #ruby-lang
dr_bob has joined #ruby-lang
mossplix has quit [Ping timeout: 248 seconds]
mossplix_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
gregmoreno has quit [Remote host closed the connection]
headius has quit [Quit: headius]
dagobah has quit [Quit: ZNC - http://znc.sourceforge.net]
dkannan has joined #ruby-lang
<dkannan> any good tutorial to running unicorn and bluepill ?
<dkannan> i meant. can anyone point me to a good tutorial :-)
jonahR has quit [Quit: jonahR]
schaerli has joined #ruby-lang
solars has joined #ruby-lang
megha has joined #ruby-lang
cirenyc has joined #ruby-lang
crudson has quit [Quit: Leaving.]
crudson has joined #ruby-lang
krz has quit [Quit: krz]
cirenyc has quit [Ping timeout: 252 seconds]
sush24 has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
krz has joined #ruby-lang
KA_ has quit [Quit: KA_]
imajes has quit [Excess Flood]
sush24 has quit [Quit: This computer has gone to sleep]
imajes has joined #ruby-lang
sush24 has joined #ruby-lang
krz has quit [Quit: krz]
krz has joined #ruby-lang
cirenyc has joined #ruby-lang
tonni has joined #ruby-lang
fsvehla has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
cirenyc has quit [Ping timeout: 256 seconds]
megha has quit [Ping timeout: 248 seconds]
lele has joined #ruby-lang
socialcoder has joined #ruby-lang
ephialtes480 has quit [Quit: Linkinus - http://linkinus.com]
fjfish has quit [Remote host closed the connection]
dzhulk has joined #ruby-lang
thufir_ has quit [Quit: Leaving.]
jxie has quit [Quit: leaving]
RORgasm has joined #ruby-lang
workmad3 has joined #ruby-lang
megha has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
ryanf has quit [Quit: leaving]
rue|w has joined #ruby-lang
RORgasm has quit [Ping timeout: 248 seconds]
kain has quit [Quit: exit]
dzhulk has left #ruby-lang [#ruby-lang]
chendo_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
cirenyc has joined #ruby-lang
kain has joined #ruby-lang
marr has joined #ruby-lang
judofyr has joined #ruby-lang
<yorickpeterse> Morning
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
sush24 has joined #ruby-lang
<socialcoder> morning
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
<judofyr> morning
cirenyc has quit [Ping timeout: 245 seconds]
KA_ has joined #ruby-lang
dc5ala has joined #ruby-lang
Averna has quit [Quit: Leaving.]
<Spaceghost|cloud> Liars.
<Spaceghost|cloud> judofyr: I am of the opinion that morning is a false institution and should be stricken from record.
sush24 has quit [Quit: Leaving]
<workmad3> Spaceghost|cloud: noooooo
<workmad3> Spaceghost|cloud: if we don't have mornings, we don't have a morning to sleep through :(
<Spaceghost|cloud> workmad3: What's this sleep stuff?
<workmad3> Spaceghost|cloud: enjoyable unconsciousness with vivid hallucinations
<judofyr> workmad3: remember: he's a ghost
<Spaceghost|cloud> workmad3: That's kind of just my all the time time.
<workmad3> Spaceghost|cloud: bah
<judofyr> so, what's up?
<Spaceghost|cloud> judofyr: Just merging code to find that the reason I have to merge any code at all is that someone commented out code instead of bahleeting it.
<workmad3> judofyr: the sky?
<Spaceghost|cloud> Most bullshit reason to have to merge upstream code.
<judofyr> workmad3: nope. I'm not coding outside in this weather!
robotmay has joined #ruby-lang
<workmad3> judofyr: bah, get back to the roots of extreme programming! :)
<Spaceghost|cloud> workmad3 confuses programming with brogramming all the time.
<judofyr> workmad3: -15 degrees C
<judofyr> NO THANKS
<workmad3> judofyr: that's what would make it *extreme*
<Spaceghost|cloud> judofyr: You know, when it's too cold that's just a sign that it's not cold enough.
imajes has quit [Excess Flood]
vlad_starkov has joined #ruby-lang
imajes has joined #ruby-lang
emocakes has joined #ruby-lang
<judofyr> hey emocakes
<emocakes> hai
<judofyr> how's the 'cakes today?
<yorickpeterse> http://harthur.wordpress.com/2013/01/24/771/ Good guy Ruby developers are at it again
gjaldon has joined #ruby-lang
<judofyr> yorickpeterse: not impressed by Klabnik's apology http://blog.steveklabnik.com/posts/2013-01-23-node :/
<emocakes> its alright judofyr
<emocakes> still dark
<emocakes> :(
<judofyr> emocakes: where are you located?
<emocakes> berlin
blacktulip has joined #ruby-lang
<emocakes> but going to be in buenos aires in a few weeks
<Spaceghost|cloud> Lol, it would be klabnik.
<yorickpeterse> judofyr: I am generally not impressed by things like these
<Spaceghost|cloud> Crusading white knight of ruby! :p
<yorickpeterse> Mostly because I firmly believe these people (not these in particular just the general sense) are not sorry at all
<yorickpeterse> Why? Because if nobody said something about it these people would have most likely not apologized
<sandbags> quite
<Spaceghost|cloud> He seemed more concerned about his image than the apology. Meh, I don't really care about or for him in any way.
<sandbags> i'm not sure how SK things being "accidentally an asshole" is any different to be caught being an asshole
<yorickpeterse> now I know I'll probably get lynched for saying it but these rockstars need to be slapped more often
<judofyr> yorickpeterse: I've unfollowed a lot of these snarky Ruby Twitter peeps (garybernhardt, brixen, bascule, jcoglan)
<judofyr> so much nicer timeline!
<Spaceghost|cloud> judofyr: Gary does get a bit disgruntled.
<Spaceghost|cloud> I only recently started following bascule.
<emocakes> I don't follow any one
cirenyc has joined #ruby-lang
<emocakes> because they are all douches
<emocakes> and have nothing to add to my life
<Spaceghost|cloud> emocakes: I'm a douche!
<emocakes> which is already filled with enough misery
<emocakes> I don't need twitter to add to tit
<emocakes> *it
<Spaceghost|cloud> emocakes: We should get you some more cake to add to your emo.
<emocakes> no
<Spaceghost|cloud> I personally really dislike cake.
<emocakes> I'm not one of those twitter conformists
<emocakes> so do I Spaceghost|cloud
* Spaceghost|cloud prefers pie
bane_ has joined #ruby-lang
<Spaceghost|cloud> Let's not turn it into bitch about steve on IRC hour.
<Spaceghost|cloud> Go bitch on twitter so he can actually respond.
JohnBat26 has joined #ruby-lang
<judofyr> sorry
<yorickpeterse> The nice part about the story is that Mr Klabnik is critizing a Mozilla dev responsible for writing a large part of the Javascript engine
socialcoder has quit []
<yorickpeterse> Somebody who, dare I to say, probably knows more about it than steve
<Spaceghost|cloud> We get it, Steve's a douche. We're all douches.
<judofyr> anyway :)
<yorickpeterse> Ah well, back to hating on the mixpanel gem
<Spaceghost|cloud> ^
<Spaceghost|cloud> yorickpeterse: Dude, ugh.
<yorickpeterse> Because that Gem is an omen of shit
<Spaceghost|cloud> I removed all the mixpanel gem stuff from the ruby app and put it all on the browser.
<yorickpeterse> I have about 70 LOC that does exactly the same but better
<yorickpeterse> and it doesn't use open() (oh god why)
<yorickpeterse> The "async" feature is also quite, well, odd
gjaldon has quit [Ping timeout: 245 seconds]
<Spaceghost|cloud> I fucking hate these: http://www.solvemedia.com/
francisfish has joined #ruby-lang
gjaldon has joined #ruby-lang
<yorickpeterse> How so?
<Spaceghost|cloud> yorickpeterse: I have to watch an ad to fill out a captcha to do what I actually want?
<Spaceghost|cloud> How about no and fuck you sir.
schaerli has quit [Remote host closed the connection]
<yorickpeterse> what
<yorickpeterse> * wat
<Spaceghost|cloud> Did you look at the site? They make captchas. Ones that you can't even fill out until you watch an ad. Then you have to type the slogan for the add into the text box.
cirenyc has quit [Quit: Leaving...]
<sandbags> this is presumably for companies who hate customers and wish they'd go away
adambeynon has joined #ruby-lang
<yorickpeterse> Spaceghost|cloud: Not really, it requires Flash so I closed it
<Spaceghost|cloud> yorickpeterse: I think you're missing the point.
<yorickpeterse> Flash is enough to make me hate something :)
<yorickpeterse> Regardless, such a Captcha method is insane
cosah has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
apeiros_ has joined #ruby-lang
<yorickpeterse> factory = MessageFactory::Factory.new(...); factory.process(...)
<yorickpeterse> I think I'll pass on this gem
adambeynon has quit [Quit: Computer has gone to sleep.]
adambeynon has joined #ruby-lang
cosah has quit [Ping timeout: 240 seconds]
megha has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
ten1 has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
cirenyc has joined #ruby-lang
Kreeki has joined #ruby-lang
toretore has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
schaerli has joined #ruby-lang
KA_ has quit [Quit: KA_]
setmeaway has quit [Quit: Leaving]
<injekt> HUZZAH
<judofyr> HUAZZIH
<injekt> good day to you, judofyr
<judofyr> good day to you too, injekt
Kreeki has quit [Quit: Linkinus - http://linkinus.com]
Kreeki has joined #ruby-lang
<emocakes> good day to myself
<ddfreyne> good day to EVERYONE
emocakes has quit [Quit: emocakes]
Arnvald has joined #ruby-lang
<injekt> today is going to be one of those days
Kreeki has quit [Client Quit]
rec0n-Op has joined #ruby-lang
setmeaway has joined #ruby-lang
<andrewvos> good day all
glebm has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
<judofyr> good all day andrewvos
<injekt> hold the phone, my good day wasn't for ALL day?
<injekt> I've.. been cheated :(
<yorickpeterse> "Updating crack" Ugh, somebody should've named that gem something else
mjolk has joined #ruby-lang
mjolk is now known as Guest59167
roolo has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
RORgasm has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
setmeaway has quit [Quit: Leaving]
cirenyc has joined #ruby-lang
cirenyc has quit [Client Quit]
RORgasm has quit [Ping timeout: 248 seconds]
<_tockitj> yorickpeterse, are there news on tags like tool for ruby :D
<judofyr> _tockitj: what?
cirenyc has joined #ruby-lang
<_tockitj> its a nice utility for vim that yorickpeterse was interested to develop :P
adambeynon has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> eh what?
cirenyc has quit [Client Quit]
<_tockitj> something that can show variable references under vim (:
<_tockitj> like cscope does for c
<_tockitj> tags is good for finding definitions - but its generally hard to find all references to a variable from an editor (aside from greping)
esad has quit [Quit: Computer has gone to sleep.]
<_tockitj> *references to a method that is (:
<yorickpeterse> oh, I wasn't working on that
<yorickpeterse> I'm working on a linter, but you can potentially use it for that at some point
<yorickpeterse> Though my first goal is to hook it up to Syntastic
vlad_starkov has quit [Remote host closed the connection]
<_tockitj> nice (:
dwu1 has quit [Quit: Leaving.]
<yorickpeterse> what the hell, EM.defer is actually async?
cirenyc has joined #ruby-lang
<yorickpeterse> what is this black magic
<judofyr> yorickpeterse: isn't that the whole point?
<injekt> </3 EM
<yorickpeterse> Well yeah, but I expected it to block since a sleep() call would freeze the current running thread
<judofyr> yorickpeterse: oh, it's concurrent, yes. that's the whole point of #defer. it runs the block in a thread pool.
<yorickpeterse> Well maybe I'm not fully understanding the threading mechanism of Ruby. I expected Ruby to be unable to pause a thread and start another one due to the sleep() call
ruby-lang694 has joined #ruby-lang
<yorickpeterse> Unless EM doesn't use Ruby threads but instead uses actual C threads
* yorickpeterse hopes he's making any sense
b1rkh0ff has joined #ruby-lang
<judofyr> yorickpeterse: ah, nope. there can only be one thread running Ruby code at the same time. when you call "sleep", it will release the GIL and let other thread run
<judofyr> yorickpeterse: same if you e.g. call #read on an IO
<judofyr> yorickpeterse: or do a blocking MySQL query
cirenyc has quit [Client Quit]
<yorickpeterse> Wouldn't a sleep() prevent that from being possible since it's a "STOP ALL TEH THINGS" mechanism?
<lianj> "STOP ALL TEH THINGS IN THAT THREAD"
<yorickpeterse> use case: IRC <-> campfire bridge and I don't want Campfire calls to shit up and block IRC calls and vice versa
<yorickpeterse> There's "Firering" but in the end it's blocking as well
<yorickpeterse> (which uses EM)
imajes has quit [Excess Flood]
<lianj> in case of em, yes sleep blocks it, because em runs in a single thread
imajes has joined #ruby-lang
<yorickpeterse> uuuggh Ruby, Y U NO HAVE ACTUAL THREADS
<yorickpeterse> Maybe I'll just use jruby for this
<lianj> whats so hard about writing a irc client and polling the horrible horrible campfire http api all via nonblocking em io
<judofyr> lianj: not if you run it in #defer
<yorickpeterse> lianj: that's what I'm pretty much planning to do
<lianj> judofyr: true
<yorickpeterse> write a IRCd that translates Campfire to IRC and vice versa, similar to camper_van
cultureulterior_ has joined #ruby-lang
<yorickpeterse> I was going with a Weechat plugin but the API doesn't provide any asynchronous way of executing callbacks
<yorickpeterse> Thus the Campfire calls would literally freeze Weechat
<lianj> yorickpeterse: if you like to you can use my horrible horrible ircd written in eventmachine as a draft
<yorickpeterse> I already found myself a decent parser so most of the work should be fairly trivial
ruby-lang694 has quit [Ping timeout: 245 seconds]
<yorickpeterse> Also where can I find this IRCd/
<yorickpeterse> Also I have to say I like the EM.defer syntax, certainly makes dealing with callback hell a lot easier
<lianj> it too bad to even link here, although i use it inside a vpn with more than a year uptime
<lianj> see pm
<yorickpeterse> ta
<yorickpeterse> ha, I see why
<yorickpeterse> dat JSON
<lianj> yorickpeterse: EM.defer is not the same as EM::Deferrable
<yorickpeterse> I know
<injekt> judofyr: did you see this? http://jotux.github.com/fangle/
<judofyr> injekt: yup
<injekt> interestingly weird
postmodern has quit [Quit: Leaving]
<yorickpeterse> "[...] but having to write javascript seemed like a pain. I used this project to learn coffeescript."
<yorickpeterse> I don't think it's a good idea to write something in X that converts to Y if you don't know Y
<yorickpeterse> But that's my opinion
<judofyr> yorickpeterse: eh. the point is that this allows you write documents in Markdown
<judofyr> yorickpeterse: those two sentences are not actually related
<yorickpeterse> oh the end idea is pretty nifty
<Spaceghost|cloud> yorickpeterse: I think that's silly.
<Spaceghost|cloud> You know all the turtles all the way down then?
<yorickpeterse> Spaceghost|cloud: enjoy debugging errors in a language that you're not familiar with
<Spaceghost|cloud> yorickpeterse: So you know everything down to at least machine langauge?
<Spaceghost|cloud> language*
<judofyr> the point is that Tangle requires you to write HTML + JS, but with Fangle you just have to write Markdown
<yorickpeterse> Spaceghost|cloud: no?
<yorickpeterse> Spaceghost|cloud: don't be a pedant, you're missing the point
<Spaceghost|cloud> I'm not missing it. I think that you're putting the wrong thing as the central point that the person would be missing.
<Spaceghost|cloud> If they knew the paradigms in JS they could likely handle learning coffeescript and working through. Sure JS would help, but it's not a necessity.
schaerli has quit [Remote host closed the connection]
* Spaceghost|cloud has been javascripting for >10years
<Spaceghost|cloud> Especially if they used those weird nifty new sourcemaps.
<yorickpeterse> At what point did I critize the person him/herself? All I mentioned was that I think it's a bad idea to write Coffeescript if you're not familiar with Javascript
<injekt> I'd say that was a great reason to write coffeescript
<judofyr> yorickpeterse: but he wasn't unfamiliar with JavaScript…
<Spaceghost|cloud> I just think that it's okay as long as they understand the paradigms in JavaScript and how to use their tool. Source maps solves a lot of it.
<yorickpeterse> As far as I'm aware of, at least what I have noticed myself (I write both here), Coffeescript doesn't provide any accurate source mapping to help with debugging
<yorickpeterse> So when a browser says "Herp derp undefined method on object blabla" you'll have to figure things out yourself
<yorickpeterse> And considering the generated code isn't always as clear as it should be that can become a pain rather quickly
<yorickpeterse> If you dislike JS but know it, sure, go use X as that's a good reason to use it
<yorickpeterse> Similar as to why people use Less/SCSS
cirenyc has joined #ruby-lang
<Spaceghost|cloud> yorickpeterse: Yes, so google "Coffeescript source map"
<Spaceghost|cloud> :)
vlad_starkov has joined #ruby-lang
<yorickpeterse> tbh I'd rather see ECMA pull their heads out of their asses and fix JS
<yorickpeterse> or for browsers to allow other scripting languages (ohgod give me Lua/Python already)
<yorickpeterse> Without Native Client and the likes
cirenyc has quit [Client Quit]
* Spaceghost|cloud just laughs and moves on
glebm has quit [Ping timeout: 245 seconds]
<yorickpeterse> I think my general opinion of all this can be summed up as following: Javascript in the browsers is the herpes of scripting languages
<_tockitj> yorickpeterse, why not make javascript evolve into python (:
<Spaceghost|cloud> Ooh my turn! Python is a cute language. Too bad it has weak lambdas. :
<Spaceghost|cloud> :(
jonahR has joined #ruby-lang
<_tockitj> this way we'll fancy nice backward compatibility burden that is so popular
<yorickpeterse> _tockitj: why not just allow something else than JS?
<yorickpeterse> And you can't "evolve" JS into Python since the two are vastly different
<_tockitj> js folks are doing their best (:
<_tockitj> they'll get together i think
<Spaceghost|cloud> It would be devolution to go from JS to Python. :)
banister`sleep has quit [Ping timeout: 240 seconds]
glebm has joined #ruby-lang
<apeiros_> yorickpeterse: one idea I liked wrt browser scripting: let the browsers provide a VM
<apeiros_> so any language which can compile to that VM can be run
<Spaceghost|cloud> It would be cool indeed.
<yorickpeterse> Sounds cool in theory, but the following will happen: every browser gets his own VM that doesn't support the same as others
<Spaceghost|cloud> Not really the ECMA's fault there.
<Spaceghost|cloud> yorickpeterse: That's already the story anyways.
<apeiros_> yorickpeterse: well, that'd be the hard part - standardizing on a VM
<apeiros_> could start with using an existing, like LLVM
<Spaceghost|cloud> See Ruby, see Javascript, see anything with vendor-specific implementations.
<yorickpeterse> Spaceghost|cloud: well right now there's only one broken scripting language that doesn't require plugins
<yorickpeterse> (in browsers that is)
<yorickpeterse> apeiros_: also, native client more or less does this
<Spaceghost|cloud> yorickpeterse: I don't see why you think it's so broken. Yeah, it has baggage. But it's not really broken.
<yorickpeterse> I believe Ruby 2.0 even has proper support for it, at least I saw something in the release notes about it
charliesome has joined #ruby-lang
<yorickpeterse> Spaceghost|cloud: Because it's a bastardized language made into something it was never supposed to be
schaerli has joined #ruby-lang
<charliesome> yorickpeterse: is this ruby
<yorickpeterse> Basically it's the frankenstein of languages
<Spaceghost|cloud> yorickpeterse: Right. And you're picking JS for having this past because?
<Spaceghost|cloud> You think no other languages have evolved into things they were never meant to be?
<yorickpeterse> Because it's the only *actually* available language in browsers. Also because I'm hungy and waiting for lunch
<Spaceghost|cloud> Ah, so you're just whinging! Good luck on that front.
<yorickpeterse> Not really, I dislike JS even when I'm not hungry
<yorickpeterse> if you want an example of why: Date
* Spaceghost|cloud loves his JS. Better OO language than ruby, python, and even the ridiculous things like php's lolOO
<charliesome> Spaceghost|cloud: >better oo wat
<yorickpeterse> better OO than....get out
<Spaceghost|cloud> yorickpeterse: Name one programming language with a really nice date library in stdlib,.
<yorickpeterse> Oh, how about Ruby? It's not perfect but at least the API makes sense
<Spaceghost|cloud> Lol.
* Spaceghost|cloud sighs
carloslopes has joined #ruby-lang
<charliesome> i kind of understand why js's date library is shit
<charliesome> i would go "fuck it cbf" as well
<_tockitj> def Spaceghost.better; !::better; end
<Spaceghost|cloud> _tockitj: I'm referring to the self-ness and the focus on objects and messages.
<yorickpeterse> Javascript certainly has good parts though. The DOM API is ok-ish and with the new features coming up quite a few issues are tackled
* Spaceghost|cloud has no interest in thinking of his code in classes.
<yorickpeterse> e.g. finally a more unified way of creating data structures (classes, prototypes, whatever you'd call them)
<yorickpeterse> I suppose it's better on Node because you have a more controlled environment but I don't deal with that mess
<_tockitj> def Spaceghost.better; self.focus; !::better; end
jonahR has quit [Quit: jonahR]
<yorickpeterse> wat
<yorickpeterse> !:better isn't even valid Ruby
<yorickpeterse> * !::better
<_tockitj> hmmz.. true (:
setmeaway has joined #ruby-lang
<_tockitj> def Spaceghost.better; 3.times { self.focus }; ! ObjectSpace.better; end
<_tockitj> yorickpeterse, thank you
<yorickpeterse> that will trigger a method error
<yorickpeterse> and a missing constant error
<yorickpeterse> :>
madish has joined #ruby-lang
<Spaceghost|cloud> Eh, well, I've just been using it a long while and I've definitely felt a good amount of the pains, I just don't have this hate you do.
<_tockitj> yorickpeterse.thank(me.self)
<Spaceghost|cloud> If you hate it so much, why be idle and just whine?
<_tockitj> meh.. there is room for improvement definitely (:
<Spaceghost|cloud> For sure.
<Spaceghost|cloud> But it's not some ungodly monstrosity that should die. I reserve those feelings for things like fud spreaders.
<_tockitj> jquery makes it bearable
ruby-lang623 has joined #ruby-lang
<Spaceghost|cloud> For dom manipulation it is.
<_tockitj> there is anything else with js ?
* Spaceghost|cloud remembers following along with all the dom manipulation libraries back when they all started.
karasawa has quit [Ping timeout: 276 seconds]
karasawa has joined #ruby-lang
<_tockitj> self.remember(IE) unless IE.compatibility == IE.compatibility
<Spaceghost|cloud> You really get a kick out of trying to communicate by writing imaginary ruby code, eh?
ruby-lang623 has quit [Ping timeout: 245 seconds]
<kalleth> Expected app/browsers/shitty/ie.rb to define Browsers::Shitty::IE but got Microsoft::MoneyGenerator
fsvehla has quit [Quit: fsvehla]
adambeynon has joined #ruby-lang
<_tockitj> you can't say it isn't concise
emptyflask has joined #ruby-lang
<_tockitj> kalleth, hah
ammar_ has quit [Quit: leaving]
ammar has joined #ruby-lang
ammar has quit [Client Quit]
esad has joined #ruby-lang
megha has joined #ruby-lang
cirenyc has joined #ruby-lang
ammar has joined #ruby-lang
emptyflask has quit [Ping timeout: 245 seconds]
dkannan has quit [Ping timeout: 252 seconds]
<bzb> problem installing mongrel gem with ruby-1.9.3-p374 ...details @ http://pastebin.com/98gcUrig
<Spaceghost|cloud> Hm, people use mongrel still?
nkr has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
<darix> Spaceghost|cloud: even if they dont use it directly
<darix> it's parser is powering lots of other webservers
<Spaceghost|cloud> darix: I use the ragel stuff indirectly.
<Spaceghost|cloud> But not the whole of mongrel.
<darix> bzb: i would suggest look into puma or unicorn on 1.9
<darix> bzb: the error you have shown will need some code changes
<Spaceghost|cloud> I prefer unicorn until puma gets a bit more mature if you're on cruby, which you are.
<Spaceghost|cloud> Some weird stuff with sockets becoming unavailable on redeploys and whatnot.
<bzb> darix: I'm working on rack and it requires me to use mongrel
<Spaceghost|cloud> Nothing to say don't use it at all, I'm just waiting a bit.
Guest59167 has left #ruby-lang [#ruby-lang]
<darix> Spaceghost|cloud: so far i didnt have problems with either.
<Spaceghost|cloud> darix: I use it in development. I'd just like to wait a bit for some releases and then consider using it in production. I have a nerdon for the zero downtime deploys.
Kallikanzarid has quit [Remote host closed the connection]
<darix> Spaceghost|cloud: got some bug links for the issues you mentioned?
<Spaceghost|cloud> darix: I'll highlight my friends that brought them up.
<Spaceghost|cloud> I can say though, it's awesome in development across all the rubies I use.
<injekt> bzb: why does it require you to use mongrel?
<bzb> injekt: when running the Rakefile in rack, it tells me that I'm missing mongrel and that it needs to be installed
gjaldon has quit [Remote host closed the connection]
<injekt> bzb: right, so you need to remove the mongrel dependency and use something else
xcombelle has joined #ruby-lang
imajes has quit [Excess Flood]
<Spaceghost|cloud> Oh, that's just an arbitrary dependency.
<Spaceghost|cloud> Rack is made to be agnostic in that manner.
<bzb> injekt: ok. i'll do that and see what happens
imajes has joined #ruby-lang
zmack has joined #ruby-lang
<bzb> I'm also having a problem installing fcgi gem...details @ http://pastebin.com/AVmnwur4
<bzb> would there be any replacements for fcgi?
<judofyr> bzb: are you resurrecting a project from 5 years ago? :)
ammar has left #ruby-lang [#ruby-lang]
<judofyr> bzb: if it's using Rack, you should be able to run it without fcgi
<bzb> judofyr: the problem is when I'm running the Rakefile, fcgi is one of the gems that it needs
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<apeiros_> a *rakefile* which depends on fcgi?
<apeiros_> that sounds like a serious smell
<injekt> so remove that dependency too
retro|cz has joined #ruby-lang
<bzb> injekt: i'll do that...hope it doesn't cause me any headaches for doing that though
<injekt> bzb: I assume this isn't your own project?
<injekt> you're trying to run something someone else developed?
esad has quit [Ping timeout: 248 seconds]
<bzb> injekt: rack is not my project. I'm trying to understand how it works in conjunction to jruby-rack.
<injekt> bzb: but what exactly are you trying to run?
<bzb> how they are connected and figure a way to implemented on a java platform
<bzb> on tomcat
<injekt> why are you testing on cruby?
<bzb> I'm using cruby to learn about rack. using jruby is a plain to wait for it to load everytime.
<bzb> i'll have to move back to using jruby when learning about jruby-rack
<judofyr> bzb: it seems that you're installing development dependencies
<lianj> bzb: trinidad
<bzb> judofyr: i don't know. I'm currently feeling my way around things
esad has joined #ruby-lang
<bzb> lianj: yes, i'm aware of trinidad. will be looking at it later
krz has quit [Quit: krz]
esad has quit [Client Quit]
cirenyc has quit [Quit: Leaving...]
zmack has quit [Remote host closed the connection]
<injekt> psh MatchData strips non-named captures if you include any named groups
sush24 has joined #ruby-lang
dkannan has joined #ruby-lang
fsvehla has joined #ruby-lang
pythonsnake has quit [Quit: WeeChat 0.4.0]
rindolf has joined #ruby-lang
dkannan has quit [Quit: dkannan]
pythonsnake has joined #ruby-lang
gjaldon has joined #ruby-lang
b1rkh0ff has quit [Quit: Leaving]
RORgasm has joined #ruby-lang
RORgasm has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Read error: Operation timed out]
gjaldon has quit [Ping timeout: 245 seconds]
gjaldon has joined #ruby-lang
cirenyc has joined #ruby-lang
jacktrick has joined #ruby-lang
<bcardarella> With minitest-spec how does one inherit from a parent class for the context of the test file? For example, in Test::Unit I would do something like class ChildTest < ParentTest
lele has quit [Ping timeout: 264 seconds]
<bcardarella> nm, figured it out
em0ral has joined #ruby-lang
<judofyr> bcardarella: what was it?
<lianj> describe Foo do
lele has joined #ruby-lang
bfreeman has quit [Ping timeout: 244 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
adambeynon has quit [Quit: Computer has gone to sleep.]
rsl has joined #ruby-lang
megha has quit [Quit: WeeChat 0.3.9.2]
imperator has left #ruby-lang ["Leaving"]
megha has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
rec0n-Op has quit []
lun__ has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
Kallikanzarid has joined #ruby-lang
arooni-mobile has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
gokul has quit [Quit: Leaving]
em0ral has quit [Remote host closed the connection]
kain has quit [Quit: exit]
kain has joined #ruby-lang
sush24_ has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
cirenyc has joined #ruby-lang
sush24 has quit [Ping timeout: 246 seconds]
rippa has quit [Read error: Connection reset by peer]
spinagon has joined #ruby-lang
tonni has quit [Remote host closed the connection]
mistym has joined #ruby-lang
sharma__ has joined #ruby-lang
blacktul_ has joined #ruby-lang
sush24_ has quit [Ping timeout: 248 seconds]
dustint has joined #ruby-lang
mistym has quit [Remote host closed the connection]
blacktulip has quit [Ping timeout: 252 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
dzhulk has joined #ruby-lang
karasawa has quit [Ping timeout: 276 seconds]
karasawa has joined #ruby-lang
ruurd has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
dkannan has joined #ruby-lang
setmeaway has joined #ruby-lang
imajes has quit [Excess Flood]
earthquake has joined #ruby-lang
mercwithamouth has joined #ruby-lang
imajes has joined #ruby-lang
blacktul_ has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
sepp2k has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
roolo has quit [Ping timeout: 248 seconds]
xcombelle has quit [Remote host closed the connection]
tonni has joined #ruby-lang
earthquake has quit [Quit: earthquake]
<yorickpeterse> and it actually works
Flobin has quit [Ping timeout: 248 seconds]
<yorickpeterse> This is interesting, maybe I should give hacking together a Campfire GUI a shot
schaerli has quit [Remote host closed the connection]
sailias has joined #ruby-lang
tomzx_mac has joined #ruby-lang
srbaker has joined #ruby-lang
<injekt> darix: ping
adambeynon has joined #ruby-lang
datanoise has joined #ruby-lang
schaerli has joined #ruby-lang
ovatsug25 has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
RORgasm has joined #ruby-lang
<darix> injekt: yes?
vlad_starkov has joined #ruby-lang
RORgasm has quit [Ping timeout: 264 seconds]
<injekt> darix: in irssi when I get a hilight the window number changes colour, can I force it to do so in a private query?
srbaker has quit [Quit: Computer has gone to sleep.]
mossplix_ has quit [Quit: mossplix_]
<darix> well query is like hilight color by default
<injekt> it is? :/
<darix> well if you send me something in query it is shown red in status bar
<darix> same for hilights in a channel
<injekt> yeah my private query doesn't do that, hilights in a channel do though
<darix> what problem are you trying to solve? ignore a query unless it has highlights?
<darix> i bet it is another case of you misconfigured something ;p
<darix> moment
vlad_starkov has quit [Ping timeout: 248 seconds]
<darix> see query
<injekt> darix: probably :D I miss private queries because they're the same colour as channels
<darix> injekt: activity_hilight_level
<darix> see query for my settings
<injekt> kk
<darix> which are the defaults btw
<darix> you really went into a "oh lets reconfigure everything" spree on your irssi at some point hm?
retro|cz has quit [Ping timeout: 276 seconds]
<injekt> :D
<injekt> well
<injekt> these all appear to match your
<injekt> yours
arooni-mobile has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
tonni has quit [Ping timeout: 245 seconds]
<injekt> I think i broke it
scampbell has joined #ruby-lang
arooni-mobile has joined #ruby-lang
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 255 seconds]
scampbell has quit [Client Quit]
unlikely_monkey has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mistym has quit [Remote host closed the connection]
melter has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<bcardarella> Any reason why https://gist.github.com/4622608 does not have access to the 'heynow' instance method in the it block? This is with Minitest::Spec
tonni has joined #ruby-lang
<whitequark> bcardarella: because the argument to #describe is only used to, well, describe the testcase
<whitequark> it's #to_s'd internally and that's it
<whitequark> you have to instantiate all your objects yourself
__BigO__ has joined #ruby-lang
kurko_ has joined #ruby-lang
dustint has quit [Remote host closed the connection]
<bcardarella> whitequark: so how would I use: https://github.com/rails/rails/blob/3-2-stable/railties/lib/rails/generators/test_case.rb with minitest::spec? With test::unit I just have to inherit from that parent class to get the instance methods in my test case. But it doesn't seem that straight forward with minitest:spec
dustint has joined #ruby-lang
karasawa has quit [Read error: Connection reset by peer]
rue|w has quit [Read error: Connection reset by peer]
<bcardarella> judofyr: ah, so I just wrap all of the test classes in that class call.
scampbell has joined #ruby-lang
rue|w has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
jxie has joined #ruby-lang
banister`sleep has joined #ruby-lang
rue|w has quit [Ping timeout: 276 seconds]
rue|w has joined #ruby-lang
davidbalber|away is now known as davidbalbert
ryanv-raptor has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
fsvehla has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
bzb has quit [Quit: Leaving]
flexd has quit [Ping timeout: 246 seconds]
unlikely_monkey has quit [Remote host closed the connection]
flexd has joined #ruby-lang
tonni has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
tingaling has joined #ruby-lang
io_syl has joined #ruby-lang
datanoise has quit [Ping timeout: 276 seconds]
RORgasm has joined #ruby-lang
imajes has quit [Excess Flood]
sharma__ has quit [Quit: This computer has gone to sleep]
rins has joined #ruby-lang
imajes has joined #ruby-lang
headius has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
imajes has quit [Excess Flood]
karasawa has joined #ruby-lang
karasawa has joined #ruby-lang
imajes has joined #ruby-lang
karasawa has quit [Client Quit]
karasawa has joined #ruby-lang
emptyflask has joined #ruby-lang
emptyflask has quit [Ping timeout: 244 seconds]
ruurd has quit [Quit: Linkinus - http://linkinus.com]
emocakes has joined #ruby-lang
ruurd has joined #ruby-lang
karasawa has quit [Ping timeout: 244 seconds]
karasawa has joined #ruby-lang
datanoise has joined #ruby-lang
emptyflask has joined #ruby-lang
ruurd has quit [Quit: Linkinus - http://linkinus.com]
<injekt> slodown looks interesting
ruurd has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
andrewhl has joined #ruby-lang
wallerdev has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
<darix> injekt: what's that?
francisfish has quit [Remote host closed the connection]
judofyr has quit [Ping timeout: 256 seconds]
banister`sleep has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 252 seconds]
<darix> i guess hmans/slowdown
dr_bob has joined #ruby-lang
enebo has joined #ruby-lang
kith_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dkannan has quit [Quit: dkannan]
<injekt> aye
megha has quit [Quit: WeeChat 0.3.9.2]
kith has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
fsvehla has quit [Quit: fsvehla]
davidbalbert is now known as davidbalber|away
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
KA_ has joined #ruby-lang
wallerdev has joined #ruby-lang
Bearproof has joined #ruby-lang
alvaro_o has joined #ruby-lang
kogent has quit [Quit: kogent]
Uranio has joined #ruby-lang
headius has quit [Quit: headius]
datanoise has joined #ruby-lang
pythonsnake is now known as pythonnaute
headius has joined #ruby-lang
ddfreyne has quit [Excess Flood]
arooni-mobile has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
ddfreyne has joined #ruby-lang
pythonnaute is now known as pythonspace
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
<headius> drbrain: ping
elux has joined #ruby-lang
tingaling has quit [Ping timeout: 245 seconds]
<rindolf> Hi all. How do I get Array.wrap here - http://api.rubyonrails.org/classes/Array.html ?
ilyam has joined #ruby-lang
datanoise has quit [Ping timeout: 248 seconds]
<injekt> rindolf: what do you mean?
<darix> rindolf: require 'active_support/all'
<injekt> oh
<darix> (the sledgehammer)
<injekt> Array() might do what you want?
<rindolf> darix: hi.
<rindolf> injekt, darix : never mind - we already create a def wrap_array(...) thing
<darix> rindolf: i leave finding the specific file to you :)
<darix> could be active_support/core_ext/array
<darix> something like that. didnt look it up just guessing
<injekt> /active_support/core_ext/array/wrap.rb
<darix> not a bad guess :p
<injekt> well i guess yours works too it'll just load everything in array/*
gjaldon has quit [Remote host closed the connection]
* rindolf sighs.
wallerdev has joined #ruby-lang
<rindolf> Most of the gems' documentation I ran into left a lot to be desired.
<darix> you can contribute documentation back once you figured it out?:p
<darix> *runs*
<rindolf> I suppose I can issue a pull request with a SYNOPSIS for this.
<rindolf> darix: yes, or at least file a bug report.
arooni-mobile has joined #ruby-lang
dhruvasagar has joined #ruby-lang
fsvehla has joined #ruby-lang
nXqd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
schaerli has joined #ruby-lang
krohrbaugh has joined #ruby-lang
Kuifje has joined #ruby-lang
wallerdev has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
ruurd has quit [Quit: Leaving...]
vlad_starkov has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
tjadc has joined #ruby-lang
havenn has joined #ruby-lang
Rizzle has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
sush24 has quit [Quit: This computer has gone to sleep]
tenderlove has joined #ruby-lang
dr_bob has joined #ruby-lang
rippa has joined #ruby-lang
spinagon has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
ilyam has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
bfreeman has joined #ruby-lang
megha has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gregmore_ has joined #ruby-lang
karasawa has quit [Quit: Lost terminal]
karasawa has joined #ruby-lang
gregmore_ has quit [Client Quit]
blacktulip has joined #ruby-lang
gregmoreno has joined #ruby-lang
datanoise has joined #ruby-lang
JohnBat26 has joined #ruby-lang
jacktrick has joined #ruby-lang
adam12 has quit [Read error: Connection reset by peer]
rue|w has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 256 seconds]
adam12 has joined #ruby-lang
karasawa has joined #ruby-lang
dwu1 has joined #ruby-lang
imajes has quit [Excess Flood]
adam12 has quit [Read error: Connection reset by peer]
imajes has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
__butch__ has joined #ruby-lang
tjadc has quit [Ping timeout: 276 seconds]
adam12 has joined #ruby-lang
bane_ has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
tjadc has joined #ruby-lang
KA_ has quit [Quit: KA_]
bg451 has joined #ruby-lang
imajes has quit [Excess Flood]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
imajes has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
blahwoop has joined #ruby-lang
KA_ has joined #ruby-lang
KA_ has quit [Client Quit]
FastJack has quit [Ping timeout: 245 seconds]
KA_ has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
joschi has quit [Quit: No Ping reply in 180 seconds.]
joschi has joined #ruby-lang
dougsko has joined #ruby-lang
FastJack has joined #ruby-lang
<dougsko> hi guys, if i have a binary string like, "-\xC1\fqdwe\e\xAA", how can i do a bitwise operation on it like, '& 0xf' ?
anjen has joined #ruby-lang
<dougsko> i have a feeling it has something to do with packing/unpacking, but i just cant seem to get it right
vlad_starkov has joined #ruby-lang
<lianj> dougsko: what type of number is it=
<dougsko> well, its the result of a OpenSSL::HMAC.digest
__butch__ has quit [Quit: Leaving.]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 256 seconds]
<dougsko> i think string#byte is gonna do it actually
vlad_starkov has quit [Ping timeout: 244 seconds]
bzalasky has joined #ruby-lang
hahuang65_ has joined #ruby-lang
<lianj> oh, for each byte you want to do some bitwise calc?
<lianj> "-\xC1\fqdwe\e\xAA".unpack("C*").map{|i| i & 0xf }
<lianj> then
<dougsko> well really, just very specific ones, but i think thatll work
emptyflask has joined #ruby-lang
<dougsko> thanks a lot!
<lianj> np
KA_ has quit [Quit: KA_]
dr_bob has quit [Quit: Leaving.]
karasawa has quit [Quit: Lost terminal]
karasawa has joined #ruby-lang
ten1 has joined #ruby-lang
dougsko has left #ruby-lang [#ruby-lang]
ddd has quit [Ping timeout: 245 seconds]
cirenyc has joined #ruby-lang
sush24 has joined #ruby-lang
bfreeman has quit [Ping timeout: 255 seconds]
karasawa has quit [Quit: Lost terminal]
sush24 has quit [Client Quit]
karasawa has joined #ruby-lang
sush24 has joined #ruby-lang
karasawa has quit [Client Quit]
kogent has joined #ruby-lang
karasawa has joined #ruby-lang
karasawa has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
anjen has quit [Quit: anjen]
bfreeman has joined #ruby-lang
tonni has joined #ruby-lang
ruurd has joined #ruby-lang
ddd has joined #ruby-lang
__butch__ has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
seydar has joined #ruby-lang
brianpWins has joined #ruby-lang
<seydar> I'm trying to get something like this: `new_meth = method(:old_meth); new_meth(5)`
<seydar> there's the obvious way were i do `make_method(:old_meth, :new_meth); new_meth(5)`, but that's not what i want
bg451 has quit [Quit: bg451]
jacktrick has quit [Ping timeout: 252 seconds]
dzhulk has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
mpan has joined #ruby-lang
JMcAfreak has quit [Quit: They're coming to take me away, ha-haa!]
rue|w has joined #ruby-lang
solars has quit [Quit: WeeChat 0.3.7]
solars has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
Sinestro has joined #ruby-lang
Sinestro has quit [Client Quit]
rue|w has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
jacktrick has joined #ruby-lang
postmodern has joined #ruby-lang
krohrbaugh has joined #ruby-lang
seydar has quit [Quit: leaving]
ruurd has quit [Quit: Leaving...]
jacktrick has quit [Quit: Leaving]
athaeryn has joined #ruby-lang
<athaeryn> Hey, can anyone help me out with gem creation, or is this not the right place to ask?
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
Rizzle has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
<rindolf> athaeryn: hi.
<rindolf> athaeryn: it is.
<rindolf> athaeryn: what's the issue?
<rindolf> athaeryn: what do you have so far?
<rindolf> athaeryn: do you have a repository for it?
<athaeryn> I've a simple task manager app
<rindolf> If not - you really should.
<athaeryn> not yet.
<rindolf> athaeryn: a WWW-one?
<rindolf> athaeryn: GUI?
<athaeryn> It's just command line
<rindolf> athaeryn: no repository?
<rindolf> athaeryn: ah.
<rindolf> athaeryn: with readline or something like that?
bzalasky has quit [Remote host closed the connection]
<rindolf> Or uses the shell?
<athaeryn> no repo yet. I'm going to rewrite it, then it will
<rindolf> athaeryn: ah.
<rindolf> athaeryn: can't you rewrite it before creating a gem?
neocoin has quit [Remote host closed the connection]
<rindolf> athaeryn: do you have automated tests?
<athaeryn> I figure I'll rewrite it as a gem.
<athaeryn> no tests yet, that's on my to-learn list
krohrbaugh has quit [Quit: Leaving.]
<athaeryn> but I'm just wondering: if I make it a gem, will i just be able to type "tsk stop" like before? and is there any special step to make that possible?
<athaeryn> maybe i need to just learn more about making gems in general
yfeldblum has joined #ruby-lang
krohrbaugh has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
emptyflask has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
emptyflask has joined #ruby-lang
havenn has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
adambeynon has joined #ruby-lang
ruby-lang159 has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
havenn has joined #ruby-lang
athaeryn has left #ruby-lang [#ruby-lang]
krohrbaugh has joined #ruby-lang
marr has quit []
bg451 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
havenn has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
ryanf has joined #ruby-lang
benanne has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
bzb has joined #ruby-lang
ovatsug25 has joined #ruby-lang
bfreeman has quit [Ping timeout: 255 seconds]
__BigO__ has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby-lang
ruby-lang159 has quit [Quit: Page closed]
nkr has quit [Quit: Linkinus - http://linkinus.com]
bfreeman has joined #ruby-lang
phlipper has joined #ruby-lang
__BigO__ has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
pythonspace is now known as pythonsnake
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
<Smol> put tsk under bin/ and set bindir to 'bin' in your gemfile, and it should work
<Smol> err, in your gemspec
vlad_sta_ has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
blacktul_ has joined #ruby-lang
blazes816 has joined #ruby-lang
havenn has joined #ruby-lang
ovatsug25 has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
RickHull has joined #ruby-lang
blacktulip has quit [Ping timeout: 244 seconds]
rippa has joined #ruby-lang
RickHull has quit [Changing host]
RickHull has joined #ruby-lang
<RickHull> how can i generated nested loops N times, given N? e.g. for N=3 X.times { |x1| X.times { |x2| X.times { |x3| } } }
<RickHull> i can think of a nasty way using eval
<RickHull> maybe i don't need nested loops exactly, but i am generating exhaustive data in a brute force way. trying to abstract for N
ten1 has left #ruby-lang [#ruby-lang]
sush24 has quit [Ping timeout: 256 seconds]
davidbalber|away is now known as davidbalbert
sush24 has joined #ruby-lang
<reactormonk> RickHull, recursion maybe?
<RickHull> hm, hadn't thought of that. i'm in the middle of the nasty eval method. will reconsider in a sec
<reactormonk> RickHull, still, I wonder - wtf are you doing?
huma has quit []
<RickHull> an interview-type problem. generate the full set of valid parens with empty contents. n = number of parens. e.g. n=3 ((())) (())() ()()() etc.
<RickHull> rest assured, it's not a problem for an actual interview
<RickHull> i've got a simple way to test for validity, and i'm thinking of simply generating all possible combinations of parens and aborting when i hit an invalid combo, e.g. (((( for n=3
<RickHull> or )... for any n
<RickHull> i can write it out easily enough for n=3 (the actual problem as stated)
<RickHull> i'm working on a nice way to do it for any N
<ryanv-raptor> out of curiosity, are you counting the reverse version too, so for 3 you'd need (()) () and () (())?
<RickHull> yeah those are distinct
<reactormonk> RickHull, recursion.
<RickHull> yeah, i think you're right
<RickHull> but for bonus points, do it iteratively!
<manveru> any recursion can be unrolled to iteration, just becomes harder to read :P
enebo has quit [Quit: enebo]
blazes816 has quit [Read error: Connection reset by peer]
<reactormonk> manveru, what if you have two recursive calls?
<manveru> then you have to cross your eyes
blazes816 has joined #ruby-lang
s0ber_ has joined #ruby-lang
s0ber has quit [Ping timeout: 240 seconds]
s0ber_ is now known as s0ber
blazes816_ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
blazes816 has quit [Ping timeout: 256 seconds]
blazes816_ is now known as blazes816
vlad_starkov has joined #ruby-lang
xyzodiac has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<manveru> n = 4; (%w[( )] * n).permutation(n*2).to_a.uniq.select{|c| c.reduce(0){|s,v| s < 0 ? (break false) : s + (v == '(' ? 1 : -1) }}.map(&:join)
scampbell has quit [Ping timeout: 256 seconds]
<manveru> may be stupid, but no recursion :P
blahwoop has quit [Ping timeout: 248 seconds]
<manveru> i even managed to sneak an inject in
<RickHull> heh
<manveru> but i'm not sure whether to use permuation or combination... just can't get combination to work right
<manveru> permutation spits out a ton of duplicates, so i'd probably recode that
blazes816 has quit [Quit: blazes816]
bg451 has quit [Quit: bg451]
blazes816 has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
<RickHull> #permutation and #combination, definitely helpful here
<RickHull> and/or
<ryanv-raptor> I'm still playing with it but I think an algorithm that permutates an array of left parentheses and spaces combined with a way to close them would give you the results too without the brute force
vlad_starkov has joined #ruby-lang
<ryanv-raptor> spaces indicate where to not nest
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Uranio has quit [Quit: while you reading this, a kitty dies]
tylersmith has joined #ruby-lang
<RickHull> permutation + uniq is the only way, i think. combination shouldn't ever work, since order definitely matters -- (())() and ()(()) are distinct and i'm not sure how you could get both out of combination
ryguy has joined #ruby-lang
ryguy has left #ruby-lang [#ruby-lang]
GattoLino has joined #ruby-lang
RyanScottLewis has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
RyanScottLewis has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
bfreeman has quit [Ping timeout: 252 seconds]
jtoy has joined #ruby-lang
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
<CoverSlide> all i see are nippleless breasts
rsl has joined #ruby-lang
davidbalbert is now known as davidbalber|away
drbrain has joined #ruby-lang
tenderlove has joined #ruby-lang
<RickHull> one way you could use combination is to encode the left paren position in an N-array. e.g. ()()() #=> [0,2,4]
sush24 has quit [Quit: This computer has gone to sleep]
scampbell has joined #ruby-lang
<RickHull> N =3 -- [0..n-1].to_a.combination(n).to_a # i think
<RickHull> oops that's for any n
<chris2> why not recursion?
<RickHull> because it didn't come to mind first :p
davidbalber|away is now known as davidbalbert
<chris2> it screams for it
bfreeman has joined #ruby-lang
tenderlove has quit [Ping timeout: 245 seconds]
chendo_ has quit [Ping timeout: 240 seconds]
<RickHull> i'm a depth-first guy. i've plumbed the iterative solution, so yeah, considering it now/next (actually doing other stuff now)
tenderlove has joined #ruby-lang
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
hahuang65_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
RubyHead has joined #ruby-lang
mistym has quit [Remote host closed the connection]
emanon_ has joined #ruby-lang
Bearproof has quit [Quit: Leaving.]
Bearproof has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
EddiX has joined #ruby-lang
EddiX has quit [Read error: Connection reset by peer]
nyuszika7h has quit [Quit: Reconnecting]
Bearproof has quit [Ping timeout: 276 seconds]
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
bg451 has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nyuszika7h_ has joined #ruby-lang
nyuszika7h_ is now known as nyuszika7h
fsvehla has quit [Quit: fsvehla]
datanoise has quit [Ping timeout: 245 seconds]
rebelcan_ has left #ruby-lang [#ruby-lang]
rebelcan has joined #ruby-lang
emptyflask has joined #ruby-lang
Bearproof has joined #ruby-lang
mjio has joined #ruby-lang
sailias has quit [Quit: Leaving.]
mossplix has joined #ruby-lang
enebo has joined #ruby-lang
emanon_ has quit [Read error: Connection reset by peer]
emanon_ has joined #ruby-lang
bg451 has quit [Quit: bg451]
thone has joined #ruby-lang
datanoise has joined #ruby-lang
thone_ has quit [Ping timeout: 252 seconds]
menace has joined #ruby-lang
scampbell has quit [Quit: Leaving]
emanon_ has quit [Read error: Connection reset by peer]
bg451 has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
yalue has quit [Read error: Connection reset by peer]
menace has left #ruby-lang [#ruby-lang]
tjadc has quit [Ping timeout: 276 seconds]
tjadc has joined #ruby-lang
<RickHull> chris2: for the recursive generation, the idea is simple but i'm having trouble coding it. e.g. def generate(n); case n; when 1 then '()'; else # branch 3 ways: ()generate(n-1), generate(n-1)(), (generate(n-1));
<RickHull> also have a uniqueness problem. adding empty parens to the left and right of () yields a duplicate
malev has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 246 seconds]
bfreeman has quit [Remote host closed the connection]
bg451 has quit [Ping timeout: 252 seconds]
<RickHull> got it xD
<drbrain> headius: pong
<headius> drbrain: hey there…wanted to see if you were a good person to ask about gemification plans
<headius> we're incorporating krypt into JRuby 1.7.3 and would like it to be gem-upgradable…already doing that for openssl and worked through some issues there
<headius> I would like to do what we're doing generally, but don't want to diverge from what MRI's planning
<drbrain> headius: 2.0 will have "default gems", a future release will have real gems
<headius> so on install of Ruby 2.0 the gems just come along for the right? specific versions?
<headius> right=ride
Kuifje has quit [Ping timeout: 255 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
adambeynon has joined #ruby-lang
<drbrain> specific versions you can't uninstall
<headius> the way I'm doing it for openssl is to have openssl.rb be a stub that tries the gem first and then falls back on stdlib copy
<headius> installing jruby-openssl then updates it, effectively
<drbrain> … but if you require 'rdoc' and have installed a newer gem version the newer version will be activated over the built-in files
<headius> mmm that's what I want to see
<headius> is that done somewhere?
<drbrain> yes…
RickHull has left #ruby-lang [#ruby-lang]
Averna has joined #ruby-lang
<drbrain> headius: I think you want to look at the commits in November
emanon_ has joined #ruby-lang
toretore has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
<drbrain> the basics of it is that you stick specs in GEM_HOME/specifications/default with a file list
<drbrain> and RubyGems will prefer reinstalled gems
blacktulip has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
blacktu__ has joined #ruby-lang
blacktul_ has quit [Ping timeout: 264 seconds]
bfreeman has joined #ruby-lang
davidbalbert is now known as davidbalber|away
GattoLino has quit [Quit: See you soon...]
<drbrain> headius: I think if you ship as gems you won't have to worry about default gems at all
blacktulip has quit [Ping timeout: 246 seconds]
GattoLino has joined #ruby-lang
GattoLino has quit [Client Quit]
davidbalber|away is now known as davidbalbert
Bearproof has quit [Quit: Leaving.]
datanoise has joined #ruby-lang
<postmodern> is there an elegant way to test protected methods in a mixin, with rspec
blacktu__ has quit [Ping timeout: 276 seconds]
bfreeman has quit [Read error: Connection reset by peer]
bfreeman_ has joined #ruby-lang
<headius> drbrain: I guess we're mostly been including in stdlib because there's the issue of things like bundler requiring https *with* rubygems loaded
agile has quit [Remote host closed the connection]
emanon_ has quit [Read error: Connection reset by peer]
<drbrain> ah
<headius> sorry, I meant requiring https without rubygems loaded
<headius> but yeah…chicken/egg
* drbrain nods
elux has quit [Quit: Bye!]
davidbalbert is now known as davidbalber|away
__BigO__ has quit [Remote host closed the connection]
dustint has quit [Quit: Leaving]
davidbalber|away is now known as davidbalbert
ruurd has joined #ruby-lang
datanoise has quit [Ping timeout: 240 seconds]
blacktulip has joined #ruby-lang
havenn has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nXqd has quit [Ping timeout: 276 seconds]
ryanv-raptor has quit [Quit: Leaving.]
sepp2k1 has quit [Read error: Connection reset by peer]
blacktulip has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
sepp2k has joined #ruby-lang
malev has quit [Quit: Leaving]
carloslopes has quit [Remote host closed the connection]
jbsan_ has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
jbsan has quit [Ping timeout: 248 seconds]
jbsan_ is now known as jbsan
headius has quit [Quit: headius]
sepp2k has joined #ruby-lang
outoftime has quit [Quit: Leaving]
stonerfish has joined #ruby-lang
Arnvald has quit [Remote host closed the connection]
<zenspider> postmodern: make them public
mercwithamouth has joined #ruby-lang
spuk has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 256 seconds]
bfreeman_ has quit [Ping timeout: 256 seconds]
RubyHead has quit [Remote host closed the connection]
sailias has joined #ruby-lang
xyzodiac has joined #ruby-lang
will has joined #ruby-lang
will is now known as Guest15215
sailias has quit [Client Quit]
Guest15215 has quit [Read error: Connection reset by peer]
will_ has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
will_ has quit [Read error: Connection reset by peer]
emanon_ has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
Bosox20051 has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
cultureulterior_ has quit [Client Quit]
tenderlove has quit [Remote host closed the connection]
ryanv-raptor has joined #ruby-lang
jtoy has quit [Quit: jtoy]