* whitequark
counts hours until he gets banned there
Tick-Tock has quit [Ping timeout: 248 seconds]
<bnagy>
whitequark: s/until/since/
solars has joined #ruby-lang
<rue>
I don’t even…
igotnolegs has quit [Quit: Computer has gone to sleep.]
Z33K|Lux has quit []
<zenspider>
oh god. the moron is back
<zenspider>
oh god. and he uses html email
deryl has quit [Quit: deryl]
Tick-Tock has joined #ruby-lang
toretore has joined #ruby-lang
workmad3 has joined #ruby-lang
sora_h is now known as s0ra_h
tbuehlmann has joined #ruby-lang
wpaulson_ has joined #ruby-lang
jxie has joined #ruby-lang
ryez has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
Tick-Tock has quit [K-Lined]
<zenspider>
hrm
<zenspider>
how about
qwerxy has joined #ruby-lang
<zenspider>
ruby 1.9 has jumped the shark
<zenspider>
or
<zenspider>
occupy ruby - why we need to overthrow the 1%
<zenspider>
or
<zenspider>
what we should remove from 1.9 to make 2.0
<zenspider>
or... I dunno
<zenspider>
ooh how about:
<zenspider>
gem _everything_
krz has quit [Quit: krz]
<banisterfiend>
zenspider: if we gem everything isn't there the possibility of people then getting version conflicts on the stdlib, i imagine could be really frustrating
<banisterfiend>
one gem depends on openstruct version 1.1 and the other has a hard dependency on 1.0 or something
<zenspider>
meh. who cares. we already have those problems
<zenspider>
I have the 'ruby' gem name squatted, so we can have a meta-gem with hard deps per release
krz has joined #ruby-lang
<zenspider>
banisterfiend: which talk would you prefer to watch?
<zenspider>
or... which would you hate to watch? and why?
<banisterfiend>
zenspider: what ar the options
<zenspider>
see above
<banisterfiend>
"what we should remove from 1.9 to make 2.0"
<banisterfiend>
it's the least inflammatory and most constructive and it's a pretty interesting topic
fgomez has joined #ruby-lang
<banisterfiend>
zenspider: what would u remove?
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
<zenspider>
haven't written the talk yet
apeiros_ has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
rippa has joined #ruby-lang
yugui is now known as yugui_zzz
<banisterfiend>
zenspider: remove @@class_vars :)
Guest83218 has quit [Ping timeout: 265 seconds]
<zenspider>
i like class vars
<banisterfiend>
zenspider: that's more a 3.0 thing though
<banisterfiend>
zenspider: anyway hasn't matz already committed to 2.0 being back compat with 1.9.3 ?
<zenspider>
meh
igaiga has quit [Remote host closed the connection]
<zenspider>
considering 1.8 isn't backwards compatible with 1.9... I don't see why 2.0 should be.. ESP 2.0
qwerxy has quit [Quit: offski]
<banisterfiend>
zenspider: i think he witnessed the mess of python 2 -> python 3 and probably wants to avoid it
<banisterfiend>
not sure
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
Tick-Tock has joined #ruby-lang
* zenspider
goes to bed
<banisterfiend>
zenspider: sleep well, pup :*
TheHunter_1039 has joined #ruby-lang
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
kaspernj has joined #ruby-lang
brushbox has joined #ruby-lang
s0ra_h is now known as sora_h
fayimora_ has joined #ruby-lang
workmad3 has joined #ruby-lang
fayimora__ has joined #ruby-lang
fayimora has quit [Ping timeout: 264 seconds]
fayimora__ is now known as fayimora
rippa has quit [Ping timeout: 240 seconds]
fayimora_ has quit [Ping timeout: 264 seconds]
gnufied has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kyrylo has quit [Ping timeout: 246 seconds]
benanne has joined #ruby-lang
igaiga has joined #ruby-lang
<whitequark>
banisterfiend: sounds disturbingly close to "rest in piece"...
fayimora has quit [Quit: Busy…..zzzzz]
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
Fullmoon has joined #ruby-lang
KINGSABRI has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
augustl has joined #ruby-lang
<augustl>
Net::HTTP is completely synchronous and single threaded, right?
<augustl>
getting some weird issues when I run a http server via the same process as some unit tests, by using Open3.popen3. Works fine if I run the server manually.
<augustl>
actual response code is 422, but Net::HTTP gets 200
s0ra_h is now known as sora_h
<augustl>
but not if I comment out some of the tests :)
<augustl>
and all that jazz
zmack has joined #ruby-lang
yugui_zzz is now known as yugui
banisterfiend has quit [Ping timeout: 244 seconds]
<augustl>
with a http.set_debug_output($stdout) it also says the server returns a 200 OK.. So I have a feeling the issue is in the server.
banisterfiend has joined #ruby-lang
kristofferrr has joined #ruby-lang
dfr|mac has joined #ruby-lang
yugui has quit [Ping timeout: 245 seconds]
<augustl>
are there ways to spawn a new process and get access to its stdio other than Open3.popen3?
QaDeS has quit [Quit: Ex-Chat]
<rue>
IO.spawn
<augustl>
looking it up, thanks
<augustl>
hmm, what kind of IO objects can I use to access stdout and stderr of the process I spawn? Seems StringIO isn't supported.
<rue>
It’s not an IO
yugui has joined #ruby-lang
iamlacroix has joined #ruby-lang
sora_h is now known as s0ra_h
brushbox has quit [Quit: Leaving.]
<youngin>
sup
Nekka has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
A124 has joined #ruby-lang
s0ra_h is now known as sora_h
write has joined #ruby-lang
<write>
HELLO? What does block mean? How does ruby maintain block?
<write>
Why is ruby known for block?
write has quit [Quit: write]
cjs226 has joined #ruby-lang
<Tasser>
blockhead?
zmack has quit [Remote host closed the connection]
ammar_ has quit [Quit: leaving]
ammar has joined #ruby-lang
<matled>
augustl: typically you'd use IO.pipe to communicate to a child process. remember to close the unused sides of the pipe after forking in parent/child
<apeiros_>
and he leaves like less than a minute later… wtf?
<banisterfiend>
apeiros_: he's tintin
<banisterfiend>
he's trying to hide
<apeiros_>
how do you figure?
fgomez has quit [Read error: Connection reset by peer]
umttumt has quit [Remote host closed the connection]
bastilian has joined #ruby-lang
francisfish has joined #ruby-lang
stardiviner has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
<erikh>
his speech is very similar.
piyush has joined #ruby-lang
gsav has joined #ruby-lang
<banisterfiend>
can someone name a gem with a c extension?
<banisterfiend>
aside from nokogiri
<banisterfiend>
something quite obscure would be good, but with lots of c
<erikh>
sqlite
<erikh>
not sure about obscure
<erikh>
any of the database gems are chock full of C
<banisterfiend>
erikh: cool, but i guess i need a bunch of external libs installed too?
<erikh>
yes
<erikh>
banisterfiend: eventmachine has no deps IIRC
<erikh>
but that's mostly C++ I think
<erikh>
never rooted around in there.
<banisterfiend>
cool
<erikh>
anyhow, it's 5am here and I'm supposed to be quitting smoking tomorrow
<banisterfiend>
ill check it
<erikh>
I should probably get some rest.
gsav has quit [Ping timeout: 244 seconds]
<augustl>
matled: ah, I'll investigate, thanks
<banisterfiend>
anyone got some nice code for going from BindingOfCaller to binding_of_caller ?
KINGSABRI has quit [Read error: Connection reset by peer]
fgomez has joined #ruby-lang
KINGSABRI has joined #ruby-lang
KINGSABRI has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
KINGSABRI has joined #ruby-lang
zmack has joined #ruby-lang
postmodern has quit [Quit: Leaving]
KINGSABRI has quit [Read error: Connection reset by peer]
<kyrylo>
banisterfiend, ray?
KINGSABRI has joined #ruby-lang
KINGSABRI has quit [Read error: Connection reset by peer]
<augustl>
is there any particular reason for why `IO.popen(["rails", "server", "-p", "0", "-e", "production", :err => [:child, :out]])` causes different behaviour from "rails server -p 0 -e production" in a separate shell?
KINGSABRI has joined #ruby-lang
saLOUt has joined #ruby-lang
<augustl>
I do the IO.popen in a thread, then when the server is ready I start running the tests on another thread. This causes weird ass behaviour when doing requests against the server. This does not happen if I just start the server by hand and have my tests call that server
fayimora has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
<augustl>
where weird ass behaviour = the Rails logs (I'm starting a rails server) says it responded with 422, but the actual Net::HTTP call gets 200.
<augustl>
asking just in case I'm missing something obvious :)
kaspernj_ has joined #ruby-lang
KINGSABRI has quit [Read error: Connection reset by peer]
fayimora_ has joined #ruby-lang
fayimora has quit [Read error: Connection reset by peer]
<banisterfiend>
kyrylo: cool
fayimora_ is now known as fayimora
<banisterfiend>
kyrylo: trying dat now
KINGSABRI has joined #ruby-lang
gnufied has joined #ruby-lang
kaspernj has quit [Ping timeout: 245 seconds]
<banisterfiend>
kyrylo: how long did ray take to compile on your system?
<banisterfiend>
it's taking forever
tris has quit [Ping timeout: 252 seconds]
kaspernj_ has quit [Ping timeout: 246 seconds]
wpaulson has joined #ruby-lang
KINGSABRI has quit [Read error: Connection reset by peer]
KINGSABRI has joined #ruby-lang
Jake232 has joined #ruby-lang
<augustl>
weird stuff. Tried replacing the child process stuff with a Node.js script, that also works just fine. I wonder what the IO.popen does that causes these differences..
<augustl>
it might also be caused by my threading of course, but it's just two threads so I can't imagine what that should be
dalekurt has quit [Quit: Zzz...]
solars has quit [Ping timeout: 245 seconds]
wpaulson_ has joined #ruby-lang
cantonic has quit [Quit: cantonic]
wpaulson has quit [Ping timeout: 264 seconds]
wpaulson_ is now known as wpaulson
retro|cz has joined #ruby-lang
KINGSABRI has quit [Read error: Connection reset by peer]
deryl has quit [Read error: Connection reset by peer]
msaffitz has joined #ruby-lang
deryl has joined #ruby-lang
jxie has quit [Quit: leaving]
dalekurt has quit [Quit: Zzz...]
jxie has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
imperator has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
deanh has quit [Quit: deanh]
workmad3 has joined #ruby-lang
QaDeS has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
t has joined #ruby-lang
t is now known as Guest57835
deanh has joined #ruby-lang
deanh has quit [Client Quit]
CoverSlide has quit [Ping timeout: 244 seconds]
KINGSABRI has joined #ruby-lang
mrgreenfur has quit [Quit: mrgreenfur]
<KINGSABRI>
is there an easy way to send method (contains TCPserver listening ) to background process ?
<KINGSABRI>
I tried "backgrounded" gem but I got Error "undefined method `server' for {}:Hash (NoMethodError) "
fayimora has joined #ruby-lang
wallerdev has joined #ruby-lang
umttumt has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
wallerdev has quit [Client Quit]
fayimora has quit [Quit: Be back in a gifii]
seanstickle has quit [Quit: Nihil sub sole novum]
<KINGSABRI>
any idea please ?
<rue>
DRb? Dunno what you’re doing.
enebo has quit [Quit: enebo]
<KINGSABRI>
I've an application have some feautres , one of its is run server listening on a port ,, I need application send lesting to backroung and keep working normally
macmartine has joined #ruby-lang
<rue>
What do you mean send listening? Why don’t you just start the listener in the other process?
yannis has quit [Quit: Bye!]
prsimp has joined #ruby-lang
<KINGSABRI>
rue, I'v no problem about starting it in another sub process of new process
<KINGSABRI>
but how to do that :)
<KINGSABRI>
if found many thing but the simple ways like (backgrounded) is giving error
hinbody has joined #ruby-lang
<KINGSABRI>
also I need some way working on "ruby 1.8.7 "
<rue>
.fork it?
macmartine has left #ruby-lang [#ruby-lang]
selvakumaran has joined #ruby-lang
<KINGSABRI>
rue, I'll test fork now ..
workmad3 has quit [Ping timeout: 248 seconds]
rippa has joined #ruby-lang
<KINGSABRI>
can I get the process ID of forked methods ?
<KINGSABRI>
rue, can I get the process ID of forked methods ?
<rue>
You can get the PID of the process you fork, yes
<rue>
It’s the return value of the .fork call in the parent
workmad3 has joined #ruby-lang
msaffitz has joined #ruby-lang
msaffitz has quit [Client Quit]
CoverSlide has joined #ruby-lang
KINGSABRI has quit [Read error: Connection reset by peer]
r0bby has joined #ruby-lang
daym0n has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 260 seconds]
CoverSlide has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby-lang
sora_h is now known as s0ra_h
Jake232 has quit [Quit: Computer has gone to sleep.]
imperator has quit [Quit: This computer has gone to sleep]
bastilian has quit [Quit: Leaving...]
gregf has joined #ruby-lang
mistym has joined #ruby-lang
<Defusal>
hmmm
<Defusal>
EventMachine::WebSocket::MaskedString#getbytes appears to be very slow
prsimp has quit [Quit: prsimp]
daym0n has quit [Ping timeout: 244 seconds]
<Defusal>
a quick google found the following, but being over a year old, surely EM::WebSocket would have been patched with it by now... https://gist.github.com/1004242
CoverSlide has joined #ruby-lang
selvakumaran has quit [Ping timeout: 250 seconds]
crackity_jones has joined #ruby-lang
dejongge has joined #ruby-lang
KINGSABRI has joined #ruby-lang
CoverSlide has quit [Ping timeout: 245 seconds]
retro_ has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
msaffitz has joined #ruby-lang
msaffitz has quit [Client Quit]
chessguy has quit [Remote host closed the connection]
msaffitz has joined #ruby-lang
imperator has joined #ruby-lang
CoverSlide has joined #ruby-lang
<Defusal>
so anyway, although the em-websocket gems unmasking code was updated, its still terribly inefficient and slow
<Defusal>
but that gists implementation depends on "require 'xor'"
wallerdev has quit [Quit: wallerdev]
selvakumaran has joined #ruby-lang
<Defusal>
does anyone have any idea what (gem?) "xor" is, it provides a String#xor! method
savage- has joined #ruby-lang
gnufied has joined #ruby-lang
<Defusal>
it's the fast_xor gem :)
dalekurt has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
savage- has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 260 seconds]
sailias has quit [Quit: Leaving.]
slyphon has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
wallerdev has joined #ruby-lang
deanh has joined #ruby-lang
havenn has joined #ruby-lang
CoverSlide has joined #ruby-lang
xtagon has joined #ruby-lang
prsimp has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
qwerxy has joined #ruby-lang
piyush has joined #ruby-lang
havenn has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
burgestrand has joined #ruby-lang
imperator has joined #ruby-lang
outsmartin has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
macmartine has joined #ruby-lang
Guest57835 has quit [Remote host closed the connection]
bjensen has joined #ruby-lang
<bjensen>
I need to compare strings but accept equality within a specific range. Like "John Doe is the same as "John Foe" but "Johnny Cash" is not the same as "John Doe"….do any of you guys have an idea how to approach this?
t has joined #ruby-lang
<bjensen>
I assume you would assign each character a numerical value and then sum each string and then decide equality within the accepted range
t is now known as Guest28994
CoverSlide has quit [Ping timeout: 245 seconds]
<workmad3>
bjensen: look at edit distances or soundex maybe
<workmad3>
bjensen: or any other fuzzy matcher
<bjensen>
workmad3: those are libraries or ruby api?
<burgestrand>
there’s also levenshtein and… forgot the other name