apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
<prestoUZH>
Ah yes. 1.9.3
<prestoUZH>
updating
<drbrain>
I wasn't able to get Curses::Pad into 1.9.3
<drbrain>
I just missed the deadline
<prestoUZH>
haah wow
<prestoUZH>
so you're pretty into this ruby stuff then? :P
<prestoUZH>
Do you do this for a living?
<drbrain>
yes, I maintain rubygems and rdoc, primarily
<prestoUZH>
I thought you meant you ran the website
mdedetrich has quit [Quit: Computer has gone to sleep.]
<prestoUZH>
still, submitting to ruby, pretty impressive :)
<prestoUZH>
I've only been doing this stuff for a few months
<drbrain>
other people run the website, there's probably a dozen people working on it
<prestoUZH>
I'd imagine so
<drbrain>
(rubygems, rubygems.org, related stuff)
<drbrain>
I like open source
<prestoUZH>
yep
<prestoUZH>
it's the way to go
<prestoUZH>
just look at Ubuntu vs Windows :L
<prestoUZH>
Windows isn't that bad, but you know
<prestoUZH>
it's meh
<drbrain>
it's clunky for development
<drbrain>
fine otherwise
<drbrain>
at least, the kind of development I'm familiar with
<prestoUZH>
all I know is the command prompt looks hideous
<prestoUZH>
really blockly
<prestoUZH>
*blocky
mdedetrich has joined #ruby-lang
<drbrain>
you can change the font and all that, but the shell is not very powerful
<drbrain>
I hear there are replacments
richardburton has quit [Quit: Leaving.]
elia has quit [Quit: Computer has gone to sleep.]
<prestoUZH>
It really isn't as bad as people make out
micalexander has quit [Remote host closed the connection]
<prestoUZH>
it's weird though..had a dell about 5 years ago (christmas present) and it was utterly awful as you can imagine, crashing all the time
<prestoUZH>
built my own pc and it's literally perfect
cnivolle has joined #ruby-lang
micalexander has joined #ruby-lang
<prestoUZH>
so ironic
<prestoUZH>
moronic..
<drbrain>
hehe
<drbrain>
I work on macs
<drbrain>
nothing to mess with
<prestoUZH>
Yeah, I have a macbook pro as well
<drbrain>
I have a FreeBSD router at home, too
<prestoUZH>
they do just work with less fuss
<prestoUZH>
I really don't like the way they're going with the new Mac Pros though
banister`sleep has quit [Quit: Computer has gone to sleep.]
<prestoUZH>
everything soldiered to the motherboard
<prestoUZH>
Don't like that at all...
toretore has quit [Quit: Leaving]
richardburton has joined #ruby-lang
<drbrain>
the market niche they're targeted at has commoditized storage, and the thunderbolt port allows you to use plenty of displays by default
<drbrain>
but also allows you to plug in PCIe cards if you need even more displays
micalexander has quit [Ping timeout: 252 seconds]
<drbrain>
so it seems fine to make it as small as possible otherwise
<prestoUZH>
Do you mean PCIe cards in an external enclosure?
<drbrain>
yes
<prestoUZH>
I don't know...isn't that sort of defeating the purpose of a compact machine if you have three other components plugged into it?
<drbrain>
I imagine apple expects most Mac Pro buyers to also purchase a pair of displays and some kind of RAID enclosure
<prestoUZH>
I just don't like the idea of not being to update a graphics card...I do design work as well see. 3D stuff
<prestoUZH>
I just feel the new Mac Pro would age way too quickly
<prestoUZH>
for me
* drbrain
nods
<prestoUZH>
So I bought a giant PC instead :L
<prestoUZH>
I actually want to develop video games later in life
<prestoUZH>
I think all video games will be online
<prestoUZH>
via some form of WebGL
<drbrain>
still, three 4K displays is a lot of rendering power
<prestoUZH>
I only have 1 display atm...I've already splashed out on the actual machine..I can afford some more displays but I don't want to break my wallet
<prestoUZH>
forcing myself to earn some more money first before I have a Matrix-like rig
<prestoUZH>
I want 4 displays x)
<prestoUZH>
Actually, can you recommend a good display?
<prestoUZH>
what about New York? Is that's all its cracked up to be?
<drbrain>
you can find most anything in New York
kek has joined #ruby-lang
<drbrain>
I stayed at an Irish hotel last time I went
<prestoUZH>
An irish hotal probably has a well stocked minibar :P
<prestoUZH>
*hotel
carlosgaldino has joined #ruby-lang
<prestoUZH>
The grid-iron road networks I think would be a relief as well
<drbrain>
a woman from Ireland ask the desk staff "where do I go to eat?" it took a few seconds for the staff to collect themselves to offer selections
<carlosgaldino>
does anyone know the name of a gem that lets you add type signatures in your code?
<drbrain>
because there's just so much good stuff
bastilian has quit [Quit: Leaving...]
<prestoUZH>
damn. Should defintely visit one day. Sound much better than York (as in Old York)
<drbrain>
it's grid-iron except for the south tip of manhattan, where the city started
<prestoUZH>
the british just can't build good roads
banisterfiend has joined #ruby-lang
<prestoUZH>
they will destroy any sat nav
mmorga_ has quit [Remote host closed the connection]
<drbrain>
haha
<prestoUZH>
have you ever been to Europe, then?
mistym has quit [Remote host closed the connection]
<drbrain>
I spoke at RailsClub Moscow a couple weeks ago
<drbrain>
went through the airports of Munich and Frankfurt
ldnunes has quit [Quit: Leaving]
<prestoUZH>
that doesn't count!
<prestoUZH>
I've been to an airport in Africa
<prestoUZH>
that's the most exotic airport I've ever been to haha
bf4 has joined #ruby-lang
<drbrain>
Moscow doesn't count?
<prestoUZH>
nope
<prestoUZH>
Moscow is in Russia :L
kek has quit [Remote host closed the connection]
<prestoUZH>
come WW3 it'll be NATO vs Warsaw Pact
stamina has quit [Ping timeout: 245 seconds]
<prestoUZH>
Ah do you know anything about Pik ?
jxie has quit [Quit: leaving]
<drbrain>
I'm not familure with it
<drbrain>
ah, like rvm, but for windows
<drbrain>
bus time for me, later!
retro|cz has joined #ruby-lang
io_syl has joined #ruby-lang
fijimunkii has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
cored has quit [Ping timeout: 248 seconds]
panpainter has joined #ruby-lang
panpainter has quit [Client Quit]
tkuchiki has joined #ruby-lang
saarinen has quit [Quit: saarinen]
robbyoconnor has quit [Ping timeout: 248 seconds]
bungoman has joined #ruby-lang
caral has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
micalexander has joined #ruby-lang
saarinen has joined #ruby-lang
hahuang65 has quit [Ping timeout: 265 seconds]
Coincidental has quit [Ping timeout: 248 seconds]
richardburton has quit [Quit: Leaving.]
saarinen has quit [Quit: saarinen]
pr0ton has quit [Ping timeout: 245 seconds]
bastilian has joined #ruby-lang
fragamus has joined #ruby-lang
fragamus has quit [Max SendQ exceeded]
fragamus has joined #ruby-lang
fragamus has quit [Max SendQ exceeded]
headius has quit [Quit: headius]
momomomomo has joined #ruby-lang
Domon has joined #ruby-lang
prestoUZH has quit [Ping timeout: 248 seconds]
fragamus has joined #ruby-lang
fragamus has quit [Max SendQ exceeded]
mmorga has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
Bosox20051 has joined #ruby-lang
carlosgaldino has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fuhgeddaboudit has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
Domon has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
fosky has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
fijimunkii has joined #ruby-lang
symm- has quit [Ping timeout: 248 seconds]
tonni has joined #ruby-lang
carlosgaldino has joined #ruby-lang
tkuchiki has quit [*.net *.split]
caral has quit [*.net *.split]
jbsan has quit [*.net *.split]
axsuul has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
joonty has quit [*.net *.split]
nhmood has quit [*.net *.split]
topaz has quit [*.net *.split]
KM|2 has quit [*.net *.split]
jds has quit [*.net *.split]
jacktrick has quit [*.net *.split]
chuck has quit [*.net *.split]
Guest85414___ has quit [*.net *.split]
randym_ has quit [*.net *.split]
_dumfries has quit [*.net *.split]
llakey has quit [*.net *.split]
zzak has quit [*.net *.split]
Kabaka has quit [*.net *.split]
Boohbah has quit [*.net *.split]
chuck has joined #ruby-lang
topaz has joined #ruby-lang
zzak has joined #ruby-lang
nhmood has joined #ruby-lang
randym_ has joined #ruby-lang
KM|2 has joined #ruby-lang
chuck has quit [Changing host]
chuck has joined #ruby-lang
Guest85414___ has joined #ruby-lang
llakey has joined #ruby-lang
tkuchiki has joined #ruby-lang
jacktrick has joined #ruby-lang
joonty has joined #ruby-lang
jds has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
fosky has quit [Ping timeout: 265 seconds]
tonni has quit [Ping timeout: 252 seconds]
nathanstitt has joined #ruby-lang
mistym has joined #ruby-lang
axsuul has joined #ruby-lang
Boohbah has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
fosky has joined #ruby-lang
Kabaka has joined #ruby-lang
jithu has joined #ruby-lang
randym_ has quit [Changing host]
randym_ has joined #ruby-lang
Guest85414___ has joined #ruby-lang
Guest85414___ has quit [Changing host]
jacktrick has joined #ruby-lang
jacktrick has quit [Changing host]
jds has joined #ruby-lang
jds has quit [Changing host]
Boohbah has quit [Changing host]
Boohbah has joined #ruby-lang
hahuang65 has joined #ruby-lang
soba has quit [Ping timeout: 248 seconds]
nathanstitt has quit [Quit: I growing sleepy]
momomomomo has joined #ruby-lang
kireevco_ has joined #ruby-lang
soba has joined #ruby-lang
panpainter has joined #ruby-lang
panpainter has quit [Client Quit]
mark06 has joined #ruby-lang
<mark06>
is there an automated migration process from 1.8 to 1.9?
kgrz has joined #ruby-lang
<mark06>
I have some scripts that are hard to test
ecnalyr has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
ecnalyr has joined #ruby-lang
fosky has quit [*.net *.split]
randym_ has quit [*.net *.split]
carlosgaldino has quit [*.net *.split]
micalexander has quit [*.net *.split]
io_syl has quit [*.net *.split]
JoshuaPaling has quit [*.net *.split]
LanceHaig has quit [*.net *.split]
jondot has quit [*.net *.split]
vbatts has quit [*.net *.split]
herpless____ has quit [*.net *.split]
bmaland_ has quit [*.net *.split]
vx9 has quit [*.net *.split]
kitallis-cloud has quit [*.net *.split]
dabradley has quit [*.net *.split]
vx9 has joined #ruby-lang
jondot has joined #ruby-lang
bmaland has joined #ruby-lang
herpless____ has joined #ruby-lang
vbatts has joined #ruby-lang
LanceHaig has joined #ruby-lang
kitallis-cloud has joined #ruby-lang
fosky has joined #ruby-lang
randym_ has joined #ruby-lang
micalexander has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby-lang
carlosgaldino has joined #ruby-lang
kireevco_ has quit [Remote host closed the connection]
<mark06>
ruby wakarimasen
mistym has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
JohnBat26 has quit [Remote host closed the connection]
mark06 has left #ruby-lang [#ruby-lang]
momomomomo has quit [Quit: momomomomo]
amerine has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Quit: Computer has gone to sleep.]
soba_ has joined #ruby-lang
soba has quit [Ping timeout: 264 seconds]
pleirosei has quit [Remote host closed the connection]
jxie has joined #ruby-lang
tomzx_mac has quit [Read error: Operation timed out]
Senjai has quit [Remote host closed the connection]
Senjai has joined #ruby-lang
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
banisterfiend has joined #ruby-lang
mmorga has quit [Remote host closed the connection]
soba_ has quit [Ping timeout: 264 seconds]
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
kgrz has quit [Ping timeout: 240 seconds]
amerine has joined #ruby-lang
spuk has joined #ruby-lang
soba has joined #ruby-lang
ledestin has quit [Read error: Operation timed out]
momomomomo has joined #ruby-lang
mistym has joined #ruby-lang
kenta_ has joined #ruby-lang
hurrrtin has quit [Quit: Page closed]
kenta_ has quit [Remote host closed the connection]
kenta_ has joined #ruby-lang
diegoviola has joined #ruby-lang
kenta_ has quit [Ping timeout: 248 seconds]
MouseTheLuckyDog has joined #ruby-lang
schaerli has joined #ruby-lang
<MouseTheLuckyDog>
How can I remove n secomds fropma DateTIme?
<MouseTheLuckyDog>
s/secomds/seconds/
<Mon_Ouie>
t - Rational(1, n*24*3600)
majjoha has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jonahR has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
soba has quit [Ping timeout: 245 seconds]
amerine has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
<banisterfiend>
Mon_Ouie just woke up or haven't slept yet? :)
schaerli has quit [Ping timeout: 252 seconds]
flip_digits has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
<Mon_Ouie>
I've already slept. Not sure I'd "just" woke up. I usually wake up at around 6.
richardburton1 has quit [Read error: Connection reset by peer]
kek has quit [Remote host closed the connection]
richardburton has quit [Read error: Connection reset by peer]
richardburton has joined #ruby-lang
jsaak has joined #ruby-lang
Domon has joined #ruby-lang
richardburton has quit [Read error: Connection reset by peer]
MaddinXx has joined #ruby-lang
richardburton has joined #ruby-lang
majjoha has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
axsuul has quit [Ping timeout: 252 seconds]
Kero has quit [Quit: restart]
bastilian_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Kero has joined #ruby-lang
<yorickpeterse>
morning
h_kon has joined #ruby-lang
bastilian has quit [Ping timeout: 248 seconds]
spling has left #ruby-lang [#ruby-lang]
ledestin has joined #ruby-lang
arBmind has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
x0f has joined #ruby-lang
kgrz has joined #ruby-lang
kek has joined #ruby-lang
elia has joined #ruby-lang
x0f_ has quit [Ping timeout: 252 seconds]
skade has joined #ruby-lang
<maloik>
fuckyea
<maloik>
prose + github hosted jekyll + custom webhost deploys now work \o/
<maloik>
by github hosted jekyll I mean the repo is up on github
vondruch has joined #ruby-lang
<Boohbah>
maloik: does that mean your site goes down every time github goes down? :P
<maloik>
why would it ?
<maloik>
you just can't rebuild it using prose.io, you'd have to go do that manually
<Boohbah>
i see
<maloik>
but this is fantastic for people who have jekyll sites for clients who don't need/want a fullblown CMS but also want to be able to change text on their site
JohnBat26 has quit [Remote host closed the connection]
Tearan has joined #ruby-lang
arBmind has left #ruby-lang [#ruby-lang]
vbatts has quit [Ping timeout: 248 seconds]
JohnBat26 has joined #ruby-lang
Tearan has quit [Ping timeout: 240 seconds]
majjoha_ has joined #ruby-lang
majjoha has quit [Read error: Connection reset by peer]
majjoha_ has quit [Read error: Connection reset by peer]
richardburton1 has joined #ruby-lang
ndrst has quit [Ping timeout: 268 seconds]
kenta_ has quit [Remote host closed the connection]
kenta_ has joined #ruby-lang
vbatts has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby-lang
richardburton1 has quit [Ping timeout: 265 seconds]
kgrz has quit [Remote host closed the connection]
Bosox20051 has quit [Ping timeout: 240 seconds]
kgrz has joined #ruby-lang
kenta_ has quit [Ping timeout: 265 seconds]
x0f_ has joined #ruby-lang
kgrz has quit [Ping timeout: 272 seconds]
benlovell has joined #ruby-lang
x0f has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby-lang
wmoxam has quit [Ping timeout: 246 seconds]
nisstyre has quit [Quit: Leaving]
Bosox20051 has joined #ruby-lang
havenwood has quit [Ping timeout: 248 seconds]
diegoviola has quit [Read error: Operation timed out]
kgrz has joined #ruby-lang
jsullivandigs has joined #ruby-lang
wmoxam has joined #ruby-lang
arBmind1 has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 245 seconds]
<ljarvis>
I used to love the "did you know" shit bits
<maloik>
afaik a lot of ATM's still use windows 95
<maloik>
probably a kind of heavily customized version but still
<whitequark>
a lot of industrial systems still uses dos 6.22
<whitequark>
and no, not customized at all.
<maloik>
I remember two years or so ago going to one that had a w95 error message up on it
<maloik>
pretty scary
<whitequark>
heck, there was some nuclear plant which was migrated from PDP-11 a few years ago
<ljarvis>
why upgrade something that works and doesn't kill people
<prestoUZH>
I'm to young to know about windows 95 :(
<whitequark>
why upgrade network-connected equipment which looks like swiss cheese and off support?
<prestoUZH>
but I do know the Space Shuttle's flight computer has something like 256mb of RAM or something tiny :L
<whitequark>
prestoUZH: that's a shitload of RAM
<whitequark>
look up Apollo Guidance Computer
<ljarvis>
my pacemaker has more ram
<prestoUZH>
ljarvis: haha
<whitequark>
ljarvis: it does not
<ljarvis>
whitequark: HOW DO U KNOW
<ljarvis>
have you seen my pacemaker? YOU HAVE NOT
<whitequark>
ljarvis: design requirements.
<whitequark>
calculate the amount of energy required to just *refresh* 256mb of dram
<prestoUZH>
Apparently each chip on a Credit Card has more 'computing power' (vague term, it was n00bashious) documentary than Apollo 11's computer
<whitequark>
yes, though not by a very wide margin
<whitequark>
you'd have something like 16MHz core clock (cf 2.048MHz) and, I dunno, 8 Kword RAM (cf 2 Kword)
<whitequark>
then again there's JavaCard :p
<prestoUZH>
Sorry to stop this random discussion of house hold objects vs space vehicles
<prestoUZH>
but
<prestoUZH>
you know when you create a virtual disk with VMPlayer?
<prestoUZH>
can you make it larger afterwards?
<prestoUZH>
if anyone happens to know :P
heftig has joined #ruby-lang
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
<prestoUZH>
I've got no room and I want to keep all my random crap :(
<whitequark>
use sparse disk images
<prestoUZH>
sparse you say?
<prestoUZH>
I don't really know much about this
heftig_ has joined #ruby-lang
<TCMSLP>
prestoUZH: There's a great Adobe Lightroom clone under Linux
heftig has quit [Disconnected by services]
<prestoUZH>
all I know is I need to create a 'virtual disk', and I can either have it as a single file, or split it into multiple files
heftig_ is now known as heftig
<prestoUZH>
that's all I know.
<prestoUZH>
TCMSLP: Ah I don't use Lightroom
daikan has joined #ruby-lang
<prestoUZH>
thankyou though :)
<prestoUZH>
Photoshop, Illustrator, AfterEfects
vbatts has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Remote host closed the connection]
<TCMSLP>
Gimp, inkscape, possibly OpenShot/Blender ? Your life would be easier with your current selection though :)
<whitequark>
>gimp
<whitequark>
>inkscape
<prestoUZH>
Yeah. I was thinking of those things
<whitequark>
seriously, have you ever seen them?
<TCMSLP>
I use all the above regularly
<prestoUZH>
Yes. All the shortcuts are in slightly different places and it annoys me x)
<whitequark>
I would rather eat rusty nails than use inkscape regularly
<prestoUZH>
I assume inkscape is for Vector art?
<prestoUZH>
Vectors are madly tricky no matter what program you're using
Domon has quit [Remote host closed the connection]
<TCMSLP>
whitequark: You're probably right. I only use it to convert bitmaps to vectors, clean up, then export as an svg for Blender. I'm not a power user, or even much of a normal user :)
<TCMSLP>
I agree with prestoUZH though - anything vector related is hell
<TCMSLP>
I usually assume it's my own incompetance rather than the software though
<prestoUZH>
That's thing with Adobe software. It's so complicated that you always think it's you. And when you've been using it for a few years you realise that some aspects of it are reallly idiotic.
<prestoUZH>
I won't go into it here, but using hexidecimal Gradients with Illustrator is just so badly implemented
<prestoUZH>
ah well
majjoha has quit [Read error: Connection reset by peer]
<prestoUZH>
Just uninstalled Metro 2033 to make room for this VM :,(
<FiXato>
Artyom will be disappoint son
relix has joined #ruby-lang
<prestoUZH>
haha
<whitequark>
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." C. A. R. Hoare
<prestoUZH>
Have you played Last Light?
<prestoUZH>
whitequark: genius haha
majjoha has joined #ruby-lang
jsullivandigs has joined #ruby-lang
<FiXato>
no prestoUZH; I'm waiting for it to also appear in a Humble Bundle :P
<prestoUZH>
Fixato: Well it's really good. I was just going to rant about how it guilt trips you towards the end. I won't spoil it thought :L
<FiXato>
oh, I don't mind spoilers. :) I haven't finished 2033 yet and have already watched both endings for it :P
<prestoUZH>
haha
<FiXato>
(though I guess this isn't the right channel for such offtopic things anyway :P)
<prestoUZH>
suppose, but no one's talking ruby!
jsullivandigs has quit [Ping timeout: 248 seconds]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
<TCMSLP>
ok, string.include?("word") matches 'word' and 'forward'. Is there an easy way to match only a whole word? I'm guessing a regex? Or is there another way?
<TCMSLP>
oops, spot the obvious mistake in my example
<imperator>
charliesome, you rage over benchmark posts?
<gjaldon>
ichilton: that's just another way to delimit a string
<charliesome>
imperator: i rage over javascript people
<charliesome>
i know i shouldn't go near HN :(
tylersmith has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
<maloik>
how do you execute something async in ruby? as in, my rack app gets a request, it handles it by running a certain method and then finishes the request
<maloik>
I want it to finish the request as soon as the other method started running
<maloik>
does that make sense ?
<whitequark>
maloik: yes
<whitequark>
you can either spawn a thread or use an event framework, eg EventMachine
majjoha has quit [Ping timeout: 264 seconds]
julian_ has quit [Quit: Lost terminal]
<yorickpeterse>
fuck yeah tunnels
<whitequark>
I personally would recommend the former, unless you have a good reason to go for events.
loinclot_ has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
Oak has joined #ruby-lang
Oak has quit [Changing host]
Oak has joined #ruby-lang
loincloth has quit [Ping timeout: 246 seconds]
bantic has joined #ruby-lang
<akahn>
if I have a an instance of Class, Foo::Bar, how can I get "Bar" as a string? is there a way to do it without having to string manipulate "Foo::Bar"?
Oak has quit [Ping timeout: 272 seconds]
<whitequark>
>> class Foo; class Bar; end; end; Foo::Bar.name
micalexander has quit [Read error: Connection reset by peer]
<drbrain>
yeah
<apeiros>
odd, why'd that contain a \x01
micalexander has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
majjoha has joined #ruby-lang
momomomomo has joined #ruby-lang
richardburton has quit [Ping timeout: 272 seconds]
<drbrain>
I'm unsure how to set it
<apeiros>
I think via chanserv
<drbrain>
sure, but I don't know which command does it
<apeiros>
/msg chanserv set entrymsg
<apeiros>
ah well, actually: Syntax: SET <#channel> ENTRYMSG [message]
<drbrain>
ah, there's an EM DASH in the entrymsg
<drbrain>
—
<drbrain>
I just replaced it with a -
<drbrain>
so I guess pidgin can't cope with UTF-8?
<apeiros>
why'd an em-dash contain \x01?
<drbrain>
maybe broken character conversion?
majjoha has quit [Ping timeout: 240 seconds]
<drbrain>
mark06: ↑
<drbrain>
mark06: did I fix your problem?
<apeiros>
drbrain: heh, no, it wasn't the em-dash
<apeiros>
I think whoever set the entry message had it broken
<apeiros>
it's immediately before the em-dash
relix has joined #ruby-lang
tenderlove has joined #ruby-lang
havenwood has joined #ruby-lang
<apeiros>
funky, I can paste it into sublime, but not into the terminal
<mark06>
drbrain: \x1 may not get displayed by your client, firefox on webchat for example
<mark06>
drbrain: ah please ignore, I thought you were trying to "see" those chars
pr0ton has joined #ruby-lang
<drbrain>
mark06: no, just trying to fix it
apeiros has left #ruby-lang [#ruby-lang]
apeiros has joined #ruby-lang
<mark06>
drbrain: ok for replacing the dash but that wasn't really the problem... ah wait... whatever had set the message, it insterted two \x1 before the dash?
<apeiros>
yes
<mark06>
anyone knows what encoding would that be?
<apeiros>
broken client IMO
<drbrain>
mark06: I don't know, since I can't see them in my client
<apeiros>
drbrain: copy & paste your own message - it still contains the \x01
<apeiros>
two of them actually
serroft has joined #ruby-lang
<mark06>
drbrain: ah ok, try copy/paste onto some editor, webchat doesn't show it (firefox) but the \x1 chars are indeed there
<apeiros>
sublime shows them as (SOH) - white on black ground. looks funny :)
<apeiros>
oh, wow, I actually have sufficient privileges to alter the entry message
<apeiros>
weeeeee! :D
<drbrain>
that's really strange because I typed it in by hand
aknagi has quit [Quit: aknagi]
<apeiros>
drbrain: no, not the new one
<drbrain>
ah
Guest63781 has joined #ruby-lang
<apeiros>
the one where you pasted the old entry message
<mark06>
SOH = Start Of Heading => ascii char \x1
<apeiros>
mark06: yupp
<drbrain>
I see them now, in the old one
pencilandpaper has left #ruby-lang [#ruby-lang]
aknagi has joined #ruby-lang
<apeiros>
I restored the utf-8 free, 7bit ascii only entrymsg which drbrain had set.
pencilandpaper has joined #ruby-lang
yalue has quit [Quit: Leaving]
<apeiros>
I think it's not a bad idea to stay as compatible as possible on the first message sent to a channel participant :)
<apeiros>
(even though I think broken clients should be fixed)
<pencilandpaper>
o, the message has been changed now.
<pencilandpaper>
i went to a different client to see if i could see it differently with it on the side. bummer.
mistym_ has quit [Remote host closed the connection]
<apeiros>
pencilandpaper: I can pm it to you, if you want
havenwood has quit [Remote host closed the connection]
<mark06>
here's a \x1:
<pencilandpaper>
thanks. well i can see it clearly on the other one mark06..and not on pidgin.
<mark06>
apeiros: yeah I argued it is a stupid bug corrupting whole buddy list instead of just ignoring these invalid, nonsense, chars
<apeiros>
mark06: they forgot the prime mantra of programming: never trust user input
<apeiros>
if it can corrupt your buddy list, it can potentially be abused for worse.
<mark06>
apeiros: I wonder who had set the message with dash and which encoding they were using
<apeiros>
mark06: I don't think it was caused by an encoding
<pencilandpaper>
it hasnt done a thing to my buddylist yet.
<mark06>
pencilandpaper: I see a square with four zeros in pidgin
<pencilandpaper>
thats what i see as well mark06. i have seen that with color codes for fonts as well.
<mark06>
apeiros: it seems very likely to be some encoding problem, why that pair would be place exactly right before the non-ascii char and not anywhere else?
<apeiros>
mark06: it actually seems very unlikely
<mark06>
pencilandpaper: I think you need irchelper enabled, it stores the join message
<apeiros>
since no encoding I'm aware of has 7bit ascii, proper utf-8 em-dash, but randomly uses \x01
<apeiros>
I think it was an editor/copy-paste problem
<apeiros>
which introduced control characters unwantedly
<pencilandpaper>
i actually do have it installed mark06.
<pencilandpaper>
i dont keep logs.
richardburton has joined #ruby-lang
<mark06>
pencilandpaper: and enabled, and you joined the channel before the fix? ah wait, I think you need this channel added to your buddy list so it can save it, then restart pidgin (but it's fixed now)
<pencilandpaper>
o ok, i see. yeah the channel isnt added up though. so that could be it.
<mark06>
apeiros: I see
ryez has quit [Ping timeout: 250 seconds]
<mark06>
pencilandpaper: yeah if the channel is on your buddy list, irchelper saves the join message, causing the problem to appear
mistym_lunch is now known as mistym
<mark06>
so guys I'll leave and rejoin for testing, brb
flip_digits has quit [Remote host closed the connection]
mark06 has left #ruby-lang [#ruby-lang]
<pencilandpaper>
brb as well.
pencilandpaper has left #ruby-lang [#ruby-lang]
Guest63781 has quit [Quit: ChatZilla 0.9.90.1 [SeaMonkey 2.19/20130714085432]]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aknagi has quit [Quit: aknagi]
Johz has joined #ruby-lang
pencilandpaper has joined #ruby-lang
<pencilandpaper>
as someone that doesnt have the channel added, it appears to be ok.
ldnunes has joined #ruby-lang
pr0ton has quit [Ping timeout: 246 seconds]
majjoha has joined #ruby-lang
mac___ has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
charliesome has joined #ruby-lang
majjoha has quit [Ping timeout: 240 seconds]
Coincidental has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
Coincidental has joined #ruby-lang
mark06 has joined #ruby-lang
sdlkfjdslkfsdlk has quit [Quit: Page closed]
aknagi has joined #ruby-lang
Coincidental has quit [Ping timeout: 265 seconds]
<mark06>
problem fixed, thanks
<drbrain>
mark06: yay!
pr0ton has joined #ruby-lang
richardburton1 has joined #ruby-lang
grawity has left #ruby-lang ["Bye."]
richardburton has quit [Ping timeout: 245 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
sevvie has joined #ruby-lang
aknagi has quit [Quit: aknagi]
rikai has quit [Read error: Connection reset by peer]
rikai has joined #ruby-lang
melter has quit [Remote host closed the connection]
pencilandpaper has left #ruby-lang [#ruby-lang]
jvrmaia has quit [Quit: Leaving]
majjoha has joined #ruby-lang
saarinen has joined #ruby-lang
kurko_ has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
majjoha has quit [Ping timeout: 245 seconds]
breakingthings has quit []
<mark06>
so now, anyone help me with a 1.9 problem?
<mark06>
I got an encoding error when I try to read a file with a pass passed as argument
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
sevvie has quit [Quit: leaving]
<mark06>
none of the console window, or the ruby script, or the Windows API uses CP850, but it tried to do some conversion in this encoding
<mark06>
CP850 is only used in cmd.exe and some old console programs, I think
r0bby_ has joined #ruby-lang
vbatts|work has quit [Read error: Operation timed out]
<mistym>
mark-: Can I see your code?
<mistym>
Er, mark06
robbyoconnor has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby-lang
<mark06>
yes, a sec
richardburton1 has quit [Quit: Leaving.]
arBmind has quit [Quit: Leaving.]
loincloth has quit [Remote host closed the connection]
jeff_r has quit [Read error: Connection reset by peer]
jeff_r has joined #ruby-lang
<mark06>
drbrain: so ARGF means a list of File objects loaded from command line arguments (and assuming all args are paths or they were removed from ARGV)?
<rickhull>
rick@tao:~/git/ocs-autodeploy/ruby/bundle/ruby$ ls
<rickhull>
2.0.0
<drbrain>
hehehehehehe
<rickhull>
now i'm confused, but i think you've hit on a big part
mdedetrich has quit [Quit: Computer has gone to sleep.]
<rickhull>
did i say reddit gold? i meant mold
<drbrain>
it's cool, I primarily only use reddit to consume, so I'm unsure what gold would bring me
<apeiros>
oh, wow, my window was stuck in the backlog
<rickhull>
i forget, i tried it for free when it first came out
majjoha has joined #ruby-lang
<mark06>
drbrain: decode decodes a str object into a unicode object, it takes the bytes and try to create a "proper string" (decode) assuming the bytes are encoded in the provided encoding
<drbrain>
mark06: thanks
mannyt has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
majjoha has quit [Ping timeout: 245 seconds]
<rickhull>
ah, i see. `rspec` is using ruby1.9, even though my default ruby is 2.0
<rickhull>
the bundler load path stuff is dynamically generated from RbConfig
<rickhull>
::CONFIG['ruby_version']
<rickhull>
i'm thinking that since i install rspec via bundle install —standalone, that i should be using that binary
<rickhull>
and yeah, i'm picking up the older system rspec
<rickhull>
now i'm wondering if i should do PATH manipulation, or just "hardcode" to find the bundled bin
<rickhull>
looks like install —binstubs is the way
pr0ton has quit [Quit: pr0ton]
pr0ton has joined #ruby-lang
skade has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
majjoha has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
Ahti333 has joined #ruby-lang
majjoha has quit [Ping timeout: 272 seconds]
Trapper has joined #ruby-lang
prestoUZH has joined #ruby-lang
headius has quit [Quit: headius]
duphus1 has joined #ruby-lang
<Trapper>
yawn
prestoUZH has quit [Quit: My HAL9000 has gone to sleep. ZZZzzz...]
pr0ton has quit [Quit: pr0ton]
MrPoT4tO has quit [Read error: Connection reset by peer]
HasMan has joined #ruby-lang
carlosgaldino has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mark06>
drbrain: same problem on 2.0.0p247
pr0ton has joined #ruby-lang
postmodern has joined #ruby-lang
<drbrain>
mark06: I would file a bug then
<mark06>
drbrain: ok thanks for helping me figure it out!
Trapper has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
jeff_r has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
Trapper has joined #ruby-lang
<mark06>
drbrain: my bet is ruby 1.9+ tries to figure out what encoding to use for file paths depending on some factor, but I think it's a fixed encoding in Windows, UTF-16 I think
<drbrain>
mark06: probably
jeff_r has quit [Ping timeout: 252 seconds]
HasMan has quit [Read error: Connection reset by peer]
majjoha has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
HasMan has joined #ruby-lang
hogeo has quit [Remote host closed the connection]