apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
jacktrick has quit [Quit: Leaving]
havenwood has joined #ruby-lang
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
x0f has quit [Ping timeout: 255 seconds]
Spaceghost|work is now known as pipework
x0f has joined #ruby-lang
wmoxam has joined #ruby-lang
swav has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby-lang
wesside_ has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
__butch__ has quit [Quit: Leaving.]
apeiros has quit [Ping timeout: 260 seconds]
fragamus has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
smook1 has quit [Ping timeout: 255 seconds]
mdedetrich has joined #ruby-lang
wmoxam has joined #ruby-lang
gregmoreno has joined #ruby-lang
jerkbot1 has joined #ruby-lang
Nisstyre-laptop has quit [Read error: Connection reset by peer]
toretore has quit [Quit: Leaving]
tylersmith has joined #ruby-lang
jerkbot1 has quit [Remote host closed the connection]
jerkbot1 has joined #ruby-lang
smook1 has joined #ruby-lang
jerkbot1 has quit [Remote host closed the connection]
justinmburrous has quit [Remote host closed the connection]
jerkbot1 has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
jerkbot1 has quit [Remote host closed the connection]
codejury_ has left #ruby-lang [#ruby-lang]
jerkbot1 has joined #ruby-lang
nazty has quit [Ping timeout: 256 seconds]
hogeo has joined #ruby-lang
codejury has joined #ruby-lang
tkuchiki has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
nathanstitt has joined #ruby-lang
stringly_typed has quit [Quit: Computer has gone to sleep.]
gfarfl has joined #ruby-lang
crackity_jones has joined #ruby-lang
nveselinov has quit [Read error: Connection reset by peer]
alex____ has quit [Remote host closed the connection]
somasonic has left #ruby-lang ["fin."]
saarinen has joined #ruby-lang
<hahuang65>
is it impossible to unfreeze a ruby object?
teleological has quit [Read error: No route to host]
teleological has joined #ruby-lang
ia___ has joined #ruby-lang
rockpapergoat has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
slowhands has joined #ruby-lang
wmoxam has quit [Ping timeout: 248 seconds]
<drbrain>
hahuang65: from pure ruby? yes
<hahuang65>
drbrain: :(
hashkey has quit [Ping timeout: 256 seconds]
<drbrain>
hahuang65: why :( ?
<drbrain>
You can create an unfrozen duplicate of the object with #dup
hashkey has joined #ruby-lang
Boohbah has joined #ruby-lang
hashkey is now known as Guest28424
<hahuang65>
drbrain: doesn't work for Mongoid objects.
<hahuang65>
drbrain: sure it works for Ruby objects, but not on ActiveRecord or Mongoid objects.
gregmoreno has joined #ruby-lang
<hahuang65>
drbrain: my problem is that I'm fetching a Mongoid::Document out of Memcached, and ActiveSupport will freeze it upon retrieval from cache. At that point, I can't modify the object.
<drbrain>
so dup it?
gregmoreno has quit [Ping timeout: 240 seconds]
jonahR_ has joined #ruby-lang
pskosinski has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
jonahR has quit [Ping timeout: 252 seconds]
jonahR_ is now known as jonahR
<hahuang65>
drbrain: that actually causes side-effects… Mongoid overrides the .dup method so that it doesn't include the ID field and a couple other fields…. which means that I'll have to manually do that, which means that .changes on the new object will be populated such that even if the object wasn't changed, the .changed? method would return true
<drbrain>
then you probably need to consult the ActiveSupport cache documentation to determine what you're supposed to do when you retrieve a cached value and want to modify it
smook1 has quit [Ping timeout: 255 seconds]
<Boohbah>
is there something like Kernel#__callee__ for getting the name of the caller method? I see Kernel#caller ... should i parse self.caller.first? Any ideas?
<ericwood>
my dog's nickname is boohbah
<ericwood>
:D
<Boohbah>
heh
<ericwood>
sorry, I can't help so I'll shut up
<hahuang65>
Boohbah: caller
<drbrain>
Boohbah: a method should not need to know its caller, so there is no such thing as __callee__
<hahuang65>
Boohbah: usually I'll do caller.select { |x| x["app/"] }.first to see the very last line that was called in my app code
<drbrain>
so yes, parse caller.first
<Boohbah>
drbrain: you mean there is no such thing as __caller__
<drbrain>
you probably want caller(1, 1).first to avoid extra garbage if you absolutely need the callee
smook1 has joined #ruby-lang
io_syl has quit [Read error: Operation timed out]
<Boohbah>
okay, thanks everyone
<drbrain>
Boohbah: no, there is no such thing as __callee__
<hahuang65>
drbrain: hash they filed bugs against ActiveSupport and Mongoid about this… which apparently they've fixed in the next versions… but that's not an option for me.
<mistym>
And how ironic! I can't try updating rubygems to 2.0.3 for the same reason :D
<drbrain>
mistym: the tarball on rubygems.org/pages/download should work, but I don't think it will fix this problem
io_syl has joined #ruby-lang
io_syl has quit [Client Quit]
ikrima has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
mbj has quit [Ping timeout: 255 seconds]
Guest28424 has quit [Quit: Leaving]
<mistym>
drbrain: Should I report this on the rubygems tracker?
<drbrain>
yes, but also on the ruby tracker
<drbrain>
oh, RubyGems uses OpenSSL::Digest
<drbrain>
echo 'hello' | openssl dgst -sha512
<drbrain>
does that print out e7c22b994c59d9cf2b48e549b1e24666636045930d3da7c1acb299d1c3b7f931f94aae41edda2c2b207a36e10f8bcb8d45223e54878f5b316e7ce3b6bc019629
<drbrain>
(and is that the same openssl as ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
<drbrain>
)?
smook1 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
slowhands has quit [Quit: Computer has gone to sleep]
fragamus has quit [Quit: Computer has gone to sleep.]
<mistym>
drbrain: No, the openssl on the system doesn't do sha512, and it looks like ruby 2.0 built against that same openssl
<drbrain>
ok, then no ruby ticket
<drbrain>
what openssl is that?
<mistym>
0.9.7l
<mistym>
so old
<drbrain>
oh wow
synthetix has joined #ruby-lang
<mistym>
Yeah, I know. This is OS X Tiger, and I guess I didn't realize it was getting OpenSSL updates as *recently* as September 2006.
dhruvasagar has quit [Ping timeout: 255 seconds]
<drbrain>
hehe
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
wallerdev has joined #ruby-lang
gregmoreno has joined #ruby-lang
gregmore_ has quit [Ping timeout: 255 seconds]
setmeaway2 has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
havenwood has joined #ruby-lang
ruby-lang259 has joined #ruby-lang
ia___ has quit [Quit: ia___]
lsegal has joined #ruby-lang
jonahR has quit [Quit: jonahR]
cofin has quit [Quit: cofin]
swav has joined #ruby-lang
jroes has joined #ruby-lang
<jroes>
what's the most straightforward way to do the equivalent of a select col1, sum(col2) from table group by col1 with a list of ruby hashes? ex:
<injekt>
yorickpeterse: sounds like a use case for a helper
<injekt>
also
<injekt>
moin
<yorickpeterse>
stuff like this is all over the place
<injekt>
you should fire yourself
<yorickpeterse>
also one of the few things that still runs on 1.8, grrrr
<yorickpeterse>
In unrelated news, it seems Gem::Specification#requirements is the most useless feature ever seeing how it's not displayed (.e.g upon installation)
somasonic has joined #ruby-lang
Phoop has joined #ruby-lang
Phoop has quit [Remote host closed the connection]
jbsan has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
<yorickpeterse>
heh: currently editing a file called python.rb
schaerli has quit [Remote host closed the connection]
henrikhodne has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
<PaulePanter>
judofyr, yorickpeterse: Thank you for your answers. I am going to try that.
<PaulePanter>
And I probably do something incorrect, as I looked at the documentation, even searched for »src« and »source« but for »src« nothing was found.
<yorickpeterse>
parser doesn't really have docs at this point beyond the README
mucker has joined #ruby-lang
<judofyr>
PaulePanter: also the released version might be behind master/
<judofyr>
PaulePanter: or the docs may be an old version
sush24 has quit [Quit: This computer has gone to sleep]
<whitequark>
can you remove that pesky "only identified users" bit from #ruby-lang? currently it is THE least friendly freenode channel of all I know
mbj has quit [Ping timeout: 246 seconds]
<whitequark>
specifically, in case of a disconnect, if I reconnect with a different nick like whitequa1k (irssi default), then the channel won't let me talk
<whitequark>
what is worse is that it is not possible to change the nick either! so I have to leave #r-l, change nick, identify, rejoin.
mdedetrich has quit [Quit: Computer has gone to sleep.]
<yorickpeterse>
good job on completely missing the point but w/e
saarinen has joined #ruby-lang
jinie is now known as jinie_
<darix>
yorickpeterse: the point is .. that you will encode that same info *again* in the ant.xml. so why check something that might still end up calling the wrong thing. why not encode it in the right place. and then stop caring about the java version in your rake task.
<yorickpeterse>
Ugh, because we don't use fucking ant?
<yorickpeterse>
and because I don't want to rely on something developed by a third-party to ensure we have the requirements?
<yorickpeterse>
and because running ant to check for something java specific is stupid?
<yorickpeterse>
I could go on for a while
<yorickpeterse>
No offense, but the idea is just batshit
<darix>
and your other java build tool has nothing to enforce the minimum java version either...
<yorickpeterse>
Like I already said, I have to check it *BEFORE* any of it is ever touched
smook2 has quit [Ping timeout: 255 seconds]
kstuart has quit [Ping timeout: 252 seconds]
rwk1 has joined #ruby-lang
<Raynes>
Good morning #ruby-lang. I see you're all having a swell time.
* yorickpeterse
waves his cane
<yorickpeterse>
errr shakes damn it
wallerdev has quit [Quit: wallerdev]
rwk1 has quit [Ping timeout: 252 seconds]
smook2 has joined #ruby-lang
mucker has quit [Quit: leaving]
runeb has joined #ruby-lang
<drbrain>
chris2: I think eek is going by rue these days
justinmburrous has quit [Remote host closed the connection]
symm- has joined #ruby-lang
mytrile has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
cofin has joined #ruby-lang
mytrile has quit [Ping timeout: 240 seconds]
<chris2>
drbrain: nah
<darix>
chris2: fern
<darix>
later
<chris2>
-.-
firstdayonthejob has joined #ruby-lang
symm- has quit [Quit: Leaving...]
deception has quit [Quit: Goodbye]
symm- has joined #ruby-lang
schaerli has joined #ruby-lang
runeb has quit [Remote host closed the connection]
sandbags has quit [Remote host closed the connection]
<rue>
…eek?
tbuehlmann has joined #ruby-lang
symm- has quit [Ping timeout: 260 seconds]
<Aloysius1>
Anyone have opinions on a gem to use for cross-platform text-based interface? Ncurses? Rbcurse?
Taranis has left #ruby-lang [#ruby-lang]
sush24 has quit [Quit: This computer has gone to sleep]
<whitequark>
--no-windows
benlovell has joined #ruby-lang
<Aloysius1>
Yeah. Luck?
schaerli_ has joined #ruby-lang
schaerli has quit [Ping timeout: 248 seconds]
<Aloysius1>
I found a Ruby roguelike (Yarna) and was all like "Yay! It runs under Windows!" then all like "Crap. It's DLLs. It ONLY runs under Windows."
carloslopes has quit [Remote host closed the connection]
<whitequark>
"Yay, it runs under windows" < no one ever
benlovell has quit [Ping timeout: 248 seconds]
<Aloysius1>
No, srsly. Swearsies.
chana has quit [Quit: chana]
<whitequark>
well
<whitequark>
use putty as your terminal
<whitequark>
and stay the hell away from ncurses. I used it.
arooni-mobile has quit [Ping timeout: 264 seconds]
<whitequark>
it's called "curses" for a fucking reason
<whitequark>
and ruby wrappers are oh god slow
<whitequark>
you'd want to strangle yourself
<Aloysius1>
So...no hope for Ruby in the roguelike world?
carloslopes has joined #ruby-lang
<whitequark>
ah, roguelikes
rwk1 has joined #ruby-lang
<whitequark>
I thought you want a full-blown UI
<Aloysius1>
Well, that'd be nice.
schaerli_ has quit [Remote host closed the connection]
<Aloysius1>
But I'd settle for roguelike level capability for now.
* chris2
wonders how the speed of a curses wrapper can be relevant...
<whitequark>
chris2: slow screen refreshes
<whitequark>
idk, I may have done something wrong. but it was really bad to use.
kamilc__ has quit [Quit: Leaving...]
<Aloysius1>
If I have the ability to put a character at a position, color, etc., and I can know the size of the screen, I'm pretty good.
<whitequark>
Aloysius1: you can do that even without *curses at all
<whitequark>
just with some escape sequences
<whitequark>
you'll lose some portability though
<whitequark>
but the only things which matter now is TERM=linux and TERM=$(whatever shit osx uses)
<chris2>
whitequark: doesnt sound like a wrapper problem...
solars has joined #ruby-lang
<whitequark>
chris2: well. building interfaces with ruby and wrapped ncurses results in a slow interface
pskosinski has quit [Remote host closed the connection]
<chris2>
worked for me :P
kamilc__ has joined #ruby-lang
pskosinski has joined #ruby-lang
rwk1 has quit [Ping timeout: 252 seconds]
<Aloysius1>
chris2: What did you use? And how portable was it?
<chris2>
first the one from ext/, later ffi-ncurses iirc
<chris2>
and then someone ported it to the third thingy
<chris2>
but speed was never an issue iirc
<Aloysius1>
Huh.
<Aloysius1>
The third thingy? :-P
<chris2>
the one using ruby/dl
<chris2>
or whatever is modern these days
<Aloysius1>
chris2: Oh, for Windows?
<Aloysius1>
whitequark: I'm not getting the "TERM=linux".
<chris2>
i dont think it runs on windows
<Aloysius1>
Oh, I thought that's what ruby/dl did.
<lianj>
no
<chris2>
there is a pdcurses for windows
<chris2>
maybe someone targetted it
supaiku_ has joined #ruby-lang
<chris2>
iirc it opens its own screen
<Aloysius1>
Yeah. Meh. I guess there's not a huge demand for text-based stuff. Since...1989.
symm- has joined #ruby-lang
__butch__ has quit [Read error: Connection reset by peer]
<chris2>
many roguelikes these days run in the browser :P
<whitequark>
ugh
__butch__ has joined #ruby-lang
<whitequark>
there's Dwarf Fortress
<chris2>
which uses opengl
<whitequark>
but it draws the symbols using OpenGL... and CP437!
<whitequark>
this is probably the only application using these two simultaneously
<whitequark>
but it's still a trueth text-based game
supaiku has quit [Ping timeout: 248 seconds]
<Aloysius1>
I like my roguelikes fullscreen, with a big black background and flickering white "@" sign, dammit!
<whitequark>
Aloysius1: seriously, use telnet
<whitequark>
for windows
rwilcox has joined #ruby-lang
<Aloysius1>
whitequark: Connecting to what? (Sorry for being dense here.)
wallerdev has joined #ruby-lang
<whitequark>
connecting to your app
<Aloysius1>
So, write is as a telnet server?
<Aloysius1>
er, it
<whitequark>
yeah
<whitequark>
that doesn't isolate you from the peculiarities of the terminal on the other end, though
<whitequark>
so you still need to use termcap.
runeb has joined #ruby-lang
<Aloysius1>
No, but it's a standard, at least.
<Aloysius1>
What would I use to write to the screen? (And, yeah, that probably wouldn't work for a full-blown TUI, huh? Too slow?)
rfizzle has joined #ruby-lang
<whitequark>
hm?
<whitequark>
io.write
vlad_starkov has joined #ruby-lang
<rfizzle>
Anyone have any experience with sucker_punch?
mytrile has joined #ruby-lang
saarinen has quit [Quit: saarinen]
<chris2>
i saw the movie :P
intellitech has quit [Remote host closed the connection]
<rfizzle>
Ha, the library.
intellitech has joined #ruby-lang
symm- has quit [Ping timeout: 260 seconds]
<cout>
ew, telnet
cored has quit [Ping timeout: 252 seconds]
<chris2>
yeah, why not supdup
<chris2>
or 3270 :P
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
cofin has quit [Quit: cofin]
<darix>
chris2: 3270 terminals arent exactly fun :p
<eam>
IO.write won't help if your goal is to implement a rouge-alike -- you won't be able to position the cursor
<chris2>
telnet isnt either
intellitech_ has joined #ruby-lang
intellitech_ has joined #ruby-lang
intellitech_ has quit [Changing host]
<darix>
chris2: well on windows .. that cmd terminal is the biggest limitation.
Weems has joined #ruby-lang
<chris2>
isnt there an ansi driver for it?
<chris2>
i remember faintly
<cout>
ANSI.SYS > *
<chris2>
right
<apeiros>
eam: hm? on what terminal? there's an ansi escape sequence to position the cursor
<apeiros>
also to hide/show it
<chris2>
then you just need a getch()
intellitech has quit [Read error: Operation timed out]
intellitech_ is now known as intellitech
<chris2>
which ought to be possible with io/console now
<apeiros>
yupp, IO#raw
<chris2>
not sure its supported on windows
<apeiros>
or was it? I think it was IO#raw…
<eam>
apeiros: I wouldn't suggest reimplementing the abstraction already available in ncurses
mbj has quit [Read error: Connection reset by peer]
<chris2>
cmd.exe /kansicon
workmad3 has joined #ruby-lang
<whitequark>
гь
<whitequark>
um
<whitequark>
if you're using telnet you can send escape sequences back
<eam>
there's also the pile of stuff that needs an ioctl, such as getting the terminal size
<whitequark>
with IO.write, and position the cursor
kamilc__ has quit [Quit: Leaving...]
<eam>
it's just really a bad idea
<chris2>
there should be reporting codes in ansi :P
<chris2>
no sigwinch perhaps, but can windows even do that? :P
glebm has quit [Ping timeout: 256 seconds]
Todd has joined #ruby-lang
intellitech has quit [Quit: intellitech]
<eam>
the only part of unix that I fear are tty implementations
<eam>
everything else is relatively simple
<chris2>
hehe
Prometheian has joined #ruby-lang
<whitequark>
eam: ... memory management?
<chris2>
depends on the unix :P
<eam>
not nearly as daunting
<apeiros>
eam: I didn't suggest it. all I say is that "you won't be able to position the cursor" is incorrect for ansi capable terminals.
<eam>
apeiros: mmm I will amend: You won't be able to position the cursor correctly
<Prometheian>
I'm trying to install dev tools and I'm on the "ruby dk.rb install" step, however it keeps saying "Invalid config or no rubies listed. Please fix config.yml" In the config file I've listed a path to my Ruby directory, is there more to it?
<apeiros>
eam: doubt that :-p
<eam>
apeiros: if you don't know the terminal geometry you can't jump
<apeiros>
but I don't know under what conditions that thing should run, and ncurses probably handles far more envs.
<canton7>
Prometheian, did you use dk.rb to generate the config first, then edit it?
<apeiros>
eam: you can read the terminal geometry with ansi too
<Prometheian>
I ran the init first yes.
brianpWins has quit [Quit: brianpWins]
<canton7>
I'm thinking tabs vs spaces?
<Prometheian>
Does it matter where my devtools folder is?
<apeiros>
haven't tried it, though, as I usually went with sigwinch
<eam>
apeiros: I suppose if you poll after every write ... but catching redraw would be a problem
tbuehlmann has quit [Remote host closed the connection]
<apeiros>
yeah
<apeiros>
which is why I use sigwinch, but that's not available for remote shells/terminals, I'd assume
<Prometheian>
Does my dev tools install folder have to be in the ruby dir?
<eam>
apeiros: it is, generally
canton7 has left #ruby-lang ["Leaving"]
canton7 has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
runeb- has joined #ruby-lang
runeb is now known as Guest12620
Guest12620 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
runeb- is now known as runeb
workmad3 has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby-lang
chorkpop has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
sepp2k has joined #ruby-lang
glebm has quit [Ping timeout: 276 seconds]
<cirenyc>
If I have a two dimensional array or arrays and I am iterating over batches of data that returns another two dimensional array of array, what is the best way to merge those so that I have a single two dimensional array of arrays at the end?
chana has joined #ruby-lang
runeb- has joined #ruby-lang
runeb has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
runeb- is now known as runeb
<drbrain>
it depends on the contents
teleological has quit [Remote host closed the connection]
runeb has quit [Ping timeout: 256 seconds]
carloslopes has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
<Prometheian>
Anyone able to puzzle anything out of this error?
<Prometheian>
gem install selenium-webdriver
<Prometheian>
ERROR: Could not find a valid gem 'selenium-webdriver' (>= 0), here is why:
<Prometheian>
Unable to download data from https://rubygems.org/ - SSL_connect SYSCA
<Prometheian>
LL returned=5 errno=0 state=SSLv2/v3 read server hello A (https://rubygems.org/l
<Prometheian>
atest_specs.4.8.gz)
<Prometheian>
ERROR: Possible alternatives: selenium-webdriver
mytrile has joined #ruby-lang
kamilc__ has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
<Aloysius1>
Anyone use Thor?
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
adambeynon has joined #ruby-lang
mytrile has quit [Ping timeout: 264 seconds]
workmad3 has quit [Read error: Operation timed out]
<Aloysius1>
I've been playing with it, and it seem cool and all, but I have a script already, and I can't figure out how to integrate it with Thor. The script contains an extension of one class, and a new class that detects if it's being run from the command-line to loop forever.
<drbrain>
Prometheian: either you don't have a trusted CA certificate for rubygems.org or there's a MITM
<Prometheian>
MitM?
<drbrain>
Man in the Middle
<Prometheian>
ah
<drbrain>
MITM is highly unlikely
<Prometheian>
How would I get a trusted CA?
supaiku_ has quit [Quit: Verlassend]
runeb has joined #ruby-lang
runeb has quit [Remote host closed the connection]
lguardiola has quit [Read error: Connection reset by peer]
yxhuvud has quit [Ping timeout: 252 seconds]
lguardiola has joined #ruby-lang
larry0 has quit [Quit: Leaving.]
rwk1 has quit [Ping timeout: 256 seconds]
runeb has joined #ruby-lang
wmoxam has joined #ruby-lang
kstuart has quit [Ping timeout: 276 seconds]
<zenspider>
whitequark: sorry, no. the bit stays. prevents squadrons of spammers
<zenspider>
bbiab
<apeiros>
zenspider: maybe update chanserv welcome message to include the info?
zenspider has quit [Quit: bye]
kstuart has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
gregmoreno has quit [Remote host closed the connection]
zenspider has joined #ruby-lang
teleological has joined #ruby-lang
gregmoreno has joined #ruby-lang
smook2 has quit [Ping timeout: 255 seconds]
nathanstitt has quit [Quit: I growing sleepy]
<rfizzle>
How do you crawl off domain with Anemone?
justinmburrous has joined #ruby-lang
teleological has quit [Ping timeout: 276 seconds]
Aloysius1 has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
justinmburrous has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
pipework has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby-lang
stringly_typed has quit [Quit: Computer has gone to sleep.]
krombr has joined #ruby-lang
tonni has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 246 seconds]
tomzx_mac has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
tsou has quit [Quit: leaving]
x0f_ has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
crackity_jones has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
yellow5 has quit [Read error: Operation timed out]
benanne has quit [Quit: kbai]
tenderlove has joined #ruby-lang
yellow5 has joined #ruby-lang
elia has joined #ruby-lang
runeb has joined #ruby-lang
NemesisD has joined #ruby-lang
enebo has joined #ruby-lang
rfizzle has quit [Quit: Leaving]
<NemesisD>
hey guys. using jruby. get a string with gets.chomp. it comes in as ascii-8bit and then my program barfs saying it can't find a code converter for ascii-8bit to utf-8
<NemesisD>
oddly enough though, SecureRandom.hex also generates ascii-8bit. how do i get either 1 of these to just use utf-8
<NemesisD>
$LANG is set properly
<zenspider>
SecureRandom.hex shouldn't return 8bit imho... that's just dumb.
<zenspider>
you can call force_encode on it
<havenwood>
NemesisD: Any change if you?: export LC_ALL='en_US.UTF-8'
<whitequark>
#jruby ?
ffio_ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<NemesisD>
any attempt at force_encode complains about not having a code converter for ASCII-8bit to UTF-8
ffio has quit [Ping timeout: 264 seconds]
<NemesisD>
i'd rather not even use securerandom. i'm basically just trying to take some sample strings for a test. tried to do it with gets and much to my surprise it was ascii-8bit
runeb has quit [Remote host closed the connection]
<zenspider>
NemesisD: I have ~/Documents/hamlet.txt for this activity :)
<NemesisD>
zenspider: i don't understand
<zenspider>
afaik, force_encode doesn't use encoders... so I don't see how you're getting that error
<zenspider>
that's the point of "force_"
<zenspider>
try it against mri
GarethAdams has joined #ruby-lang
<zenspider>
n/m... this isn't jruby. you're doing something wrong.
<NemesisD>
zenspider: more info
<NemesisD>
message = gets.chomp, puts message.encoding shows me UTF-8
<NemesisD>
however when i pass it to this protobuf library i'm using it throws code converter not found ascii-8bit to utf-8, i'm not sure where it is getting the ascii-8bit nonsense from
wmoxam has joined #ruby-lang
rwk1 has joined #ruby-lang
justinmburrous has joined #ruby-lang
krombr has quit [Remote host closed the connection]
ehutzelman has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
rwk1 has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
justinmburrous has joined #ruby-lang
ehutzelman has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
ehutzelman has joined #ruby-lang
stamina has quit [Ping timeout: 246 seconds]
crackity_jones has quit [Quit: Computer has gone to sleep.]
chana has quit [Quit: chana]
arooni-mobile has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
shinnya has joined #ruby-lang
smook2 has joined #ruby-lang
ehutzelman has quit [Remote host closed the connection]
ehutzelman has joined #ruby-lang
havenwood has joined #ruby-lang
smook2 has quit [Ping timeout: 255 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
Nisstyre-laptop has joined #ruby-lang
<zenspider>
NemesisD: first we've heard about protobuf... becoming massively uninterested in playing guessing games as to whate else is missing
vlad_starkov has quit [Ping timeout: 246 seconds]
Nisstyre has quit [Quit: Leaving]
Kabaka has joined #ruby-lang
Nisstyre-laptop is now known as Nisstyre
wmoxam has quit [Ping timeout: 246 seconds]
tylersmith has quit [Remote host closed the connection]
s3kx has left #ruby-lang [#ruby-lang]
arooni-mobile has joined #ruby-lang
cmaxw has quit [Quit: cmaxw]
outoftime has quit [Ping timeout: 252 seconds]
Nisstyre has quit [Quit: Leaving]
chana has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
arooni-mobile has quit [Ping timeout: 276 seconds]