apeiros changed the topic of #ruby-lang to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
breakingthings has quit []
<red_menace> IRC in general has been dead for years - the body is just kept in a freezer so it doesn't smell as bad.
Lewix has joined #ruby-lang
_mtr has joined #ruby-lang
laphlaw has joined #ruby-lang
<zenspider> I didn't say IRC was dead. far from it.
kotk has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
jtw has quit []
jtw has joined #ruby-lang
mrevd has quit [Quit: Leaving.]
VTLob has quit [Quit: VTLob]
el_cristobal has left #ruby-lang ["Leaving"]
vlad_starkov has quit [Ping timeout: 272 seconds]
Onixs has joined #ruby-lang
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
dingus_khan has joined #ruby-lang
<RobertBirnie> can anyone see whats wrong with this?
<drbrain> RobertBirnie: there's no key :id in your hash
<RobertBirnie> ugh yeah. "id" works
<zenspider> RobertBirnie: logic error as well... if and elsif, but no else case
apeiros has quit []
<zenspider> type checks are generally a code smell
<drbrain> RobertBirnie: you probably don't want reject! either as it returns nil when no changes were made
<RobertBirnie> if there's no else on a map block will it just return the original item?
<zenspider> this code doesn't make sense. if it is a hash and id is present, do stuff. elsif it is a hash, delete id.
<drbrain> RobertBirnie: if there's no else on the if expression then nil is returned
<RobertBirnie> to return the original item would it be "else volume end"
<drbrain> yes
mehlah has quit [Quit: Leaving...]
<RobertBirnie> ok, let me give that a try then
<RobertBirnie> that might be my problem
<RobertBirnie> the object can either be a hash, or a Fog::Compute::Libvirt::Volume and the volume is missing tons of rather normal methods and breaks if i touch it
<RobertBirnie> hence checking for the class
jalcine is now known as Jacky
<zenspider> the logic still doesn't make sense
deens has joined #ruby-lang
<zenspider> the entire elsif is redundant. bad even.
<RobertBirnie> so i'm creating a kvm machine with fog. if i pass Fog and volume with a nil id it fails to create the volume. so i have to remove it for new volumes
deens has quit [Remote host closed the connection]
<zenspider> case volume; when Hash; volume.delete "id" unless volume["id"]; volume; else; volume; end
<zenspider> volume.delete "id" if Hash === volume and not volume["id"]; volume
lfox has quit [Quit: ZZZzzz…]
<zenspider> there's no point in iterating through to delete a key. might as well say what you want to do rather than guess at it 6 months from now
DEac- has quit [Ping timeout: 260 seconds]
DEac- has joined #ruby-lang
ivanskie has quit [Ping timeout: 272 seconds]
<zenspider> nope
<zenspider> ri Hash.delete
ender_ has joined #ruby-lang
ender__ has joined #ruby-lang
marr has quit [Read error: Operation timed out]
hahuang65 has quit [Ping timeout: 272 seconds]
ender_ has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
pr0ton has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
laphlaw has quit [Quit: Computer has gone to sleep.]
laphlaw has joined #ruby-lang
olivion has joined #ruby-lang
michael_mbp has quit [Read error: Operation timed out]
elia has quit [Quit: Computer has gone to sleep.]
amerine has quit [Ping timeout: 272 seconds]
michael_mbp has joined #ruby-lang
elia has joined #ruby-lang
_mtr has quit [Remote host closed the connection]
amerine has joined #ruby-lang
cads has joined #ruby-lang
Yuuvee has quit [Ping timeout: 265 seconds]
MrZYX is now known as MrZYX|off
brianpWins has quit [Quit: brianpWins]
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SupaYoshi has joined #ruby-lang
tkuchiki has joined #ruby-lang
red_menace has quit [Quit: peer reset by connection]
nathanstitt has joined #ruby-lang
<zenspider> 7 months in the making: ruby_parser version 3.3.0 has been released! | software releases by ryan davis - http://t.co/DH7EKnsh3p
GaelanAintAround is now known as Gaelan
<ryanf> zenspider: you should make that "___ in the making" text part of your release script
<ryanf> "3 days in the making: ..."
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
laphlaw has quit [Quit: Lingo - http://www.lingoirc.com]
kurko_ has quit [Quit: Computer has gone to sleep.]
mykoweb has joined #ruby-lang
<zenspider> hah
Voker57 has quit [Ping timeout: 245 seconds]
_ko1 has joined #ruby-lang
seanlinsley has quit [Quit: …]
jyunderwood has joined #ruby-lang
havenwood has joined #ruby-lang
Austin__ has joined #ruby-lang
Gaelan is now known as GaelanAintAround
ender_ has joined #ruby-lang
nathanstitt has quit [Quit: Laters]
knu has quit [Ping timeout: 252 seconds]
nertzy has quit [Quit: Leaving]
diegoviola has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 245 seconds]
knu has joined #ruby-lang
patriciomacadden has joined #ruby-lang
ender__ has quit [Ping timeout: 252 seconds]
dingus_khan has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
olivion has quit [Quit: Leaving]
sepp2k has quit [Read error: Connection reset by peer]
marcofernandez has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
marcofernandez has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Voker57 has joined #ruby-lang
kurko_ has quit [Client Quit]
marcofernandez has quit [Ping timeout: 252 seconds]
jyunderwood has quit [Quit: Goodbye]
jyunderwood has joined #ruby-lang
hahuang65 has joined #ruby-lang
mistym has joined #ruby-lang
marcofernandez has joined #ruby-lang
tenderlove has quit [Ping timeout: 272 seconds]
SupaYoshi has quit []
hahuang65 has quit [Ping timeout: 245 seconds]
Cakey has quit [Ping timeout: 245 seconds]
daikan has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
dingus_khan has joined #ruby-lang
amclain has joined #ruby-lang
RobertBirnie has quit [Client Quit]
knu has quit [Ping timeout: 252 seconds]
elia has quit [Quit: (IRC Client: textualapp.com)]
knu has joined #ruby-lang
hachiya has joined #ruby-lang
seanlinsley has joined #ruby-lang
jyunderwood has quit [Quit: Goodbye]
Bosox20051 has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Ping timeout: 248 seconds]
Cakey has joined #ruby-lang
patriciomacadden has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
havenwood has quit [Remote host closed the connection]
Guest73532 has quit [Remote host closed the connection]
bjh13 has joined #ruby-lang
jsullivandigs has joined #ruby-lang
presidentbeef has quit [Ping timeout: 272 seconds]
pr0ton has quit [Quit: pr0ton]
jsullivandigs has quit [Ping timeout: 248 seconds]
ledestin has quit [Ping timeout: 260 seconds]
Cakey has quit [Ping timeout: 260 seconds]
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby-lang
daikan has joined #ruby-lang
face has quit [Ping timeout: 252 seconds]
face has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
daikan has quit [Ping timeout: 246 seconds]
Cakey has joined #ruby-lang
cored has quit [Ping timeout: 248 seconds]
michael_mbp has quit [Excess Flood]
fijimunkii has joined #ruby-lang
michael_mbp has joined #ruby-lang
Lewix has joined #ruby-lang
r0bgleeson has joined #ruby-lang
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
|jemc| has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
towski_ has quit [Read error: Operation timed out]
GaelanAintAround has quit [Quit: Bye!]
zz_dlu has quit [Quit: ZNC - http://znc.in]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
havenwood has quit [Ping timeout: 245 seconds]
dingus_khan has quit [Remote host closed the connection]
kith has quit [Read error: Connection reset by peer]
kith has joined #ruby-lang
alekst has quit [Quit: Computer has gone to sleep.]
samuelkadolph has quit [Quit: Quitting]
samuelkadolph has joined #ruby-lang
RobertBirnie has joined #ruby-lang
dwknoxy has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
symm- has quit [Ping timeout: 248 seconds]
bfleisch1r has quit [Ping timeout: 248 seconds]
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
hotpancakes has joined #ruby-lang
DevDoo has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
hahuang65 has joined #ruby-lang
daikan has joined #ruby-lang
joast has quit [Ping timeout: 264 seconds]
hotpancakes has quit []
rahul_j has joined #ruby-lang
rahul_j has left #ruby-lang [#ruby-lang]
daikan has quit [Read error: Operation timed out]
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
postmodern has quit [Quit: Leaving]
fijimunkii has quit [Ping timeout: 265 seconds]
knu has quit [Ping timeout: 252 seconds]
knu has joined #ruby-lang
havenwood has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
JohnBat26 has joined #ruby-lang
fijimunkii has joined #ruby-lang
yatish27 has joined #ruby-lang
rahul_j has joined #ruby-lang
ivanskie has joined #ruby-lang
ivanskie has quit [Client Quit]
Cakey has joined #ruby-lang
Barrin6 has joined #ruby-lang
dingus_khan has joined #ruby-lang
dingus_khan has quit [Ping timeout: 276 seconds]
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
bzalasky has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
Barrin6 has quit [Quit: Leaving]
Cakey has quit [Ping timeout: 260 seconds]
daikan has joined #ruby-lang
daikan has quit [Ping timeout: 260 seconds]
huma has joined #ruby-lang
RobertBirnie has joined #ruby-lang
yatish27 has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
CaptainJet has quit []
RobertBirnie has quit [Client Quit]
mistym has quit [Remote host closed the connection]
JoshuaPaling has joined #ruby-lang
rahul_j has left #ruby-lang [#ruby-lang]
Cakey has joined #ruby-lang
cads has quit [Read error: Operation timed out]
ahmedelgabri has joined #ruby-lang
havenwood has quit []
Cakey has quit [Ping timeout: 245 seconds]
jtw has quit []
jerrytgarcia has joined #ruby-lang
h0lyalg0rithm has joined #ruby-lang
h0lyalg0rithm has quit [Max SendQ exceeded]
h0lyalg0rithm has joined #ruby-lang
Cakey has joined #ruby-lang
h0lyalg0rithm has quit [Client Quit]
Voker57 has quit [Read error: Connection reset by peer]
bfleischer has joined #ruby-lang
cads has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
bfleischer has quit [Ping timeout: 276 seconds]
yfeldblu_ has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby-lang
DevDoo has quit [Remote host closed the connection]
cads has quit [Ping timeout: 248 seconds]
ahmedelg_ has joined #ruby-lang
RobertBirnie has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
amclain has quit [Quit: Leaving]
ahmedelgabri has quit [Ping timeout: 245 seconds]
jonahR has joined #ruby-lang
jonahR has quit [Client Quit]
vlad_starkov has joined #ruby-lang
Cakey has joined #ruby-lang
ledestin has joined #ruby-lang
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
towski_ has joined #ruby-lang
mistym has joined #ruby-lang
bjh13 has quit [Ping timeout: 245 seconds]
bjh13 has joined #ruby-lang
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
CodeBunny has joined #ruby-lang
CodeBunny has quit [Client Quit]
dingus_khan has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
dingus_khan has quit [Ping timeout: 248 seconds]
mykoweb has quit [Remote host closed the connection]
marcofernandez has quit [Ping timeout: 272 seconds]
marcofernandez has joined #ruby-lang
AKASkip has joined #ruby-lang
amclain has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
CodeBunny has joined #ruby-lang
CodeBunny has quit [Client Quit]
yatish27 has joined #ruby-lang
CodeBunny has joined #ruby-lang
CodeBunny has quit [Client Quit]
CodeBunny has joined #ruby-lang
daikan has joined #ruby-lang
yatish27 has quit [Ping timeout: 252 seconds]
daikan has quit [Ping timeout: 252 seconds]
arBmind has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
pcmyers has joined #ruby-lang
AKASkip has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
Phoop has joined #ruby-lang
ivanskie has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
ivanskie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
d4rkr4i has joined #ruby-lang
rh1n0 has joined #ruby-lang
bfleischer has joined #ruby-lang
mbrumbelow has joined #ruby-lang
mbrumbelow has quit [Quit: mbrumbelow]
18WAFGUQK is now known as agile
dagobah has joined #ruby-lang
bfleischer has quit [Ping timeout: 272 seconds]
soba has quit [Ping timeout: 260 seconds]
tbuehlmann has joined #ruby-lang
AKASkip has joined #ruby-lang
ender_ has quit [Ping timeout: 245 seconds]
daikan has joined #ruby-lang
CoreData has joined #ruby-lang
daikan has quit [Ping timeout: 252 seconds]
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
face has quit []
CoreData has quit [Quit: CoreData]
solars has joined #ruby-lang
relix has joined #ruby-lang
mistym has quit [Remote host closed the connection]
h_kon has joined #ruby-lang
face has joined #ruby-lang
seoaqua has joined #ruby-lang
kurko_ has joined #ruby-lang
jovon_ has quit [Quit: Leaving]
seoaqua has quit [Ping timeout: 252 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Client Quit]
DevDoo has joined #ruby-lang
ledestin has quit [Quit: ledestin]
<yorickpeterse> morning
ahmedelg_ has quit [Remote host closed the connection]
seoaqua has joined #ruby-lang
ledestin has joined #ruby-lang
rahul_j has joined #ruby-lang
tylersmith has joined #ruby-lang
aqua_ has joined #ruby-lang
rh1n0 has quit [Quit: Textual IRC Client: www.textualapp.com]
seoaqua has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 264 seconds]
aqua_ has quit [Ping timeout: 272 seconds]
vinhbachsy has joined #ruby-lang
heftig has joined #ruby-lang
ylluminate has quit [Quit: Bye!]
Pupeno_w has joined #ruby-lang
daikan has joined #ruby-lang
Cakey has quit [Ping timeout: 246 seconds]
arBmind has quit [Quit: Leaving.]
Pupeno_w has quit []
Pupeno_w has joined #ruby-lang
daikan has quit [Ping timeout: 272 seconds]
jaimef has quit [Excess Flood]
jaimef has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
michd is now known as MichD
Lewix has quit [Ping timeout: 272 seconds]
CoreData has joined #ruby-lang
benlovell has joined #ruby-lang
mehlah has joined #ruby-lang
Lewix has joined #ruby-lang
<yorickpeterse> drbrain: ping
<ljarvis> hi
robmiller has quit [Quit: robmiller]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby-lang
bzalasky has quit []
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby-lang
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
vinhbachsy has quit [Remote host closed the connection]
vinhbachsy has joined #ruby-lang
mikecmpbll has joined #ruby-lang
elia has joined #ruby-lang
faces has joined #ruby-lang
face has quit [Ping timeout: 246 seconds]
arBmind has joined #ruby-lang
<yorickpeterse> git push -f best push
cbreeze has joined #ruby-lang
yatish27 has joined #ruby-lang
workmad3 has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
yatish27 has quit [Remote host closed the connection]
<yorickpeterse> today is merge day
yatish27 has joined #ruby-lang
bfleischer has joined #ruby-lang
DevDoo has quit [Quit: Leaving...]
Pupeno_w_ has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
Pupeno_w has quit [Ping timeout: 245 seconds]
rahul_j has joined #ruby-lang
Phoop has quit [Quit: Textual IRC Client: www.textualapp.com]
bfleischer has quit [Ping timeout: 265 seconds]
rahul_j has left #ruby-lang [#ruby-lang]
mbj has joined #ruby-lang
cnivolle has joined #ruby-lang
bin7me has joined #ruby-lang
d4rkr4i has quit [Quit: Leaving.]
jerrytgarcia has joined #ruby-lang
presidentbeef has joined #ruby-lang
daikan has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
dragonkh has quit [Quit: Bye!]
daikan has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby-lang
[_aeris_] is now known as _aeris_
marr has joined #ruby-lang
ledestin has quit [Quit: ledestin]
daikan has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
robmiller has joined #ruby-lang
CoreData has quit [Quit: CoreData]
albertgrala has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
_aeris_ is now known as [_aeris_]
albertgrala has quit [Quit: Leaving]
cnivolle has joined #ruby-lang
GBrawl has joined #ruby-lang
GBrawl has quit [Client Quit]
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
cbreeze has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes has left #ruby-lang [#ruby-lang]
kitak has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby-lang
lele has quit [Ping timeout: 264 seconds]
lele|w has quit [Ping timeout: 252 seconds]
CoreData has joined #ruby-lang
jasiek_ has joined #ruby-lang
danijoo_ has quit [Read error: Connection reset by peer]
lele|w has joined #ruby-lang
danijoo has joined #ruby-lang
lele has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby-lang
CoreData has quit [Quit: CoreData]
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
JohnBat26 has quit [Read error: Operation timed out]
<yorickpeterse> lol certain website returning HTTP 200 for a missing hotel
<yorickpeterse> totally legit
benlovell has quit [Ping timeout: 260 seconds]
<gnufied> you are using HN for hotel search?
<r0bgleeson> yorickpeterse: weird, 418 seems more appropiate
<yorickpeterse> No, 404 is the only right one
<yorickpeterse> Content not found == 404
cnivolle has quit [Remote host closed the connection]
<yorickpeterse> gnufied: lawl
<r0bgleeson> do you know what 418 is?
<r0bgleeson> it's a joke
<r0bgleeson> of course 404 is correct
<mikecmpbll> heh
daikan has quit [Remote host closed the connection]
<yorickpeterse> I know what 418 is
<r0bgleeson> i see
<yorickpeterse> but I'm in srs bsns mode atm
<r0bgleeson> heh ok :)
<r0bgleeson> more accurately, in the world of HTTP, it's more like resource not found (srs bsns mood)
vinhbachsy has quit [Remote host closed the connection]
vinhbachsy has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vinhbachsy has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby-lang
<r0bgleeson> someone should write a node.js server in coffeescript that serves coffeepot requests
vinhbachsy has joined #ruby-lang
daikan has joined #ruby-lang
* yorickpeterse wrote some regexps to check if a document was found or not
<yorickpeterse> darn travel industry still lives in the 1990s
<yorickpeterse> BUT THEY DO HAVE A JSON API, VERY 2010-ish!
<yorickpeterse> ah well, at least it's not as bad as AB testing
<r0bgleeson> i doubt you'll find any rails applications out there that are semantic with HTTP, get over it :)
DEac- has quit [Read error: Connection reset by peer]
DEac-_ has joined #ruby-lang
bfleischer has joined #ruby-lang
cnivolle has joined #ruby-lang
daikan has quit [Read error: Connection reset by peer]
yatish27 has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
daikan has joined #ruby-lang
yatish27 has joined #ruby-lang
<r0bgleeson> what's wrong with a JSON API?
<gnufied> I doubt if people agree what is semantic http is
<gnufied> not trying to promote obvious misuse
<gnufied> but one can get into lot of nonsensical pedantary there
<r0bgleeson> sure, that's true, but rails is a whole other level of abstraction that almost removes the concept of HTTP.
bfleischer has quit [Ping timeout: 252 seconds]
yatish27 has quit [Ping timeout: 248 seconds]
<r0bgleeson> by semantic I simply meant that unless you look elsewhere you'll learn nothing about HTTP in rails, you don't need to.
x0f has joined #ruby-lang
<workmad3> r0bgleeson: you'll learn a bit about content negotiation and form encodings...
<r0bgleeson> how?
<gnufied> that depends on what you are using rails for
<gnufied> if someone is building an API on top of rails, you will have to pretty much
<r0bgleeson> not really
<r0bgleeson> you can set some headers
<workmad3> r0bgleeson: by using a responds_to block for content negotiation and by having to specify ':multipart => true' on a file upload form ;)
<r0bgleeson> set a status code
<r0bgleeson> you dont actually learn much about HTTP
<r0bgleeson> workmad3: lol
<gnufied> what is "much" about http then. it is not all that complicated protocol
<r0bgleeson> HTTP is a beautiful protocol IMO
<r0bgleeson> and part of why it's beautiful is because indeed, it's not complicated
<gnufied> for proper API implementation, I would wager - the author must research what would be proper response codes
<r0bgleeson> response code's arent shit
<gnufied> versioning, content type negotionations
<r0bgleeson> the interesting parts is in the headers
<workmad3> gnufied: http://httpstatusdogs.com/ the one-stop shop for http status code research
<gnufied> workmad3: thanks.
<workmad3> I really want to find a time to use this: http://httpstatusdogs.com/416-requested-range-not-satisfiable
x0f_ has quit [Ping timeout: 248 seconds]
<r0bgleeson> lawl
<gnufied> for debian users!
<r0bgleeson> :)
MrZYX|off is now known as MrZYX
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
vinhbachsy has quit [Remote host closed the connection]
vinhbachsy has joined #ruby-lang
vinhbachsy has quit [Ping timeout: 246 seconds]
cored has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
daikan has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 276 seconds]
sepp2k has quit [Quit: Konversation terminated!]
daikan has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
kurko_ has joined #ruby-lang
yatish27 has joined #ruby-lang
lysw123 has joined #ruby-lang
<yorickpeterse> yay deadlocks
benlovell has quit [Ping timeout: 260 seconds]
cnivolle has joined #ruby-lang
yatish27 has quit [Ping timeout: 245 seconds]
ItSANg___ has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
ItSANgo has quit [Ping timeout: 272 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby-lang
<yorickpeterse> yay for me being a dumbass
<yorickpeterse> mutex.lock; shit breaks here; mutex.unlock # <- yep
<yorickpeterse> should've used #synchronize instead
<lianj> or ensure?
<yorickpeterse> that could've worked too
paramg has joined #ruby-lang
yatish27 has joined #ruby-lang
JoshuaPaling has quit [Read error: Connection reset by peer]
kurko_ has joined #ruby-lang
zz_dlu has quit [Quit: ZNC - http://znc.in]
GaelanAintAround has quit [Quit: Bye!]
znz_jp has quit [Quit: kill -QUIT $$]
mehlah has quit [Quit: Leaving...]
patriciomacadden has joined #ruby-lang
znz_jp has joined #ruby-lang
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby-lang
yalue has joined #ruby-lang
MrZYX is now known as MrZYX|off
smashwilson has joined #ruby-lang
mehlah has joined #ruby-lang
vlad_starkov has joined #ruby-lang
MrZYX|off is now known as MrZYX
benlovell has joined #ruby-lang
hahuang61 has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hahuang65 has quit [Ping timeout: 276 seconds]
mrevd has joined #ruby-lang
bfleischer has joined #ruby-lang
face has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
faces has quit [Ping timeout: 260 seconds]
bfleischer has quit [Ping timeout: 272 seconds]
lysw123 has quit []
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby-lang
snapr has joined #ruby-lang
patriciomacadden has joined #ruby-lang
breakingthings has joined #ruby-lang
kartouch has quit [Ping timeout: 252 seconds]
ahmedelgabri has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby-lang
kartouch has joined #ruby-lang
bfleischer has joined #ruby-lang
phansch has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
ahmedelg_ has joined #ruby-lang
ahmedelgabri has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby-lang
Lewix has quit [Ping timeout: 248 seconds]
simi has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
CoreData has joined #ruby-lang
enebo has joined #ruby-lang
CoreData has quit [Client Quit]
CoreData has joined #ruby-lang
MrZYX is now known as MrZYX|off
mehlah has joined #ruby-lang
tkuchiki has joined #ruby-lang
MrZYX|off is now known as MrZYX
relix has joined #ruby-lang
rahul_j has joined #ruby-lang
CoreData has quit [Quit: CoreData]
mbj has left #ruby-lang [#ruby-lang]
ahmedelg_ has quit [Remote host closed the connection]
d4rkr4i has joined #ruby-lang
lfox has joined #ruby-lang
mikecmpbll has joined #ruby-lang
cnivolle has joined #ruby-lang
vlad_starkov has joined #ruby-lang
gnufied has quit [Ping timeout: 246 seconds]
VTLob has joined #ruby-lang
scampbell has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
gnufied has joined #ruby-lang
fijimunkii has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
Johz has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
cnivolle has quit []
yatish27_ has joined #ruby-lang
ender_ has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
ender__ has joined #ruby-lang
yatish27_ has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ender_ has quit [Ping timeout: 246 seconds]
patriciomacadden has joined #ruby-lang
yatish27 has quit [Read error: Operation timed out]
amcoder has joined #ruby-lang
shinnya has quit [Ping timeout: 252 seconds]
nigerianceo has joined #ruby-lang
rahul_j has joined #ruby-lang
jtw has joined #ruby-lang
DouweM has joined #ruby-lang
d4rkr4i has quit [Ping timeout: 252 seconds]
d4rkr4i has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
banhbeongon has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
lysw123 has joined #ruby-lang
vinhbachsy has joined #ruby-lang
daikan has quit [Remote host closed the connection]
daikan has joined #ruby-lang
red_menace has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
lysw123 has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby-lang
daikan has quit [Remote host closed the connection]
daikan has joined #ruby-lang
bjh13_ has joined #ruby-lang
symm- has joined #ruby-lang
AKASkip has quit [Ping timeout: 252 seconds]
deception has joined #ruby-lang
ahmedelgabri has quit [Ping timeout: 246 seconds]
ender__ has quit [Ping timeout: 246 seconds]
mnngfltg has joined #ruby-lang
heftig has quit [Ping timeout: 246 seconds]
ayumin has joined #ruby-lang
cnivolle has joined #ruby-lang
apeiros has quit []
rippa has joined #ruby-lang
vlad_starkov has joined #ruby-lang
imperator2 has joined #ruby-lang
MrZYX is now known as MrZYX|off
Pupeno_w_ has quit []
tylersmith has joined #ruby-lang
MrZYX|off is now known as MrZYX
vlad_starkov has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
bin7me has quit [Ping timeout: 245 seconds]
bin7me has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
kotk has joined #ruby-lang
amcoder has quit [Ping timeout: 276 seconds]
amcoder has joined #ruby-lang
DouweM_ has joined #ruby-lang
DouweM has quit [Ping timeout: 248 seconds]
|jemc| has quit [Ping timeout: 246 seconds]
paramg has quit [Ping timeout: 252 seconds]
symm- has quit [Quit: Leaving...]
vlad_starkov has quit [Remote host closed the connection]
CaptainJet has joined #ruby-lang
atmosx has joined #ruby-lang
vlad_starkov has joined #ruby-lang
pcmyers has quit [Ping timeout: 265 seconds]
serroft has joined #ruby-lang
vinhbachsy has quit [Remote host closed the connection]
presidentbeef has left #ruby-lang [#ruby-lang]
vinhbachsy has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vinhbachsy has quit [Ping timeout: 272 seconds]
amcoder has quit [Ping timeout: 272 seconds]
jsullivandigs has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko_ has joined #ruby-lang
CaptainJet has quit []
amcoder has joined #ruby-lang
seanlinsley has quit [Quit: …]
snapr has quit [Read error: Connection reset by peer]
bin7me has quit [Quit: Leaving]
[_aeris_] is now known as _aeris_
amcoder has quit [Ping timeout: 260 seconds]
solars has quit [Ping timeout: 245 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
lfox has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
senj has joined #ruby-lang
mistym has quit [Remote host closed the connection]
paramg has joined #ruby-lang
patriciomacadden has joined #ruby-lang
brettweavnet has joined #ruby-lang
amcoder has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby-lang
_aeris_ is now known as [_aeris_]
atmosx has quit [Quit: Lost in trance]
brettweavnet has quit [Quit: Bye]
brettweavnet has joined #ruby-lang
Pupeno_w has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
apeiros has joined #ruby-lang
GBrawl has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patriciomacadden has joined #ruby-lang
cored has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby-lang
MrZYX is now known as MrZYX|off
mistym has joined #ruby-lang
scampbell has joined #ruby-lang
vlad_starkov has joined #ruby-lang
MrZYX|off is now known as MrZYX
AKASkip has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
ivanskie has joined #ruby-lang
matp has quit [Quit: ZZZzzz…]
fijimunkii has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
matp has joined #ruby-lang
tbuehlmann has quit [Quit: Konversation terminated!]
<darix> r0bgleeson: i really wonder more if people actually started using http 402 in production
seanlinsley has joined #ruby-lang
paramg has quit [Ping timeout: 246 seconds]
deception has quit [Read error: Connection reset by peer]
[_aeris_] is now known as _aeris_
ahmedelgabri has quit []
vlad_starkov has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
yatish27 has joined #ruby-lang
heftig has joined #ruby-lang
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmedelg_ has joined #ruby-lang
senj has joined #ruby-lang
ahmedelgabri has quit [Ping timeout: 252 seconds]
<tubbo> hey guys, is it possible to compile ruby scripts before loading them into your program?
banhbeongon has quit [Ping timeout: 272 seconds]
<workmad3> tubbo: not afaik
<apeiros> tubbo: short answer: no, long answer: it's difficult and not generally feasible
alekst has joined #ruby-lang
<r0bgleeson> tubbo: yeah, short answer is no. you can compile to bytecode, but if you're doing that to obsfucate so you can sell a commercial product, just stop
dagobah has quit [Remote host closed the connection]
phansch has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby-lang
phansch has joined #ruby-lang
elia has quit [Ping timeout: 245 seconds]
imperator2 has quit [Ping timeout: 252 seconds]
mistym has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pupeno_w has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
patriciomacadden has joined #ruby-lang
albertgrala has joined #ruby-lang
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
serroft has quit [Quit: Leaving.]
__butch__ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
mistym has joined #ruby-lang
GBrawl has quit [Quit: Computer has gone to sleep.]
Johz has quit [Ping timeout: 272 seconds]
ivanskie has joined #ruby-lang
konr has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<konr> I want to be able to do `x = lambda {|x,y| x+y}; x 1,2`, but I need to do `x.call 1,2` instead. Is there a way to avoid this .call call?
benlovell has quit [Ping timeout: 245 seconds]
yatish27 has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 265 seconds]
yatish27 has joined #ruby-lang
Johz has joined #ruby-lang
RobertBirnie has joined #ruby-lang
Anonomastos has joined #ruby-lang
yatish27 has quit [Ping timeout: 248 seconds]
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
mnngfltg has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 272 seconds]
laphlaw has joined #ruby-lang
laphlaw has quit [Read error: Connection reset by peer]
laphlaw has joined #ruby-lang
mistym has joined #ruby-lang
mistym_ has quit [Ping timeout: 272 seconds]
lupine has quit [Quit: ZNC - http://znc.in]
melter has joined #ruby-lang
mistym_ has joined #ruby-lang
enebo has quit [Quit: enebo]
lupine has joined #ruby-lang
mistym has quit [Ping timeout: 246 seconds]
<workmad3> konr: no
imperator2 has joined #ruby-lang
<workmad3> konr: but you can do x.(1,2)
<workmad3> konr: or x[1,2]
imperator3 has joined #ruby-lang
<konr> thanks, workmad3!
mistym_ is now known as mistym
imperator2 has quit [Ping timeout: 252 seconds]
kotk has quit [Ping timeout: 252 seconds]
jmaya has joined #ruby-lang
tbuehlmann has joined #ruby-lang
laphlaw has left #ruby-lang [#ruby-lang]
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 272 seconds]
mistym_ is now known as mistym
AKASkip has quit [Ping timeout: 252 seconds]
jmaya has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
rahul_j has left #ruby-lang [#ruby-lang]
<jtoy> how would I remove everything before itsbeta1 in this string? I tried with: "/Users/jtoy/sandbox/templates/landing/itsbeta1/assets/css/bootstrap-theme.min.css".gsub(/*itsbeta1/,'')`
enebo has joined #ruby-lang
yfeldblum has joined #ruby-lang
Anonomastos has quit [Quit: Quitte]
cirenyc has quit [Quit: Leaving...]
bin7me has joined #ruby-lang
serroft has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
serroft has quit [Ping timeout: 252 seconds]
trollface has joined #ruby-lang
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
Paradox has quit [Ping timeout: 240 seconds]
Squarepy has joined #ruby-lang
jonahR has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mykoweb has quit [Remote host closed the connection]
patriciomacadden has joined #ruby-lang
deception has joined #ruby-lang
<badeball> jtoy: on possibility is with regexp: string.gsub(/.*?(?=itsbeta1)/, "")
d4rkr4i has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
AKASkip has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
nigerianceo has quit []
imperator3 has quit [Ping timeout: 245 seconds]
daikan has quit [Remote host closed the connection]
serroft has joined #ruby-lang
daikan has joined #ruby-lang
daikan has quit [Remote host closed the connection]
daikan has joined #ruby-lang
bin7me has quit [Quit: Leaving]
jaimef has quit [Excess Flood]
jaimef has joined #ruby-lang
momomomomo has joined #ruby-lang
mucker has quit []
d4rkr4i has joined #ruby-lang
cnivolle_ has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
cnivolle has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby-lang
sepp2k has joined #ruby-lang
huma has quit [Ping timeout: 272 seconds]
nigerianceo has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
jstemmer has quit [Remote host closed the connection]
robmiller has quit [Quit: robmiller]
ahmedelg_ has quit [Ping timeout: 276 seconds]
EngierkO has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
cnivolle_ has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
simi has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby-lang
CodeBunny has joined #ruby-lang
phansch has quit [Quit: Leaving]
hahuang61 has quit [Ping timeout: 245 seconds]
toretore has quit [Quit: Leaving]
cnivolle has quit [Ping timeout: 252 seconds]
amcoder has quit [Quit: ZZZzzz…]
vky has joined #ruby-lang
robmiller has joined #ruby-lang
solars has joined #ruby-lang
benanne has joined #ruby-lang
MrZYX is now known as MrZYX|off
ahmedelgabri has joined #ruby-lang
vky has quit [Ping timeout: 246 seconds]
MrZYX|off is now known as MrZYX
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
robmiller has quit [Quit: robmiller]
vlad_starkov has joined #ruby-lang
cirenyc has joined #ruby-lang
ayumin has quit [Remote host closed the connection]
ayumin has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tbuehlmann has quit [Remote host closed the connection]
ayumin has quit [Ping timeout: 265 seconds]
daikan has quit [Remote host closed the connection]
EngierkO has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has joined #ruby-lang
EngierkO has joined #ruby-lang
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby-lang
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby-lang
daikan has joined #ruby-lang
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby-lang
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby-lang
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby-lang
hahuang61 has joined #ruby-lang
postmodern has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
bradcliffe has joined #ruby-lang
joast has joined #ruby-lang
yfeldblum has joined #ruby-lang
vky has joined #ruby-lang
benanne has quit [Ping timeout: 246 seconds]
mistym has quit [Remote host closed the connection]
ahmedelgabri has quit []
<hagabaka> is there a convenient way to rebuild the extensions of all installed gems? I switched from 32 bit to 64 bit
benanne has joined #ruby-lang
<hagabaka> ah never mind
CodeBunny has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
CodeBunny has joined #ruby-lang
mistym has joined #ruby-lang
towski_ has quit [Quit: Leaving]
jonahR has quit [Quit: jonahR]
wudofyr has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
daikan has quit [Remote host closed the connection]
CoreData has joined #ruby-lang
<eam> I know I can hack autoviviification for multilevel hashes, but there's no way to do it for a hash/array mix, is there? I'm pretty sure there isn't, but I'm wondering if I've overlooked anything
<eam> I think the reason I can't is that [] is used for both hash/array
<jtoy> badeball: awesome,thx
vlad_starkov has quit [Remote host closed the connection]
brettweavnet has quit [Quit: Bye]
<MrZYX> eam: I find it hard to imagine where that would be useful or how that even be used, mind elaborating a bit more?
<eam> contrived example: line =~ /(\w+)(\d+)(.)(.)/; thing[$1][$2][$3][$4] += 1
brettweavnet has joined #ruby-lang
<eam> where it's hash / array / hash / hash
mehlah has joined #ruby-lang
<eam> all hash is doable
<MrZYX> as a human I can't see from the code where it would be an array and where it would be a hash
<MrZYX> how should ruby know
<eam> that's what I mean, I think hash/array using the same syntax makes it impossible
<eam> vs (for example in perl) $thing->{$1}[$2]{$3}{$4}
<eam> some languages differentiate the index operator, some don't
<eam> I guess I could define my own methods though
robmiller has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
|jemc| has joined #ruby-lang
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
yfeldblum has quit [Remote host closed the connection]
amcoder has joined #ruby-lang
phansch has joined #ruby-lang
yalue has quit [Quit: Leaving]
Lewix has quit [Ping timeout: 272 seconds]
mistym has quit [Remote host closed the connection]
<whitequark> eam: well, you could create an array for integer indexes, and a hash for anything else
<whitequark> but really, autovivification is an antipattern.
<yorickpeterse> I am just now heading to home
<yorickpeterse> it's 22:10
<yorickpeterse> :<
<yorickpeterse> "fucking mongo" etc
daikan has joined #ruby-lang
daikan has quit [Ping timeout: 272 seconds]
mistym has joined #ruby-lang
<eam> well I certainly don't agree with that :)
<apeiros> eam: do you control creation of the arrays? if so, you could subclass or delegate the arrays to one which autovivifies like Hash
prc has joined #ruby-lang
<apeiros> alternatively use #fetch instead of #[] and provide a NullHash/NullArray as default value
amcoder has quit [Quit: ZZZzzz…]
<eam> apeiros: good idea, playing around with that now (not for serious though, this is off the reservation enough that I don't think I'd use it)
amcoder has joined #ruby-lang
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby-lang
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
thmzlt has joined #ruby-lang
MrZYX is now known as MrZYX|off
phansch has quit [Quit: Leaving]
MrZYX|off is now known as MrZYX
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
dominikh has left #ruby-lang ["WeeChat 0.4.1"]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
mykoweb has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
lele has quit [Ping timeout: 252 seconds]
d4rkr4i has quit [Quit: Leaving.]
cid404 has quit [Quit: cid404]
lele has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mykoweb_ has joined #ruby-lang
bradcliffe has joined #ruby-lang
scampbell has quit [Quit: Leaving]
mykoweb has quit [Ping timeout: 276 seconds]
albertgrala has quit [Quit: Leaving]
cads has joined #ruby-lang
arBmind has joined #ruby-lang
mistym_ is now known as mistym
hinbody has joined #ruby-lang
tuttinator has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
ozkan has joined #ruby-lang
amcoder has quit [Quit: ZZZzzz…]
jonahR has joined #ruby-lang
nigerianceo has quit []
lcdhoffman has joined #ruby-lang
jaimef has quit [Excess Flood]
MrZYX is now known as MrZYX|off
jaimef has joined #ruby-lang
DEac-_ has quit [Read error: Connection reset by peer]
amcoder has joined #ruby-lang
Dernise has quit [Ping timeout: 272 seconds]
DEac- has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kartouch has quit [Ping timeout: 252 seconds]
deception has quit [Quit: Goodbye]
guns has joined #ruby-lang
daikan has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kartouch has joined #ruby-lang
daikan has quit [Remote host closed the connection]
daikan has joined #ruby-lang
vky has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0a2/20140110004002]]
jameswatling has joined #ruby-lang
fijimunkii has joined #ruby-lang
guns has quit [Read error: Connection reset by peer]
cirenyc has quit [Quit: Leaving...]
diegoviola has joined #ruby-lang
nigerianceo has joined #ruby-lang
amcoder has quit [Quit: ZZZzzz…]
arBmind has quit [Ping timeout: 245 seconds]
nigerianceo has quit [Client Quit]
senj has joined #ruby-lang
deens has joined #ruby-lang
breakingthings has quit []
kirin` has quit [Ping timeout: 265 seconds]
kirin` has joined #ruby-lang
smashwilson has quit [Quit: Leaving]
symm- has joined #ruby-lang
snarfmason has joined #ruby-lang
CodeBunny has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
CoreData has quit [Quit: CoreData]
woollyams has joined #ruby-lang
deens has quit [Remote host closed the connection]
amerine has joined #ruby-lang
mbj has joined #ruby-lang
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
MichD is now known as michd
woollyams has quit [Ping timeout: 252 seconds]
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
woollyams has joined #ruby-lang
benanne has quit [Quit: kbai]
enebo has quit [Quit: enebo]
tuttinator has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
VTLob has quit [Quit: VTLob]
jonahR has quit [Quit: jonahR]
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradcliffe has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
r0bgleeson has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
chouhoulis has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
bjh13_ has quit [Quit: leaving]
fijimunkii has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby-lang
wallerdev has joined #ruby-lang
r0bgleeson has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
pbjorklund has joined #ruby-lang
soahccc_ has joined #ruby-lang
drakkhen_ has joined #ruby-lang
_aeris has joined #ruby-lang
diegovio1 has joined #ruby-lang
Johz has quit [Quit: Leaving]
konr_ has joined #ruby-lang
jsullivandigs has joined #ruby-lang
kitallis-cloud_ has joined #ruby-lang
vmoravec_ has joined #ruby-lang
serroft has quit [Quit: Leaving.]
marr has quit [Ping timeout: 245 seconds]
diegoviola has quit [Ping timeout: 245 seconds]
melter has quit [Ping timeout: 245 seconds]
pbjorklund_ has quit [Ping timeout: 245 seconds]
_aeris_ has quit [Ping timeout: 245 seconds]
drakkhen has quit [Ping timeout: 245 seconds]
soahccc has quit [Ping timeout: 245 seconds]
jds has quit [Ping timeout: 245 seconds]
go|dfish has quit [Ping timeout: 245 seconds]
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradcliffe has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 245 seconds]
trollface has quit [Ping timeout: 245 seconds]
vmoravec has quit [Ping timeout: 245 seconds]
konr has quit [Ping timeout: 245 seconds]
drbrain has quit [Ping timeout: 245 seconds]
kitallis-cloud has quit [Ping timeout: 245 seconds]
mark| has quit [Ping timeout: 245 seconds]
jds has joined #ruby-lang
dacamp has quit [Ping timeout: 245 seconds]
seanhagen has quit [Ping timeout: 245 seconds]
jds has quit [Changing host]
jds has joined #ruby-lang
nhmood has quit [Ping timeout: 245 seconds]
TheMoonMaster_ has joined #ruby-lang
drbrain has joined #ruby-lang
dacamp has joined #ruby-lang
melter has joined #ruby-lang
go|dfish has joined #ruby-lang
mark| has joined #ruby-lang
nhmood has joined #ruby-lang
Paradox has joined #ruby-lang
konr_ is now known as konr
havenwood has joined #ruby-lang
Onixs has quit [Ping timeout: 272 seconds]
Rubennn_ has quit [Ping timeout: 248 seconds]
ayumin has joined #ruby-lang
Rubennn has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdub has joined #ruby-lang
seanhagen has joined #ruby-lang
AKASkip has quit [Ping timeout: 246 seconds]
woollyams has quit [Ping timeout: 252 seconds]
marr has joined #ruby-lang
ayumin has quit [Ping timeout: 272 seconds]
ozkan has quit [Quit: Leaving...]
__butch__ has quit [Quit: Leaving.]
Thanatermesis has quit [Read error: Operation timed out]
_aeris has left #ruby-lang [#ruby-lang]
_aeris_ has joined #ruby-lang
bradcliffe has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has quit [Quit: momomomomo]
TheMoonMaster_ is now known as TheMoonMaster
_aeris_ is now known as [_aeris_]
jtw has quit []
workmad3 has joined #ruby-lang
soahccc_ has left #ruby-lang [#ruby-lang]
soahccc has joined #ruby-lang
deens has joined #ruby-lang
mbj has quit [Quit: leaving]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby-lang
closer has quit [Quit: ZNC - http://znc.in]
caral has joined #ruby-lang
caral has quit [Client Quit]
brettweavnet has quit [Quit: Bye]
caral has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fleish has joined #ruby-lang
solars has quit [Read error: Operation timed out]
rob_ has joined #ruby-lang
<rob_> hi, is it possible to access @@foo in class B when you have something like this: http://hastebin.com/nihelolido.rb ?
<fleish> hi all, I have a ruby script that runs this: return JSON.parse(IO.popen("cd ~/; knife search node #{search_string} --format json").read)["rows"] but when I run it get ERROR: ArgumentError: Type must be a string or a symbol! ... /usr/lib/ruby/vendor_ruby/json/common.rb:148:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
<zenspider> fleish: sounds like it isn't actually returning json
<fleish> zenspider: how could I confirm that?
patriciomacadden has joined #ruby-lang
<zenspider> fleish: store it in a local variable. print it out.
<fleish> zenspider: I've run the command myself and while it returns 0 rows, it does appear to be json
<zenspider> what does 0 rows look like?
<soahccc> rob_: What are you trying to do? @@ is generally to avoid or you now exactly what you're doing
<apeiros> I'd run the ruby code, not the command
tom025 has joined #ruby-lang
<rob_> soahccc: i want to access a variable in an outer class from a nested class
<apeiros> i.e., this part `IO.popen("cd ~/; knife search node #{search_string} --format json").read`
<fleish> zenspider/apeiros: http://pastebin.com/hyKfYwxt
<zenspider> rob_: I disagree that @@cvars are to be avoided... but they do need to be understood
<apeiros> (as zenspider already suggested)
kurko_ has joined #ruby-lang
<zenspider> and in this code sample, they're not understood
<rob_> yeah
<soahccc> rob_: As you do the stuff inside the class methods you can just use normal @instance_variables and make a getter with attr_reader :instance_variable
<rob_> i thought maybe because it was a nested class it may have access to the classes class variables
yfeldblum has quit [Read error: Connection reset by peer]
<soahccc> rob_: This only works though if you have instances of your classes
<rob_> soahccc: how does my nested class know about its parent?
yfeldblum has joined #ruby-lang
<soahccc> rob_: Usually you need to pass the reference from your A instance to your B instance. @b = B.new(self)
<rob_> should i extend the outer class?
<rob_> s/should/could/
<soahccc> rob_: http://hastebin.com/quxofimica.rb (untested)