<Zyclops>
array.map {|hash| hash.keys.map(&:to_s).sort.map {|key| [key, hash[key]]} } << this does though
solars has quit [Read error: Operation timed out]
solars has joined #ruby-lang
lopin has joined #ruby-lang
seoaqua has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tomzx has quit [Ping timeout: 252 seconds]
symm- has joined #ruby-lang
tRAS has quit [Ping timeout: 244 seconds]
msaffitz has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby-lang
tRAS has joined #ruby-lang
bojicas has joined #ruby-lang
gamafranco has joined #ruby-lang
vesan has joined #ruby-lang
igotnolegs has quit [Quit: Computer has gone to sleep.]
andrew_ has quit [Remote host closed the connection]
nofxxxx has left #ruby-lang [#ruby-lang]
solars has quit [Read error: Operation timed out]
heftig has joined #ruby-lang
solars has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 246 seconds]
francisfish has joined #ruby-lang
heftig has quit [Ping timeout: 260 seconds]
heftig has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
sush24 has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
Banistergalaxy has joined #ruby-lang
heftig has quit [Quit: leaving]
d3vic3 has joined #ruby-lang
sush24 has quit [Ping timeout: 244 seconds]
igaiga has joined #ruby-lang
<Zyclops>
are udp packets using the ruby server usually split up into 512 byte packages?
tekin has joined #ruby-lang
Zyclops has left #ruby-lang [#ruby-lang]
peppyheppy has quit [Quit: peppyheppy]
igaiga_ has joined #ruby-lang
igaiga has quit [Ping timeout: 244 seconds]
heftig has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
fserb has joined #ruby-lang
Z33K|Lux has quit [Ping timeout: 252 seconds]
adambeynon has joined #ruby-lang
MrOrdinaire has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
futurechimp has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
banister has joined #ruby-lang
banister has left #ruby-lang [#ruby-lang]
kaiwren has joined #ruby-lang
MrOrdinaire has left #ruby-lang [#ruby-lang]
mssola has joined #ruby-lang
cdt has quit [Ping timeout: 246 seconds]
jxie has quit [Ping timeout: 245 seconds]
jxie has joined #ruby-lang
d3vic3 has quit [Ping timeout: 245 seconds]
toretore has joined #ruby-lang
d3vic3 has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
banisterfiend has joined #ruby-lang
<banisterfiend>
hi
woollyams has joined #ruby-lang
workmad3 has joined #ruby-lang
kain has quit [Quit: Sto andando via]
bojicas_ has joined #ruby-lang
bojicas has quit [Read error: Connection reset by peer]
krz has joined #ruby-lang
krz has quit [Client Quit]
krz has joined #ruby-lang
Kuukunen has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
iosctr has quit [Quit: ...]
sora_h is now known as s0ra_h
nevynxxx has joined #ruby-lang
Kuukunen has joined #ruby-lang
cdt has joined #ruby-lang
fserb has quit [Quit: ttyl]
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
<andrewvos>
hi!
diegoviola has joined #ruby-lang
diegovio1a has joined #ruby-lang
diegoviola has quit [Ping timeout: 244 seconds]
tbuehlmann has joined #ruby-lang
Eising has joined #ruby-lang
<Eising>
Hey there. I have trouble spawning processes from Ruby. I'm spawning a shellscript with IO.popen, and that shell script has a "nohup command &" so should exit rather fast (it does so when I start it from shell). However, when I launch it from within my script, I can see from the ps output that the shellscript goes defunct and the ruby proccess goes into the wait loop with the actual thing being called from within the shell script that was supp
<andrewvos>
Eising: Maybe send an enter press or something
Criztian has joined #ruby-lang
<andrewvos>
send a \n?
<Eising>
andrewvos: ugh, you think that is necessary?
<andrewvos>
Eising: Well, yes I do.
<andrewvos>
Eising: Just a guess though.
<heftig>
Eising: see IO#close
<heftig>
do you need to read output from whatever that shellscript forks?
diegovio1a is now known as diegoviola
<heftig>
why are you using popen and not system?
<Eising>
heftig: I'm reading the output from it, yes, but not from what the shellscript forks
<Eising>
It's basically a quick wrapper that does a few checks, forks, then writes something along the lines of "process started succesfully" if it did
<Eising>
I guess I /could/ actually just fork the ruby process, but I was unsure how that would work with Sinatra, phusion and all that jazz
<heftig>
can you do those checks in ruby?
<Eising>
easily
<heftig>
checks;...; system("process &")
<heftig>
popen is primarily for piping data from/to another process (or talking with an interactive process)
<Eising>
right
<heftig>
it won't do a wait() and will keep the pipes open until you close the object
<heftig>
which is why you end up with a defunct process (zombie)
<Eising>
ah, makes sense
dhruvasagar has quit [Ping timeout: 246 seconds]
<Eising>
lemme do a quick test
igaiga_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
<heftig>
system("process &") will do a double fork, so the process gets reparented to pid1
<heftig>
so it's fire-and-forget
<Eising>
for now, it will have to do. If I had unlimited time, I have sinatra serve the output line by line to the client, but I need this stuff done by Friday. Hooray for deadlines ;)
igaiga has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
b1rkh0ff has joined #ruby-lang
srbaker has quit [Ping timeout: 256 seconds]
srbaker has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
vesan has joined #ruby-lang
<Eising>
heftig: it doesn't seem to respect my & here. I'm going to try with a real fork
<Eising>
and to be honest, I think it would work in general ruby. The problem here is that I run it through sinatra
hebz0rl has quit [Read error: Connection reset by peer]
iosctr has joined #ruby-lang
<heftig>
Eising: is this on windows?
<Eising>
nope
<Eising>
linux. But it's old ruby 1.8.7
rushed has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
TvL2386 has joined #ruby-lang
seoaqua has quit [Quit: Leaving]
bojicas_ has quit [Remote host closed the connection]
<Mon_Ouie>
You can also fork { exec(…) }
<Mon_Ouie>
(Plus you get the PID if needed)
gamafranco has left #ruby-lang [#ruby-lang]
<Eising>
Mon_Ouie: thing is, since this is being served to a webserver, it needs to daemonize to work, I think
sush24 has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
<Eising>
actually, I need to switch to ruby1.9 and see if Process.spawn does the trick... :/
<Mon_Ouie>
I don't really get your point. fork creates a new process, exec replaces the current process with a new one by executing a command.
<Mon_Ouie>
But you should switch to 1.9 anyway
futurechimp has quit [Read error: Operation timed out]
ramonmaruko has joined #ruby-lang
<Eising>
Mon_Ouie: well, I figured the problem comes from Sinatra, since it waits for the child process to finish before it actually serves me anything
<Eising>
does that make sense?
<Mon_Ouie>
How would Sinatra even know you created a new process?
<Eising>
well, it doesn't, of course
<Eising>
hmm
<Eising>
I'm confused
fgomez has joined #ruby-lang
<Mon_Ouie>
If Sinatra doesn't know you created a process, it can't wait for it to end
<Mon_Ouie>
Doesn't wait 10 seconds before serving the page here
<Eising>
hmm
<Eising>
Mon_Ouie: allow me to hit myself with something hard then
<Eising>
the problem was never sinatra, and it works just as it is supposed to do
<Eising>
problem was I was running it through shotgun, that reloads ruby with every request, which is, to my understanding, impossible if a subprocess runs
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 265 seconds]
<Eising>
or it may be because shotgun forks
dhruvasagar has joined #ruby-lang
<Eising>
heftig, Mon_Ouie, thank you for your help.
futurechimp has quit [Ping timeout: 246 seconds]
futurechimp has joined #ruby-lang
cantonic has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
igaiga has joined #ruby-lang
youngin has quit [Read error: No route to host]
ChloeD_ has left #ruby-lang [#ruby-lang]
tomb_ has joined #ruby-lang
youngin has joined #ruby-lang
bryancp has joined #ruby-lang
rohit has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
Axsuul has quit [Ping timeout: 265 seconds]
jlawler has quit [Remote host closed the connection]
rohit has quit [Read error: Connection reset by peer]
cyndis has quit [Ping timeout: 250 seconds]
cyndis has joined #ruby-lang
flujan has joined #ruby-lang
<flujan>
hi guys. I am using mail to send mail messages in ruby
<flujan>
I need to connect to a Exchange server, and it is not working.
<flujan>
How can I proceed? Do you know if mail support tis?
bryancp has joined #ruby-lang
<Tasser>
flujan, you could use the exchange server as forwarder
graspee has left #ruby-lang [#ruby-lang]
tRAS has quit [Ping timeout: 265 seconds]
cyndis has quit [Ping timeout: 250 seconds]
<awwaiid>
flujan, the exchange server at my work had to have smtp explicitly enabled to easily integrate
TvL2386 has quit [Quit: Ex-Chat]
<flujan>
awwaiid: how so? I need to pass the need to the network admin.
<awwaiid>
flujan: I don't know the specifics, unfortunately, as my own network admin set it up for us
ukwiz has joined #ruby-lang
cyndis has joined #ruby-lang
tRAS has joined #ruby-lang
postmodern has quit [Quit: Leaving]
<ukwiz>
What is the difference between this channel and the ruby channel?
<rue>
This is the Ruby channel.
<kalleth>
The other ruby channel is also the Ruby channel, though.
<Mon_Ouie>
This is the official one
<kalleth>
and also has x2 of the users :P
willdrew has joined #ruby-lang
<kalleth>
i'm sensing internet politics
<kalleth>
honestly
<ukwiz>
I suppose the question should really ask is: which is the better channel for a long time programmer to use when learning ruby
woollyams has joined #ruby-lang
<Mon_Ouie>
You don't have to choose
<kalleth>
ukwiz: just idle in both
<kalleth>
like me
<kalleth>
i'm oen of the cool kids
<flujan>
awwaiid: I am stuck… The guy is demanding which configuration it need to perform…
gouthamvel has joined #ruby-lang
replore has joined #ruby-lang
mark_locklear has joined #ruby-lang
<awwaiid>
flujan: google says..... that I don't know. But it sounds like it might be a 'send connector'. But I could be leading you astray for all I know... maybe the problem is elsewhere for you
<chris2>
anyone familiar with amsterdam?
<rue>
It’s a city in the Netherlands
<chris2>
oh really? :P
<ddfreyne>
chris2: a bit, yeah
<ddfreyne>
why are you asking?
<chris2>
how long does it take from the airport to the city?
<ddfreyne>
it's very close. can't say for sure, but maybe 15 minutes by train?
<chris2>
oh, great
<chris2>
thats fine
<chris2>
i arrive by 7pm and should be on the boat by 8pm
tenderlove has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
fserb has joined #ruby-lang
dhruvasagar has joined #ruby-lang
fserb has quit [Client Quit]
cmaxw has quit [Quit: cmaxw]
ridders24 has joined #ruby-lang
replore has quit [Remote host closed the connection]
workmad3_ has joined #ruby-lang
Codif has joined #ruby-lang
<erikh>
sockmonk: the big changes were a slightly cleaner source tree, performance and threading
<erikh>
to be 10k ft view
macmartine has quit [Quit: macmartine]
<sockmonk>
TBH, most of my grumpiness is about having my sort-of manager decide now's a great time to upgrade, in the middle of a code release, because "nothing major changed"
<sockmonk>
that and still smarting from the pain of 1.8.7 -> 1.9.2
<erikh>
we're doing it because we're aggressively hitting limits with 1.9.2
fayimora has joined #ruby-lang
<erikh>
you'll see nothing of note with 1.9.3 changes other than it's a fuckton faster
<erikh>
it's a good move.
<sockmonk>
in the long run, sure. but it does require updating code to keep up with api changes
<sockmonk>
and we aren't seeing actual performance problems with 1.9.2, just the possibility of performance problems someday
<erikh>
there are no high level API changes that I know of
<erikh>
C extensions? yes.
workmad3 has quit [Ping timeout: 246 seconds]
<erikh>
ruby-debug, for example, will probably not work with 1.9.3
workmad3_ has quit [Ping timeout: 252 seconds]
<erikh>
but ruby-debug gets its hooks very deep
TheDracle has quit [Read error: Operation timed out]
dhruvasagar has quit [Quit: Lost terminal]
<apeiros_>
sockmonk: hm, the move from 1.8 to 1.9 was mostly painless. only hurt was encodings.
<erikh>
he's talking about 1.9.2 -> 1.9.3
<erikh>
basically an interpreter upgrade.
<sockmonk>
net/http seems to have changed.
<erikh>
well certain packages have been upgraded
<apeiros_>
erikh: not just - I was refering to his "still smarting from the pain of 1.8.7 -> 1.9.2"
TheDracle has joined #ruby-lang
<erikh>
aye.
<erikh>
1.9.3 is worth it
<erikh>
really.
<erikh>
IMO it's the best release of ruby I've ever used.
<sockmonk>
for some still unknown value of "it"
wasnotrice is now known as zz_wasnotrice
akahn has joined #ruby-lang
Codif has quit [Remote host closed the connection]
<mistergibson>
in 1.9.3 : does it deallocate heaps with only free slots in them?
JohnBat26 has joined #ruby-lang
peppyheppy has quit [Quit: peppyheppy]
Asher has joined #ruby-lang
harukomoto has quit [Ping timeout: 256 seconds]
alindeman has quit [Ping timeout: 240 seconds]
Guest62484 has left #ruby-lang [#ruby-lang]
steez has joined #ruby-lang
arooni-mobile__ has quit [Quit: Leaving]
arooni-mobile has quit [Quit: Leaving]
fayimora has quit [Ping timeout: 264 seconds]
Cykey has joined #ruby-lang
arooni-mobile has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
boringusername has joined #ruby-lang
cmaxw has joined #ruby-lang
riffraff has quit [Quit: Leaving]
gouthamvel has quit [Ping timeout: 246 seconds]
zmack has joined #ruby-lang
drollwit has joined #ruby-lang
bojicas has joined #ruby-lang
freedrull has left #ruby-lang [#ruby-lang]
freedrull has joined #ruby-lang
<freedrull>
is there something like NUM2INT for c extensions that will convert the value to NULL if it is nil? or i guess i could just do that myself...
anjen has joined #ruby-lang
drollwit has quit [Ping timeout: 252 seconds]
Swimming_Bird has quit [Ping timeout: 244 seconds]
bryancp has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
freedrull has left #ruby-lang [#ruby-lang]
dv310p3r has quit [Ping timeout: 246 seconds]
sspiff has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby-lang
anjen has quit [Quit: anjen]
tenderlove has joined #ruby-lang
dalekurt has joined #ruby-lang
stamina has quit [Quit: Lost terminal]
mark_locklear has quit [Remote host closed the connection]
hakunin has joined #ruby-lang
sspiff has joined #ruby-lang
enebo has quit [Quit: enebo]
cmaxw has quit [Quit: cmaxw]
bojicas_ has joined #ruby-lang
drollwit has joined #ruby-lang
fserb has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
bojicas__ has joined #ruby-lang
bojicas has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 246 seconds]
fserb has quit [Client Quit]
francisfish has joined #ruby-lang
jmartirano has joined #ruby-lang
sspiff has quit [Ping timeout: 252 seconds]
<jmartirano>
Anyone have experience restoring the system ruby on osx?
<jmartirano>
I've tried an upgrade of xcode which restored Ruby.framework however there are some problems with it
<jmartirano>
for example: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -e 'p require "ostruct"'
<jmartirano>
from -e:1
<jmartirano>
-e:1:in `require': no such file to load -- ostruct (LoadError)
bojicas_ has quit [Ping timeout: 252 seconds]
fayimora has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Remote host closed the connection]
tomb__ has joined #ruby-lang
<drbrain>
jmartirano: sounds like you didn't restore the standard library
<jmartirano>
stdlib is there but not all of it apparently
<jmartirano>
should an xcode installation include a full install of the standard lib?
arooni-mobile has joined #ruby-lang
<Tasser>
jmartirano, #mac probably
<jmartirano>
ok im going to uninstall xcode and reinstall, but seems like a desperate move
cdt has joined #ruby-lang
willdrew has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
dv310p3r has joined #ruby-lang
cdt has quit [Ping timeout: 246 seconds]
cirwin has joined #ruby-lang
fserb has joined #ruby-lang
<arooni-mobile>
if i try to pass a @instance_var that hasnt been set yet... will its value just be nil?
<cirwin>
arooni-mobile: yup
<arooni-mobile>
cirwin, but ruby will allow me to pass that var that hasnt been declared or initialized before?
<cirwin>
arooni-mobile: yup
<arooni-mobile>
thanks
tenderlo_ has joined #ruby-lang
<cirwin>
doesn't work for @@class_vars, but you never want to use them anyway, so that's fine
bojicas__ has quit [Remote host closed the connection]
S1kx has quit [Ping timeout: 250 seconds]
tenderlove has quit [Ping timeout: 272 seconds]
hakunin has quit [Read error: Connection reset by peer]
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
hakunin has joined #ruby-lang
horseman has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
dejongge has joined #ruby-lang
horseman has left #ruby-lang [#ruby-lang]
banisterfiend is now known as asdfasdfas
banisterfiend has joined #ruby-lang
<banisterfiend>
phew
asdfasdfas has quit [Quit: Page closed]
yxhuvud has quit [Ping timeout: 244 seconds]
jperry2 has quit [Ping timeout: 244 seconds]
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
freedrull has joined #ruby-lang
msaffitz has joined #ruby-lang
<andrewvos>
Someone play Diablo 3 with me!
<banisterfiend>
andrewvos: you playing on mac or pc?
<apeiros_>
andrewvos: damit!
<apeiros_>
if I had packed already, I would
<apeiros_>
but still gotta pack my stuff for euruko :(
<apeiros_>
reminds me that I should probably start doing that… 23.00 already :)
woollyams has joined #ruby-lang
<andrewvos>
banisterfiend: mac air
<banisterfiend>
andrewvos: cool and it works ok? im thinking about getting it
<banisterfiend>
but i only have the 2 gig ram model air so it's probably not going to work so well
<andrewvos>
banisterfiend: Yeah it does! Also, the cool thing is that it turns my Macbook Air into a heater. So, that's good too.
<lianj>
in the summer?
<banisterfiend>
andrewvos: are the settings on low though? or you can have the settings fairly high?
<andrewvos>
banisterfiend: All settings on the lowest
<andrewvos>
ok Diablo 3 time
peppyheppy has joined #ruby-lang
<banisterfiend>
cya
cmaxw has joined #ruby-lang
carloslopes has quit [Quit: Leaving]
bryancp has quit [Remote host closed the connection]
hakunin has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
<wmoxam>
ugh, I want Diablo 3 but only have a Linux box to play it on
<wmoxam>
and while playable it's not installable on Linux :(
dv310p3r has quit [Ping timeout: 246 seconds]
hynkle has quit [Quit: hynkle]
dv310p3r has joined #ruby-lang
<lianj>
wine appdb says there are patches
dr_bob has quit [Read error: Connection reset by peer]
peppyheppy has quit [Quit: peppyheppy]
tcopp has left #ruby-lang [#ruby-lang]
<wmoxam>
lianj: yeah, you can patch and do a custom Wine compile
<wmoxam>
:/
gregf has joined #ruby-lang
<lianj>
funny though that its the installer and not the game which isnt working :D
<wmoxam>
yeah
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
<wmoxam>
Blizzard stuff tends to work well under Wine
<wmoxam>
Sc2 works perfectly
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
peppyheppy has joined #ruby-lang
erics has joined #ruby-lang
kyrylo has quit [Ping timeout: 246 seconds]
<drbrain>
talking about playing games on Wine makes me want to try to get MOO2 to work again
<wmoxam>
drbrain: winehq reports that it is platnum (ie: works perfectly)
krohrbaugh has quit [Read error: Connection reset by peer]
<drbrain>
wmoxam: last time I tried (some many years ago) it did not work
<wmoxam>
drbrain: they actually recommend to play on dosbox instead
<wmoxam>
"With wine 1.3.30 this game works considerably well for the first time"
arooni-mobile has quit [Ping timeout: 256 seconds]
<drbrain>
wmoxam: thanks
sockmonk has quit [Ping timeout: 260 seconds]
<drbrain>
homebrew has wine 1.4
<wmoxam>
yeah
<mistym>
drbrain: brew versions if you want to downgrade
<wmoxam>
that's the most recent stable version
<wmoxam>
I think 1.3 was the dev version for 1.4
<wmoxam>
as 1.5 is now the dev version
<mistym>
Yeah, it follows the classic even/odd stable/unstable branch pattern
<mistym>
wine seems like it's getting pretty impressive these days. I was looking into Guild Wars 2 since I'm not going to be at my Windows box over part of the beta event, and apparently it runs flawlessly.
<wmoxam>
mistym: yeah, it's gotten really good since I last looked at it
<wmoxam>
It runs TF2 reasonably well, and HL and Portal are pretty much perfect
bglusman has quit [Ping timeout: 246 seconds]
<wmoxam>
AFAICT the settings I run at are slightly lower then what they would be on a Windows box
Hakon|mbp has quit [Quit: Leaving...]
solars has quit [Ping timeout: 256 seconds]
b1rkh0ff has quit [Ping timeout: 260 seconds]
Criztian has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
toretore has quit [Quit: Leaving]
tomb__ has quit [Read error: Connection reset by peer]
tomb__ has joined #ruby-lang
<drbrain>
I've been playing some Civ V, and while it's nice, it's no MOO2
wmoxam has quit [Quit: leaving]
Criztian has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
<drbrain>
in MOO2 you can capture an enemy planet then … replace its citizens with your own
rhodee has left #ruby-lang [#ruby-lang]
mistym has quit [Remote host closed the connection]
<drbrain>
in Civ V you can only raze the city, which means you can't reuse the conquered infrastructure ☹
drollwit has quit [Remote host closed the connection]
mtmcfarl has joined #ruby-lang
postmodern has joined #ruby-lang
benanne has quit [Quit: kbai]
tomb__ has quit [Quit: Computer has gone to sleep.]
mrsolo has left #ruby-lang ["Leaving"]
chendo_ has quit [Ping timeout: 265 seconds]
mrck has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 260 seconds]
woollyams has joined #ruby-lang
dv310p3r has joined #ruby-lang
mtmcfarl has quit [Quit: Page closed]
srbartlett has joined #ruby-lang
<cirwin>
anyone know why TCPSocket.gethostbyname() would take just over exactly 5 seconds for some hosts? (neither 'dig' nor 'host' take a significant length of time)
<drbrain>
cirwin: what OS?
<whitequark>
cirwin: strace
<whitequark>
and it's something with your DNS settings (obviously) which causes the request to time out
<drbrain>
cirwin: on OS X, I'd blame dnssd
<cirwin>
this is ubuntu
tomb__ has joined #ruby-lang
<drbrain>
AFAIK, neither dig nor host use resolv()
<cirwin>
whitequark: I don't know why ruby would use different DNS to 'host' or 'dig' though
<cirwin>
ah ok
<whitequark>
cirwin: use strace+wireshark/tcpdump
<whitequark>
that'll make it clear
<whitequark>
wireshark may be easier
<whitequark>
I'd start with it
cmaxw has quit [Quit: cmaxw]
<erikh>
drbrain: hello friend. do the binstubs fork?
<erikh>
trying to debug an upstart issue
<drbrain>
erikh: no, they load
<erikh>
ok, that's what I thought.
<erikh>
thanks!
<erikh>
chef-client in -d is being very pissy with upstart's double-fork detection
IPGlider has quit []
cmaxw has joined #ruby-lang
heftig has joined #ruby-lang
macmartine has quit [Quit: macmartine]
heftig_ has joined #ruby-lang
heftig_ has quit [Client Quit]
dv310p3r has quit [Ping timeout: 246 seconds]
peppyheppy has joined #ruby-lang
dv310p3r has joined #ruby-lang
igaiga has joined #ruby-lang
tomzx has joined #ruby-lang
Axsuul has quit [Ping timeout: 248 seconds]
<cirwin>
whitequark: so, interestingly nothing really shows up in strace; but in wireshark it's obvious that something is wrong: http://jelzo.com/stuff/wtf-dns.png. For some reason it ignores the first DNS response (I guess because the in-addr.arpa lookup fails). I've also got no idea what the MDNS calls are...
warreng has joined #ruby-lang
<warreng>
i'm using a gem that creates a global module called Twitter... that module is conflicting with a LinkedAccount::Twitter class I already have... is there a way to sorta wrap a gem in a module? so that gem thinks it's creating Twitter but really it's already inside a Foo namespace so it's really creating Foo::Twitter ?
rmascarenhas has joined #ruby-lang
<cirwin>
warreng: you can manually edit the gem files... but no
<warreng>
module Foo; gem 'twitter'; end <-- wouldn't work ?
<cirwin>
nope
<warreng>
hm, can i use some ruby magic to move the module after load time? meta-programming-style?
workmad3 has quit [Ping timeout: 246 seconds]
Axsuul has joined #ruby-lang
<cirwin>
warreng: yes, though it's not very reliable
<drbrain>
cirwin: MDNS == Multicast DNS == bonjour == dnssd and is probably why you see the 5s delay
<cirwin>
you can refer to the toplevel Twitter as ::Twitter if you need
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
<warreng>
that doesn't work
* cirwin
tries killing the avahi-daemon
dv310p3r has quit [Ping timeout: 246 seconds]
<warreng>
it's actually the other class that's the problem... when i refer to LinkedAccount::Twitter, it gives a warning about "toplevel constant" and gives the wrong module
<warreng>
even as i explicitly specify the LinkedAccount:: prefix
<cirwin>
warreng: that normally means that you haven't loaded the file that defines LinkedAccount::Twitter properly
<warreng>
right, except i have...
<cirwin>
are you using rails autoloader or something?
<warreng>
well yes... but i also explicilty added a require before a bunch of other stuff