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
<drbrain> erikh: in an API x-header you can likely use whatever
<whitequark> ^ that
<drbrain> depending on what the server will accept, of course
havenn has quit [Ping timeout: 252 seconds]
<erikh> drbrain: right, but that's what the standard client does and you do pass the salt along as well
<drbrain> I'd try Time.now.rfc2822 and not worry about the GMT stuff
x0F has quit [Ping timeout: 244 seconds]
<erikh> probably, I'm just trying to mimic the standard client atm
<erikh> uses HTTP::Date from perl
KU0N has quit [Quit: Leaving...]
xcyclist has quit [Quit: Leaving]
robotmay has quit [Remote host closed the connection]
robotmay has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
Watcher7 has joined #ruby-lang
Asher1 has joined #ruby-lang
x0F has joined #ruby-lang
Asher has quit [Ping timeout: 272 seconds]
bryancp has joined #ruby-lang
SpanishInquisiti has joined #ruby-lang
verto|off has left #ruby-lang [#ruby-lang]
<SpanishInquisiti> DUAL DETROIT BE IN DA HOW-SE MOTHERFUCKAS
Hakon|mbp has quit [Quit: Leaving...]
Hakon|mbp has joined #ruby-lang
woollyams has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
Hakon|mbp has quit [Client Quit]
A124 has joined #ruby-lang
gregf has joined #ruby-lang
gregf has quit [Client Quit]
behr has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
DRCALKIN has quit [Ping timeout: 244 seconds]
<drbrain> ugh, how did that get unset?
<drbrain> oops
headius has quit [Quit: headius]
QaDeS has quit [Quit: Ex-Chat]
<drbrain> odd
<drbrain> +q ~a isn't doing what I thought it would
<erikh> sweet I got it working
skipper has quit [Remote host closed the connection]
<erikh> thanks for the help
<erikh> drbrain: registered users only?
<erikh> I think that's +R
<erikh> +q is quiet
havenn has joined #ruby-lang
<drbrain> +q ~a$ is supposed to quiet all non-registered users
<drbrain> err, +q $~a
<drbrain> at least, that's what it says on the tin
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
<erikh> ah, I see.
chimkan_ has quit [Quit: chimkan_]
igotnolegs has joined #ruby-lang
jperry2 has joined #ruby-lang
<imperator> maybe he's registered?
<imperator> seems a strange thing to do with your time, though
<imperator> hm, apparently you can't add custom mode flags to File.open without messing things up
havenn has quit [Remote host closed the connection]
sandbags has quit [Ping timeout: 272 seconds]
Banistergalaxy has quit [Ping timeout: 250 seconds]
tomzx has quit [Ping timeout: 272 seconds]
gearaholic has joined #ruby-lang
avdi has quit [Ping timeout: 272 seconds]
acyed has joined #ruby-lang
nazty has joined #ruby-lang
gearaholic has quit [Remote host closed the connection]
bfreeman has quit [Quit: bfreeman]
naz has quit [Ping timeout: 244 seconds]
enebo has quit [Quit: enebo]
behr has quit [Remote host closed the connection]
gregf has joined #ruby-lang
tonesfrommars has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
savage- has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.3.7]
gregf has joined #ruby-lang
DRCALKIN has joined #ruby-lang
gnufied has joined #ruby-lang
Radium has quit [Ping timeout: 252 seconds]
dalekurt has joined #ruby-lang
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
sandbags has joined #ruby-lang
behr has joined #ruby-lang
basicxman is now known as derpemily
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
yugui_zzz is now known as yugui
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
bfreeman has joined #ruby-lang
bfreeman has quit [Ping timeout: 252 seconds]
behr has quit [Remote host closed the connection]
m0nki3 has joined #ruby-lang
behr has joined #ruby-lang
gate has quit [Quit: leaving]
gate has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
gate has left #ruby-lang [#ruby-lang]
headius has joined #ruby-lang
gregf has quit [Quit: WeeChat 0.3.7]
gregf has joined #ruby-lang
Constant_ has quit [Remote host closed the connection]
gate has joined #ruby-lang
cored has quit [Ping timeout: 272 seconds]
jperry2 has quit [Quit: Leaving.]
<m0nki3> Hello. Does anyone have recommendation for a website to learn packet programming in ruby?
<gate> m0nki3: as in TCP packets?
<m0nki3> Gate: yes, sorry if i was not clear .. i am trying to learn how to manipulate TCP packets
<m0nki3> I've tried to follow packetfu but i am not following its online doc on (rubydoc.info)
<m0nki3> i mean it's a bit unclear to me
<postmodern> m0nki3, you might want to checkout it's examples
bfreeman has joined #ruby-lang
<m0nki3> postmodern: thanks.
harukomoto has joined #ruby-lang
krohrbaugh has joined #ruby-lang
cads has joined #ruby-lang
m0nki3 has quit [Quit: Leaving]
seanstickle has joined #ruby-lang
bryno has quit [Ping timeout: 265 seconds]
urbanmonk has quit [Quit: Bye!]
gregf has quit [Quit: WeeChat 0.3.7]
gregf has joined #ruby-lang
tRAS has joined #ruby-lang
DRCALKIN has quit [Quit: Leaving]
bryno has joined #ruby-lang
Dreamer3 has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
ttilley has quit [Remote host closed the connection]
Dreamer3 has joined #ruby-lang
ndch has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
Radium_ has joined #ruby-lang
headius has quit [Quit: headius]
chendo_ has quit [Ping timeout: 265 seconds]
Radium_ has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
dr0id has joined #ruby-lang
chendo_ has quit [Ping timeout: 248 seconds]
chendo_ has joined #ruby-lang
<postmodern> what is the defacto method for enabling debugging output in applications/frameworks
<postmodern> ruby -d or ENV['DEBUG'] ?
<postmodern> er $DEBUG or ENV['DEBUG']
jenrzzz_ has joined #ruby-lang
jenrzzz_ has quit [Client Quit]
hahuang65 has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Quit: cantonic]
srbaker has joined #ruby-lang
dc5ala has joined #ruby-lang
imperator has joined #ruby-lang
looopy has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
rushed has quit [Quit: rushed]
imperator has quit [Quit: Leaving]
jenrzzz_ has joined #ruby-lang
jenrzzz_ has quit [Client Quit]
jenrzzz_ has joined #ruby-lang
jenrzzz_ has quit [Client Quit]
harukomoto has quit [Ping timeout: 240 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
seanstickle has quit [Quit: Nihil sub sole novum]
mike3 has quit [Quit: WeeChat 0.3.7]
cantonic has joined #ruby-lang
macmartine has quit [Quit: macmartine]
dr0id has quit [Ping timeout: 272 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby-lang
rippa has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
iamlacroix has quit [Remote host closed the connection]
iamlacroix has joined #ruby-lang
iamlacroix has quit [Ping timeout: 272 seconds]
bryancp has quit [Remote host closed the connection]
Z33K|Lux has quit []
tomzx has joined #ruby-lang
iamlacroix has joined #ruby-lang
ndch has quit [Quit: Leaving...]
srbaker has joined #ruby-lang
savage- has joined #ruby-lang
krz has quit [Quit: krz]
tRAS has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
petercooper has quit [Remote host closed the connection]
dr0id has joined #ruby-lang
tonesfrommars has quit [Quit: KVIrc 4.0.1 Insomnia http://www.kvirc.net/]
skinnyjames has joined #ruby-lang
TheHunter_1039 has quit [Quit: TheHunter_1039]
TheHunter_1039 has joined #ruby-lang
TheHunter_1039 has quit [Client Quit]
SpanishInquisiti has quit [Ping timeout: 245 seconds]
zenspider has quit [Ping timeout: 244 seconds]
zenspider has joined #ruby-lang
nofxx has quit [Ping timeout: 240 seconds]
chris2 has quit [Ping timeout: 244 seconds]
chris2 has joined #ruby-lang
nofxx has joined #ruby-lang
ryanf has joined #ruby-lang
macmartine has quit [Quit: macmartine]
crankharder has quit [Ping timeout: 272 seconds]
yxhuvud has joined #ruby-lang
looopy has quit [Remote host closed the connection]
vesan has quit [Read error: Connection reset by peer]
tla has quit [Remote host closed the connection]
vesan has joined #ruby-lang
crankharder has joined #ruby-lang
Watcher7 has quit [Remote host closed the connection]
hahuang65 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
A124 has quit [Read error: Connection reset by peer]
A124 has joined #ruby-lang
dalekurt has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
WillMarshall has quit [Ping timeout: 248 seconds]
vesan has joined #ruby-lang
Z33K|Lux has quit []
savage- has quit [Read error: Connection reset by peer]
savage- has joined #ruby-lang
KU0N has joined #ruby-lang
toretore has quit [Read error: Connection reset by peer]
toertore has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
dcorbin has quit [Read error: Connection reset by peer]
toertore has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
vesan has joined #ruby-lang
sandbags has quit [Read error: Connection reset by peer]
sandbags has joined #ruby-lang
iamlacroix has quit [Read error: Connection reset by peer]
iamlacroix has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
Rizzle has quit [Read error: Connection reset by peer]
gsav has quit [Ping timeout: 244 seconds]
Rizzle has joined #ruby-lang
Xzyx987X has joined #ruby-lang
gsav has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
robotmay has joined #ruby-lang
igotnolegs has quit [Quit: Computer has gone to sleep.]
solars has joined #ruby-lang
chimkan_ has joined #ruby-lang
cads has quit [Ping timeout: 272 seconds]
behr has quit [Remote host closed the connection]
skinnyjames has quit [Quit: skinnyjames]
kitallis has joined #ruby-lang
dcorbin has joined #ruby-lang
publicvoid_ has quit [Ping timeout: 245 seconds]
batmanian has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rolfb has joined #ruby-lang
zz_chrismcg is now known as chrismcg
slyphon is now known as slyphon_away
dalekurt has quit [Quit: Zzz...]
kitallis has quit [Ping timeout: 244 seconds]
heftig has quit [Quit: leaving]
zmack has joined #ruby-lang
ryanf has quit [Quit: leaving]
slyphon_away has quit [Ping timeout: 245 seconds]
tla has joined #ruby-lang
crekev has joined #ruby-lang
crekev has quit [Client Quit]
Xzyx987X has quit [Read error: Connection reset by peer]
robotmay has quit [Remote host closed the connection]
Xzyx987X has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 240 seconds]
shevy2 has joined #ruby-lang
shevy2 is now known as shevy
Banistergalaxy has joined #ruby-lang
pandora17 has joined #ruby-lang
behr has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby-lang
behr has quit [Remote host closed the connection]
hexreel has joined #ruby-lang
francisfish has joined #ruby-lang
crekev has joined #ruby-lang
robotmay has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
gnufied has quit [Quit: Leaving.]
gasbakid__ has joined #ruby-lang
gasbakid has quit [Read error: Operation timed out]
brianpWins has quit [Quit: brianpWins]
vmoravec has joined #ruby-lang
gnufied has joined #ruby-lang
tjadc has joined #ruby-lang
<Tasser> postmodern, I'd say take a look at rails
heftig has joined #ruby-lang
cdt has joined #ruby-lang
yugui is now known as yugui_zzz
sora_h is now known as s0ra_h
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
romeroabelleira has joined #ruby-lang
tomzx_ has joined #ruby-lang
tomzx has quit [Ping timeout: 245 seconds]
tomzx_ is now known as tomzx
workmad3 has joined #ruby-lang
Kevin___ has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 256 seconds]
crekev has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 250 seconds]
iamlacroix has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
s0ber has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby-lang
futurechimp has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
ViperMaul has quit [Ping timeout: 244 seconds]
postmodern has quit [Quit: Leaving]
adambeynon has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
ramonmaruko has joined #ruby-lang
adambeynon has quit [Client Quit]
adambeynon has joined #ruby-lang
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby-lang
pandora17 has quit [Quit: Leaving]
woollyams has joined #ruby-lang
heftig_ has joined #ruby-lang
heftig has quit [Ping timeout: 272 seconds]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
ramonmaruko has quit [Ping timeout: 245 seconds]
srbartlett has joined #ruby-lang
d3vic3 has quit [Ping timeout: 260 seconds]
d3vic3 has joined #ruby-lang
gnufied1 has joined #ruby-lang
gnufied has quit [Read error: Connection reset by peer]
beiter has joined #ruby-lang
ramonmaruko has joined #ruby-lang
kedare has joined #ruby-lang
shevy has quit [Ping timeout: 244 seconds]
dejongge has joined #ruby-lang
gasbakid__ has quit [Read error: Operation timed out]
QaDeS has joined #ruby-lang
gasbakid__ has joined #ruby-lang
shevy has joined #ruby-lang
dankest has quit [Read error: Connection reset by peer]
Dan- has joined #ruby-lang
sepp2k has joined #ruby-lang
s0ra_h is now known as sora_h
<zzak> good morning!
Guedes_out is now known as Guedes
robbyoconnor has quit [Ping timeout: 244 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
Guedes has quit [Ping timeout: 265 seconds]
Guedes has joined #ruby-lang
s0ber has joined #ruby-lang
beiter has quit [Quit: beiter]
Constant_ has joined #ruby-lang
Constant_ has quit [Remote host closed the connection]
<rue> Meh
<TTilus> is capturing stdin, stdout, stderr and process exit status possible with plain 1.8.7 (stdlib)
<TTilus> looks like i need open4 or 1.9.x
<rue> You could see what open4 does
S2kx has joined #ruby-lang
<rue> It’s possible
S1kx has quit [Ping timeout: 256 seconds]
tRAS has joined #ruby-lang
<jammi> do you know of any attempts to create an ExecJS environment by keeping a socket open between a nodejs instance and ruby, ruby being the parent process
<jammi> and feeding js to be evaluated through the socket
<shevy> jammi sounds like a cool idea, dont know of any project that tries that tho
<jammi> therubyracer and such approaches (integrating a js vm into the same process as ruby) seems to be a flaky idea. re-executing a nodejs instance is wasteful and slow
<jammi> shevy: ok, I might implement something like that when I get some spare time then
<jammi> could become something to execute stuff with in other intepreters in a similar way
<bnagy> not sure I'd do it with Socket
<bnagy> but I guess it depends on what your target interpreter supports
<jammi> could be done by piping too; keeping a pool of other-lang processes waiting for input and reading their output
denysonique has joined #ruby-lang
<bnagy> that doesn't scale so well though
tla has quit [Read error: Connection reset by peer]
<bnagy> someone is eventually going to want the JS engine on a different machine
<jammi> which would be wasteful, but at least each would start clean and there wouldn't be an initial wait for each as long as there are processes ready in the pool
tla has joined #ruby-lang
tla_ has joined #ruby-lang
tla has quit [Read error: Connection reset by peer]
tla has joined #ruby-lang
tla_ has quit [Read error: Connection reset by peer]
<bnagy> jammi: looks like nodejs has 0mq bindings. w00t.
<bnagy> use that :)
<jammi> as for sockets, distribution with tcp sockets would scale well and providing unix sockets locally (where supported) could work
romeroabelleira has quit [Remote host closed the connection]
<bnagy> no, actually tcp sockets suck balls
tla has quit [Read error: Connection reset by peer]
<jammi> I think a pool would be required anyway for any high-throughput system
tla has joined #ruby-lang
tla has quit [Read error: Connection reset by peer]
tla has joined #ruby-lang
<jammi> a disposable pool of workers might be the simplest, most straight-forward and generic approach, as one would work equally well for practically any intepreter/compiler that is stdin/stdout -savvy
tla has quit [Read error: Connection reset by peer]
<jammi> whether each pool were distributed or not
tla has joined #ruby-lang
tla_ has joined #ruby-lang
tla has quit [Read error: Connection reset by peer]
tla_ has quit [Read error: Connection reset by peer]
tla has joined #ruby-lang
rippa has joined #ruby-lang
tla_ has joined #ruby-lang
tla has quit [Read error: Connection reset by peer]
kyrylo has quit [Ping timeout: 248 seconds]
jarib has quit [Excess Flood]
gasbakid__ has quit [Quit: Quitte]
gasbakid has joined #ruby-lang
jarib has joined #ruby-lang
dv310p3r has quit [Ping timeout: 272 seconds]
heftig_ has quit [Quit: leaving]
<youngin> Guys that have things that can't be taught
apeiros_ has joined #ruby-lang
romeroabelleira has joined #ruby-lang
singpolyma has joined #ruby-lang
mark_locklear has joined #ruby-lang
gnufied1 has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
zwerg has joined #ruby-lang
iamlacroix has joined #ruby-lang
QaDeS has quit [Quit: Ex-Chat]
jperry2 has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
Hakon|mbp has joined #ruby-lang
heftig has joined #ruby-lang
Defusal has quit [Read error: Connection reset by peer]
soahccc` is now known as soahccc
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
chrismcg is now known as zz_chrismcg
tla_ has quit [Remote host closed the connection]
tomzx has quit [Ping timeout: 272 seconds]
romeroabelleira has quit [Remote host closed the connection]
tRAS has quit [Ping timeout: 244 seconds]
romeroabelleira has joined #ruby-lang
tRAS has joined #ruby-lang
enebo has joined #ruby-lang
banister has joined #ruby-lang
mistym has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
tommyvyo has joined #ruby-lang
zz_chrismcg is now known as chrismcg
lolmaus has joined #ruby-lang
romeroabelleira has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
<lolmaus> Is it true that instead of doing `def assign(block_var); @inst_var = block_var; end` i can simply do `def assign; @inst_var; end` with the same result? Like `my_object.assign "whatever"`
lolmaus was kicked from #ruby-lang by apeiros_ [if you ask in multiple channels, disclose that fact up-front. inform channels about answers you git. just cross-posting is rude.]
<heftig> looksirdroids: no
<heftig> er, oops
srbartlett has quit [Remote host closed the connection]
tRAS has quit [Quit: Mother, did it need to be so high?]
<TheHunter_1039> newb question - In a class, how do you know when use :symbols with attr_accessor oppose to just a variable name? - so attr_accessor :height vs attr_accessor height ?
chimkan_ has quit [Ping timeout: 260 seconds]
carloslopes has joined #ruby-lang
gix has quit [Ping timeout: 260 seconds]
<TheHunter_1039> figured it out. i'm an idiot. should have known
romeroabelleira has joined #ruby-lang
perryh is now known as perryh_away
<Defusal> does anyone actually use BrB?
gix has joined #ruby-lang
robbrit has joined #ruby-lang
mstratman has joined #ruby-lang
elux has joined #ruby-lang
voker57 has quit [Ping timeout: 272 seconds]
sora_h is now known as s0ra_h
TheHunter_1039 has left #ruby-lang [#ruby-lang]
TheHunter_1039 has joined #ruby-lang
s0ra_h is now known as sora_h
dalekurt has joined #ruby-lang
crudson has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dv310p3r has joined #ruby-lang
tRAS has joined #ruby-lang
rmascarenhas has joined #ruby-lang
gokul has joined #ruby-lang
heftig has quit [Quit: leaving]
ConstantineXVI has quit [Remote host closed the connection]
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
rippa has quit [Quit: derp herp]
dustacio has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
romeroabelleira has quit [Remote host closed the connection]
DefV has quit [Ping timeout: 272 seconds]
DefV has joined #ruby-lang
romeroabelleira has joined #ruby-lang
chrismcg is now known as zz_chrismcg
dustacio has joined #ruby-lang
dustacio has quit [Client Quit]
A124 has quit [Quit: Leaving.]
lsegal has joined #ruby-lang
mistym has joined #ruby-lang
tbuehlmann has joined #ruby-lang
pabloh has joined #ruby-lang
outoftime has joined #ruby-lang
zz_chrismcg is now known as chrismcg
<pabloh> is there a gem or library for sending serialized ruby objects over pipes?
<pabloh> (i know about drb, but i'm looking for something simpler)
<outoftime> pabloh: why not just use Marshal?
ConstantineXVI has joined #ruby-lang
<pabloh> outoftime: i think Marshal only solve the problem partially
<outoftime> pabloh: well it solves the serialization problem : )
<pabloh> yup :P
<pabloh> :)
<outoftime> pabloh: you can probably just use newlines to distinguish messages over the pipe
<pabloh> outoftime: sure?
<workmad3> if you want simpler, do you really need to serialize the entire object? or could you not transfer via json or some other text format?
<pabloh> outoftime: i have no idea how Marshar encodes objets
<pabloh> objects*
romeroabelleira has quit [Read error: Connection reset by peer]
<workmad3> (serializing entire objects always makes me wary as it tends to be much more fragile than just using a data interchange format :) )
<pabloh> workmad3: ideally i would want any kind of object, except for lambda which are throublesome anyway...
<pabloh> lambas*
romeroabelleira has joined #ruby-lang
<outoftime> pabloh: my guess is that the built-in marshalling would output data with no newlines. however, you can define your own marshaling format for your objects, so i guess there are no guarantees
<outoftime> pabloh: +1 on workmad3's comment, though.
<workmad3> pabloh: how about YAML then? that supports type declarations
<pabloh> outoftime: righth
romeroabelleira has quit [Remote host closed the connection]
<pabloh> workmad3: can u cover every possible object just with YAML?
<outoftime> pabloh: you could always, say, base64 encode the marshalled object, then you can easily delimit
<pabloh> outoftime: that could work
slyphon_away has joined #ruby-lang
<outoftime> pabloh: Yajl might be a good approach, since you can stream the encode/decode over the pipe
slyphon_away is now known as slyphon
<pabloh> outoftime: Yajl, u mean yaml?
<outoftime> pabloh: no, Yajl -- a streaming JSON encoder/decoder (also very fast)
krohrbaugh has joined #ruby-lang
<outoftime> pabloh: and non-prettified JSON definitely won't contain newline characters
<pabloh> outoftime: dind't know about Yajl, if it can detect delimiters by itsel it could be handy
<pabloh> outoftime: i don't want to implement a protocol by myself
<outoftime> pabloh: nah you'd still have to break out each line, but at least you can stream the output to the pipe, then a newline
<outoftime> pabloh: similarly you could read from the pipe and stream into a Yajl decoder until you hit a newline
<outoftime> pabloh: would be pretty simple methinks
<pabloh> outoftime: could work...
<pabloh> outoftime: know anything else about Yajl's json format?
<outoftime> pabloh: JSON is JSON. by the way, I think I'm wrong about you having to handle newlines
<pabloh> i mean, is json with or without the newlines?
<outoftime> pabloh: by default no newlines, but i don't think you have to even worry about that -- https://github.com/brianmario/yajl-ruby/
<outoftime> pabloh: search the README for "multiple"
<pabloh> outoftime: ok
bryancp has joined #ruby-lang
<pabloh> outoftime: memory usage is a bit high :(
<pabloh> for Yalj parser
<outoftime> pabloh: it's Ruby : )
banister has quit [Quit: Page closed]
hynkle has joined #ruby-lang
bglusman has joined #ruby-lang
looksirdroids has quit [Ping timeout: 245 seconds]
jacobwg has joined #ruby-lang
dejongge has quit [Quit: Leaving.]
slyphon has quit [Ping timeout: 245 seconds]
carloslopes has quit [Ping timeout: 245 seconds]
Fullmoon has joined #ruby-lang
Fullmoon has quit [Client Quit]
retro|cz has joined #ruby-lang
looksirdroids has joined #ruby-lang
Kevin___ has quit [Remote host closed the connection]
thone has joined #ruby-lang
thone_ has quit [Ping timeout: 272 seconds]
jxie has joined #ruby-lang
<gnufied> yajl is mostly C
<gnufied> it is just a wrapper around libyajl
gokul has quit [Quit: Leaving]
imperator has joined #ruby-lang
<pabloh> outoftime: it's seems is pretty easy to (without Yalj) using Ruby's JSON, and IO#gets and IO#puts, as long the JSON encoder never add a newline inside the string
ViperMaul has joined #ruby-lang
<outoftime> pabloh: sure, the advantage of Yajl is you can stream the output into the pipe as it encodes
<outoftime> pabloh: and decode as you read out of the pipe
macmartine has joined #ruby-lang
<pabloh> outoftime: can u be sure if JSON module won't put a newline at the stream?
<outoftime> pabloh: it shouldn't ever have a newline, no
<pabloh> outoftime: that's part of JSON's standard?
<outoftime> pabloh: I couldn't tell you that with authority.
<pabloh> ok
<pabloh> thx anyway :)
<outoftime> pabloh: just based on my experience, unless you ask for prettified JSON, it won't have newlines
tsou has joined #ruby-lang
lolmaus has quit []
headius has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
slyphon has joined #ruby-lang
|Vargas| has quit [Quit: ...]
<imperator> good morning
Austin__ has joined #ruby-lang
romeroabelleira has joined #ruby-lang
<imperator> why does git status sometimes show my repo x commits ahead of master, when it's not?
petercooper has joined #ruby-lang
<slyphon> imperator: i hit the EPIC MEAL TIME of 1.8.7 threading bugs yesterday
<slyphon> 8 hrs of beating my head against the keyboard
<slyphon> "How is my C extension corrupting things *this badly*!?"
<imperator> slyphon, ouch
<slyphon> "It's *gotta* be my code"
gsav has joined #ruby-lang
futurechimp has quit [Ping timeout: 252 seconds]
Skif_home has joined #ruby-lang
urbanmonk has joined #ruby-lang
nahhh has joined #ruby-lang
<slyphon> jesus
<slyphon> could vim's diff colors get any more eye stabby?
solars has quit [Read error: Operation timed out]
Skif has quit [Ping timeout: 240 seconds]
<rking> slyphon: There's like 10,000 color schemes to choose from.
<slyphon> rking: yes, i know, but vimdiff is horrid in EVERY SINGLE ONE
<rking> Hehe
<slyphon> white text on a BRIGHT MAGENTA background is bad
futurechimp has joined #ruby-lang
heftig has joined #ruby-lang
romeroabelleira has quit [Remote host closed the connection]
nahhh has quit [Quit: nahhh]
soahccc is now known as soahccc`
vmoravec has quit [Quit: Leaving]
Dan- has quit [Quit: Leaving...]
rolfb has quit [Quit: Leaving...]
Clordio has joined #ruby-lang
savage- has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
cesario__ has joined #ruby-lang
dkannan_ has joined #ruby-lang
msch has quit [Read error: Operation timed out]
dkannan has quit [Read error: Operation timed out]
cesario has quit [Read error: Operation timed out]
dbussink has quit [Read error: Operation timed out]
cldwalker has quit [Read error: Operation timed out]
dbussink has joined #ruby-lang
knu has quit [Ping timeout: 255 seconds]
knu has joined #ruby-lang
<singpolyma> What would people reccomend an an HTML sanitizer for Ruby these days?
ViperMaul has quit [Ping timeout: 255 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
<crankharder> I can't find "_original_to_s" in any part of rails, which leads me to believe it's part of BigDecimal in ruby, but I can't find it there either... any idea where this method is defined?
rippa has joined #ruby-lang
<heftig> crankharder: the first parameter is the new alias created
<heftig> crankharder: so it's defined right there
<heftig> then to_s is overwritten with to_formatted_s
kyrylo has quit [Quit: WeeChat 0.3.7]
kyrylo has joined #ruby-lang
<crankharder> ty
cldwalker has joined #ruby-lang
urbanmonk has quit [Quit: Bye!]
morozovm has joined #ruby-lang
dfr|mac has joined #ruby-lang
apeiros_ has joined #ruby-lang
kedare has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
solars has joined #ruby-lang
Clordio has quit [Quit: Computer has gone to sleep.]
dfr|mac has quit [Remote host closed the connection]
morozovm_ has joined #ruby-lang
tjadc has quit [Ping timeout: 272 seconds]
carloslopes has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
morozovm has quit [Ping timeout: 252 seconds]
morozovm_ is now known as morozovm
hynkle has quit [Quit: hynkle]
Harzilein_ has joined #ruby-lang
carloslopes has quit [*.net *.split]
knu has quit [*.net *.split]
dbussink has quit [*.net *.split]
krohrbaugh has quit [*.net *.split]
mistym has quit [*.net *.split]
singpolyma has quit [*.net *.split]
chris2 has quit [*.net *.split]
acyed has quit [*.net *.split]
Kero has quit [*.net *.split]
flebel has quit [*.net *.split]
UNIXgod has quit [*.net *.split]
dabradley has quit [*.net *.split]
aef has quit [*.net *.split]
Harzilein has quit [*.net *.split]
ged has quit [*.net *.split]
musl has quit [*.net *.split]
Kero has joined #ruby-lang
dr0id has quit [Quit: Leaving.]
mistym has joined #ruby-lang
carloslopes has joined #ruby-lang
KU0N has quit [Quit: Linkinus - http://linkinus.com]
Testish has quit [Quit: Page closed]
dbussink has joined #ruby-lang
knu has joined #ruby-lang
chris2 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
singpolyma has joined #ruby-lang
acyed has joined #ruby-lang
UNIXgod has joined #ruby-lang
flebel has joined #ruby-lang
dabradley has joined #ruby-lang
ged has joined #ruby-lang
aef has joined #ruby-lang
musl has joined #ruby-lang
slaytanic has quit [Remote host closed the connection]
zwerg has quit [Remote host closed the connection]
savage- has joined #ruby-lang
morozovm_ has joined #ruby-lang
slaytanic has joined #ruby-lang
Skif_home has quit [Quit: Linkinus - http://linkinus.com]
Skif has joined #ruby-lang
morozovm has quit [Ping timeout: 272 seconds]
morozovm_ is now known as morozovm
burgestrand has joined #ruby-lang
futurechimp has quit [Quit: This computer has gone to sleep]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
IPGlider has joined #ruby-lang
aef has quit [Excess Flood]
aef has joined #ruby-lang
jacobwg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mike3 has joined #ruby-lang
bfreeman has joined #ruby-lang
mike3 has quit [Client Quit]
soahccc` is now known as soahccc
mike3 has joined #ruby-lang
futurechimp has joined #ruby-lang
<apeiros_> pabloh: I haven't read the full backlog, but maybe you can use this code: https://github.com/apeiros/fork/blob/master/lib/fork.rb#L69-L94
<apeiros_> it's what I use to send objects between parent & fork
chrismcg is now known as zz_chrismcg
<pabloh> apeiros_: i already coded something :P, but I will check anyway
<apeiros_> workmad3: a simple length indicator is sufficient. newline won't work with binary formats ;-)
<apeiros_> the only sad thing is, I can't use the form where marshal writes to the IO directly, since I need to measure the size first.
<pabloh> apeiros_: ok, what's pack("I")/unpack("I") ?
<apeiros_> pabloh: en-/decodes an integer in binary
francisfish has quit [Remote host closed the connection]
tRAS has joined #ruby-lang
<apeiros_> hm, wonder why I used I instead of N… should change that (it's old code I refurbished, that one slipped…)
<burgestrand> Anybody know if there’s a way to define a custom FFI type that accepts *any* object, not just objects of a specific type?
mike3 has left #ruby-lang [#ruby-lang]
<burgestrand> I managed to work around it by setting the type to pointer and defining Object#to_ptr, but it’s kind of ugly. :p
<pabloh> apeiros_: the diff would be that 'N' always uses big endian and 'I' uses the "endianess" from your PC?
<pabloh> s/from/for
<apeiros_> pabloh: yes
<pabloh> ok
<apeiros_> aka native endian
<apeiros_> for forking it doesn't matter
<pabloh> sure
<apeiros_> since a fork won't be cross-architecture
<pabloh> is just a bit more correct to use N
<pabloh> but would work anyway
<pabloh> with I
romeroabelleira has joined #ruby-lang
hynkle has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
rolfb has joined #ruby-lang
<apeiros_> not more correct
<apeiros_> but more stable if you share data across a network
<apeiros_> on the same machine, I should be faster. but probably only academically.
<pabloh> apeiros_: would that code works under 64 bits?
buhhhh has joined #ruby-lang
dfr|mac has joined #ruby-lang
<apeiros_> sure
jnimety has joined #ruby-lang
jnimety has quit [Client Quit]
<pabloh> only if u send something smaller than 4GB :P
dalekurt has quit [Read error: Connection reset by peer]
dalekurt has joined #ruby-lang
mrsolo has joined #ruby-lang
<apeiros_> correct. the serialized size is at max 4gb
<apeiros_> means the raw data is even less
workmad3 has quit [Ping timeout: 272 seconds]
petercooper has quit [Remote host closed the connection]
<drbrain> I concur, just use N (or n)
<drbrain> had the UDP growl protocol Just Used N it wouldn't need special code to handle swapping endianness
bryancp has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
Hakon|mbp has quit [Quit: Leaving...]
mrsolo has joined #ruby-lang
futurechimp has quit [Quit: Leaving]
Hakon|mbp has joined #ruby-lang
Hakon|mbp has quit [Client Quit]
d3vic3 has quit [Quit: leaving]
iamlacroix has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 265 seconds]
iamlacroix has joined #ruby-lang
tla has joined #ruby-lang
ViperMaul has joined #ruby-lang
iamlacroix has quit [Ping timeout: 245 seconds]
d3vic3 has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
publicvoid_ has joined #ruby-lang
virunga has joined #ruby-lang
headius has quit [Quit: headius]
thorncp has left #ruby-lang [#ruby-lang]
apeiros has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
iamlacroix has joined #ruby-lang
bryancp has joined #ruby-lang
qpingu has quit [Quit: Leaving.]
qpingu has joined #ruby-lang
krz has joined #ruby-lang
qpingu has quit [Client Quit]
qpingu has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
Dreamer3 has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: adambeynon]
VGoff is now known as VGoff_afk
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
dkannan_ has left #ruby-lang [#ruby-lang]
robotmay has joined #ruby-lang
dkannan has joined #ruby-lang
workmad3 has joined #ruby-lang
Dreamer3 has joined #ruby-lang
wmoxam has joined #ruby-lang
dv310p3r has quit [Ping timeout: 272 seconds]
headius has joined #ruby-lang
romeroabelleira has quit [Remote host closed the connection]
Dreamer3__ has joined #ruby-lang
Dreamer3__ has quit [Max SendQ exceeded]
Hakon|mbp has joined #ruby-lang
Dreamer3 has quit [Ping timeout: 248 seconds]
Boohbah has joined #ruby-lang
hexreel is now known as hermano
iamlacroix has quit [Remote host closed the connection]
Dreamer3 has joined #ruby-lang
hermano is now known as hexreel
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby-lang
Dreamer3 has quit [Ping timeout: 256 seconds]
<crankharder> sorta academic question here: Say I have class Base ; end and then I do klass = Class.new(Base). what would you call klass? "class definition"? "dynamic class"?
<yxhuvud> no, you should not have class Base.
<crankharder> that's besides the point
kain has quit [Read error: Connection reset by peer]
iamlacroix has joined #ruby-lang
<shevy> klass downcased? I would call that a variable
kain has joined #ruby-lang
<robbrit> crankharder: you could call it an anonymous class
<robbrit> i'd call it a class object
harukomoto has joined #ruby-lang
<shevy> hmm
<shevy> a "class object"?
<andrewvos> You're a class object.
dalekurt has quit [Read error: Connection reset by peer]
cantonic has quit [Quit: cantonic]
<erikh> I'm a classy object
iamlacroix has quit [Remote host closed the connection]
<apeiros> crankharder: a class
<apeiros> and if you don't assign it to a constant, you *can* say an anonymous class. but the anonymity isn't that relevant.
workmad3 has quit [Ping timeout: 272 seconds]
iamlacro_ has joined #ruby-lang
gregf has quit [Remote host closed the connection]
gregf has joined #ruby-lang
workmad3 has joined #ruby-lang
Asher has quit [Quit: Leaving.]
dv310p3r has joined #ruby-lang
Asher has joined #ruby-lang
S2kx has quit [Read error: Connection reset by peer]
msch has joined #ruby-lang
<andrewvos> An class?
virunga has quit [Quit: Sto andando via]
tRAS has quit [Quit: Mother, did it need to be so high?]
tRAS has joined #ruby-lang
pabloh has quit [Quit: Ex-Chat]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
dv310p3r has quit [Ping timeout: 272 seconds]
<mistym> andrewvos: An hclass
headius has quit [Quit: headius]
Defusal_ has joined #ruby-lang
chimkan_ has joined #ruby-lang
Defusal has quit [Ping timeout: 244 seconds]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
Defusal_ has quit [Client Quit]
headius has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
<tsou> When did assignment beyond the end of strings become available to Ruby?
<tsou> like s = "hello"; s[10] = "!"
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
gouthamvel has joined #ruby-lang
morozovm_ has joined #ruby-lang
morozovm has quit [Read error: Operation timed out]
morozovm_ is now known as morozovm
slyphon has joined #ruby-lang
jacobwg has joined #ruby-lang
<carloslopes> tsou: here, this code doesn't work
<mistym> tsou: Is it available? It doesn't work for me in 1.9.3, or 1.8.7, or 1.8.6
<carloslopes> tsou: it work if s[2] = '!'
<carloslopes> from 0 to 4 in the index
<mistym> Going out of the string raises an IndexError on all versions I tried.
Dreamer3 has joined #ruby-lang
<tsou> hmmm something's weird.. I'm checking..
jacobwg has quit [Quit: Computer has gone to sleep.]
Hakon|mbp has quit [Remote host closed the connection]
<tsou> indeed for [10] it won't work, but s[s.length] = "!" works
<tsou> and according to what I'm reading, it shouldn't (The Ruby Programming Language)
<tsou> so I'm wondering when that changed...
tbuehlmann has quit []
<carloslopes> tsou: hmm interesting.. it seems that you can append a character to the string using this way
<tsou> yeap..
S2kx has joined #ruby-lang
<mistym> tsou: Aha, I get you.
<mistym> I see an IndexError on 1.8.6 and 1.8.7, works on 1.9.2 and 1.9.3. Looks like it changed in 1.9.smth?
S1kx has quit [Ping timeout: 252 seconds]
<carloslopes> yeah
<tsou> guess so
gouthamvel has quit [Ping timeout: 256 seconds]
<tsou> the book supposedly covers 1.9, so 1.9.1 or .2..
<tsou> thanks ;)
iamlacro_ has quit [Remote host closed the connection]
havenn has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
znz_v has quit [Ping timeout: 256 seconds]
JoelMcCracken has joined #ruby-lang
havenn has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 240 seconds]
Veejay has left #ruby-lang ["WeeChat 0.3.0"]
dv310p3r has joined #ruby-lang
Guedes is now known as Guedes_out
<shevy> soon 2.0 !
woollyams has joined #ruby-lang
<mistym> shevy: Will you still be using 1.8? ;)
<shevy> mistym hmm
<shevy> it's only my yaml files holding me back now
<shevy> #<Psych::SyntaxError: (/misc/network.yml): invalid trailing UTF-8 octet at line 1 column 1>
<mistym> Yikes.
<shevy> with syck the same file works
<shevy> YAML::ENGINE.yamler = 'syck'
<shevy> so actually, if I could replace psych with syck, all my yaml config files would work
<shevy> my solution shall be to switch away from yaml to something else
woollyams has quit [Client Quit]
<shevy> or ...
<shevy> I do a begin; rescue and switch to syck in those cases
gsav has quit [Read error: Connection reset by peer]
<drbrain> shevy: sounds like you don't actually have YAML files
<shevy> drbrain yeah they are invalid :(
workmad3 has quit [Ping timeout: 272 seconds]
twittard has joined #ruby-lang
<twittard> How do I get a test::unit task to print out each test that's being run / passes?
<twittard> Trying to figure out which "." is making jruby swallow itself
retro|cz has joined #ruby-lang
morozovm has quit [Quit: morozovm]
<twittard> Found it.
<twittard> rake test TESTOPTS="-v"
Austin__ has quit [Read error: Connection reset by peer]
Austin__1 has joined #ruby-lang
<twittard> Contributing to projects that use Test::Unit requires more effort than ones that use RSpec.
<imperator> how so?
znz_v has joined #ruby-lang
<rking> shevy: I still don't get why you don't fix the encodings.
<shevy> rking the problem is that all files will be in ISO-8859-1
<rking> Why will they?
<shevy> rking I can't change
<rking> =|
Austin__1 has quit [Remote host closed the connection]
mark_locklear has quit [Remote host closed the connection]
<mistym> shevy: Do your files work if you read them as ISO-8859-1 and then parse them?
<shevy> the .rb files all work when they have # Encoding: ASCII-8BIT
<erikh> the error is in psych
slyphon_ has joined #ruby-lang
<erikh> well, psych is throwing the error
<erikh> so probably not re: byte reading
<shevy> yaml file only with psych, however I think I may be able to rescue that error and switch to syck
<carloslopes> mistym: i read some files that are encoded as ISO-8859-1.. but it doesn't parse it correctly :/
slyphon has quit [Disconnected by services]
slyphon_ is now known as slyphon
<erikh> shevy: IIRC there's some code in rubygems that handles that pretty gracefully.
<shevy> I am working on some files right now, fixing errors like these scheduler.rb:83: invalid multibyte char (US-ASCII) (SyntaxError) :)
ConstantineXVI has quit [Remote host closed the connection]
<slyphon> drbrain: yo
<slyphon> drbrain: hit the wackiest bug ever last night
zmack has quit [Remote host closed the connection]
<mistym> shevy: What about when you File.read("foo.yml", :encoding => "iso-8859-1")? Why interpret them as US-ASCII when you know what they are?
<erikh> slyphon: 1.8.7 EOLs in june
<slyphon> yeah, i know
<erikh> ... or maybe it was july. either way it's on the website
<slyphon> HOW LUCKY CAN YOU GET?
<slyphon> erikh: good thing i got this one in before it dies!
<erikh> heh
<drbrain> slyphon: I think you'll get the response of "don't use fork with threads"
<drbrain> even though 1.8 has green threads
<erikh> doesn't fork in a thread have certain guarantees, or is that only 1.9?
<erikh> e..g, that all other threads will be terminates
<erikh> d*
<slyphon> 1.8 is green threads
<shevy> mistym, File.read("foo.yml", :encoding => "iso-8859-1") works fine, it's also only the psych YAML.load_file that gives the error
<slyphon> so it does all that shit in the interpreter
<slyphon> this works perfectly fine in 1.9
<slyphon> because the OS kills the other stuff
<drbrain> slyphon: no clue :/
<erikh> oh, I see.
<mistym> shevy: So if you YAML.load(File.read... w/ encoding) it works okay?
<shevy> mistym hmm yeah
jperry2 has quit [Quit: Leaving.]
<shevy> when I use YAML.load_file on the same file it does not
<mistym> YAML.load_file pry assumes UTF-8, since the YAML spec specifies UTF-8/UTF-16.
slyphon_ has joined #ruby-lang
slyphon has quit [Disconnected by services]
slyphon_ is now known as slyphon
<erikh> man, is the gist gem bugging out again?
krohrbaugh has quit [Read error: Connection reset by peer]
gnufied has quit [Quit: Leaving.]
<shevy> wheeee
<shevy> mistym, I think I fixed all the invalid multibyte char errors now for my largest project
<mistym> shevy: Yay!!
<shevy> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
diRect_z has joined #ruby-lang
<shevy> wonder if I can trust this as of yet ...
diRect_z has left #ruby-lang [#ruby-lang]
rippa has quit [Ping timeout: 260 seconds]
petercooper has joined #ruby-lang
<deryl> shevy, i haven't had any issues with it so far throwing a slew of different projects at it from rails based apps to plain ruby apps from different people and myself. i didn't go looking for incompatibilities mind you, howevere everything so far has run just fine if that is of *anY* use
hynkle has quit [Quit: hynkle]
ridders24 has joined #ruby-lang
kyrylo has quit [Ping timeout: 244 seconds]
<deryl> erikh, yes. something to do with ca_file https.ca_cert = ca_file iirc (line 358 i think it is in lib/gist.rb)
<shevy> yeah man I am peering at everything in distrust so far, but it seems I am really on 1.9.3 now hmmmm
mstratman has quit [Quit: mstratman]
<deryl> erikh, nothing back from defunkt in channel or on gist Issues. could just be busy, however, it has been a bit
hynkle has joined #ruby-lang
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby-lang
tommyvyo has quit [Remote host closed the connection]
<mistym> shevy: http://rubydoc.info/stdlib/psych/1.9.3/Psych.load_file - re: load_file, check the source here - Psych.load_file does force unicode on files it opens
<shevy> I see
<erikh> deryl: ah
tomzx has joined #ruby-lang
cesario__ has quit []
UNIXgod has quit [Quit: leaving]
cesario has joined #ruby-lang
srbartlett has joined #ruby-lang
robbrit has left #ruby-lang [#ruby-lang]
retro|cz has quit [Ping timeout: 265 seconds]
sepp2k1 has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
sepp2k has quit [Ping timeout: 272 seconds]
ridders24 has quit [Ping timeout: 245 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
carloslopes has quit [Quit: Leaving]
UNIXgod has joined #ruby-lang
<freedrull> is there a way to see what aliases are defined for a method?
havenn has joined #ruby-lang
woollyams has joined #ruby-lang
ilyam has joined #ruby-lang
harukomoto has quit [Ping timeout: 240 seconds]
wmoxam has quit [Quit: leaving]
jenrzzz has quit [Quit: Changing server]
jenrzzz has joined #ruby-lang
jenrzzz has quit [Client Quit]
<drbrain> freedrull: not really
<drbrain> freedrull: you can go through all the methods and compare source_locations when they're defined in ruby
havenn has quit [Remote host closed the connection]
harukomoto has joined #ruby-lang
jenrzzz has joined #ruby-lang
<elux> hey guys
<elux> is there a way to get access to request headers in some rack middleware before calling @app.call(env) ?
<elux> since the @app.call(env) will essentially build my response ..
<erikh> I don't know who made 1.9.3 warning clean but someone buy them a beer
<drbrain> elux: if you don't get a speedy response here you may want to try #rubyonrails
<drbrain> erikh: I helped
<imperator> erikh, pssh, they did it by suppressing many of them
<elux> thx
<erikh> imperator: still man, that's a lot of work
<erikh> drbrain: I owe you a beer!
<erikh> I probably owe you a few beers regardless
woollyams has quit [Quit: Computer has gone to sleep.]
<singpolyma> elux: headers are in env
<elux> singpolyma: yea i thought so too.. but i can find em in there
ConstantineXVI has joined #ruby-lang
<singpolyma> use Rack::Request.new(env) or whatever to parse them nicer
mrsolo has quit [Quit: Leaving]
<elux> cool thanks
<elux> custom headers too..?
<elux> like if i make a request with the header "X-Blah: someval"
<elux> i now see it as env['HTTP_X_BLAH'] which is good..
imperator has left #ruby-lang ["Leaving"]
<andrewvos> HTTP_X ALL THE THINGS
<elux> lol
<elux> YES
JoelMcCracken has quit [Ping timeout: 244 seconds]
bryancp has quit [Remote host closed the connection]
Defusal has quit [Read error: Connection reset by peer]
crekev has joined #ruby-lang
savage-_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
savage- has quit [Ping timeout: 245 seconds]
krzkrzkrz has joined #ruby-lang
krz has quit [Ping timeout: 244 seconds]
krzkrzkrz is now known as krz
brianpWins has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
elux has quit [Quit: Bye!]
outoftime has quit [Quit: Leaving]
chimkan_ has quit [Quit: chimkan_]
Defusal has joined #ruby-lang
Defusal has quit [Read error: Connection reset by peer]
<freedrull> i'm trying to do a class_eval in an active_record callback. does anyone know enough about how active_record callbacks work to know why this wouldn't work? https://gist.github.com/2705583
srbartlett has quit [Remote host closed the connection]
gsav has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
rmascarenhas has joined #ruby-lang
lele has quit [Ping timeout: 272 seconds]
apeiros has quit [Remote host closed the connection]
lele has joined #ruby-lang
postmodern has joined #ruby-lang
enebo has quit [Quit: enebo]
crekev has quit [Quit: crekev]
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
mistym has joined #ruby-lang
bryancp has joined #ruby-lang
hynkle_ has joined #ruby-lang
Nisstyre is now known as trollstyre
hynkle has quit [Ping timeout: 245 seconds]
hynkle_ is now known as hynkle
solars has quit [Ping timeout: 244 seconds]
agarie has joined #ruby-lang
Harzilein_ has left #ruby-lang [#ruby-lang]
harukomoto has left #ruby-lang [#ruby-lang]
Watcher7 has joined #ruby-lang
srbartlett has joined #ruby-lang
<andrewvos> freedrull: That's a bit weird what you're trying to do.
bglusman has quit [Remote host closed the connection]
<andrewvos> freedrull: Why are you doing it after the item gets saved?
<andrewvos> freedrull: Why not just def job_owner?
havenn has joined #ruby-lang
<countdigi> i would like to do something in spec_helper.rb where i want to capture the filename of the spec that is currently running
<freedrull> andrewvos: eh, job_owner_type isn't known until the object is created
<countdigi> is that possible?
s0ra_h is now known as sora_h
<countdigi> even though eg wiki_spec.rb is calling spec_helper.rb, __FILE__ in spec_helper.rb reports back ../../spec_helper.rb
<countdigi> I want to get the name wiki_spec.rb but from within lexical context of spec_helper.rb
<andrewvos> freedrull: Your point being?
WillMarshall has joined #ruby-lang
<rue> andrewvos: That supply capitalism rules?
gregf has quit [Quit: WeeChat 0.3.7]
havenn has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
dv310p3r has quit [Ping timeout: 248 seconds]
IPGlider has quit []
ivanoats has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
enebo has joined #ruby-lang
krz has quit [Ping timeout: 272 seconds]
krzkrzkrz is now known as krz
aef has quit [Remote host closed the connection]
aef has joined #ruby-lang
Guest25836 has quit [Remote host closed the connection]
looksirdroids is now known as kish