<sush24>
rue that works for me too… try having a folder with the name "foo:bar"
<sush24>
rue make a few files in it… and glob "foo:bar/*"
<sush24>
oh wait
<sush24>
I think it's something to do with "[" and "]"
jxie has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
<sush24>
ahhh… found the bug…
<sush24>
\\[
<sush24>
thanks rue
<rue>
Good deal
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
lcdhoffman has joined #ruby-lang
elux has joined #ruby-lang
elux has quit [Client Quit]
tjadc has quit [Ping timeout: 276 seconds]
elux has joined #ruby-lang
tjadc has joined #ruby-lang
Craig` has joined #ruby-lang
s1n4 has joined #ruby-lang
<Craig`>
Hey guys what's the best way to pass information to an already running script? keep checking for changes to a file?
<Craig`>
basically i'm using sabnzbd and when it's complete it can run a script (my irc bot is always running though), my current solution is having a batch file write to a text file and the irc bot checks the file every x seconds
<yorickpeterse>
There are numerous ways of doing it
<yorickpeterse>
Read STDIN once in a while, create some kind of server/client setup, etc
<Craig`>
yorickpeterse, any suggestions?
<Craig`>
sorry didn't realise you just send the message I was semi-afk.
<yorickpeterse>
np
<Craig`>
my problem was that I couldn't get new lines when writing to files, googling said to use puts but that didn't help any
<Craig`>
basically each time the script is called it's only passed one string, say "File name - OK" (or - FAIL), I don't know if that has anything to do with it.
<Craig`>
My ruby-fu is weak I haven't used it in months.
<yorickpeterse>
That's how you write newlines manually
<yorickpeterse>
Note the double quotes
<Craig`>
that's what I was doing before, weird.
<Craig`>
I tried puts after using write, i'll double check.
bytephilia has quit [Ping timeout: 268 seconds]
<yorickpeterse>
`puts` itself writes data to it as well
<yorickpeterse>
also, it will depend on the file opening mode you've used
<Craig`>
when I was using \n I did use double quotes, it didn't literally display \n (it just displayed "hello\nthere" as "hellothere"
<Craig`>
i'm using windows, would I have to include \r too?
<yorickpeterse>
yes
<Craig`>
that's the problem then
<yorickpeterse>
Windows uses \r\n for newlines
<Craig`>
okay thanks
kain has joined #ruby-lang
Fullmoon has joined #ruby-lang
RickHull has joined #ruby-lang
havenn has joined #ruby-lang
<RickHull>
I'm on a shared host, and they upgraded/broke some of my environment. the pg gem is no longer accessible. gem environment shows a GEM PATH /home/rickhull/.gems (and also /usr/local/lib...)
<RickHull>
gem list does not show the pg gem
<RickHull>
so i did: gem install pg # success
<RickHull>
gem list still does not show pg gem
<RickHull>
INSTALLATION DIRECTORY is /home/rickhull/.gems
<RickHull>
but after gem install pg, i don't see it in ~/.gems/gems/
stardiviner has joined #ruby-lang
elux has quit [Quit: Bye!]
saxy has joined #ruby-lang
sailias has joined #ruby-lang
goshakkk has joined #ruby-lang
saxy has quit [Ping timeout: 268 seconds]
sandbags has quit [Remote host closed the connection]
<RickHull>
my .gemrc has: gem: --user-install
<RickHull>
gem uninstall pg # I get 3 choices for what to uninstall: 1. pg-0.13.2 2. pg-0.14.0 3. All versions
<Craig`>
the problem is that it stays on handle_input(@irc.gets) until it actually gets something, meaning the timer is no use until something is said (or it is pinged etc)
<Craig`>
is there a way I can get around this?
<JoelMcCracken>
use something that is non-blocking?
<Craig`>
JoelMcCracken, could you give me an example? I haven't used ruby for a while
<JoelMcCracken>
ha, not really, sorry. Can you tell me what @irc is?
<Craig`>
it's a TCPSocket
<Craig`>
I'm thinking a timeout is probably what I need, i'll just rescue it and the loop will resume
<Craig`>
select to the rescue (wow, the thing is the original code I used for the irc bot used select)
m3nd3s has quit [Remote host closed the connection]
sailias has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
jadams_ has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
JoelMcCracken has quit [Ping timeout: 244 seconds]
<Craig`>
I can't seem to get a timeout solution working, I tried using select([@irc], nil, nil, timeout) but that doesn't work (loop continues when @irc.gets *gets* something), I tried requiring timeout and then using that but that didn't work either)
Craig` has quit [Quit: Leaving]
goshakkk has quit [Quit: Computer has gone to sleep.]
sepp2k has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
saxy has joined #ruby-lang
brianpWins has joined #ruby-lang
saxy has quit [Ping timeout: 240 seconds]
goshakkk has joined #ruby-lang
t60442 has quit [Remote host closed the connection]
t91785 has joined #ruby-lang
ddv has quit [Changing host]
ddv has joined #ruby-lang
jperry2_ has joined #ruby-lang
Madis_ has joined #ruby-lang
voker57_ has joined #ruby-lang
rins_ has joined #ruby-lang
Fullmoon_ has joined #ruby-lang
ltd-- has joined #ruby-lang
<zzak>
whats a good name for a method that monkey patches a native class? like class String; def some_method; ...
banisterfiend` has joined #ruby-lang
laszlokorte has joined #ruby-lang
dous_ has joined #ruby-lang
kuja_ has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
m3nd3s has joined #ruby-lang
<zzak>
extension method sounds okay i guess
jadams_ has left #ruby-lang ["Leaving"]
shaman42_ has joined #ruby-lang
jperry2 has quit [Read error: Connection reset by peer]
jperry2_ is now known as jperry2
kuja has quit [Ping timeout: 246 seconds]
khaase has quit [Ping timeout: 246 seconds]
Madis has quit [Ping timeout: 246 seconds]
ltd- has quit [Ping timeout: 246 seconds]
rins has quit [Read error: Connection reset by peer]
khaase has joined #ruby-lang
manveru has quit [Ping timeout: 246 seconds]
dous has quit [Ping timeout: 246 seconds]
voker57 has quit [Ping timeout: 246 seconds]
Fullmoon has quit [Ping timeout: 246 seconds]
laszlokorte_ has quit [Read error: Connection reset by peer]
RickHull has quit [Ping timeout: 246 seconds]
akamike has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Ping timeout: 246 seconds]
Fullmoon_ is now known as Fullmoon
shaman42 has quit [Ping timeout: 246 seconds]
tris has quit [Excess Flood]
RickHull has joined #ruby-lang
RickHull has joined #ruby-lang
RickHull has quit [Changing host]
khaase has quit [Changing host]
khaase has joined #ruby-lang
manveru has joined #ruby-lang
t91785 has quit [Remote host closed the connection]
t44360 has joined #ruby-lang
goshakkk has joined #ruby-lang
akamike has joined #ruby-lang
tris has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has quit [Client Quit]
tris has quit [Excess Flood]
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
Asher has quit [Quit: Leaving.]
tris has joined #ruby-lang
havenn has joined #ruby-lang
diegoviola has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
singpolyma has joined #ruby-lang
Asher has joined #ruby-lang
deryl has quit [Quit: deryl]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
mark06 has joined #ruby-lang
mark06 has quit [Client Quit]
havenn has quit [Ping timeout: 276 seconds]
burgestrand has quit [Quit: Leaving.]
saxy has joined #ruby-lang
burgestrand has joined #ruby-lang
saxy has quit [Ping timeout: 255 seconds]
alibaba has joined #ruby-lang
goshakkk has joined #ruby-lang
mantono has joined #ruby-lang
CarlB_the_great has joined #ruby-lang
CarlB_th_ has joined #ruby-lang
mantono has quit [Ping timeout: 248 seconds]
sysbeast has joined #ruby-lang
CarlB_the_great has quit [Ping timeout: 252 seconds]
t44360 has quit [Remote host closed the connection]
t11933 has joined #ruby-lang
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 244 seconds]
darix has quit [Remote host closed the connection]
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
havenn has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
g0nga has joined #ruby-lang
oddmunds has joined #ruby-lang
yankov has quit [Quit: yankov]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
goshakkk has quit [Quit: Computer has gone to sleep.]
canton7 has joined #ruby-lang
CarlB_th_ has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
g0nga has quit [Quit: Lost terminal]
CarlB_the_great has joined #ruby-lang
jbsan has joined #ruby-lang
t11933 has quit [Remote host closed the connection]
t45014 has joined #ruby-lang
saxy has joined #ruby-lang
savage- has quit [Remote host closed the connection]
saxy has quit [Ping timeout: 244 seconds]
savage- has joined #ruby-lang
brianpWins has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby-lang
Ashkin has joined #ruby-lang
<Ashkin>
Can anyone recommend a 3d graphics engine for ruby? I've googled it over the past hour, but i've only been able to find abandoned projects, such as irrlicht/rb, ogrerb, g3druby, etc. the last update time on all of them is 2006 or older. Anyone know of any being actively worked on?
<seanstickle>
Ashkin: (1) find a good Java one (2) use jruby to control it (3) profit
<Ashkin>
hm. that could work.
<Ashkin>
i was considering continuing the project with gosu and doing the opengl myself.
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Axsuul has joined #ruby-lang
erikwb has joined #ruby-lang
eridani has quit [Read error: Connection reset by peer]
eridani has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Client Quit]
Leeky_afk is now known as Leeky
bytephilia has joined #ruby-lang
t45014 has quit [Remote host closed the connection]
t27594 has joined #ruby-lang
bytephilia has quit [Client Quit]
sush24 has quit [Quit: This computer has gone to sleep]
havenn has joined #ruby-lang
saxy has joined #ruby-lang
lcdhoffman_ has joined #ruby-lang
lcdhoffman has quit [Ping timeout: 245 seconds]
havenn has quit [Remote host closed the connection]
saxy has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 240 seconds]
THCV has quit [Quit: This computer has gone to sleep]
Leeky is now known as Leeky_afk
havenn has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
alex_kira has quit [Read error: Connection reset by peer]
alex_kira has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
Leeky_afk is now known as Leeky
yxhuvud has quit [Ping timeout: 244 seconds]
ivanoats has quit [Remote host closed the connection]