<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
<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.]
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?
<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)
<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]
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
<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]
<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