anon_456 has quit [Read error: Connection reset by peer]
kitallis has joined #ruby-lang
anon_456 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
OrganicCat has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
d3vic3 has joined #ruby-lang
dous has joined #ruby-lang
rue|w has joined #ruby-lang
piyush has quit [Ping timeout: 264 seconds]
lele|w has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
faces has quit [Quit: Leaving]
kain has joined #ruby-lang
wallerdev has joined #ruby-lang
faces has joined #ruby-lang
lele|w has joined #ruby-lang
solars has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
agarie has quit [Remote host closed the connection]
kain has quit [Ping timeout: 240 seconds]
Fullmoon has quit [Quit: Fullmoon]
charliesome has joined #ruby-lang
anon_456_ has joined #ruby-lang
jamjam has joined #ruby-lang
anon_456 has quit [Read error: Connection reset by peer]
cdt has joined #ruby-lang
Carnage\ has joined #ruby-lang
piyush has joined #ruby-lang
roadt has joined #ruby-lang
<roadt>
hi, my ruby is 1.9.3 told from package manager of distro , but include dir is /usr/include/ruby-1.9.1, is it right?
<roadt>
gems are put into ~/.gem/ruby/1.9.1 ,too
kain has joined #ruby-lang
ryanf has quit [Quit: leaving]
<steveklabnik>
yes
<steveklabnik>
ruby 1.9.3 has an abi compatibility of 1.9.1
rolfb has joined #ruby-lang
kain has quit [Ping timeout: 248 seconds]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
nXqd has joined #ruby-lang
jamjam has quit [Ping timeout: 246 seconds]
replore_ has joined #ruby-lang
nXqd has quit [Ping timeout: 260 seconds]
Nisstyre-laptop has quit [Read error: Connection reset by peer]
<roadt>
steveklabnik, ah..i see. i try to install the ruby-debug19x, and find it insist to download ruby source 1.9.3 and put it into /usr/include/ruby-1.9.3, which is ruby-1.9.1 in my ruby-1.9.3.
<roadt>
steveklabnik, should take it as ruby-debug's bug
<steveklabnik>
weird
<steveklabnik>
it should certainly use /usr/include/ruby-1.9.1
<roadt>
steveklabnik, yeah. thanks for clear this. :)
anon_456_ has quit [Remote host closed the connection]
<steveklabnik>
no problem
<OrganicCat>
does anyone have a server web log they wouldn't mind sharing? I'm writing a parser but dont' have an example to work off
Criztian has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
kain has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
PAPSIRE has joined #ruby-lang
GarethAdams has joined #ruby-lang
<whitequark>
OrganicCat: define "web server".
faces has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
faces has joined #ruby-lang
<andrewvos>
I'm guessing apache.
<andrewvos>
OrganicCat: There already is a parser.
<andrewvos>
OrganicCat: Can't think of the name, but it's a gem.
wallerdev has quit [Quit: wallerdev]
kain has quit [Quit: exit]
workmad3 has joined #ruby-lang
<OrganicCat>
It's for a piece of portfolio work
<OrganicCat>
an apache log with sites/pages visited would be fine
zz_chrismcg is now known as chrismcg
<andrewvos>
Portfolio work? Use a gem then
<andrewvos>
I wouldn't hire someone who rewrote a gem
dhruvasagar has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 260 seconds]
beiter has joined #ruby-lang
josh^ has quit [Ping timeout: 246 seconds]
datanoise has joined #ruby-lang
<gnufied>
?
<gnufied>
yehuda katz comes to my mind
<gnufied>
and me as well. I have rewritten few gems.
josh^ has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
tooky has joined #ruby-lang
replore_ has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
kain has joined #ruby-lang
mastersrp has joined #ruby-lang
woollyams has joined #ruby-lang
<mastersrp>
Does anyone know how to do ths following?
<mastersrp>
app = "app" # aquired through user input
<mastersrp>
# Somehow call 'app'::main()
<mastersrp>
require( "somename_" + app )
<erikh>
presuming "app" is the name of the class, app::main will work.
<erikh>
if you want the more verbose method: app.split(/::/).inject(Object) { |x,y| x.const_get(y) }::main
<erikh>
but that's just evil.
gnufied has quit [Quit: Leaving.]
<DefV>
doing require depending on user-input is evil
<erikh>
depends on how the user input is gathered.
replore_ has joined #ruby-lang
<DefV>
true
<erikh>
lots of your CLI tools do it in one fashion or another. it's how most of the plugin systems are built.
voker57 has quit [Remote host closed the connection]
<mastersrp>
Hi. Sorry for the slow response back, but the "app::main" thing doesn't work considering that app is a String object.
replore_ has quit [Remote host closed the connection]
justinseiter has joined #ruby-lang
<erikh>
weird, did they change this in 1.9?
<erikh>
oh well. just const_get it.
rue|w has quit [Remote host closed the connection]
<andrewvos>
FML: What's the best way to install Ruby under Windows?
<erikh>
luis's installer
<andrewvos>
erikh: Which is that?
Madis has joined #ruby-lang
<erikh>
rubyinstaller.org or w/e
<erikh>
you've heard of this thing called google, right?
<erikh>
:P
<andrewvos>
Yeah I know about Google erikh, but I thought people here might have the best answer for me!
gnufied has joined #ruby-lang
<andrewvos>
erikh: Is this Luis Lavena or something by the way?
<andrewvos>
Sounds familiar.
<erikh>
the only other one that's still being maintained is a fairly unused japanese vc build
woollyams has quit [Quit: Computer has gone to sleep.]
<andrewvos>
erikh: So what about Pik?
<andrewvos>
erikh: Is that not a good thing?
<erikh>
it wasn't maintained when I last looked at it, but someone might have picked it up since hten.
<andrewvos>
I suppose RubyInstaller is all I really need. I just need one version of Ruby.
<erikh>
well, you will run into problems doing things with a vc build and mingw gems
<erikh>
and vice-versa.
<andrewvos>
Hmm
<erikh>
rubygems deals with most of this for you, though.
<erikh>
best to just use the rubyinstaller.
<andrewvos>
erikh: What I'm doing is to get my new gem running under Windows. This is going to hurt me :(
<andrewvos>
Okay, will do thanks erikh.
<erikh>
yeah, worry about supporting that, and wait until someone complaints about vc support.
<andrewvos>
What does "vc support" mean?
<mastersrp>
Const_get? I'm sorry, I don't know about that function, and it doesn't seem to exist in global space, nor be a String method.
<erikh>
but, er, you don't do any extensions in that gem do you?
<erikh>
mastersrp: it's not capitalized.
<andrewvos>
erikh: Nope
<andrewvos>
erikh: I just call out to some binaries.
<erikh>
it's also on Module.
<erikh>
andrewvos: ah you're probably golden then.
<andrewvos>
erikh: So I'm guessing `adb` under windows will just be `adb.bat`.
<mastersrp>
erikh: My apologies, "const_get" is unavailable.
<andrewvos>
s/guessing/hoping
<mastersrp>
erikh: Is it some 1.8-only function? I'm running Ruby 1.9.3
<erikh>
andrewvos: actually extensions like .bat .exe .com and a few others are searched so you shouldn't need to change anything.
<erikh>
mastersrp: no. it's called Module.const_get, and I'm reading the docs for it right now.
<ridders24>
Hi guys, its been a while since I've done any ruby, I'm in the process of writing this script: http://pastebin.com/eUwiTks4 and know that ("#{root}","rb") is wrong, but can't remember what it should be. Can anyone correct me on this please?
retro|cz has joined #ruby-lang
rue|w has joined #ruby-lang
retro|cz has quit [Ping timeout: 256 seconds]
<andrewvos>
erikh: OMG getting sshd running on Windows is hurting me.
d3vic3 has quit [Quit: leaving]
Guedes has joined #ruby-lang
S1kx has quit [Quit: Leaving]
piyush has quit [Ping timeout: 260 seconds]
heftig has quit [Quit: leaving]
retro|cz has joined #ruby-lang
judofyr has joined #ruby-lang
woollyams has joined #ruby-lang
thisirs has joined #ruby-lang
krz has quit [Quit: krz]
lcdhoffman has joined #ruby-lang
datanoise has joined #ruby-lang
sush24 has joined #ruby-lang
goshakkk has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
<workmad3>
andrewvos: hehe
<andrewvos>
workmad3: It's so much pain
<andrewvos>
workmad3: I've given up. Cygwin didn't work, and some other mobissh crap was just pissing me off.
ttilley has joined #ruby-lang
piyush has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
woollyams has joined #ruby-lang
xyzodiac has joined #ruby-lang
<kalleth>
andrewvos: why ssh for a windows box? just enable remote desktop and port forward port 3389 to the box through a dmz
<kalleth>
then use 'rdesktop'
<lianj>
or run a meterpreter session on the windows box. even easier :p
<andrewvos>
kalleth: Because I'm not used to having to click around shit all the time, and cmd.exe makes me want to self-harm.
replore_ has joined #ruby-lang
<kalleth>
andrewvos: isn't that what powershell is for then
<kalleth>
i mean
xyzodiac has quit [Client Quit]
<kalleth>
you're administering windows... use windows administration tools?
<andrewvos>
I'm not. I'm testing out some tools on it.
<matti>
;]
sush24 has quit [Quit: This computer has gone to sleep]
mwjcomputing has joined #ruby-lang
<andrewvos>
lianj: Hmm, I do like your suggestion! So much easier.
<lianj>
https shell and optional vnc :)
postmodern has quit [Quit: Leaving]
jperry2_ has joined #ruby-lang
jperry2_ has quit [Client Quit]
heftig has joined #ruby-lang
SkyEye has joined #ruby-lang
SkyEye has quit [Changing host]
SkyEye has joined #ruby-lang
sush24 has joined #ruby-lang
gaveen has quit [Ping timeout: 260 seconds]
roadt has quit [Ping timeout: 246 seconds]
beiter has quit [Quit: beiter]
sush24 has quit [Quit: This computer has gone to sleep]
undersc0re97 has quit [Quit: i use linux l o l]
woollyams has quit [Quit: Computer has gone to sleep.]
woollyams has joined #ruby-lang
nXqd has joined #ruby-lang
sush24 has joined #ruby-lang
nXqd has quit [Read error: Operation timed out]
prathamesh_ has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
woollyams has quit [Quit: Computer has gone to sleep.]
<ttilley>
judofyr: thankyou kindly for the response. i've briefed over the news/changelog and even some diffs of commits between 1.9.2 and 1.9.3 but there seriously had to be a document of some kind somewhere... no?
<ttilley>
maybe there is and it's just in japanese
<seydar>
ah, you know, it might be because my prompt uses color codes
<Mon_Ouie>
It works fine here; what terminal are you using?
nitti has joined #ruby-lang
<seydar>
iTerm
<Mon_Ouie>
That might be why too, but I should be able to fix it easily then
irleif has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
The code that needs the size of the prompt seems to take ANSI codes in account properly though
<steveklabnik>
i use iterm2
<steveklabnik>
and you use irssi?
<steveklabnik>
i hit escape-p to scroll back
xyzodiac has quit [Quit: Computer has gone to sleep.]
nitti has quit [Remote host closed the connection]
<seydar>
Mon_Ouie: yeah, i'm trying to create a repro case, but i'm struggling
<Mon_Ouie>
Scrollback as in what Readline, etc. does when you hit up arrow (Ctrl-P in key bindings)
<Mon_Ouie>
emacs mode* I mean
<steveklabnik>
ahhh
runeb has joined #ruby-lang
<seydar>
yeah, i'm hitting the up arrow. dammit, my repro isn't failing.
<ridders24>
Why am I getting the error: Hash.rb:14:in `digest': can't convert File into String (TypeError) http://pastebin.com/9gGaajDX
<seydar>
buf => buf.read, maybe?
kiddorails has joined #ruby-lang
naquad has quit [Excess Flood]
nitti has joined #ruby-lang
arooni-mobile has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
naquad has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
<ridders24>
seydar, when I try that i get undifined local var or method
<seydar>
ridders24: when you do md5 = Digest::MD5.hexdigest buf
<seydar>
do md5 = Digest::MD5.hexdigest buf.read instead
<seydar>
Mon_Ouie: found my error. i was manually managing history when i was using readline, and coolline automatically does that, so there were discrepancies
<judofyr>
ridders24: or even: Digest::MD5.hexdigest(File.binread(root))
AlHafoudh has joined #ruby-lang
<seydar>
AND the best part, I have a mac and can hit fn + left arrow and it will jump to the beginning of the line. for some reason, i couldn't do that with my readline version
no_worries has quit [Remote host closed the connection]
<judofyr>
seydar: fn-left scrolls to the top of page here
<seydar>
well it goes to the beginning of the line for me on whatever i do. the cursor jump was confusing the readline i was using and i'm not sure why
<seydar>
but coolline is working wonderfully
xyzodiac has joined #ruby-lang
<matled>
it would be nice if the digest classes would have a method taking an io object instead of a string and the gzip class should have a method to take a string instead of an io object...
arooni-mobile has quit [Ping timeout: 256 seconds]
<ridders24>
Seydar and Judofyr, thanks for that, just couldn't get my head round that
nXqd has joined #ruby-lang
<seydar>
ridders24: np, do you see where you were confused?
<seydar>
Mon_Ouie: where do i change the settings, like for history_file?
sush24 has quit [Quit: This computer has gone to sleep]
<ridders24>
seydar, yh I know i needed read somewhere, but all the things I tried just wouldn't work
<seydar>
buf is a file HANDLE. it is basically just a name.
<ridders24>
ahh ok. I also wasnt aware i could binread
<seydar>
ideally what would go through your head (and you say you thought this) is: hm, i have a file and i need to get the data within. i need to read it somehow. #read and #binread to the rescue
nXqd has quit [Ping timeout: 264 seconds]
<seydar>
sometimes you just have to go to the API and wait for one of the methods to strike you as reasonable
gsav has joined #ruby-lang
wallerdev has joined #ruby-lang
dominikh has quit [Remote host closed the connection]
dominikh has joined #ruby-lang
<ridders24>
seydar: what would the best approach be to md5 a series of files in a folder and move any duplicate files to another folder?
tRAS has joined #ruby-lang
irleif has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
spinagon has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
nitti has quit [Ping timeout: 245 seconds]
nitti has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
nitti has quit [Remote host closed the connection]
methods has joined #ruby-lang
<methods>
is there a way to make ^u work in irb like it does normally on command line
<judofyr>
methods: it works fine here
ryanlecompte has joined #ruby-lang
<methods>
^u normally pulls "from the cursor" to the beginning of the line
<methods>
in irb it's removing the entire line for me
<benwoody>
it's ^a
<judofyr>
methods: nope, ^k does that for me
<methods>
^a *moves* to the beginning of the line
<judofyr>
both in IRB and terminal
<judofyr>
^u kills the whole line
<methods>
^k pulls from the cursor to the *end* of the line
Criztian has quit [Remote host closed the connection]
<methods>
yea I'm pretty use to working with those shortcuts :[ also ^ + arrows jumps forward/back words but in irb i just get ;5D injected into the line
datanoise has quit [Ping timeout: 256 seconds]
nitti has joined #ruby-lang
<methods>
it might be osx weirdness , i had to do allot of things to get iterm2 working like it did for me on linux
<methods>
I'm pretty sure it would be some kind of readline support
jtoy has quit [Quit: jtoy]
<methods>
since i use rvm i figure i could probably fix it by rebuilding it with whatever flags or libraries it needed
seydar has quit [Quit: leaving]
jtoy has joined #ruby-lang
jtoy has quit [Client Quit]
KA_ has joined #ruby-lang
BigFatFatty has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
KA_ has quit [Quit: KA_]
yats_ has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
ruurd has quit [Ping timeout: 256 seconds]
no_worries has joined #ruby-lang
irleif has joined #ruby-lang
heftig has joined #ruby-lang
GarethAdams has quit [Remote host closed the connection]
GarethAdams|Work has joined #ruby-lang
sush24 has joined #ruby-lang
GarethAdams has joined #ruby-lang
GarethAdams|Work has quit [Remote host closed the connection]
rue|w has joined #ruby-lang
thisirs has quit [Remote host closed the connection]
tooky has quit [Remote host closed the connection]
g0bl1n has quit [Quit: g0bl1n]
pberkeley has left #ruby-lang [#ruby-lang]
<methods>
what's the md5 of the two files ?
pberkeley has joined #ruby-lang
replore has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
pberkele_ has joined #ruby-lang
pberkeley has quit [Quit: pberkeley]
toertore has joined #ruby-lang
A1241 has joined #ruby-lang
A1241 has quit [Client Quit]
A124 has quit [Ping timeout: 240 seconds]
toretore has quit [Ping timeout: 240 seconds]
piyush has joined #ruby-lang
goshakkk has joined #ruby-lang
tooky has joined #ruby-lang
hahuang65 has joined #ruby-lang
replore has joined #ruby-lang
jtoy has joined #ruby-lang
jperry2_ has joined #ruby-lang
tooky has quit [Remote host closed the connection]
replore has quit [Remote host closed the connection]
yats_ has quit [Quit: Leaving]
KA_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
Criztian has joined #ruby-lang
KA_ has quit [Client Quit]
jackhammer2022 has joined #ruby-lang
jtoy has quit [Quit: jtoy]
hahuang65 has quit [Ping timeout: 240 seconds]
tdy_ has joined #ruby-lang
jtoy has joined #ruby-lang
chimkan_ has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
jtoy has quit [Client Quit]
solars has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
tooky has joined #ruby-lang
KA_ has joined #ruby-lang
KA_ has quit [Client Quit]
alvaro_o has joined #ruby-lang
pberkele_ has quit [Remote host closed the connection]
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
xyzodiac has quit [Quit: Computer has gone to sleep.]
ruurd has joined #ruby-lang
KA_ has joined #ruby-lang
roadt has quit [Ping timeout: 245 seconds]
jtoy has joined #ruby-lang
tooky has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
kiddorails1 has quit [Quit: Leaving.]
KA_ has quit [Client Quit]
Sambalero has joined #ruby-lang
kiddorails has quit [Read error: Connection reset by peer]
kiddorails1 has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
KA_ has joined #ruby-lang
jtoy has quit [Ping timeout: 256 seconds]
jperry2_ has quit [Quit: jperry2_]
gmci has quit [Quit: Computer has gone to sleep.]
spectra has quit [Ping timeout: 246 seconds]
nitti has quit [Remote host closed the connection]
rolfb has joined #ruby-lang
spectra has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
xyzodiac has joined #ruby-lang
tdy_ has quit [Ping timeout: 252 seconds]
jtoy has joined #ruby-lang
dhruvasagar has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
tooky has joined #ruby-lang
kiddorails1 has quit [Quit: Leaving.]
kiddorails has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
nitti has joined #ruby-lang
kiddorails has quit [Read error: Connection reset by peer]
kiddorails has joined #ruby-lang
kiddorails has quit [Read error: Connection reset by peer]
kiddorails1 has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
xyzodiac has quit [Quit: Computer has gone to sleep.]
imajes has quit [Excess Flood]
KA_ has quit [Quit: KA_]
nitti has quit [Remote host closed the connection]
xyzodiac has joined #ruby-lang
jperry2_ has joined #ruby-lang
imajes has joined #ruby-lang
chimkan_ has joined #ruby-lang
tooky has quit [Remote host closed the connection]
ttilley has joined #ruby-lang
tooky has joined #ruby-lang
KA_ has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
KA_ has quit [Client Quit]
drowningchild has quit [Quit: Leaving]
tooky has quit [Ping timeout: 246 seconds]
KA_ has joined #ruby-lang
jtoy has quit [Quit: jtoy]
KA_ has quit [Client Quit]
xyzodiac has quit [Quit: Computer has gone to sleep.]
KA_ has joined #ruby-lang
jtoy has joined #ruby-lang
wallerdev has joined #ruby-lang
AlHafoudh has quit [Quit: Computer has gone to sleep.]
<ridders24>
when i leave argv blank the script works and i get a result, however when I type the full path in argv i get nothing unless i split the path with example\\path\\etc. How can i fix this so i dont need to keep doing that? http://pastebin.com/04jhXaeB
KA_ has quit [Client Quit]
replore has joined #ruby-lang
<methods>
you just want to detect duplicate images ?