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
<erikh> yes
<erikh> mruby's source is fairly pretty C
jasiek has quit [Read error: Connection reset by peer]
tallship has joined #ruby-lang
jasiek has joined #ruby-lang
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
tomb__ has quit [Ping timeout: 245 seconds]
dagobah has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 245 seconds]
shevy has joined #ruby-lang
tomb__ has joined #ruby-lang
dagobah_ has joined #ruby-lang
qpingu has quit [Quit: Leaving.]
wlfman2k1 has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
WillMarshall has joined #ruby-lang
carloslopes has joined #ruby-lang
brushbox has joined #ruby-lang
igotnolegs has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wesgurn has joined #ruby-lang
micsha has joined #ruby-lang
<micsha> ok, I need to know if it's possible for the core ruby language 1.9.3 to work with raw, arbitrary, binary data.
wesgurn has left #ruby-lang [#ruby-lang]
wesgurn has joined #ruby-lang
<heftig> micsha: you can parse binary data using unpack
<micsha> doesn't work
<heftig> why not?
<micsha> you tell me
<micsha> just hasn't worked for me thus far
<micsha> unpack works but it doesn't help me solve my problem
<micsha> so i should say it doesn't work *for me*
<micsha> I need to receive data from a tcp stream, process the data such in raw binary form and I need write the processed binary blob to a file
stardiviner has joined #ruby-lang
<micsha> i can receive the data, but I can't process the data *and* I can't get the binary data to remain binary.
<micsha> if I read the data and push it into an array then the data changes types to a fixnum and I have problems writing the data to a file in binary
wesg has joined #ruby-lang
<lianj> micsha: example?
<micsha> 1 sec
<erikh> woot!
<erikh> got a little interpreter for mruby
<heftig> ew, you are reading byte-by-byte?
<micsha> no other way has worked for me thus far
<heftig> why'd you do that?
<heftig> s.read should just get you a string
<micsha> an almost 60k long string?
<heftig> so?
<micsha> and just process the string using like get_byte or something?
<heftig> what kind of transformations do you need to do?
<micsha> i'm asking if it's possible or if ruby will puck
<micsha> *puke
<micsha> cut every second byte out of the string
<lianj> huh, we had this example some nights ago, right?
<micsha> might hav
<micsha> *have
<wesgurn> ruby compile question.  i am trying to get ruby 1.9.3p194 to compile with openssl on solaris 10.  i have openssl in /usr/local/ssl .  what is the configure flags to make it see it there?  i don't see the openssl-dir option on 1.9.3 for ./configure
<lianj> micsha: did you just ignore it?
<micsha> ignore what?
<lianj> the solution
<micsha> the one liner that was given to me?
<lianj> yes
<micsha> it didn't work, header was recognized as proper but the binary was broken
<lianj> then its maybe an issue with your goal in this level
whitequark has quit [Ping timeout: 272 seconds]
<micsha> also, I'm trying to learn how write ruby, so nothing personal but giving me the solution doesn't help me the way I need
<micsha> also possible
whitequark has joined #ruby-lang
<lianj> ok have fun then. but you dont need IO.binwrite etc
<micsha> I don't understand why I wouldn't.
<wesgurn> ruby compile question.  i am trying to get ruby 1.9.3p194 to compile with openssl on solaris 10.  i have openssl in /usr/local/ssl .  what is the configure flags to make it see it there?  i don't see the openssl-dir option on 1.9.3 for ./configure
<lianj> micsha: File.open('foo', 'wb'){|f| f.print your_string } is enough
<micsha> I'm really not trying to be a dick. I know it probably comes across that way, I'm just trying to understand what it is that I'm not understanding
<micsha> but will it write the file in raw binary or as an ascii string of the equivilent?
<lianj> 'wb' = write binary
<micsha> I'll give it a shot.
<micsha> gimme a second to scratch something up.
<lianj> i think youre confused what binary in that context is ;) but np
carloslopes has quit [Quit: Leaving]
<micsha> Ok, so I'm a C programmer originally, so I'm used to everything being a number and the only difference between 'A' and 41 was presentation.
<lianj> whats the specific description for that level anyway?
<micsha> use the .read and .write methods, correct?
<erikh> wesgurn: ./configure --help provides no insight?
<lianj> micsha: yes
<lianj> micsha: i just got the password. my oneliner from the other day works just fine
<micsha> seriously?!
<micsha> [grumble]
<micsha> don't tell me I want to figure it out myself...
<wesgurn> erikh: i didn't see how to specify my openssl
<lianj> micsha: yes
replore_ has joined #ruby-lang
<micsha> it segfaulted for me
<lianj> not here
<lianj> md5 is 8dd2694d29e81059ab7cf6f1a7c61c3a
neoesque has joined #ruby-lang
<erikh> wesgurn: honestly, I don't remember. I'm sorry.
<erikh> you probably just need to stuff the include & lib paths into somewhere in the configure process that ruby can find it
chessguy has quit [Remote host closed the connection]
WillMarshall has quit [Quit: Computer has gone to sleep.]
<micsha> yeah, lianji, it just causes a segmentation fault
Rakko has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
<lianj> micsha: same md5?
<micsha> yeah, I just don't get it. I don't understand how yours works because it's all one line. I'm not sure where ruby starts interpreting that line
<micsha> i can check, hold on
wallerdev has joined #ruby-lang
<micsha> not even close
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
<micsha> it doesn't work on windows...
<micsha> it damages the binary on the way in
<micsha> at some point
<micsha> not sure where or how but it damages the binary on windows
<lianj> do it in linux then :P
<micsha> yeah I'm just going to forget i was stupid enough to not try that first
<erikh> you could probably just call binwrite and avoid all that unpacking crap
<micsha> cause... yeah...
JoelMcCracken has joined #ruby-lang
<micsha> hah! fun fact
<micsha> binwrite isn't available in 1.9.2
<micsha> :(
<erikh> ouch.
<micsha> yeah...
agile has quit [Ping timeout: 260 seconds]
<micsha> ok... i just need to figure out why this works...
<micsha> I'm gonna go cry in a corner now.
<micsha> thanks for your help lianj
micsha has left #ruby-lang [#ruby-lang]
Dreamer3 has quit [Quit: Leaving...]
lsegal has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
micsha has joined #ruby-lang
<micsha> yeah, there's no way I would have figured this out
shevy2 has joined #ruby-lang
<erikh> would anyone be interested in pairing with me on fitting nginx and mruby together?
shevy has quit [Ping timeout: 244 seconds]
shtirlic_ has joined #ruby-lang
<micsha> what books does anyone recommend, I'm working with book of ruby right now. anything else I should look at.
<micsha> ?
shtirlic has quit [Ping timeout: 244 seconds]
<erikh> hrm. are you familiar with ruby-doc.org?
<erikh> or your 'ri' tool
<micsha> erikh it's been my go-to resource for a while
<erikh> cool. I don't have much else to recommend, then
<erikh> other than some practice of course.
<deryl> micsha: i would also highly recommend The Well Grounded Rubyist
<deryl> and working it end to end
<micsha> thanks, I'll check those out
<micsha> I've been reading through the book of ruby
<micsha> any thoughts on that?
<deryl> i checked it out very very briefly
<deryl> i've been using TWGR and find it fits *me* perfectly and is very easy to read and definitely is presented in such a way that retention is very high
<micsha> truthfully I haven't found a ruby book that is good at teaching *yet*
<micsha> they're all just ok
<micsha> The book of ruby is fairly easy to read through
<micsha> retention is a little low
<micsha> the only way I've found that I remember how to do it just to beat my head against a wall trying to do something.
stardiviner has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
stardiviner has quit [Client Quit]
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
msaffitz has joined #ruby-lang
perryh_away is now known as perryh
brunocoelho has joined #ruby-lang
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
stardiviner has joined #ruby-lang
chendo_ has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 244 seconds]
casey_ has joined #ruby-lang
casey_ has left #ruby-lang [#ruby-lang]
dfr|mac has quit [Remote host closed the connection]
jbsan has quit [Read error: No route to host]
jbsan has joined #ruby-lang
seanstickle has joined #ruby-lang
tallship has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
zmack has joined #ruby-lang
schroedinbug has quit [Ping timeout: 260 seconds]
WillMarshall has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
msaffitz has joined #ruby-lang
micsha has left #ruby-lang [#ruby-lang]
Zyclops1 has joined #ruby-lang
acyed has quit [Remote host closed the connection]
brunocoelho has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
ruby-lang140 has quit [Ping timeout: 245 seconds]
msaffitz has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
seanstickle has quit [Quit: Nihil sub sole novum]
wasnotrif has left #ruby-lang [#ruby-lang]
fayimora has quit [Quit: Busy…..zzzzz]
fayimora has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
msaffitz has joined #ruby-lang
WillMarshall has quit [Ping timeout: 260 seconds]
rmascarenhas has quit [Quit: leaving]
wlfman2k1 has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
wlfman2k1 has quit [Remote host closed the connection]
savage- has joined #ruby-lang
drumond19 has quit [Remote host closed the connection]
fayimora has quit [Quit: Busy…..zzzzz]
replore_ has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
gouthamvel has joined #ruby-lang
neocoin has joined #ruby-lang
TheRealmccoy has joined #ruby-lang
gouthamvel has quit [Ping timeout: 260 seconds]
rippa has joined #ruby-lang
hachiya has quit [Ping timeout: 252 seconds]
hachiya has joined #ruby-lang
krz has joined #ruby-lang
Rakko has quit [Quit: Bye]
savage- has quit [Remote host closed the connection]
imperator has joined #ruby-lang
msaffitz has joined #ruby-lang
yxhuvud has joined #ruby-lang
gouthamvel has joined #ruby-lang
gtown25nick has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
tonesfrommars has quit [Quit: KVIrc 4.0.1 Insomnia http://www.kvirc.net/]
dalekurt has quit [Quit: Zzz...]
gtown25nick has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
burgestrand has quit [Quit: Leaving.]
hakunin has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
dc5ala has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
jtoy has joined #ruby-lang
solars has joined #ruby-lang
zmack has quit [Ping timeout: 260 seconds]
wesg has quit [Quit: Page closed]
zmack has joined #ruby-lang
jedmtnman has quit [Quit: Leaving.]
jtoy has quit [Quit: jtoy]
Z33K|Lux has quit []
Karmaon has joined #ruby-lang
heftig has quit [Quit: leaving]
shtirlic_ has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
frem has quit [Quit: Farewell!]
outsmartin has joined #ruby-lang
ryanf has joined #ruby-lang
aLinux has joined #ruby-lang
<aLinux> hi, are these same? https://gist.github.com/2908797
aLinux has left #ruby-lang [#ruby-lang]
outsmartin has quit [Quit: Leaving.]
srbartlett has joined #ruby-lang
shyouhei has quit [Ping timeout: 272 seconds]
shyouhei has joined #ruby-lang
shyouhei has quit [Remote host closed the connection]
shyouhei has joined #ruby-lang
kitallis has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<rue> Do they produce the same result?
<rue> Also, #ror
ryanf has quit [Quit: leaving]
qwerxy has joined #ruby-lang
rippa has quit [Ping timeout: 245 seconds]
rippa has joined #ruby-lang
TheHunter_1039 has quit [Quit: TheHunter_1039]
igotnolegs has quit [Quit: Computer has gone to sleep.]
heftig has joined #ruby-lang
rippa has quit [Ping timeout: 245 seconds]
saLOUt_ has joined #ruby-lang
Criztian has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
d3vic3 has joined #ruby-lang
gasbakid has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby-lang
gouthamvel has quit [Ping timeout: 260 seconds]
srbartlett has quit [Remote host closed the connection]
fserb has joined #ruby-lang
Zyclops1 has quit [Ping timeout: 244 seconds]
Zyclops has joined #ruby-lang
gasbakid has quit [Remote host closed the connection]
abuiles has joined #ruby-lang
bfreeman has quit [Ping timeout: 246 seconds]
Facefox has quit [Remote host closed the connection]
Facefox has joined #ruby-lang
darkswoop has joined #ruby-lang
francisfish has joined #ruby-lang
qwerxy has quit [Quit: offski]
Fullmoon has joined #ruby-lang
outsmartin has joined #ruby-lang
zmack has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby-lang
shtirlic has quit [Ping timeout: 260 seconds]
gasbakid has joined #ruby-lang
darkswoop has quit [Quit: Leaving...]
robotmay has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
fserb has quit [Quit: ttyl]
fserb has joined #ruby-lang
sora_h is now known as s0ra_h
gouthamvel has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
WillMarshall has joined #ruby-lang
fserb has quit [Client Quit]
toretore has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
gianlucadv has quit [Quit: ZNC - http://znc.sourceforge.net]
TheRealmccoy has left #ruby-lang [#ruby-lang]
cdt has joined #ruby-lang
zmack has joined #ruby-lang
zmack_ has joined #ruby-lang
workmad3 has joined #ruby-lang
zmack has quit [Ping timeout: 260 seconds]
TheRealmccoy has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
A1241 has quit [Quit: Leaving.]
zmack has joined #ruby-lang
TheRealmccoy has left #ruby-lang [#ruby-lang]
workmad3 has quit [Ping timeout: 260 seconds]
zmack_ has quit [Ping timeout: 260 seconds]
futurechimp has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
yannis has joined #ruby-lang
stamina has joined #ruby-lang
<andrewvos> rooar
darkswoop has joined #ruby-lang
gokul has joined #ruby-lang
robwilliamsuk has joined #ruby-lang
akamike has joined #ruby-lang
shtirlic has joined #ruby-lang
perryh is now known as perryh_away
nevynxxx has joined #ruby-lang
qwerxy has joined #ruby-lang
s0ra_h is now known as sora_h
Hakon|mbp has joined #ruby-lang
neoesque has quit [Quit: Bye!]
Zyclops has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 260 seconds]
pokky has joined #ruby-lang
pokky has quit [Client Quit]
heftig has quit [Quit: leaving]
tekin_ has joined #ruby-lang
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby-lang
arooni-mobile has joined #ruby-lang
zz_chrismcg is now known as chrismcg
cantonic_ has joined #ruby-lang
cantonic has quit [Ping timeout: 245 seconds]
cantonic_ is now known as cantonic
Criztian_ has joined #ruby-lang
Criztian has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
mdstunthamster has joined #ruby-lang
kain has joined #ruby-lang
sora_h is now known as s0ra_h
abuiles has quit [Read error: Operation timed out]
beawesomeinstead has quit [Read error: Operation timed out]
L0rdShrek has quit [Read error: Operation timed out]
brownies has quit [Read error: Operation timed out]
timbleck has quit [Ping timeout: 265 seconds]
<andrewvos> Can't help but think that this is missing the point https://github.com/egonSchiele/contracts.ruby
<andrewvos> Not that I've released any amazing gems or anything.
outsmartin has quit [Quit: Leaving.]
agib has quit [Ping timeout: 248 seconds]
mccraig has quit [Ping timeout: 244 seconds]
s0ra_h is now known as sora_h
akahn has quit [Ping timeout: 246 seconds]
denysonique has quit [Ping timeout: 245 seconds]
wycats has quit [Ping timeout: 245 seconds]
cesario has quit [Ping timeout: 245 seconds]
akamike has quit [Ping timeout: 260 seconds]
relix has quit [Ping timeout: 260 seconds]
mrb_bk has quit [Ping timeout: 260 seconds]
d3vic3 has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 244 seconds]
d3vic3 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<oddmunds> i'm not sure that those are useful messages for the user
gouthamvel has quit [Read error: Connection reset by peer]
riffraff has joined #ruby-lang
<andrewvos> oddmunds: Indeed.
francisfish has quit [Remote host closed the connection]
Guedes_out is now known as Guedes
Zyclops1 has joined #ruby-lang
robwilliamsuk has quit [Quit: I'm outta here]
francisfish has joined #ruby-lang
hagabaka has quit [Remote host closed the connection]
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Zyclops1 has left #ruby-lang [#ruby-lang]
dhruvasa1ar has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
Fullmoon has joined #ruby-lang
danielferguson has joined #ruby-lang
danielferguson has left #ruby-lang [#ruby-lang]
srbartlett has joined #ruby-lang
dhruvasa1ar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
fayimora has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
<shevy2> shevy #ruby-lang :Cannot change nickname while banned on channel
dhruvasagar has quit [Ping timeout: 245 seconds]
<andrewvos> shevy2: You're banned?
<shevy2> nah
<shevy2> I think not
<shevy2> I think it has to do with the voice here or something
<shevy2> or that you need to be registered to speak on #ruby-lang since some months
shevy2 is now known as shevy
dhruvasagar has joined #ruby-lang
<andrewvos> yeah
<andrewvos> you do
gokul has quit [Quit: Leaving]
jedmtnman has joined #ruby-lang
<shevy> it's a bit annoying because my provider assigns new dynamic IPs quite often, and then I get disconnected
<andrewvos> EC2
cjs226 has quit []
fayimora has quit [Quit: Be back in a gifii]
fayimora has joined #ruby-lang
macmartine_ has joined #ruby-lang
zmack has quit [Remote host closed the connection]
cronin102 has joined #ruby-lang
tommyvyo has quit [Ping timeout: 244 seconds]
lele has quit [Ping timeout: 272 seconds]
macmartine has quit [Ping timeout: 240 seconds]
Asher1 has joined #ruby-lang
tekin_ has quit [Ping timeout: 244 seconds]
krz has quit [Ping timeout: 244 seconds]
tekin__ has joined #ruby-lang
levicole has quit [Ping timeout: 244 seconds]
levicole has joined #ruby-lang
macmartine_ is now known as macmartine
dphase has quit [Ping timeout: 240 seconds]
DEac- has quit [Remote host closed the connection]
CodeBlock has quit [Ping timeout: 240 seconds]
zzak has quit [Ping timeout: 244 seconds]
ltd- has quit [Ping timeout: 244 seconds]
tommyvyo_ has joined #ruby-lang
Asher has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
zzak has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dabradley has quit [Ping timeout: 244 seconds]
krz has joined #ruby-lang
dphase has joined #ruby-lang
ltd- has joined #ruby-lang
any-key has quit [Ping timeout: 240 seconds]
any-key has joined #ruby-lang
setmeaway2 has joined #ruby-lang
Skif has quit [Ping timeout: 240 seconds]
CodeBlock has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
brunocoelho has joined #ruby-lang
cronin101 has quit [Ping timeout: 240 seconds]
dv310p3r has quit [Ping timeout: 260 seconds]
Skif has joined #ruby-lang
tekin__ has quit [Client Quit]
DEac- has joined #ruby-lang
kalleth__ has left #ruby-lang [#ruby-lang]
kalleth has joined #ruby-lang
kain has quit [Quit: Sto andando via]
mark_locklear has joined #ruby-lang
dasibre has quit [Remote host closed the connection]
dasibre has joined #ruby-lang
jxie has quit [Quit: leaving]
A124 has joined #ruby-lang
saLOUt_ has quit [Remote host closed the connection]
dasibre has quit [Remote host closed the connection]
saLOUt_ has joined #ruby-lang
mhi^ has joined #ruby-lang
SimSala has joined #ruby-lang
postmodern has quit [Quit: Leaving]
cjs226 has joined #ruby-lang
bryancp has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
spuk has joined #ruby-lang
andrewhl has joined #ruby-lang
tekin has joined #ruby-lang
dalekurt has joined #ruby-lang
slyphon has joined #ruby-lang
imperator has joined #ruby-lang
apeiros_ has joined #ruby-lang
gix has quit [Ping timeout: 245 seconds]
neocoin has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
gix has joined #ruby-lang
fgomez has quit [Ping timeout: 256 seconds]
heftig has joined #ruby-lang
bglusman has joined #ruby-lang
hynkle has joined #ruby-lang
jperry2 has joined #ruby-lang
mytrile has joined #ruby-lang
jperry2 has quit [Client Quit]
jperry2 has joined #ruby-lang
jperry2 has left #ruby-lang [#ruby-lang]
bryancp has quit [Remote host closed the connection]
jperry2 has joined #ruby-lang
ttilley_off is now known as ttilley
andrewhl has quit [Remote host closed the connection]
mytrile has quit [Read error: Connection reset by peer]
mytrile has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
kitallis has quit [Read error: Connection reset by peer]
kitallis has joined #ruby-lang
futurechimp has quit [Quit: Leaving]
enebo has joined #ruby-lang
<jamo> Im trying to white some code to html, and I have some js, which has plenty of / and \ chars. Is there a way to have a String so that '\' has no psecial meaning?
<jamo> *special
<jamo> I mean that it creates eventually a html file,
<jamo> dums a fev .java files to a html with nice syntax hilight. and that js is for syntax hilight
<jamo> *dump a few... sorry for typos :)
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby-lang
<Mon_Ouie> No, but why not use a separate template file and a library like ERB?
yorickpeterse is now known as yorick-cowboy
mhi^ has left #ruby-lang [#ruby-lang]
dv310p3r has joined #ruby-lang
yorick-cowboy is now known as yorickpeterse
<shevy> whoa
<shevy> php dropping down slowly
scampbell has joined #ruby-lang
workmad3 has joined #ruby-lang
hynkle has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
imperator2 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dv310p3r has quit [Quit: Leaving]
<andrewvos> Kill it with fire.
<imperator2> Process.kill('FIRE', pid)
dv310p3r has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
<imperator2> speaking of kill, what's a cross platform, innocuous process that i can later kill using Process.spawn?
hynkle has joined #ruby-lang
<andrewvos> top?
<imperator2> hm, i guess i could do ruby -e + sleep, and kill it
hynkle has quit [Ping timeout: 244 seconds]
<heftig> imperator2: cat?
<heftig> pause on Windows, i guess
<heftig> or that may be a commandlet, not something you can spawn
robbrit has joined #ruby-lang
wasnotrice has joined #ruby-lang
Facefox has quit [Ping timeout: 260 seconds]
imperator has quit [Ping timeout: 265 seconds]
hynkle has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
jbsan has quit [Read error: No route to host]
jbsan has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
dhruvasagar has joined #ruby-lang
Facefox has joined #ruby-lang
darkswoop has quit [Quit: Leaving...]
carloslopes has joined #ruby-lang
boodle has joined #ruby-lang
mssola has joined #ruby-lang
dabradley has joined #ruby-lang
fgomez has joined #ruby-lang
fgomez has quit [Remote host closed the connection]
wasnotrice is now known as zz_wasnotrice
boodle has quit [Quit: boodle]
bryancp has joined #ruby-lang
adambeynon has joined #ruby-lang
brownies has joined #ruby-lang
brownies has quit [Changing host]
brownies has joined #ruby-lang
brownies has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
vaelen has joined #ruby-lang
<cout> is there a gem to control the web browser similar to the python webbrowser module?
<andrewvos> capybara
dhruvasagar has joined #ruby-lang
<andrewvos> (guessing)
<imperator2> watir, selenium ?
beawesomeinstead has joined #ruby-lang
<Muz> webdriver
<cout> no not like that
<Muz> Not that I'm familiar with what the python webbrowser module does. All the aforementioned drive/control web browsers.
shevy has left #ruby-lang ["I'll be back ... maybe"]
<cout> example from the docs (http://docs.python.org/library/webbrowser.html): url = 'http://python.org'; webbrowser.open_new_tab(url); webbrowser.open_url(url)
<cout> it doesn't do much more than that
<andrewvos> mechanize?
Fullmoon has quit [Ping timeout: 260 seconds]
<cout> all I want is to be able to open a url in whichever browser the user has configured for http links, be it konqueror, chromium, etc.
<cout> I don't need any of the regression testing extras
<cout> (if the library provides extras, great, but I'm guessing that precludes it from being able to open links in something like lynx, since it isn't controllable in the way that a testing suite would need)
neocoin has joined #ruby-lang
<imperator2> watir-webdriver
<imperator2> browser = Watir::Browser.new; browser.goto(url), etc
timbleck has joined #ruby-lang
crackity_jones has quit [Ping timeout: 245 seconds]
carloslopes_ has joined #ruby-lang
<zzak> cout: what os?
carloslopes has quit [Ping timeout: 245 seconds]
<cout> zzak: I'm working on linux, but ideally I'd prefer something cross-platform
hakunin has joined #ruby-lang
<zzak> you can try xdg-open
singpolyma has joined #ruby-lang
<zzak> i think its just 'open' on osx
sandbags has quit [Remote host closed the connection]
rmascarenhas has joined #ruby-lang
rolfb has joined #ruby-lang
<andrewvos> Is there something that can do a `puts "got here"` on every line of ruby code?
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
<andrewvos> Feel free to OH that on twitter, but I'm really having some painful problems here.
slyphon_ has joined #ruby-lang
<zzak> cout: windows is just 'start'
<zzak> applies to bash, but you get the idea
slyphon_ has quit [Changing host]
slyphon_ has joined #ruby-lang
<cout> andrewvos: how about ruby -rtracer
florentg2 has joined #ruby-lang
slyphon_ has left #ruby-lang [#ruby-lang]
<cout> zzak: nice, doesn't work in kde, but I like it
dhruvasagar has quit [Ping timeout: 246 seconds]
<andrewvos> cout: Trying that thanks
<zzak> try kde-open
mrb_bk has joined #ruby-lang
<cout> zzak: I read further and saw the xdg-open suggestion
<zzak> cout: nvm, xdg-open will delegate depending on gdm
abuiles has joined #ruby-lang
<cout> zzak: are you saying that's not what I want to do?
<zzak> im saying use xdg-open, since it will work with gnome/kde/whatever
<cout> ok good
<andrewvos> cout: Doesn't seem to do anything. I've installed the gem and required it in my initializaton code.
<cout> andrewvos: it's not a gem; it's part of the stdlib
<andrewvos> oh!
<cout> it bascially amounts to a nicely formatted version of: set_trace_proc { |*x| p x }
akamike has joined #ruby-lang
<andrewvos> cout: Thanks!
workmad3 has joined #ruby-lang
virunga has joined #ruby-lang
<andrewvos> cout: So if I require it in my application I should see trace output or is there a difference requiring it through -r ?
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
<cout> andrewvos: it's the same
outoftime has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
<andrewvos> cout: Weird it only works if I use -r
slyphon has joined #ruby-lang
<andrewvos> Not manually requiring it in the app
sandbags has quit [Ping timeout: 244 seconds]
kvirani has joined #ruby-lang
<cout> hmm
<cout> oic
<andrewvos> Requiring it in a cucumber test run, in the env.rb file by the way.
<cout> Tracer.on
krohrbaugh has joined #ruby-lang
<cout> I didn't realize it wasn't turned on by default if you use require
<andrewvos> Cool thanks trying that out
asahi has joined #ruby-lang
Facefox has quit [Remote host closed the connection]
slyphon has quit [Quit: WeeChat 0.3.7]
outsmartin has joined #ruby-lang
slyphon has joined #ruby-lang
<cout> why doesn't ||= work with constants?
jxie has joined #ruby-lang
<dominikh> because you shouldn't be reassigning to constants, and cannot do so from methods anyway iirc
<dominikh> so Foo = 1 in a method would not work either
<dominikh> iirc
<heftig> yep, it's a syntax error.
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
<cout> it's not a SyntaxError; it's a NameError
heftig has quit [Quit: leaving]
A124 has quit [Quit: Leaving.]
<Mon_Ouie> Yes, it's a syntax error
<cout> I'd prefer to write FOO || 1 instead of FOO = 1 if not defined?(FOO)
heftig has joined #ruby-lang
<Mon_Ouie> SyntaxError: (pry):2: dynamic constant assignment
<cout> NameError: uninitialized constant FOO from (irb):1
<Mon_Ouie> def foo; Foo = 1; end
<heftig> can still do it inside blocks, though. which means you can be sneaky and slip a dynamic constant assignment past the parser
<cout> Mon_Ouie: that's becaues you're doing a constant assignment inside a method
<Mon_Ouie> That's what we were talking about
<workmad3> cout: FOO ||= 1
Facefox has joined #ruby-lang
<cout> Mon_Ouie: then I guess you strayed from my original question :(
Facefox has quit [Max SendQ exceeded]
<zzak> finally configured xterm for 256, whats a good colorscheme for vim?
<slyphon> desert256
<workmad3> zzak: I use solarized
<zzak> preferrably works with pathogen
<slyphon> nono desert256
<slyphon> pay no attention to workmad3, he just wants to lead you astray
<slyphon> ...or ashtray
<slyphon> i always get those confused
<workmad3> slyphon: you don't like solarized? :(
<slyphon> oh, i'm just being a pest
<workmad3> slyphon: also, astray... ashtrays are quite different :P
<slyphon> i've used desert256 for the last like 4 years, so i'm just promoting my own preferences
<slyphon> :)
<zzak> solarized is too blue
<workmad3> yeah, I can only claim a bit over a year for solarized here :)
<workmad3> specifically, solarized-dark
Facefox has joined #ruby-lang
<andrewvos> yeah me too
<Mon_Ouie> cout: But if you need to do that, you shouldn't be using a constant in the first place
<andrewvos> tried to switch off solarized, but I just couldn't
rmascarenhas has quit [Quit: leaving]
* zzak goes with railscasts scheme
<slyphon> booooo
jakko_ has quit [Ping timeout: 245 seconds]
<asahi> I'm wondering what exactly happens if I have default_external encoding set to utf8 and default internal to latin1 and then I read a string in with IO. does ruby try to convert the encoding?
<cout> Mon_Ouie: it's for a DSL
<heftig> asahi: yes.
gnufied has joined #ruby-lang
<asahi> thanks
krz has quit [Quit: krz]
<Mon_Ouie> Which means you need to use constants because they're prettier?
* imperator2 uses Ruby because it's prettier
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
lateau has joined #ruby-lang
<imperator2> hm, jruby no likey .spawn + :pgroup
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Facefox has quit [Ping timeout: 250 seconds]
eschwartz has joined #ruby-lang
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
diegoviola has joined #ruby-lang
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
fayimora has quit [Ping timeout: 240 seconds]
fayimora has joined #ruby-lang
Skif has quit [Ping timeout: 240 seconds]
<zzak> well railscasts looked like crap on my terminal, so i switched to solarized and it looks Good Enough
<rue> Process
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
slyphon has quit [Quit: WeeChat 0.3.7]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
diegoviola has quit [Quit: leaving]
slyphon has joined #ruby-lang
thone_ has joined #ruby-lang
macmartine has quit [Quit: macmartine]
thone has quit [Read error: Operation timed out]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
savage- has joined #ruby-lang
Facefox has joined #ruby-lang
unsymbol has quit [Quit: leaving]
unsymbol has joined #ruby-lang
kyrylo has quit [Ping timeout: 260 seconds]
tekin_ has joined #ruby-lang
tekin_ has quit [Client Quit]
akira989 has joined #ruby-lang
<imperator2> rue, hm?
<rue> I forgot
<bnagy> zzak: vividchalk
kristofferrr has joined #ruby-lang
diegoviola has joined #ruby-lang
savage- has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
kyrylo_ has joined #ruby-lang
kyrylo_ has joined #ruby-lang
kyrylo_ has quit [Changing host]
S2kx has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
<asahi> how can I use a particular unicode codepoint in a string?
<imperator2> why does this question scare me?
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
<asahi> haha. basically I want to see what happens when I try convering U+00AE from utf8 to latin1
<asahi> *transcoding
crackity_jones has joined #ruby-lang
<apeiros_> asahi: "\u00ae".encode('iso-8859-1')
kyrylo_ has quit [Ping timeout: 244 seconds]
kristofferrr has quit [Quit: ❤]
codesturgeon has joined #ruby-lang
codesturgeon has quit [Remote host closed the connection]
<asahi> apeiros_: thanks
hynkle has quit [Read error: No route to host]
hynkle has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
jtoy has joined #ruby-lang
sora_h is now known as s0ra_h
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
<zzak> erikh what's that?
<erikh> that's twilight
<erikh> I can paste it somewhere if you like it
<zzak> i prefer git submodules
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<erikh> I'm not sure what that has to do with a vim color scheme
<imperator2> woohoo sys-proctable!
<zzak> and that work in 256 and 16 bit
<zzak> im just lazy, solarized works for me
<erikh> fair enough
gasbakid has quit [Ping timeout: 260 seconds]
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
lateau has quit [Quit: Leaving.]
jtoy has quit [Quit: jtoy]
nevynxxx has quit [Remote host closed the connection]
<erikh> imperator2: yeah that's my process monitor project
jtoy has joined #ruby-lang
Carnage\ has joined #ruby-lang
hynkle has quit [Quit: hynkle]
dc5ala has quit [Quit: Ex-Chat]
robotmay has quit [Remote host closed the connection]
mdstunthamster has quit [Quit: Linkinus - http://linkinus.com]
akira989 has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
savage- has joined #ruby-lang
akira989 has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
rolfb has joined #ruby-lang
cdt has quit [Ping timeout: 260 seconds]
brianpWins has quit [Quit: brianpWins]
msaffitz has joined #ruby-lang
francisfish has quit [Ping timeout: 245 seconds]
bfreeman has joined #ruby-lang
butchanton has joined #ruby-lang
frem has joined #ruby-lang
carloslopes_ has quit [Ping timeout: 245 seconds]
rippa has joined #ruby-lang
brushbox has quit [Read error: Connection reset by peer]
brushbox has joined #ruby-lang
fserb has joined #ruby-lang
lsegal has joined #ruby-lang
lele has joined #ruby-lang
macmartine has joined #ruby-lang
macmartine has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
dr_bob has joined #ruby-lang
robertcarter has joined #ruby-lang
Carnage\ has quit []
rippa has quit [Ping timeout: 265 seconds]
krohrbaugh1 has quit [Read error: Connection reset by peer]
TheRealmccoy has joined #ruby-lang
rippa has joined #ruby-lang
hynkle has joined #ruby-lang
saLOUt_ has quit [Ping timeout: 260 seconds]
scampbell has quit [Quit: Ex-Chat]
mistym has joined #ruby-lang
d3vic3 has quit [Ping timeout: 245 seconds]
Facefox has quit [Ping timeout: 250 seconds]
d3vic3 has joined #ruby-lang
Facefox has joined #ruby-lang
d3vic3 has quit [Client Quit]
krohrbaugh has joined #ruby-lang
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
mccraig has joined #ruby-lang
chrismcg is now known as zz_chrismcg
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
akahn has joined #ruby-lang
rippa has quit [Ping timeout: 256 seconds]
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
relix has joined #ruby-lang
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
outsmartin has quit [Read error: Operation timed out]
rmascarenhas has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
TheRealmccoy has left #ruby-lang [#ruby-lang]
Facefox has quit [Ping timeout: 250 seconds]
A124 has joined #ruby-lang
cesario has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
tonesfrommars has joined #ruby-lang
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
scampbell has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
havenn has joined #ruby-lang
rhizmoe has quit [Ping timeout: 272 seconds]
outsmartin has joined #ruby-lang
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
Facefox has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
Facefox has joined #ruby-lang
mrsolo has joined #ruby-lang
mrsolo has quit [Client Quit]
mrsolo has joined #ruby-lang
dustacio has joined #ruby-lang
carloslopes has joined #ruby-lang
ged has quit [*.net *.split]
imperator has joined #ruby-lang
ged has joined #ruby-lang
M4g1c5t0rM has quit [Read error: Connection reset by peer]
M4g1c5t0rM has joined #ruby-lang
eschwartz has quit [Remote host closed the connection]
Skif has joined #ruby-lang
agib has joined #ruby-lang
qpingu has joined #ruby-lang
<agib> why does "foo;bar".split("\;") return the same thing as "foo;bar".split(";") -- is it just that the escape character is ignored in the first case?
<drbrain> agib: "\;" == ";"
<drbrain> agib: "\\;" would not split there
gnufied1 has joined #ruby-lang
gnufied has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 252 seconds]
enebo has joined #ruby-lang
fayimora has quit [Quit: Busy…..zzzzz]
brianpWins has joined #ruby-lang
bryanl_ is now known as bryanl
fayimora has joined #ruby-lang
Y_Ichiro_ is now known as Y_Ichiro
<agib> drbrain: kk thank you -- I'm just reading over someone else's code and wondering why that slash was in there. My intuition says it's a harmless typo... thank you for the sanity check though
<erikh> probably someone thinking it meant something it didn't.
<erikh> either that or a syntax highlighting fix :P
qwerxy has quit [Ping timeout: 244 seconds]
cldwalker has joined #ruby-lang
krz has joined #ruby-lang
stamina has quit [Quit: Lost terminal]
<agib> heh
<agib> :)
tbuehlmann has quit []
Dreamer3 has joined #ruby-lang
havenn has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Leaving...]
Hakon|mbp has quit [Quit: Leaving...]
arooni-mobile has quit [Quit: Leaving]
akira989 has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
akira989 has joined #ruby-lang
imperator has quit [Ping timeout: 245 seconds]
UNIXgod has quit [Ping timeout: 245 seconds]
Jamarty has joined #ruby-lang
mistym has quit [Remote host closed the connection]
injekt has joined #ruby-lang
<injekt> erikh: ohai
<erikh> injekt: OMG
<erikh> OM GOM GOMGO MGOMGOMGOMG
<injekt> zomggg
<erikh> indeed
krohrbaugh has quit [Ping timeout: 245 seconds]
injekt has quit [Client Quit]
<rue> Inkjet!
<imperator2> Decepticons, injekt!
Jamarty has left #ruby-lang [#ruby-lang]
arooni-mobile has joined #ruby-lang
<rue> Injecticons?
<erikh> he transforms into an ink jet
sepp2k has joined #ruby-lang
tcopp has joined #ruby-lang
qwerxy has joined #ruby-lang
<rue> Sounds pretty useful compared to some of the other transformers
francisfish has joined #ruby-lang
<jedmtnman> how do i load a file in irb such that i still have scope access to variables in the loaded file?
<rue> Local variables are local
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
<jedmtnman> rue: so i gotta namespace them in a module?
fayimora has quit [Read error: Connection reset by peer]
<rue> Ideally, you’d have objects (which can possibly be modules) and methods
fayimora has joined #ruby-lang
<jedmtnman> meh. kinda a hassle
<jedmtnman> just want some data so i don't have to type it all over again
<rue> Put a hash in a constant or somethig
<matled> jedmtnman: this is probably nothing to be recommended, but it seems to work in this case: eval(File.read("test.rb") + "; binding").eval("local_variable")
<rue> +n
<jedmtnman> matled: ah yes.
UNIXgod has joined #ruby-lang
<matled> and at least __END__ will break it
eschwartz has joined #ruby-lang
* imperator2 wonders what happened to Soundwave after CD's came out
<rue> He just went into the _awesome_ scanner and got reconfigured
<rue> How do you think the iPod was developed?
<rue> Sshh…Steve Jobs was a Headmaster!
<imperator2> rue, the science checks out. thanks!
<rue> NP
akira989 has quit [Remote host closed the connection]
Skif has quit [Ping timeout: 240 seconds]
brunocoelho has joined #ruby-lang
fgomez has joined #ruby-lang
Facefox has quit [Ping timeout: 250 seconds]
Facefox has joined #ruby-lang
akira989 has joined #ruby-lang
qwerxy has quit [Quit: offski]
ylluminate has joined #ruby-lang
riffraff has quit [Quit: This computer has gone to sleep]
brunocoelho has quit [Remote host closed the connection]
injekt has joined #ruby-lang
qwerxy has joined #ruby-lang
fayimora has quit [Ping timeout: 245 seconds]
<andrewvos> What can I use to access memcached outside of rails? (rack app)
<injekt> andrewvos: dalli
<andrewvos> injekt: Thought that was just for rails...
<andrewvos> Thanks injekt
<injekt> nope
<injekt> I use it in a sinatra app
<injekt> :)
<andrewvos> Oh by the way I don't want to cache page requests. I want to store some data. Maybe there's a better ooption on heroku
<andrewvos> ?
<injekt> sure, postgresql
<injekt> :P
<andrewvos> I don't need persistence.
<injekt> ah
<injekt> memcached is fine in heroku
<injekt> addons:add memcache
<injekt> boom
<injekt> (my app is also on heroku, and also doing the same kinda thing)
<andrewvos> Ok just checking.. Yeah I already have it installed, just thought maybe I should think this through :)
UNIXgod has quit [Changing host]
UNIXgod has joined #ruby-lang
fayimora has joined #ruby-lang
<andrewvos> Actually, I want to store a list of large hashes in memory. Maybe I should just use a singleton class.
<andrewvos> If I store a crapload of hashes in memcached I will have to decode json all the time.
<erikh> use marshal?
<andrewvos> erikh: Ok, can you point me at an example :)
<injekt> that'll end up faster than storing objects in memory
<injekt> in ruby
<injekt> lul
<erikh> Marshal.dump(obj)
<andrewvos> Oh right
<injekt> it uses the load/dump interface
<andrewvos> Ok I get it
<erikh> gives you a handy string
<andrewvos> And what gives me an object back?
<erikh> Marshal.load(str)
<andrewvos> Ah ok thanks :)
<erikh> andrewvos: let me introduce you to my friend 'ri'
<erikh> :P
<injekt> ri -i <3
<andrewvos> :)
<erikh> ooh didn't know about that.
<injekt> :)
<injekt> my memory is bad so I rely on completion
<erikh> zsh completes IIRC
<erikh> ignore that statement
<injekt> :)
<injekt> that could be arranged
<injekt> completion for ri
<injekt> (via zsh)
<injekt> erikh: andrewvos: what do you think of the new allur design? allur.com
fgomez has quit [Ping timeout: 245 seconds]
<erikh> wow, that looks very nice!
<injekt> :)
fgomez has joined #ruby-lang
FluffyCode has joined #ruby-lang
agile has joined #ruby-lang
burgestrand has joined #ruby-lang
<andrewvos> injekt: Pretty cool
<andrewvos> Why is Marshal.dump saying "instance of IO needed"
rippa has joined #ruby-lang
<injekt> andrewvos: what are you trying to marshal?
<andrewvos> injekt: An array of hashes I think
<matled> andrewvos: this error occurs if the second argument is not an IO object
<injekt> Some objects cannot be dumped: if the objects to be dumped include bindings, procedure or method objects, instances of class IO, or singleton objects, a TypeError will be raised.
<andrewvos> matled: I'm only passing one parameter.
<injekt> imperator2: is that yours?
<_br_> did anyone here every use unicorn with zeromq ?
jakko_ has joined #ruby-lang
<matled> andrewvos: does the backtrace actually start at the place you call Marshal.dump?
<andrewvos> matled: Sorry I found it
<andrewvos> I was trying to load nil I think
gouthamvel has joined #ruby-lang
<injekt> that's a valid object to load
lele has quit [Ping timeout: 252 seconds]
<matled> injekt: not if you pass nil directly to Marshal.load :)
francisfish has quit [Remote host closed the connection]
kvirani has joined #ruby-lang
<injekt> true that
<andrewvos> :)
<andrewvos> StringIO can't be marshaled :(
<andrewvos> (Which is fair)
benanne has joined #ruby-lang
havenn has joined #ruby-lang
brunocoelho has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
sepp2k has quit [Read error: Operation timed out]
sepp2k has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
jakko_ has quit [Remote host closed the connection]
jakko_ has joined #ruby-lang
<dominikh> why can't it?
beiter has joined #ruby-lang
petercooper has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
gregf has quit [Ping timeout: 246 seconds]
hagabaka has joined #ruby-lang
hagabaka has quit [Changing host]
hagabaka has joined #ruby-lang
akira989 has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
jakko_ has quit [Ping timeout: 245 seconds]
jakko_ has joined #ruby-lang
mark_locklear has quit [Quit: Leaving]
nisstyre has quit [Quit: Leaving]
cjs226 has quit []
FluffyCode has quit [Remote host closed the connection]
<andrewvos> Because (and I'm guessing here) it could be a network stream or something like that?
<andrewvos> dominikh: ^
robertcarter has quit [Remote host closed the connection]
<dominikh> hm. I thought StringIO was just a "have this string, pretend to the world it's IO" thing?
fayimora has quit [Ping timeout: 246 seconds]
<drbrain> I see no technical reason StringIO could not dumped, I bet nobody bothered implementing it
<andrewvos> Hmm
<andrewvos> Umm, any reason I would be getting "ArgumentError: wrong number of arguments(0 for 1)" on a Hash?
<andrewvos> That's totally wrong right?
<yxhuvud> andrewvos: you used the hash constructor? then it is perfectly normal
<andrewvos> (by the way I just converted StringIO to a string)
<drbrain> or maybe Hash()
<andrewvos> yxhuvud: I didn't. Maybe Rack did though.
gregf has joined #ruby-lang
<andrewvos> Ok maybe I should explain what I'm trying to do.
jakko_ has quit [Remote host closed the connection]
jakko_ has joined #ruby-lang
<andrewvos> I have a heroku app, and I want to store objects in memory. I tried using a singleton but it appears heroku recycles the app occasionally.
<andrewvos> This means I lose the data.
<andrewvos> Does storing items in memcached sound like the right approach?
Hakon|mbp has quit [Quit: Leaving...]
<drbrain> andrewvos: they'll get recycled from memcached too, but they should live longer
<andrewvos> Hmm
<andrewvos> That should be ok
rippa has quit [Ping timeout: 244 seconds]
<andrewvos> Ok I'm just using JSON.dump and JSON.load for now. Seems to be alright
akira989 has quit [Remote host closed the connection]
<andrewvos> I'm guessing performance may be an issue at some point. Hoping not though
akira989 has joined #ruby-lang
injekt has quit [Quit: leaving]
<imperator2> no, mina is not mine (oops, he left)
workmad3 has joined #ruby-lang
akira989 has quit [Read error: Connection reset by peer]
rmascarenhas has quit [Quit: leaving]
jperry2 has quit [Ping timeout: 252 seconds]
yannis has quit [Quit: yannis]
gnufied has joined #ruby-lang
akira989 has joined #ruby-lang
jakko_ has quit [Remote host closed the connection]
jakko_ has joined #ruby-lang
imperator2 has left #ruby-lang ["Leaving"]
scampbell has quit [Quit: Ex-Chat]
hynkle has quit [Quit: hynkle]
robbrit has left #ruby-lang [#ruby-lang]
carloslopes has quit [Quit: Leaving]
<andrewvos> How can I get bundler to a gem with a new dependency, but not update anthing?
<andrewvos> to install I mean
gouthamvel has quit [Ping timeout: 245 seconds]
<andrewvos> Gah whatever I'll just update
<andrewvos> Hope this doesn't break things even more :(
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
<Asher> you can manually install the packages w/the versions you want
gnufied has quit [Quit: Leaving.]
<andrewvos> That means manually editing the Gemfile.lock though
<Asher> i thought you wanted specific updates but not others
<Asher> did i misunderstand?
<andrewvos> Yeah
<andrewvos> I did want exactly that
<Asher> i'm not particularly familiar with bundler but with rubygems you can specify a version number for the gem if you want
outsmartin has quit [Quit: Leaving.]
<andrewvos> It's alright I sorted it out. Turns out updating wasn't very bad
<andrewvos> Thanks though
<Asher> np
jbwiv has quit [Read error: Connection reset by peer]
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
havenn has quit [Read error: Connection reset by peer]
cjs226 has joined #ruby-lang
akira989 has quit [Ping timeout: 252 seconds]
kvirani has quit [Remote host closed the connection]
brunocoelho has joined #ruby-lang
twittard has joined #ruby-lang
<twittard> Sucks that there's no rbenv irc chat room
stamina has joined #ruby-lang
<drbrain> you can start one!
beiter has quit [Quit: beiter]
havenn has joined #ruby-lang
dreieins has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 244 seconds]
gouthamvel has joined #ruby-lang
dasibre has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
<erikh> it's as easy as /join
gouthamvel has quit [Remote host closed the connection]
Carnage\ has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
mssola has quit [Quit: Konversation terminated!]
<erikh> legal C.
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
saLOUt_ has joined #ruby-lang
<lianj> erikh: drop the curly braces
<erikh> it's not ruby
<erikh> it's perl
dreieins has joined #ruby-lang
bglusman has quit [Ping timeout: 260 seconds]
ylluminate has quit [Read error: Connection reset by peer]
ylluminate has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
denysonique has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
<andrewvos> erikh: What evil is this?
solars has quit [Ping timeout: 245 seconds]
* andrewvos looks in other channel. Oooh
<erikh> heheheheh
bryancp has quit [Remote host closed the connection]
msaffitz has joined #ruby-lang
fgomez has quit [Quit: leaving]
fgomez has joined #ruby-lang
dv310p3r has quit [Ping timeout: 260 seconds]
saLOUt_ has quit [Quit: Konversation terminated!]
fgomez has quit [Client Quit]
enebo has quit [Ping timeout: 246 seconds]
msaffitz has quit [Quit: Computer has gone to sleep.]
brunocoelho has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
macmartine has quit [Quit: macmartine]
Harzilein_ has joined #ruby-lang
znouza has joined #ruby-lang
segy_ has joined #ruby-lang
brianpWins_ has joined #ruby-lang
chris2_ has joined #ruby-lang
bougyman_ has joined #ruby-lang
matti_ has joined #ruby-lang
hackeron_ has joined #ruby-lang
tcopp_ has joined #ruby-lang
rtl_ has joined #ruby-lang
pryno has joined #ruby-lang
Mch1 has joined #ruby-lang
ammar_ has joined #ruby-lang
xxi has joined #ruby-lang
hagebake has joined #ruby-lang
hagebake has joined #ruby-lang
xxi is now known as Guest85273
<zenspider> zenweb 3.0.0.b2 released
pbjorklu1d has joined #ruby-lang
zigidias_ has joined #ruby-lang
jbsan has quit [Ping timeout: 240 seconds]
stepnem has quit [Ping timeout: 240 seconds]
steven has quit [Ping timeout: 240 seconds]
youngin_ has joined #ruby-lang
segy has quit [Ping timeout: 248 seconds]
telemachus has quit [Ping timeout: 248 seconds]
chris2 has quit [Ping timeout: 248 seconds]
Harzilein has quit [Ping timeout: 248 seconds]
znouza_ has quit [Ping timeout: 248 seconds]
brianpWins has quit [Ping timeout: 248 seconds]
bougyman has quit [Ping timeout: 248 seconds]
matti has quit [Ping timeout: 248 seconds]
zigidias has quit [Ping timeout: 248 seconds]
hagabaka has quit [Ping timeout: 248 seconds]
ddfreyne has quit [Ping timeout: 248 seconds]
MrWGW has quit [Ping timeout: 248 seconds]
bryno has quit [Ping timeout: 248 seconds]
rtl has quit [Ping timeout: 248 seconds]
ddfreyne has joined #ruby-lang
telemachus has joined #ruby-lang
hackeron has quit [Remote host closed the connection]
tcopp has quit [Ping timeout: 248 seconds]
_ko1 has quit [Ping timeout: 248 seconds]
lantins has quit [Ping timeout: 248 seconds]
ammar has quit [Ping timeout: 248 seconds]
asahi has quit [Ping timeout: 248 seconds]
ixx has quit [Ping timeout: 248 seconds]
Mchl has quit [Ping timeout: 248 seconds]
Silex has quit [Ping timeout: 248 seconds]
Kuukunen has quit [Ping timeout: 248 seconds]
ddfreyne has quit [Ping timeout: 248 seconds]
Bwild has quit [Ping timeout: 248 seconds]
jaimef has quit [Ping timeout: 248 seconds]
lantins has joined #ruby-lang
telemachus has quit [Ping timeout: 248 seconds]
oddmunds has joined #ruby-lang
oddmunds has quit [Ping timeout: 248 seconds]
brianpWins_ is now known as brianpWins
toertore has joined #ruby-lang
Silex- has joined #ruby-lang
canton7 has quit [Ping timeout: 241 seconds]
matti_ is now known as matti
akamike has quit [Ping timeout: 248 seconds]
bougyman_ has quit [Changing host]
bougyman_ has joined #ruby-lang
17WAAK44M has joined #ruby-lang
s0ra_h has quit [Ping timeout: 244 seconds]
tommyvyo_ is now known as tommyvyo
bougyman_ is now known as bougyman
ddfreyne has joined #ruby-lang
alindeman has quit [Ping timeout: 240 seconds]
akamike has joined #ruby-lang
jaimef has joined #ruby-lang
Kuukunen has joined #ruby-lang
asahi has joined #ruby-lang
Carnage\ has quit [Ping timeout: 244 seconds]
pbjorklund has quit [Ping timeout: 244 seconds]
asahi has left #ruby-lang [#ruby-lang]
eschwartz has quit [Ping timeout: 240 seconds]
jbsan has joined #ruby-lang
Carnage\ has joined #ruby-lang
dvorak has quit [Ping timeout: 244 seconds]
havenn has quit [Remote host closed the connection]
stepnem has joined #ruby-lang
kith_ has joined #ruby-lang
corsican has quit [Ping timeout: 240 seconds]
UNIXgod has quit [Ping timeout: 244 seconds]
Kero has quit [Ping timeout: 244 seconds]
kith has quit [Ping timeout: 244 seconds]
savage-_ has joined #ruby-lang
corsican has joined #ruby-lang
cout has quit [Ping timeout: 244 seconds]
youngin has quit [Ping timeout: 269 seconds]
toretore has quit [Ping timeout: 248 seconds]
UNIXgod has joined #ruby-lang
^sandbags^ has quit [Ping timeout: 244 seconds]
Facefox has quit [Ping timeout: 249 seconds]
ando has quit [Ping timeout: 244 seconds]
EvilJStoker has quit [Ping timeout: 244 seconds]
burgestrand1 has joined #ruby-lang
burgestrand has quit [Ping timeout: 240 seconds]
cout has joined #ruby-lang
shaman42_ has joined #ruby-lang
twittard has quit [Quit: twittard]
Skif has joined #ruby-lang
fgomez has joined #ruby-lang
shaman42 has quit [Ping timeout: 244 seconds]
ando has joined #ruby-lang
mihar_ has quit [Ping timeout: 244 seconds]
savage- has quit [Ping timeout: 240 seconds]
Guedes is now known as Guedes_out
Carnage\ has quit [Client Quit]
mihar has joined #ruby-lang
steven has joined #ruby-lang
sandbags has joined #ruby-lang
Bwild has joined #ruby-lang
dvorak has joined #ruby-lang
Facefox has joined #ruby-lang
Kero has joined #ruby-lang
pryno has left #ruby-lang [#ruby-lang]
bryno has joined #ruby-lang
alindeman has joined #ruby-lang
EvilJStoker has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
Kuukunen has quit [Ping timeout: 248 seconds]
s0ra_h has joined #ruby-lang
tcopp_ has left #ruby-lang [#ruby-lang]
dustacio has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Criztian_ has quit [Remote host closed the connection]
Facefox has quit [Ping timeout: 240 seconds]
bglusman has joined #ruby-lang
tallship has joined #ruby-lang
jakko_ has quit [Ping timeout: 256 seconds]
Facefox has joined #ruby-lang
bglusman has quit [Ping timeout: 244 seconds]
virunga has quit [Read error: Connection reset by peer]
tallship has quit [Quit: Too Hip gotta go]
banisterfiend has joined #ruby-lang
<banisterfiend> ayone here on forrst?
tallship has joined #ruby-lang
outoftime has quit [Quit: Leaving]
benanne has quit [Quit: kbai]
msaffitz has joined #ruby-lang
Kuukunen has joined #ruby-lang
Skif has quit [Remote host closed the connection]
Skif has joined #ruby-lang
srbartlett has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
Karmaon has quit [Quit: WeeChat 0.3.8-rc2]
<andrewvos> banisterfiend: Tried, but they thought I sucked.
<banisterfiend> andrewvos: what do u mean?
<banisterfiend> andrewvos: they rejected u for not being leet enough?
apeiros_ has quit [Remote host closed the connection]
<andrewvos> banisterfiend: I think so
<andrewvos> And it's 1337, bro
<banisterfiend> andrewvos: did they even respond to u
<andrewvos> Nope
<andrewvos> Elitists
<andrewvos> Would it be silly to join "http://yourmom.com/" and "/bla" with File.join to achieve "http://yourmom.com/bla"?
<andrewvos> Wait
<andrewvos> URI.join is a thing
brianpWins has quit [Quit: brianpWins]
<heftig> andrewvos: besides, File.join would do the wrong thing on Windows
<drbrain> andrewvos: I use URI#+
rmascarenhas has joined #ruby-lang
<drbrain> URI("http://example") + "/bla" == URI("http://example/blah")
s0ra_h is now known as sora_h
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
toertore has quit [Quit: Leaving]
qwerxy has joined #ruby-lang
<andrewvos> heftig: It wouldn't
<andrewvos> drbrain: Thanks
<heftig> andrewvos: the path separator is \ on windows
<andrewvos> heftig: Don't think it is in ruby though ;)
<heftig> what?
<drbrain> heftig: File.join always uses /, AFAIK
stardiviner has joined #ruby-lang
<heftig> hrm
<heftig> what's File::Separator for, then
fgomez has quit [Quit: leaving]
<andrewvos> drbrain: I did URI.join(a, b).to_s cause I only needed the string.
<andrewvos> But URI#+ looks pretty
<zenspider> anyone know of a probabilistic tree for ruby? I'm looking to do massive amounts of language analysis and I only care about the shapes at this point
fserb has quit [Quit: ttyl]
<drbrain> heftig: File::SEPARATOR is always "/", File::ALT_SEPARATOR is defined where "\\" works
<drbrain> heftig: also, AFAIK, internally windows doesn't care about \ or /
fserb has joined #ruby-lang
<zenspider> (I'm not sure I'm using the right words yet)
<erikh> externally it doesn't iether
stardiviner has quit [Ping timeout: 248 seconds]
wesgurn has quit [Quit: Leaving.]
postmodern has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<banisterfiend> zenspider: sup zenny, does event_hook still work for u on 1.9.3p194?
<drbrain> who is "zenny"?
<banisterfiend> hehe sorry, that was inappropriate
<zenspider> NOW I remember why you were banned.... :P
<zenspider> no. I think event_hook is fucked on 1.9
<banisterfiend> hehe
<banisterfiend> zenspider: ah ok
<zenspider> I honestly haven't looked into it tho. so I could be wrong.
<zenspider> might be a simple matter of some macros
<banisterfiend> yeah probably easy enough to fix
<zenspider> if you do, please send me a pull req and I'll release it
<banisterfiend> will do
Hakon|mbp has quit [Quit: Leaving...]
tenderlove has joined #ruby-lang
ddbt-nl has joined #ruby-lang
florentg2 has quit [Ping timeout: 245 seconds]
tindron has joined #ruby-lang
butchanton has quit [Quit: Leaving.]
florentg2 has joined #ruby-lang
fgomez has joined #ruby-lang
ddbt-nl has quit [Client Quit]
ruby-lang972 has joined #ruby-lang
ruby-lang972 has quit [Client Quit]
ddbt-nl has joined #ruby-lang