malev has quit [Remote host closed the connection]
<imperator>
whelp, time to blow up some virtual tanks
imperator has quit [Quit: Leaving]
erichmenge has joined #ruby-lang
Berglund has quit [Quit: Computer died.]
Asher has joined #ruby-lang
kvirani has joined #ruby-lang
dmwuw has joined #ruby-lang
hhatch has quit [Quit: leaving]
mrsolo has quit [Quit: Leaving]
tenderlove has quit [Ping timeout: 255 seconds]
zilch has joined #ruby-lang
<erikh>
woot
lbrent has quit [Ping timeout: 246 seconds]
zilch has left #ruby-lang [#ruby-lang]
^rndmnck has joined #ruby-lang
^rndmnck has left #ruby-lang [#ruby-lang]
mnick has joined #ruby-lang
mnick has quit [Client Quit]
fayimora has quit [Quit: Busy…..zzzzz]
towski has quit [Remote host closed the connection]
arooni-mobile has quit [Remote host closed the connection]
robie1373 has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
petercooper has joined #ruby-lang
neocoin has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
bassir has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
<jtoy>
how can I change this lien so it works with binary/utf8 ? ruby -ne "require 'json'; obj = JSON.parse(\$_); if obj.nil? then puts \$_;end"
<jtoy>
it does on lines with utf8 in it
<jtoy>
dies
<zzak>
erikh: we're not scaling to 40 machines are we? haha
chevdor has quit [Quit: Verlassend]
tjadc has quit [Ping timeout: 252 seconds]
tenderlove has quit [Remote host closed the connection]
gix has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby-lang
enebo has quit [Quit: enebo]
gix has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 276 seconds]
jperry2 has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
savage- has quit [Ping timeout: 244 seconds]
chimkan_ has quit [Quit: chimkan_]
towski has joined #ruby-lang
headius has joined #ruby-lang
<bassir>
How can I join an array of words into a sentence? I wan to make the array ["Hello World", "Word" to become "Hello World Word" instead of .join which will make it "Hello WorldWord"
<burgestrand>
bassir: have a look at the argument to join.
<countdigi>
but when i run rspec tests on this stderr/stdout never comes back - just blank
<countdigi>
checked out a couple different stacktrace articles but still having trouble wondering if anyone might have a pointer
<countdigi>
@shell.exec is making a system(cmd) call btw
igotnolegs has quit [Quit: Computer has gone to sleep.]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
achiu has quit [Quit: WeeChat 0.3.7]
achiu has joined #ruby-lang
Criztian has joined #ruby-lang
neoesque has quit [Quit: Bye!]
tooky has joined #ruby-lang
tooky has quit [Ping timeout: 276 seconds]
face has left #ruby-lang [#ruby-lang]
faces has joined #ruby-lang
<banisterfiend>
anyone ever got this before? "Error: fiber called across stack rewinding barrier "
<faces>
countdigi: i can't help with redirecting/restoring stdout and stderr, but you could exec with > /dev/null 2>&1 & to have stdout and stderr blackholed for just that program
Criztian has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
<whitequark>
banisterfiend: look for exception handlers or, less likely, callcc
<banisterfiend>
whitequark: ah im just using fibers, can you tell me a typical case where it arises?
<whitequark>
I'm pretty sure you have something like an exception popped out of fiber and a handler trying to yield to it
<whitequark>
banisterfiend: well... fuck me if I know
<whitequark>
theoretically it should fail if the fiber is resumed from another rescue block it was created from
<banisterfiend>
whitequark: np, ill figure it out im just being lazy :)
<whitequark>
as rb_protect is the single place altering th->protect_tag as I see it
<whitequark>
but it doesn't
msch has joined #ruby-lang
stardiviner has joined #ruby-lang
<whitequark>
neither does wrapping the whole thingie in a catch(){}, which should also probably use protect
<whitequark>
through I'm not exactly sure again
<whitequark>
well, if I were you, I'd just grep the code for fibers near exception handlers, and that's it
workmad3 has joined #ruby-lang
tooky_ has joined #ruby-lang
tooky has quit [Ping timeout: 276 seconds]
<banisterfiend>
whitequark: im using it in a debugging context, where im using a fiber to provide input to a repl, but when the fiber provides input like 'next' or 'step' which advance execution
<banisterfiend>
i get the error
<msch>
ahhh rails prepared statements aren't prepared statements at all
<banisterfiend>
whitequark: so long as the input from the fiber isn't advancing execution (using next or step) i dont get the error
<whitequark>
mhm, I don't quite get
<whitequark>
so you use ruby-debug?
<banisterfiend>
kind of, im using pry-debugger, which wraps ruby-debug's next/step behaviour
<whitequark>
then it's ruby-debug which does the th->protect_tag magic
<whitequark>
mhm, what? ruby-debug has no ext/ ?..
gsav has joined #ruby-lang
<whitequark>
ruby-debug-base19 that should be.
Criztian has joined #ruby-lang
burgestrand has joined #ruby-lang
kennyvb has joined #ruby-lang
robin850 has joined #ruby-lang
<whitequark>
well, it definitely does funky stuff with rb_protect, but I'm too lazy to figure out how exactly that tangles with the fibers.
mdstunthamster has joined #ruby-lang
lorinc has joined #ruby-lang
pemeon has joined #ruby-lang
WillMarshall has joined #ruby-lang
chendo__ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kwando has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
drbrain has joined #ruby-lang
postmodern has quit [Quit: Leaving]
piyush_ has quit [Ping timeout: 244 seconds]
riffraff has joined #ruby-lang
gnufied has joined #ruby-lang
facest has joined #ruby-lang
faces has quit [Ping timeout: 255 seconds]
chendo__ has quit [Quit: Computer has gone to sleep.]
<apeiros_>
ary.concat other_ary.select { … } # I don't want the block to be associated with concat
jrbing has joined #ruby-lang
Hakon has quit [Ping timeout: 255 seconds]
heftig has quit [Quit: leaving]
<apeiros_>
andkerosine: anyway, the parser not being able to read your mind is the technical answer to your technical question. there are precedence rules and the parser can't possibly guess what you wanted.
<apeiros_>
for the same reason as it can't know that when you wrote 5*4+2 you actually meant 5*(4+2) - it'll use the precedence as defined by the syntax.
heftig has joined #ruby-lang
JohnBat26 has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby-lang
jarib has quit [Excess Flood]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
jarib has joined #ruby-lang
JohnBat26 has joined #ruby-lang
piyush_ has quit [Ping timeout: 240 seconds]
Hakon has joined #ruby-lang
Hakon has quit [Client Quit]
fromhet has quit [Quit: fromhet]
ruby-lang545 has joined #ruby-lang
outoftime has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
ruby-lang545 has quit [Ping timeout: 245 seconds]
robin850 has quit [Quit: Konversation terminated!]
mistym has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
umttumt has joined #ruby-lang
hynkle has joined #ruby-lang
tommyvyo has joined #ruby-lang
jperry2 has joined #ruby-lang
<Harzilein>
hmm
futurechimp has joined #ruby-lang
<Harzilein>
i'm searching for a specific natural language gem, it wraps a c library that uses english and japanese corpora for, among others, part of speech-tagging
<darix>
andkerosine: just because you can leave out brackets, it doesnt mean doing it all the time is a good idea.
<hramrach>
Harzilein: does such thing exist? AFAIK it is an open problem for most languages
<Harzilein>
andkerosine: i think its none of those
<hramrach>
anyone uses twitter?
robbyoconnor has quit [Read error: Connection reset by peer]
<hramrach>
would like to try what the turnaround of messages on that is and in absence of source I guess I would have to test on the single installation in existence
sepp2k1 has joined #ruby-lang
<Harzilein>
nobody _ever_ uses twitter ;)
bequick has joined #ruby-lang
cha1tanya has quit [Quit: आलोच..]
sepp2k has quit [Ping timeout: 276 seconds]
<hramrach>
hmm, I guess I can use remote display technology and multiple browsers and accounts
umttumt has quit [Remote host closed the connection]
agilob has quit [Ping timeout: 252 seconds]
agilob has joined #ruby-lang
<hramrach>
interesting
rolfb has joined #ruby-lang
jperry2_ has quit [Client Quit]
tooky has joined #ruby-lang
tooky_ has quit [Read error: Connection reset by peer]
alessio has quit [Read error: Connection reset by peer]
alessio has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
ttilley is now known as ttilley_off
andkerosine has left #ruby-lang [#ruby-lang]
futurechimp has quit [Ping timeout: 272 seconds]
erichmenge has joined #ruby-lang
futurechimp has joined #ruby-lang
piyush_ has joined #ruby-lang
kaiwren_ has joined #ruby-lang
kaiwren has quit [Ping timeout: 255 seconds]
kaiwren_ is now known as kaiwren
_bart has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
_bart has quit [Remote host closed the connection]
verbad has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dv310p3r has joined #ruby-lang
outoftime has joined #ruby-lang
kiddorails has quit [Ping timeout: 252 seconds]
<hramrach>
bah, twitter is relod in X seconds style app
<hramrach>
definitely not what I am looking for
slyphon_ has joined #ruby-lang
piyush_ has quit [Ping timeout: 264 seconds]
slyphon_ is now known as slyphon
kiddorails has joined #ruby-lang
sailias has joined #ruby-lang
facest has left #ruby-lang [#ruby-lang]
faces has joined #ruby-lang
<faces>
hramrach: facebook chat does what you're looking for i'm fairly sure, last i heard it's comet+json
<faces>
holds a connection open for ~60secs and if no data is recieved it closes and reopens, i assume to make sure the browser doesn't time it out
Austin__ has joined #ruby-lang
<faces>
it's not an example of ruby doing it though, but i dont see why it'd be any different using orbited or juggernaut
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<hramrach>
faces: I was looking for a sample where the source is available
<hramrach>
and then it being ruby or not would make a difference
<faces>
ah i figured since you were looking at twitter the source wasn't important
slyphon has quit [Quit: WeeChat 0.3.7]
<hramrach>
wanted to see a baseline of what can be achieved, and twitter account can be created easily
neocoin has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 240 seconds]
<hramrach>
I guess I can try from the other end and look at some comet framework
<faces>
if you're using something even somewhat similar to comet or juggernaut what you can achieve is only limited by what javascript can do, juggernaut out-of-the-box will let you send plain js and have it evaluated on the client
<hramrach>
since finished applications are hard to come by
<faces>
yeah theres not a lot of fleshed out examples, most of them are just the baseline "here's how to send->recieve data"
<mksm>
Hi. fog question: how can i start several ec2 instances simultaneously?
iamjarvo has joined #ruby-lang
sailias has quit [Quit: Leaving.]
<faces>
if you're using ec2 tools there's ec2-start-instances instance_id [instance_id ...]
<hramrach>
faces: that application looks interesting, thanks
<mksm>
i'm using fog
mssola has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
<faces>
whoops completely skipped over the word fog, sorry!
jxie has joined #ruby-lang
bassir has quit [Quit: bassir]
awwaiid has quit [Ping timeout: 252 seconds]
Sambalero has joined #ruby-lang
gsav has quit [Ping timeout: 276 seconds]
tailend has joined #ruby-lang
<tailend>
SomeClass.send(:include, Mod) inserts Mod above SomeClass in the inheritance heirarchy right? So some_class_instance.some_method is #some_method in the original class, not the included module. Is there a way to reverse that, so the module's #some_method takes precidence?
tjadc has quit [Ping timeout: 252 seconds]
<rue>
tailend: Use a proxy class, or extend the object
<rue>
There’s supposed to be a Module#prepend in 2.0
<tailend>
so I see
<rue>
So class Proxeeh < MyRealClass; include Woo; end
<tailend>
not an option Im afraid. The module in my gem must transparently patch a class in another gem.
<tailend>
thought I could do something with includes, class_eval and alias but not getting anyt where :/
<andrewhl>
is it possible to do number comparisons in switch statements? like case x; when > 4 ...;? IRB gives me a syntax error when I try this, but ranges seem to work fine.
mistym_ has quit [Remote host closed the connection]
robin850 has quit [Quit: Konversation terminated!]
Skif has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby-lang
akira989 has joined #ruby-lang
CoverSlide has joined #ruby-lang
tooky has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
dejongge has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby-lang
sora_h is now known as s0ra_h
slyphon has quit [Quit: WeeChat 0.3.7]
slyphon has joined #ruby-lang
verbad has joined #ruby-lang
Kero has quit [Ping timeout: 272 seconds]
wmoxam_ has joined #ruby-lang
wmoxam_ has quit [Client Quit]
ivanoats has quit [Quit: ivanoats]
Kero has joined #ruby-lang
Defusal has quit [Quit: zzz]
kvirani has joined #ruby-lang
Defusal has joined #ruby-lang
tjadc has joined #ruby-lang
vertroa has quit [Read error: Connection reset by peer]
s0ra_h is now known as sora_h
^sandbags^ has quit [Remote host closed the connection]
jperry2 has quit [Read error: Connection reset by peer]
verbad has quit []
piyush_ has quit [Ping timeout: 272 seconds]
kvirani has quit [Remote host closed the connection]
alessio has quit [Ping timeout: 272 seconds]
cantonic has quit [Quit: cantonic]
alessio has joined #ruby-lang
sora_h is now known as s0ra_h
_AtheoS_ has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
d3vic3 has joined #ruby-lang
jmcphers has quit [Quit: Leaving]
ttilley is now known as ttilley_off
<mistym>
Huh, I hadn't noticed before that Pathname#find isn't an enumerator, even though Find.find is.
cha1tanya has quit [Quit: आलोच..]
<rue>
Looks like they didn’t get around to it
woollyams has joined #ruby-lang
woollyams has quit [Client Quit]
hynkle has quit [Quit: Computer has gone to sleep.]
<mistym>
It's too bad, was going to do foo = pn.find.select { ... }
<rue>
Too bad
alessio has quit [Ping timeout: 264 seconds]
<mistym>
If I were to report that to the bug tracker, would that be a "bug" or "feature"?
<rue>
Feature
<rue>
And please do
<mistym>
"lib" category?
Criztian has joined #ruby-lang
<rue>
(Feature because the doc doesn’t say it •is• the same as Find.find, just that it uses it)
<rue>
Yes
akira989 has quit [Remote host closed the connection]
alessio has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
pemeon has joined #ruby-lang
<burgestrand1>
Anybody remember, and have the link to, a blog post from about 1-2 years ago talking about respond_to_missing and the difference between that and respond_to? I am aware of the difference, but I need a reference.
SuperSonicSound has quit [Ping timeout: 276 seconds]
gsav has quit [Quit: Lost terminal]
gsav has joined #ruby-lang
gsav has quit [Client Quit]
<zenspider>
someone know the inner-workings of vim? specifically, how it saves files?
<zenspider>
I have someone reporting what looks like a race condition between vim and autotest
<rue>
burgestrand: The ri not enough
<rue>
?
<rue>
zenspider: Weird…this is normal, external autotest, not hooked into vim at all?
havenn has joined #ruby-lang
<zenspider>
rue: correct
<zenspider>
he says he can get autotest to crash by simply saving a test file over and over
<zenspider>
and that the equivalent using `touch` doesn't work
<zenspider>
respond_to_missing?
<zenspider>
am I _that_ behind on 1.9 isms?
<rue>
It’s called if #respond_to? fails to find
<burgestrand>
rue: it fails to mention respond_to_missing? allows you to do receiver.method(:method_that_does_not_exist) assuming receiver.respond_to_missing?(:method_that_does_not_exist) returns ture
<burgestrand>
… ture = swedish true.
<rue>
Fel
<burgestrand>
Du är fel :(
* burgestrand
coughs
imperator has quit [Ping timeout: 264 seconds]
<burgestrand>
Anyhow, there was a blog post a while back that actually mentioned that particular feature, but I can’t seem to find it.
<zenspider>
perhaps because you're all fucking with me and it doesn't exist :P
<zenspider>
lies. you got james britt to put that there
<rue>
burgestrand: …How does that even work, with a proxy?
<burgestrand>
rue: I’d assume it just creates some dummy method. All methods have a reference to their receiver and their own name anyway, can’t be *that* different.
jperry2 has joined #ruby-lang
<burgestrand>
Usually you get a NameError if you try that, so ruby does some internal checking before x.method(name) returns the Method.
<burgestrand>
I suppose that’s just been changed to check respond_to_missing if available :)
sepp2k1 has quit [Read error: Connection reset by peer]
<rue>
That’s so…
<rue>
Undefinedy
<rue>
But appears to work
* burgestrand
nods
<rue>
Hm…also opens a socket to the WTF Are You Doing Police
<burgestrand>
There were even more things you were given if you defined respond_to_missing, but I don’t remember them all.
<burgestrand>
I just remember that, as long as you are on 1.9, you might as well define respond_to_missing instead of respond_to.
<rue>
Might it be in JEG2’s 1.9 stuff?
major_majors is now known as lawd
<burgestrand>
Hm, he does have a talent for blogging about these fun things, I’ll scour his articles, thanks.
lawd is now known as major_majors
<burgestrand>
Uh.
<burgestrand>
Yeah. Scour. Sure.
jperry2 has quit [Client Quit]
BigFatFatty has joined #ruby-lang
BigFatFa1ty has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
imperator has joined #ruby-lang
BigFatFatty has quit [Ping timeout: 252 seconds]
thone_ has quit [Read error: Operation timed out]
thone has joined #ruby-lang
bglusman_ has quit [Remote host closed the connection]
krz has quit [Quit: krz]
akira989 has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
chimkan has quit [Quit: chimkan]
slyphon has quit [Quit: WeeChat 0.3.7]
chimkan_ has joined #ruby-lang
akira989 has joined #ruby-lang
slyphon has joined #ruby-lang
slyphon has quit [Client Quit]
carlosed has joined #ruby-lang
carlosed has quit [Client Quit]
carlosed has joined #ruby-lang
carlosed has quit [Client Quit]
chimkan_ has quit [Ping timeout: 255 seconds]
erics has quit [Quit: Leaving...]
krz has joined #ruby-lang
ttilley_off is now known as ttilley
Banistergalaxy has quit [Ping timeout: 252 seconds]
ttilley is now known as ttilley_off
Banistergalaxy has joined #ruby-lang
<andrewvos>
Search twitter for "self of steam".
Guest___ has joined #ruby-lang
<TheDracle>
Is there an easy way to make your rails 3 REST api support searching by parameters on a resource?
<TheDracle>
I.E: GET /users?first_name=Bob
<TheDracle>
Or... GET /users.json?first_name=Bob
<TheDracle>
I could do it for specific parameters, but it would be nice to have it semi-automatic on some fields.
workmad3 has joined #ruby-lang
neocoin has joined #ruby-lang
Guest___ has left #ruby-lang [#ruby-lang]
enebo has quit [Ping timeout: 244 seconds]
gregmore_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 246 seconds]
headius has quit [Quit: headius]
<TheDracle>
Ah shit, that was meant for #rails, sorry guys.
rue_XIV has joined #ruby-lang
brianpWins_ has joined #ruby-lang
Caius has quit [Ping timeout: 252 seconds]
floyd2 has quit [Ping timeout: 252 seconds]
Skif has joined #ruby-lang
floyd2 has joined #ruby-lang
lupine_85 has quit [Ping timeout: 246 seconds]
brianpWins has quit [Ping timeout: 252 seconds]
brianpWins_ is now known as brianpWins
rue has quit [Ping timeout: 252 seconds]
Skif has quit [Client Quit]
Criztian has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
Criztian has quit [Read error: Connection reset by peer]
Berglund has joined #ruby-lang
solars has quit [Ping timeout: 272 seconds]
jrafanie_ has joined #ruby-lang
yxhuvud has quit [Ping timeout: 255 seconds]
Skif has joined #ruby-lang
jrafanie has quit [Ping timeout: 272 seconds]
heftig has quit [Ping timeout: 245 seconds]
jrafanie_ has quit [Read error: Connection reset by peer]
heftig has joined #ruby-lang
postmodern has joined #ruby-lang
srbartlett has joined #ruby-lang
imperator has quit [Ping timeout: 244 seconds]
Skif has quit [Quit: Leaving...]
chimkan has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 272 seconds]
codewrangler has joined #ruby-lang
Skif has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
ttilley_off is now known as ttilley
chimkan has quit [Quit: chimkan]
robbyoconnor has joined #ruby-lang
Rezwan has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
<Rezwan>
morning
heftig has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
pemeon has quit [Remote host closed the connection]
virunga has quit [Quit: Sto andando via]
savage- has quit [Read error: Operation timed out]
savage- has joined #ruby-lang
slyphon has joined #ruby-lang
enebo has joined #ruby-lang
scientes has quit [Ping timeout: 250 seconds]
bglusman has joined #ruby-lang
savage-_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]