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