apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
Stalkr_ has quit [Quit: Leaving...]
igotnolegs has joined #ruby
clocKwize_ has joined #ruby
Nisstyre has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
khakimov has joined #ruby
benson has quit [Remote host closed the connection]
kenichi has quit [Remote host closed the connection]
danielpunt has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<pedahzur> tomb_, yakko: Ah, my bad...my_list was getting redefined elsewhere, so did have values. :) Thanks for the help, though.
bradhe has quit [Remote host closed the connection]
<X-Jester> pedahzur: maybe your list isn't actually empty?
<X-Jester> erm, nvm
<X-Jester> late to the party :(
<yakko> X-Jester: there are still some drunk girls
<X-Jester> yayayaya
<yakko> oh spanish speakers...
<X-Jester> sorry, "yeah yeah yeah yeah"
<X-Jester> i'm pasty white
<yakko> you just don't get the Brazilian standard is a lot funnier
<yakko> aheoiaheioaeua
<X-Jester> i thought spanish laughs were jajajaja
peindt has joined #ruby
danielpunt has quit [Remote host closed the connection]
<X-Jester> yayaya was my attempt to be like beavis.
<yakko> oh yeah
khakimov has quit [Quit: Computer has gone to sleep.]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<yakko> I just rather laught like an owl
<yakko> ¬¬
<coyo> <.<
<yakko> my owl is in a squared cage
Spooner_ has quit [Ping timeout: 248 seconds]
<coyo> so i see.
j| has joined #ruby
ackz has quit [Quit: Leaving...]
<X-Jester> any of you guys using the chef gems?
bradhe has joined #ruby
choffstein has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
ianbrandt has quit [Quit: ianbrandt]
peindt is now known as urlysses
beilabs has quit [Quit: Leaving]
jason^ has quit [Ping timeout: 244 seconds]
Nisstyre has joined #ruby
krusty_ar_ has quit [Remote host closed the connection]
yoklov has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.88.2 [Firefox 14.0.1/20120713134347]]
SegFaultAX|work2 has quit [Quit: leaving]
bbloom has joined #ruby
digitalcakestudi has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
urlysses has quit [Quit: urlysses]
Nisstyre has quit [Ping timeout: 246 seconds]
jarr0dsz has quit [Quit: Leaving...]
strife25 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
urlysses has joined #ruby
billiamii has joined #ruby
<pedahzur> X-Jester: No, it was defined one place empty, then overridden somewhere else with values, so yes, it was not empty. This is chef, BTW.
<X-Jester> yay chef!
adamkittelson has quit [Remote host closed the connection]
baphled has quit [Quit: Lost terminal]
baphled has joined #ruby
ramblex has quit [Quit: ramblex]
GoGoGarrett has joined #ruby
<pedahzur> X-Jester: Yup. I'm liking it. Still learning it (after 7 months of on/off use), and still feeling way over my head, but it's a great system.
zodiac1111 has joined #ruby
<X-Jester> yeah, we're using it pretty heavily at work
<X-Jester> i'm currently looking at how to directly execute stuff from the chef/knife namespace
<X-Jester> instead of invoking it via its cli
saschagehlich has quit [Ping timeout: 260 seconds]
minijupe has quit [Quit: minijupe]
<pedahzur> X-Jester: Sounds cool
<aef> in C++ an iostream has a method #peek which hints the next character on the stream without removing it and without blocking. this way i could check if the next read would block. is there a way to do this in Ruby?
IcyDragon has quit [Read error: No route to host]
Nisstyre has joined #ruby
IcyDragon has joined #ruby
urlysses has quit [Quit: urlysses]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
perryh_away is now known as perryh
kylemcgill has joined #ruby
urlysses has joined #ruby
<X-Jester> aef: getc and ungetc?
Nies has quit [Quit: Saliendo]
<apeiros> *sob* I really need to get that gist up on why cross-posting is rude and you shouldn't do it…
jblack has joined #ruby
gmci has quit [Ping timeout: 276 seconds]
cbuxton has quit [Ping timeout: 248 seconds]
ilyam has quit [Quit: ilyam]
ilyam has joined #ruby
ElderFain has joined #ruby
cdavaz has quit [Quit: cdavaz]
adeponte has quit [Remote host closed the connection]
robdodson has quit [Quit: robdodson]
hadees has joined #ruby
ilyam has quit [Ping timeout: 248 seconds]
yoklov has quit [Quit: computer sleeping]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
c0rn_ has quit [Quit: Computer has gone to sleep.]
maletor has quit [Quit: Computer has gone to sleep.]
yoklov has joined #ruby
chit has joined #ruby
justsee is now known as justsee|away
ringotwo has quit [Ping timeout: 240 seconds]
justsee|away is now known as justsee
dagnachewa has quit [Remote host closed the connection]
mfridh has quit [Ping timeout: 255 seconds]
pk1001100011 has quit [Ping timeout: 260 seconds]
ZachBeta has joined #ruby
c0rn_ has joined #ruby
savage- has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
nadirvardar has quit [Quit: Computer has gone to sleep.]
fflush has joined #ruby
<fflush> Bonjouuurrr
<apeiros> good night
* apeiros leaving the party to get some sleep :)
chit has quit []
Jay_Levitt has quit [Ping timeout: 246 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
tomb_ has quit [Ping timeout: 246 seconds]
yoklov has quit [Quit: computer sleeping]
c0rn_ has joined #ruby
c0rn_ has quit [K-Lined]
cczona has joined #ruby
TorpedoSkyline has joined #ruby
cczona has left #ruby [#ruby]
cakehero has quit [Quit: Computer has gone to sleep.]
choffstein has joined #ruby
apeiros has quit [Remote host closed the connection]
tomb_ has joined #ruby
adamkittelson has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
choffstein has quit [Ping timeout: 240 seconds]
chichou has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
seanstickle has quit [Quit: Nihil sub sole novum]
adeponte has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
manizzle_ has quit [Ping timeout: 246 seconds]
manizzle has quit [Ping timeout: 246 seconds]
pedahzur has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
ken_barber has joined #ruby
jarred has quit [Quit: jarred]
jarred has joined #ruby
freeayu has joined #ruby
jarjar_prime has joined #ruby
bricker88 has quit [Quit: Leaving.]
ilyam has joined #ruby
CaptainJet has joined #ruby
yoklov has joined #ruby
cakehero has joined #ruby
ringotwo has joined #ruby
jonathanwallace has joined #ruby
Markvilla has quit [Quit: Markvilla]
chriskk has joined #ruby
Hanmac has joined #ruby
chichou has quit [Remote host closed the connection]
zodiac1111 has quit [Ping timeout: 264 seconds]
ilyam has quit [Quit: ilyam]
gmci has joined #ruby
gmci is now known as Guest66722
eywu has quit [Quit: Leaving.]
Chryson has joined #ruby
jeff_sebring has joined #ruby
kylemcgill has quit [Remote host closed the connection]
skyjumper has left #ruby [#ruby]
mascool has quit [Ping timeout: 240 seconds]
<jumpingcloud> Hey, i'm trying to write a script that ssh's into a server and ssh's from that server. Can someone point me in the right direction?
Markvilla has joined #ruby
<yakko> capistrano
Markvilla has quit [Client Quit]
Guest66722 has quit [Remote host closed the connection]
gmci_ has joined #ruby
<jumpingcloud> yakko: thanks, that might work. I'm going to look into it. I'll let you know how it goes.
noganex has quit [Ping timeout: 248 seconds]
choffstein has joined #ruby
noganex has joined #ruby
<blazes816> jumpingcloud: alternatives: chef, puppet
jarjar_prime has quit [Quit: Sleep time.]
jonathanwallace has quit [Remote host closed the connection]
headius has quit [Quit: headius]
nu7hatch has left #ruby [#ruby]
ryannielson has quit [Read error: Connection reset by peer]
kylemcgill has joined #ruby
<jumpingcloud> this stuff might be overkill for this application. I'm an enthusiastic beginner ;) and I'm looking at things like greenletters and expect. and getting stuck there..
mengu has quit [Remote host closed the connection]
deryl has joined #ruby
uris has joined #ruby
zemanel has quit [Quit: Remote hottie closed the connection]
strnx has quit [Excess Flood]
BrokenCog has joined #ruby
<blazes816> jumpingcloud: what are you trying to accomplish?
jeff_sebring has quit [Quit: Leaving]
beakerma_ has quit [Remote host closed the connection]
gmci_ has quit [Ping timeout: 248 seconds]
jrajav has quit [Quit: The best darkness is strange and surprising]
GoGoGarrett has quit [Remote host closed the connection]
strnx has joined #ruby
niklasb has quit [Ping timeout: 248 seconds]
mjb2k has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
headius has joined #ruby
manizzle has joined #ruby
awarner has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bbloom has quit [Quit: Computer has gone to sleep.]
codeman has quit [Ping timeout: 246 seconds]
JustinCampbell has quit [Remote host closed the connection]
freeayu has joined #ruby
radic has quit [Read error: Operation timed out]
akem has quit [Read error: Connection timed out]
ken_barber has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 246 seconds]
nateberkope has joined #ruby
codeman has joined #ruby
CaptainJet has quit []
fantazo has joined #ruby
nateberkopec has quit [Ping timeout: 246 seconds]
nateberkope has quit [Ping timeout: 244 seconds]
radic has joined #ruby
mockra has quit [Remote host closed the connection]
Jackneill has joined #ruby
Jackneill is now known as Guest45869
sepp2k has joined #ruby
noganex has quit [Ping timeout: 260 seconds]
noganex has joined #ruby
zodiac1111 has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
jackhammer|AFK is now known as jackhammer2022
RichieEvan_ has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
kevinbond has joined #ruby
Ste11a has joined #ruby
andrewhl has joined #ruby
ringotwo has quit [Remote host closed the connection]
digitalcakestudi has joined #ruby
iamjarvo has joined #ruby
ringotwo has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
banisterfiend has joined #ruby
deadSnowman has joined #ruby
Aenigma has joined #ruby
<Aenigma> i want to create a hash with an array in it and the populate the array to show duplicate values which i handle later. to do this, i made the hash default value an array but it doesn't seem to be working
<Aenigma> demo code https://gist.github.com/3154427 can someone explain why?
darren has quit [Remote host closed the connection]
bluenemo has quit [Ping timeout: 246 seconds]
RichieEvan_ is now known as RichieEvan
maletor has joined #ruby
macmartine has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<bnagy> this gets a lot of people
<bnagy> Hash.new {|h,k| h[k]=[]}
td123 has joined #ruby
<bnagy> when you set a default value, you set a single object, in this case your anonymous Array
<bnagy> what you want is for all hash misses to get a new array, which the block form does for you
verto is now known as verto|off
<iamjarvo> i think there was an example of this in the ruby_koans
<Aenigma> bnagy: sorry, i'm retarded. does that make some sort of lambda that defines every new key value pair with an array whereas the default..doesn't but appears to?
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Aenigma> Why is it that the default thing work until you do an assignment
<bnagy> Aenigma: that's pretty close to right, yeah
<bnagy> the default 'works' but it doesn't do what you want
<banisterfiend> burgestrand: it looks like true/false are just lulzier in that they redirect attempts to open the singleton class to the actual class (TrueClass)
<Aenigma> i see. is there a more generic explanation for the syntax you used there?
<banisterfiend> burgestrand: so true.class == true.singleton_class
<bnagy> Aenigma: http://www.ruby-doc.org/core-1.9.3/Hash.html I guess, under new
<bnagy> it seems wasteful to have the full file contents as your key, btw, but that's another story
weeb1e_ has joined #ruby
weeb1e has quit [Ping timeout: 245 seconds]
<Aenigma> bnagy: should i be using an md5sum or something? because that's what i initially did but i figured that ruby's hash probably did a good enough job as it is
<bnagy> I'd probably use Digest::MD5.hexdigest, yeah
<banisterfiend> bnagy: what does bnagy mean
<banisterfiend> it's a weird nick
<bnagy> my name is Ben Nagy, does that help?
<banisterfiend> bnagy: Ben!
passbe has quit [Ping timeout: 245 seconds]
<banisterfiend> haha, last time i knew a ben i was 11 years old, ben is a cute name for a little boy
<bnagy> thanks :)
bluenemo has joined #ruby
<bnagy> once I pass 60 I might go by benjamin
<banisterfiend> ben's are pretty rare names in new zealand
nari has joined #ruby
ozzloy has quit [Remote host closed the connection]
ozzloy_ has joined #ruby
<banisterfiend> u should ask ppl to call u 'jamin instead
<bnagy> I.. will definitely consider that
<iamjarvo> bnagy this explains the default value of the hash stuff right http://stackoverflow.com/questions/9343680/how-does-shovel-operator-work-in-ruby-hashes
bluenemo has quit [Remote host closed the connection]
tomb_ has joined #ruby
<bnagy> iamjarvo: ok? The docs seem to do a fine job, for me, but whatever works :)
tomb_ has quit [Client Quit]
<iamjarvo> haha true stack overflow is the best :)
<iamjarvo> what are you guys up to tonight?
<bnagy> stackoverflow makes me want to facestab people that tag their rails questions ruby
zodiac1111 has quit [Ping timeout: 248 seconds]
<bnagy> it's 1037 (am) in chiangmai and I'm consuming caffeine
<iamjarvo> ahh cool thailand
<Aenigma> bnagy: thanks by the way :)
<bnagy> np
whomp has quit [Quit: This computer has gone to sleep]
banisterfiend has quit [Remote host closed the connection]
<iamjarvo> bnagy are you originally from thailand?
wpaulson has joined #ruby
banisterfiend has joined #ruby
<bnagy> no :)
<bnagy> there's about one decent thai hacker in the whole country :(
<iamjarvo> is it you lol
<bnagy> I am not thai
<bnagy> I'll let you work out the set theory on your own
<iamjarvo> ahh i missed the word thai in the first statement
yugui_zzz is now known as yugui
areil has joined #ruby
<iamjarvo> bnagy how long have you lived there
banisterfiend has quit [Ping timeout: 246 seconds]
<bnagy> we were in bangkok for 3 years or so, now we base here but mostly live elsewhere
deryl has quit [Quit: deryl]
<iamjarvo> cool
Z_Mass has joined #ruby
fflush has quit [Ping timeout: 246 seconds]
<bnagy> almost never :)
GoGoGarrett has joined #ruby
<iamjarvo> when so say "base here" mean an office?
<bnagy> nah house
whomp has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
tomb_ has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
whomp_ has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
whomp has quit [Read error: Connection reset by peer]
<iamjarvo> whats the best/easiest way to watch a test folder for changes and to run the test
<iamjarvo> for just a plain ruby project
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
whomp_ has quit [Read error: Connection reset by peer]
yoklov has quit [Quit: bye!]
whomp has joined #ruby
freeayu has joined #ruby
<iamjarvo> i ended up going with watchr
<bnagy> I thought there were frameworks for exactly that
<bnagy> but I don't do tdd stuff, so I never take any real notice
whomp has quit [Ping timeout: 252 seconds]
jackhammer2022 has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
<iamjarvo> what you don't test like the tsa?
<iamjarvo> haha jk
twock has quit [Quit: Lost terminal]
urlysses has quit [Quit: urlysses]
Beoran__ has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
digitalcakestudi has quit [Quit: Leaving.]
mockra has joined #ruby
velikasha has joined #ruby
Beoran_ has quit [Ping timeout: 276 seconds]
kevinbond has quit [Quit: kevinbond]
TheHypnotist- has joined #ruby
TheHypnotist-- has quit [Read error: Connection reset by peer]
mockra has quit [Ping timeout: 248 seconds]
krz has joined #ruby
nwest has joined #ruby
darren has joined #ruby
kevinbond has joined #ruby
mikepack has joined #ruby
kevinbond has quit [Client Quit]
kylemcgill has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
andrewhl has joined #ruby
yugui is now known as yugui_zzz
lusory has quit [Ping timeout: 245 seconds]
KindOne has quit [Ping timeout: 250 seconds]
lusory has joined #ruby
darkc0met has quit [Ping timeout: 248 seconds]
benjammin891 has joined #ruby
charlies_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
zodiac1111 has joined #ruby
baphled has quit [Quit: Lost terminal]
baphled has joined #ruby
reuf has quit [Quit: Leaving]
velikasha has left #ruby [#ruby]
Paradox has quit [Ping timeout: 248 seconds]
Ionic` has joined #ruby
fbernier has joined #ruby
LtHummus has quit [Remote host closed the connection]
codeman has quit [Quit: Saindo]
Paradox has joined #ruby
choffstein has quit [Remote host closed the connection]
savage- has joined #ruby
<jumpingcloud> blazes816: i want to ssh from my workstation to a system thats keyed into all the other systems. Then i want to be able to have it ssh into those other systems and do whatever. check load for example.
maletor has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
<jumpingcloud> blazes816: or use iptables to block an ip, on all servers.
<jumpingcloud> I'm trying to make a "Control center" app that'll automate tasks for work.
IceWyvern has joined #ruby
Icoin has quit [Quit: Icoin]
noyb_ has joined #ruby
noyb_ has quit [Client Quit]
philips_ has quit [Excess Flood]
blazes816 has quit [Quit: Leaving]
passbe has joined #ruby
cana has joined #ruby
rippa has joined #ruby
IcyDragon has quit [Ping timeout: 248 seconds]
philips_ has joined #ruby
KindTwo has joined #ruby
cana is now known as cafna
ananthakumaran has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
cantonic_ has joined #ruby
luckman212 has quit [Remote host closed the connection]
cafna has quit [Client Quit]
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
darkc0met has joined #ruby
KindTwo has quit [Changing host]
KindTwo has joined #ruby
KindTwo is now known as KindOne
whomp has joined #ruby
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dhruvasagar has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
tha_dok has left #ruby [#ruby]
EstanislaoStan has joined #ruby
yugui_zzz is now known as yugui
Ontolog has joined #ruby
benjammin891 has quit [Quit: Leaving]
nwest has quit [Quit: Computer has gone to sleep.]
savage- has quit [Remote host closed the connection]
<EstanislaoStan> So I have a method defined inside of my Dungeon class. And then a class Room defined inside of that class, which I'm trying to use the first method in its initialize method, but it says it's undefined. I thought methods were by default an object of the object class, and that all classes could access those. Sorry if this is confusingly stated.
dhruvasagar has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<iamjarvo> EstanislaoStan are you reading the Beginning Ruby book?
<drupin> my error log https://gist.github.com/3154650
<drupin> i am not able to install curb
headius has quit [Quit: headius]
<rking> drupin: Well, let's see that mkmf.log
<rking> drupin: No wait. It's libcurl. You are missing it.
baphled has quit [Ping timeout: 248 seconds]
<drupin> yes libcurl
<rking> Some day I should find a Windows box and try installing stuff using a non-Cygwin toolchain. Just for the sheer, dogfaced pain of it.
<drupin> ya man lot of pain
<rking> drupin: Yeah. Like, get it and install it and stuff.
<drupin> yup need a auto installer stuff
<drupin> this is killing me from 3 days
<rking> drupin: Using Cygwin is maybe 1/5234th the pain of not using it. Just grab it, install Ruby through it, apparently also libcurl, and you'll almost surely get "gem install curb" in one shot.
<drupin> my projects is far away deviated
<rking> drupin: Then just get Cygwin. No joke.
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<drupin> how much space cygwin takes any idea
iamjarvo has joined #ruby
<drupin> let me ask them
<rking> Probably less than $0.01 of disk space, so I don't count it past that level.
<Hanmac> rking & drupin: i tell'd him to look at this: http://beginrescue.blogspot.de/2010/07/installing-curb-with-ruby-191-in.html
<drupin> no m running low in space
<drupin> Hanmac: see https://gist.github.com/3154650 thats what is told in it and i did
<rking> drupin: What are you running on? A wristwatch?
<drupin> windows XP
<rking> Hanmac: Looks like you nailed it.
Markvilla has joined #ruby
<drupin> its the ZNC
<rking> drupin: That link of Hanmac's talks about libcurl installation.
kevinbond has joined #ruby
<drupin> yes
ananthakumaran has joined #ruby
<rking> drupin: I mean, I haven't heard of anyone running out of disk space for any reason in maybe 10 years.
<Hanmac> rking i think he did it, but the lib is still not found
fbernier has quit [Ping timeout: 255 seconds]
<rking> drupin: Did you put it in your path like the thing says?
<drupin> yes its missing
<Hanmac> drupin: try this: --with-curl-lib=C:\curl-7.25.0-devel-mingw32\lib
<rking> Or that.
<drupin> yes i added path
Erdon has joined #ruby
whomp has quit [Quit: Leaving]
<rking> drupin: In your gist you put "bin" where it wants "lib"
<rking> (i.e., Hanmac is again steering you right)
TheHypnotist- has quit [Read error: Connection reset by peer]
TheHypnotist-- has joined #ruby
kevinbond has quit [Client Quit]
<Hanmac> rking, but the error is in the blog too :'P
<drupin> i tried #curl but no one there
<rking> Hanmac: Oh, but you're right once again.
<drupin> ok let me see
<drupin> i added lib
<EstanislaoStan> So I have a method defined inside of my Dungeon class. And then a class Room defined inside of that class, which I'm trying to use the first method in its initialize method, but it says it's undefined. I thought methods were by default an object of the object class, and that all classes could access those. Sorry if this is confusingly stated.
<Hanmac> EstanislaoStan can you make me a pastie or gist of that?
<rking> drupin: Did you "add" it or did you replace "bin" with "lib" on that argument?
<drupin> replaced
kvirani has joined #ruby
kvirani has quit [Remote host closed the connection]
Bosma has quit [Ping timeout: 252 seconds]
uris has quit [Quit: leaving]
Ontolog has quit [Quit: Ontolog]
<drupin> added both bin and lib .. but only lib shows in path on command prompt
Banistergalaxy has joined #ruby
tomb_ has joined #ruby
mikepack has quit [Remote host closed the connection]
<rking> drupin: Wait.
ananthakumaran has quit [Quit: Leaving.]
<drupin> ok thanks m here
<rking> drupin: You want the bin in your path. Then you want the lib in the arg like Hanmac said. --with-curl-lib=C:\curl-7.25.0-devel-mingw32\lib
freeayu has quit [Quit: 离开]
<drupin> ok
<drupin> let me do that
<rking> drupin: If it fails run the "path" command, then gist the output of both the failed "gem install curb…" and also the path.
<drupin> ok a min
khakimov has joined #ruby
Chryson has quit [Quit: Leaving]
luckyruby has joined #ruby
<drupin> rking: https://gist.github.com/3154735 the path is below ======= line
<rking> drupin: If you do Windows+R then paste C:\curl-7.25.0-devel-mingw32\lib and hit Enter, does it correctly pop up to an actual dir?
<EstanislaoStan> Hanmac: http://pastie.org/4293792
<rking> drupin: The version numbers are not matched. Either your path is right and your --foo-flags are wrong, or vice-versa.
<drupin> yes it goes to the lib dir rking
<rking> drupin: Figure out what your actual libcurl directory is, then use that in both places.
<rking> drupin: OK, then you need to fix your path.
<drupin> ok
<drupin> let me remove bin path and add again
<Banistergalaxy> rkling
<Banistergalaxy> Rking whats up
<rking> drupin: Oh wait. I think maybe it's doing that foozenblazz that DOS filenames do with the squigulation.
<rking> Banistergalaxy: Not so much. Relaxing on this fine Sabbath evening.
<drupin> rking: i didnt get that.... :P
<drupin> i also got the curl git repo
<drupin> but dont know how to install it
<drupin> make
<drupin> and configure dont work
<Banistergalaxy> Rking sabbath is sunday I thought?
<rking> Banistergalaxy: That's a debated thing. Most Christians use "The Lord's day", which is the day of resurrection, as a fairly arbitrary moving of the day. As far as I know the traditional day is correct though.
<rking> drupin: OK, well, that's a big issue right there.
<Hanmac> EstanislaoStan, the stuff you put in Dungeon need to put into Room ... and the @things = {} outside of a method is not what you want
<rking> drupin: The article links to a .zip that doesn't involve any compilation, as far as I know.
<drupin> ok
<drupin> ok
<drupin> let me read som microsoft insights on... http://curl.haxx.se/docs/install.html
<drupin> win 32
IceWyvern has quit [Quit: ~ヾ(^∇^)]
<drupin> i think i should use my linux shell
<rking> drupin: You've really only got 2 obstacles in front of you: 1) installing that .zip that Hanmac's link links to. 2) Telling the installation to use that .zip's contents.
<drupin> right
brianpWins has joined #ruby
<drupin> extconf.rb whts with this file....
<drupin> bperry: ok let me see
<Banistergalaxy> Rking Golden in the mercy of his means, And green and golden I was huntsman and herdsman, the calves Sang to my horn, the foxes on the hills barked clear and cold, And the sabbath rang slowly In the pebbles of the holy streams.
<EstanislaoStan> Hanmac: Yeah, I just screwed that up in the pastie, I have the @things in a method in my actual program. But what if I want to use generate_true_name outside of the room class? I need to.
<rking> drupin: extconf.rb is a Makefile-maker thing. You shouldn't have to worry about its mechanism, just giving it the right command-line flags.
<Hanmac> http://curl.haxx.se/download.html << drupin there are newer packages ... you need the mingw
<Hanmac> EstanislaStan: then put the generate_true_name method into a module, and include it to Room
<drupin> i loaded it Hanmac but could not run it...
<Hanmac> what do you mean you could not "run" it?
<Banistergalaxy> Hanmac guten morgen
<drupin> after getting those files next...
<rking> Banistergalaxy: So, I interpret that basically two ways: one is a single individual reflecting back on some period of time where he lived closer to nature (unlike us virtualized robottish types), and two being mankind as a whole. Anything else?
<Banistergalaxy> Rking do you know the poem?
<Banistergalaxy> Fern hill
<Hanmac> http://www.paehl.com/open_source/?CURL_7.26.0 << there are maybe also the right package ...
<rking> Banistergalaxy: No, I searched for it.
<Banistergalaxy> Rking yes it's about child hood and grace and fall from grace
Ontolog has joined #ruby
ananthakumaran has joined #ruby
<rking> drupin: And, not to confuse you more, but I think the --with-curl-lib + --with-curl-bin + --with-curl-include is all overkill. Just do --with-curl-dir=C:\whateverthecurlpathis-_._._\
mucker has joined #ruby
<drupin> ok
drno__ has joined #ruby
<drno__> Hey.
<rking> drupin: And, I notice something odd in the output. It looks like it's slurfing your backslashes away.
<Hanmac> rking thats why i like linux more then windows ... on linux apt-get install lib*whatiwant*-dev and everything is working :P
<rking> drno__: See if you can do --with-curl-dir=C:/whateverthepathis/
<rking> drno__: Sorry. Tab-completion laziness on my part.
<drupin> a min
<drno__> Perhaps the wrong place, but... anyone else notice that aptana's content assist doesn't have all possible options? for instnace... creating a string, that string object doesn't show "downcase" within aptana.
<rking> drupin: I think those forward slashes are going to be more what you want. It's possible that they're getting slurfed only in the output, but I don't know for sure.
<drno__> rking: heh, no worries
<Hanmac> drupin ..... oO i found your problem ... oO you need \\ instat of \
wallerdev has left #ruby [#ruby]
<rking> Hanmac: oO I bet / would work, too. oO
<drupin> ok let me try \\
<Hanmac> rking yeah / should work too
<rking> drupin: But did you get the .zip or are you still working with your janky noncompiled cloned repo?
<drupin> let me get new one..
<drupin> a min
<rking> drupin: Yes. Get a solid .zip. Just do the non-ssl version to keep everything simple for now.
bradhe has joined #ruby
<drupin> ok
banisterfiend has joined #ruby
Morkel has joined #ruby
<EstanislaoStan> Hanmac: The only problem with using a module is that @things is defined in a Dungeon object, an object with an arbitray name from inside a module or class method.
<rking> drupin: I'm about to have to go in ~10 min, so keep feeding me progress reports, please.
<drupin> ok
<EstanislaoStan> Er, I don't know how to access an object with an...
eddified has joined #ruby
<rking> EstanislaoStan: With an what?
<eddified> Hello, Is there a newb channel for ruby?
drno__ has left #ruby [#ruby]
Banistergalaxy has quit [Ping timeout: 259 seconds]
<Hanmac> EstanislaoStan ignore the @things in Dungeon, just set it in the classes you want (Room)
<drupin> the mingw is 64 there and m on 32 rking
<rking> drupin: OK that'll definitely not work.
<eddified> what does a double letter mean? in this context: http://www.ruby-doc.org/core-1.9.3/String.html#method-i-include-3F - where it says "hello".include? hh
<Hanmac> drupin there are 32 bit versions http://www.paehl.com/open_source/?CURL_7.26.0
<rking> drupin: That curl_726_0.zip only offers 64bit?
<drupin> Hanmac: rking guys thanks so much... really working hard for me ... silly issue..
<Hanmac> eddified i think its an error
AlbireoX_ is now known as AlbireoX`Away
AlbireoX has quit [Remote host closed the connection]
<rking> drupin: This stuff used to be my most hated part about programming. Now I just glarrh through it, and after a while the glarrhing is not so bad anymore.
<eddified> @Hanmac: the next method also does it: http://www.ruby-doc.org/core-1.9.3/String.html#method-i-index
<EstanislaoStan> Hanmac: Yeah, I suppose it should be a variable associated with the Room class anyways, not with the Dungeon class. Thanks.
<eddified> with "ee"
<drupin> eee
<drupin> Download WITHOUT SSL
td123 has quit [Quit: WeeChat 0.3.8]
Fretta has quit [Quit: Fretta]
<drupin> rking Hanmac i will work around and feedback later..
Draco___ has joined #ruby
<rking> drupin: Cool man. Never give up!
<drupin> lot of stuff u gave me
<drupin> ya never..
wvms has quit [Quit: wvms]
<drupin> thankeee
<drupin> bbl
Draco_ has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 245 seconds]
Z_Mass has quit [Quit: Leaving]
TheHypnotist- has joined #ruby
x0F has quit [Read error: Connection reset by peer]
tdubz has joined #ruby
thomas has quit [Quit: leaving]
tdubz is now known as Guest63756
Norrin has quit [Quit: ZNC - http://znc.in]
x0F has joined #ruby
TheHypnotist-- has quit [Ping timeout: 252 seconds]
tightwork has quit [Ping timeout: 240 seconds]
cableray has quit [Quit: cableray]
philips_ has quit [Ping timeout: 240 seconds]
Guest63756 is now known as thomas
banisterfiend has joined #ruby
philips_ has joined #ruby
zodiac1111 has quit [Ping timeout: 248 seconds]
manizzle_ has joined #ruby
k_89 has quit [Ping timeout: 264 seconds]
friskd has joined #ruby
alekst has joined #ruby
tightwork has joined #ruby
timonv has joined #ruby
krz has quit [Quit: krz]
akemrir has joined #ruby
<akemrir> hello, I have problem with one ruby script. It runs in terminal window, but if I try to launch it with system launcher it doesnt run. How can I debug this ? https://gist.github.com/6b275a493af69ad3876b
<akemrir> logger doesnt log any message when I try to launch with system launcher.
Ionic` has quit [Ping timeout: 264 seconds]
Norrin has joined #ruby
Norrin has quit [Client Quit]
Norrin has joined #ruby
Norrin has quit [Remote host closed the connection]
headius has joined #ruby
und3f has joined #ruby
Norrin has joined #ruby
charlies_ is now known as charliesome
Norrin has quit [Changing host]
Norrin has joined #ruby
EstanislaoStan has quit []
alekst has quit [Quit: Leaving...]
<RubyPanther> akemrir: if the logger doesn't show anything, how do you know it doesn't run? and wtf is a "system launcher?"
<banisterfiend> RubyPanther: long time no see
<akemrir> Im running xfce. Xfce alt+f2 launcher or kupfer.
<akemrir> RubyPanther: I doesn see this process in htop.
andrewhl has quit [Remote host closed the connection]
<RubyPanther> akemrir: you should add sanity checks for example after starting the logger
jarjar_prime has joined #ruby
zodiac1111 has joined #ruby
<RubyPanther> akemrir: also make sure that the launcher doesn't have a limited $PATH that is messing up the /usr/bin/env ruby
<akemrir> RubyPanther: maybe I should point to system ruby directly
<RubyPanther> I don't use xfce but some launchers expect absolute paths for scripts as a security feature
<akemrir> RubyPanther: I tried that. To write absolute path to script and launch it.
<akemrir> RubyPanther: even when I disable logger completly, script doesnt run.
<RubyPanther> akemrir: you could put a touch call to a file in /tmp at the start to see if it is actually starting
<akemrir> RubyPanther: It doesnt run at all
<RubyPanther> akemrir: execute bit set correctly?
<akemrir> RubyPanther: %x( "touch" "/tmp/np" ) and in launcher /home/akemrir/bin/np
<akemrir> RubyPanther: when I run this script in terminal, it creates np file in /tmp
<akemrir> RubyPanther: I`ll create another script just for test.
khakimov has quit [Quit: Computer has gone to sleep.]
k_89 has joined #ruby
<akemrir> RubyPanther: It launches, creates files and log things. I suppose my mpd library from network is the reason of problems.
artOfWar_ has quit [Ping timeout: 248 seconds]
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<RubyPanther> oh good
<akemrir> RubyPanther: yes, it was this require from top of file... when I commented it out it runs top part of script with logging and touch properly.
quest88 has quit [Quit: quest88]
<akemrir> RubyPanther: I must remember to write own libraries. Thanks for help
friskd has quit [Quit: friskd]
Draco_ has joined #ruby
phipes has joined #ruby
Draco___ has quit [Ping timeout: 245 seconds]
nilg has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
davidpk has joined #ruby
perryh is now known as perryh_away
banisterfiend has quit [Remote host closed the connection]
linux_probe has joined #ruby
Banistergalaxy has joined #ruby
Ontolog has quit [Quit: Ontolog]
nadirvardar has joined #ruby
akemrir has quit [Quit: WeeChat 0.3.8]
nzfish has joined #ruby
stillnzfish has joined #ruby
jeekl has quit [Ping timeout: 245 seconds]
stillnzfish has quit [Quit: last word.]
tiripamwe has joined #ruby
zodiac1111 has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
jarr0dsz has joined #ruby
td123 has joined #ruby
yugui is now known as yugui_zzz
td123 has quit [Client Quit]
phipes has left #ruby [#ruby]
yugui_zzz is now known as yugui
mucker has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Quit: stephenjudkins]
_bart has joined #ruby
mucker has joined #ruby
tak has joined #ruby
yugui is now known as yugui_zzz
tak has left #ruby [#ruby]
mneorr has joined #ruby
apok has joined #ruby
clocKwize_ has quit [Ping timeout: 260 seconds]
jarjar_prime has quit [Quit: Sleep time.]
workmad3 has joined #ruby
mjb2k has quit [Quit: Leaving.]
adamkittelson has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
swistak35 has quit [Quit: ZNC - http://znc.in]
workmad3 has quit [Ping timeout: 264 seconds]
swistak35 has joined #ruby
_bart has left #ruby [#ruby]
Morkel has quit [Quit: Morkel]
khakimov has joined #ruby
etehtsea has joined #ruby
nopolitica has joined #ruby
mahmoudimus has joined #ruby
swistak35 has quit [Client Quit]
WirIrrenUmher has joined #ruby
WirIrrenUmher has quit [Client Quit]
mascool has joined #ruby
swistak35 has joined #ruby
<swistak35> join #rubyonrails.pl
<swistak35> sorry : F
Draco_ has quit [Ping timeout: 248 seconds]
minijupe has joined #ruby
minijupe has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 245 seconds]
malcolmva has quit [Ping timeout: 264 seconds]
jgrevich has quit [Quit: jgrevich]
drupin is now known as zz_drupin
nopolitica has quit [Quit: Leaving.]
iamjarvo has quit [Ping timeout: 255 seconds]
kevinfagan has quit [Remote host closed the connection]
_bart has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
hoelzro|away is now known as hoelzro
WirIrrenUmher has joined #ruby
<_bart> Hi, I decided that this saturday and sunday I'm going for a quest to understand and make a ruby example for Storm http://storm-project.net I looked on github and I found that it's quite unpopular, why?
<shevy> what is storm
<shevy> and why does it have such a strange name
blacktulip has joined #ruby
<shevy> on github the most popular things tend to be javascript thingies :-)
<shevy> then large ones... like machomebrew
fridim_ has joined #ruby
luckyruby has quit [Remote host closed the connection]
the-newsman has joined #ruby
<the-newsman> hi all
<the-newsman> i got problem for command load
<the-newsman> >> load simple_module.rb
<the-newsman> NameError: undefined local variable or method `simple_module' for main:Object
<the-newsman> from (irb):1
<the-newsman> from C:/Ruby193/bin/irb:12:in `<main>'
<shevy> include StdSystem
<the-newsman> shevy
<shevy> how do I include this module only if it exists?
<the-newsman> plz help
<shevy> include StdSystem if defined? StdSystem
<shevy> ?
<shevy> the-newsman: this is not how you use load()
<_bart> shevy: from what I've read so far storm allows me to do many calculations/jobs at the same time using a cluster.
<shevy> it must come in 'quotes'
<shevy> the-newsman: you should work through "chris pine learn to program", it is online
<_bart> shevy: Twitter uses it for some heavy calculations.
<shevy> _bart: I see
minijupe has joined #ruby
<_bart> shevy: and I'd like to know wether it's possible to use it with resque, or maybe queue jobs with rails, I think so.
<shevy> clusters hmm... if I get lucky, I get to work part time with a cluster next month. and I am clueless about them still
<_bart> shevy: yes me too, but for the first time I'm now working with a huge app (that's parsing a lot of data) and storm seems cool
swistak35 has quit [Quit: ZNC - http://znc.in]
<_bart> shevy: and when I saw the presentation I felt like "Woah that sounds so great! But ehm.. how do I use this?"
swistak35 has joined #ruby
<shevy> hmmm
<shevy> yeah
minijupe has quit [Client Quit]
swistak35 has quit [Client Quit]
hsbt has joined #ruby
swistak35 has joined #ruby
LouisBeardsley has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<the-newsman> shevy,
<the-newsman> what should i do to load a module inside file ?
LouisBeardsley has quit [Client Quit]
LouisBeardsley has joined #ruby
LouisBeardsley has left #ruby [#ruby]
darren has quit [Remote host closed the connection]
pk1001100011 has joined #ruby
Erdon has quit [Ping timeout: 248 seconds]
Stalkr_ has joined #ruby
ringotwo has quit [Remote host closed the connection]
mneorr has quit [Quit: Leaving.]
<_bart> shevy: very cool, I'm going to make a storm example in ruby and I'll contribute it to github, sounds like a good project for today
<_bart> an implementation in python has already been made, so how hard could it be :)
<shevy> the-newsman: pls
<shevy> the-newsman: you are not making a lot of sense. if your file name is foo.rb
<shevy> do: load 'foo.rb'
<shevy> then include the name of that module
<shevy> usually the convention is to use:
<shevy> include Foo
Skola has joined #ruby
<shevy> upcased foo, you see? upcased "name of file.rb" <--- name of file
<Skola> where do I learn ruby in a weekend?
<shevy> you need to read at least one tutorial the-newsman. ;)
<shevy> Skola: chris pine learn to progragram http://pine.fm/LearnToProgram/?Chapter=00 start here now
<Skola> alright, will come back after :}
WirIrrenUmher has quit [Ping timeout: 246 seconds]
mascool has quit [Ping timeout: 244 seconds]
apok has quit [Quit: apok]
bradhe has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 252 seconds]
ivan42 has joined #ruby
wpaulson has joined #ruby
disquared has joined #ruby
Ethan has joined #ruby
disquared has quit [Client Quit]
k_89 has quit [Ping timeout: 260 seconds]
cantonic has quit [Quit: cantonic]
Banistergalaxy has joined #ruby
jeekl has joined #ruby
Cache_Money has joined #ruby
hoelzro is now known as hoelzro|away
punkrawkR has joined #ruby
joast has quit [Ping timeout: 250 seconds]
WirIrrenUmher has joined #ruby
Luceo has quit [Quit: WeeChat 0.3.6]
Stalkr_ has quit [Quit: Leaving...]
banisterfiend has joined #ruby
Spooner has joined #ruby
moeSeth has joined #ruby
WirIrrenUmher has quit [Quit: Leaving.]
<shevy> is alias or alias_method faster?
<shevy> or one better than the other?
<banisterfiend> shevy: not telling
malcolmva has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
k_89 has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
justsee is now known as justsee|away
fridim_ has quit [Ping timeout: 246 seconds]
chichou has joined #ruby
justsee|away is now known as justsee
Cache_Money has quit [Ping timeout: 260 seconds]
<shevy> someone knows
WirIrrenUmher has joined #ruby
mfridh has joined #ruby
<_bart> why does the ruby community uses some_variable_name instead of someVariableName?
<banisterfiend> _bart: more readable
fridim_ has joined #ruby
clocKwize has joined #ruby
und3f has quit [Quit: Leaving.]
pk1001100011 has quit [Ping timeout: 252 seconds]
zodiac1111 has joined #ruby
liluo has joined #ruby
pk1001100011 has joined #ruby
chichou has quit []
saschagehlich has joined #ruby
reuf has joined #ruby
chichou has joined #ruby
hmans has joined #ruby
chichou has quit [Client Quit]
chichou has joined #ruby
WirIrrenUmher has quit [Ping timeout: 245 seconds]
Foxandxss has joined #ruby
hmans has quit [Client Quit]
Morkel has joined #ruby
Markvilla has quit [Quit: Markvilla]
zastaph has joined #ruby
Markvilla has joined #ruby
hmans has joined #ruby
heftig has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
CaptainKnots has joined #ruby
yugui_zzz is now known as yugui
hmans has quit [Client Quit]
tiripamwe has quit [Ping timeout: 255 seconds]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
chichou has quit []
chichou has joined #ruby
Gavilan has quit [Ping timeout: 264 seconds]
habib has joined #ruby
justsee has quit [Quit: Leaving...]
yugui is now known as yugui_zzz
nari has quit [Ping timeout: 255 seconds]
thatRD has quit [Ping timeout: 265 seconds]
thatRD has joined #ruby
werdnativ has quit [Quit: werdnativ]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Ontolog has joined #ruby
lxsameer has quit [Max SendQ exceeded]
justsee has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
mdsk has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
ivan42 has left #ruby [#ruby]
strnx has quit [Excess Flood]
jumpingcloud has quit [Ping timeout: 260 seconds]
beakerman has joined #ruby
Stalkr_ has joined #ruby
chichou has quit [Changing host]
chichou has joined #ruby
<_bart> banisterfiend: ah okay thanks, makes sense
keppy has joined #ruby
`brendan has joined #ruby
<Spooner> shevy : alias_method is a regular method, which wraps the magic alias keyword. It is thus possible to intercept/wrap it as it is "normal" ruby, so you should probably use alias_method.
<Spooner> And if the alias[_method] speed really matters, you are probably using it for something you shouldn't ;)
niklasb has joined #ruby
Morkel has quit [Quit: Morkel]
TomJ has quit [Quit: TomJ]
reuf has left #ruby ["Leaving"]
Axsuul has quit [Ping timeout: 255 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
strnx has joined #ruby
arietis has joined #ruby
binaryplease has joined #ruby
<shevy> _bart it would conflict with constants
<shevy> ok Spooner
<shevy> actually I am using alias all the time, except for when I have to use alias_method, but I like alias more
<shevy> if I could drop alias_method entirely, I'd be happier :(
<_bart> okay, let's say I'm writing big RSS parser. It'd be good to asynchronously make all the requests to the RSS feeds, what system/structure do you suggest I use? (it has to be scalable, implemented in ruby and easy)
verto|off is now known as verto
<shevy> sounds not easy
<_bart> resqueue is a bit heavy because it's loading the entire rails environment obviously
<shevy> my basic usage of synchronous things is Thread.new {}, everything more than that is hard :)
<Spooner> _bart : Threads to read the feeds and a Queue to pass that back to Ruby to do the processing?
<_bart> Aw okay, I noticed a lot of pretty big companies are doing interesting stuff with clusters and ruby, but I don't see exactly how.
Hanmac has joined #ruby
<Spooner> *back to Ruby => back to the main Ruby thread.
<_bart> that queue could well be a database
AlbireoX`Away is now known as AlbireoX_
AlbireoX_ is now known as AlbireoX
<Spooner> I meant just eh Queue class you get from require 'thread'
<Spooner> But yeah, could be a db.
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<_bart> ah okay
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<keppy> _bart: user sidekiq &/| celluloid if interested in actors
davidpk has quit [Quit: Computer has gone to sleep.]
beakerman has quit [Remote host closed the connection]
<keppy> _bart: Also looking into 0mq is a good idea depending on what the endpoint is
lxsameer has quit [Quit: Leaving]
pdelgallego has joined #ruby
schaerli has joined #ruby
mneorr has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
polysics has joined #ruby
mdsk has left #ruby [#ruby]
bier has quit [Remote host closed the connection]
bier has joined #ruby
schaerli has quit [Remote host closed the connection]
baphled has joined #ruby
chichou has quit [Remote host closed the connection]
deryl has joined #ruby
ZachBeta has joined #ruby
zaydana has joined #ruby
keppy has quit [Quit: Leaving]
<_bart> keppy: ah looks cool, I fear my class is not thread-safe though!
<_bart> keppy: I noticed the thread-safety rails cast is only for paid users :/
hmans has joined #ruby
mohits has quit [Ping timeout: 246 seconds]
<_bart> oh he just left..
pdelgallego has quit [Quit: pdelgallego]
oposomme has joined #ruby
hmans has quit [Client Quit]
Ontolog has quit [Quit: Ontolog]
thone has joined #ruby
punkrawkR has quit [Ping timeout: 252 seconds]
baphled has quit [Ping timeout: 255 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
punkrawkR has joined #ruby
Spooner has quit [Ping timeout: 248 seconds]
bglusman has joined #ruby
thone_ has quit [Ping timeout: 248 seconds]
mockillo has quit [Ping timeout: 252 seconds]
Spooner_ has joined #ruby
jonathanwallace has joined #ruby
emmanuelux has joined #ruby
oposomme is now known as oposomme|away
k_89 has quit [Ping timeout: 246 seconds]
Stalkr_ has quit [Quit: Leaving...]
blacktulip has quit [Remote host closed the connection]
sepp2k has joined #ruby
yugui_zzz is now known as yugui
yakko has quit [Remote host closed the connection]
beakerman has joined #ruby
hmans has joined #ruby
AlbireoX`Laptop has joined #ruby
hmans has quit [Client Quit]
velikasha has joined #ruby
bglusman has quit [Remote host closed the connection]
iamjarvo has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
seanstickle has joined #ruby
meskyanichi has quit [Quit: Linkinus - http://linkinus.com]
Sweet_P has quit [Quit: Sweet-P]
oposomme|away is now known as oposomme
cakehero has joined #ruby
velikasha has left #ruby [#ruby]
mobilegamelabs has joined #ruby
emmanuelux has quit [Ping timeout: 252 seconds]
joast has joined #ruby
piotr has joined #ruby
nopolitica has joined #ruby
nikeita has joined #ruby
nu7hatch has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
ixti has joined #ruby
gmci has joined #ruby
htroyack has joined #ruby
SyntaxNode has joined #ruby
SyntaxNode has quit [Changing host]
SyntaxNode has joined #ruby
<SyntaxNode> Hi, does anyone have experience with ActiveRecord?
schaerli has joined #ruby
<banisterfiend> SyntaxNode: ask on a rails chan
<SyntaxNode> That works, I guess, but I'm not using Rails.
<seanstickle> Doesn't matter
<rking> SyntaxNode: I'd repeat banisterfiend's advice, but s/ on a rails chan//
<rking> Just ask.
<rking> banisterfiend: Sorry about dropping out yesterday. Power outage of great sadness. \(
<deryl> just ask your question. rails channel will tell you to ask here because you're not using it in rails, this channel will tell you to ask in rails, because its a rails related gem. so, just ask the question
Gavilan has joined #ruby
<shevy> hehe
<shevy> you should ask in #rubyonrails
<shevy> :))))
<SyntaxNode> I'm there now.
<shevy> \o/
<SyntaxNode> I figure if I don't mention I'm not using rails, I won't end up in an infinite loop.
<shevy> I think most people who use activerecord also use rails
<SyntaxNode> They do.
<deryl> keyword is 'most' which isn't 'all'
mengu has joined #ruby
n9yty has joined #ruby
<shevy> ok ActiveRecord experts raise your hands!
<SyntaxNode> Clearly, not me.
<rking> But asking to ask, then discussing the asking of the asking, isn't getting very close to asking.
<SyntaxNode> :P
jarr0dsz has quit [Ping timeout: 248 seconds]
<deryl> rking: lol
<shevy> SyntaxNode: perhaps they are shy ... let's lure them with something
<rking> shevy: It's just Ruby code. Any one of us could figure it out starting from https://github.com/rails/rails/tree/master/activerecord/
<shevy> free donuts for ActiveRecord experts!
<shevy> rking: the URL has "rails"... rails scares me man
<shevy> they change ruby!
<shevy> hmm
<shevy> what was the question again?
zodiac1111 has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Remote host closed the connection]
<SyntaxNode> Lmao
zodiac1111 has joined #ruby
<rking> shevy: Sorry, I pasted the wrong link. This one's the one I meant: https://github.com/%72%61%69%6c%73/%72%61%69%6c%73/tree/master/activerecord/
<shevy> whoa
<shevy> 483 issues
<shevy> 6637 closed issues
jarr0dsz has joined #ruby
robdodson has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/angry-polygon #1 Download Mac Game! http://itunes.apple.com/app/angry-polygon-hd/id536799429?mt=12 http://youtu.be/Tu-mSpFmx7g http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
mobilegamelabs has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
jameshyde has joined #ruby
bier has quit [Read error: Operation timed out]
bluenemo has quit [Remote host closed the connection]
j| has quit [Ping timeout: 240 seconds]
schaerli_ has joined #ruby
schaerli_ has quit [Remote host closed the connection]
andrewhl has joined #ruby
fflush has joined #ruby
schaerli has quit [Ping timeout: 264 seconds]
<fflush> Salut
<fflush> Ca va
ixti has quit [Quit: So Long, and Thanks for All the Fish!]
otters has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
jrajav has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
bier has joined #ruby
iamjarvo has quit [Ping timeout: 255 seconds]
polysics has quit [Remote host closed the connection]
malcolmva has quit [Ping timeout: 246 seconds]
cpruitt has joined #ruby
Skola has quit [Quit: Skola]
friskd has joined #ruby
fflush has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
verto is now known as verto|off
verto|off is now known as verto
mrproper has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
<mrproper> Hello. I'm a completely beginner in Ruby but I was asked to develop a research platform with this language. I don't know where to start nor if is it possible to do what I need so I really need your help. Could you take a look? http://codetidy.com/3140/
luckman212 has joined #ruby
nikeita has quit [Quit: sleep]
TomJ has joined #ruby
jbw has joined #ruby
nikeita has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
mengu has quit [Remote host closed the connection]
DDAZZA has joined #ruby
<seanstickle> mrproper: so you want to write a web scraper?
Xethron has joined #ruby
<mrproper> seanstickle: not sure what a web scraper is
banghouseAFK is now known as banghouse
<seanstickle> Then you were the wrong person to be asked to develop a research platform
<seanstickle> Nothing personal
choffstein has joined #ruby
<mrproper> seanstickle: I think that my real problem is with english :P I searched fot the term. I know what you are talking about and yes, its similar. The data would be used to make predictions
habib has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
otters has joined #ruby
shevy has joined #ruby
friskd has quit [Quit: friskd]
bluOxigen has joined #ruby
akem has quit [Ping timeout: 248 seconds]
DDAZZA has quit [Quit: Leaving]
nopolitica has quit [Quit: Leaving.]
Draco_ has joined #ruby
<SyntaxNode> For routing in Sinatra, is there a way you can make it ignore if a route's argument isn't there? For instance, /blog/ will return what /blog/1 would return? This is for pagination.
beakerman has quit [Remote host closed the connection]
nopolitica has joined #ruby
<Mon_Ouie> Why not just make another get "/blog/" that will do the same as get "/blog/1" or redirect to that?
yugui is now known as yugui_zzz
mjb2k has joined #ruby
<SyntaxNode> /blog being the frontpage.
mjb2k has quit [Client Quit]
<SyntaxNode> /blog/1 being the first page behind that.
nari has joined #ruby
<seanstickle> SyntaxNode: /blog/?id?
<SyntaxNode> "?id?"
rippa has joined #ruby
fixl has quit [Read error: Connection reset by peer]
<SyntaxNode> Suddenly, no symbol.
<SyntaxNode> I feel lost and alone.
<seanstickle> /blog/?:id?
<SyntaxNode> Oh, right.
<SyntaxNode> I thank you.
Stalkr_ has joined #ruby
TheShadowFog has quit [Quit: Leaving]
mrproper has quit [Quit: Page closed]
nu7hatch has quit [Ping timeout: 246 seconds]
nu7hatch has joined #ruby
choffstein has quit [Ping timeout: 246 seconds]
hunglin has quit [Quit: Leaving.]
vitor-br has joined #ruby
mikepack has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
otters has joined #ruby
strife25 has joined #ruby
bglusman has joined #ruby
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
blazes816 has joined #ruby
verto is now known as verto|off
mahmoudimus has joined #ruby
bglusman has quit [Remote host closed the connection]
tomb_ has joined #ruby
blacktulip has joined #ruby
bglusman has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
tomb_ has quit [Client Quit]
akem has joined #ruby
bglusman has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
areil has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
Saman has joined #ruby
zodiac1111 has quit [Ping timeout: 246 seconds]
notVert has joined #ruby
qko has quit [Read error: Connection reset by peer]
qko has joined #ruby
TheHypnotist-- has joined #ruby
TheHypnotist- has quit [Read error: Connection reset by peer]
nikeita has quit [Quit: sleep]
choffstein has joined #ruby
Saman has left #ruby ["Leaving"]
Saman has joined #ruby
Saman has left #ruby ["Leaving"]
robdodson has quit [Quit: robdodson]
Z_Mass has joined #ruby
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/angry-polygon #1 Download Mac Game! http://itunes.apple.com/app/angry-polygon-hd/id536799429?mt=12 http://youtu.be/Tu-mSpFmx7g http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
strnx has quit [Excess Flood]
yoklov has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
nikeita has joined #ruby
linoj has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<the-newsman> shevy
<the-newsman> r u there ?
TheRealPygo is now known as pygospa
apok has joined #ruby
akem has quit [Ping timeout: 240 seconds]
Goles has quit [Ping timeout: 255 seconds]
Ontolog has joined #ruby
strnx has joined #ruby
patjoh_ has joined #ruby
SyntaxNode has quit []
arietis has quit [Quit: Computer has gone to sleep.]
pygospa has quit [Quit: leaving]
wvms has joined #ruby
pygospa has joined #ruby
arietis has joined #ruby
patjoh has quit [Ping timeout: 246 seconds]
patjoh_ is now known as patjoh
Guest45869 is now known as Jackneill
Jackneill has quit [Changing host]
Jackneill has joined #ruby
Draco_ has quit [Remote host closed the connection]
germann has joined #ruby
<germann> um can somebody remind me how in the scope of Kernel, I can say "have I defined this method" (so I can have like def func_foo....end, if is_function("func_#{whatever}") callit()
<germann> sort of poor man's reflection I guess
wallerdev has joined #ruby
Draco_ has joined #ruby
arietis has quit [Ping timeout: 248 seconds]
germann has left #ruby [#ruby]
fantazo has quit [Remote host closed the connection]
jdunham has quit [Quit: Konversation terminated!]
arietis has joined #ruby
brianpWins has quit [Quit: brianpWins]
nari has quit [Ping timeout: 248 seconds]
Ionic` has joined #ruby
Cidiomar has joined #ruby
robdodson has joined #ruby
codeman has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
dangerousdave has joined #ruby
Gab0 has joined #ruby
darren has joined #ruby
<Mon_Ouie> Module#method_defined?
ananthakumaran has joined #ruby
monkegjinni has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
ryanf has joined #ruby
cantonic has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
baphled has joined #ruby
n9yty has quit [Quit: n9yty]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
wallerdev has quit [Quit: wallerdev]
zemanel has joined #ruby
cantonic has quit [Client Quit]
hadees has quit [Quit: hadees]
Ontolog has quit [Read error: Connection reset by peer]
Ontolog_ has joined #ruby
bluenemo_ has joined #ruby
strife25 has quit [Quit: Computer has gone to sleep.]
Asher has quit [Quit: Leaving.]
bluenemo_ has quit [Remote host closed the connection]
mengu has joined #ruby
nikeita has quit [Quit: sleep]
mahmoudimus has joined #ruby
brianpWins has joined #ruby
baphled has quit [Ping timeout: 255 seconds]
cakehero has quit [Quit: Leaving...]
brianpWins has quit [Quit: brianpWins]
Cidiomar has quit [Quit: Tchau pra quem fica]
WirIrrenUmher has joined #ruby
ringotwo has joined #ruby
hadees has joined #ruby
kevinbond has joined #ruby
bglusman has joined #ruby
robdodson has quit [Quit: robdodson]
zaydana has quit [Quit: zaydana]
timonv has quit [Remote host closed the connection]
Z_Mass has quit [Ping timeout: 248 seconds]
ringotwo has quit [Remote host closed the connection]
Bosma has joined #ruby
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
brianpWins has joined #ruby
mengu has quit [Ping timeout: 260 seconds]
jarr0dsz has quit [Read error: Connection reset by peer]
jarr0dsz has joined #ruby
jarr0dsz has quit [Client Quit]
jarr0dsz has joined #ruby
bglusman has quit [Remote host closed the connection]
amacgregor_osx has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
codeman_ has joined #ruby
codeman has quit [Ping timeout: 260 seconds]
codeman_ has quit [Client Quit]
codeman has joined #ruby
mockra has joined #ruby
codeman has quit [Excess Flood]
codeman has joined #ruby
codeman has quit [Read error: Connection reset by peer]
mohits has joined #ruby
AlbireoX has quit [Quit: IRC crashed.]
friskd has joined #ruby
WirIrrenUmher has quit [Quit: Leaving.]
bglusman has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
Z_Mass has joined #ruby
jgrevich has joined #ruby
Ontolog_ has quit [Read error: Connection reset by peer]
Ontolog has joined #ruby
adamkittelson has joined #ruby
bglusman has quit [Remote host closed the connection]
quest88 has joined #ruby
darren has quit [Remote host closed the connection]
abra has quit [Ping timeout: 276 seconds]
adurity has joined #ruby
abra has joined #ruby
wagle has joined #ruby
tommyvyo has joined #ruby
Z_Mass has quit [Ping timeout: 255 seconds]
apok has quit [Quit: apok]
angelixd has left #ruby [#ruby]
dagnachewa has joined #ruby
codeman has joined #ruby
williamcotton has quit [Ping timeout: 248 seconds]
samrose has quit [Quit: Ex-Chat]
williamcotton has joined #ruby
Skola has joined #ruby
S2kx has quit [Read error: Connection timed out]
minzy1407 has joined #ruby
<minzy1407> Hi there
<minzy1407> I got a question. I'm learning ruby right now, I know some languages as javascript, java, c#, php etc. but I got a problem with something on ruby
<minzy1407> if I want to pass a method parameter by reference in order to change the value of the variable passed as a parameter How can I do that?
<X-Jester> pass it as a symbol?
<minzy1407> what u mean?
baphled has joined #ruby
<canton7> minzy1407, some data types pass by reference, some by value. there isn't a keyword to change this behaviour
syamajala has joined #ruby
n9yty has joined #ruby
n9yty has quit [Client Quit]
adurity has quit [Remote host closed the connection]
<minzy1407> basically I want to do something like this http://pastie.org/4296223
<canton7> that I'm aware of, you can't do that for numbers
<minzy1407> DD:
<minzy1407> theres no way?
codeman has quit [Ping timeout: 260 seconds]
codeman_ has joined #ruby
<minzy1407> what about a hash?
<canton7> that I'm aware of, no. just return the modified parameter
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<canton7> a hash displays the behaviour you expect, yeah
<canton7> actually, to clarify what I said earlier: everything in ruby is passed by value. some object types provide a method to mutate the original object, though, while some don't
mockra has quit [Ping timeout: 245 seconds]
<canton7> hashes, arrays, etc, are mutated by default, numbers can't be mutated. string assignment doesn't mutate, but things like <<, #replace, #gsub!, etc, do mutate
<minzy1407> let me try something
gmci has quit [Ping timeout: 240 seconds]
baphled has quit [Ping timeout: 245 seconds]
<minzy1407> ohhh
<minzy1407> I see
fridim_ has quit [Ping timeout: 246 seconds]
<minzy1407> thanks a lot
<minzy1407> it is not what I was expecting but either way
ryanf has quit [Ping timeout: 264 seconds]
codeman_ has quit [Ping timeout: 260 seconds]
<X-Jester> minzy1407: i know this defeats the purpose of what you are trying to do, but you can always just return a copy of the new object
mikepack has joined #ruby
gmci has joined #ruby
<the-newsman> X-Jester
zemanel has quit [Quit: Remote hottie closed the connection]
ananthakumaran has quit [Quit: Leaving.]
codeman_ has joined #ruby
<canton7> parallel assignment makes that approach very neat
codeman_ has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
minzy1407 has left #ruby [#ruby]
patjoh has quit [Quit: patjoh]
werdnativ has joined #ruby
jvshahid has quit [Quit: leaving]
kennyvb has joined #ruby
Cache_Money has joined #ruby
ilyam has joined #ruby
ilyam has quit [Client Quit]
bluOxigen has quit [Read error: Connection reset by peer]
lkba has joined #ruby
bluOxigen has joined #ruby
seanstickle has joined #ruby
patjoh has joined #ruby
hmans has joined #ruby
Speed has quit [Read error: No route to host]
Speeda has joined #ruby
Speeda has quit [Changing host]
Speeda has joined #ruby
k_89 has joined #ruby
mengu_ has quit [Ping timeout: 260 seconds]
Derander_ has quit [Quit: ZNC - http://znc.sourceforge.net]
kidoz has quit [Quit: Ухожу я от вас]
syamajala has quit [Read error: Connection reset by peer]
syamajala has joined #ruby
hmans has quit [Quit: Leaving...]
mohits has quit [Remote host closed the connection]
Derander has joined #ruby
ryanf has joined #ruby
Speeda has quit [Ping timeout: 252 seconds]
Speeda has joined #ruby
Speeda has quit [Changing host]
Speeda has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Ping timeout: 255 seconds]
Jackneill has quit [Quit: Jackneill]
Derander has quit [Ping timeout: 260 seconds]
Skola has quit [Quit: Skola]
Xethron has quit [Ping timeout: 246 seconds]
ryanf has joined #ruby
davidpk has joined #ruby
Skola has joined #ruby
havenn has joined #ruby
darren has joined #ruby
jarjar_prime has joined #ruby
kevinbond has quit [Quit: kevinbond]
kevinbond has joined #ruby
kevinbond has quit [Client Quit]
baphled has joined #ruby
sebicas has joined #ruby
binaryplease has quit [Ping timeout: 246 seconds]
mockra has joined #ruby
zemanel has joined #ruby
ryanf has quit [Quit: leaving]
Xethron has joined #ruby
adamkittelson has quit [Remote host closed the connection]
khakimov has joined #ruby
ThatDudeGuy_ has joined #ruby
nopolitica has left #ruby [#ruby]
mockra has quit [Remote host closed the connection]
baphled has quit [Ping timeout: 245 seconds]
zz_drupin is now known as drupin
Derander has joined #ruby
havenn has quit [Remote host closed the connection]
mockra has joined #ruby
Derander has quit [Excess Flood]
brianpWins has quit [Ping timeout: 240 seconds]
mockra has quit [Remote host closed the connection]
Derander has joined #ruby
snearch has joined #ruby
ThatDudeGuy_ has quit [Quit: Quit]
chichou has joined #ruby
maletor has joined #ruby
mockra has joined #ruby
Cache_Money has quit [Quit: Leaving]
shadoi has joined #ruby
headius has quit [Quit: headius]
uris has joined #ruby
mockra has quit [Remote host closed the connection]
<drupin> how i add ruby in cygwin
k_89 has quit [Ping timeout: 252 seconds]
<Xethron> Greetings friends!
<Xethron> drupin: Now thats a good question1
<Xethron> !
seanstickle has quit [Quit: Nihil sub sole novum]
<drupin> yes Xethron
kennyvb has quit [Read error: Connection reset by peer]
Vert has joined #ruby
<Xethron> would love to see the answer
<drupin> yep
kennyvb has joined #ruby
<Xethron> I'd guess you might find more help with the cygwin guys?
<drupin> ok
<Xethron> But stay and see... You'll never know
Foxandxss has quit [Ping timeout: 252 seconds]
Markvilla has quit [Quit: Markvilla]
notVert has quit [Ping timeout: 252 seconds]
Markvilla has joined #ruby
<Xethron> Ok, I have a fun question
<Xethron> I want ruby to load all the text files that match a sertain string... eg: /logs/20120721*.log
<Xethron> and then print the last 3 lines
Axsuul has joined #ruby
<Mon_Ouie> The last 3 lines of each file?
<Xethron> yes
mpereira has quit [Ping timeout: 248 seconds]
<Xethron> I know you can use tail... But I actually want to read the timestamps out of the files too and only print lines that are less than 20 mins old
Gab0 has quit [Remote host closed the connection]
<Xethron> so pretty much wanne wright something that does the same as "tail -n 3 /logs/20120721*.log"
<Xethron> but also checks for the time the last 3 lines where written
<jrajav> You could run tail conditionally based on the last modification date of the file
<jrajav> Though you can only check the most recent date; you might be printing a whole 2 outdated lines D:
<jrajav> We can't have that I guess
<Xethron> lol
<Xethron> yes, that would be a sin
karakedi has joined #ruby
<Xethron> well, that would help I guess..
k_89 has joined #ruby
mockra has joined #ruby
<Xethron> But optimally I would love a ruby script for it
<Mon_Ouie> I'd probably just seek from the end of the file until I have read at least new-line characters
<Mon_Ouie> And get the three liens from there
<Mon_Ouie> Or you could just use each_line with a circular buffer
Markvilla has quit [Quit: Markvilla]
<Xethron> I'm guessing I need to list the files in a dir, and then put them in an array, then do a loop with a regex statement, and then if the regex matches, load the file and go to the last 3 lines...
band-aid has joined #ruby
codeman has joined #ruby
GoGoGarrett has joined #ruby
<Xethron> Mon_Ouie: Circular buffer?
<Mon_Ouie> http://en.wikipedia.org/wiki/Circular_buffer — basically, like an array, but when it is full and you push an object, the first object gets removed
<chichou> to print last 3 lines in ruby you can use IO#seek with IO::SEEK_END and negative amount
<Mon_Ouie> But yeah, I think that ^ is actually more efficient, at least if your log is large enough for it to matter
Erdon has joined #ruby
<jrajav> Even if it's not large enough for it to matter, write it that way anyway
jarjar_prime has quit [Quit: Sleep time.]
sebicas has quit [Quit: sebicas]
<jrajav> Because one day you might use it someplace where it is large enough for it to matter, and you won't remember that it didn't handle large files that well
<jrajav> Don't optimize early, but DO scale early
k_89 has quit [Ping timeout: 240 seconds]
<blazes816> is optimization not a subset of scaling?
<Mon_Ouie> Does it even matter?
<blazes816> no
<jrajav> Writing inherently efficient code is not the same thing as optimizing
codeman_ has joined #ruby
<jrajav> Optimizing is deviating from best practices for performance gains
<blazes816> ah, there would be the issue. definitions.
<jrajav> Considering that what we're talking about is single words, yes, definitions is the issue :P
<Mon_Ouie> They'd be happier if they were married
Asher has joined #ruby
<blazes816> lol
<blazes816> of course
band-aid has left #ruby [#ruby]
<jrajav> That's a matter of opinion
<blazes816> I just don't consider deviation from best practices necessary to be an optimization.
<Xethron> wait... I'm not sure which one you reffered to is "Better". Circular buffer or IO::SEEK_END?
<Mon_Ouie> latter
<jrajav> In your case, SEEK_END
<Xethron> awesome
<Xethron> :P
<Xethron> You guys rock as always :P
<jrajav> A circular buffer would be if you wanted to process the entirety of a huge file
<Xethron> ah
codeman has quit [Ping timeout: 260 seconds]
<Mon_Ouie> Or if you wanted to get the last n elements of an arbitrary collection — you can do better with files because you can seek to the end, but if all you have is #each, there wouldn't be much else to do
<Xethron> Dir.glob("20120721*.log") <<<===
<Xethron> That will list all my files :D
<Xethron> woot
ePirat_ has joined #ruby
<Xethron> Mon_Ouie. ah. ok
syamajal_ has joined #ruby
patjoh has quit [Quit: patjoh]
<jrajav> Mon_Ouie: Well, you can do a lot better with a collection supporting random access
mockra has quit [Remote host closed the connection]
tomeo has joined #ruby
<tomeo> hi
* Xethron just listens...
<tomeo> Could someone please recommend a good book for a beginner?
<jrajav> Lord of the Rings
mockra has joined #ruby
<Xethron> Indeed
<Xethron> Not Twighlight... Thats BAD
<tomeo> a book on ruby :p
<Mon_Ouie> tomeo: Alternatively, Chris Pine's book about Ruby isn't a bad choice — also freely available on the Internet
<tomeo> Mon_Ouie: thanks
syamajala has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
Skola has quit [Quit: Skola]
<jrajav> I hear http://ruby.learncodethehardway.org/ is good too
<jrajav> I don't trust it a lot because the C "hard way" is pretty terrible
<jrajav> But they're all different authors
<jrajav> And I think the Ruby one is the original
sebicas has joined #ruby
k_89 has joined #ruby
<Mon_Ouie> I think they wrote the Python one before that
jarred has quit [Quit: jarred]
selenita has joined #ruby
Derander has quit [Ping timeout: 252 seconds]
selenita has left #ruby [#ruby]
Derander has joined #ruby
hunglin has joined #ruby
emmanuelux has joined #ruby
minijupe has joined #ruby
minijupe has quit [Client Quit]
Skola has joined #ruby
mengu has joined #ruby
abra has quit [Ping timeout: 276 seconds]
Stalkr_ has quit [Quit: Linkinus - http://linkinus.com]
abra has joined #ruby
Norrin has quit [Quit: ""]
ePirat_ has quit [Remote host closed the connection]
adurity has joined #ruby
heftig has quit [Quit: leaving]
amacgregor_osx has joined #ruby
heftig has joined #ruby
jarjar_prime has joined #ruby
Adran is now known as Ttech
ringotwo has joined #ruby
Ttech is now known as Adran
minijupe has joined #ruby
Skola has quit [Quit: Skola]
thomas is now known as rodrigo
snearch has quit [Quit: Verlassend]
rodrigo is now known as tdubz
kevinbond has joined #ruby
reuf has joined #ruby
Gavilan has left #ruby [#ruby]
jameshyde has quit [Ping timeout: 260 seconds]
codeman_ has quit [Quit: Saindo]
tdubz is now known as thomas
Hanmac has quit [Ping timeout: 248 seconds]
mockra has quit [Remote host closed the connection]
wagle has quit [Remote host closed the connection]
imami|afk is now known as banseljaj
blazes816 has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
Draco_ has quit [Remote host closed the connection]
bglusman has joined #ruby
etehtsea has quit [Ping timeout: 248 seconds]
jameshyde has joined #ruby
Draco_ has joined #ruby
headius has joined #ruby
patjoh has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
adamkittelson has joined #ruby
jarred has joined #ruby
Draco_ has quit [Ping timeout: 260 seconds]
Draco_ has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
Norrin has joined #ruby
jgrevich has quit [Quit: jgrevich]
Draco___ has joined #ruby
eddified has left #ruby [#ruby]
dagnachewa has quit [Remote host closed the connection]
punkrawkR has quit [Read error: Connection reset by peer]
Draco_ has quit [Ping timeout: 260 seconds]
jameshyde has quit [Remote host closed the connection]
Norrin has quit [Changing host]
Norrin has joined #ruby
Ontolog has quit [Quit: Ontolog]
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
jeff_sebring has joined #ruby
kevinbond has quit [Quit: kevinbond]
Tomasso has joined #ruby
Speeda is now known as Speed
GoGoGarrett has quit [Read error: Connection reset by peer]
kevinbond has joined #ruby
GoGoGarrett has joined #ruby
syamajal_ has quit [Remote host closed the connection]
jeff_sebring has quit [Client Quit]
Hanmac has joined #ruby
kevinbond has quit [Client Quit]
jeff_sebring has joined #ruby
kirun has joined #ruby
brianpWins has joined #ruby
ringotwo has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
bglusman has quit [Ping timeout: 248 seconds]
Gab0 has joined #ruby
minijupe has quit [Quit: minijupe]
WirIrrenUmher has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
baphled has joined #ruby
Markvilla has joined #ruby
beakerman has joined #ruby
kevinbond has joined #ruby
andrewhl has quit [Remote host closed the connection]
Tomasso has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
wallerdev has joined #ruby
jumpingcloud has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
beakerman has quit [Remote host closed the connection]
ramblex has joined #ruby
subbyyy has joined #ruby
adeponte has joined #ruby
sdwrage has joined #ruby
patjoh has quit [Ping timeout: 248 seconds]
thomas is now known as rubberducky
`brendan has joined #ruby
mockra has joined #ruby
drupin is now known as zz_drupin
headius has quit [Quit: headius]
rippa has quit [Ping timeout: 248 seconds]
iamjarvo has quit [Quit: Computer has gone to sleep.]
patjoh has joined #ruby
mpereira has joined #ruby
IrishGringo has joined #ruby
mockra has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
WirIrrenUmher has quit [Ping timeout: 255 seconds]
<shevy> dumdedum
<shevy> lol jrajav
<jrajav> ?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<shevy> when you answered "Lord of the Rings"
<jrajav> :P
Markvilla has quit [Quit: Markvilla]
iamjarvo has joined #ruby
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
mahmoudimus has joined #ruby
igotnolegs has joined #ruby
khakimov has joined #ruby
jblack has quit [Ping timeout: 248 seconds]
jeff_sebring has quit [Quit: Leaving]
deryl has joined #ruby
yakko has joined #ruby
abdulkarim has joined #ruby
<tuxillo> hi
coyo has quit [Quit: Heaven is not a place, it's being with people who love you.]
<abdulkarim> Can someone explain this with an example? "Two strings might hold the same content and yet be completely distinct objects" -The Ruby Programming Language (Page 71)
<Mon_Ouie> Try to run a = "foo"; b = "foo"
<Mon_Ouie> You can see they're not the same object by checking a.equal? b (which will be false). That means if you try to modify one of them (e.g. a << "bar"), the other one won't be affected
maletor has quit [Quit: Computer has gone to sleep.]
mrz7892 has joined #ruby
adamkittelson has quit [Ping timeout: 264 seconds]
<mrz7892> I'm a newb and my code chains the same method together 6 times like node.parent.parent.parent.parent.parent.parent and I know there must be a better way but I can't work it out, does it use lambdas? procs?
tchebb has joined #ruby
<abdulkarim> Mon_Ouie: Thanks, that makes it clear :)
rubberducky is now known as thomas
adamkittelson has joined #ruby
bosphorus has quit [Remote host closed the connection]
<canton7> thing = node; 6.times{ thing = thing.parent } maybe?
subbyyy has quit [Quit: Leaving.]
<Mon_Ouie> I'd do it like that, and probably wrap it in a method to get the nth parent
<Mon_Ouie> The hardest part being to actually name that method :p
<canton7> ancestor?
<mrz7892> thanks guys, I had thought about storing it in a variable like that I just really thought there might be a one liner...
<Mon_Ouie> Hm, could work
<mrz7892> canton7: is that a nokogiri method?
<canton7> nth_ancestors... ancestor_n... something like that
<mrz7892> ohh you mean write it, got it
<canton7> mrz7892, I'm just suggesting a name for the method :P
<mrz7892> yeah :)
<jrajav> Writing methods? Yourself?!
velikasha has joined #ruby
<jrajav> What is this madneeeeeess
the-newsman has quit [Ping timeout: 245 seconds]
velikasha has left #ruby [#ruby]
<canton7> you might be able to get away with using #ancestors, depending on what your xml looks like
jarjar_prime has quit [Read error: Connection reset by peer]
<mrz7892> canton7: yeah I just need 6 levels up specifically so ancestors doesn't do it
<canton7> ah, fair play
wpaulson has joined #ruby
<jrajav> Name the method #greatgreatgreatgreatgrandparent
balki_ has joined #ruby
balki has quit [Read error: Connection reset by peer]
<Mon_Ouie> jrajav: That's a terrible name!
<jrajav> ;D
<Mon_Ouie> great_great_great_great_grand_parent # awesome name.
<canton7> not long, and we'll be longer than the original node.parent.parent....
<jrajav> Better yet, just make #great and #grand and have them call parent
<canton7> awesome!
kennyvb has left #ruby [#ruby]
Banistergalaxy has quit [Ping timeout: 245 seconds]
sebicas has quit [Quit: sebicas]
Banistergalaxy has joined #ruby
kiela has quit [Ping timeout: 246 seconds]
abra has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
tfitts has quit [Ping timeout: 246 seconds]
<heftig> class Class; def method_missing(meth, *args, &blk); if meth =~ /^((great)*grand)?parent$/; a = superclass; meth.to_s.scan(/great|grand/).count.times { a.nil? or a = a.superclass }; a; end; end; end
abra has joined #ruby
<heftig> oh, whoops
<heftig> class Class; def method_missing(meth, *args, &blk); if meth =~ /^((great)*grand)?parent$/; a = superclass; meth.to_s.scan(/great|grand/).count.times { a.nil? or a = a.superclass }; a; else; super; end; end; end
travis_ has joined #ruby
AlbireoX has joined #ruby
jonatha__ has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 260 seconds]
subbyyy has joined #ruby
blacktulip has quit [Remote host closed the connection]
maletor has joined #ruby
subbyyy has quit [Client Quit]
nopolitica has joined #ruby
maletor has quit [Client Quit]
jonatha__ has quit [Remote host closed the connection]
frogstarr78 has quit [Remote host closed the connection]
jeff_sebring has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
cakehero has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
verto|off is now known as verto
<workmad3> heftig: why that, instead of just klass.ancestors[2] ?
<heftig> don't want modules
htroyack has quit [Excess Flood]
<workmad3> heftig: ok... def class_ancestors; ancestors.select{|k|k.is_a?(Class)}; end;
<heftig> meh
TheMoonMaster has quit [Excess Flood]
kevinbond has quit [Quit: kevinbond]
TheMoonMaster has joined #ruby
karakedi has quit [Ping timeout: 260 seconds]
Maher4Ever has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
<workmad3> heftig: method_missing overrides on class just seem... risky
<workmad3> s/class/Class/
<heftig> yeah, i'm not actually advocating using that code :p
<workmad3> heftig: heh :) sorry, I just joined the chan as you wrote it, didn't see context ;)
<heftig> in any case this one is rather safe, since it just defines parent, grandparent, greatgrandparent and so on
subbyyy has joined #ruby
<workmad3> heftig: yeah... except it overrides anything that may already be there
<Maher4Ever> Hello, does anyone know why a VALUE variable in a ruby extention changes after a while to another object? Is it because of the GC?
<heftig> yes.
<workmad3> heftig: but yeah, it's safer than some method missing overrides I've seen :)
mahmoudimus has joined #ruby
strife25 has joined #ruby
<RubyPanther> Maher4Ever: Your question isn't clear, you don't say what code you ran just some general "another object" stuff that is meaningless without context
patjoh has quit [Quit: Computer has gone to sleep.]
patjoh has joined #ruby
<Maher4Ever> RubyPanther: Sorry for not explaning. I'm working on a extention that needs to store a pointer to a ruby-block for a long time. I call the block when an event happens (it's a directories monitor for windows). Today while running some code I noticed something strange: The ruby-object gets replaced by a totally other object!! I checked the value stored in the VALUE-variable and it's the same, I even checked the ruby '__id__' value and it's st
<Maher4Ever> ill the same
<Maher4Ever> I really can't explain what's happining
<RubyPanther> so how do you know it is different?
<Maher4Ever> I get an error that the 'call' method is not defined on that object. The other object is randomly changed, sometimes a hash which I use for options and other times a string which came after "puts 'this string'"!!!
jeff_sebring has quit [Remote host closed the connection]
<RubyPanther> In the general case it would be better to do rb_funcall(myvalue, rb_intern("=="), 1, myothervalue) anyways instead of trying to compare them in C. Normally you would only want to do a comparison in C when you have some T_DATA
zemanel has quit [Quit: zemanel]
<Maher4Ever> This is what's I'm doing now, here is the code I use to call the block: rb_funcall(item->user_data->callback, wdm_rb_sym_call, 1, event);
<Maher4Ever> 'event' is a ruby object of course!
subbyyy has quit [Read error: Connection reset by peer]
nu7hatch has left #ruby [#ruby]
subbyyy has joined #ruby
<RubyPanther> Maher4Ever: the first thing you can do to find the bug is to let go of the idea that it is "randomly changed," just toss that right out.
Erdon has quit [Ping timeout: 248 seconds]
<RubyPanther> Maher4Ever: perhaps you do pointer arithmetic somewhere, or have a = that should be an ==. It really sounds like a pointer or assignment issue not a ruby issue
headius has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<Maher4Ever> RubyPanther: Do you know what the VALUE-type represent? Is the a pointer to a ruby object? I looked in ruby.h and it's a unsigned long, but I'm not sure. I'm also amazed that the values stored inside a VALUE-var doesn't equal with the value returned fron the __id__ method
<Maher4Ever> What's also crazy is that my problem happens some of the times, not always... that's why I think it might have something to do with the GC
dont_bother has joined #ruby
<Maher4Ever> I just confirmed it's the GC that's screwing with me, a simple 'GC.disable' fixed it... now I need to dig into the GC code I guess
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
burgestrand has quit [Quit: Leaving.]
<RubyPanther> You might also otherwise be masking or avoiding your bug, you don't normally have to disable GC in a C extension
gmci has quit [Ping timeout: 240 seconds]
burgestrand has joined #ruby
<Maher4Ever> RubyPanther: This is an awesome link!!! Thank you :)
headius has quit [Quit: headius]
dangerousdave has quit [Quit: Leaving...]
<Maher4Ever> RubyPanther: My extention if a bit complicated, it's multithreaded and I need to keep a lot in mind, so maybe I have some racing bug which got masked as you said by disabling the GC... I'll look into it
blazes816 has quit [Ping timeout: 248 seconds]
twock_ has joined #ruby
Chryson has joined #ruby
<RubyPanther> multithreading is usually a bad idea in Ruby, it is better to fork and use IPC
gmci has joined #ruby
twock_ has quit [Client Quit]
<Maher4Ever> I can't use fork, I'm writting this extention for Windows!
<RubyPanther> After all, that is why we love the GIL :) we fork when we need concurrency, and thanks to the GIL, everything is threadsafe...
<RubyPanther> You shouldn't really have any trouble at all with the fork and IPC model, even on windows. That is not a real barrier.
r0bby has joined #ruby
<RubyPanther> the GIL removes any threading advantage on any platform, though.
BeLucid_ has joined #ruby
BeLucid has quit [Read error: Connection reset by peer]
dont_bother has left #ruby ["Leaving"]
<Maher4Ever> When I started working on my extention I check if fork was an option on Windows, but it's not supported AFAIK. Is it?
<Maher4Ever> I can use CreateProcess of course from thr Win32 API but that can get tricky with ruby
Gavilan has joined #ruby
brianpWins has quit [Quit: brianpWins]
stephenjudkins has joined #ruby
bosphorus has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
blownapart has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
<RubyPanther> Maher4Ever: there is also a spawn method, and a win32-process gem
verto is now known as verto|off
gmci has quit [Ping timeout: 240 seconds]
blownapart has quit [Remote host closed the connection]
blownapart has joined #ruby
<burgestrand> RubyPanther: I think you’re being way unfair on MRI’s threads, and way too easy on MRI’s forking.
tchebb has quit [Quit: Leaving.]
<burgestrand> Given the mark-and-sweep GC the memory benefit of forking in Ruby is completely removed. :(
tewecske has quit [Quit: Leaving.]
<burgestrand> Yes, you get parallelism but for *most* use cases you might as well just use threads. You very rarely need the parallelism at all.
<RubyPanther> burgestrand: it is the party line BTW. "That is why we love the GIL" The GIL guarantees, basically, that poorly written C extensions are likely thread-safe... at the expense of not getting any advantage from threads. And this decision is explicitly made because the traditional fork model is available and what the core people mostly are using anyways.
piotr has quit [Ping timeout: 246 seconds]
gmci has joined #ruby
Foxandxss has joined #ruby
<RubyPanther> It is true we don't yet have COW because of the way mark-and-sweep is done, but that is being fixed anyways
<burgestrand> Yeah :)
<burgestrand> On the GIL thing… I would still not trust any library to be thread-safe unless explicitly stated, especially C extensions where you can release the GIL.
<burgestrand> Assumptions and fuckups. Crazy things happen.
<burgestrand> Anyhow, just wanted to say ruby’s threads are fine.
<RubyPanther> People following the traditional core advice to fork will get COW with 2.0 without changing anything, the future takes into consideration what they told us to do in the past, and what they told us to do took into consideration their plans for the future
htroyack has joined #ruby
tchebb has joined #ruby
abra has quit [Ping timeout: 276 seconds]
abra has joined #ruby
sdwrage has quit [Quit: geekli.st/programmer]
ViperMaul has quit [Ping timeout: 245 seconds]
Rizzle has joined #ruby
codeman has joined #ruby
blownapart has left #ruby [#ruby]
<RubyPanther> Some of the thinking is also explained in http://www.infoq.com/news/2007/05/ruby-threading-futures
kevinbond has joined #ruby
dont_bother has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
reuf has quit [Quit: Leaving]
minijupe has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
codeman has quit [Ping timeout: 260 seconds]
Spooner_ has quit [Ping timeout: 246 seconds]
verto|off is now known as verto
<Maher4Ever> RubyPanther: Didn't the guys behind ree fix the COW problem way back? I remember watching a presentation where they explanied how they did it
mikepack has quit [Remote host closed the connection]
robert_ has quit [Ping timeout: 265 seconds]
crates has joined #ruby
<RubyPanther> Maher4Ever: REE tries to fix it, but it still tends to only fix it at the start of the process life and grows rather quickly... for example with apache and REE you might end up tuning it so that you only get 100 requests per process in an attempt to minimize memory use
<RubyPanther> Ruby 2.0 should do a more complete job, though
mxweas has quit [Ping timeout: 244 seconds]
<Maher4Ever> Can't wait for ruby 2.0, or 'till mruby is stable :P
luckman212 has quit [Read error: Connection reset by peer]
jrajav has quit []
luckman212 has joined #ruby
mxweas has joined #ruby
hsbt is now known as hsbt_away
blazes816 has joined #ruby
<RubyPanther> The good news is, the dev version of 2.0 already has the COW support :)
travis_ has quit [Quit: travis_]
mxweas has quit [Ping timeout: 252 seconds]
<Maher4Ever> I need to check it out. Has someone blogged about the major changes in ruby 2.0?
<Maher4Ever> I want to this year's Euruko, but Matz only spoke about mruby
<Maher4Ever> *went
<shevy> \o/
<shevy> it's the future
jarr0dsz has quit [Quit: Leaving...]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
bosphorus has quit [Remote host closed the connection]
mxweas has joined #ruby
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
Bosox20051 has joined #ruby
darren has quit [Remote host closed the connection]
mxweas has quit [Ping timeout: 252 seconds]
hsbt_away is now known as hsbt