imperator changed the topic of #ruby-lang to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
gaveen has quit [Remote host closed the connection]
wyhaines has joined #ruby-lang
havenn has joined #ruby-lang
jtoy has quit [Quit: jtoy]
zhul_mechanos has quit [Quit: zhul_mechanos]
xsdg has quit [Ping timeout: 255 seconds]
tdy has joined #ruby-lang
tmi__ has joined #ruby-lang
yfeldblum has joined #ruby-lang
xsdg has joined #ruby-lang
tmi_ has quit [Ping timeout: 252 seconds]
sush24 has joined #ruby-lang
lsegal has joined #ruby-lang
jonahR has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
jonahR has quit [Client Quit]
mistym has quit [Ping timeout: 276 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Quit: This computer has gone to sleep]
KA_ has quit [Quit: KA_]
tmi__ has quit [Quit: tmi__]
efrainolivares has joined #ruby-lang
havenn_ has joined #ruby-lang
srbaker has joined #ruby-lang
havenn has quit [Ping timeout: 251 seconds]
s1n4 has joined #ruby-lang
srbaker has quit [Client Quit]
s1n4 has quit [Client Quit]
KA_ has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: I will be right back]
gregmoreno has quit [Ping timeout: 276 seconds]
s1n4 has joined #ruby-lang
srbaker has joined #ruby-lang
gregmoreno has joined #ruby-lang
jtoy has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
xalei has joined #ruby-lang
codewrangler has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
justinram has joined #ruby-lang
spuk has joined #ruby-lang
postmodern has joined #ruby-lang
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 272 seconds]
breakingthings has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
gregmore_ has quit [Ping timeout: 265 seconds]
BigFatFatty has left #ruby-lang [#ruby-lang]
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
pythonsnake has joined #ruby-lang
wyhaines has joined #ruby-lang
havenn_ has quit [Remote host closed the connection]
havenn has joined #ruby-lang
xalei has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 265 seconds]
drbrain has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
justinram has quit [Remote host closed the connection]
hahuang65 has quit [Client Quit]
Rarrikins has joined #ruby-lang
VegetableSpoon has joined #ruby-lang
methods has joined #ruby-lang
marr has quit [Ping timeout: 248 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ryanf has quit [Ping timeout: 276 seconds]
drbrain has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
s1n4 has quit [Quit: peace out]
kurko_ has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
drbrain has quit [Ping timeout: 260 seconds]
blazes816 has quit [Quit: blazes816]
ryanf has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
gregmore_ has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
wyhaines has joined #ruby-lang
gregmore_ has quit [Ping timeout: 255 seconds]
mwjcomputing has joined #ruby-lang
xyzodiac has joined #ruby-lang
drbrain has joined #ruby-lang
efrainolivares has quit [Quit: efrainolivares]
jbsan has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
DEac- has quit [Read error: No route to host]
larrylv has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
stonerfish has joined #ruby-lang
DEac- has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
m3nd3s has quit [Remote host closed the connection]
blahwoop has joined #ruby-lang
breakingthings has quit [Ping timeout: 252 seconds]
breakingthings has joined #ruby-lang
jbsan has quit [Quit: jbsan]
hahuang65 has joined #ruby-lang
breakingthings has quit [Ping timeout: 252 seconds]
breakingthings has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
xyzodiac has quit [Quit: Computer has gone to sleep.]
xyzodiac has joined #ruby-lang
codewrangler has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rsl has quit [Quit: Computer has gone to sleep.]
xyzodiac has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Quit: This computer has gone to sleep]
blahwoop has quit [Remote host closed the connection]
blahwoop has joined #ruby-lang
jbsan has joined #ruby-lang
xyzodiac has joined #ruby-lang
xalei has joined #ruby-lang
gix has quit [Ping timeout: 255 seconds]
havenn has joined #ruby-lang
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
davidbalbert is now known as davidbalber|away
toretore has quit [Quit: Leaving]
havenn has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby-lang
Rarrikins has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
Rarrikins has joined #ruby-lang
<jammi> btw, any alternatives to Time.now.to_f? it seems terribly wasteful to me, when doing a lot of timer comparisons and all that's needed is just a system timer number to compare with, in milliseconds or microseconds
<jammi> for instance, to measure at least a number of milliseconds have passed since an operation was done the last time
wyhaines has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
<heftig> jammi: you can take the difference of Time values directly, no need to convert them first. you'll get a float
larrylv has joined #ruby-lang
<heftig> >> a = Time.now; sleep 1; puts(Time.now - a)
<heftig> meh, no bot here
havenn has quit [Read error: Connection reset by peer]
Rarrikins has quit [Ping timeout: 240 seconds]
Rarrikins has joined #ruby-lang
larrylv has quit [Ping timeout: 255 seconds]
VegetableSpoon has quit [Quit: Leaving]
<jammi> heftig: sure, but it's not much more efficient
<heftig> well, ruby's not a systems programming language
<jammi> I was figuring whether there's there's just a system timer accessible directly
<jammi> of course it's not, but well..
KA_ has quit [Quit: KA_]
Rarrikins has quit [Ping timeout: 252 seconds]
KA_ has joined #ruby-lang
<darix> jammi: there is a gem with a name like that if i recall correctly
<darix> but not sure it helps you much
Rarrikins has joined #ruby-lang
<jammi> well, it doesn't even compile on my setups
<darix> isnt something like that what you actually want?
<banisterfiend> heftig: will you be a vessel for my truth
<heftig> No
Rarrikins_h has joined #ruby-lang
Rarrikins has quit [Ping timeout: 248 seconds]
<darix> jammi: that also has a realtime method to give you time differences
<jammi> darix: yes, thanks. that's what I was looking for
breakingthings has quit [Ping timeout: 264 seconds]
Rarrikins_h_h has joined #ruby-lang
setmeaway has joined #ruby-lang
<jammi> was just about to write an equivalent
setmeaway2 has joined #ruby-lang
Rarrikins_h has quit [Ping timeout: 260 seconds]
breakingthings has joined #ruby-lang
Rarrikins_h_h has quit [Ping timeout: 260 seconds]
<darix> jammi: google search for "ruby monothonic clock" brought this up
setmeaway has quit [Ping timeout: 276 seconds]
jperry2 has quit [Quit: jperry2]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
jtoy has quit [Quit: jtoy]
wyhaines has quit [Remote host closed the connection]
dvorak has quit [Quit: leaving]
matti has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
Rarrikins has joined #ruby-lang
dvorak has joined #ruby-lang
Rarrikins_q has joined #ruby-lang
Rarrikins has quit [Ping timeout: 256 seconds]
methods has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ryanv-raptor has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
ryanv-raptor has left #ruby-lang [#ruby-lang]
charliesome has joined #ruby-lang
Rarrikins_q has quit [Ping timeout: 240 seconds]
Sinestro has quit [Read error: Operation timed out]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
irichlau2 has joined #ruby-lang
blahwoop has quit [Read error: Connection reset by peer]
irichlau2 has left #ruby-lang [#ruby-lang]
blahwoop has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
agarie has quit [Remote host closed the connection]
meatballhat has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
drbrain has quit [Read error: Connection reset by peer]
drbrain_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
gnufied has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Remote host closed the connection]
headius has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
unlikely_monkey has joined #ruby-lang
jonahR has joined #ruby-lang
MrWibbles has joined #ruby-lang
<MrWibbles> ok.. any idea
<MrWibbles> how to get capistrano commands inside my own class
<MrWibbles> i thought it would be something like include Capistrano::Configuration.. but thats not it
srbaker has joined #ruby-lang
andrewhl has joined #ruby-lang
breakingthings has quit []
Cope has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
jbsan has quit [Quit: jbsan]
andrewhl has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
andrewhl has quit [Ping timeout: 240 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Quit: jonahR]
blahwoop has quit [Remote host closed the connection]
blahwoop has joined #ruby-lang
amaya_the has joined #ruby-lang
MrWibbles has quit [Ping timeout: 260 seconds]
lsegal has joined #ruby-lang
kith has quit [Ping timeout: 252 seconds]
retro|cz has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
andrewhl has joined #ruby-lang
countdigi has quit [Quit: leaving]
jscherff has joined #ruby-lang
jscherff has quit [Client Quit]
karasawa has joined #ruby-lang
xyzodiac has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
stonerfish has quit [Quit: Leaving.]
stevechiagozie has joined #ruby-lang
JohnBat26 has joined #ruby-lang
amaya_the has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121128204232]]
amaya_the has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 265 seconds]
Sinestro has joined #ruby-lang
blahwoop has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby-lang
jbsan has joined #ruby-lang
MrWibbles has joined #ruby-lang
<MrWibbles> hi .. i've got a file with require 'net/ssh'; Net::SSH.start ...
<MrWibbles> and it's complaining that ssh.rb:1:in `require': no such file to load -- net/ssh (LoadError)
gnufied1 has joined #ruby-lang
<MrWibbles> if i load up irb and type require 'net/ssh'
<MrWibbles> it just workds
<MrWibbles> in my Gemfile i have gem "net-ssh"
dhsmith has joined #ruby-lang
MrWibbles has quit [Ping timeout: 272 seconds]
antbody has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
jbsan has quit [Quit: jbsan]
andrewhl has quit [Remote host closed the connection]
MrWibbles has joined #ruby-lang
njerichelimo has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
jbsan has joined #ruby-lang
unsymbol has quit [Ping timeout: 252 seconds]
jbsan has quit [Quit: jbsan]
robbyoconnor is now known as robbyoconnorhey
robbyoconnorhey is now known as robbyoconnor
mpan has quit [Ping timeout: 248 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
MrWibbles has quit [Ping timeout: 276 seconds]
tenderlove has quit [Remote host closed the connection]
crazyhorse18 has joined #ruby-lang
tenderlove has joined #ruby-lang
headius has quit [Quit: headius]
<crazyhorse18> hi.. i can't get ssh to connect with a key or a pssword .. any idea what i'm doing wrong
dhruvasagar has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
jbsan has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
karasawa has quit [Ping timeout: 276 seconds]
antbody has quit [Quit: Lost terminal]
tenderlove has quit [Ping timeout: 252 seconds]
ryanv-raptor has quit [Client Quit]
kain has quit [Quit: exit]
wyhaines has joined #ruby-lang
<crazyhorse18> piece of crap
<crazyhorse18> net/ssh
<crazyhorse18> didn't work
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 255 seconds]
amaya_the has left #ruby-lang [#ruby-lang]
amaya_the has joined #ruby-lang
dhsmith has quit [Remote host closed the connection]
dhsmith has joined #ruby-lang
tenderlove has joined #ruby-lang
amaya_the has left #ruby-lang [#ruby-lang]
dhsmith_ has joined #ruby-lang
sn0wb1rd has quit [Quit: I will be right back]
sush24 has joined #ruby-lang
dhsmith_ has quit [Remote host closed the connection]
dhsmith has quit [Read error: Connection reset by peer]
dhsmith has joined #ruby-lang
dhsmith_ has joined #ruby-lang
dhsmith_ has quit [Remote host closed the connection]
marr has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 255 seconds]
dhsmith has quit [Ping timeout: 272 seconds]
karasawa has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
gnufied1 has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gnufied1 has left #ruby-lang [#ruby-lang]
sush24 has quit [Quit: This computer has gone to sleep]
robbyoconnor has joined #ruby-lang
marr has quit []
facest has quit [Ping timeout: 248 seconds]
facest has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
crazyhorse18 has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: WeeChat 0.3.9.2]
sush24 has joined #ruby-lang
imajes has quit [Excess Flood]
zmack has joined #ruby-lang
imajes has joined #ruby-lang
xalei has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Quit: This computer has gone to sleep]
KA_ has quit [Quit: KA_]
sn0wb1rd has joined #ruby-lang
zmack has quit [Remote host closed the connection]
Sinestro has quit [Quit: Textual IRC Client: www.textualapp.com]
solars has joined #ruby-lang
vlad_starkov has joined #ruby-lang
antbody has joined #ruby-lang
kennyvb has quit [Ping timeout: 255 seconds]
<antbody> I hope this is not a dumb question but how does the @@ syntax work? When I define variables with @ I just think of were self points now, but since @@ is shared between classes I'm confused.
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
<Paradox> antbody, @@ is like @
<Paradox> but instead of being bound to that single class object
<Paradox> every class can use it
<Paradox> erm
<rue> It’s not like @
<Paradox> every instance of that object
<Paradox> its how you could set, say, a configuration value for every instance of an object
<antbody> Yeah I know that it's usable, but how does it do that. Does it introduce some anon class to the hierarchy or?
<rue> No
<rue> If you want a ‘class variable’, use a class instance variable.
<Paradox> @@ isnt used too much
<rue> @@vars are shared between the class *hierarchy*.
kennyvb has joined #ruby-lang
imajes has quit [Excess Flood]
<rue> antbody: The implementation varies
imajes has joined #ruby-lang
kennyvb has quit [Ping timeout: 248 seconds]
kennyvb has joined #ruby-lang
postmodern has quit [Quit: Leaving]
JohnBat26 has quit [Ping timeout: 276 seconds]
tmi_ has joined #ruby-lang
adambeynon has joined #ruby-lang
tmi_ has quit [Quit: tmi_]
postmodern has joined #ruby-lang
tmi_ has joined #ruby-lang
m3nd3s has joined #ruby-lang
jacktrick has joined #ruby-lang
jacktrick is now known as Guest58113
mytrile has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
tmi_ has quit [Quit: ./]
yfeldblum has quit [Ping timeout: 272 seconds]
Nss has joined #ruby-lang
yfeldblum has joined #ruby-lang
MrWibbles has joined #ruby-lang
thoughtfulgoblin has joined #ruby-lang
<thoughtfulgoblin> Hi guys, How do you change where a ruby tar compiles to?
<thoughtfulgoblin> I have run tar xzvf ruby-1.9.3-p362.tar.bz2 and then the guides I have read say to run ./configure && make . But I would like to install in a different folder than the one it currently chooses.
Guest58113 has left #ruby-lang [#ruby-lang]
jacktrick has joined #ruby-lang
<jacktrick> thoughtfulgoblin, move the tar to where you want to install before extracting?
<jacktrick> I'm assuming it just installs to wherever it's extracted
<oddmunds> does it install at all when you just run a make?
<oddmunds> by unix convention that would just compile it. run make install to install.
<thoughtfulgoblin> it installs fine, but it installs to /usr/local/lib/ruby/1.9.1
<oddmunds> yikes
<thoughtfulgoblin> I am running osx by the way
<jacktrick> I'd use rvm
<jacktrick> makes things much simpler <.<
<jacktrick> or is there a reason you can't?
<thoughtfulgoblin> I am trying to get rbenv to work :D
<jacktrick> haha
<thoughtfulgoblin> to be even simpler than rvm :D
<thoughtfulgoblin> can I just copy the files?
<thoughtfulgoblin> after it has installed?
<jacktrick> I'm not sure. D:
<jacktrick> is there an #rbenv channel?
<thoughtfulgoblin> no
unsymbol has joined #ruby-lang
<jacktrick> D:
<MrWibbles> rvm is a pain in the ass
<jacktrick> how so? I haven't had problems with it yet
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
ebouchut has joined #ruby-lang
gix has joined #ruby-lang
<injekt> thoughtfulgoblin: You would use --prefix
<injekt> thoughtfulgoblin: ./configure --prefix=$HOME/.ruby/
<injekt> thoughtfulgoblin: and no you cant copy the files after, that would break the configuration
<thoughtfulgoblin> ah thanks, actually rbenv came with a ruby installer that I think has fixed the problem
<injekt> thoughtfulgoblin: you can also use ruby-build for this, which is also built as an rbenv plugin
<thoughtfulgoblin> thanks for the answers all the same :)
<jacktrick> :D
<injekt> yeah that's it :)
emocakes has joined #ruby-lang
leopard_me has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
setmeaway2 has quit [Quit: Leaving]
setmeaway has joined #ruby-lang
sepp2k has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
Guedes has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
mytrile has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
mytrile has quit [Remote host closed the connection]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
karasawa has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
stardiviner has joined #ruby-lang
<andrewvos> thoughtfulgoblin: ruby-build is your friend
<mfn> anyone using slop? How can I removed parsed options from ARGV or get a list of all non-parsed options?
Guedes has joined #ruby-lang
tbuehlmann has joined #ruby-lang
yaroslav has joined #ruby-lang
karasawa has quit [Ping timeout: 276 seconds]
<rue> Doesn’t it return you the remainder?
<mfn> hmm, where? From https://github.com/injekt/slop I'm using "opts = Slop.parse { ... }";
<injekt> mfn: parse!
<injekt> parse! modifies ARGV, parse does not
<mfn> O_O
<mfn> I wish the README.md on github would explain all available options/configurations
<injekt> it's github, fork and improve the readme, I'm open to merge improvements
madish has joined #ruby-lang
<emocakes> anyone got any hosting recommendations?
<emocakes> looking for an unmanaged dedi
<injekt> emocakes: for hosting what?
<injekt> eh dedi, no idea.. people still use dedis?
<mfn> injekt: I'd essentially write all the inforamtion (also from the wiki pages) into just one page. Simplifies searching for something instead of going through all the pages.
<emocakes> yes injekt, not everyone likes to get bent over by heroku and sodomised
<emocakes> :)
<rue> mfn: I think he’s saying “please do that” :P
<injekt> mfn: I had that before and people complained, but I prefer it too. I'm open to changes
<rue> injekt: How do you get the remainder with #parse, then?
dhruvasagar has quit [Remote host closed the connection]
<injekt> emocakes: What does that have to do with heroku? I'm talking about a vpn, not an app hosting provider
<mfn> injekt: so I'm not halucinating? Because I thought I was looking at a page with more information in the past
<emocakes> a vps you mean injekt
<emocakes> :p
vlad_starkov has joined #ruby-lang
<emocakes> i have vps's as well, plan to run vps's on the dedi
<injekt> oops yes vps
<emocakes> to get rid of my vps's
<injekt> rue: You dont
<injekt> mfn: Nope you're not, the readme was pcked full before
<injekt> emocakes: and heroku saves me around 14k a year, so dont hate too much ;)
<emocakes> injekt, it has its uses :P
<emocakes> but its not le silver bullet
<injekt> there is no silver bullet :)
imajes has quit [Excess Flood]
vlad_sta_ has joined #ruby-lang
<injekt> mfn: the api docs are pretty good, though: https://github.com/injekt/slop/blob/master/lib/slop.rb#L181-188
<ggreer> what about a... tin bullet? hell I'd be happy with a lead bullet. anything but the styrofoam bullets that most companies are selling :P
vlad_starkov has quit [Ping timeout: 264 seconds]
imajes has joined #ruby-lang
antbody has quit [Quit: leaving]
<emocakes> what do you host injekt
<emocakes> injekt apps? :p
<injekt> emocakes: im the co-founder at a company who has built a website for showcasing real estate
<injekt> showcasing*
<emocakes> ok ok
jxie has quit [Quit: leaving]
larrylv has joined #ruby-lang
leopard_me has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 272 seconds]
bubonicpestilenc has joined #ruby-lang
<bubonicpestilenc> hey all
<bubonicpestilenc> Can I use "mutex" as global lock?
<bubonicpestilenc> like:
<bubonicpestilenc> def handle_message(msg); mutex.synchronize { puts msg }; end; 10.times { thread.start { handle_message("test") } }
<bubonicpestilenc> e.g. 10 connections inside threads
<bubonicpestilenc> but processing of commands is single-threaded
<bubonicpestilenc> or maybe there is a better approach?
toretore has joined #ruby-lang
robbyoconnor has joined #ruby-lang
postmodern has joined #ruby-lang
ddd has joined #ruby-lang
emocakes has quit [Quit: emocakes]
kith has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 264 seconds]
francisfish has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
njerichelimo has quit [Ping timeout: 255 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
bubonicpestilenc has quit [Quit: My blog @ http://bubonicpestilence.ru/]
Guedes has quit [Ping timeout: 240 seconds]
MrWibbles has quit [Ping timeout: 252 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
Guedes has joined #ruby-lang
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
stevechiagozie has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
ebouchut has joined #ruby-lang
Guedes has quit [Excess Flood]
Guedes has joined #ruby-lang
karasawa has joined #ruby-lang
Guedes has quit [Read error: Operation timed out]
yaroslav has quit [Quit: yaroslav]
heftig has quit [Quit: leaving]
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
Guedes has joined #ruby-lang
sepp2k1 has joined #ruby-lang
Guedes has quit [Excess Flood]
Guedes has joined #ruby-lang
sepp2k has quit [Ping timeout: 272 seconds]
<rue> injekt: That’d seem like a useful feature
<rue> That is, if #parse! actually *modifies* ARGV
arooni-mobile has joined #ruby-lang
arooni-mobile has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
Guedes has quit [Ping timeout: 276 seconds]
imajes has joined #ruby-lang
kurko_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 272 seconds]
Guedes has joined #ruby-lang
robbyoconnor has joined #ruby-lang
ryez_ has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
Guedes has quit [Read error: Operation timed out]
Guedes has joined #ruby-lang
jstemmer has quit [Ping timeout: 260 seconds]
heftig has joined #ruby-lang
justinram has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
imperator has joined #ruby-lang
blahwoop has joined #ruby-lang
<injekt> rue: what? parse returning non-parsed items? it would seem a little backwards
<rue> For them to be available
<injekt> sure, but I can't really see a use-case for this. parse also takes a block and yields non-parsed arguments (like option parser)
<rue> Just an accessor for that might be useful.
dabradley has quit [Ping timeout: 265 seconds]
ryez_ has quit [Quit: Page closed]
karasawa has quit [Ping timeout: 240 seconds]
imajes has quit [Excess Flood]
vlad_starkov has joined #ruby-lang
imajes has joined #ruby-lang
xyzodiac has joined #ruby-lang
thone_ has joined #ruby-lang
codechewing has joined #ruby-lang
<codechewing> Hi all. I'm using the spriting feature with Compass & Sass. And a random string is appended to the sprite's filename. E.g. spritename-asdg237as8dg.png. I don't want this random string appended to the filename. Does anyone know which Ruby or config file inside of the Compass directory contains this operation? I can't find it to disable it.
robbyoconnor has quit [Ping timeout: 246 seconds]
thone has quit [Ping timeout: 252 seconds]
m3nd3s has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
m3nd3s has joined #ruby-lang
robbyoconnor has joined #ruby-lang
thoughtfulgoblin has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
jxie has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
mistym has quit [Remote host closed the connection]
swav has quit [Remote host closed the connection]
Rarrikins has joined #ruby-lang
<ddd> i take it this is under rails
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
arooni-mobile has quit [Ping timeout: 265 seconds]
<ddd> thats part of the asset pipeline (rake assets:precompile) which has to do with the cache. that string is how it keeps track of cached assets, and it can't be removed unless you totally disable the pipelining and caching. I'd have to do the same thing you would, search for how to disable correctly
m3nd3s has quit [Remote host closed the connection]
<ddd> also, so you don't get yelled at, I would *highly* suggest you take any further rails related questions to #rubyonrails, not here
<ddd> if its *not* rails, then its still the caching issue, just implemented by whatever engine or framework you're using (node.js, clojure, etc)
robbyoconnor has quit [Ping timeout: 240 seconds]
methods has joined #ruby-lang
dhsmith has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
methods has left #ruby-lang [#ruby-lang]
larrylv has quit [Read error: Connection reset by peer]
larrylv has joined #ruby-lang
arooni-mobile has joined #ruby-lang
<codechewing> ddd: I'm not sure if it's under Rails? I'm running this; http://rubyinstaller.org/
sush24 has joined #ruby-lang
m3nd3s has joined #ruby-lang
sush24 has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby-lang
banisterfiend has joined #ruby-lang
Ridders24 has joined #ruby-lang
Nss has quit [Read error: Operation timed out]
Banistergalaxy has joined #ruby-lang
<Ridders24> how do I add a var which is a path to save a file to the following snippit: File.open "foo.txt", 'a' do |f|
AndChat| has quit [Ping timeout: 264 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
davidbalber|away is now known as davidbalbert
stonerfish has joined #ruby-lang
leopard_me has joined #ruby-lang
mistym has joined #ruby-lang
goshakkk has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
Ridders24 has quit [Read error: Connection reset by peer]
Ridders24 has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
stevechiagozie has joined #ruby-lang
stevechiagozie has quit [Client Quit]
stevechiagozie has joined #ruby-lang
jbsan has quit [Quit: jbsan]
sush24 has joined #ruby-lang
sush24 has quit [Client Quit]
s7ry93r has joined #ruby-lang
sush24 has joined #ruby-lang
goshakkk is now known as goshakkk_
goshakkk_ is now known as goshakkk
io_syl has joined #ruby-lang
Ridders24 has quit [Read error: Connection reset by peer]
s7ry93r has left #ruby-lang [#ruby-lang]
jbsan has joined #ruby-lang
alvaro_o_ has joined #ruby-lang
Ridders24 has joined #ruby-lang
headius has joined #ruby-lang
alvaro_o has quit [Ping timeout: 260 seconds]
njerichelimo has joined #ruby-lang
Ridders24 has quit [Read error: Connection reset by peer]
Ridders24 has joined #ruby-lang
blahwoop has quit [Read error: Connection reset by peer]
johnnyporkchop has quit [Remote host closed the connection]
blahwoop has joined #ruby-lang
chris2 has quit [Ping timeout: 248 seconds]
Ridders24 has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
<andrewvos> rue: I would destroy you at ping pong.
<rue> Sure
Ridders24 has joined #ruby-lang
<andrewvos> It would be soul crushing.
Guedes has quit [Ping timeout: 260 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
codechewing has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<imperator> balls of fury!
<apeiros_> furry balls? yuck…
Ridders24 has quit [Ping timeout: 256 seconds]
<andrewvos> heh
Ridders24 has joined #ruby-lang
dhsmith has quit [Remote host closed the connection]
dhsmith has joined #ruby-lang
Rarrikins has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
Rarrikins has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Ridders24 has quit [Quit: Leaving]
stiang has joined #ruby-lang
gaveen has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
chris2 has joined #ruby-lang
dabradley has joined #ruby-lang
gaveen has left #ruby-lang ["Leaving"]
rcvalle has quit [Quit: Leaving]
dustint has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
dustint has quit [Remote host closed the connection]
goshakkk has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
mistym has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
setmeaway has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
goshakkk has joined #ruby-lang
vlad_starkov has joined #ruby-lang
m3nd3s has joined #ruby-lang
hack has joined #ruby-lang
mistym has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
wyhaines has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
hack has quit [Ping timeout: 240 seconds]
jacktrick has joined #ruby-lang
postmodern has quit [Quit: Leaving]
tenderlove has quit [Ping timeout: 255 seconds]
goshakkk has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
justinram has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
tenderlove has joined #ruby-lang
sepp2k1 has quit [Ping timeout: 256 seconds]
JohnBat26 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Nss has joined #ruby-lang
larrylv has joined #ruby-lang
brianpWins has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
enebo has joined #ruby-lang
enebo has quit [Client Quit]
swav has joined #ruby-lang
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 272 seconds]
jbsan_ is now known as jbsan
sepp2k has joined #ruby-lang
cirwin has joined #ruby-lang
larrylv has quit [Ping timeout: 272 seconds]
imajes has quit [Excess Flood]
wyhaines has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
imajes has joined #ruby-lang
Rarrikins has quit [Remote host closed the connection]
wyhaines has quit [Ping timeout: 255 seconds]
Rarrikins has joined #ruby-lang
KA_ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
irichlau2 has joined #ruby-lang
blahwoop has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
irichlau2 has left #ruby-lang [#ruby-lang]
KA_ has quit [Quit: KA_]
vlad_starkov has quit [Remote host closed the connection]
justinram has joined #ruby-lang
drbrain_ is now known as drbrain
mwjcomputing has joined #ruby-lang
jbsan has quit [Quit: jbsan]
mpan has joined #ruby-lang
pkrnj has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rdw200169 has quit [Ping timeout: 264 seconds]
rdw200169 has joined #ruby-lang
Rarrikins has quit [Ping timeout: 240 seconds]
Rarrikins_p has joined #ruby-lang
larrylv has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
KA_ has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
larrylv has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
mwjcomputing has quit [Ping timeout: 276 seconds]
Ridders24 has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
Ridders24 has quit [Ping timeout: 246 seconds]
blahwoop has joined #ruby-lang
stiang has quit [Quit: stiang]
hahuang65_ has joined #ruby-lang
pythonsnake is now known as gamanfred
gamanfred is now known as BPoettering
BPoettering is now known as pythonsnake
vlad_starkov has joined #ruby-lang
njerichelimo has quit [Quit: Leaving]
sush24 has quit [Quit: This computer has gone to sleep]
xalei has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 252 seconds]
Nss has quit [Quit: Sto andando via]
Nisstyre-laptop has quit [Quit: Leaving]
Nisstyre has quit [Quit: Leaving]
imajes has quit [Excess Flood]
m3nd3s has quit [Remote host closed the connection]
imajes has joined #ruby-lang
swav has quit [Remote host closed the connection]
glebm has joined #ruby-lang
KA_ has quit [Quit: KA_]
voker57 has quit [Read error: Connection reset by peer]
bluepojo has joined #ruby-lang
Ridders24 has joined #ruby-lang
<Ridders24> Hi all, why do I get the error "invalid access mode", when trying to save a txt file to my local C drive?
dhsmith has quit [Read error: Connection reset by peer]
<darix> Ridders24: how do you try to open that file?
dhsmith has joined #ruby-lang
<Ridders24> darix: File.open $dir, "foo.txt", 'a' do |f|
<Ridders24> darix: what do you suggest?
sailias has joined #ruby-lang
wallerdev has joined #ruby-lang
jacktrick has joined #ruby-lang
<cirwin> Ridders24: File.open(File.join($dir, "foo.txt"), 'a')
<rking> cirwin: Maybe you can tell me. What the heck is the point of File.join?
<darix> rking: generating a full path?
<rking> $dir+'/foo.txt'
<rking> ^ Under what circumstances does File.join($dir, "foo.txt") beat that?
<cirwin> afaik none, but it seems more traditional
<rking> I tested it on Windows the other day. Forward slashes caused no problem that I could find.
hahuang65_ has quit [Quit: Computer has gone to sleep.]
<Ridders24> cirwin: its not erroring any more, but its not creating the txt file in C: either
<cirwin> Ridders24: are you writing to it?
<whitequark> rking: I think it might be related to escaping slashes / UNC paths on Windows
<Ridders24> yh the line worked before i tried to specify the location
agarie has joined #ruby-lang
<rking> whitequark: Interesting. UNC paths, I like that as a possibility. Can you think of a specific example?
<whitequark> rking: just a wild guess
<Ridders24> cirwin: it worked before i tried to specify the location
<whitequark> MRI has some really weird stuff in rb_file_join: http://rxr.whitequark.org/mri/source/file.c#3899
<rking> Well, it reigns in my temptation to totally disregard File.join
<whitequark> I've no idea what 2/3th of that code does
<rking> Those goofballs and their literal '\t's. >=(
leopard_me has quit [Quit: Computer has gone to sleep.]
jacktrick has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
scottschecter has joined #ruby-lang
scottschecter has quit [Client Quit]
<Ridders24> I've tried both suggestions and still its not creating the file in C. why?
aquagrunty has left #ruby-lang [#ruby-lang]
scottschecter has joined #ruby-lang
scottschecter has quit [Client Quit]
<rking> Ridders24: Well, are you writing to the file after opening it?
breakingthings has joined #ruby-lang
<rking> Ridders24: Also, are you closing it before checking? Things don't get flushed until something triggers the flush.
<Ridders24> rking: when i specify the location as C:\Users\Admin\Desktop it works, if i try C:/ on its own, nothing happens, and when I try C:\Users I get an error of permission denied
jbsan has joined #ruby-lang
scottschecter has joined #ruby-lang
scottschecter has quit [Client Quit]
scottschecter has joined #ruby-lang
a3li` is now known as a3li
s0ber has quit [Ping timeout: 240 seconds]
<rking> Ridders24: Well, wait, do regular users have permission to write to the toplevel of C:\Users? That would kind of defeat the point of multi-users
<Ridders24> rking: what about UNC paths then? as I will be saving it to that eventually
<rking> Ridders24: That should work fine. Have you tried creating the file through Windows Explorer or whatever?
<Ridders24> rking: i see what you mean, I cant even create the file via explorer, like you say it must be to do with permissions
jbsan has quit [Quit: jbsan]
breakingthings has quit []
imajes has quit [Excess Flood]
xyzodiac has quit [Quit: Computer has gone to sleep.]
leopard_me has joined #ruby-lang
imajes has joined #ruby-lang
xyzodiac has joined #ruby-lang
<rking> Yeah. Which, in this case, sound like the right permissions that it restricts access.
breakingthings has joined #ruby-lang
jnoon has quit []
kennyvb has quit [Quit: ZNC - http://znc.in]
scottschecter has quit [Quit: WeeChat 0.3.9.2]
kennyvb has joined #ruby-lang
emocakes has joined #ruby-lang
jnoon has joined #ruby-lang
swav has joined #ruby-lang
tsou has joined #ruby-lang
sush24 has joined #ruby-lang
swav has quit [Ping timeout: 255 seconds]
Nisstyre has joined #ruby-lang
workmad3 has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 252 seconds]
scottschecter has joined #ruby-lang
Aria has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
sailias has joined #ruby-lang
arooni-mobile has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
ryanv-raptor has joined #ruby-lang
ryanv-raptor has left #ruby-lang [#ruby-lang]
<imperator> Ridders24, what version of windows?
<Ridders24> imperator: win 7
<imperator> i think you'll need elevated privileges to write to c:/users
<imperator> which is kind of a strange place to write stuff, btw
scottschecter has quit [Quit: WeeChat 0.3.9.2]
<injekt> HAH
<injekt> um
<injekt> wrong channel
<imperator> no problem inkjet
<injekt> trying.. to.. think of something
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Ridders24 has quit [Ping timeout: 256 seconds]
Ridders24 has joined #ruby-lang
<imperator> whitequark, that source code is what happens when you decide to hand roll a solution instead of using the windows api
Ridders24 has quit [Client Quit]
pythonsnake is now known as |
| is now known as pythonsnake
wallerdev has quit [Quit: wallerdev]
<dRbiG> is it just me, or is STD(IN,OUT,ERR) somewhat broken in 1.9.x? e.g. if I reopen them to something different inside forked code, things like IO.pipe will still magically use the parents STDIN :(
tbuehlmann has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
carl_ has joined #ruby-lang
scottschecter has joined #ruby-lang
carl_ has quit [Client Quit]
scottschecter has quit [Read error: Connection reset by peer]
<injekt> dRbiG: you alter STD*?
wallerdev has joined #ruby-lang
scottschecter has joined #ruby-lang
scottschecter has quit [Client Quit]
<cout> regex confusion: /foo(?:\s+)?bar/ =~ 'foo' produces the warning: warning: nested repeat operator + and ? was replaced with '*': /foo(?:\s+)?bar/
<cout> what's a better way to write that regex?
vlad_starkov has joined #ruby-lang
<injekt> /foo(?:\s)*bar/ =~ 'foo'
<injekt> eh move *
<injekt> having \s+ then ? makes no sense, that does exactly what * is intended to do, none or more, where + is one or more
<whitequark> imperator: do you understand what it (tries?) to do?
<whitequark> because I do not
<whitequark> and, further, what API function should have it used?
<whitequark> and what would be the POSIX counterpart?
<cout> injekt: oic
<cout> injekt: it made much more sense in my original (more complex regex)
<injekt> cout: yeah I've done it before :)
<cout> injekt: I was trying to avoid a nested capture, but I think that's what I want
<injekt> heh
havenn has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24_ has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 256 seconds]
sush24 has quit [Ping timeout: 260 seconds]
Sinestro has joined #ruby-lang
<imperator> whitequark, i don't remember any more what it's doing
<imperator> windows api would be PathAppend or PathCombine
<imperator> not sure what the posix equivalent would be
sush24_ has joined #ruby-lang