ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
bfreeman has quit [Quit: bfreeman]
brunocoelho has joined #ruby-lang
<jtoy> it looks like was-s3 is not thread safe, have any of you used it?
GarethAdams has quit [Ping timeout: 246 seconds]
brunocoelho has quit [Remote host closed the connection]
yugui_zzz is now known as yugui
apeiros_ has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
jperry2 has joined #ruby-lang
clam has joined #ruby-lang
VGoff is now known as VGoff_afk
WillMarshall has joined #ruby-lang
banisterfiend has joined #ruby-lang
VGoff_afk is now known as VGoff
msaffitz has quit [Ping timeout: 246 seconds]
cantonic has quit [Ping timeout: 248 seconds]
seanstickle has joined #ruby-lang
sepp2k has joined #ruby-lang
stardiviner has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 244 seconds]
bryancp has quit [Remote host closed the connection]
msaffitz has joined #ruby-lang
msaffitz has quit [Client Quit]
jxie has quit [Ping timeout: 246 seconds]
QaDeS has quit [Ping timeout: 246 seconds]
msaffitz has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
QaDeS has joined #ruby-lang
gix has quit [Ping timeout: 248 seconds]
zrail has joined #ruby-lang
htroyack has left #ruby-lang [#ruby-lang]
gix has joined #ruby-lang
alindeman has joined #ruby-lang
l0st1 has joined #ruby-lang
segy is now known as segfault
brunocoelho has joined #ruby-lang
tomb_ has joined #ruby-lang
segfault is now known as Guest92741
Guest92741 is now known as segy
cbetta has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
jperry2 has quit [Quit: jperry2]
malev has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
arooni-mobile has joined #ruby-lang
ryez has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
clam has quit [Quit: Lost terminal]
calm has joined #ruby-lang
igotnolegs has joined #ruby-lang
Purehk has joined #ruby-lang
wmoxam has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
outoftime has joined #ruby-lang
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
savage- has quit [Ping timeout: 246 seconds]
Guest37843 is now known as andrewhl
dc5ala_ has joined #ruby-lang
neoesque has joined #ruby-lang
dc5ala has quit [Read error: Operation timed out]
towski has quit [Remote host closed the connection]
eban has quit [Quit: WeeChat 0.3.7]
eban has joined #ruby-lang
wmoxam has quit [Quit: leaving]
ryez has quit [Ping timeout: 245 seconds]
chutwig has left #ruby-lang ["["Textual IRC Client: www.textualapp.com"]"]
Purehk has quit []
flowerpot has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
malev has joined #ruby-lang
banisterfiend has joined #ruby-lang
coryf has joined #ruby-lang
tofaffy has joined #ruby-lang
malev has quit [Remote host closed the connection]
Denommus has joined #ruby-lang
kvirani has joined #ruby-lang
ryanf has quit [Quit: leaving]
msaffitz has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
tomb_ has joined #ruby-lang
jxie has joined #ruby-lang
WillMarshall has joined #ruby-lang
malev has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
krz has quit [Ping timeout: 240 seconds]
krzkrzkrz is now known as krz
msaffitz has quit [Quit: Computer has gone to sleep.]
flowerpot has quit [Quit: Ex-Chat]
Denommus has left #ruby-lang [#ruby-lang]
towski has joined #ruby-lang
l0st1 has quit [Quit: leaving]
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dhruvasagar has quit [Ping timeout: 252 seconds]
seanstickle has quit [Quit: Nihil sub sole novum]
dhruvasagar has joined #ruby-lang
htroyack has joined #ruby-lang
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
towski has quit [Ping timeout: 246 seconds]
towski has joined #ruby-lang
rtinker has joined #ruby-lang
jtoy has quit [Quit: jtoy]
ilyam has joined #ruby-lang
rtinker has quit [Remote host closed the connection]
QaDeS has quit [Quit: Ex-Chat]
mikeric has joined #ruby-lang
mikeric has quit [Client Quit]
krz has quit [Quit: krz]
towski has quit [Ping timeout: 255 seconds]
ilyam has quit [Quit: ilyam]
towski has joined #ruby-lang
calm has quit [Quit: Lost terminal]
towski has quit [Read error: Connection reset by peer]
htroyack has quit []
calm has joined #ruby-lang
towski has joined #ruby-lang
andrewhl has joined #ruby-lang
coryf has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 248 seconds]
neoesque has quit [Quit: Bye!]
dhruvasa1ar has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
towski has quit [Ping timeout: 256 seconds]
krainboltgreene has quit [Quit: krainboltgreene]
tomb_ has quit [Quit: Computer has gone to sleep.]
towski has joined #ruby-lang
krainboltgreene has joined #ruby-lang
outoftime has quit [Ping timeout: 246 seconds]
towski has quit [Ping timeout: 250 seconds]
towski has joined #ruby-lang
msaffitz has joined #ruby-lang
CodeBlock has quit [Changing host]
CodeBlock has joined #ruby-lang
savage- has joined #ruby-lang
outoftime has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
brunocoelho has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
mikeric has joined #ruby-lang
d3vic3 has quit [Ping timeout: 246 seconds]
d3vic3 has joined #ruby-lang
cha1tanya has joined #ruby-lang
retro|cz has joined #ruby-lang
mistym has quit [Remote host closed the connection]
fayimora has quit [Quit: Busy…..zzzzz]
dhruvasa1ar has quit [Ping timeout: 244 seconds]
towski has quit [Ping timeout: 265 seconds]
perryh_away is now known as perryh
malev has quit [Remote host closed the connection]
perryh is now known as perry
towski has joined #ruby-lang
petercooper has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
banisterfiend has quit [Ping timeout: 250 seconds]
banisterfiend has joined #ruby-lang
xtagon has quit [Ping timeout: 248 seconds]
neocoin has joined #ruby-lang
guns has joined #ruby-lang
<guns> Is setting Process.euid= and Process.gid= all that one needs to do to emulate sudo when running as root?
sepp2k has quit [Remote host closed the connection]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
dc5ala_ has quit [Quit: Ex-Chat]
savage- has quit [Remote host closed the connection]
dc5ala has joined #ruby-lang
<heftig> guns: AFAIK sudo sets the ruid, too
<guns> heftig: I have to admit, I think I'm fuzzy on the difference between uid, euid, and ruid :(
<heftig> ruid == uid
<guns> hmm. I suppose there's a system header that will give me this information?
<heftig> what information?
<guns> Ah, I guess I can look at the Process source
<guns> ty
towski has quit [Remote host closed the connection]
Fretta has quit [Quit: Fretta]
neoesque has joined #ruby-lang
krz has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
nertzy2 has quit [Quit: This computer has gone to sleep]
woollyams has joined #ruby-lang
Axsuul has quit [Remote host closed the connection]
Axsuul has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
jtoy has joined #ruby-lang
mikeric has quit [Quit: mikeric]
whatasunnyday has joined #ruby-lang
whatasunnyday has quit [Read error: Connection reset by peer]
msaffitz has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby-lang
ryanf has quit [Quit: leaving]
mikeric has joined #ruby-lang
ryanf has joined #ruby-lang
Asher has quit [Ping timeout: 246 seconds]
htroyack has joined #ruby-lang
htroyack has quit [Excess Flood]
htroyack has joined #ruby-lang
htroyack has quit [Excess Flood]
dhruvasagar has joined #ruby-lang
kitallis has joined #ruby-lang
JohnBat26 has joined #ruby-lang
krz has quit [Quit: krz]
andrewhl has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
Lenexurge has joined #ruby-lang
zmack has joined #ruby-lang
mikeric has quit [Quit: mikeric]
tooky has quit [Remote host closed the connection]
zmack_ has joined #ruby-lang
zmack has quit [Ping timeout: 246 seconds]
jtoy has quit [Quit: jtoy]
symm- has joined #ruby-lang
Asher has joined #ruby-lang
sepp2k has joined #ruby-lang
Axsuul has quit [Ping timeout: 248 seconds]
guns has quit [Quit: guns]
neocoin has quit [Remote host closed the connection]
robin850 has joined #ruby-lang
ryanf has quit [Quit: leaving]
Axsuul has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
matled has quit [Remote host closed the connection]
matled has joined #ruby-lang
jxie has quit [Ping timeout: 265 seconds]
jxie has joined #ruby-lang
solars has joined #ruby-lang
perry is now known as perryh_away
GarethAdams has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
gnufied has joined #ruby-lang
Axsuul has quit [Remote host closed the connection]
Axsuul has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
beiter has joined #ruby-lang
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
QaDeS has joined #ruby-lang
vertroa has quit [Read error: Connection reset by peer]
headius has joined #ruby-lang
vertroa has joined #ruby-lang
gnufied has joined #ruby-lang
yxhuvud has joined #ruby-lang
Arsen7 has joined #ruby-lang
headius has quit [Ping timeout: 246 seconds]
dfr|mac has joined #ruby-lang
abuiles has joined #ruby-lang
workmad3 has joined #ruby-lang
cdt has joined #ruby-lang
tekin has joined #ruby-lang
bytephilia has joined #ruby-lang
AlHafoudh has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
umttumt has joined #ruby-lang
setmeaway2 has joined #ruby-lang
Lenexurge has quit [Quit: Nettalk6 - www.ntalk.de]
setmeaway has quit [Read error: Connection reset by peer]
Leeky_afk is now known as Leeky
voker57 has quit [Remote host closed the connection]
igotnolegs has quit [Quit: Computer has gone to sleep.]
thone_ has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
thone has quit [Ping timeout: 248 seconds]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
Criztian has joined #ruby-lang
cbetta has joined #ruby-lang
d3vic3 has quit [Ping timeout: 240 seconds]
schroedinbug has quit [Ping timeout: 244 seconds]
d3vic3 has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
krainboltgreene has quit [Quit: krainboltgreene]
AlHafoudh has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
jarib has quit [Excess Flood]
tekin_ has joined #ruby-lang
jarib has joined #ruby-lang
tjadc has joined #ruby-lang
tekin_ has quit [Ping timeout: 244 seconds]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
itz has joined #ruby-lang
future_chimp has joined #ruby-lang
Leeky is now known as Leeky_afk
schroedinbug has joined #ruby-lang
neocoin has joined #ruby-lang
yugui is now known as yugui_zzz
neoesque has quit [Quit: Bye!]
future_chimp has quit [Ping timeout: 248 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
mssola has joined #ruby-lang
future_chimp has joined #ruby-lang
beawesomeinstead has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
relix has quit [Remote host closed the connection]
L0rdShrek has quit [Remote host closed the connection]
akamike has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
Spaceghostc2c has quit [Remote host closed the connection]
tubbo`remote has quit [Remote host closed the connection]
wycats has quit [Read error: Connection reset by peer]
herpless_ has quit [Remote host closed the connection]
agib has quit [Remote host closed the connection]
pvh has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
akahn has quit [Remote host closed the connection]
denysonique has quit [Remote host closed the connection]
abuiles has quit [Remote host closed the connection]
pkondzior has quit [Remote host closed the connection]
cldwalker has quit [Remote host closed the connection]
franckverrot has quit [Write error: Broken pipe]
mccraig has quit [Write error: Broken pipe]
woollyams has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nertzy has joined #ruby-lang
relix has joined #ruby-lang
akamike has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
abuiles has joined #ruby-lang
mccraig has joined #ruby-lang
tubbo`remote has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
<rue> Also, man setuid…
Spaceghostc2c has joined #ruby-lang
mroth has joined #ruby-lang
mroth has joined #ruby-lang
mroth has quit [Changing host]
mroth has joined #ruby-lang
L0rdShrek has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
Hakon|mbp has joined #ruby-lang
akahn has joined #ruby-lang
wycats has joined #ruby-lang
headius has joined #ruby-lang
<darix> rue: that would be too easy ;p
<darix> and for changing the uid/gid of a process Process.initgroups(user, target_gid) ; Process::GID.change_privilege(target_gid) ; Process::UID.change_privilege(target_uid)
pkondzior has joined #ruby-lang
znowi_ has left #ruby-lang [#ruby-lang]
znowi has joined #ruby-lang
dkannan has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
telemachus has left #ruby-lang [#ruby-lang]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
rolfb has joined #ruby-lang
JohnBat26 has joined #ruby-lang
pemeon has joined #ruby-lang
heftig has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
tekin has joined #ruby-lang
cldwalker has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
beiter has quit [Quit: beiter]
tomb_ has joined #ruby-lang
gnufied has joined #ruby-lang
galymzhan has joined #ruby-lang
herpless_ has joined #ruby-lang
denysonique has joined #ruby-lang
<galymzhan> Is this an official channel of ruby ?
<banisterfiend> galymzhan: #ruby too
gnufied1 has joined #ruby-lang
gnufied has quit [Ping timeout: 248 seconds]
galymzhan has left #ruby-lang [#ruby-lang]
srbartlett has joined #ruby-lang
anildigital_work has joined #ruby-lang
headius has quit [Quit: headius]
headius has joined #ruby-lang
zmack_ is now known as zmack
mwjcomputing has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby-lang
rolfb has joined #ruby-lang
stardiviner has quit [Ping timeout: 255 seconds]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<rue> banisterfiend: Please don’t peddle that as an official channel.
<banisterfiend> rue: hehe
<rue> No, not hehe.
<banisterfiend> reality is though, this chan is dead, and half the size of the other one, ppl are probably more likely to get help there
<banisterfiend> (imo)
kristofferrr has joined #ruby-lang
Leeky_afk is now known as Leeky
<henk> I’m trying to learn programming (as opposed to hacking together little scripts) by writing a gtk client for xmms2 in ruby. After the connection is established, the client just hangs for quite a while, AFAICT depending on the size of the medialib it has to get from the daemon. Can anyone give advice on how to determine what causes these delays?
d3vic3 has joined #ruby-lang
<rue> Need more detail
beiter has joined #ruby-lang
<rue> banisterfiend: Don’t mean you can parade it around as the official channel.
<rue> Fucking useless shit.
<banisterfiend> fair enough
<banisterfiend> sorry rue
<rue> banisterfiend: Not you, the channel situation is useless shit.
<rue> henk: The connection hangs before any data is transmitted, after, during…?
<henk> rue: Me too :-/ Sorry if my question does not provide what you need to know. Since I’m just learning, I probably don’t know what I should tell.
stardiviner has joined #ruby-lang
<rue> henk: Well, if you have code you can show, put it up on Gist, for example. The smaller the reproduction/example is, the better
<darix> henk: you can find out with strace in which syscall it is hanging
<rue> That too, eliminates some possibilities at least
<darix> rue: the situation could be solved easily with just making #ruby or #ruby-lang forward to the other and move everyone from forwarding channel to the other
<rue> darix: Enter Freenode policies
<rue> Sense exit stage left
<darix> rue: which part of it?
stardiviner has quit [Client Quit]
<rue> Even a low-tech solution worked fine. This was never a problem when the /topic over there stated that this is the official channel
<henk> rue: Program starts, I tell it to connect, it does connect without problem. I have no idea at which point it hangs as I can’t make any sense of the traffic dump (not plaintext AFAICT). I assume it is either waiting for results from the server (I wrote an 'async' client, i.e. the request is sent and the program continues. A notifier runs the associated block then), or it is processing those results. The
<henk> code can be found at https://git.netwichtig.de/gitweb/?p=grux.git;a=summary. Didn’t think of strace yet, doing that now.
DEac- has quit [Read error: No route to host]
DEac-_ has joined #ruby-lang
<darix> henk: your message to cut off at "results. The"
<darix> JFYI
<darix> there is a length limit on irc
<henk> darix: hm, yeah, I know, but weechat is supposed to work around that. Do you only see one line from me? I see two and the second continues the first …
<darix> henk: it didnt. i know from irssi you need a script for that. maybe weechat also needs a script/plugin for it?
<henk> i.e. "… those results. The code can be found"
<darix> ah
<darix> yes that 2nd line came through but without the "..." :)
DEac-_ has quit [Read error: Connection reset by peer]
<darix> so
<darix> back to strace
<henk> Yeah, the irssi plugin does that, weechat does it OOTB but no '...' :)
<henk> Yep, just installing and trying, gimme a minute ;)
<darix> henk: strace -fF -s 1024
<darix> so you catch threads and subprocesses too
DEac- has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
<henk> darix: ok, it’s running. And producing a f…ine lot of output, 15MB to be exact …
<henk> I’ll try to make sense of it. If I can’t I’ll try to figure out which parts are relevant and paste them. If anyone has any hints what to look out for or would like to look at the complete output, tell me and I’ll upload it. Thanks so far! :)
tekin has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
<rue> If it’s hanging, the answer should be at the bottom :P
DEac- has joined #ruby-lang
<rue> Yay dtruss
dhruvasagar has quit [Ping timeout: 246 seconds]
<henk> oh damn, I think I misphrased that maybe :-/ with 'hanging' I don’t mean that it does not continue running at all. It just takes quite a while at a certain point before the program goes on. I’d like to find what causes the delay.
QaDeS has quit [Quit: Ex-Chat]
<henk> Sorry for the confusion :(
DEac- has quit [Read error: Connection reset by peer]
outoftime has quit [Ping timeout: 244 seconds]
deobald_ has joined #ruby-lang
DEac- has joined #ruby-lang
dfr|mac has joined #ruby-lang
bryancp has joined #ruby-lang
mistym has joined #ruby-lang
<henk> btw: I know it is a problem because other clients are lightning fast in comparison.
<rue> Doesn’t the strace (or maybe socat/tcpdump) show a call where there’s a clear visual delay?
toretore has quit [Quit: Leaving]
jxie has quit [Quit: leaving]
DEac-_ has joined #ruby-lang
tommyvyo has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
voker57 has quit [Read error: Connection reset by peer]
DEac-_ has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
DEac- has joined #ruby-lang
<henk> rue: I tried tcpdump, but the protocol is binary, so I can’t tell much :-/ strace shows a call which seems to be repeated over and over while it hangs/waits: https://gist.github.com/3129206
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<henk> I’ll add some debug output to all the async notifier functions, maybe that’ll lead some where …
<henk> Is there a way to reference the currently running method?
bryancp has quit [Ping timeout: 250 seconds]
<rue> From Ruby?
<bnagy> __method__
<rue> There’s __method__, which gives you the name, but it has some limitations
<henk> rue: Yes, I’d like to add debug statements saying "Running method $current_method from $binaryname, currently in line $line, or something like that.
<rue> You could just step through in the debugger at that point
dfr|mac has quit [Remote host closed the connection]
<henk> rue: "the debugger"? I don’t know about it yet, can you point me to its manual please?
<rue> Either just ruby -rdebug script (or -e), or you can use the debugger gem
jperry2 has joined #ruby-lang
dfr|mac has joined #ruby-lang
bryancp has joined #ruby-lang
Defusal has quit [Quit: brb]
malev has joined #ruby-lang
<henk> rue: ok, thank you
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
cbetta has left #ruby-lang ["Textual IRC Client: http://www.textualapp.com/"]
<darix> or use pry
<darix> which is also nice for debugging
<darix> binding.pry ftw
pemeon has quit [Ping timeout: 252 seconds]
tekin has quit [Quit: Computer has gone to sleep.]
gregmore_ has quit [Read error: Operation timed out]
Caius has joined #ruby-lang
bglusman has joined #ruby-lang
cha1tanya has quit [Ping timeout: 246 seconds]
bglusman has quit [Read error: Connection reset by peer]
bglusman has joined #ruby-lang
outoftime has quit [Quit: Leaving]
gregmoreno has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
rhodee has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 250 seconds]
robbyoconnor has joined #ruby-lang
joast has quit [Ping timeout: 244 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
sailias has quit [Quit: Leaving.]
pmullins has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 246 seconds]
hynkle has joined #ruby-lang
concernedcitizen has joined #ruby-lang
concernedcitizen has quit [Changing host]
concernedcitizen has joined #ruby-lang
hynkle has quit [Client Quit]
hynkle has joined #ruby-lang
dfr|mac_ has joined #ruby-lang
dfr|mac has quit [Ping timeout: 250 seconds]
sockmonk has joined #ruby-lang
headius has quit [Quit: headius]
dfr|mac has joined #ruby-lang
dfr|mac_ has quit [Ping timeout: 265 seconds]
dejongge has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
dv310p3r has joined #ruby-lang
mwjcomputing has left #ruby-lang ["Leaving"]
<rue> That too
dejongge has quit [Quit: Leaving.]
slyphon has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
<henk> darix: thanks, will take a look :)
bryancp has quit [Remote host closed the connection]
fgomez has quit [Remote host closed the connection]
deobald_ has quit [Ping timeout: 244 seconds]
slyphon has joined #ruby-lang
dfr|mac has joined #ruby-lang
deobald_ has joined #ruby-lang
outoftime has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
pmullins has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
neocoin has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
sailias has joined #ruby-lang
Austin__ has joined #ruby-lang
Austin__ has quit [Remote host closed the connection]
Austin__ has joined #ruby-lang
andrewhl has joined #ruby-lang
postmodern has quit [Quit: Leaving]
slyphon has quit [Quit: WeeChat 0.3.7]
pemeon has joined #ruby-lang
akira989 has joined #ruby-lang
Hash_Rocket has joined #ruby-lang
Amigaman has joined #ruby-lang
<mfn> I've a tiny sinatra app in a gem; I provided a bin/ for it to easy run it; I'd also like to provide a config.ru for rackup. But where would I put this in my gem, and when a user installs the gem, how can I figure out where the config.ru for my gem is? I think I certainly don't want to put it into lib/ ...
tbuehlmann has joined #ruby-lang
tekin has joined #ruby-lang
<whitequark> # bin/app
<whitequark> File.expand_path(File.dirname(__FILE__), 'config.ru')
<whitequark> erm
<whitequark> ../config.ru
<whitequark> you got the idea
<mfn> I see, so I should just put it into the root dir of my gem
vasilk_ has joined #ruby-lang
<whitequark> well, why not? that's where config.ru usually resides
<whitequark> you can use whatever path you like, just calculate a relative one from your binhelper
<mfn> makes sense. I certainly don't want it in the bin/ and not in lib/ .
<mfn> thx :)
<whitequark> channel admins: vasilk_ just pm'd me, he cannot send anything to the channel
<whitequark> is that an ip ban gone wrong?
gnufied1 has quit [Quit: Leaving.]
<whitequark> apeiros_: ^
<bnagy> need to be registered
<apeiros_> bnagy: sure? I don't see +r being set as a channel mode…
<bnagy> ie probably the registered nick is vasilk
DEac-_ has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
<bnagy> I dunno about modes :)
<rue> Dat
<rue> Just _nt
<rue> Er
<apeiros_> bnagy: +r is (iirc) the mode that requires registration in order to talk
Amigaman has quit [Read error: Connection reset by peer]
<bnagy> *shrug*
<apeiros_> don't see a quieting ban either.
whitetest has joined #ruby-lang
<whitequark> meh, it doesn't allow me to write as well
<apeiros_> hm
<apeiros_> then I don't know from where it comes… maybe with the new ircds its a setting which isn't exposed as channel mode
<whitequark> wtf, I did "/nick whitetest_" and it replied with "cannot change nickname while banned on channel"
<whitequark> wat
<rue> See which channel it refers
<whitequark> obviously #ruby-lang, that's the only one
<rue> There’s definitely +r here, or equivalent thereof
whitetest has left #ruby-lang [#ruby-lang]
whitetest_ has joined #ruby-lang
whitetest_ has left #ruby-lang [#ruby-lang]
bryancp has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
whitetest has joined #ruby-lang
<whitequark> yeah, probably there is
<apeiros_> I see nothing in chanservs help regarding muting of non-registereds :-/
<apeiros_> and `/cs why` says there's no ban on vasilk_
<apeiros_> no idea
<mistym> whitequark: Yeah, that threw me the first time I saw it.
whitetest has quit [Client Quit]
<apeiros_> hm, "If a channel is set to mode +q $~a, you won't be able to speak while on that channel unless you are registered and identified."
<apeiros_> I guess limechat isn't capable of properly displaying that mode
<apeiros_> hm, no, it's not in the raw response. so not limechat's fault
<apeiros_> aaha!
<apeiros_> "You can view the quiet list for a channel with `/MODE #channel +q`"
<apeiros_> and that reveals: "Reply(728): #ruby-lang q $~a zenspider!~user@envy.zenspider.com 1335570774"
vasilk_ has quit [Quit: Leaving]
jrafanie has joined #ruby-lang
vasilk_ has joined #ruby-lang
<whitequark> irc is arcane.
elsifaka has joined #ruby-lang
vasilk_ has quit [Client Quit]
<apeiros_> so yeah, registering the nickname is the way to go
vasilk has joined #ruby-lang
gnufied has joined #ruby-lang
dfr|mac_ has joined #ruby-lang
DEac-_ has quit [Ping timeout: 246 seconds]
<vasilk> And now?
<vasilk> it works - thanks :)
dfr|mac has quit [Ping timeout: 248 seconds]
dfr|mac_ has quit [Ping timeout: 252 seconds]
cantonic has joined #ruby-lang
<vasilk> Hi all - I need some help!
<vasilk> I am writing a scraperwiki script using Ruby and inside I use sqlite db. At the end, I would like use date from one single record.
<vasilk> I have:
<vasilk> result.inspect returns
<vasilk> result = ScraperWiki::select("* from swdata where...
<vasilk> [{"lab1"=>"data1", "lab2"=>nil....
<vasilk> How I should access for example lab1 value?
dfr|mac has joined #ruby-lang
<vasilk> If I use:
<vasilk> puts result['lab1'] it says it can't convert from string to integer
<vasilk> How to proceed?
<vasilk> Thanks!
dfr|mac has quit [Remote host closed the connection]
vasilk has quit [Quit: Leaving]
vasilk has joined #ruby-lang
<vasilk> anyone can help me with it?
ttilley is now known as ttilley_off
enebo has joined #ruby-lang
<apeiros_> vasilk: you have a hash in an array
<apeiros_> so first you have to get the hash before you can access elements from it
<apeiros_> puts result[0]['lab1'] # e.g.
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<vasilk> Right! Thanks
<vasilk> So, even if I have just one element, I need first [0] and then the field
<apeiros_> sure. ruby doesn't make any guesses about what you might want.
Tasser has quit [Ping timeout: 240 seconds]
slyphon has joined #ruby-lang
jxie has joined #ruby-lang
kvirani has joined #ruby-lang
coryf has joined #ruby-lang
vertroa has quit [Read error: Connection reset by peer]
dhruvasa1ar has quit [Ping timeout: 250 seconds]
vertroa has joined #ruby-lang
ryanf has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
rowanu has joined #ruby-lang
jtoy has joined #ruby-lang
concernedcitizen has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
DEac- has joined #ruby-lang
SiliconDon has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
SiliconDon has quit [Client Quit]
|Vargas| has quit [Quit: ...]
slyphon has quit [Quit: WeeChat 0.3.7]
vasilk has quit [Quit: Leaving]
slyphon has joined #ruby-lang
<slyphon> there doesn't seem to be a clean way of doing the stdlib 'return an Enumerable if no block is given' for #each
<slyphon> unless i'm totally missing something here
neocoin has joined #ruby-lang
jtoy has quit [Quit: jtoy]
bfreeman has joined #ruby-lang
DEac- has quit [Ping timeout: 246 seconds]
deobald_ has quit [Ping timeout: 246 seconds]
rolfb has joined #ruby-lang
rolfb has quit [Client Quit]
<rue> slyphon: return to_enum unless block_given?
<rue> Or whatever, I don’t recall exactly
<slyphon> i figured that out about 45s after hitting enter
<slyphon> :)
<rue> Quack quack
<slyphon> :)
<slyphon> haha
symm- has quit [Ping timeout: 252 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
thone_ has quit [Remote host closed the connection]
brianpWins has quit [Remote host closed the connection]
thone has joined #ruby-lang
solars has quit [Ping timeout: 265 seconds]
hynkle has quit [Quit: Computer has gone to sleep.]
jperry2_ has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
kitallis has joined #ruby-lang
kitallis has quit [Remote host closed the connection]
jperry2_ has quit [Client Quit]
malev has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
malev has joined #ruby-lang
hynkle has joined #ruby-lang
Fretta has joined #ruby-lang
ttilley_off is now known as ttilley
elsifaka has quit [Quit: Leaving]
msaffitz has joined #ruby-lang
Hash_Rocket has quit []
htroyack has joined #ruby-lang
slyphon_ has joined #ruby-lang
slyphon has quit [Disconnected by services]
msaffitz has quit [Quit: Textual IRC Client: www.textualapp.com]
kaspernj has joined #ruby-lang
slyphon has joined #ruby-lang
savage- has joined #ruby-lang
slyphon_ has quit [Ping timeout: 245 seconds]
macmartine has joined #ruby-lang
carloslopes has joined #ruby-lang
htroyack has quit []
dejongge has joined #ruby-lang
tofaffy has quit [Ping timeout: 265 seconds]
tofaffy has joined #ruby-lang
headius has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
perryh_away has quit [Remote host closed the connection]
perryh has joined #ruby-lang
tjadc has quit [Ping timeout: 248 seconds]
enebo has quit [Quit: enebo]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lsegal has joined #ruby-lang
Tasser has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
akira989 has joined #ruby-lang
tofaffy has quit [Changing host]
tofaffy has joined #ruby-lang
gokul has joined #ruby-lang
jtoy has joined #ruby-lang
mrsolo has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
carloslopes has quit [*.net *.split]
bfreeman has quit [*.net *.split]
pkondzior has quit [*.net *.split]
nertzy has quit [*.net *.split]
setmeaway2 has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
alindeman has quit [*.net *.split]
Skif has quit [*.net *.split]
mortice has quit [*.net *.split]
sei has quit [*.net *.split]
Weems has quit [*.net *.split]
mahlon has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
jaimef has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
meise has quit [*.net *.split]
thorncp has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
tris has quit [*.net *.split]
mitchty_ has quit [*.net *.split]
bnagy has quit [*.net *.split]
vbatts has quit [*.net *.split]
anacond109 has quit [*.net *.split]
freedrull has quit [*.net *.split]
joast has joined #ruby-lang
agilob has quit [Ping timeout: 252 seconds]
coryf_ has joined #ruby-lang
gokul has quit [Ping timeout: 248 seconds]
coryf has quit [Read error: Connection reset by peer]
agilob has joined #ruby-lang
ryanf has quit [Quit: leaving]
solars has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
cha1tanya has joined #ruby-lang
perryh is now known as perryh_away
ezkl has joined #ruby-lang
gokul has joined #ruby-lang
solars has quit [Ping timeout: 250 seconds]
butchanton has joined #ruby-lang
coryf has joined #ruby-lang
coryf_ has quit [Ping timeout: 265 seconds]
gokul has quit [Ping timeout: 252 seconds]
gregmoreno has quit [Remote host closed the connection]
tofaffy has quit [Ping timeout: 250 seconds]
gregmoreno has joined #ruby-lang
DEac- has joined #ruby-lang
alindeman has joined #ruby-lang
carloslopes has joined #ruby-lang
nertzy has joined #ruby-lang
bfreeman has joined #ruby-lang
pkondzior has joined #ruby-lang
setmeaway2 has joined #ruby-lang
Skif has joined #ruby-lang
mortice has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
Weems has joined #ruby-lang
sei has joined #ruby-lang
mahlon has joined #ruby-lang
jaimef has joined #ruby-lang
SubSpawn has joined #ruby-lang
meise has joined #ruby-lang
bnagy has joined #ruby-lang
freedrull has joined #ruby-lang
threedaymonk has joined #ruby-lang
mitchty_ has joined #ruby-lang
vbatts has joined #ruby-lang
thorncp has joined #ruby-lang
tris has joined #ruby-lang
anacond109 has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
tris has quit [Max SendQ exceeded]
apeiros_ has joined #ruby-lang
alindeman is now known as Guest30282
zmack has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
jastix has joined #ruby-lang
banisterfiend has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
neocoin has quit [Remote host closed the connection]
dc5ala has quit [Quit: Ex-Chat]
ruurd has joined #ruby-lang
solars has joined #ruby-lang
mrsolo has joined #ruby-lang
tris has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
tofaffy has joined #ruby-lang
ezkl has quit [Quit: Computer has gone to sleep.]
vertroa has quit []
mrsolo has quit [Quit: This computer has gone to sleep]
tofaffy has quit [Changing host]
tofaffy has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
tris has quit [Excess Flood]
mrsolo has joined #ruby-lang
kaspernj has quit [Ping timeout: 265 seconds]
tris has joined #ruby-lang
Guest30282 has quit [Quit: /quit]
fgomez has joined #ruby-lang
alindeman_ has joined #ruby-lang
robin850 has quit [Quit: Konversation terminated!]
enebo has joined #ruby-lang
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rhodee_ has joined #ruby-lang
solars has joined #ruby-lang
rhodee has quit [Read error: Operation timed out]
bryancp has joined #ruby-lang
cha1tanya has quit [Quit: आलोच..]
ezkl has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
eschwartz has joined #ruby-lang
DEac- has joined #ruby-lang
Skif has quit [Ping timeout: 240 seconds]
fayimora has joined #ruby-lang
krainboltgreene has joined #ruby-lang
JohnBat26 has joined #ruby-lang
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby-lang
htroyack has joined #ruby-lang
eschwartz has quit [Remote host closed the connection]
Skif has joined #ruby-lang
ryanf has joined #ruby-lang
slyphon has joined #ruby-lang
future_chimp has quit [Quit: Leaving]
dhruvasagar has joined #ruby-lang
qpingu has joined #ruby-lang
blazes816 has joined #ruby-lang
htroyack has quit [Excess Flood]
dejongge1 has joined #ruby-lang
blazes816 has left #ruby-lang ["Leaving"]
pemeon has quit [Ping timeout: 246 seconds]
akira989 has quit [Remote host closed the connection]
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
akira989 has joined #ruby-lang
sc0 has quit [Remote host closed the connection]
towski has joined #ruby-lang
fayimora has quit [Ping timeout: 248 seconds]
mweichert has joined #ruby-lang
<mweichert> hi guys, is Kernel#system or backtick a blocking operation?
<mweichert> I'm having an issue executing sequential shell commands from Ruby - the first command seems to be returning execution to the ruby script too soon, therefore causing the next shell command to be executed (which is causing tumbling effects for me)
anjen has joined #ruby-lang
fayimora has joined #ruby-lang
<Mon_Ouie> Yes. IO.popen doesn't block and still allows you to get the output if needed
fayimora has quit [Client Quit]
anjen has quit [Quit: anjen]
bfreeman has quit [Ping timeout: 240 seconds]
neocoin has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 248 seconds]
mistym is now known as mistym_meeting
voker57 has quit [Read error: Connection reset by peer]
Berglund has quit [Quit: Computer died.]
franckverrot has joined #ruby-lang
anekos has quit [Ping timeout: 260 seconds]
anekos has joined #ruby-lang
bfreeman has joined #ruby-lang
rhodee_ has left #ruby-lang [#ruby-lang]
bryancp has quit [Remote host closed the connection]
cynosure has quit [Ping timeout: 252 seconds]
cynosure has joined #ruby-lang
jastix has quit [Quit: Leaving]
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
pemeon has joined #ruby-lang
workmad3 has joined #ruby-lang
mistym_meeting is now known as mistym
<ryanf> Mon_Ouie: it sounds like he's saying he wants it to block and it isn't
<ryanf> but yeah, backticks and system should both block
<ryanf> is it possible that your command is failing to execute properly?
vertroa has joined #ruby-lang
mortice has quit [Remote host closed the connection]
matled- has joined #ruby-lang
tonni has joined #ruby-lang
flori_ has joined #ruby-lang
levicole_ has joined #ruby-lang
andrewhl has quit [*.net *.split]
franckverrot has quit [*.net *.split]
Spaceghostc2c has quit [*.net *.split]
jarib has quit [*.net *.split]
Axsuul has quit [*.net *.split]
matled has quit [*.net *.split]
Tearan has quit [*.net *.split]
tonni_ has quit [*.net *.split]
snk has quit [*.net *.split]
flebel has quit [*.net *.split]
levicole has quit [*.net *.split]
knu has quit [*.net *.split]
musl has quit [*.net *.split]
flori has quit [*.net *.split]
_ko1 has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
FiXato has quit [*.net *.split]
ged has quit [*.net *.split]
matled- is now known as matled
snk has joined #ruby-lang
FiXato has joined #ruby-lang
jarib_ has joined #ruby-lang
andrewhl has joined #ruby-lang
Axsuul has joined #ruby-lang
Kuukunen has joined #ruby-lang
Tearan has joined #ruby-lang
franckverrot has joined #ruby-lang
knu has joined #ruby-lang
Spaceghostc2c has joined #ruby-lang
Spaceghostc2c has quit [Changing host]
Spaceghostc2c has joined #ruby-lang
flebel has joined #ruby-lang
havenn has joined #ruby-lang
musl has joined #ruby-lang
ged has joined #ruby-lang
krainboltgreene has quit [Quit: krainboltgreene]
mdickens has joined #ruby-lang
rowanu has quit [Remote host closed the connection]
mweichert has quit [Quit: mweichert]
krainboltgreene has joined #ruby-lang
Austin__ has left #ruby-lang [#ruby-lang]
qpingu has quit [Remote host closed the connection]
qpingu has joined #ruby-lang
petercooper has joined #ruby-lang
mistofvongola has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
dhruvasagar has quit [Ping timeout: 248 seconds]
Asher has quit [Ping timeout: 248 seconds]
bryancp has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
krainboltgreene has quit [Quit: krainboltgreene]
Jay_Levitt has joined #ruby-lang
hynkle has quit []
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
sepp2k has joined #ruby-lang
erics has joined #ruby-lang
tbuehlmann has quit []
Skif has quit [Ping timeout: 240 seconds]
mdickens has quit [Ping timeout: 248 seconds]
tjadc has joined #ruby-lang
mdickens has joined #ruby-lang
beiter has quit [Quit: beiter]
workmad3 has joined #ruby-lang
dejongge1 has quit [Quit: Leaving.]
tjadc has quit [Ping timeout: 244 seconds]
tjadc has joined #ruby-lang
moos3_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
<moos3_> is their away to force the mysql ruby gem not to attemp a socket connection when trying to connect remotely
fgomez has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
<drbrain> moos3_: I don't understand how it could connect without a socket
<moos3_> socket connections are only for lcoalhost
<moos3_> when your trying to connect to a remote server you dont have the socket locally
<drbrain> you mean, "UNIX socket connections"
<drbrain> I would think that by giving a host and port it would create a TCP socket to the remote machine like you asked… I've not used mysql in ages though, so I'm not sure
<drbrain> somebody else probably knows
<moos3_> some reason my @varname isn't getting accessible from another method
<drbrain> moos3_: is it in a different object?
<moos3_> no same object
<drbrain> can you paste the code?
<moos3_> somereason @database isn't accessible in my get_data method
<drbrain> get_data is a method on a different object
<drbrain> remove the self. from these methods
<drbrain> and self.class. from their call sites
<moos3_> why ?
<moos3_> they all belong to the class ShibAutomator and shoulnd't be accessiable from anything but that class
<moos3_> hence the self
mdickens has quit [Read error: Connection reset by peer]
<drbrain> if they shouldn't be callable elsewhere you can make them private (or just not call them)
<drbrain> def self.foo() end does not do this
<drbrain> it defines the method on the class, not on instances of the class
mdickens has joined #ruby-lang
<davidbalbert> anyone know if this comment is still valid: https://github.com/ruby/ruby/blob/trunk/vm_core.h#L195-196 ?
<davidbalbert> it says iseq->local_size is sizeof(vars) + 1 for method and class frames but sizeof(vars) for block frames
<davidbalbert> it looks like block frames are now also sizeof(vars) + 1, but i want to be sure
<drbrain> davidbalbert: if self is a local to the VM, that seems sane
<drbrain> davidbalbert: not sure
<moos3_> drbrain ok
<davidbalbert> drbrain: i'm not sure i followed the first thing you said. Which option seems sane?
solars has quit [Ping timeout: 265 seconds]
<drbrain> davidbalbert: if you've found evidence that it's always sizeof(vars) + 1 it may be out of date
<drbrain> I made an uneducated guess, so you can ignore my input
<davidbalbert> got it
<zenspider> apeiros_: what'd I do?
<drbrain> davidbalbert: _ko1 might know, you can sometimes find him in #ruby-core
<drbrain> I think he usually shows up in another hour or two
moos3_ has quit [Quit: Computer has gone to sleep.]
<cored> hello guys
<cored> I'm having a dependency problem
<cored> one of the gem on my Gemfile is using multi_json 1.0.3
<cored> another one is using 1.4.x
<cored> is there a way for me to solve this?
<cored> using bundler
<drbrain> there's a way to solve it using the project's issue tracker, but it's pretty slow
<cored> :-)
<cored> the other way?
headius has quit [Quit: headius]
dmwuw_ has joined #ruby-lang
<drbrain> file an issue against the gem using 1.0.3 and say "fix your dependency to X, I ran the tests and it's OK"
<drbrain> (of course, you should run the tests and ensure it's OK)
bryancp has quit [Remote host closed the connection]
kristofferrr has quit [Quit: ❤]
<cored> ok
dmwuw has quit [Ping timeout: 246 seconds]
mssola has quit [Quit: Konversation terminated!]
malev has quit [Remote host closed the connection]
<drbrain> cored: if one says "= 1.0.3" and the other doesn't have a range that's compatible there's no way to make them work together without modifying one or the other
<cored> drbrain: I see
ttilley is now known as ttilley_off
<drbrain> bringing the 1.0.3 version into the light (if there's now a 1.4 series) is probably the best way
<cored> drbrain: ok, I'll try that
<davidbalbert> drbrain: looked at it more, almost positive it's out of date. is this the kind of thing it's worth submitting a patch for?
<drbrain> davidbalbert: absolutely, I hate it when documentation is obviously wrong
<davidbalbert> k, cool. i'll do that.
fromhet has joined #ruby-lang
<davidbalbert> close to done with a draft of the RubyVM::InstructionSequence docs as well
<davidbalbert> oh actually
<davidbalbert> Is there a way to get rdoc to treat a getter and a setter function as an attribute in C code?
slyphon has quit [Quit: WeeChat 0.3.7]
<davidbalbert> I tried Document-attr, but I wasn't able to get it to take
<drbrain> davidbalbert: I don't think so… I think rdoc decides they're methods due to rb_define_method
<davidbalbert> ok. thanks.
headius has joined #ruby-lang
franckverrot has quit [Read error: Operation timed out]
aef has quit [Read error: Operation timed out]
jmeeuwen has quit [Remote host closed the connection]
valeri_ufo has quit [Read error: Connection reset by peer]
jmeeuwen has joined #ruby-lang
valeri_ufo has joined #ruby-lang
aef has joined #ruby-lang
mistym has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
franckverrot has joined #ruby-lang
yxhuvud has quit [Ping timeout: 246 seconds]
pemeon has quit [Remote host closed the connection]
coryf has quit [Remote host closed the connection]
malev has joined #ruby-lang
<apeiros_> zenspider: you set the channel to require registration in order to talk
mdickens has quit [Ping timeout: 248 seconds]
<apeiros_> I didn't know how to check that. had to fiddle & google a bit
bglusman has quit [Remote host closed the connection]
<zenspider> ah. kk. yeah. thanks. I was confused.
andrewhl has quit [Remote host closed the connection]
sailias has joined #ruby-lang
Asher has joined #ruby-lang
andrewhl has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 250 seconds]
levicole_ is now known as levicole
malev has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
Leeky is now known as Leeky_afk
Asher has joined #ruby-lang
banisterfiend has joined #ruby-lang
htroyack has joined #ruby-lang
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
Asher1 has joined #ruby-lang
Asher has quit [Ping timeout: 265 seconds]
sailias has quit [Ping timeout: 265 seconds]
Jade has joined #ruby-lang
dv310p3r has quit [Ping timeout: 246 seconds]
<jtoy> how could I do cat file | ruby -rjson I_DONT_KNOW_THIS_PART to read the file and just do JSON.parse on the input? or is this too much for a single line?
<drbrain> JSON.parse ARGF.read should be sufficient
brianpWins has quit [Quit: brianpWins]
<jtoy> drbrain: will that read in a line at a time?
<drbrain> jtoy: no… you can't read JSON that way
<jtoy> drbrain: I have a json object per line
<jtoy> sorry, forgot to mention that
<drbrain> then use ARGF.each_line
stardiviner has joined #ruby-lang
<erikh> ARGF rules.
gareth_ has joined #ruby-lang
Asher1 has quit [Ping timeout: 244 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
GarethAdams has joined #ruby-lang
GarethAdams has quit [Client Quit]
<jtoy> erikh: yes, I've been using it, could be made a little better thoug
<jtoy> drbrain: thx
GarethAdams has joined #ruby-lang
<petercooper> intrigued why it's from the command line though
<petercooper> you're parsing it but then showing what?
sockmonk has quit [Ping timeout: 240 seconds]
<petercooper> for example: cat json.json | ruby -rjson -ne "p JSON.load(\$_)"
<petercooper> but it's not inherently useful
<drbrain> petercooper: I was sure this question would be asked eventually :D
<injekt> your json should all be on one line
<erikh> I love you, injekt
<injekt> <3
<GarethAdams> ooh, it's petercooper
<petercooper> well yeah, it should all be a giant array, hash or whatever.. so it sounds weird to start with ;-)
<petercooper> GARETH!
<GarethAdams> yeah, I hang out here, like 4 years ago (and since last weekend)
<drbrain> I could understand a stream of JSON objects one per line
<drbrain> it's not the usual way these things are done, but I could see it happening
<injekt> drbrain: yeah sure, but I'd still want to read it as a collection before traversing it
<petercooper> To be fair, I can see almost anything happening. I wrote a Perl library to use XML files as a database once because I didn't want to learn SQL.
<injekt> reading+parsing
dejongge has quit [Ping timeout: 246 seconds]
<injekt> Don't want to learn SQL? Learn Perl and XML instead kids!
<petercooper> To be fair it was 1999 and many people had boners for XML.
<erikh> what
<petercooper> The late 90s equivalent to REST *ducks*
<erikh> people were doing rest before REST the culture/spec
<rue> Mm, XML databases
<rue> erikh: Not before the spec, not really
<erikh> meh
<erikh> not in full spec mode, but close enough for horseshoes
<rue> That is—whether by accident or design—pretty much exactly how they wanted HTTP to turn out
<injekt> heh
<rue> jtoy: Shouldn’t that be an array of objects, then?
<injekt> uh oh
<rue> Would make it valid, and parseable.
<jtoy> rue, no , i am just trying to make serializable json
<jtoy> rue: although I think i ran into an issue with new lines
<injekt> your json isn't parsable already?
<injekt> so it's not json?
<rue> …JSON *is* a serialization format?
* erikh cries
<petercooper> you don't mean streamable?
<erikh> use Marshal.
<jtoy> i meant streamable
<jtoy> but i don't need it in an array
<petercooper> because twitter's streaming api works like that, I believe
<petercooper> just pumps out random, complete bits of JSON
tjadc has quit [Ping timeout: 265 seconds]
<GarethAdams> it's not random, that's just how people talk these days
<petercooper> hehe
<injekt> so use JSON.parse on each line of streaming
<injekt> done?
<injekt> profit
<erikh> depends on how much you're streaming
<rue> Yeah, that’s an ad-hoc protocolless protocol, I suppose
<petercooper> a protonul
<zrail> petercooper: twitter pumps out \r delimited records
<rue> There we go
<erikh> protoprotocol
<zrail> each of which is a complete json doc
<injekt> :D
<petercooper> write the parser for your protonul in subjective C and you're ready to roll
<erikh> ha, C is already subjective enough
<injekt> no subjective c, it's a new dialect like objective c, just more subjective
<injekt> my head hurts
calm has quit [Quit: Lost terminal]
<petercooper> someone on Twitter said Subjective C is just JavaScript because it depends on the browser's mood as to how/if it'll work
<erikh> injekt: INCEPTION
<injekt> just make sure you add those semi colons
<injekt> amirite
<petercooper> if you want Opera to support it
outoftime has quit [Quit: Leaving]
<erikh> fuck that, just use void * everywhere.
<injekt> :D
<petercooper> did you see that story today?
<GarethAdams> erikh: subception?
<injekt> petercooper: yes
<petercooper> twitter breaking on Opera because twitter's JS uses the comma separator everywhere.. oh man
<petercooper> s/separator/operator
<injekt> interesting that it's only on like the 1090th comma (or something)
<injekt> and by interesting, I think I mean stupid
<petercooper> the 0.01% of people affected are outraged
<injekt> zing
<petercooper> the blame is being put on a tool called 'uglify'
<GarethAdams> doesn't jquery use uglify? or did I totally misremember that?
<petercooper> which is kinda like blaming rosie o'donnell's makeup department for making her look bad
WillMarshall has joined #ruby-lang
<injekt> she's pretty on the inside
<drbrain> when my pure-ruby gems break on JRuby or Rubinius I usually blame the implementation
havenn has quit [Remote host closed the connection]
<injekt> drbrain: what if it breaks in both? you blame them both?
<petercooper> in soviet russia, you break rubinius
seanstickle has joined #ruby-lang
<GarethAdams> yeah, jquery.min = Uglify - http://bugs.jquery.com/ticket/7973
<drbrain> injekt: I don't think that's happened, but usually CRuby is correct
htroyack has left #ruby-lang [#ruby-lang]
<petercooper> do not let brixen hear you say that
carloslopes has quit [Quit: Leaving.]
<drbrain> I get more bug reports due to JRuby not being quite correct than Rubinius
<headius> that's because more people use JRuby
<drbrain> but usually it's on weird things like "Tempfile#unlink doesn't work"
<headius> :)
<petercooper> +1 headius
<drbrain> for that one I got headius to make unlink a no-op like Windows
<drbrain> headius: it's true!
Asher has joined #ruby-lang
<headius> drbrain: after the change I made for that one, I took a step back and made it actually delete if the file is already closed and warn in the no-op case
<headius> felt a bit better that way
<drbrain> headius: sure
slyphon has joined #ruby-lang
<jtoy> if i am putting a json object per line to file, is that valid? I found that doing object.to_json has new lines in it sometimes which breaks it
gareth_ has quit [Quit: Linkinus - http://linkinus.com]
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
<jaimef> does exuberant-ctags support ruby?>
apeiros_ has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
Asher has quit [Ping timeout: 265 seconds]
<drbrain> jaimef: yes
headius has quit [Quit: headius]
<drbrain> jtoy: if the newlines are encoded it's fine
<jtoy> drbrain: i shouldn't expect object.to_json to encode? i thought that would encode, but it doesnt
<drbrain> jtoy: I'm not sure
<drbrain> it may come in encoded over the wire
srbartlett has joined #ruby-lang
malev has joined #ruby-lang
<rue> Or you could use a different record separator
tofaffy has quit [Quit: ZNC - http://znc.sourceforge.net]
fromhet has quit [Quit: fromhet]
butchanton has quit [Quit: Leaving.]
<jtoy> true, i would really like to use \n though because then i can use each_line to process objects
<rue> Just provide a different separator