* yorickpeterse
would slap yorickpeterse, but is not being violent today
<yorickpeterse>
:<
<maloik>
it's over (however many characters vim preachers use as their max line length)
JohnBat26 has joined #ruby-lang
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby-lang
mislav has quit [Remote host closed the connection]
bousquet has joined #ruby-lang
mbj has quit [Ping timeout: 264 seconds]
emiltin has joined #ruby-lang
mbj has joined #ruby-lang
arBmind has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
cads has quit [Ping timeout: 246 seconds]
marr has joined #ruby-lang
jxie has quit [Quit: leaving]
richardburton has quit [Quit: Leaving.]
<erikh>
yorickpeterse: you could probably walk r[2].css('img') with inject
<erikh>
and just reduce it to the closest result
<yorickpeterse>
note that there's about 15 lines of code like that
<erikh>
then validate if that's empty or the gif
<yorickpeterse>
I'm not going to touch it
* erikh
sighs
<yorickpeterse>
it's going to go out of teh door anyway
<yorickpeterse>
* the
postmodern has quit [Ping timeout: 246 seconds]
sascha_d has quit [Quit: obai]
mistym has quit [Remote host closed the connection]
solars has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<maloik>
someone's been drilling here ever since I got into the office
<maloik>
I think I'll be deaf by the end of the day
<maloik>
if not by the drilling then by trying to make my music go louder
amerine has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
<ljarvis>
moin
arBmind has quit [Quit: Leaving.]
<maloik>
o/
<yorickpeterse>
so a while ago there was this self hosted feed reader (I think in Ruby) which made the frontpage on HN, does anybody remember the name of it?
<yorickpeterse>
Because fuck feedly for removing SSL from the free plan, and screw paying for it
<ljarvis>
stringer?
<maloik>
yea thats the one a colleague uses as well
<yorickpeterse>
that's the one, ta
julweber has joined #ruby-lang
<yorickpeterse>
oh nice, and it's Sinatra too
<yorickpeterse>
that means I have to use a slightly smaller leash instead of the big one for Rails
mbj has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
arBmind has joined #ruby-lang
richardburton has joined #ruby-lang
Senjai has quit [Ping timeout: 264 seconds]
kuja has quit [Ping timeout: 264 seconds]
emiltin has quit [Quit: Computer has gone to sleep.]
kuja has joined #ruby-lang
richardburton has quit [Ping timeout: 264 seconds]
mbj has quit [Remote host closed the connection]
mbj has joined #ruby-lang
banister_ has quit [Remote host closed the connection]
Oloryn_lt2 has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
GeissT has quit [Ping timeout: 248 seconds]
mbj has quit [Quit: leaving]
Oloryn_lt2 has quit [Ping timeout: 256 seconds]
bryanl has quit [Ping timeout: 264 seconds]
bryanl has joined #ruby-lang
Kabaka has quit [Remote host closed the connection]
TvL2386 has joined #ruby-lang
emiltin has joined #ruby-lang
Kabaka has joined #ruby-lang
Newbie0086 has joined #ruby-lang
julweber has quit [Remote host closed the connection]
emiltin has quit [Quit: Computer has gone to sleep.]
heftig has quit [Ping timeout: 245 seconds]
sjltaylor has joined #ruby-lang
barttenbrinke has joined #ruby-lang
<ljarvis>
fuck you coffeescript
postmodern has joined #ruby-lang
<ddfreyne>
Mmmm... coffee...
<darix>
teascript would be better
<yorickpeterse>
I was just about to suggest that
kstuart has joined #ruby-lang
banister has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
rickruby has quit [Ping timeout: 248 seconds]
<maloik>
Trying to debug something where I can't File.read a file, is there any reason ruby could raise a no such file error other than the path being wrong ?
<maloik>
file permissions seem to be okay as well
jxie has joined #ruby-lang
Newbie0086 has quit [Quit: 离开]
rickruby has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
sjltaylor has quit [Remote host closed the connection]
richardburton has joined #ruby-lang
dernise_ has quit [Ping timeout: 256 seconds]
<maloik>
oh god
<maloik>
oh god oh god oh god
<maloik>
it's monday alright....
rickruby has quit [Remote host closed the connection]
<maloik>
20 minutes gone because I just didn't see the fucking file is called paid_order and not order_paid
<yorickpeterse>
I haven't had my Monday morning derp yet
sjltaylor has joined #ruby-lang
<yorickpeterse>
which is more frightening
richardburton has quit [Ping timeout: 248 seconds]
minivan has joined #ruby-lang
rickruby has joined #ruby-lang
<maloik>
I get so angry, productivity just takes a nosedive
sindork has quit [Quit: No Ping reply in 180 seconds.]
onewheelskyward has quit [Ping timeout: 264 seconds]
<maloik>
good thing its almost lunchtime, can go take a walk to the store
sindork has joined #ruby-lang
skade has joined #ruby-lang
banister has quit [Remote host closed the connection]
onewheelskyward has joined #ruby-lang
sindork has quit [Client Quit]
onewheelskyward has quit [Max SendQ exceeded]
Guest44466 has quit [Ping timeout: 248 seconds]
sindork has joined #ruby-lang
vlad_starkov has joined #ruby-lang
onewheelskyward has joined #ruby-lang
relix has joined #ruby-lang
Guest98488 has joined #ruby-lang
onewheelskyward has quit [Max SendQ exceeded]
zzak has joined #ruby-lang
rickhull has quit [Quit: Leaving.]
onewheelskyward has joined #ruby-lang
sindork has quit [Quit: No Ping reply in 180 seconds.]
sindork has joined #ruby-lang
bousquet has quit [Remote host closed the connection]
zzak has quit [Ping timeout: 246 seconds]
scottschecter has quit [Ping timeout: 260 seconds]
Guest98488 has quit [Ping timeout: 246 seconds]
ddd_ has joined #ruby-lang
seoaqua has quit [Ping timeout: 264 seconds]
zzak has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
<maloik>
*I-have-no-idea-what-im-doing-dog-picture* Does anyone know how to render an ActionMailer (or any type of) view that includes locals and a partial being rendered as a string ?
<maloik>
I'm replacing an action mailer with a model of my own to make a call to a ticketing API
<maloik>
erb probably won't work because of the partial, as far as I can tell, and I'm having trouble figuring out what else would work... tried a number of ActionView and ActionController classes/methods but no luck so far
scottschecter has joined #ruby-lang
Perry has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby-lang
<spike|spiegel>
maloik: it require some gutting, and this isn't the place for it... ask #rubyonrails... also, if you want just the rendered output.. it's available in mail object at some "raw_" method
<maloik>
I'll take a look at that
Perry has joined #ruby-lang
shtirlic has quit [Ping timeout: 264 seconds]
shtirlic has joined #ruby-lang
julweber has joined #ruby-lang
onewheelskyward has quit [Max SendQ exceeded]
onewheelskyward has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Dernise has joined #ruby-lang
tkuchiki has joined #ruby-lang
richardburton has joined #ruby-lang
realDAB has joined #ruby-lang
matled- has joined #ruby-lang
hogeo has quit [Ping timeout: 240 seconds]
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
linc01n has quit [Ping timeout: 240 seconds]
richardburton has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
linc01n has joined #ruby-lang
tanema has joined #ruby-lang
tkuchiki has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
tkuchiki has joined #ruby-lang
tkuchiki_ has quit [Read error: Connection reset by peer]
MaddinXx has joined #ruby-lang
Domon has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
<Dernise>
is double fork the only way to keep a process running even if I close it's parent?
Forgetful_Lion_ has joined #ruby-lang
mitchty has quit [Ping timeout: 240 seconds]
heftig has joined #ruby-lang
Forgetful_Lion has quit [Ping timeout: 240 seconds]
mitchty has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
hhatch has quit [Ping timeout: 264 seconds]
hhatch has joined #ruby-lang
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poga has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
havenwood has joined #ruby-lang
skade has joined #ruby-lang
havenwood has quit [Ping timeout: 240 seconds]
<manveru>
nohup works too i think
realDAB has joined #ruby-lang
ldnunes has joined #ruby-lang
postmodern has quit [Quit: Leaving]
banister has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 240 seconds]
poga has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
<andrewvos>
Erm
<andrewvos>
I'm parsing a doc with nokogiri
<andrewvos>
And I have a sccript that outputs stuff
<andrewvos>
At some point it stops writing out
<yorickpeterse>
ok
<andrewvos>
And the text I can see has "it's" with a weird diamon looking character (like in a pack of cards)
<andrewvos>
And in vim this character looks like ^R
<andrewvos>
WAT IS HAPPENING
<yorickpeterse>
encodings?
<andrewvos>
xml doc specifies utf 8
<andrewvos>
but I'm using SAX by the way
kurko_ has joined #ruby-lang
<yorickpeterse>
The XML tag specifying UTF8 means fuck all
<yorickpeterse>
I've had plenty of cases where it said "Hi I'm UTF8" but it was sending ASCII 8bit
<andrewvos>
Hmm, any ideas then?
<yorickpeterse>
what happens if you force the encoding to UTF8/ASCII?
<corecode>
so if i want to just get the (only) element from the unpack() array result
<corecode>
it breaks the symmetry if i use .first
<ljarvis>
there is no symmetry, you only want 1 element
<corecode>
but just appending a comma does the trick
<ljarvis>
sigh
<ljarvis>
ok
<corecode>
yes, there is a symmetry, even tho you might not see it
vlad_starkov has joined #ruby-lang
<ljarvis>
right-o
<andrewvos>
Nokogiri::XML::Reader will work with a 13gb file?
<andrewvos>
Seems to require you pass in the text of the file
Banistergalaxy has quit [Ping timeout: 240 seconds]
<andrewvos>
Not a file name or anything like that
<ljarvis>
correct
<ljarvis>
or a file handle
<andrewvos>
ljarvis: So it will stream read?
Banistergalaxy has joined #ruby-lang
<andrewvos>
ljarvis: Like, not load all that shit into memory?
anonymuse has joined #ruby-lang
<ljarvis>
andrewvos: correct
<andrewvos>
ljarvis: Thanks dude
<ljarvis>
andrewvos: np (fwiw xmlreader IS a streaming API in itself)
Sammidysam has left #ruby-lang ["Leaving"]
scampbell has joined #ruby-lang
yfeldblum has joined #ruby-lang
tanema has quit [Remote host closed the connection]
<maloik>
Anyone aware of any particularities with -%> erb tags? I'm rendering using ERB.new(...).result, and if my template contains those it's throwing errors
<maloik>
they used to work fine when used by actionmailer
<yorickpeterse>
No, it put some picture of justin bieber as an overlay
<ljarvis>
who wouldn't want that
JohnBat26 has joined #ruby-lang
<maloik>
jarvis.ly
<maloik>
do you own that domain ?
<maloik>
if not: WHY NOT ???
banister has quit [Remote host closed the connection]
<yorickpeterse>
So HTTP API question:
<yorickpeterse>
do I just return a raw set of Hash instances (the results of JSON.parse()) or do I return a somewhat saner dataset?
<yorickpeterse>
which would basically be a set of custom classes with the exact same data
<yorickpeterse>
inb4 Hashie::Mash
hashkey_ has joined #ruby-lang
Kabaka has quit [Remote host closed the connection]
<yorickpeterse>
Hashie::Mash is the perfect example of a schizophrenic data structure
hashkey is now known as Guest20842
Guest20842 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
hashkey_ is now known as hashkey
<yorickpeterse>
"ohhh god I'm a Hash...No an OpenStruct....No! A Hash with indifferent access!...NO! ALL OF IT!"
hashkey has quit [Client Quit]
tanema has joined #ruby-lang
hashkey has joined #ruby-lang
Kabaka has joined #ruby-lang
pipework has quit [Remote host closed the connection]
jbsan has joined #ruby-lang
<ljarvis>
why wouldn't you just send the json?
<ljarvis>
maloik: I do not
tkuchiki has joined #ruby-lang
corecode has left #ruby-lang ["ERC Version 5.3 (IRC client for Emacs)"]
tomzx_mac has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby-lang
w00x has joined #ruby-lang
<yorickpeterse>
ljarvis: well for example, this JSON returns dates. I'm 100% sure this will have to be parsed to a Time object at some point, so why not make that easier by doing it for the dev?
<yorickpeterse>
(that's just one small example)
richardburton has joined #ruby-lang
<ljarvis>
sure, but if you're then transferring that back over http it would be back to json for me
<yorickpeterse>
Oh, it's not being kicked around over HTTP after the initial request
<yorickpeterse>
it's a read-only API that we'll consume, then we do some magic and store the data in a DB
<yorickpeterse>
(basically)
<ljarvis>
I believe this calls for a MultipleTypeHashFactoryBuilder
tkuchiki_ has quit [Ping timeout: 276 seconds]
<yorickpeterse>
WithIndifferentAccess
<ljarvis>
as always
tdm00 has joined #ruby-lang
richardburton has quit [Ping timeout: 256 seconds]
thebastl has quit [Read error: Operation timed out]
ssb123 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wmoxam has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
__butch__ has quit [Remote host closed the connection]
efrainolivares has quit [Quit: efrainolivares]
efrainolivares has joined #ruby-lang
postmodern has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
io_syl has quit [Quit: io_syl]
efrainolivares has quit [Quit: efrainolivares]
skade has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
<Dernise>
What's the limit of concurency in ruby threads ?
daihuws has quit [Quit: Leaving]
jsullivandigs has joined #ruby-lang
daihuws has joined #ruby-lang
daihuws has left #ruby-lang [#ruby-lang]
breakingthings has quit [Quit: breakingthings]
jsullivandigs has quit [Ping timeout: 240 seconds]
Forgetful_Lion_ has quit [Remote host closed the connection]
<darix>
Dernise: 1 at a time on MRI. more on rubinius and jruby
<soahccc>
darix: isn't that parallelism or am I mixing it up now?
<darix>
soahccc: just a guess he was referring to how many things can run in parallel
richardburton1 has joined #ruby-lang
richardburton has quit [Ping timeout: 264 seconds]
<Dernise>
darix: If I want to do two things at the same time, is that possible in ruby?
<darix>
Dernise: depends on what things
<darix>
Dernise: in mri only one thread really runs at the same time. but of course it will do some scheduling between threads
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<Dernise>
I would like to run a command with popen3, get every new lines in its stdout and do actions on theses lines. I also want my program to continue running while doing this
<darix>
your program would keep running
<darix>
it just might block on IO if you dont read fast enough
<drbrain>
Dernise: popen3 with a block is probably what you want
sepp2k has joined #ruby-lang
<darix>
so as long as your code in the block is fast enough dont worry about multithreaded
<Dernise>
In a block does my program continue running ?
<drbrain>
Dernise: as darix said, your program stays running
<drbrain>
here is an example without a block using popen4 (like 3, but with PID for process management):
<drbrain>
since the craftbukkit thread never exits, neither will your program
<drbrain>
if craftbukkit crashes (or you shut it down) your program will exit
<banisterfiend>
drbrain: fun project
<banisterfiend>
drbrain: messing with any other languages?
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<drbrain>
not so much
<banisterfiend>
drbrain: haven't drunk the functional programming kool-aid? :)
<drbrain>
functional programming is awesome
<drbrain>
I built a compiler for a scheme-like in scheme in college
<drbrain>
but I like playing with multi-processing more (thus drb)
<banisterfiend>
drbrain: cool, here's something you might like (even if you dont program haskell, it has a great survey of all concurrent/parallel programming technologies available today) http://chimera.labs.oreilly.com/books/1230000000929/index.html
<x0f_>
it's like having a cake and no side dishes while eating it.
<banisterfiend>
drbrain: i haven't got passed about page 30, but my gut tells me it's important :)
<banisterfiend>
past*
<Dernise>
Threads are not in parallel in ruby ?
s0ber has quit [Remote host closed the connection]
s0ber has joined #ruby-lang
benanne has quit [Quit: kbai]
efrainolivares has joined #ruby-lang
zeusmns has quit [Ping timeout: 248 seconds]
<Dernise>
Wow I did it. But I don't know how
efrainolivares has quit [Client Quit]
w00x has quit [Ping timeout: 248 seconds]
mbj_ has joined #ruby-lang
<Dernise>
My code is working and I dont know why. It's frustrating.
zeusmns has joined #ruby-lang
solars has quit [Read error: Operation timed out]
dabradley has quit [Ping timeout: 248 seconds]
<drbrain>
banisterfiend: thanks, I'll check it out
<andrewvos>
Why does google analytics need to get the tracker.gif?
<drbrain>
Dernise: threads cannot run ruby at the same time, but they will switch on things like blocking IO
dabradley has joined #ruby-lang
<Dernise>
drbrain: I forked the process to do parallelism. Is that "safe"
<Dernise>
?*
mbj has quit [Ping timeout: 240 seconds]
<drbrain>
yes
wmoxam has quit [Ping timeout: 248 seconds]
RickHull has joined #ruby-lang
iliketurtles has joined #ruby-lang
<drbrain>
when you fork { … } in ruby, in the child process all other threads are killed
efrainolivares has joined #ruby-lang
<Dernise>
In java I used to do that with threads, why is that not possible with ruby ?
<drbrain>
why is which not possible?
<RickHull>
i'm collecting data from jenkins on job success/failures. the idea is to look for hotspots or trends. e.g. i know what machine the job executed on and at what time
<Dernise>
I think I don't understand what are threads.
<RickHull>
what sort of automatic analysis tools can tell me that a bunch of failures are clustered on this machine, or during this time window, etc?
<drbrain>
in general (java, posix, ruby) threads are separate streams of execution in the same process
<drbrain>
but they share the same memory space
<drbrain>
processes do not share the same memory space
nathanstitt has quit [Quit: I growing sleepy]
<drbrain>
ruby supports separate threads, but two threads cannot run the ruby VM (execute ruby code) at the same time
<drbrain>
for CRuby
<banisterfiend>
rickhull: hey ricky, ltns
<Dernise>
So what are they usefull for?
<drbrain>
a ruby thread can execute other C code outside the ruby VM at the same time as the ruby VM though
<drbrain>
the best use for threads in ruby is for handling IO, such as for a web server
<drbrain>
well, this class of problem
richardburton1 has quit [Quit: Leaving.]
julweber has quit [Remote host closed the connection]
<RickHull>
banisterfiend: yup, i've even started using pry regularly now!
<drbrain>
most of the threads will be waiting for IO to go in or out
<drbrain>
so ruby can switch between them
richardburton has joined #ruby-lang
<drbrain>
and there is little blocking
<banisterfiend>
rickhull: good boy! :) Which state are you from btw?
<RickHull>
Georgia, but i've moved from east coast to west coast. SF now
<RickHull>
to be closer to you :P
<drbrain>
outside CRuby, threads can be used when it is easier to use shared memory to communicate between compute-heavy threads than it is to use inter-process communication
ledestin has quit [Quit: ledestin]
<banisterfiend>
rickhull: i'm in netherlands :)
<RickHull>
no shit, long term?
<banisterfiend>
rickhull: but if you're stoned all the time, then i guess we're close in spirit
<banisterfiend>
(jk, i dont actually smoke tha tmuch, though there's a "coffeeshop" 5 mins from where i live)
<RickHull>
well, I am still recovering from Outside Lands music festival
<banisterfiend>
rickhull: semi-longterm, it's a beautiful country. Little bridges cobblestone streets, ancient buildings. I'm living in an old stone house that dates back to the 1500s
killtheliterate is now known as killthe|afk
<RickHull>
y, i was quite taken with the dutch lifestyle and culture the last time i visited, almost 15 years ago
<RickHull>
spent about a week in amsterdam, and few days outside the city
setmeaway has joined #ruby-lang
<RickHull>
do you ever commute by boat?
<x0f_>
drbrain, isn't the "parallel c-code invocation" still experimental?
<banisterfiend>
rickhull: no, but i could :) i live adjacent to a canal
joshuawscott has joined #ruby-lang
<banisterfiend>
rickhull: it's 'orientation week' at the local university, the dutch youth love to have get on boats, park under a bridge, and have dance parties
<drbrain>
x0f_: no, but the functions are now in the header files
<banisterfiend>
it's pretty unusual ;)
<drbrain>
but they've been in use throughout 1.9.x
<drbrain>
x0f_: I updated zlib to use them so now you can inflate/deflate in parallel!
<x0f_>
ahh, ok. nice to know though. could be beneficial for heavy processing stuff.
<x0f_>
yeah! awesome.
<Dernise>
What I'm doing is a server that will communicate informations to a website, informations such as CPU usage and the console of a program. Well it's a monitor for programs such as craftbukkit.. So I'm running each process with open3 and I would like to send every new lines in the console to my website without blocking the server
<drbrain>
similar to the web server usage
<drbrain>
Dernise: that sounds like a perfect usage of threads
arBmind has quit [Quit: Leaving.]
<Dernise>
I'll try to fork everytime I open a new program use open3 in this fork and then get every new lines
<Dernise>
Hm...
<drbrain>
you can open3 a new program and monitor it with threads, too
<drbrain>
so you have multiple child programs you are monitoring using multiple threads
nathanstitt has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<x0f_>
you just need to fork once and have the pid and pipes available for communication and signals with the child process.
<Dernise>
I used rufus scheduler to monitor it :')
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
matti has quit [Ping timeout: 246 seconds]
<Dernise>
Every 3s I check the CPU usage? This might not be the best way to do it
jbsan has quit [Quit: jbsan]
<drbrain>
it should be fine
<drbrain>
3s is a long time for a computer
nathanstitt has quit [Quit: I growing sleepy]
<Dernise>
an other way would have been to spawn a new thread that would wake up every 3s
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drbrain>
I wouldn't worry about having "too many" threads if they mostly sleep or wait
<whitequark>
they eat memory though
tdm00 has quit [Quit: Computer has gotten very, very sleepy.]
efrainolivares has quit [Quit: efrainolivares]
pkrnj has quit [Quit: Computer has gone to sleep.]
ledestin has joined #ruby-lang
cads has joined #ruby-lang
nathanstitt has joined #ruby-lang
efrainolivares has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
nathanstitt has quit [Client Quit]
MaddinXx has quit [Remote host closed the connection]
julweber has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
tomzx_mac has joined #ruby-lang
iliketurtles has joined #ruby-lang
<Dernise>
last question, is it possible to read a stream that is not closed without blocking (ie : stderr)
MaddinXx_ has quit [Remote host closed the connection]
<drbrain>
yes, you can readpartial or read_nonblock
matti has joined #ruby-lang
matti has quit [Changing host]
matti has joined #ruby-lang
<drbrain>
or place the IO in non-blocking mode
<Dernise>
thanks !
julweber has quit [Ping timeout: 264 seconds]
jbsan has joined #ruby-lang
scottschecter has quit [Ping timeout: 260 seconds]
scottschecter has joined #ruby-lang
tanema has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
<gnufied>
stdout or stderr streaming is bit tricky, the only way I have found it to be truly unbuffered is to use tty and io/console
efrainolivares has quit [Quit: efrainolivares]
efrainolivares has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
tanema has quit [Ping timeout: 256 seconds]
VTLob has quit [Quit: VTLob]
kurko_ has quit [Quit: Computer has gone to sleep.]
setmeaway has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
pkrnj has joined #ruby-lang
joshuawscott has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
tylersmith has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
jwoods has quit [Ping timeout: 248 seconds]
Senjai has quit [Ping timeout: 240 seconds]
<xuser>
drbrain: did you gave up on rubinius?
malev has quit [Quit: Leaving]
krohrbaugh1 has joined #ruby-lang
realDAB has joined #ruby-lang
saarinen has joined #ruby-lang
krohrbaugh1 has quit [Read error: Connection reset by peer]
dhsmith_ has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
<drbrain>
xuser: how do you mean?
<drbrain>
once I was paid to work on rubinius, but no more
tanema has joined #ruby-lang
<drbrain>
since I maintain rdoc and rubygems, working on rubinius also is too much to do for free
<xuser>
drbrain: was looking at the contributors, you stop contributing some years ago
<xuser>
drbrain: oh ok
richardburton has quit [Quit: Leaving.]
wallerdev has joined #ruby-lang
<banisterfiend>
drbrain: do you still believe in rubinius? (i.e do you think it will realize its potential?)
dhsmith has quit [Ping timeout: 256 seconds]
krohrbaugh has quit [Ping timeout: 264 seconds]
<xuser>
yeah, I was just curious if he stop believing in it :)
<drbrain>
banisterfiend: I think so, yes
realDAB has quit [Quit: realDAB]
<drbrain>
I think two large projects (rdoc + rubygems) is too much to also keep ruby fun for me
<drbrain>
well, almost too much :D
<drbrain>
three would definitely be too much
<xuser>
drbrain: I guess engineyard lower the resources to rubinius?
<banisterfiend>
drbrain: one big project is enough for me, it's already kind of a chore
<drbrain>
xuser: for a while, yes
<drbrain>
well, I guess they're still at two paid people
kstuart has quit [Ping timeout: 248 seconds]
<xuser>
drbrain: has there ever be any plans in removing the GIL from cRuby?
<banisterfiend>
xuser: i think they tried once and got a reduction in performance
<banisterfiend>
they had a bunch of finer grained locks
<drbrain>
xuser: eventually, yes
<xuser>
banisterfiend: oh they tried, nice, I guess is not so simple
<banisterfiend>
it's not useful except when doing slightly warped metaprograming, but when doing that warped metaprogramming, there's actually no way of getting back the attached object unless you use something like ObjectSpace
<zzak>
banisterfiend: like inherited?
<banisterfiend>
zzak: no
wmoxam has joined #ruby-lang
<drbrain>
zzak: you should update the maintainers list with an entry for "documentation patches"