chendo_ has quit [Quit: Computer has gone to sleep.]
ascot21 has joined #ruby-lang
tooky has quit [Ping timeout: 260 seconds]
ascot21 has left #ruby-lang [#ruby-lang]
JustinCampbell has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
tooky has joined #ruby-lang
sandbags_ has joined #ruby-lang
sandbags_ has quit [Remote host closed the connection]
sandbags_ has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
sandbags has quit [Ping timeout: 244 seconds]
^sandbags^ has quit [Ping timeout: 244 seconds]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby-lang
Jay_Levitt has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
tooky has quit [Ping timeout: 260 seconds]
swarley has quit [*.net *.split]
gregmoreno has quit [*.net *.split]
burgestrand has quit [*.net *.split]
jxie has quit [*.net *.split]
Guest32003 has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
rue has quit [*.net *.split]
aef_ has quit [*.net *.split]
mahlon has quit [*.net *.split]
ged has quit [*.net *.split]
burgestrand has joined #ruby-lang
ged has joined #ruby-lang
SubSpawn has joined #ruby-lang
rue has joined #ruby-lang
Guest32003 has joined #ruby-lang
jxie has joined #ruby-lang
gregmoreno has joined #ruby-lang
mahlon has joined #ruby-lang
swarley has joined #ruby-lang
aef_ has joined #ruby-lang
josh^ has quit [Excess Flood]
MrOnFireMr has quit [Excess Flood]
Nisstyre has quit [Ping timeout: 244 seconds]
ged is now known as Guest58219
MrOnFireMr has joined #ruby-lang
josh^ has joined #ruby-lang
coryf has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
cndiv has joined #ruby-lang
chendo_ has joined #ruby-lang
havenn_ has joined #ruby-lang
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
towski has quit [Remote host closed the connection]
wyhaines has joined #ruby-lang
towski has joined #ruby-lang
towski has quit [Remote host closed the connection]
savage- has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
havenn_ has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
savage- has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
cndiv has quit []
havenn has joined #ruby-lang
cndiv has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
swarley has quit [Quit: Leaving]
sepp2k has joined #ruby-lang
lewis1711 has quit [Quit: Leaving.]
lewis1711 has joined #ruby-lang
sandbags_ has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
havenn has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
xyzodiac has joined #ruby-lang
tRAS has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
justinmcp has quit [Ping timeout: 246 seconds]
macmartine has quit [Read error: Connection reset by peer]
coryf has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
micaeked has joined #ruby-lang
tooky has joined #ruby-lang
<micaeked>
hello. is there an idiom to shorten this? page_data[:menulists][menu] = page_data[:menulists][menu].sample(5) ... namely, is there a way to not repeat the "page_data[:menulists][menu]" part twice?
xyzodiac has quit [Quit: Computer has gone to sleep.]
xyzodiac has joined #ruby-lang
tooky has quit [Ping timeout: 244 seconds]
xyzodiac has quit [Client Quit]
JoelMcCracken has quit [Read error: No route to host]
mistym has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Ping timeout: 268 seconds]
Sambalero has quit [Remote host closed the connection]
tooky has joined #ruby-lang
MrOnFireMr has quit [Ping timeout: 246 seconds]
pr0ton_ has quit [Remote host closed the connection]
pr0ton_ has joined #ruby-lang
postmodern has joined #ruby-lang
dfr|mac has joined #ruby-lang
pr0ton_ has quit [Ping timeout: 244 seconds]
MrOnFireMr has joined #ruby-lang
Nisstyre has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
tooky has quit [Ping timeout: 244 seconds]
tRAS has joined #ruby-lang
cndiv has quit []
sush24 has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
jamo_ has quit [Ping timeout: 252 seconds]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
cantonic has joined #ruby-lang
justinmcp has joined #ruby-lang
trietptm has joined #ruby-lang
trietptm has quit [Client Quit]
triet has joined #ruby-lang
triet has quit []
triet has joined #ruby-lang
MrOnFireMr has quit [Ping timeout: 248 seconds]
triet has quit [Read error: Connection reset by peer]
triet has joined #ruby-lang
triet has quit [Client Quit]
wallerdev has joined #ruby-lang
triet has joined #ruby-lang
artOfWar has quit [Remote host closed the connection]
triet has quit [Remote host closed the connection]
rippa has joined #ruby-lang
triet has joined #ruby-lang
artOfWar has joined #ruby-lang
artOfWar has quit [Remote host closed the connection]
triet has quit [Remote host closed the connection]
triet has joined #ruby-lang
JustinCampbell has joined #ruby-lang
Mister5 has joined #ruby-lang
certaint1 has quit [Quit: "bye bye ..."]
certainty has joined #ruby-lang
triet has quit [Remote host closed the connection]
artOfWar has joined #ruby-lang
triet has joined #ruby-lang
JustinCampbell has quit [Ping timeout: 244 seconds]
Mister5 has quit [Quit: Leaving]
Mister5 has joined #ruby-lang
tonni has quit [Remote host closed the connection]
triet has quit [Ping timeout: 244 seconds]
Mister5 has quit [Read error: Connection reset by peer]
triet has joined #ruby-lang
Mister5 has joined #ruby-lang
andoyasushi has joined #ruby-lang
triet has quit [Remote host closed the connection]
triet has joined #ruby-lang
andoyasushi has quit [Remote host closed the connection]
yats has joined #ruby-lang
triet has quit [Remote host closed the connection]
triet has joined #ruby-lang
JohnBat26 has joined #ruby-lang
triet has quit [Remote host closed the connection]
triet has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 248 seconds]
ryanf has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
triet has quit [Ping timeout: 248 seconds]
triet has joined #ruby-lang
cndiv has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
banisterfiend has joined #ruby-lang
triet has quit [Ping timeout: 260 seconds]
Mister5_ has joined #ruby-lang
triet has joined #ruby-lang
Mister5_ has quit [Max SendQ exceeded]
Mister5_ has joined #ruby-lang
<yorickpeterse>
Morning lads
Mister5 has quit [Ping timeout: 260 seconds]
ruurd has joined #ruby-lang
rolfb has joined #ruby-lang
dc5ala has joined #ruby-lang
triet has quit [Ping timeout: 248 seconds]
Mister5_ has quit [Quit: Leaving]
triet has joined #ruby-lang
rippa has quit [Ping timeout: 268 seconds]
triet has quit [Client Quit]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ramonmaruko has quit [Remote host closed the connection]
dr_bob has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
ramonmaruko has joined #ruby-lang
sandbags has quit [Ping timeout: 244 seconds]
tooky has joined #ruby-lang
nariyal has joined #ruby-lang
solars has joined #ruby-lang
tooky has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
cndiv has quit []
dhruvasagar has joined #ruby-lang
greg has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
dhruvasagar has joined #ruby-lang
Criztian has joined #ruby-lang
banisterfiend has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
JustinCampbell has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
ryanf has quit [Quit: leaving]
zz_chrismcg is now known as chrismcg
dhruvasagar has joined #ruby-lang
cantonic has quit [Quit: cantonic]
JustinCampbell has quit [Ping timeout: 260 seconds]
Bosox20051 has quit [Remote host closed the connection]
tonni has joined #ruby-lang
nariyal has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
seoaqua has joined #ruby-lang
hhatch has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
tRAS has joined #ruby-lang
areil has joined #ruby-lang
goshakkk has joined #ruby-lang
cantonic has joined #ruby-lang
micaeked has quit [Quit: WeeChat 0.3.8]
gregmoreno has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby-lang
gregmoreno has joined #ruby-lang
gnufied has joined #ruby-lang
Nathandim has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
greg has quit [Quit: Leaving...]
tooky has joined #ruby-lang
nariyal has joined #ruby-lang
seoaqua has quit [Ping timeout: 245 seconds]
tooky has quit [Remote host closed the connection]
tooky has joined #ruby-lang
banisterfiend has quit [Ping timeout: 246 seconds]
GarethAdams has joined #ruby-lang
yats has quit [Read error: Connection reset by peer]
yats_ has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 244 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
justinmcp has joined #ruby-lang
GarethAdams has quit [Ping timeout: 268 seconds]
Hakon has joined #ruby-lang
Criztian has joined #ruby-lang
greg has joined #ruby-lang
judofyr has joined #ruby-lang
artOfWar has quit [Remote host closed the connection]
seoaqua has joined #ruby-lang
artOfWar has joined #ruby-lang
Assurbanipal has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
nariyal has quit [Quit: Computer has gone to sleep.]
judofyr has joined #ruby-lang
nariyal has joined #ruby-lang
tRAS has joined #ruby-lang
banisterfiend has joined #ruby-lang
greg has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
nariyal has quit [Quit: Computer has gone to sleep.]
stiang has joined #ruby-lang
cdt has joined #ruby-lang
triet has joined #ruby-lang
triet has left #ruby-lang [#ruby-lang]
triet has joined #ruby-lang
triet has left #ruby-lang [#ruby-lang]
triet has joined #ruby-lang
triet has left #ruby-lang [#ruby-lang]
stiang has quit [Quit: stiang]
ryez has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
ryez has quit [Client Quit]
sush24 has quit [Quit: Leaving]
<andrewvos>
1. Answer question on ruby-lang
<andrewvos>
2. Immediately leave
<andrewvos>
morning yorickpeterse
greg has joined #ruby-lang
<yorickpeterse>
andrewvos: IRC is a scary thing
ramonmaruko has quit [Remote host closed the connection]
<whitequark>
I think that one could use LD_PRELOAD to hijack this function
<whitequark>
and then set a global hook on $LOAD_PATH to prepopulate the directory listing
dhruvasagar has quit [Ping timeout: 246 seconds]
wpaulson has joined #ruby-lang
mwjcomputing has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
stiang has joined #ruby-lang
<judofyr>
whitequark: well, C is your domain. I think I'll stick to RubyGems-level caching.
<whitequark>
judofyr: btw, just tried quickgem
<yorickpeterse>
dat indentation
<whitequark>
nothing changed
<judofyr>
whitequark: run with QUICKGEM_DEBUG=1 and see where it went wrong
<yorickpeterse>
a goto D:
<judofyr>
whitequark: the biggest issue in RubyGems is that it loads all specification at once. if you don't have many gems installed, it's not so slow. with many gems though.
<yorickpeterse>
I've seem some references to /tmp, maybe it writes itself to there before executing it
<kith>
it seems to write itself it $HOME/.eee
<ZenoArrow>
Hi, I'm having problems with gems in ruby files. If I run the following code in irb it works, but if I try to put it in a .rb file and run it I get errors about the require 'sqlite3' line, why would this be? http://pastie.org/4760150 (I'm running Windows XP if that's relevant).
<kith>
when it does it shows .rb extentions too
<yorickpeterse>
kith: and there's valid Ruby in it or just more gibberish?
<judofyr>
ZenoArrow: what Ruby version? you might need `require "rubygems"` in 1.8
<andrewvos>
ZenoArrow: What error are you getting?
<kith>
yorickpeterse: i dont know how to have a look at the files there before binary raises an exception (which looks like ruby backtrace) and apparently removes everything there
<ZenoArrow>
andrewvos, I'm on Windows, I don't have grep.
<andrewvos>
OH yeah
setmeaway has joined #ruby-lang
<andrewvos>
ZenoArrow: Hmm, this is rather strange.
<judofyr>
ZenoArrow: "H:/.gem/ruby/1.9.1" is readable?
<kith>
judofyr: i already did that, it stops with exception
<kith>
judofyr: saying something is nil and method doesnt work
<yorickpeterse>
Hm, gdb doesn't find a main() function
<ZenoArrow>
judofyr: H:\.gem\ruby\1.9.1\ is readable but empty.
<kith>
yorickpeterse: wouldnt it only if it was C/C++?
<yorickpeterse>
what the hell, it uses Pascal
<judofyr>
ZenoArrow: and there's a sqlite-directory in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ ?
<yorickpeterse>
There's a reference to "FPC 1.9.8" which is a Pascal compiler
<kith>
yorickpeterse: are you kidding?
<ZenoArrow>
The H directory is probably a left over from a previous install. It doesn't matter though, the gems are present and correct in C:/Ruby193/lib/ruby/gems/1.9.1
<yorickpeterse>
kith: no
<yorickpeterse>
"FPC 1.9.8 [2005/02/20] for i386 - Linux" is in the `strings` output
<yorickpeterse>
I see no reason to include that without actually using it one way or another
<ZenoArrow>
I should remind y'all that the code runs fine in irb, it just brings up errors when run in a ruby script file.
<kith>
hmm
<ZenoArrow>
judofyr: Yes, the gem is in the folder C:\Ruby193\lib\ruby\gems\1.9.1\gems\sqlite3-1.3.6-x86-mingw32
<andrewvos>
I would have given up and used nix by now.
<ZenoArrow>
andrewvos, are you referring to me?
<andrewvos>
Uhh yup I am sorry. ZenoArrow:
<kith>
yorickpeterse: strings doesnt show any signs of ruby does ist?
<kith>
it
<ZenoArrow>
andrevos, I don't have the option to use nix, I'm at work, need the code to run on Windows.
<yorickpeterse>
kith: No, it does not
<kith>
how come in gdb it very much looks like ruby tho?
<andrewvos>
ZenoArrow: Yeah I know, just whining over here.
<yorickpeterse>
kith: How did you found that out?
<andrewvos>
Disregard me
<yorickpeterse>
(my gdb-fu is a bit rusty)
<kith>
yorickpeterse: i did run it
<kith>
gdb ruby-binary
<kith>
then run
<kith>
with arguments
Nisstyre has joined #ruby-lang
<yorickpeterse>
oh that
<judofyr>
ZenoArrow: I'm really stumped here. place `gem "sqlite3"` at the top of the file and see if it makes a difference.
<judofyr>
ZenoArrow: also, see if "ruby -S gem env" gives a different response than "gem env"
<ZenoArrow>
judofyr: would gem 'sqlite3' replace require 'sqlite3'?
<kith>
yorickpeterse: if you run it with dummy cli arguments it will even raise ruby style exceptions
<kith>
(inside gdb that is)
<judofyr>
ZenoArrow: nah, gem first, then require
Hakon has quit [Quit: Leaving...]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<judofyr>
ZenoArrow: #gem activates the gem (sets $LOAD_PATH and etc.) #require will try to automagically activate a gem if it's not already activated.
<ZenoArrow>
Hmm, I think I might've found the issue. It seems there's an old cache of gems that is being referred to. When I run with gem 'sqlite3' I get a message saying it can't be found amongst my gems, and lists nokogiri as a currently installed gem (it used to be).
<yorickpeterse>
kith: hmm
<kith>
yorickpeterse: funny eh?
<ZenoArrow>
judofyr: do you know if there's any way to force refresh the gem database?
tRAS has joined #ruby-lang
<yorickpeterse>
kith: how did you trigger the exception? Random arguments/parameters doesn't seem to do anything but the "Usage" message
<judofyr>
ZenoArrow: what does "p Gem.paths.path" say inside the script?
<judofyr>
that's where it looks for gems
<kith>
yorickpeterse: i did: "-i random_text_file -o /tmp/test"
<yorickpeterse>
ah
<yorickpeterse>
hmmm....interesting
<yorickpeterse>
I think I might have an idea
<kith>
yorickpeterse: i told ya! :D
<kith>
reeeeeally?
<kith>
tellmetellmetellme
ruurd has joined #ruby-lang
<yorickpeterse>
set ~/.eee to be write only, though I'm not sure if that would prevent files from being deleted
<judofyr>
ZenoArrow: and this should print all specification that RubyGems knows about: puts Gem.paths.path.map{|x|Dir.glob(x+"/specifications/*.gemspec")}
<yorickpeterse>
wait!
<yorickpeterse>
awww yiss, this might work
<kith>
hmm ok lets see :D
<yorickpeterse>
No, something else
<judofyr>
ZenoArrow: there's not really any other cache then the specifcations-directory
<kith>
hmm damn
<yorickpeterse>
Trying to see if I can use inotify to catch the contents
<kith>
write only means its deletable :D
<judofyr>
custom FUSE? :D
JoelMcCracken has joined #ruby-lang
<yorickpeterse>
gimme a minute
<kith>
i'm so curious... hurry man :D
<ZenoArrow>
judofyr: If I run that command in irb both the C and H drive directories for gems are included, but if I run it in a ruby script then only the H drive locations are included.
<ZenoArrow>
judofyr: So we've found the cause of the issue, the only question is how to fix it! :-)
<judofyr>
ZenoArrow: see GEM_HOME and GEM_ENV environment variables
<yorickpeterse>
kith: seems to crap shit out in "/home/yorickpeterse/.eee/eee.fgate2hash_linux.2/eee.gz" in my case
<kith>
yorickpeterse: same here... but it removes everything after raising the exception it seems
elux has joined #ruby-lang
<yorickpeterse>
fuck, gzip fucked my tmux
workmad3 has quit [Ping timeout: 246 seconds]
<judofyr>
yorickpeterse: gziped once crashed iTerm2 here. but thanks to tmux I could just reattach it :D
<ZenoArrow>
jodofyr: How would I view and/or update these environment variables? I've looked, but can't work it out.
<andrewvos>
judofyr: <3 tmux
enebo has joined #ruby-lang
<judofyr>
ZenoArrow: in Ruby: p ENV['GEM_HOME'], ENV['GEM_PATH']
legolin has joined #ruby-lang
<judofyr>
ZenoArrow: for setting them you need to do it somewhere deep in Windows settings
<judofyr>
ZenoArrow: but first verify that they are not the same in IRB and .rb-files.
Nathandim has joined #ruby-lang
<judofyr>
and figure out why IRB is correct
gsav has joined #ruby-lang
gsav_ has joined #ruby-lang
<judofyr>
ZenoArrow: maybe there's an .irbrc somewhere?
legolin has quit [Client Quit]
<judofyr>
I don't know enough about Ruby on Windows unfornately
<judofyr>
ZenoArrow: if GEM_HOME and GEM_PATH are the same in both IRB and .rb, then something is horribly broken somewhere
gmci has joined #ruby-lang
zz_chrismcg is now known as chrismcg
yats_ has quit [Quit: Leaving]
sailias has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
<ZenoArrow>
judofyr: Thank you for your help, I'll try that out. If not, I may just hose the install and start again!
<judofyr>
ZenoArrow: sorry for not being able to help more; I think there's a mailing list for Windows + Ruby somewhere
derpops has joined #ruby-lang
<ZenoArrow>
judofyr: you were plenty helpful. :-)
Nathandim has quit [Remote host closed the connection]
kain has quit [Quit: exit]
<yorickpeterse>
Right, co-workers are done, time to hack this shit
Mon_Ouie has joined #ruby-lang
<yorickpeterse>
kith: got one of the gz files
<kith>
show me :D
<kith>
showmeshowme :D
<kith>
btw things get ugly... there are perl files involved too... :D
<yorickpeterse>
I think I just hit the jackpot
<kith>
yaaaahhhh
<kith>
show meee!!! :D
vmoravec has quit [Remote host closed the connection]
dabradley has joined #ruby-lang
<kith>
*poke yorickpeterse* you still there??
<yorickpeterse>
Yes but I'm at work so I'm not here 24/7
<yorickpeterse>
Hold on, lemme pastie the Ruby code
gnufied1 has joined #ruby-lang
tonni has quit [Remote host closed the connection]
<yorickpeterse>
Ha! Too big for my clipboard apparently
<yorickpeterse>
basically what it does is extract a bunch of crap in ~/.eee, makes it executable and then uses a pre-packaged Ruby binary to execute the Ruby files