ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
toertore has quit [Quit: Leaving]
Firstmate has joined #ruby-lang
Madis has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0/20120830123745]]
irleif has joined #ruby-lang
irleif has quit [Client Quit]
Sambalero has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
WillMarshall has quit [Quit: Computer has gone to sleep.]
no_worries has quit [Remote host closed the connection]
ledao has quit [Quit: Leaving.]
ledao has joined #ruby-lang
chrisco has quit [Remote host closed the connection]
WillMarshall has joined #ruby-lang
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
anannie has quit [Ping timeout: 246 seconds]
WillMarshall has quit [Client Quit]
mistym has quit [Remote host closed the connection]
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
WillMarshall has joined #ruby-lang
Guest86326 has left #ruby-lang [#ruby-lang]
faces has joined #ruby-lang
facest has quit [Ping timeout: 264 seconds]
Boohbah has joined #ruby-lang
charliesome has joined #ruby-lang
justinseiter has quit [Ping timeout: 244 seconds]
perryh is now known as perry
justinseiter has joined #ruby-lang
kjr has quit [Quit: kjr]
<Firstmate> I was wondering if there was any way to do enums in Ruby?
<Firstmate> I kinda wanna return from a class a state of something.
<Firstmate> I understand symbols (a little bit), but I don't know how I'd return a symbol
<Firstmate> I also read a bit on Modules, but it seems like that is targeted at something a bit different.
xyzodiac has joined #ruby-lang
<matti> Firstmate: Not like you'd use enum in C.
<matti> Firstmate: People use a module and constants to emulate it a little.
<matti> Firstmate: To be fair, this is more than enough in most cases.
<Firstmate> would this be like
<Firstmate> module SomeType
<Firstmate> FOO = 0
<Firstmate> end
<matti> Yes.
<Firstmate> And then calling it like, if foo == SomeType::FOO
<matti> There is a nice take on this mentioned here: http://stackoverflow.com/questions/75759/enums-in-ruby
<matti> FFI uses similar thing.
<Firstmate> I see, Thank you.
<Firstmate> FFI?
<matti> FFI is like Swing for Ruby.
<Firstmate> I see.
<Firstmate> Appreciate it, thank you.
<matti> Allows you to create bindings in Ruby to a C library.
<Firstmate> Would it be possible with symbols?
<matti> Sure.
<matti> Have a look on this SO.
<Firstmate> I don't particularly udnerstand how you could...return a symbol?
<Firstmate> I saw it, but that was for an index in an hash
<Firstmate> My usage was across multiple classes/files.
<matti> Firstmate: You can. Symbol has a special place, but it is also an object.
<matti> Firstmate: Read this SO, there are few techniques there ;]
<Firstmate> Okay, one sec.
<matti> Firstmate: In the world of Ruby (particularly Rails), people tend to pass Hash around with symbols inside as options.
nXqd has joined #ruby-lang
<matti> Firstmate: So, nothing is illegal, etc ;]
<Firstmate> Interesting
<Firstmate> So in a method, I could have something like "return :foo"
<matti> Sure.
<matti> Try it :)
<Firstmate> and somewhere else, if (someMethod() == :foo)
<matti> Fire up irb / pry ;]
<Firstmate> Eh, on windows. Running ruby within the git bash
<matti> Firstmate: Yes, or a case statement.
<Firstmate> and irb doesn't like me.
<Firstmate> I've decided to fix that another day.
<Firstmate> Erm, cygwin is what I'm guessing git bash pretty much is though.
<Firstmate> or w/e it is =\
<matti> Firstmate: http://tryruby.org/
<matti> ;D
stardiviner has joined #ruby-lang
<matti> Um.
<matti> Different than it used to be.
<Firstmate> It's very slow o.O
<matti> Yeah.
<matti> Bollocks.
<matti> Older version was OK.
<matti> >> true
<Firstmate> It's okay, just made a quick file to test it
<matti> Bot is down too.
<matti> ;/
<Firstmate> That's pretty darn interesting :V
nXqd has quit [Ping timeout: 255 seconds]
<matti> Firstmate: ruby -e "def a; :cookie ; end p [a, a.class]"
<matti> With added ; there ;p
<Firstmate> hm
<matti> Firstmate: Good luck dude :) I am off to have a nap... 2am ;p
<Firstmate> Thank you.
<matti> :>
<matti> We should have sand-boxed Ruby VM running via telnet somewhere ;d
* matti will look into it.
<matti> Night, night.
<Spaceghostc2c> matti: Dont' die.
<matti> Spaceghostc2c: ?
<matti> Spaceghostc2c: I may, at some point in 40-ish years.
<matti> ;d
<matti> Spaceghostc2c: i.e. a piece of SpaceX Falcon 9 may drop on me.
<matti> Spaceghostc2c: I've added support for arbitrary large numerals via Bignum to FizzBuzz ;p
<Spaceghostc2c> matti: To what?
<matti> Spaceghostc2c: The thing I did in C.
<matti> Um.
anannie has joined #ruby-lang
<matti> krzysztof@samsung:~$ time fizzbuzz 10000000 &> /dev/null
<matti> real0m18.602s
<matti> ;D
<matti> Anyway.
<matti> Nobody cares ;p
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
arooni-mobile has joined #ruby-lang
nazty has joined #ruby-lang
ryanlecompte has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
felixc has joined #ruby-lang
felixc has quit [Client Quit]
felixc has joined #ruby-lang
ledao has left #ruby-lang [#ruby-lang]
lsegal has joined #ruby-lang
Firstmate has quit []
ryanlecompte has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
ryanlecompte has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
xuser has left #ruby-lang [#ruby-lang]
<Spaceghostc2c> matti: No, no they don't.
felixc has quit [Quit: Leaving.]
esad has joined #ruby-lang
gsav has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
ryanf has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
Bosox20051 has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
drbrain has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ryanlecompte has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
krz has joined #ruby-lang
irleif has joined #ruby-lang
wasnotrice_ has left #ruby-lang [#ruby-lang]
wasnotrice has joined #ruby-lang
kain has quit [Ping timeout: 252 seconds]
Sambalero has joined #ruby-lang
drbrain has joined #ruby-lang
WillMarshall has joined #ruby-lang
justinseiter has quit [Ping timeout: 260 seconds]
richardjburton has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
richardjburton has quit [Quit: Textual IRC Client: www.textualapp.com]
kain has joined #ruby-lang
agarie has joined #ruby-lang
agarie has quit [Remote host closed the connection]
esad has quit [Quit: Computer has gone to sleep.]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
xyzodiac has quit [Quit: Computer has gone to sleep.]
gsav has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
wyhaines has joined #ruby-lang
gsav has joined #ruby-lang
stardiviner has joined #ruby-lang
kain has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
crudson has joined #ruby-lang
justinmcp has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
ryanlecompte has joined #ruby-lang
redbaritone has joined #ruby-lang
redbaritone has quit [Client Quit]
redbaritone has joined #ruby-lang
redbaritone has quit [Client Quit]
redbaritone has joined #ruby-lang
redbaritone has quit [Client Quit]
esad has joined #ruby-lang
piyush has joined #ruby-lang
irleif has joined #ruby-lang
kain has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
coryf has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nm7 has quit [Quit: ZNC - http://znc.sourceforge.net]
stardiviner has joined #ruby-lang
kain has quit [Ping timeout: 260 seconds]
recklessrahul has joined #ruby-lang
datanoise has joined #ruby-lang
ryanlecompte has joined #ruby-lang
xuser has joined #ruby-lang
piyush has quit [Ping timeout: 255 seconds]
Sambalero has quit [Remote host closed the connection]
esad has quit [Quit: Computer has gone to sleep.]
gsav has quit [Read error: Connection reset by peer]
kain has joined #ruby-lang
goshakkk has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
jtoy has quit [Quit: jtoy]
datanoise has quit [Ping timeout: 245 seconds]
vesan has joined #ruby-lang
kain has quit [Ping timeout: 248 seconds]
wyhaines has quit [Remote host closed the connection]
goshakkk has quit [Quit: Computer has gone to sleep.]
nXqd has joined #ruby-lang
nXqd has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
josh^ has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby-lang
datanoise has joined #ruby-lang
josh^ has joined #ruby-lang
kain has joined #ruby-lang
recklessrahul has quit [Ping timeout: 246 seconds]
_Mon_Ouie_ has quit [Read error: Connection reset by peer]
_Mon_Ouie_ has joined #ruby-lang
datanoise has quit [Ping timeout: 245 seconds]
kain has quit [Ping timeout: 245 seconds]
burgestrand has joined #ruby-lang
ryanlecompte has joined #ruby-lang
anon_456 has quit [Remote host closed the connection]
recklessrahul has joined #ruby-lang
anon_456 has joined #ruby-lang
tRAS has joined #ruby-lang
AlHafoudh has quit [Quit: Computer has gone to sleep.]
tRAS has quit [Quit: Mother, did it need to be so high?]
recklessrahul has quit [Ping timeout: 240 seconds]
piyush has joined #ruby-lang
gnufied has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
irleif has joined #ruby-lang
kain has joined #ruby-lang
rippa has joined #ruby-lang
recklessrahul has joined #ruby-lang
Fullmoon has joined #ruby-lang
kain has quit [Ping timeout: 240 seconds]
piyush has quit [Ping timeout: 260 seconds]
Fullmoon has quit [Ping timeout: 246 seconds]
yats has joined #ruby-lang
anon_456 has quit [Read error: Connection reset by peer]
anon_456 has joined #ruby-lang
piyush has joined #ruby-lang
CodeBlock has quit [Changing host]
CodeBlock has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
yats has quit [Read error: Connection reset by peer]
yats_ has joined #ruby-lang
_Mon_Ouie_ has quit [Ping timeout: 246 seconds]
gnufied has quit [Quit: Leaving.]
kain has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
dc5ala has joined #ruby-lang
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
yats_ has quit [Ping timeout: 260 seconds]
Fullmoon has joined #ruby-lang
tRAS has joined #ruby-lang
kain has quit [Ping timeout: 264 seconds]
ttilley has quit [Quit: ttilley]
gnufied has joined #ruby-lang
dr_bob has joined #ruby-lang
icooba has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
toretore has joined #ruby-lang
stiang has joined #ruby-lang
dhruvasagar has joined #ruby-lang
kain has joined #ruby-lang
itz has quit [Read error: Operation timed out]
kain has quit [Ping timeout: 244 seconds]
Guest62128 has quit [Ping timeout: 240 seconds]
itz has joined #ruby-lang
th__ has joined #ruby-lang
datanoise has joined #ruby-lang
workmad3 has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
agarie has joined #ruby-lang
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.
<erikh> app.split(/::/).inject(Object) { |x,y| x.const_get(y) }
<mastersrp> erkh: Ahh, that makes sense then. Thanks!
<andrewvos> erikh: I'm executign these scripts from my gem though.
<erikh> andrewvos: shouldn't matter as long as they go through the command interpreter
<erikh> but, test, of course.
<andrewvos> Using a mixture of `system 'meh'` and the childprocess gem.
<andrewvos> Ok, well it will be pretty cool if this just works.
<erikh> all I'm saying is that you shouldn't *need* to add code
<andrewvos> Oh wait, but I'm doing something like: if `which adb`.empty?
<andrewvos> Maybe I need to rethink my approach.
<erikh> yeah, there's no `which` on windows.
<erikh> but!
voker57 has joined #ruby-lang
<erikh> which should DTRT, but if it doesn't you can gladly tweak and maintain it
<erikh> because I haven't touched it since 2006 as you can see.
<andrewvos> Hah! Awesome.
<andrewvos> erikh: By the way, it was pretty cool going over to help a colleague and seeing they were using your gem :)
<erikh> oh snap! what gem?
<andrewvos> dbi
<erikh> hah. run away
<andrewvos> I tried :)
<andrewvos> Works though
<erikh> it's no longer being maintained
<erikh> they should really port away from it.
<erikh> and it has some pretty evil bugs on 1.9.
beiter has quit [Quit: beiter]
mastersrp has left #ruby-lang [#ruby-lang]
PAPSIRE has quit [Read error: Connection timed out]
sush24 has quit [Quit: This computer has gone to sleep]
<andrewvos> :(
PAPSIRE has joined #ruby-lang
<andrewvos> Not really run into any yet, but will keep that in mind!
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
wyhaines has joined #ruby-lang
<erikh> there are a few in there.
josh^ has quit [Ping timeout: 246 seconds]
retro|cz has quit [Ping timeout: 256 seconds]
josh^ has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
<andrewvos> hehe
retro|cz has joined #ruby-lang
OrganicCat has quit []
beiter has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
lucas_ has quit [Quit: leaving]
lucas_ has joined #ruby-lang
retro|cz has quit [Ping timeout: 256 seconds]
ridders24 has joined #ruby-lang
<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.]
Vazini has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
roadt has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby-lang
burgestrand has joined #ruby-lang
goshakkk has joined #ruby-lang
<masterkorp> hello i have this simple cycle
runeb has joined #ruby-lang
<masterkorp> /usr/lib/ruby/1.9.1/find.rb:38:in `block in find': No such file or directory (Errno::ENOENT)
<masterkorp> but its gives me this
<masterkorp> the directory exists
yats has joined #ruby-lang
<masterkorp> ot it
<masterkorp> typo
esad has joined #ruby-lang
sduckett has quit [Ping timeout: 260 seconds]
<GarethAdams> what directory exists?
Vazini has left #ruby-lang [#ruby-lang]
<masterkorp> i fixed it
<GarethAdams> were you passing in a directory that didn't exist?
<GarethAdams> ;)
nertzy has joined #ruby-lang
<andrewvos> erikh: What about the `where` command on windows?
PAPSIRE has quit [Read error: Connection reset by peer]
PAPSIRE has joined #ruby-lang
recklessrahul has quit [Quit: Leaving]
<andrewvos> erikh: Where is your code for the "which" gem?
<judofyr> andrewvos: "gem unpack which"
PAPSIRE has quit [Read error: Connection reset by peer]
<andrewvos> judofyr: Thanks
<ttilley> can anyone point me at important changes between the 1.9.2 and 1.9.3 C API? the googles are failing me. either that or i'm failing me.
josh^ has quit [Remote host closed the connection]
<andrewvos> OMG the word which instantly becomes a non-word after you type it a few times
<andrewvos> WHAT DOES IT MEAN
<andrewvos> IS THAT HOW YOU SPELL IT?
<ttilley> rb_thread_select is apparently deprecated now, for example...
<judofyr> ttilley: this mentions some C API, but not a lot: https://github.com/ruby/ruby/blob/ruby_1_9_3/NEWS
<andrewvos> erikh: (Which.which?("adb") + Which.which?("adb.exe")).first
<andrewvos> Pretty cool
xyzodiac has joined #ruby-lang
<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
<ttilley> :|
<judofyr> ttilley: rb_thread_select is in intern.h in 1.9.2 though: https://github.com/ruby/ruby/blob/ruby_1_9_2/include/ruby/intern.h
<ttilley> the diff between 1.9.2 and 1.9.3 is about 18M of text btw. quite impressive.
<ttilley> err. rather, the 1_9_2 and 1_9_3 branches in git
SkyEye has quit [Quit: Leaving]
piyush has quit [Ping timeout: 255 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
jperry2_ has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
prathamesh_ has quit [Read error: Connection reset by peer]
prathamesh_ has joined #ruby-lang
yats_ has joined #ruby-lang
yats has quit [Read error: Connection reset by peer]
<andrewvos> Ok `git ls-files` in gemspec just pissed me off under Windows.
<andrewvos> Try to install git? The git download page is blocked in this company.
<judofyr> andrewvos: Dir["**/*"]
<andrewvos> Try to use Tor? My proxy switcher seems to be broken.
prathamesh_ has quit [Client Quit]
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<andrewvos> judofyr: I don't always run rake from the project root, so may need Dir["#{File.dirname(__FILE__)}/**/*"]
<judofyr> andrewvos: good point
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
yats_ has quit [Ping timeout: 256 seconds]
kitallis has joined #ruby-lang
Axsuul has quit [Ping timeout: 240 seconds]
piyush has joined #ruby-lang
replore_ has quit [Remote host closed the connection]
sduckett has joined #ruby-lang
runeb has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
justinmcp has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
yalue has joined #ruby-lang
replore has joined #ruby-lang
runeb has joined #ruby-lang
GarethAdams has quit [Ping timeout: 248 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
ttilley has quit [Quit: ttilley]
xyzodiac has joined #ruby-lang
<zzak> good morning!
xyzodiac has quit [Client Quit]
rippa has joined #ruby-lang
_Mon_Ouie_ has joined #ruby-lang
replore has quit [Remote host closed the connection]
jperry2_ has quit [Quit: jperry2_]
Criztian_ has joined #ruby-lang
Criztian has quit [Read error: Connection reset by peer]
Criztian_ has quit [Read error: Connection reset by peer]
Criztian has joined #ruby-lang
GarethAdams has joined #ruby-lang
lcdhoffman has joined #ruby-lang
jtoy has joined #ruby-lang
jtoy has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
enebo has joined #ruby-lang
outoftime has joined #ruby-lang
codewrangler has joined #ruby-lang
_Mon_Ouie_ has left #ruby-lang [#ruby-lang]
Mon_Ouie has joined #ruby-lang
erichmenge has joined #ruby-lang
coryf has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
justinseiter has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
lcdhoffman has quit [Quit: lcdhoffman]
nitti has joined #ruby-lang
<ridders24> what does "rb" do when opening a file?
<judofyr> ridders24: r = read-mode
<judofyr> b = binary mode
tdy_ has joined #ruby-lang
<judofyr> ridders24: same as: File.open("foo", "r") { |f| f.binmode }
<ridders24> judofyr: many thanks
madhatter420 has joined #ruby-lang
tdy_ has quit [Client Quit]
tdy_ has joined #ruby-lang
solars has quit [Read error: Operation timed out]
dr_bob has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
dr_bob has joined #ruby-lang
irleif has joined #ruby-lang
ryanlecompte has joined #ruby-lang
S1kx has joined #ruby-lang
no_worries has joined #ruby-lang
cgd has quit [Ping timeout: 240 seconds]
xyzodiac has joined #ruby-lang
lcdhoffman has joined #ruby-lang
heftig has quit [Quit: leaving]
ryanlecompte has quit [Remote host closed the connection]
cgd has joined #ruby-lang
tdy_ has quit [Quit: WeeChat 0.3.9]
tdy_ has joined #ruby-lang
piyush has quit [Ping timeout: 246 seconds]
erichmenge has quit [Quit: Be back later]
replore_ has joined #ruby-lang
sush24 has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
replore_ has quit [Ping timeout: 240 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
wyhaines has joined #ruby-lang
S1kx has quit [Quit: Leaving]
wyhaines has quit [Read error: Connection reset by peer]
nitti has quit [Remote host closed the connection]
wyhaines_ has joined #ruby-lang
nitti has joined #ruby-lang
tdy_ has quit [Read error: Connection reset by peer]
ruurd has joined #ruby-lang
methods has joined #ruby-lang
ryanlecompte has joined #ruby-lang
chrisco has joined #ruby-lang
<methods> do you think ruby will ever add an exec type ability for an object ? that would allow it to replace it self with another object ?
nitti has quit [Ping timeout: 255 seconds]
kjr has joined #ruby-lang
jperry2_ has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
<judofyr> methods: no
krohrbaugh has quit [Ping timeout: 252 seconds]
jperry2_ has quit [Client Quit]
replore has joined #ruby-lang
runeb has quit [Remote host closed the connection]
seydar has joined #ruby-lang
<seydar> Mon_Ouie: hey, i like your coolline
<seydar> nice tool
<seydar> scrollback doesn't really work for me, however. is this a known bug or is my useage simply weird?
<Mon_Ouie> Like typing a line and typing Ctrl+P to bring back the previous one?
methods has left #ruby-lang [#ruby-lang]
<seydar> yeah. the line buffer is properly updated, but the display is all screwy
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<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
<judofyr> ridders24: File.binread("foo") == File.open("foo", "rb") { |f| f.read }
<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
<methods> ^u normally pulls to the *beginning*
<judofyr> methods: oh. you're actually right! sorry
krohrbaugh has joined #ruby-lang
<judofyr> I observe the same in IRB here
<judofyr> weird
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]
erichmenge has joined #ruby-lang
<masterkorp> /home/alfredo/sportsnetwork_purger.rb:36:in `used_space=': undefined method `+' for nil:NilClass (NoMethodError)
<masterkorp> from /home/alfredo/sportsnetwork_purger.rb:124:in `block (2 levels) in <main>'
<masterkorp> guys any ideas »
vesan has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<masterkorp> Why it says unknown method
<masterkorp> the attribute its there
__butch__ has joined #ruby-lang
KA_ has joined #ruby-lang
<wnd> because "+" is not implemented for nil
<methods> you never initialized @used_space
<steveklabnik> and it will be initially nil
GarethAdams has quit [Remote host closed the connection]
KA_ has quit [Client Quit]
rue|w has quit [Ping timeout: 255 seconds]
tooky has quit [Remote host closed the connection]
tooky has joined #ruby-lang
thatdutchguy has joined #ruby-lang
<methods> i guess it would be cool to have something like +||=
<masterkorp> oh great catch
nitti has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
GarethAdams has joined #ruby-lang
ruurd has joined #ruby-lang
datanoise has joined #ruby-lang
nitti has joined #ruby-lang
GarethAdams has quit [Client Quit]
g0bl1n has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Mellett68 has joined #ruby-lang
cantonic_ has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
cdt has quit [Quit: Ex-Chat]
chrisco has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 244 seconds]
kiddorails1 has joined #ruby-lang
kiddorails has quit [Quit: Leaving.]
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
dous has quit [Ping timeout: 245 seconds]
dous has joined #ruby-lang
KA_ has joined #ruby-lang
KA_ has quit [Client Quit]
goshakkk has quit [Quit: Computer has gone to sleep.]
thatdutchguy has quit [Remote host closed the connection]
vesan has joined #ruby-lang
chrismcg is now known as zz_chrismcg
pberkeley has joined #ruby-lang
Hakon has joined #ruby-lang
thatdutchguy has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
ruurd has quit [Quit: Leaving...]
alexkira has joined #ruby-lang
madhatter420 has quit [Read error: No route to host]
<ridders24> why does this script: http://www.dzone.com/snippets/how-identify-files-which-are report different files are indenticle?
madhatter420 has joined #ruby-lang
mrsolo has joined #ruby-lang
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 ?
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<ridders24> methods: yes via its md5
<methods> dupemap does that
<methods> dupemap delete,report resultdirectory
<methods> that would report and delete dupes
replore has quit [Ping timeout: 260 seconds]
fletch_ has joined #ruby-lang
stiang has quit [Quit: stiang]
qpingu has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.3.6-dev]
tdy has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
tdy_ has joined #ruby-lang
jtoy has quit [Quit: jtoy]
datanoise has joined #ruby-lang
tRAS has quit [Ping timeout: 245 seconds]
tdy_ has quit [Ping timeout: 244 seconds]
tRAS has joined #ruby-lang
<matti> ;]
KA_ has joined #ruby-lang
KA_ has quit [Client Quit]
theconartist has joined #ruby-lang
KA_ has joined #ruby-lang
KA_ has quit [Read error: Connection reset by peer]
KA_ has joined #ruby-lang
nXqd has joined #ruby-lang
KA_ has quit [Client Quit]
nitti has joined #ruby-lang
nXqd has quit [Ping timeout: 264 seconds]
Axsuul has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
stiang has joined #ruby-lang
jtoy has joined #ruby-lang
ttilley has quit [Quit: ttilley]
icooba has quit [Ping timeout: 240 seconds]
g0bl1n has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
mistym has quit [Remote host closed the connection]
sebastianb has quit [Quit: Reconnecting]
sebastianb has joined #ruby-lang
KA_ has joined #ruby-lang
stiang has quit [Quit: stiang]
nitti has joined #ruby-lang
jtoy has quit [Quit: jtoy]
burgestrand has joined #ruby-lang
g0bl1n has quit [Quit: g0bl1n]
jtoy has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
spectra has quit [Ping timeout: 256 seconds]
cirenyc has joined #ruby-lang
spectra has joined #ruby-lang
lcdhoffman has joined #ruby-lang
gmci has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
KA_ has quit [Quit: KA_]
benanne has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
irleif has joined #ruby-lang
gmci has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
gmci has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
goshakkk has quit [Quit: Computer has gone to sleep.]
mrsolo has joined #ruby-lang
anon_456 has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
nitti has quit [Remote host closed the connection]
goshakkk has joined #ruby-lang
nitti has joined #ruby-lang
BMF has joined #ruby-lang
ddd1 has joined #ruby-lang
ddd is now known as Guest27038
ddd1 is now known as ddd
Guest27038 has quit [Ping timeout: 245 seconds]
gsav has joined #ruby-lang
irleif has joined #ruby-lang
tdy_ has joined #ruby-lang
akahn has quit [Quit: Connection closed for inactivity]
tRAS has quit [Quit: Mother, did it need to be so high?]
spinagon has quit [Ping timeout: 256 seconds]
dc5ala has quit [Quit: Ex-Chat]
workmad3 has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
datanoise has joined #ruby-lang
lsegal has joined #ruby-lang
datanoise has quit [Ping timeout: 276 seconds]
nitti has quit [Remote host closed the connection]
drowningchild has joined #ruby-lang
nitti has joined #ruby-lang
nitti has quit [Remote host closed the connection]
nitti has joined #ruby-lang
kiddorails1 has quit [Ping timeout: 260 seconds]
datanoise has joined #ruby-lang
nitti_ has joined #ruby-lang
MSU has quit [Ping timeout: 245 seconds]
vesan has quit [Ping timeout: 260 seconds]
ruurd has quit [Quit: Leaving...]
woollyams has joined #ruby-lang
postmodern has joined #ruby-lang
nitti has quit [Ping timeout: 276 seconds]
stiang has joined #ruby-lang
yalue has quit [Remote host closed the connection]
__butch__ has quit [Remote host closed the connection]
carloslopes has quit [Quit: Leaving.]
KA_ has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
kiddorails has joined #ruby-lang
piyush has quit [Ping timeout: 244 seconds]
thatdutchguy has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 240 seconds]
woollyams has quit [Ping timeout: 246 seconds]
Criztian has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
thatdutchguy has joined #ruby-lang
jtoy_ has joined #ruby-lang
Asher has quit [Quit: Leaving.]
jtoy has quit [Ping timeout: 246 seconds]
jtoy_ is now known as jtoy
FiXato has quit [Quit: my weechat instance maintenance]
kiddorails has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 246 seconds]
Kingy has joined #ruby-lang
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
tdy_ has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby-lang
BMF has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
stiang has quit [Quit: stiang]
vlad_starkov has quit [Remote host closed the connection]
conorreedy has quit [Quit: conorreedy]
vlad_starkov has joined #ruby-lang
toertore has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
jperry2_ has quit [Quit: jperry2_]
justinmcp has quit [Remote host closed the connection]
KA_ has quit [Quit: KA_]
<ridders24> how do solve having to enter a path in argv as this\\is\\a\\path ? http://pastebin.com/ChnbWKEC
jperry2_ has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
<methods> quote it ?
<methods> ridders24: are you on windows ?
FiXato has joined #ruby-lang
sebastianb has quit [Ping timeout: 246 seconds]
FiXato is now known as Guest86454
KA_ has joined #ruby-lang
<ridders24> methods: yes
<methods> i think you can use / if you wanted or quote the path ..
jeremyirony has joined #ruby-lang
<methods> or do something like ARGV.map{|x| x.gsub '\', '/'}
<methods> but i think \ should work anyway ?
jeremyirony has left #ruby-lang [#ruby-lang]
sebastianb has joined #ruby-lang
ridders24 has quit [Quit: Leaving]
jammi has quit [Ping timeout: 260 seconds]
vesan has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
thone has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
A124 has joined #ruby-lang
thone_ has quit [Ping timeout: 240 seconds]
jammi has joined #ruby-lang
Sambalero has joined #ruby-lang
havenn has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 246 seconds]
ananna has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
nitti_ has quit [Quit: Leaving...]
xyzodiac has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
irleif has joined #ruby-lang
anannie has quit [Ping timeout: 260 seconds]
retro|cz has quit [*.net *.split]
KillerFox has quit [*.net *.split]
Carnage\ has quit []
retro|cz has joined #ruby-lang
KillerFox has joined #ruby-lang
snorkdude has joined #ruby-lang
woollyams has joined #ruby-lang
Guedes has quit [Disconnected by services]
Asher has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
cgd has quit [Quit: leaving]
datanoise has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
no_worries has quit [Remote host closed the connection]
Sambalero has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
jammi- has joined #ruby-lang
jammi- has left #ruby-lang [#ruby-lang]
chimkan has quit [Client Quit]
fletch_ has quit []
datanoise has quit [Ping timeout: 256 seconds]
jamjam has joined #ruby-lang
jammi- has joined #ruby-lang
jammi- has quit [Client Quit]
corsican has quit [Quit: leaving]
corsican has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
benanne has quit [Quit: kbai]
nXqd has joined #ruby-lang
Sambalero has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
nXqd has quit [Read error: Operation timed out]
cirenyc has joined #ruby-lang
replore has joined #ruby-lang
WillMarshall has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
spectra has quit [Ping timeout: 246 seconds]
spectra has joined #ruby-lang
<jtoy> if i need to write a simple web server that supports persistent connections, which library would you recommend?
<whitequark> jtoy: EventMachine
cirenyc has quit [Quit: Leaving...]
kjr has quit [Quit: kjr]
steez has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
flebel has quit [Quit: :)]
<jtoy> whitequark: cool, that is what I plan ,I will probably use it with thin
anon_456 has quit [Remote host closed the connection]
ivanoats has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
Guest22415 has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
josh^ has joined #ruby-lang
jtoy has quit [Quit: jtoy]
justinmcp has joined #ruby-lang
Guest86454 has quit [Quit: Forgot to attach my weechat in an actual tmux session ><]
ivanoats has quit [Remote host closed the connection]
snk has quit [Ping timeout: 240 seconds]
FiXato has joined #ruby-lang
snk has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
Guest22415 has quit [Quit: Reconnecting]
steez_ has joined #ruby-lang
replore has quit [Remote host closed the connection]
BigFatFatty has left #ruby-lang [#ruby-lang]
replore_ has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
FiXato has quit [Quit: sorry, have to restart this tmux session]
replore_ has quit [Remote host closed the connection]
KA_ has quit [Quit: KA_]
kentos has joined #ruby-lang
<kentos> hello
outoftime has quit [Quit: Leaving]
<kentos> I'd just like to say, that I really like the .inject method
datanoise has joined #ruby-lang
Sambalero has joined #ruby-lang
FiXato has joined #ruby-lang
nertzy has joined #ruby-lang
jammi- has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
wyhaines_ has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
jammi- has quit [Remote host closed the connection]
jammi- has joined #ruby-lang
Hakon has quit [Read error: Connection reset by peer]
flebel has joined #ruby-lang
KA_ has quit [Client Quit]
setmeaway has quit [Quit: Leaving]
jammi is now known as jammi--
jamjam has quit [Ping timeout: 245 seconds]
KA_ has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
jammi- has left #ruby-lang [#ruby-lang]
jammi has joined #ruby-lang
Sambalero has joined #ruby-lang
jammi-- has left #ruby-lang ["changed host"]
KA_ has quit [Client Quit]
Sambalero has quit [Remote host closed the connection]
A124 has quit [Quit: Leaving.]