fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
lggr has joined #ruby
<Synthead> how can I get the fusefs module installed? I can't seem to satisfy these dependencies: http://pastie.org/4788304
love_color_text has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
monkegji_ has joined #ruby
Forevernade has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
null- has left #ruby [#ruby]
nari has quit [Ping timeout: 256 seconds]
returnvoid has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
zeromodulus has quit [Remote host closed the connection]
xeronic has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 244 seconds]
apok has joined #ruby
c0rn_ has quit [Ping timeout: 246 seconds]
josh^ has joined #ruby
apok has quit [Client Quit]
lggr has joined #ruby
<havenn> Cache_Money: I'd recommend mashalling the Hash like so: Marshal.dump({ now: 'savable' }): http://www.ruby-doc.org/core-1.9.3/Marshal.html
<havenn> Cache_Money: Oh, are you saving a JSON Hash or a Ruby Hash, not sure I read that right?
c0rn_ has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
frogprince has quit [Ping timeout: 248 seconds]
<Cache_Money> havenn: a Ruby hash. That's why JSON.parse(contents) wasn't working. I had to do eval(conents) to successfully convert to Ruby hash
lggr has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
returnvoid has left #ruby [#ruby]
bbttxu has joined #ruby
Axsuul has quit [Ping timeout: 245 seconds]
<Spooner> Cache_Money : You might like to look at pstore to store your Ruby data in a file (more easily).
c0rn_ has quit [Ping timeout: 245 seconds]
bwlang has joined #ruby
gfontenot has quit []
<Spooner> Cache_Money : You never need to use eval in this way, unless you are doing something fundamentatlly wrong.
maletor has quit [Quit: Computer has gone to sleep.]
c0rn_ has joined #ruby
<Spooner> If you write a hash to a file, then it doesn't magically become JSON. JSON has nothing to do with Ruby, although it can look a bit like hash/arrays do in Ruby.
gfontenot has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
tommyvyo has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<xorgnak> theyre always the cancerous growth.
cakehero has joined #ruby
c0rn_ has quit [Ping timeout: 264 seconds]
c0rn_ has joined #ruby
CaptainJet has quit []
c0rn_ has quit [Client Quit]
Axsuul has joined #ruby
lggr has joined #ruby
dakine has quit [Ping timeout: 246 seconds]
cakehero_ has joined #ruby
Criztian has quit [Remote host closed the connection]
swarley| has joined #ruby
maletor has joined #ruby
swarley- has joined #ruby
Virunga has quit [Remote host closed the connection]
Seich is now known as seich
swarley has quit [Ping timeout: 260 seconds]
<Cache_Money> Spooner: I understand that. So you recommend using PStore to write hashes to a file?
seoaqua has joined #ruby
<Spooner> Well, no, PStore is a hash as a file. I don't really know what you want to do, so I can't advise you!
<Spooner> You might be better with YAML or marshal or pstore or sqlite or morse code for all I know :D
ScottNYC has joined #ruby
<Cache_Money> I'm scraping a website, store data in a hash to use later
lggr has quit [Ping timeout: 256 seconds]
specialGuest is now known as daniell
ph^ has joined #ruby
daniell is now known as danie
swarley| has quit [Ping timeout: 260 seconds]
nate76 has joined #ruby
<Cache_Money> *storing
danie has left #ruby ["WeeChat 0.3.8"]
mercwithamouth has joined #ruby
<Spooner> So some data but not a massive amount? But not wanting to store 1000s of website's scraped data?
<havenn> Cache_Money: Save it as YAML, JSON, or Marshal IMHO. PStore is quite nice (uses Marshal behind the scenes).
<havenn> Cache_Money: I wrote a little gem around PStore called Persist: https://github.com/Havenwood/persist
cburyta has joined #ruby
seoaqua has quit [Ping timeout: 268 seconds]
<havenn> Spooner: Do you want it in JSON format eventually? Or was that just how you were dealing with the Ruby Hash?
<havenn> Oops, miss-tell... sry
<Cache_Money> Spooner: scraping website by state to get a list of golf course URLs. Probably a couple hundered in each state. Not ready to scrape each course yet, so saving URLs until I'm ready
lggr has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
swarley- has quit [Ping timeout: 268 seconds]
<Spooner> Marshal is probably best for you, if you don't need the file to be human-readable. You would use 'File.write("bleh.data", Marshal.dump(hash))' and 'hash = Marshal.load(File.read("bleh.data"))'
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<Cache_Money> havenn: I'm probably just going to use Ruby hash
specialGuest has quit [Client Quit]
<Cache_Money> Spooner: sweet! I'll look into Marshal
<Spooner> havenn : The JSON was what was being sent by the server. I think Cache_Money thought it was Ruby, since JSON looks a bit like Ruby data structures.
<Cache_Money> exactly
<havenn> Spooner: Ahh, gotcha.
<havenn> Cache_Money: There is actually a RON (Ruby Object Notation) but nobody uses it >.> =P
<Spooner> And the same when reading the file that Cache_Money had written a hash out to, presumably just using "puts hash" or similar.
gfontenot has quit []
<Cache_Money> yup
<Spooner> Though there mistaking Ruby for JSON :D
maletor has quit [Quit: Computer has gone to sleep.]
<Spooner> I can understand the confusion. I really can.
<Spooner> Used to be easier, since old Ruby hashes didn't look like JSON.
zeromodulus has joined #ruby
maletor has joined #ruby
jenrzzz_ has joined #ruby
cakehero_ has quit [Quit: Computer has gone to sleep.]
joeycarmello has quit [Remote host closed the connection]
pitty has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
daniel00 has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
hadees has joined #ruby
havenn has quit [Remote host closed the connection]
lggr has joined #ruby
yshh has joined #ruby
Agis__ has quit [Quit: Agis__]
yakitori has joined #ruby
hadees has quit [Ping timeout: 246 seconds]
c0rn_ has joined #ruby
swarley has joined #ruby
qos has quit [Quit: Linkinus - http://linkinus.com]
drago757 has joined #ruby
daniel00 has quit [Changing host]
daniel00 has joined #ruby
nate76 has quit [Quit: Leaving]
lggr has quit [Ping timeout: 246 seconds]
daniel00 has quit [Quit: WeeChat 0.3.8]
daniel00 has joined #ruby
digitalcakestudi has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
digitalcakestudi has joined #ruby
daniel00 has quit [Changing host]
daniel00 has joined #ruby
digitalcakestudi has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 260 seconds]
digitalcakestudi has joined #ruby
awestroke has joined #ruby
sent-hil has joined #ruby
yasushi__ has joined #ruby
daniel00 has quit [Changing host]
daniel00 has joined #ruby
daniel00 has left #ruby ["WeeChat 0.3.8"]
awestroke has quit [Ping timeout: 256 seconds]
elico has joined #ruby
ph^ has joined #ruby
lggr has joined #ruby
Banistergalaxy has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
__main__ has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
__main__ has joined #ruby
elico has quit [Client Quit]
AndChat- has joined #ruby
Hanmac1 has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
__class__ has joined #ruby
AndChat| has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 268 seconds]
yakitori has quit [Ping timeout: 264 seconds]
swarley has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 246 seconds]
aantix has joined #ruby
ewag_ has joined #ruby
lggr has joined #ruby
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
ryanlecompte has quit [Remote host closed the connection]
AndChat- has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
joeycarmello has joined #ruby
axl_ has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
justinmcp has quit [Remote host closed the connection]
daniel00 has joined #ruby
daniel00 has left #ruby [#ruby]
swarley has joined #ruby
mattyoho has joined #ruby
gnarmis has joined #ruby
justinmcp has joined #ruby
gnarmis has left #ruby [#ruby]
lggr has joined #ruby
daniel_- has joined #ruby
joeycarmello has quit [Ping timeout: 268 seconds]
seanstickle has quit [Quit: seanstickle]
dakine has joined #ruby
wpaulson has joined #ruby
tomzx_ has joined #ruby
bwlang has left #ruby [#ruby]
Banistergalaxy has joined #ruby
AndChat- has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
derpie has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
derpie has left #ruby [#ruby]
lggr has joined #ruby
Banistergalaxy has quit [Ping timeout: 268 seconds]
ryanlecompte has joined #ruby
aantix has quit [Quit: aantix]
seoaqua has joined #ruby
jearvondharrie has quit [Ping timeout: 256 seconds]
daidoji has joined #ruby
ph^ has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
cburyta has quit [Remote host closed the connection]
rakunHo has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
johnjohnson has joined #ruby
cburyta has joined #ruby
ttt has joined #ruby
c0rn_ has quit []
daniel_- has quit [Quit: WeeChat 0.3.8]
cakehero has quit [Quit: Computer has gone to sleep.]
LouisGB has quit [Ping timeout: 260 seconds]
aantix has joined #ruby
lggr has joined #ruby
jearvondharrie has joined #ruby
elux has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
tomzx_ has quit [Ping timeout: 245 seconds]
ghanima has joined #ruby
Banistergalaxy has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
Aristata has quit [Ping timeout: 248 seconds]
AndChat| has joined #ruby
karakedi has joined #ruby
AndChat- has quit [Ping timeout: 268 seconds]
Forevernade has quit [Read error: Connection reset by peer]
pitty has quit [Ping timeout: 240 seconds]
ghanima has quit [Ping timeout: 244 seconds]
Forevernade has joined #ruby
Banistergalaxy has quit [Ping timeout: 268 seconds]
Banistergalaxy has joined #ruby
ghanima has joined #ruby
AndChat- has joined #ruby
lggr has joined #ruby
pipopopo has quit [Read error: Operation timed out]
Aristata has joined #ruby
pipopopo has joined #ruby
AndChat| has quit [Ping timeout: 268 seconds]
ttt has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 268 seconds]
n_blownapart has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ttt has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
aantix has quit [Quit: aantix]
c0rn_ has joined #ruby
nari has joined #ruby
bwlang has joined #ruby
bwlang has quit [Excess Flood]
bwlang has joined #ruby
n_blownapart has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
GraemeLion has joined #ruby
lggr has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
ryanf_ has joined #ruby
luckyruby has joined #ruby
h4mz1d has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
nitrogen_ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
elux has quit [Quit: Bye!]
nitrogen_ has quit [Client Quit]
ph^ has joined #ruby
tgraham has joined #ruby
otters has joined #ruby
lyaunzbe has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
Drewch has quit [Excess Flood]
n_blownapart has quit [Remote host closed the connection]
luckyruby has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Drewch has joined #ruby
uris has joined #ruby
c0rn_ has quit []
gnarmis has joined #ruby
<gnarmis> it's funny how ruby's method calling syntax is lispy
<gnarmis> superficially lispy
<rking> gnarmis: It is?
lggr has quit [Ping timeout: 246 seconds]
johnjohnson has quit []
<gnarmis> say you have a function sum_of_squares
ph^ has quit [Ping timeout: 264 seconds]
<gnarmis> you could call it like (puts (sum_of_squares 1, 2))
<swarley> That's just isolation
<gnarmis> yeah, it's very superficially lispy
<swarley> You can also do puts sum_of_squares 1, 2
<gnarmis> yeah
joeycarmello has joined #ruby
<gnarmis> def defn name; Object.send(:define_method, name); end
<gnarmis> lol
<gnarmis> (defn (:a) {|x, *y| print x; print y})
<swarley> Not quite
<swarley> &name
linoj has quit [Quit: linoj]
cibs has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
swarley has quit [Read error: Connection reset by peer]
lggr has joined #ruby
swarley has joined #ruby
swarley_ has joined #ruby
hbpoison has joined #ruby
seoaqua has quit [Ping timeout: 260 seconds]
<gnarmis> hmm why the &?
cburyta has quit [Remote host closed the connection]
<gnarmis> (and where?)
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
<Mon_Ouie> You need to explicitly pass the block to define_method
<Mon_Ouie> defn(name, &implementation)
<gnarmis> ah maybe that's why there's this warning too
<gnarmis> it does work without it though
<Mon_Ouie> That's not a reason for a warning to appear
lggr has quit [Ping timeout: 246 seconds]
<Mon_Ouie> The warning is there because of the space before "(:a)"
<Mon_Ouie> I’m very sure it doesn't
<Mon_Ouie> defn(:a) { 3 }; a #=> nil
<gnarmis> I get the same thing with (defn(:a) {|x, *y| print x; print y})
<Mon_Ouie> What's the warning anyway?
<gnarmis> tried to create Proc object without a block
<Mon_Ouie> Oh, quite odd it does pass the block implicitly
<gnarmis> yeah....
emanu has joined #ruby
<gnarmis> Object.send(:define_method, :some_sym) {<some block here>}, and wrapped in defn it still works with implicit passing of that block
lyaunzbe has joined #ruby
guns has quit [Quit: guns]
<Mon_Ouie> This time I’m really sure. def defn(name); Object.send(:define_method, name) { 4 } end; defn(:a) { 5 }; a #=> 4
lggr has joined #ruby
<gnarmis> yup
<gnarmis> the first block in the chain gets to #define_method?
<Mon_Ouie> There's no "chain" of blocks
<gnarmis> { 5} is just ignored
<gnarmis> yeah
<Mon_Ouie> It's ignored because you don't use it; the fact it wasn't ignored in the first version is what is surprising to me.
<gnarmis> yeah why should that work?
<Mon_Ouie> I think define_method tries to be (too, IMO) smart
bigmcq77 has joined #ruby
<gnarmis> and allows this to happen: defn (:sum_of_squares) {|x, y| x*x + y*y}. Same thing as using def apparently
<gnarmis> splats and default args work too
reuf has quit [Quit: Leaving]
`brendan has quit [Ping timeout: 248 seconds]
bbttxu has quit [Quit: bbttxu]
<Mon_Ouie> That's just how block arguments work since 1.9
lggr has quit [Ping timeout: 244 seconds]
fboudreau has joined #ruby
ph^ has joined #ruby
drago757 has quit [Quit: drago757]
awestroke has joined #ruby
ScottNYC has quit [Quit: ScottNYC]
lggr has joined #ruby
awestroke has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
AlbireoX has quit [Remote host closed the connection]
Spooner has quit [Ping timeout: 245 seconds]
AndChat- has quit [Ping timeout: 268 seconds]
axl_ has quit [Quit: axl_]
Guedes0 has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
blazes816 has joined #ruby
manizzle has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
seoaqua has joined #ruby
null- has joined #ruby
uris has quit [Quit: leaving]
dpk has joined #ruby
kiyoura has quit [Quit: Leaving]
justinmcp has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
hadees has joined #ruby
lggr has joined #ruby
seoaqua has quit [Ping timeout: 260 seconds]
RichieEvan has joined #ruby
cibs has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
hadees has quit [Ping timeout: 264 seconds]
Soul_Est has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
ph^ has joined #ruby
lggr has joined #ruby
dmiller has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
centipedefarmer has quit [Remote host closed the connection]
xpen has joined #ruby
ryanf_ has quit [Quit: broken pipes |||]
dpk has quit [Quit: Asleep at the keyboard.]
Chryson has joined #ruby
gnarmis has left #ruby [#ruby]
hbpoison has joined #ruby
AndChat| has joined #ruby
AlbireoX has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
AndChat- has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
ph^ has quit [Ping timeout: 260 seconds]
AlbireoX has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 268 seconds]
chendo has quit [Ping timeout: 256 seconds]
AndChat| has quit [Ping timeout: 264 seconds]
chendo_ has joined #ruby
Banistergalaxy has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
karakedi has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
GraemeLion has quit [Quit: out]
daidoji has quit []
AndChat- has quit [Ping timeout: 264 seconds]
faitswulff has joined #ruby
Guest64548 has joined #ruby
lggr has joined #ruby
erintl has joined #ruby
xeronic has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
yasushi__ has quit [Ping timeout: 245 seconds]
AndChat| has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
wpaulson has joined #ruby
tommyvyo has joined #ruby
blazes816 has quit [Quit: blazes816]
ph^ has joined #ruby
lggr has joined #ruby
jearvondharrie has quit [Ping timeout: 256 seconds]
AndChat- has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
k has joined #ruby
iori has joined #ruby
k is now known as Guest42755
xpen_ has joined #ruby
A124 has joined #ruby
AndChat| has quit [Ping timeout: 260 seconds]
Guest42755 is now known as hemanth
joeycarmello has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
xpen has quit [Ping timeout: 246 seconds]
cody-- has joined #ruby
demian`_ has quit [Quit: demian`_]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
AlbireoX has quit [Ping timeout: 240 seconds]
aantix has joined #ruby
Soul_Est has quit [Quit: WeeChat 0.3.8]
ph^ has quit [Ping timeout: 268 seconds]
kuzushi has joined #ruby
mikepack has joined #ruby
lggr has joined #ruby
justsee has quit [Quit: Leaving...]
swarley has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
justinmcp has joined #ruby
swarley_ has quit [Ping timeout: 256 seconds]
AndChat- has quit [Quit: Bye]
sent-hil has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
bananagram has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 260 seconds]
tgraham has quit [Quit: Leaving...]
erintl has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
AndChat| has joined #ruby
AndChat- has joined #ruby
c0rn_ has joined #ruby
Monie has joined #ruby
joeycarmello has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 246 seconds]
xeronic has quit [Ping timeout: 252 seconds]
AndChat| has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
timrom has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
AndChat- has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby
Guest64548 has quit [Ping timeout: 246 seconds]
ph^ has joined #ruby
lggr has joined #ruby
hbpoison_ has joined #ruby
love_color_text has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
aantix has quit [Quit: aantix]
faitswulff has quit [Quit: Page closed]
banisterfiend has joined #ruby
joeycarmello has quit [Remote host closed the connection]
quest88 has quit [Quit: quest88]
hbpoison_ has quit [Ping timeout: 248 seconds]
triptec has quit [Quit: triptec]
wallerdev has joined #ruby
hbpoison has joined #ruby
vitor-br has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 248 seconds]
awestroke has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
emsilva has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
AndChat- has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
Banistergalaxy has quit [Ping timeout: 244 seconds]
seoaqua has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
awestroke has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
AndChat| has quit [Ping timeout: 268 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
justinmcp has quit [Remote host closed the connection]
sr___ has quit [Quit: Connection closed for inactivity]
pdtpatrick has joined #ruby
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
luckyruby has joined #ruby
sent-hil has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
KaOSoFt has joined #ruby
<KaOSoFt> Hello, good evening.
Tobarja has joined #ruby
thejoecarroll has quit [Quit: (sorry—may be away right now)]
AndChat- has quit [Ping timeout: 268 seconds]
Banistergalaxy has quit [Ping timeout: 268 seconds]
<luckyruby> what's a good way to identify duplicate values in an array?
<Spaceghostc2c> luckyruby: identify them how?
<Tobarja> i downloaded hacketyhack for my son(8yo) this week and he was intrigued by drawing with the turtle. unfortunately, there's not a lot of lessons in there. does anyone know if there are more lessons available for hacketyhack? if not, does anyone have suggestions for another kid-focused programming intro that might be graphics heavy?
vderyagin has joined #ruby
<luckyruby> just output to stdout
<Tobarja> s/heavy/centric/
<Spaceghostc2c> luckyruby: Show me an example input and desired output maybe?
<Spaceghostc2c> Tobarja: Shoes.rb?
<luckyruby> input: [1,5,5,3,3,6,3,6,4,2], output: [5,3,6]
lggr has joined #ruby
<luckyruby> real life example has about 100k elements
Banistergalaxy has joined #ruby
<Spaceghostc2c> luckyruby: Only ones that have duplicates, right?
<luckyruby> yeah
<Spaceghostc2c> So #uniq isn't enough because it'll give you all uniq values, not all values which have duplicates?
<luckyruby> right
joshman_ has quit [Quit: Computer has gone to sleep.]
<luckyruby> if there was an operator that gives the inverse of &, that'd work
<luckyruby> foo &inverse foo.uniq
AndChat| has quit [Ping timeout: 268 seconds]
<Tobarja> Spaceghostc2c: thanks, i'll look into that.
<Spaceghostc2c> Tobarja: It might not be what you want though, sorry.
<bnagy> luckyruby: a.group_by {|e| a.count(e)}
<bnagy> start with that maybe
love_color_text has quit [Remote host closed the connection]
maletor has joined #ruby
<bnagy> a.group_by {|e| a.count(e)}.select {|k,v| k>1}.values.flatten.uniq
<bnagy> => [5, 6, 3]
<bnagy> :(
<bnagy> fugly
<luckyruby> ah cool
<vderyagin> luckyruby: a.select { |n| a.count(n) > 1}.uniq
<luckyruby> vderyagin: that works
<KaOSoFt> Is there a way what libraries was Ruby compiled with? I ask because I was installing a modified (patched with falcon performance improvements) version of 1.9.3-p194, but since I’m using the (new) fish shell, I wasn’t able to inline CONFIGURE_OPTS or CC, so I exported them as environment variables (set -x), but I don’t know if it worked.
<KaOSoFt> a way to know*
davidcelis has quit [Quit: K-Lined.]
wallerdev has quit [Ping timeout: 256 seconds]
<KaOSoFt> My idea of CONFIGURE_OPTS was to pass it Homebrew OpenSSL, Readline, and Libiconv.
<Tobarja> Spaceghostc2c: hacketyhack runs on/with/hacked shoes.rb, so that seems ok. now looking for an intro to programming for kids w/shoes (crafted for comedic affect)
lggr has quit [Ping timeout: 246 seconds]
<luckyruby> vderyagin: works but.. sloooow heh
<bnagy> lots of calls to count, gonna kill you for big arrays
davidcelis has joined #ruby
hoelzro|away is now known as hoelzro
wallerdev has joined #ruby
justsee has quit [Quit: Leaving...]
lggr has joined #ruby
AlbireoX has joined #ruby
CannedCorn has joined #ruby
ph^ has joined #ruby
rakunHo has quit [Remote host closed the connection]
<bnagy> a.each_with_object(Hash.new {|h,k| h[k]=0}) {|e,h| h[e]+=1}.select {|k,v| v>1}.keys test that for speed
<bnagy> should be one trip through
<aces1up> i'm using the win32api to set some dword flags.. how do I set a variable with a hex value then binary or multiple hex values to get the proper flags set?
justinmcp has joined #ruby
<bnagy> aces1up: dword flags in what?
thejoecarroll has joined #ruby
<bnagy> easiest is probably to pack numbers, windows is little endian
<bnagy> in most places :/
josh^ has quit [Ping timeout: 244 seconds]
ARIZ has joined #ruby
wallerdev_ has joined #ruby
<aces1up> bnagy the win32api api call i'm trying to make uses a dword, I have no trouble packing the attributes, but I need the proper way to say binary or 0x8 and 0x2 into the proper value.
<aces1up> hope that makes sense.
<bnagy> it doesn't at all
<aces1up> lol
<bnagy> if you're calling an api, you can just call it with a number
<bnagy> the rest is just a matter of representation
AndChat| has joined #ruby
wallerdev has quit [Ping timeout: 268 seconds]
<aces1up> bnagy well the way the dword works is by setting different bits on the dword to correspond with certain flags i want set.
<aces1up> so you can't just set it.
AndChat- has joined #ruby
seoaqua has quit [Ping timeout: 246 seconds]
<bnagy> like I define dword constants as 255 or 0xff whatever I feel like at the time
<aces1up> I need to binary "or" multiple flag values to get the proper value to set.
timrom has joined #ruby
<bnagy> oh right, that's just flags
<bnagy> FOO=0x0x; BAR=0x10 ApiCall( FOO | BAR )
<aces1up> bnagy so how would I do that? like for instance the flags i want are 0x8 and 0x2
josh^ has joined #ruby
<aces1up> bnagy ok
<aces1up> thanks.
bsmith has joined #ruby
<luckyruby> bnagy: wow
<bsmith> hello, is there a nice printer like awesomeprint with support for datamapper models?
<luckyruby> that only took 14s against 80k elements
<bnagy> is that better or worse? :)
<aces1up> bnagy also do you know if this is actually hex or binary values on this page for the flags?
<luckyruby> the other ways i had to ctrl-c out at 3min +
<bnagy> you can use either, as I said
mikepack has quit [Remote host closed the connection]
hbpoison has joined #ruby
seoaqua has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
thejoecarroll_ has joined #ruby
thejoecarroll_ has quit [Remote host closed the connection]
mikepack has joined #ruby
<bnagy> those are hex value
mikepack_ has joined #ruby
thejoecarroll has quit [Read error: Connection reset by peer]
ARIZ has left #ruby [#ruby]
Banistergalaxy has quit [Ping timeout: 268 seconds]
thejoecarroll has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
<luckyruby> i almost feel like monkey patching Array to add that method
<CannedCorn> hey guys
triptec has joined #ruby
<CannedCorn> was wondering how to dynamically instantiate a class when its passed in as a string
<CannedCorn> like Float
<CannedCorn> for example
lggr has joined #ruby
<bnagy> CannedCorn: start by looking at const_get
<CannedCorn> thought you could use const_get
<CannedCorn> yeah
AndChat| has quit [Ping timeout: 256 seconds]
CannedCorn has quit [Quit: Computer has gone to sleep.]
<bnagy> aces1up: btw I would strongly recommend learning FFI for windows stuff
<bnagy> win32api has some limitations and portability issues
mikepack_ has quit [Ping timeout: 264 seconds]
<pdtpatrick> Question - after creating an instance of a class, how can i see instance methods of that class? Here's what I have so far .. https://gist.github.com/f87e1a880190b09015ac
<bnagy> obj.methods or ObjClass.instance_methods
Chryson has quit [Quit: Leaving]
emanu has quit [Quit: emanu]
ph^ has quit [Ping timeout: 264 seconds]
c3mdigital has joined #ruby
<bnagy> which may not be the same
c3mdigital has left #ruby [#ruby]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<bnagy> cause of dynamic methods and stuff, like obj.extend Magic -> now obj will have methods that are not in ObjClass
emanu has joined #ruby
wallerdev_ has quit [Ping timeout: 256 seconds]
cody-- has quit [Remote host closed the connection]
awestroke has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
c0rn_ has quit []
wallerdev has joined #ruby
<pdtpatrick> so the best way is to ObjClass.instance_methods(false) otherwise if i create an instance, all im seeing is a way of searching for your methods which you'll have to know what you're looking for?
<bnagy> what are you trying to do?
virtualroot has quit [Ping timeout: 252 seconds]
<bnagy> cause instance_methods false has tripped me up a few times, cause of inherited methods missing etc
fantazo has quit [Remote host closed the connection]
<bnagy> Array.instance_methods(false).include? :group_by => false for example
Tobarja has left #ruby ["PONG :moorcock.freenode.net"]
<aces1up> bnagy do you have a lot of experience with using the win32api?
<bnagy> aces1up: with windows, yes, with the win32api gem not for a couple of years
lggr has joined #ruby
<bnagy> I moved all my stuff to ffi
<aces1up> I want to redirect output of the createprocess call to a pipe.. the windows create process wants a handle to pipe..
matrixise has quit [Ping timeout: 268 seconds]
<aces1up> can I interface a ruby pipe with this? or do I specifically have to use windows pipes for this sort of thing?
<bnagy> it's all fugly
hbpoison has quit [Ping timeout: 246 seconds]
wallerdev has quit [Ping timeout: 268 seconds]
<bnagy> but dan berger has code for all of that
<bnagy> I had a hacked popen implementation at one point
<bnagy> but now the ruby one works, so I wouldn't advise writing your own
<aces1up> bnagy have a link to the code yo be talking bout?
<aces1up> bnagy well the popen runs a console window.
KaOSoFt has left #ruby [#ruby]
<aces1up> which I don't want.
<aces1up> is there a way to not have this happen?
<bnagy> eh? it shouldn't
c0rn_ has joined #ruby
<bnagy> basically apart from the wrapping, it's the same as writing the code in C
<bnagy> so you normally have to use C docs to work it all out
triptec has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
<bnagy> hang on lemme see if I still have the crappy popen
Tearan has joined #ruby
keppy has quit [Quit: leaving]
<aces1up> bnagy well i have no experience with c or ffi.. lol
gnarmis has joined #ruby
<bnagy> well rots of ruck :D
wallerdev_ has joined #ruby
keppy has joined #ruby
ABK has joined #ruby
mneorr has joined #ruby
<aces1up> bnagy just curious why is popen better?
<aces1up> what does it use on windows at the core level to spawn process?
<bnagy> the way I was doing reads sucks
lggr has quit [Ping timeout: 248 seconds]
<bnagy> createprocess
<bnagy> it has to
abionic has joined #ruby
<bnagy> btu when I wrote that code it didn't really work, as of 1.9 I found it did
Mon_Ouie has quit [Ping timeout: 246 seconds]
<bnagy> a lot of dan berger's win32api overrides core ruby stuff on windows
<bnagy> like the Process module etc
awestroke has quit [Remote host closed the connection]
<bnagy> so the code that is already there if you have installed via rubyinstaller should be windowsy
<aces1up> bnagy ok.
<bnagy> wrapping the command in a shell is just a flag
<bnagy> I would be amazed if it's not an option to the popen method
<aces1up> bnagy also what is the diff between popen and popen4?
<bnagy> from memory popen4 is in out err and return code
<bnagy> popen 3 is in out err
<Spaceghostc2c> One keystroke! :p
wallerdev has quit [Ping timeout: 245 seconds]
<bnagy> btu I never used popen4
AlbireoX has quit [Remote host closed the connection]
keppy has quit [Client Quit]
<bnagy> no wait that must be wrong, popen3 returns the return code
<bnagy> maybe it's pid
ananthakumaran has joined #ruby
<bnagy> I dunno, read the docs :D
ABK has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
nilg has joined #ruby
wallerdev_ has quit [Ping timeout: 264 seconds]
AndChat- has quit [Ping timeout: 256 seconds]
<Cache_Money> how would I access the latitude and longitutde JavaScript variables of this page? http://www.igolf.com/course/Airport_Golf_Center/7350/
<Cache_Money> if I was scraping it
heftig has joined #ruby
wallerdev has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
<Cache_Money> the variables are near the top of the source code page within a script tag
yoklov has quit [Quit: computer sleeping]
lggr has joined #ruby
nykac has joined #ruby
<luckyruby> Cache_Money: what tools are you using? nokogiri?
<Cache_Money> yeah nokogiri
Tearan has quit [Quit: Sleepy Badger....]
manizzle has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
<Cache_Money> so basically just scan the contents of each script tag until I find what I'm looking for?
Hanmac1 is now known as Hanmac
mikepack has quit [Remote host closed the connection]
Nanuq has joined #ruby
xeronic has joined #ruby
Nisstyre has quit [Read error: Connection reset by peer]
beneggett has quit [Client Quit]
sent-hil has quit [Remote host closed the connection]
elsifaka has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
dross has quit [Quit: Nope!]
Nisstyre has joined #ruby
ph^ has joined #ruby
awestroke has joined #ruby
<reactormonk> Cache_Money: open the page in a browser, access the global object?
<Cache_Money> reactormonk: i want to scape the page and avoid using a browser if possible
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
maesbn has joined #ruby
uokesita has joined #ruby
<reactormonk> Cache_Money: have fun with complexity
darkfox83 has joined #ruby
<Cache_Money> haha thanks
<A124> Cache_Money: Would you like help with that?
lggr has joined #ruby
<Cache_Money> A124: which part?
senny has joined #ruby
<A124> Cache_Money: I'm not separating projects into pieces.
darkfox83 has quit [Remote host closed the connection]
darkfox83 has joined #ruby
djdb has joined #ruby
<Cache_Money> send me a message
tgraham has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
xeronic has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
lggr has joined #ruby
sepp2k has joined #ruby
luckyruby has quit [Remote host closed the connection]
seoaqua has quit [Ping timeout: 260 seconds]
digitalcakestudi has quit [Ping timeout: 264 seconds]
triptec has joined #ruby
hbpoison has joined #ruby
dr_bob has joined #ruby
banisterfiend has joined #ruby
triptec has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 256 seconds]
ghanima has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
areil has joined #ruby
<jokar> shevy : hi,are you here?
xpen_ has quit [Remote host closed the connection]
triptec has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
xpen has joined #ruby
banisterfiend has joined #ruby
dakine has quit [Ping timeout: 264 seconds]
cantonic_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jarred has joined #ruby
zigomir has joined #ruby
xpen_ has joined #ruby
hoelzro is now known as hoelzro|away
cantonic has quit [Ping timeout: 244 seconds]
cantonic_ is now known as cantonic
timonv has quit [Remote host closed the connection]
xpen has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
Criztian has joined #ruby
Morkel has joined #ruby
A124 has left #ruby [#ruby]
bobbbo has joined #ruby
bobbbo has quit [Client Quit]
jprovazn has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Criztian has quit [Remote host closed the connection]
lggr has joined #ruby
matrixise has joined #ruby
SegFaultAX has quit [Quit: Lost terminal]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
bigkevmcd has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
ssspiff has joined #ruby
zigomir has quit [Quit: Leaving]
arkiver has joined #ruby
jarred has quit [Quit: jarred]
zigomir has joined #ruby
wvdschel has joined #ruby
wvdschel has quit [Remote host closed the connection]
Elhu has joined #ruby
justsee has quit [Quit: Leaving...]
ryanf has quit [Quit: leaving]
lggr has quit [Ping timeout: 264 seconds]
dakine has joined #ruby
Elhu has quit [Client Quit]
budha has joined #ruby
uokesita has quit [Quit: This computer has gone to sleep]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
vlad_starkov has joined #ruby
lggr has joined #ruby
hsbt has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
hsbt has joined #ruby
aganov has joined #ruby
zommi has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
justsee has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
pingfloyd has quit [Quit: pingfloyd]
iCEAGE has joined #ruby
iCEAGE has quit [Client Quit]
sepp2k has quit [Remote host closed the connection]
tgraham has quit [Quit: Leaving...]
flype has joined #ruby
LouisGB has joined #ruby
albel727 has quit [Read error: Connection reset by peer]
kollapse has joined #ruby
kollapse has quit [Changing host]
kollapse has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Hamed-R has joined #ruby
Eldariof18-ru has joined #ruby
mucker has joined #ruby
Hamed-R has left #ruby [#ruby]
mahmoudimus has joined #ruby
Hamed-R has joined #ruby
justinmcp has quit [Ping timeout: 256 seconds]
hoelzro|away is now known as hoelzro
lggr has joined #ruby
justinmcp has joined #ruby
stepnem has joined #ruby
und3f has joined #ruby
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
<nykac> any ideas how to use Rails and mongodb effectively?
skogis has joined #ruby
Hamed-R has quit [Ping timeout: 245 seconds]
bigkevmcd has quit [Quit: outta here]
emanu has quit [Quit: emanu]
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
bigkevmcd has joined #ruby
awestroke has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
<Hanmac> nykace look at #rubyonrails
pdelgallego has joined #ruby
bobbbo has joined #ruby
joofsh has quit [Quit: Leaving]
matthewrobbins has joined #ruby
lggr has joined #ruby
frogprince has joined #ruby
LouisGB has quit []
<TommyBotten> n/clear
<TommyBotten> eh
moshee has quit [Ping timeout: 268 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
LouisGB has joined #ruby
justinmcp has quit [Remote host closed the connection]
daniel_- has joined #ruby
niklasb has joined #ruby
vlad_starkov has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
Iszak has quit [Quit: User has gone to sleep.]
F1skr has joined #ruby
awestroke has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
niklasb has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
Iszak has joined #ruby
jimeh has joined #ruby
awestroke has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Nisstyre_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Nisstyre has quit [Ping timeout: 248 seconds]
jgrevich has quit [Quit: jgrevich]
thunders_ has joined #ruby
timonv has joined #ruby
awestroke has joined #ruby
jimeh2 has joined #ruby
lggr has joined #ruby
awestroke has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 256 seconds]
haxrbyte_ has joined #ruby
daniel_- has quit [Ping timeout: 246 seconds]
haxrbyt__ has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
timmow has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
Xeago has joined #ruby
iocor has joined #ruby
<Xeago> >> puts 'bot up?'
haxrbyte_ has quit [Ping timeout: 256 seconds]
<Xeago> well, can't blame vagrant was hard to get working aswell..
justsee has quit [Quit: Leaving...]
<hoelzro> the bot should add Object#bot_up?
<hoelzro> and it always returns true =)
arietis has joined #ruby
haxrbyt__ has quit [Remote host closed the connection]
<Xeago> hoelzro: fork it :3
justsee has joined #ruby
justsee has quit [Changing host]
fr0gprince_ has joined #ruby
justsee has joined #ruby
frogprince has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
frogprince has joined #ruby
fr0gprince_ has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
banisterfiend has joined #ruby
daniel_- has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
vaclavt has joined #ruby
matthewrobbins_ has joined #ruby
matthewrobbins_ has quit [Remote host closed the connection]
matthewrobbins_ has joined #ruby
elaptics`away is now known as elaptics
matthewrobbins has quit [Read error: Operation timed out]
matthewrobbins_ is now known as matthewrobbins
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<daniel_-> anybody uses whenever gem? I using it to backup to a external drive. Cant I configure my cronjob to look is a directory exists first, before backup?
<daniel_-> if a directory*
lggr has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
<msch> daniel_-: sure just use this line in the crontab if [ -d "/the/directory" ]; then the-command; fi
<msch> daniel_-: you can check out the other files in /etc/cron.{d,hourly,daily,...} to get ideas for other checks
<daniel_-> ah yes cool
workmad3 has joined #ruby
berserkr has joined #ruby
<daniel_-> thx msch
<msch> daniel_-: np
<matti> ;]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
eddie__ has joined #ruby
<daniel_-> matti: ^^
<matti> Hi daniel_-
<eddie__> How to run a ruby program from another ruby script with arguments ?
<eddie__> anyone?
<eddie__> i dont want to do `ruby script.rb foo bar`
<banisterfiend> eddie__ why dont you want to do that
<eddie__> seems ugly
<banisterfiend> eddie__ too bad
<banisterfiend> do it
<eddie__> is there a perfect way to do it
<eddie__> ?
<matti> banisterfiend: ;] ;] ;]
<matti> banisterfiend: You are such a bad influence.
<banisterfiend> matti thats what she said
<eddie__> banisterfiend: so no other solution?
Hamed-R has quit [Quit: Leaving]
<banisterfiend> eddie__ probalby something using RbConfig
<eddie__> ok
<eddie__> thanks
<banisterfiend> to find the current ruby executable, as it's not guaranteed the current program will be started with just 'ruby' i guess
<eddie__> or i will end up doing ``
<bnagy> just use `` or system or whatever
<bnagy> all the other ways will boil down to the same thing
<eddie__> i want to run a daemon controller from another script
<matti> banisterfiend: Haha
<eddie__> `ruby daemon_controller.rb start -- foo`
<matti> banisterfiend: That never gets old, does it?
lggr has quit [Ping timeout: 245 seconds]
<bnagy> well you're right that it's ugly
<eddie__> :(
baphled has joined #ruby
<bnagy> but the ugly part is launching arbitrary scripts from inside another script
<bnagy> like, nothing the syntax can do to help you
<eddie__> bnagy: any other solution?
<banisterfiend> eddie__ fork { require 'other_script' }
<banisterfiend> maybe
<banisterfiend> depending on what u want
<matti> eddie__: Read on exec.
<eddie__> exec runs a string
<matti> No.
<bnagy> yeah but exec, system, `` are all more or less the same
<matti> ;]
<eddie__> which is ruby code?
<matti> It can take array of arguments.
<eddie__> right?
seoaqua has joined #ruby
<matti> exec is probably the most poorly documented method in the whole of ruby-doc.org
<eddie__> :)
<eddie__> ok guys last doubt
<eddie__> i am not much pro in ruby
<eddie__> we usually run a daemon controller
<eddie__> like
<eddie__> "ruby controller.rb start"
<eddie__> Daemons.run("script.rb")
<eddie__> is the method inside
<eddie__> can i do Daemons.start with in the controller
<eddie__> ?
<matti> eddie__: The only Ruby Pro here today for you, is banisterfiend ;d
<eddie__> handing over to banisterfiend
<eddie__> :)
lggr has joined #ruby
<matti> eddie__: Do you want to start a background task from an Rails application?
<matti> eddie__: Don't ask him! He will charge you $$$
<eddie__> not rails actually
<matti> eddie__: Define "controller"?
<eddie__> the script where we initialize daemons
<matti> eddie__: If you don't have to get output from the command you want to run, then build your array of arguments, and pass to a fork-exec tandem.
<matti> eddie__: Sounds like you want to write simple Rake script / task thing to start them in order.
Xeago has quit [Remote host closed the connection]
<eddie__> instead starting a daemon with 'ruby controller.rb start'
<eddie__> i want to call it from another program
<eddie__> i know i am confusing you
<eddie__> here controller runs a daemon of main.rb
<eddie__> i want to run main_controller.rb from another script
daniel_- has quit [Ping timeout: 256 seconds]
lkba has quit [Quit: Bye]
tvw has joined #ruby
<matti> eddie__: Hm.
<eddie__> did i manage to confuse you?
<eddie__> :D
<matti> No.
<matti> I just don't like the idea.
<eddie__> thanks
lggr has quit [Ping timeout: 240 seconds]
<eddie__> :)
<matti> And try to remind myself about a gem that would help you even more than Daemons.
<matti> There is one which does start / stop, plus looks after your background task i.e. restarts it, etc.
<matti> But I am pre my morning coffee, so obviously I have had to forget its name ;/
<eddie__> Foreman?
<matti> No.
lggr has joined #ruby
<matti> eddie__: I'd suggest you write your own simple daemon first, without using Daemons ;]
<matti> eddie__: As an excercise ;]
<eddie__> ha ha ha
<eddie__> :D
<matti> Seriously.
<eddie__> well thats acceptable
<eddie__> i am too lazy
<eddie__> so depending on gems written by geeks
<matti> LOL
c0rn_ has quit []
* matti gives eddie__ teh looks
<eddie__> :)
jokar has quit [Ping timeout: 264 seconds]
<eddie__> let me give it a try
bluenemo has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
cascalheira has joined #ruby
Elhu has joined #ruby
lggr has joined #ruby
mucker has quit [Ping timeout: 260 seconds]
cezar has joined #ruby
vaclavt_ has joined #ruby
justinmcp has joined #ruby
vaclavt_ has quit [Client Quit]
cezar has quit [Client Quit]
lggr has quit [Ping timeout: 244 seconds]
baphled has quit [Ping timeout: 246 seconds]
frogprince_mac has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<workmad3> matti: God? Runit? bluepill?
<matti> I think it was God.
lggr has quit [Ping timeout: 256 seconds]
<matti> +1 goes to workmad3
<workmad3> woo! I gets points :D
<workmad3> points means prizes, right?
lggr has joined #ruby
triptec has quit [Quit: triptec]
<bnagy> yeah, you gotta reach 10k points
<workmad3> I'm getting there! I'm on... 1
<bnagy> then you get a bitcoin
<workmad3> yay :D
<workmad3> I'll frame it
pdelgallego has quit [Quit: pdelgallego]
<matti> LOL
<matti> Maybe you guys know -- is there a Ruby library for writing ELF files?
<matti> Somewhat building an executable manually feels bad.
<bnagy> you could check metasploit
c0rn_ has joined #ruby
<bnagy> they've got all kinds of libs for that kind of stuff
<bnagy> but the code is pretty fricking twisty and hard to decipher
mroh has quit [Read error: No route to host]
atmosx has joined #ruby
<atmosx> hello ruby-fellas
haxrbyte has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
pdelgallego has joined #ruby
<banisterfiend> bnagy do you use metasplloit in your hacking
seoaqua has quit [Quit: 离开]
<bnagy> I do not use metasploit
alem0lars has quit [Quit: quit]
matthewrobbins_ has joined #ruby
Criztian has joined #ruby
matthewrobbins has quit [Read error: Operation timed out]
lggr has joined #ruby
justinmcp has quit [Remote host closed the connection]
Virunga has joined #ruby
matthewrobbins_ has quit [Ping timeout: 248 seconds]
darkfox83 has quit [Remote host closed the connection]
matthewrobbins has joined #ruby
darkfox83 has joined #ruby
fixl has joined #ruby
darkfox83 has quit [Client Quit]
pauC has joined #ruby
matthewrobbins has quit [Client Quit]
fermion has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<banisterfiend> cool guy has a chill day http://www.youtube.com/watch?v=4txVqr1eNwc
lggr has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
mikekelly has quit [Ping timeout: 246 seconds]
matthewrobbins has joined #ruby
Agis__ has joined #ruby
lggr has joined #ruby
Vainoharhainen has joined #ruby
mikekelly has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
dju has quit [Ping timeout: 240 seconds]
iocor has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 248 seconds]
Agis__ has quit [Quit: Agis__]
chimay has joined #ruby
lggr has joined #ruby
<shevy> hmm
niko has quit [Ping timeout: 615 seconds]
xeronic has joined #ruby
xpen_ has quit [Remote host closed the connection]
dju has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 264 seconds]
hsbt is now known as hsbt_away
h8R has quit [Ping timeout: 246 seconds]
Elhu has joined #ruby
dhruvasagar has joined #ruby
Drager has joined #ruby
lggr has joined #ruby
Erfankam has joined #ruby
arkiver has quit [Quit: Leaving]
tgraham has joined #ruby
justinmcp has joined #ruby
KindOne has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
andr0m3da has quit [Ping timeout: 252 seconds]
c0rn_ has quit []
hsbt_away is now known as hsbt
lggr has joined #ruby
<m3pow> shevy are you around ?
<shevy> m3pow yeah am back again now
<m3pow> hi. can you help me in another class thing ?
gxqdmi has joined #ruby
<shevy> write the problem case down here in #ruby and link in a pastie
<m3pow> i did not quite understand the method self.create_with_attributes
<m3pow> why does it have to instantiate an animal in the method ?
<shevy> it is a class method
<shevy> you must either call it like
<shevy> Animal.create_with_attributes
<Xeago> dat pastebin is slow
<shevy> well, actually that is the only way to use it anyway
<shevy> animal2 = Animal.create_with_attributes("Quack!", "white")
justsee has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 260 seconds]
<m3pow> i did that in the bottom with anitmal2
<m3pow> yes
br4ndon has joined #ruby
<shevy> yeah
<shevy> the class method does not know about instance variables m3pow
<m3pow> so that method is there so that i won't need to create a new instantiation ?
<m3pow> like
<shevy> that's why it instantiates a new object, then sets stuff on it: animal.color = color
<m3pow> animal1 = Animal.new
<shevy> it needs to create a new animal because otherwise it would not know anything about it
<shevy> notice the difference between "def foo" and "def self.foo"
iocor has joined #ruby
lggr has joined #ruby
<m3pow> the self.too can be accessed if an instance is not created, right
<m3pow> for foo you need to have an instance so you can access it
<shevy> yeah
<shevy> the instance is created in your example within def self.create_with_attributes
<m3pow> and if i didn't created the instance, i couldn't have accessed the attributes?
darkc0met has joined #ruby
<shevy> of course not, the class method knows nothing about instances
Virunga has quit [Remote host closed the connection]
<m3pow> ok, i think i understand now , Thank you !
thillux has joined #ruby
<shevy> you'll get used to it very quickly when writing some more classes :)
clocKwize has joined #ruby
sagax has joined #ruby
ndrei has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
binw has quit [Remote host closed the connection]
c0rn_ has joined #ruby
<m3pow> hmm so that method, returns an instance of the class
h8R has joined #ruby
lggr has joined #ruby
pauC has left #ruby ["Ex-Chat"]
<Xeago> yup
<m3pow> thank you Xeago
<Xeago> it's often called a 'static initializer method'
<workmad3> Xeago: or a factory method
<Xeago> yea, same :)
<Xeago> tho, factory methdos are not neccesarily static initializer methods
<workmad3> Xeago: I've never come across 'static initializer' outside of java with it's static {{}} initializers
<Xeago> c#
<m3pow> i have that self.all_species method
timonv has quit [Remote host closed the connection]
<Xeago> obj-c aswell workmad3
<m3pow> that's not an initializer method, though it returns some general info
<Xeago> I'd describe all_species more as a property, even though (in ruby everything) it is accessed like a method
c0rn_ has quit []
tgraham has quit [Quit: Leaving...]
frogprince_mac has quit [Quit: Leaving...]
<workmad3> I'd have been tempted to put all_species as a class constant personally
<Xeago> constant, I'd like my species to expand upon new discoveries..
<m3pow> i am not trying to do anything here, just experiment the way Class Methods work, that's all
<workmad3> Xeago: Animal::ALL_SPECIES << 'dodo' ;)
<m3pow> that add a 'dodo' in the Array
yalue has joined #ruby
<Xeago> ugly to make it a constant imo,
<workmad3> Xeago: yeah, maybe
lggr has quit [Ping timeout: 244 seconds]
<Xeago> as Animal::ALL_SPECIES = database_shit[:species].all won't work
<m3pow> Xeago, the self.create_with_attributes method requires two arguments right ?
<m3pow> what it when i call this method i have like animal2 = Animal.create_with_attributes( nil ,"white")
Mon_Ouie has joined #ruby
br4ndon has quit [Ping timeout: 240 seconds]
duard has joined #ruby
duard has quit [Changing host]
duard has joined #ruby
lggr has joined #ruby
mucker has joined #ruby
atmosx has quit [Quit: WeeChat 0.3.8]
kernelpanix has joined #ruby
fyolnish has joined #ruby
kernelpanix has quit [Remote host closed the connection]
<shevy> it requires as many arguments as you define it to have
<shevy> you can make both arguments optional by specifying a default value
<shevy> def self.bla(a, b)
<shevy> two mandatory arguments
<shevy> def self.bla(a, b = nil)
<shevy> one mandatory argument
<shevy> def self.bla(a = nil, b = nil)
<shevy> zero mandatory arguments
<m3pow> i understand !
<m3pow> thanks a bunch :d
hsbt is now known as hsbt_away
adac has joined #ruby
timonv has joined #ruby
lkba has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
sheerun has joined #ruby
bobbbo has quit [Quit: bobbbo]
<Muz> def self.shevy(*args) # Why not mention of the splat, shevy? :P
* Hanmac prefers hash syntax for optional arguments
<shevy> Muz man I mention already so much, you guys wouldn't need to be here when I write!!!
* msch would wish ruby had real keyword arguments
<Hanmac> Muz: def self.bla(*)
Xeago has quit [Remote host closed the connection]
Elhu has quit [Ping timeout: 256 seconds]
robertotauille has joined #ruby
Xeago has joined #ruby
Elhu has joined #ruby
lggr has joined #ruby
<banisterfiend> msch apparntly ruby 2.0 has that, and u can check it outnow on HEAD
<msch> banisterfiend: oh really? nice!
<banisterfiend> it's what i heard...anywa :)
<banisterfiend> it has the whole def hello(*args, **kwargs) thing
Guest95691 has joined #ruby
* Hanmac is interested in the possible C-API of ruby2.0
<msch> banisterfiend: that's nice. ruby 2 is gonna be really awesome. though it doesn't have any significant perf improvements right?
Virunga has joined #ruby
<banisterfiend> msch i think it does, it also has multiple VMs for a single process
<banisterfiend> so you can take advantage of multiple cores
<banisterfiend> without requiring sep processes (or something :P)
<msch> banisterfiend: oh nice. maybe my python friends won't laugh at me any more :)
<msch> canton7: that blogpost is from 2011, a lot could have changed
<canton7> msch, that's true
<banisterfiend> msch python has a GIL too, so i dont see why they're so cocky...
arkiver has joined #ruby
matrixise has quit [Ping timeout: 245 seconds]
<banisterfiend> msch the most exciting change (for me) in 2.0 is a pimped out Enumerator
<hoelzro> banisterfiend: I'm not 100% sure about Python's API, but I'm guessing you can have multiple interpreters per process
<msch> banisterfiend: even more than in 1.9? that's great! got any info on that?
<hoelzro> so you can have 1 per thread, which means the GIL doesn't matter
<banisterfiend> msch: yes it has a 'lazy' method
<msch> banisterfiend: wait, are you saying it's not lazy right now?
banisterfiend has quit [Read error: Connection reset by peer]
matthewrobbins has quit [Read error: Connection reset by peer]
matthewrobbins has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
<banisterfiend> msch i dc
<banisterfiend> msch did u get my example?
<banisterfiend> msch (1..Float::INFINITY).lazy.select { |v| v.even? }.map { |v| v * 3 }.take(3) #=> [6, 12, 18]
<msch> banisterfiend: nope, where did you send it to me?
<banisterfiend> there ^
<msch> banisterfiend: hehe ok
<banisterfiend> msch there's also Enumerator#+
<msch> banisterfiend: ok, so that doesn't work in 1.9? i'm shocked but not suprised
<msch> banisterfiend: what does that do?
<banisterfiend> msch did u see the 'lazy' method?
`brendan has joined #ruby
matthewrobbins has quit [Client Quit]
<banisterfiend> msch without the 'lazy' method it would try to evaluate that eagerly, and freak out cos it's an infinite sequence
<msch> banisterfiend: yes. i meant (1..Float::INFINITY).select{...}.take(3) isn't lazy in 1.9
<banisterfiend> no it's not
<msch> banisterfiend: that's horrible :)
<banisterfiend> msch well, if it was always lazy by deafult you'd always need the 'take' (or a similar method to return the result)
<banisterfiend> msch so you couldn't just do this: [1,2,3,4].select { |v| v.even? }
<msch> banisterfiend: yeah, like puts or to_a or each?
<banisterfiend> Yeah, u'd need a to_a on the end of it
<msch> banisterfiend: well [1,2,3,4].select{..} would return a lazy list that gets evaluated once i do a each or puts on it
<m3pow> what does Hanmac mean by hash syntax for args ?
<msch> banisterfiend: well not really actually, if i would save that in a variable x and then do x[5] it could just evaluate the first 5 items
<shevy> Hanmac is on LSD sometimes so be careful
<shevy> he watches a psychedelic cartoon
simao has left #ruby [#ruby]
<banisterfiend> msch yes but what if u just want a new list then and there, a = [1,2,3].select { |v| v.even? }
lggr has joined #ruby
<msch> banisterfiend: well then you do a = [1,2,3].select { |v| v.even? }.eager! obviously
<banisterfiend> msch i dunno, i think there's room for both approaches, but yu're right it's weird they didnt have the lazy one until now (2.0)
<banisterfiend> msch yes, but that's a bit annoying :)
<msch> banisterfiend: well you basically never need eager evaluation of enumerators
Jay_Levitt has joined #ruby
<msch> banisterfiend: where would you need that except in benchmarks?
larissa has joined #ruby
Jay_Levitt has quit [Client Quit]
<Hanmac> m3pow: when you call an method you could do abc( {:key => value } ) OR abc(key: value) ... its not named args but its look_alike
Iszak has quit [Quit: User has gone to sleep.]
b26 has joined #ruby
<banisterfiend> msch well sometimes you like to actually store an array that is built up from mapping over another one
Forevernade has quit [Remote host closed the connection]
Iszak has joined #ruby
<banisterfiend> msch from a performance perspective it's actually more efficient to do that too
<banisterfiend> msch Enumerators are kind of expensive since they use all that fiber machinery
<msch> banisterfiend: well that's why the ruby people should just implement all the stuff the haskell people already have :)
lolmaus has quit []
lggr has quit [Ping timeout: 248 seconds]
matrixise has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<banisterfiend> msch cool, i dont hav emuch experience with haskell
<banisterfiend> im sure there's a lot ruby coud take from it
yshh has quit [Remote host closed the connection]
<banisterfiend> msch does haskell have fibers/co-routines?
<msch> banisterfiend: yes it does.
<msch> banisterfiend: stream fusion is awesome. makes the compiler turn .map{....}.select{...}.map{...}.... into a single loop
jearvondharrie has joined #ruby
ABK_ has joined #ruby
<banisterfiend> msch how does it work?
<msch> banisterfiend: sufficiently smart compiler :) i mean you can manually rewrite it into output = []; [1,2,3].each { |i| if i = ... then next ; i = whatever_you_did_in_map ; if i == ... next ; i = whatever_you_did_in_the_second_map ; output << i }
<banisterfiend> msch i mean .lazy kind of does that too, i think
<msch> banisterfiend: yeah, the behavior is the same, but lazy has way more overhead. i mean haskell is a static language, can't really compare it to ruby.
baphled has joined #ruby
<banisterfiend> msch true
abionic has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<banisterfiend> msch i think for the basic enumerators like map/select etc they might be able to special case them in ruby, not sure
<msch> banisterfiend: i don't think they'll do that though
<banisterfiend> perhaps not
frogprince_mac has joined #ruby
<banisterfiend> msch anyway, i dont think the actual iteration part is usually the bottleneck
<banisterfiend> in any app
awestroke has joined #ruby
<msch> banisterfiend: true. except in some scientific calculation stuff i guess
h8R has quit [Ping timeout: 246 seconds]
KindTwo has joined #ruby
<banisterfiend> msch other cool things in rjuby 2.0: refinements
<banisterfiend> i think they finally made it in
snearch has joined #ruby
<msch> banisterfiend: yeah i think i read about that too. refinements <3
<banisterfiend> msch i also read somewhere that ruby will get traits
b26 has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<banisterfiend> but that just sounds confusing to me
<banisterfiend> mixins are too similar and it'll be really subtle knowing when to use each one
<msch> banisterfiend: yeah i think it's all just different words for refinements
codefyre has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
answer_42 has joined #ruby
Guest88336 has joined #ruby
<Guest88336> hi
sailias has joined #ruby
<banisterfiend> ah, i read that traits were kind of like modules but rather than the methods living further up the ancestor chain, they get baked directly into the receiver
<banisterfiend> so it makes their behaviuor more predictable or something
<banisterfiend> you're also forced to resolve method conflicts at the point you mix the trait in
ttt has quit [Remote host closed the connection]
<msch> banisterfiend: oh interesting
<msch> didn't know about that
banisterfiend has quit [Read error: Connection reset by peer]
<Guest88336> i'm trying to load an external.rb file (which only returns a "string"), is there someway to pass that into a variable (which can be returned upwards)?
banisterfiend has joined #ruby
<shevy> what
lggr has joined #ruby
<shevy> Guest88336 require 'name.rb' does not work?
<shevy> because 'name.rb' is a string too you know :P
<shevy> x = 'name.rb'; require x
<Guest88336> something like " load(File.dirname($0) + '/helpers/blah/hello.rb')"
<Guest88336> and hello.rb returns just a string "bla"
<Guest88336> actually load just returns True|False which is fine, but i want to return the "bla" from the hello.rb file
<Guest88336> ;p
<shevy> uhm
<shevy> the above will just load a file
F1skr has quit [Quit: WeeChat 0.3.8]
<Guest88336> which is fine, i want it to be run everytime
<shevy> yeah but you want the file hello.rb to return bla
<Guest88336> yes
matrixise has quit [Ping timeout: 244 seconds]
<shevy> hmmmm
<shevy> ruby will try to load a file
<Guest88336> or maybe i should just call the file via %x etc.
<shevy> if you would put return false in hello.rb then ruby would complain with an "Invalid return" error message
matthewrobbins has joined #ruby
Neomex has joined #ruby
josh^ has quit [Remote host closed the connection]
ayawaska has quit [Ping timeout: 260 seconds]
codefyre has quit [Quit: Leaving]
niklasb has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<Guest88336> return %x[#{File.dirname($0) + '/helpers/NetworkAPI/hello.rb'}]
<Guest88336> ok, works aswell
<Guest88336> sorry for bothering
arkiver has quit [Quit: Leaving]
Neomex has quit [Client Quit]
eddie__ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
nwest has joined #ruby
verto|off is now known as verto
jokar has joined #ruby
cakehero has joined #ruby
xyzodiac has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 244 seconds]
bobbbo has joined #ruby
thillux has quit [Remote host closed the connection]
AlbireoX has joined #ruby
reuf has joined #ruby
bartj3 has joined #ruby
h8R has joined #ruby
chussenot_ has joined #ruby
lggr has joined #ruby
Peter-W has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby
matrixise has joined #ruby
chussenot has quit [Ping timeout: 248 seconds]
chussenot_ is now known as chussenot
Mon_Ouie has quit [Ping timeout: 264 seconds]
nga4 has joined #ruby
ttt has joined #ruby
robustus has joined #ruby
Erfankam has quit [Quit: Leaving.]
cnf has left #ruby ["Linkinus - http://linkinus.com"]
tgraham has joined #ruby
Nisstyre_ has quit [Ping timeout: 244 seconds]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
fuleo has joined #ruby
larissa has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 268 seconds]
mguy has joined #ruby
Elhu has joined #ruby
<mguy> I'm trying to run gem install rmagick -v '1.15.17'
lggr has joined #ruby
<mguy> and then it says "building native extensions, this could take a while..."
<mguy> And it never goes past that. It can sit for an hour. Other gems seem to build fine
larissa has joined #ruby
xeronic has quit [Ping timeout: 265 seconds]
Guest64548 has joined #ruby
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lasse_ has joined #ruby
<Hanmac> mguy what OS, are there errors?
awestroke has quit [Remote host closed the connection]
tommyvyo has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
<mguy> Mac OS X 10.8.2, ruby 1.8.7, rubygems 1.8.24
<mguy> No erorrs, it just sits there
banisterfiend has joined #ruby
<lasse_> I going to write a small script that collects info and stores it somewhere. I'm looking for a simple storage without any mirgration. not mongodb,redis,mysql etc... Any ideas?
<mguy> It goes through the usual dev tools according to top - then it doesn't have any more activity
jastix has joined #ruby
<hoelzro> lasse_: if you don't want to bother with a server, I would recommend SQLite or another disk-based DB
<Xeago> lasse_: output json or marshals
<canton7> depends on size of data / whether you need to search / etc
<canton7> json/yaml/other serialization can work well
awestroke has joined #ruby
<lasse_> canton7: small data, and I don't need to search. I can load everything into memory and make the search
<mguy> Hanmac: and using '--verbose' when I install the gem doesn't appear to give me any more info
awestroke has quit [Remote host closed the connection]
<Xeago> lasse_: json or marshals, marshals are easiest if everything is ruby objects
<lasse_> Xeago: ok, thanks
lggr has quit [Ping timeout: 260 seconds]
peanuts___ has joined #ruby
<peanuts___> Hi all
ABK_ has quit [Ping timeout: 248 seconds]
krawchyk has joined #ruby
<peanuts___> Do you know if it's possible to use shoulda-matchers with test:unit ?
<peanuts___> On their github it appears to me unclear
invisime has joined #ruby
Nisstyre_ has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bbttxu has joined #ruby
lggr has joined #ruby
carloslopes has joined #ruby
lasse_ has quit [Ping timeout: 245 seconds]
niklasb has quit [Ping timeout: 256 seconds]
thejoecarroll has quit [Quit: Bye!]
<mguy> Hanmac: It was Xquartz missing that caused the problem :(
ayawaska has joined #ruby
sailias has quit [Quit: Leaving.]
Nisstyre_ has quit [Ping timeout: 268 seconds]
xeronic has joined #ruby
sKeiths has left #ruby [#ruby]
Appineer has joined #ruby
dmiller has joined #ruby
hsbt_away is now known as hsbt
Elhu has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
iocor has quit [Quit: Computer has gone to sleep.]
ewag_ has quit [Ping timeout: 246 seconds]
locriani has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
lggr has joined #ruby
dreinull has joined #ruby
yshh has joined #ruby
nanderoo has joined #ruby
Synthead has quit [Quit: p33 ba115]
JustinCampbell has joined #ruby
theRoUS_ has joined #ruby
sailias has joined #ruby
sailias has quit [Client Quit]
sagax has quit [Ping timeout: 244 seconds]
locriani has joined #ruby
dr_bob has quit [Ping timeout: 260 seconds]
hsbt has quit [Ping timeout: 256 seconds]
Spooner has joined #ruby
sailias has joined #ruby
Nisstyre_ has joined #ruby
fantazo has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
hsbt_away has joined #ruby
yakitori has joined #ruby
frogprince has quit [Ping timeout: 264 seconds]
matrixise has quit [Ping timeout: 246 seconds]
hukl has joined #ruby
jrist-afk is now known as jrist
sagax has joined #ruby
lggr has joined #ruby
sagax has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
locriani has quit [Remote host closed the connection]
tbrock has quit [Remote host closed the connection]
bartj3 has quit []
dpk has joined #ruby
matrixise has joined #ruby
jeffreybaird has joined #ruby
jeffreybaird has left #ruby [#ruby]
jeffreybaird has joined #ruby
frogprince has joined #ruby
gift has joined #ruby
gfontenot has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
matrixise has quit [Ping timeout: 246 seconds]
geekbri has joined #ruby
matrixise has joined #ruby
lggr has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
ephemerian has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
GoGoGarrett has joined #ruby
Coolhand_ has joined #ruby
locriani has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has quit [Ping timeout: 246 seconds]
devdazed has joined #ruby
Drewch has quit [Excess Flood]
Nisstyre_ has quit [Quit: Leaving]
Synthead has joined #ruby
Drewch has joined #ruby
uokesita has joined #ruby
asobrasil has joined #ruby
ltsstar has joined #ruby
adambeynon has joined #ruby
lggr has joined #ruby
hukl has quit [Remote host closed the connection]
hukl has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
frogprince has quit [Ping timeout: 246 seconds]
ttt has joined #ruby
hbpoison has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
ttt has quit [Ping timeout: 240 seconds]
hbpoison has quit [Client Quit]
Spooner has quit [Ping timeout: 268 seconds]
niklasb has joined #ruby
frogprince has joined #ruby
awarner has joined #ruby
chussenot has quit [Quit: chussenot]
<Xeago> any sed'ers?
<Muz> No, none whatsoever.
<Xeago> booh
<Xeago> neways, ncal -w | sed "s/.*/ & /;s/ $(date +%e) / [] / is cool
<Xeago> tho, it fails earlyyear
lggr has joined #ruby
stopbit has joined #ruby
areil has quit [Ping timeout: 246 seconds]
areil_ has joined #ruby
haxrbyte has joined #ruby
frogprince has quit [Ping timeout: 246 seconds]
mucker has quit [Quit: leaving]
uris has joined #ruby
bbttxu has quit [Quit: bbttxu]
busybox42 has quit [Quit: Leaving.]
jearvondharrie has quit [Remote host closed the connection]
busybox42 has joined #ruby
lledet has joined #ruby
crack_head has quit [Quit: Killed by BlackJac (Requested by panasync)]
iamjarvo has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<shevy> long live ruby!
imsplitbit has joined #ruby
frogprince has joined #ruby
lggr has joined #ruby
chussenot has joined #ruby
Aristata has quit [Quit: Leaving.]
the_jeebster has joined #ruby
areil_ has quit []
iori has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
<the_jeebster> if I'm appending multiple items to a ruby set with <<, do the items need to be wrapped in an array or is simple comma delimitation ok?
<shevy> what is comma delimitation
linoj has joined #ruby
<shevy> "foo","bla" would not be valid ruby syntax
<the_jeebster> comma separation
ryanlecompte has joined #ruby
pricees has joined #ruby
<the_jeebster> s = Set.new
<the_jeebster> s << object_1, object_2
<the_jeebster> or does it have to be s << [object_1, object2]
<shevy> the ruby parser will error on the first
<hoelzro> the_jeebster: s << [object1, object2] adds the array to the set
<hoelzro> and is probably not what you want.
<shevy> with [] it works because you append an array object
justinmcp has quit [Remote host closed the connection]
<the_jeebster> ah I see how it works
<the_jeebster> I didn't realize I had to require it either so I could try it in irb :)
justinmcp has joined #ruby
Spooner has joined #ruby
PragCypher has joined #ruby
ananthakumaran has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
zz_chrismcg is now known as chrismcg
uris_ has joined #ruby
uris has quit [Read error: Connection reset by peer]
ghanima has joined #ruby
joshman_ has joined #ruby
yoklov has joined #ruby
hukl has quit [Quit: Leaving...]
ph^ has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
xclite has joined #ruby
arubin has joined #ruby
areil has joined #ruby
krawchyk_ has joined #ruby
nateberkopec has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
CannedCorn has joined #ruby
Animawish has joined #ruby
<CannedCorn> hey guys, so I'm trying to dynamically instantiate classes based on their a string passed to a function
krawchy__ has joined #ruby
<CannedCorn> with const_get
krawchyk has quit [Ping timeout: 248 seconds]
<CannedCorn> and it seems like float doesn't have a new function
Animawish has left #ruby [#ruby]
<Hanmac> numeric classes are build with Float(n) or Complex(n) or Rational(n) ...
krawchy__ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
bartj3 has joined #ruby
pricees has quit [Ping timeout: 260 seconds]
daniel_- has quit [Ping timeout: 246 seconds]
hukl has joined #ruby
arubin has quit [Quit: arubin]
lggr has joined #ruby
Appineer has quit [Remote host closed the connection]
jclem has joined #ruby
pricees has joined #ruby
<Synthead> I want to make this regex match every hostname in the test string here: http://rubular.com/r/oj7bByIc1e. The goal is to make an array of hostname strings. How can I do this?
<shevy> what is the requirement for those matches exactly
<shevy> what do they have in common
<shevy> leading 10. ?
<Synthead> shevy: (\d+\.){3}\d+\s+(.*$)\n
<shevy> I think for several matches, one usually uses .scan()
Zate has joined #ruby
<Synthead> shevy: yeah? I'll look it up
Zate has left #ruby [#ruby]
<shevy> you could perhaps split on newline, then iterate over each line, and apply your regex
Peter-W has quit [Quit: Leaving]
icooba has quit [Ping timeout: 256 seconds]
<shevy> and extract the matched content via $1 and $2
<Synthead> shevy: I'm looking for lines after "# Hosts I care about.\n" and before "\n\n"
<shevy> you need the full numerical part right?
mattyoho has quit [Quit: mattyoho]
headius has joined #ruby
<Synthead> shevy: I could .match that one then .scan it, but it seems a little hacky (what do you think)?
<Synthead> shevy: I'm looking for the hostnames
<shevy> ah for things like that, I use dumb variants. I build me a new array, after the keyword has been found, even without a regex :D
<Synthead> shevy: hahaha, awesome
<shevy> if the input is really as simple and as structured as that, then I would not bother with a regex
<shevy> I hate regexes, they force my brain to do extra work. I am lazy
<Synthead> shevy: but I liiiike regex :'( jk
<shevy> yeah, with a regex it could perhaps be done in one line alone
<Synthead> well, not really jk, but I'm indifferent
<Synthead> mostly
<Synthead> ha
uokesita has left #ruby ["Leaving"]
<shevy> but I have noticed it in my own code, when I dont use a complicated regex for ~a year, then look at that code, I dont quite understand what is going on from the regex alone
lggr has quit [Ping timeout: 246 seconds]
<shevy> so I usually document what the regex is doing
<shevy> but I still don't like it
<shevy> /.*# Hosts I care about.\n((\d+\.){3}\d+\s+(.*$)\n)*\n/
<shevy> quite hefty already :)
asteve has joined #ruby
<shevy> two named captures right? for $1 and $2
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
<jokar> shevy : hi
emanu has joined #ruby
<shevy> hi jokar
<shevy> are you still learning ruby
dpk has quit [Quit: Asleep at the keyboard.]
<jokar> shevy : i saw mruby in github,do you have any contact with creator of ruby?
<jokar> yes
<jokar> i change lesson 2
<shevy> I dont have any contact with matz, he lives in japan, that is like another planet man
frogprince_mac has joined #ruby
<jokar> shevy : can i send an email for you and explain some problem?
<shevy> but you can see that this is what he is doing lately
<shevy> mruby - mini ruby... eMbedded ruby
<shevy> jokar!!!
<shevy> cant you just type here...
<shevy> isolate the problem to the smallest thing that can be solved
<jokar> shevy : i can't,it is personal really
<jokar> it is a regular question
<jokar> not a logic problem or programming problem
<jokar> i need your opinion about a problem
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<shevy> I have no opinion man
<shevy> I am just someone who likes the language ruby
<jokar> shevy : :),but it is about a domain name
<jokar> you can help me
<shevy> I dont know anything about domain names
<Spooner> Never ask if you can ask. It just wastes a lot of time :D
<jokar> sorry
icooba has joined #ruby
lggr has joined #ruby
<shevy> I only know a bit about ruby
<shevy> ruby ruby ruby
bbttxu has joined #ruby
<shevy> Spooner knows more about ruby than I do though
<jokar> shevy : OK
krawchyk has joined #ruby
locriani has quit [Read error: Operation timed out]
krawchyk has quit [Remote host closed the connection]
<Xeago> what icon would you use for a nosql/kv-store when designing an architecture?
elico has joined #ruby
thone_ has joined #ruby
<Xeago> jokar: ask here or be gone, don't return otherwise
<shevy> a wooden table perhaps
philcrissman has joined #ruby
<Xeago> why wood
<shevy> perhaps with apple-ish glimmer
<hoelzro> a four cornered table
<hoelzro> with three legs
<shevy> dunno... I always associate some kind of bar or table with a store
<Xeago> I feel metal would be more suited
<CannedCorn> Hanmac so how would I call that manually
<shevy> perhaps something with a no-sql logo on it
<CannedCorn> I'm not sure what the internal mechanism is there
<shevy> Xeago, yeah perhaps... a plastic wood surface :))
imami|afk is now known as banseljaj
<CannedCorn> obviously initialize is called when you use #new
frogprince_mac has quit [Quit: Leaving...]
<CannedCorn> but what happens when you instantiate without new
<Xeago> CannedCorn: how do you instantiate without new?
moeSeth has joined #ruby
zigomir has quit [Quit: Leaving]
<Hanmac> CannedCorn something like this Object.send("Float","3")
quest88 has joined #ruby
joeycarmello has joined #ruby
dr_bob has joined #ruby
thone has quit [Ping timeout: 246 seconds]
LBRapid has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<shevy> CannedCorn .new should call .allocate, then .initialize
emanu has quit [Quit: emanu]
<shevy> Object.allocate # => #<Object:0x0000000334bf40>
<CannedCorn> Hanmac interesting
<CannedCorn> well allocate makes the space sure
<Hanmac> CannedCorn, its Kernel.send("Float","3")
<CannedCorn> ok, interesting
<Spaceghostc2c> shevy: Huh, never really used that.
<CannedCorn> cause it's built in
<CannedCorn> right?
<CannedCorn> i've had to do that to capture errors on initialization before
<CannedCorn> allocate then send "new")
<Spaceghostc2c> shevy: If only ruby were a bit more like objective-c in terms of object awareness.
peanuts___ has quit [Quit: peanuts___]
ttt has joined #ruby
freeayu has quit [Remote host closed the connection]
<shevy> yeah I never used .allocate in code I wrote either... for some reason, it seems useless for real code
LBRapid has quit [Client Quit]
<shevy> perhaps those crazy ones who traverse ObjectSpace and know the GC in and out need it
lggr has joined #ruby
mark_locklear has joined #ruby
LBRapid has joined #ruby
<Hanmac> look at that: ["Float","Integer","Array","String","Object"].map {|o|Kernel.respond_to?(o) ? Kernel.send(o,"0") : o.split('::').inject(Object,:const_get).new}
<Hanmac> => [0.0, 0, ["0"], "0", #<Object:0x00000000c38ae8>]
dhruvasagar has quit [Read error: Operation timed out]
<CannedCorn> shevy the usage i came accross was testing for errors in initialization
<CannedCorn> you would have to allocate an instance
axl_ has joined #ruby
<CannedCorn> then setup the test
<CannedCorn> and then send "initialize" essentially
<CannedCorn> it was sweet
<CannedCorn> ok so there isn't really any way to do what I want… i might want to use eval
LBRapid has quit [Client Quit]
<Hanmac> this is a list of Classes with can (or should be) called with classname() : Object.constants & Kernel.methods #=> [:String, :Integer, :Float, :Array, :Rational, :Complex]
<CannedCorn> Kernel.send works
ttt has quit [Ping timeout: 240 seconds]
cakehero_ has joined #ruby
wallerdev has joined #ruby
emanu has joined #ruby
mguy has left #ruby [#ruby]
cakehero has quit [Quit: Computer has gone to sleep.]
emanu has quit [Client Quit]
ssspiff has quit [Remote host closed the connection]
LBRapid has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
pdelgallego has quit [Quit: pdelgallego]
Guest95691 has quit [Quit: Leaving]
baphled has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
LBRapid has quit [Client Quit]
cakehero_ has quit [Ping timeout: 256 seconds]
xeronic has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
blazes816 has joined #ruby
ph^ has joined #ruby
lggr has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
<shevy> CannedCorn hmm
matrixise has quit [Ping timeout: 260 seconds]
mucker has joined #ruby
<shevy> oh
<shevy> what is the & again
<hoelzro> shevy: union
<shevy> intersection, which members are found in both ?
<shevy> ah ok
<hoelzro> er, intersection
<hoelzro> you're right
<shevy> I like the word union too
<hoelzro> it's pretty sweet.
<shevy> it reminds me of happy objects working together
<shevy> :)
<Spooner> Union is |
<shevy> a shame _why left... he could have made more of those why-cats figures explaining ruby
arubin has joined #ruby
matrixise has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<fir_ed> what does "::" mean in ruby?
iocor has joined #ruby
<Spaceghostc2c> Namespacing separator.
<fir_ed> is it the same as . in c#?
<fir_ed> ah
CodeVision has quit [Quit: WeeChat 0.3.8]
<Hanmac> its the same as in c++ too
triptec has joined #ruby
<Spaceghostc2c> fir_ed: I don't know personally.
<fir_ed> ty
bbttxu has quit [Ping timeout: 244 seconds]
aganov has quit [Quit: aganov]
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
mr_no has joined #ruby
krawchyk has joined #ruby
dpk has joined #ruby
xyzodiac has joined #ruby
vaclavt has quit [Quit: vaclavt]
locriani has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
bsmith has quit [Ping timeout: 246 seconds]
ryanlecompte has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
CodeVision has joined #ruby
beit has joined #ruby
bartj3 has quit []
QKO_ has quit [Read error: Connection reset by peer]
haxrbyte has quit [Remote host closed the connection]
QKO has joined #ruby
mikepack has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
xeronic has joined #ruby
quest88 has quit [Quit: quest88]
whitenoise has joined #ruby
Soul_Est has joined #ruby
<shevy> hehe
<shevy> Hanmac is our C++ guru
<shevy> indeed
<shevy> matz stole a bit of C++ did he not?
<shevy> ::foo()
<shevy> cout << "yippie"
<moshee> be glad he copied the << part instead of the cout part
<Hanmac> ruby has "function-pointer" too ... but no nice syntax for that :(
chussenot has quit [Quit: chussenot]
jprovazn is now known as jprovazn_away
vectorshelve has joined #ruby
mmitchell has joined #ruby
h4mz1d has joined #ruby
<cout> I don't want matz to copy me.
ckrailo has joined #ruby
Spooner has quit [Ping timeout: 256 seconds]
elux has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
pdtpatrick has quit [Quit: pdtpatrick]
pdtpatrick has joined #ruby
<Hanmac> [1,[],"string", :sym].map{|m| Object.instance_method(:to_s).bind(m).call} #=> ["#<Fixnum:0x00000000000003>", "#<Array:0x00000000e1e5b0>", "#<String:0x00000000e1e588>", "#<Symbol:0x0000000055c00e>"]
havenn has joined #ruby
monkegji_ has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
diegoviola has joined #ruby
diegoviola has quit [Client Quit]
mmitchell has quit [Remote host closed the connection]
Aaaarg has joined #ruby
Aaaarg has quit [Excess Flood]
jwmann has joined #ruby
mmitchell has joined #ruby
lggr has joined #ruby
Aaaarg has joined #ruby
Aaaarg has quit [Excess Flood]
Aaaarg has joined #ruby
davidcelis has quit [Quit: K-Lined.]
monkegjinni has joined #ruby
adam__ has quit [Remote host closed the connection]
iocor has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
AlecTaylor has joined #ruby
baroquebobcat has joined #ruby
<AlecTaylor> $gem install rails // 3 hours later!
lggr has quit [Ping timeout: 268 seconds]
Aaaarg_ has joined #ruby
mucker has quit [Quit: leaving]
zleslie has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
justsee has quit [Client Quit]
<zleslie> Hi. I am stuck. Why is it that when I do File.read('/etc/make.conf') =~ /WITH_ARG/, I never get a match, even though File.read('/etc/make.conf') clearly contains the string WITH_ARG?
chussenot has joined #ruby
locriani has quit [Ping timeout: 244 seconds]
<heftig> zleslie: try /WITH_ARG/m
<AlecTaylor> Is Ruby 1.9.3p194 the latest?
Aaaarg has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
jclem has left #ruby ["Linkinus - http://linkinus.com"]
<zleslie> heftig: still same result.
<zleslie> => 0
<zleslie> which I take to man zero matches
<heftig> no
locriani has joined #ruby
<heftig> it means matched at position 0
Aaaarg_ is now known as Aaaarg
JohnBat26 has quit [Ping timeout: 264 seconds]
<zleslie> heftig: ah, wonderful
<heftig> a return of nil would indicate unmatched
bradhe has quit [Remote host closed the connection]
rippa has joined #ruby
<zleslie> Much better, thank you. I was using readlines before, which returns false.
havenn has quit [Remote host closed the connection]
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
imsplitbit has left #ruby [#ruby]
dustinleer has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<zleslie> Works like a charm. Thanks again heftig
zleslie has left #ruby ["WeeChat 0.3.7"]
RegEchse has joined #ruby
deadghost has quit [Read error: Operation timed out]
lggr has quit [Ping timeout: 248 seconds]
banseljaj has quit [Excess Flood]
maesbn has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
banseljaj has joined #ruby
bbttxu has joined #ruby
arubin has quit [Quit: arubin]
maesbn has joined #ruby
bricker has joined #ruby
AlecTaylor has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
lggr has joined #ruby
yakitori has quit [Ping timeout: 268 seconds]
Shamgar_ is now known as Shamgar
maesbn has quit [Read error: Operation timed out]
workmad3 has quit [Ping timeout: 240 seconds]
larissa has quit [Quit: Leaving]
s14 has joined #ruby
adac has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
Cache_Money has quit [Ping timeout: 268 seconds]
macmartine has joined #ruby
xpen has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
sepp2k has joined #ruby
philcrissman has quit [Remote host closed the connection]
pitty has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
ttt has joined #ruby
Shamgar has quit [Changing host]
Shamgar has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
hoelzro is now known as hoelzro|away
mohits has quit [Ping timeout: 246 seconds]
elsifaka has quit [Quit: Veloma e!]
lggr has joined #ruby
bradhe has joined #ruby
deadghost has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
<neersighted> so, which would you guys recomend to comment my code:
<neersighted> TomDoc or YARD?
<neersighted> I've been using YARD, but TomDoc looks pretty nice
<neersighted> (but it's VERY strict about syntax and order)
dustinleer has quit [Remote host closed the connection]
mmitchell has joined #ruby
dustinleer has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
dustinleer has quit [Remote host closed the connection]
philcrissman has joined #ruby
ffranz has joined #ruby
flagg0204 has quit [Quit: leaving]
Eldariof18-ru has quit [Ping timeout: 246 seconds]
aantix has joined #ruby
dustinleer has joined #ruby
ryanlecompte has joined #ruby
uris_ has quit [Quit: Lost terminal]
lggr has quit [Ping timeout: 248 seconds]
senny has quit [Remote host closed the connection]
frogprince has quit [Remote host closed the connection]
fra000 has joined #ruby
baphled has joined #ruby
frogprince has joined #ruby
lggr has joined #ruby
jwmann has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 246 seconds]
zommi has left #ruby [#ruby]
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
MissionCritical has quit [Ping timeout: 252 seconds]
reuf has quit [Quit: Leaving]
bobbbo has quit [Quit: bobbbo]
lggr has quit [Ping timeout: 246 seconds]
bbttxu has quit [Ping timeout: 248 seconds]
<emsilva> Morning. I'm using bundle for setting up my gems, I have added tzinfo gem on it and installed successfully. If I go to "bundle console" and try to "TZInfo:Timezone… " it works successfully. When I try the same code on my sinatra application which is using the same bundler setup, it gives me a NameError "uninitialized constant Sinatra::Application::TZInfo" any idea why or on what I could do different? Thanks.
matrixise has quit [Ping timeout: 246 seconds]
h4mz1d has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
IrishGringo has joined #ruby
carloslopes has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
fra000 has quit [Quit: Leaving]
jgrevich has joined #ruby
deadghost has quit [Ping timeout: 264 seconds]
ewag_ has joined #ruby
hukl_ has joined #ruby
hukl_ has quit [Client Quit]
zeromodulus has quit [Read error: Connection reset by peer]
flagg0204 has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
zeromodulus has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
br4ndon has joined #ruby
alanp has joined #ruby
<blazes816> emsilva: have you required the gem into your sinatra app?
hukl has quit [Ping timeout: 256 seconds]
<emsilva> blazes816: I have not, if I do, it gives me a load error. The weird part is that if I try to "require 'tzinfo'" on bundle console, it doesn't work either (the require) but I can use the gem without a problem.
<blazes816> what load error?
flype has joined #ruby
<blazes816> have you tried require 'ruby gems' first?
<blazes816> require 'ruby gems'; require 'tzinfo';
<emsilva> blazes816: running 1.9.3, shouldn't require ruby gems, right?
<Hanmac> its 'rubygems' not 'ruby gems'
<blazes816> i have no idea why i typed that space
mercwithamouth has joined #ruby
<blazes816> twice
MissionCritical has joined #ruby
lggr has joined #ruby
<emsilva> Are you on a mac? It auto corrects :P
<blazes816> ah
<blazes816> that'd be it
deadghost has joined #ruby
<blazes816> (new to macs)
<blazes816> i still have issues without requiring rubygems first sometimes
<blazes816> not sure if that's the issue or not, just figured it'd be good to rule out
jeff_sebring has joined #ruby
`brendan has quit [Read error: Connection reset by peer]
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
ananthakumaran has quit [Quit: Leaving.]
geekbri has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 268 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
diegoviola has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
ianbrandt has joined #ruby
robertotauille has quit [Ping timeout: 246 seconds]
ianbrandt has quit [Excess Flood]
timonv has quit [Remote host closed the connection]
Iszak has quit [Quit: User has gone to sleep.]
xyzodiac has joined #ruby
frogprince_mac has joined #ruby
geekbri has joined #ruby
ianbrandt has joined #ruby
friskd has joined #ruby
lggr has joined #ruby
pricees has quit [Read error: Connection reset by peer]
matthewrobbins has quit [Ping timeout: 248 seconds]
jso has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
arubin has joined #ruby
joofsh has joined #ruby
daniel_- has joined #ruby
artOfWar has joined #ruby
maletor has joined #ruby
bradhe_ has joined #ruby
fantazo has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 264 seconds]
ssspiff has joined #ruby
ssspiff has quit [Changing host]
ssspiff has joined #ruby
Xeago_ has quit [Remote host closed the connection]
GoHuyGo has joined #ruby
bradhe__ has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
Virunga has quit [Remote host closed the connection]
dpk has quit [Ping timeout: 268 seconds]
davidcelis has joined #ruby
ewag_ has quit [Ping timeout: 256 seconds]
bradhe_ has quit [Ping timeout: 248 seconds]
jjbohn has joined #ruby
mmitchell has quit [Remote host closed the connection]
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
<daniel_-> anyone uses whenever gem ? I want to put a conditional in my command in the config file -> command "if [ -d "pathtodir"]; then ..... fi". BUT obviously it doesnt work because of the many quotation marks :)
vderyagin has quit [Remote host closed the connection]
lyaunzbe has quit [Ping timeout: 246 seconds]
wereHamster has quit [Changing host]
wereHamster has joined #ruby
whitenoise has quit [Ping timeout: 246 seconds]
<daniel_-> i tried 'pathtodir' instead of "pathtodir". any suggestions?
adambeynon has quit [Quit: Computer has gone to sleep.]
mwilson` has joined #ruby
rburton- has joined #ruby
dpk has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
hukl has joined #ruby
chrismcg is now known as zz_chrismcg
arubin has quit [Quit: arubin]
shevy has quit [Ping timeout: 246 seconds]
ttt has joined #ruby
etherdev has joined #ruby
philcrissman has quit [Remote host closed the connection]
chussenot has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
emsilva has quit [Read error: Connection reset by peer]
sheerun has quit [Quit: sheerun]
Spooner has joined #ruby
QKO_ has joined #ruby
tgraham has quit [Quit: Linkinus - http://linkinus.com]
JohnBat26 has joined #ruby
punkrawkR has joined #ruby
lggr has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
ayawaska has quit [Ping timeout: 240 seconds]
etherdev has quit [Quit: etherdev]
ncr100 has joined #ruby
insulator has joined #ruby
etherdev has joined #ruby
QKO has quit [Ping timeout: 264 seconds]
baphled has quit [Ping timeout: 248 seconds]
Virunga has joined #ruby
baphled has joined #ruby
voodoofish430 has joined #ruby
mattyoho has joined #ruby
yoklov has quit [Quit: computer sleeping]
reuf has joined #ruby
etherdev has quit [Client Quit]
ryanf has joined #ruby
etherdev has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
hukl has quit [Quit: Leaving...]
hadees has joined #ruby
hadees has quit [Remote host closed the connection]
ayawaska has joined #ruby
bthesorceror has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
lucianosousa has joined #ruby
mmitchell has joined #ruby
friskd has quit [Quit: friskd]
mr_no has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
robertotauille has joined #ruby
stkowski has joined #ruby
lyaunzbe has joined #ruby
mr_no has joined #ruby
Soul_Est has quit [Quit: WeeChat 0.3.8]
xeronic has quit [Ping timeout: 245 seconds]
yoklov has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
ffranz has quit [Ping timeout: 245 seconds]
bthesorceror has quit [Quit: bthesorceror]
chrisja has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
reuf has quit [Quit: Leaving]
cakehero has joined #ruby
etherdev has quit [Quit: etherdev]
mk03 has joined #ruby
null- has left #ruby [#ruby]
flype has quit [Read error: Connection reset by peer]
lggr has joined #ruby
bbttxu has joined #ruby
flype has joined #ruby
ananthakumaran has joined #ruby
sheerun has joined #ruby
eldariof has joined #ruby
ffranz has joined #ruby
arubin has joined #ruby
elico has quit [Read error: Connection reset by peer]
timmow has quit [Ping timeout: 252 seconds]
bthesorceror has joined #ruby
carloslopes has joined #ruby
mr_no has quit [Ping timeout: 240 seconds]
gnarmis has quit [Quit: gnarmis]
mmitchell has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
nateberkopec has quit [Quit: Leaving...]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<rburton-> What's a good solution to download a large file to a file locally via ruby that won't be so memory intense?
<rburton-> Are there any clean API's out there that handle this?
lggr has joined #ruby
adamkittelson has joined #ruby
banisterfiend has joined #ruby
jso has quit []
br4ndon has joined #ruby
mmitchell has joined #ruby
adamkittelson has quit [Remote host closed the connection]
dakine has quit [Quit: Leaving]
stopbit has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
pitty has quit [Ping timeout: 256 seconds]
elico has joined #ruby
hadees has joined #ruby
stopbit has joined #ruby
mr_no has joined #ruby
jrist is now known as jrist-afk
aces1up has quit [Remote host closed the connection]
aces1up has joined #ruby
Serosyn has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Vainoharhainen has quit [Quit: Leaving...]
areil has quit [Remote host closed the connection]
Serosyn has left #ruby [#ruby]
xyzodiac has joined #ruby
lggr has joined #ruby
xyzodiac has quit [Max SendQ exceeded]
xyzodiac has joined #ruby
eignerchris has joined #ruby
notVert has joined #ruby
gnarmis has joined #ruby
sr___ has joined #ruby
hukl has joined #ruby
hukl has quit [Remote host closed the connection]
xyzodiac has quit [Client Quit]
dpk has joined #ruby
uris has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
sepp2k1 has joined #ruby
jso has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
fr00ty_l00ps has joined #ruby
c0rn_ has joined #ruby
<fr00ty_l00ps> does anybody know about a portable GUI toolkit that has more power than tk?
MissionCritical has quit [Ping timeout: 244 seconds]
<Hanmac> fr00ty_l00ps: i making an new wx-binding but its not finish yet
<fr00ty_l00ps> Well, can a nooby high-school freshman help in any way?
emmanuelux has joined #ruby
mmitchell has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
adamkittelson has joined #ruby
<shevy> fr00ty_l00ps hmm "power", define that
<shevy> otherwise, ruby-gnome bindings are better than ruby-tk bindings
a_a_g has joined #ruby
<shevy> and Hanmac will sadly not give you documentation *grin*
<fr00ty_l00ps> I need a little more juice than just a tk canvas, you know what I mean?
<Hanmac> https://github.com/Hanmac/rwx << you could look at this ... this is what i allready have
<shevy> ruby-gnome looks much better than tk, I can assure you that
ttt has joined #ruby
JarJar has joined #ruby
<shevy> Hanmac, you need screenshots :)
yoklov has quit [Quit: computer sleeping]
etherdev has joined #ruby
lggr has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<blazes816> dat readme
<fr00ty_l00ps> oh, ummm, haha, i have no clue about anything dealing with anything non-Ruby
<fr00ty_l00ps> lol
<fr00ty_l00ps> well, i used to do a lot of java
<shevy> well see
<shevy> the toolkits are 80% the same
<shevy> once you know one, you can use them all
<shevy> (in ruby at least)
<fr00ty_l00ps> because most of them are based on shoes... -_-
<shevy> ruby-qt for qt4 looks best, but last time I tried to get it to work, I failed
<lucianosousa> why not native?
<fr00ty_l00ps> (non-portable doesnt work at my school)
<shevy> shoes never worked for me
<shevy> fr00ty_l00ps, there at http://ruby-gnome2.sourceforge.jp/?News_20120829_1 check the download link "ruby gnome all"
<fr00ty_l00ps> okay
ttt has quit [Ping timeout: 240 seconds]
<fr00ty_l00ps> you meant the "ruby-gnome2-all-1.1.5.tar.gz" link, right?
<shevy> yeah
<fr00ty_l00ps> okay, lemme unarchive it quick...
lggr has quit [Ping timeout: 246 seconds]
yoklov has joined #ruby
<fr00ty_l00ps> alright, now what do i do with it (anticipation face)
<shevy> if you have the gnome stuff installed, you should be able to easily install it all
otters has quit [Ping timeout: 268 seconds]
<fr00ty_l00ps> :)
<shevy> well first
<shevy> do you have the gnome stuff or gtk stuff
<shevy> most importantly
<shevy> atk, pango, and gtk
love_color_text has joined #ruby
<fr00ty_l00ps> im on my schools win7
<shevy> atk is tiny, pango is medium, gtk is quite large
<shevy> hmm
<shevy> I am on linux
<fr00ty_l00ps> and they dont like their files on the drive being altered by aplications
<shevy> haha
<fr00ty_l00ps> wont let the applications run
<shevy> oh dear hmmm
<shevy> anyway
chrishunt has joined #ruby
<fr00ty_l00ps> so it has to be %100 portable\
<shevy> the download is not totally useless, there are lots of .rb examples
<shevy> well
<fr00ty_l00ps> haha
<fr00ty_l00ps> Xd
<fr00ty_l00ps> XD
<shevy> ruby-gnome runs for me on my win 7 laptop
Guest79144 has joined #ruby
<shevy> but I spend 99% of my time with linux
<Guest79144> ciao
<shevy> let me try to remember how I made it work...
Russell^^ has joined #ruby
Guest79144 has left #ruby [#ruby]
<fr00ty_l00ps> yeah, i have an osx laptop at home, came with ruby, tk, the whole shebang to begin with
<fr00ty_l00ps> and everything just works
sneakyness_wk has joined #ruby
mr_no has quit [Ping timeout: 264 seconds]
<shevy> hmm
<shevy> I think tk works on windows too
<shevy> AND IT IS SO BEAUTIFUL
dpk has quit [Quit: Asleep at the keyboard.]
mikeg has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
<fr00ty_l00ps> but a canvas can only get you so far ^^
<wmoxam> shevy: the newest version of TK has a much better style AFAICT
fastred has joined #ruby
<shevy> I know, I heard that too
<shevy> I did not dare to try
jastix has quit [Quit: Leaving]
lggr has joined #ruby
bobbbo has joined #ruby
regedarek has joined #ruby
<shevy> hmmm fr00ty_l00ps
<shevy> there must be windows bindings
<fr00ty_l00ps> bindings?
<regedarek> hmm, but how to return only users using where and join like using map self.rsvps.map {|rsvp| rsvp.user }
<fr00ty_l00ps> what are those?
MissionCritical has joined #ruby
<shevy> man... I do not remember how I used ruby-gnome on windows... but I did! :(
<fr00ty_l00ps> haha
<shevy> aha
<shevy> this could be an old link:
<fr00ty_l00ps> darn microsoft
<shevy> let me look for another one
<fr00ty_l00ps> lemme try it first ^^
<shevy> well 0.16 is ancient
<shevy> but perhaps it works for you
<shevy> then you can look at an OLD ruby-gnome app
dpk has joined #ruby
<fr00ty_l00ps> nope, not portable... :(
<fr00ty_l00ps> ill take a screenshot of what happens at my school
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
daniel_- has quit [Ping timeout: 246 seconds]
<shevy> wait
<fr00ty_l00ps> http://imgur.com/IbXno
<fr00ty_l00ps> lol
<fr00ty_l00ps> it happens SOOOOOOO much
<RailWolf> anyone heard of anything newer for MTP than the 2007 rubymtp on rubyforge
<shevy> aha
<shevy> you can not install anything fr00ty_l00ps ? not even to your home dir?
<fr00ty_l00ps> nope
<fr00ty_l00ps> has to be %100 portable
<fr00ty_l00ps> well
<shevy> hmmmm
headius has quit [Quit: headius]
<fr00ty_l00ps> unless i can go and set it up on another computer
<fr00ty_l00ps> and copy it over
<fr00ty_l00ps> that can work too sometimes
<shevy> I think you need to install files somewhere
<fr00ty_l00ps> :/
<shevy> no idea how to make anything run in RAM only
<shevy> let's face it
<fr00ty_l00ps> i put everything on a flashdrive
<shevy> YOU ARE IN A CAGE, A PRISONER.
<shevy> aha
<fr00ty_l00ps> i know right
<shevy> hmmm
<fr00ty_l00ps> i have ruby on my flashdrive
lggr has quit [Ping timeout: 240 seconds]
<shevy> I think by default ruby-gnome tries to register something or such
<fr00ty_l00ps> cmd prompt portable
<shevy> hehe
<shevy> good old cmd prompt
<shevy> prince of persia DOS days...
flype has quit [Quit: Computer has gone to sleep.]
<fr00ty_l00ps> i mean the usual windows prompt
<fr00ty_l00ps> its a lot easier then to locate and run my ruby programs
fermion has quit [Read error: Connection reset by peer]
fermion has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
flype has joined #ruby
lggr has joined #ruby
<fr00ty_l00ps> man, and they couldnt put this channel on conference mode to hide the comings and goings...
<fr00ty_l00ps> haha
<shevy> which channel
<fr00ty_l00ps> this one
<shevy> this can be set by your client too
<shevy> my client ignores all leavings and joinings
<fr00ty_l00ps> i use webirc XD
<shevy> POOR MAN
<fr00ty_l00ps> haha
<shevy> but fear not
<shevy> there are always people who suffer like you
<shevy> sometimes, they are clever and have found a solution
<fr00ty_l00ps> i did last year.
<fr00ty_l00ps> now im considered a threat
<fr00ty_l00ps> XD
apok has joined #ruby
<shevy> hehe
alvaro_o has joined #ruby
emmanuelux has joined #ruby
Spooner has quit [Ping timeout: 260 seconds]
otters has joined #ruby
tehdekan has joined #ruby
<fr00ty_l00ps> lol, the computer opens xml files in IE XD
linguini has joined #ruby
jimeh2 has quit [Ping timeout: 244 seconds]
caveat- has quit [Ping timeout: 246 seconds]
chrisja has quit [Quit: leaving]
stan_man_can has joined #ruby
<shevy> man
<shevy> if I would have a gun
<shevy> I would helpfully put you out of your misery right about now
<stan_man_can> Is there a way with mysql2 to kind of map an object or struct to a database query?
<fr00ty_l00ps> haha, thanks for the offer XD
JohnBat26 has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<linguini> What's the usual way to profile ruby1.9?
bluenemo has quit [Remote host closed the connection]
lggr has joined #ruby
kia2389 has joined #ruby
kia2389 has quit [Client Quit]
flype has quit [Quit: Computer has gone to sleep.]
mmitchell has joined #ruby
<shevy> I think via benchmark
rburton- has quit [Quit: Linkinus - http://linkinus.com]
nachtvos has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
slicslak has joined #ruby
tsuru has joined #ruby
Agis__ has joined #ruby
mikeg has quit [Ping timeout: 245 seconds]
love_color_text has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
caveat- has joined #ruby
IrishGringo has joined #ruby
joelsbeard has joined #ruby
lggr has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
baphled has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
cascalheira has quit [Quit: Leaving...]
arubin has quit [Quit: arubin]
vlad_starkov has joined #ruby
fuleo has quit []
fermion has quit [Quit: P]
jimeh2 has joined #ruby
timonv has joined #ruby
vlad_sta_ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
xeronic has joined #ruby
daniel_- has joined #ruby
bluenemo has quit [Remote host closed the connection]
fr00ty_l00ps has quit [Quit: Page closed]
vlad_starkov has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
ghanima has quit [Remote host closed the connection]
s0ber_ has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
QKO has joined #ruby
RudyValencia- has joined #ruby
gregorg_taf has joined #ruby
<asteve> method_a(:symbol => string_without_quotes) or method_a(:symbol => 'string_with_quotes')?
Tearan has joined #ruby
pettsson has joined #ruby
Spaceghostc2c_ has joined #ruby
Spaceghostc2c_ has quit [Changing host]
Spaceghostc2c_ has joined #ruby
vlad_sta_ has quit [Ping timeout: 248 seconds]
<deryl> you need the quotes to delineate the string
vlad_starkov has joined #ruby
brahman_ has joined #ruby
Hanmac1 has joined #ruby
pitty has joined #ruby
<deryl> ' means do no interpolation and just use the string as is, " means do interpolation and use the resulting string
wpaulson has joined #ruby
marioooo has joined #ruby
thone has joined #ruby
<asteve> deryl: thank you, that's what I thought
<deryl> thats if you have a variable you want interpolated that is. (e.g "Hi there, #{name}" )
Drager_ has joined #ruby
<deryl> asteve: no problem :)
ffranz1 has joined #ruby
baphled has joined #ruby
pjr_ has joined #ruby
swarley_ has joined #ruby
stan_man_can_ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Drager_ has quit [Changing host]
Drager_ has joined #ruby
fr0gprince_ has joined #ruby
lyaunzbe has quit [Read error: Operation timed out]
pnbeast has joined #ruby
rcsheets_ has joined #ruby
ephemerian has quit [Ping timeout: 268 seconds]
vlad_sta_ has joined #ruby
heftig_ has joined #ruby
heftig has quit [Disconnected by services]
heftig_ is now known as heftig
ttt has joined #ruby
jbpros_ has joined #ruby
dr_bob_ has joined #ruby
m_3_ has joined #ruby
flagg0205 has joined #ruby
jrist-afk is now known as jrist
lledet_ has joined #ruby
mfridh_ has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
no_i_wont_ has joined #ruby
lggr has joined #ruby
jsebring has joined #ruby
chetan-_ has joined #ruby
BrokenCog has quit [Quit: leaving]
hemanth has quit [Read error: Connection reset by peer]
RudyValencia has quit [Read error: Connection reset by peer]
QKO_ has quit [Ping timeout: 245 seconds]
s0ber has quit [Ping timeout: 245 seconds]
gregorg has quit [Read error: Connection reset by peer]
Spaceghostc2c has quit [Ping timeout: 245 seconds]
Drager has quit [Ping timeout: 245 seconds]
stan_man_can has quit [Ping timeout: 245 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
jbpros has quit [Ping timeout: 245 seconds]
mariooo has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 245 seconds]
brahman has quit [Ping timeout: 245 seconds]
thone_ has quit [Ping timeout: 245 seconds]
ffranz has quit [Ping timeout: 245 seconds]
pjr has quit [Ping timeout: 245 seconds]
flagg0204 has quit [*.net *.split]
Virunga has quit [*.net *.split]
jeff_sebring has quit [*.net *.split]
frogprince has quit [*.net *.split]
aces1up has quit [*.net *.split]
ianbrandt has quit [*.net *.split]
triptec has quit [*.net *.split]
dr_bob has quit [*.net *.split]
CodeVision has quit [*.net *.split]
yalue has quit [*.net *.split]
lledet has quit [*.net *.split]
notwen has quit [*.net *.split]
joshman_ has quit [*.net *.split]
Voxxit has quit [*.net *.split]
dwon has quit [*.net *.split]
pfaff has quit [*.net *.split]
nykac has quit [*.net *.split]
Guest14702 has quit [*.net *.split]
mfridh has quit [*.net *.split]
m_3 has quit [*.net *.split]
perry has quit [*.net *.split]
lepht has quit [*.net *.split]
chetan- has quit [*.net *.split]
wunz has quit [*.net *.split]
no_i_wont has quit [*.net *.split]
klaas has quit [*.net *.split]
rcsheets has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
mikalv has quit [*.net *.split]
Spaceghostc2c_ is now known as Spaceghostc2c
lledet_ is now known as lledet
rcsheets_ is now known as rcsheets
s0ber_ is now known as s0ber
stan_man_can_ is now known as stan_man_can
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
mattyoho has quit [Quit: mattyoho]
hemanth has joined #ruby
CodeVision has joined #ruby
mikalv has joined #ruby
aces1up has joined #ruby
nykac has joined #ruby
triptec has joined #ruby
Virunga has joined #ruby
notwen has joined #ruby
50UABP4SR has joined #ruby
wunz has joined #ruby
KarlHungus has joined #ruby
dwon has joined #ruby
lepht has joined #ruby
klaas has joined #ruby
dr_bob has joined #ruby
yalue has joined #ruby
Voxxit has joined #ruby
ssspiff has quit [Ping timeout: 264 seconds]
dr_bob has quit [Ping timeout: 250 seconds]
perryh has joined #ruby
vlad_sta_ has quit [Ping timeout: 260 seconds]
pfaff has joined #ruby
joshman_ has joined #ruby
stan_man_can has quit [Quit: stan_man_can]
Niamkik has joined #ruby
mmitchell has quit [Remote host closed the connection]
Xeago has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
chetan-_ has quit [Client Quit]
chetan- has joined #ruby
iamjarvo has joined #ruby
kirun has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
sspiff has joined #ruby
sspiff has joined #ruby
stan_man_can has joined #ruby
mikeg has joined #ruby
cwgabel has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
gearahol_ has joined #ruby
yxhvuud has joined #ruby
fyolnis__ has joined #ruby
s0ber_ has joined #ruby
stan_man_can has quit [Client Quit]
savage- has joined #ruby
devdazed_ has joined #ruby
bapa_ has joined #ruby
vlad_starkov has joined #ruby
davidpk has joined #ruby
davidcelis_ has joined #ruby
love_color_text has joined #ruby
eldar has joined #ruby
dpk has quit [Disconnected by services]
davidpk is now known as dpk
swistak35_ has joined #ruby
mk03_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
headius has joined #ruby
cwgabel has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
lggr has joined #ruby
veer has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
geekbri_ has joined #ruby
veer is now known as Guest96423
nonotza has joined #ruby
BrokenCo1 has joined #ruby
duard_ has joined #ruby
fr0gprince_ is now known as frogprince
gearaholic has joined #ruby
gearaholic has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Ping timeout: 246 seconds]
berserkr has quit [Ping timeout: 246 seconds]
Drewch has quit [Ping timeout: 246 seconds]
davidcelis has quit [Ping timeout: 246 seconds]
acrocity has quit [Ping timeout: 246 seconds]
KindTwo has quit [Ping timeout: 246 seconds]
daniel_- has quit [Ping timeout: 246 seconds]
gnarmis has quit [Ping timeout: 246 seconds]
mk03 has quit [Ping timeout: 246 seconds]
chendo_ has quit [Ping timeout: 246 seconds]
gfontenot has quit [Ping timeout: 246 seconds]
nacengineer has quit [Ping timeout: 246 seconds]
swistak35 has quit [Ping timeout: 246 seconds]
rcsheets has quit [Ping timeout: 246 seconds]
ryanlecompte has quit [Ping timeout: 246 seconds]
eldariof has quit [Ping timeout: 246 seconds]
duard has quit [Ping timeout: 246 seconds]
\13k has quit [Ping timeout: 246 seconds]
klip has quit [Ping timeout: 246 seconds]
kstephens has quit [Ping timeout: 246 seconds]
tchebb1 has quit [Ping timeout: 246 seconds]
kaichanvong has quit [Ping timeout: 246 seconds]
linguini has quit [Ping timeout: 246 seconds]
xclite has quit [Ping timeout: 246 seconds]
PragCypher has quit [Ping timeout: 246 seconds]
fyolnish has quit [Ping timeout: 246 seconds]
_veer has quit [Ping timeout: 246 seconds]
Jellyg00se has quit [Ping timeout: 246 seconds]
zodiak has quit [Ping timeout: 246 seconds]
frogstarr78 has quit [Ping timeout: 246 seconds]
Gadgetoid_ has quit [Ping timeout: 246 seconds]
alup has quit [Ping timeout: 246 seconds]
fbernier has quit [Ping timeout: 246 seconds]
bapa has quit [Ping timeout: 246 seconds]
afat has quit [Ping timeout: 246 seconds]
s0ber has quit [Ping timeout: 246 seconds]
geekbri has quit [Ping timeout: 246 seconds]
BrokenCog has quit [Ping timeout: 246 seconds]
br4ndon has quit [Ping timeout: 246 seconds]
faen has quit [Ping timeout: 246 seconds]
mattp_ has quit [Ping timeout: 246 seconds]
chussenot_ has joined #ruby
koshii has quit [Ping timeout: 246 seconds]
etank has quit [Ping timeout: 246 seconds]
mattp_ has joined #ruby
daniel_- has joined #ruby
afat has joined #ruby
chussenot_ has quit [Client Quit]
klip has joined #ruby
s0ber_ is now known as s0ber
cw has joined #ruby
chendo_ has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
sepp2k1 has quit [Ping timeout: 246 seconds]
radic has quit [Ping timeout: 246 seconds]
nacengineer has joined #ruby
gfontenot has joined #ruby
afat is now known as Guest63912
linguini has joined #ruby
acrocity has joined #ruby
tchebb has joined #ruby
<Hanmac1> yeah we had 666 people there :D
fbernier has joined #ruby
koshii has joined #ruby
Hanmac1 is now known as Hanmac
linguini has left #ruby [#ruby]
kstephens has joined #ruby
ij has quit [Read error: Connection reset by peer]
Gadgetoid_ has joined #ruby
berserkr has joined #ruby
frogstarr78 has joined #ruby
radic has joined #ruby
joofsh has quit [Ping timeout: 246 seconds]
PragCypher has joined #ruby
sepp2k has joined #ruby
nacengineer has left #ruby [#ruby]
\13k has joined #ruby
alup has joined #ruby
joofsh has joined #ruby
faen has joined #ruby
zodiak has joined #ruby
xclite has joined #ruby
Drewch has joined #ruby
sepp2k has quit [Remote host closed the connection]
deryl has quit [Quit: Leaving.]
sailias has quit [Ping timeout: 240 seconds]
elux has quit [Read error: Connection reset by peer]
elux_ has joined #ruby
<shevy> evil
chussenot has quit [Ping timeout: 264 seconds]
robustus has quit [Ping timeout: 244 seconds]
Agis__ is now known as yetzze
gearahol_ has left #ruby [#ruby]
psino has quit [Ping timeout: 244 seconds]
mmercer has quit [Ping timeout: 244 seconds]
<Hanmac> shevy maybe i have an get_animation("name") method ... should it raise an error or silence return nil?
mr-rich has quit [Ping timeout: 240 seconds]
jso has quit []
jim_cooley has quit [Ping timeout: 244 seconds]
sirecote has quit [Ping timeout: 244 seconds]
Azure has quit [Ping timeout: 244 seconds]
stan_man_can has joined #ruby
rakunHo has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
BIGX333 has quit [Ping timeout: 244 seconds]
robustus has joined #ruby
Guedes has quit [Excess Flood]
Azure has joined #ruby
Targen has joined #ruby
jim_cooley has joined #ruby
Guedes has joined #ruby
mmercer has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
DarthGandalf has quit [Ping timeout: 244 seconds]
Guedes has quit [Changing host]
Guedes has joined #ruby
Azure has quit [Changing host]
Azure has joined #ruby
Synthead has joined #ruby
lggr has joined #ruby
luckyruby has joined #ruby
JStoker has quit [Excess Flood]
DarthGandalf has joined #ruby
davidpk has joined #ruby
psino_ has joined #ruby
rcsheets has joined #ruby
kaichanvong has joined #ruby
wallerdev has quit [Ping timeout: 264 seconds]
wallerdev_ has joined #ruby
dpk has quit [Disconnected by services]
davidpk is now known as dpk
jrist is now known as jrist-mtg
ianbrandt has joined #ruby
linoj has quit [Ping timeout: 268 seconds]
adambeynon has joined #ruby
gearahol_ has joined #ruby
jrajav has joined #ruby
joelsbea1d has joined #ruby
dopamean has joined #ruby
stkowski_ has joined #ruby
bricker_ has joined #ruby
mvangala_ has joined #ruby
artOfWar_ has joined #ruby
<cw> This is not user friendly...
PragCypher has quit [Read error: Connection reset by peer]
juarlex has joined #ruby
jimeh3 has joined #ruby
Jellyg00se has joined #ruby
PragCypher has joined #ruby
Jamone has joined #ruby
nonotza_ has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
sirecote has joined #ruby
duard has joined #ruby
duard has quit [Changing host]
duard has joined #ruby
stan_man_can has quit [Quit: stan_man_can]
adac has joined #ruby
mbk has joined #ruby
Coolhand__ has joined #ruby
ssspiff has joined #ruby
ssspiff has quit [Changing host]
ssspiff has joined #ruby
fmcgeough has joined #ruby
Johanna_Meszoros has joined #ruby
dv__ has joined #ruby
d-snp has quit [Ping timeout: 265 seconds]
lggr has quit [Ping timeout: 240 seconds]
Mch1 has joined #ruby
deryl has joined #ruby
gearahol_ has quit []
blazes816_ has joined #ruby
Coolhand__ is now known as Coolhand
TommyBot1en has joined #ruby
sneakyness__wk has joined #ruby
asshopo has joined #ruby
duracris1s has joined #ruby
nimred_ has joined #ruby
gearaholic has joined #ruby
spathi_ has joined #ruby
<shevy> Hanmac good question
Gadgetoid__ has joined #ruby
psino has joined #ruby
fastred has left #ruby [#ruby]
eml_ has joined #ruby
elaptics is now known as elaptics`away
goraxe1 has joined #ruby
<shevy> Hanmac, two states it has. (1) on success, it returns an animation (2) on fail it... returns nil, I think ?
X-Jester_ has joined #ruby
<shevy> I dont like to raise errors
gearaholic has quit [Remote host closed the connection]
stkowski has quit [Read error: No buffer space available]
psino_ has quit [Ping timeout: 274 seconds]
Gadgetoid_ has quit [Ping timeout: 274 seconds]
nonotza has quit [Ping timeout: 274 seconds]
duard_ has quit [Ping timeout: 274 seconds]
stkowski_ is now known as stkowski
sspiff has quit [Ping timeout: 274 seconds]
jimeh2 has quit [Ping timeout: 274 seconds]
joelsbeard has quit [Ping timeout: 274 seconds]
nonotza_ is now known as nonotza
sneakyness_wk has quit [Ping timeout: 274 seconds]
sneakyness__wk is now known as sneakyness_wk
ayawaska has quit [Ping timeout: 274 seconds]
GoHuyGo has quit [Ping timeout: 274 seconds]
artOfWar has quit [Ping timeout: 274 seconds]
bricker has quit [Ping timeout: 274 seconds]
blazes816 has quit [Ping timeout: 274 seconds]
Coolhand_ has quit [Ping timeout: 274 seconds]
fboudreau has quit [Ping timeout: 274 seconds]
juarlex_ has quit [Ping timeout: 274 seconds]
spathi has quit [Ping timeout: 274 seconds]
nimred has quit [Ping timeout: 274 seconds]
kuzushi has quit [Ping timeout: 274 seconds]
bigmeow has quit [Ping timeout: 274 seconds]
eml has quit [Ping timeout: 274 seconds]
asshopo_ has quit [Ping timeout: 274 seconds]
GeekOnCoffee has quit [Ping timeout: 274 seconds]
methoddk has quit [Ping timeout: 274 seconds]
gyre007 has quit [Ping timeout: 274 seconds]
octarine has quit [Ping timeout: 274 seconds]
canton7 has quit [Ping timeout: 274 seconds]
duracrisis has quit [Ping timeout: 274 seconds]
goraxe has quit [Ping timeout: 274 seconds]
TommyBotten has quit [Ping timeout: 274 seconds]
X-Jester has quit [Ping timeout: 274 seconds]
Mchl has quit [Write error: Connection reset by peer]
avalarion has quit [Write error: Connection reset by peer]
Monie has quit [Write error: Connection reset by peer]
mvangala has quit [Write error: Connection reset by peer]
dv_ has quit [Write error: Connection reset by peer]
fboudreau has joined #ruby
bigmeow has joined #ruby
GoHuyGo has joined #ruby
stan_man_can has joined #ruby
blazes816_ is now known as blazes816
<shevy> I usually try to think that the user is clever, and rather does not need raise a lot
ayawaska has joined #ruby
methoddk has joined #ruby
<matti> ?
<matti> Clever user? ;]
<the_jeebster> user has an eternal dunce cap :)
<matti> Yeah
gyre007 has joined #ruby
kuzushi has joined #ruby
<the_jeebster> it's like the programs attitude towards user in tron
<matti> "clever user" should be an oxymoron go "complete numpy" ;]
etank has joined #ruby
tehdekan has quit [Ping timeout: 248 seconds]
mr-rich has joined #ruby
<Hanmac> matti like a american or an russian election wich is not faked?
<matti> Hanmac: LOL
<matti> Hanmac: Yeah :)
GeekOnCoffee has joined #ruby
lggr has joined #ruby
<RubyPanther> Hanmac: Derp! hehehe nice one Beavis
<RubyPanther> Probably not the best place for politics
yoklov has quit [Quit: computer sleeping]
octarine has joined #ruby
dopamean has left #ruby [#ruby]
workmad3 has joined #ruby
<Hanmac> http://www.huffingtonpost.com/2012/08/31/16-cancel-voter-registrat_0_n_1846068.html << "then you would vote democrats you are not allowed for voting"
<matti> Hehe
philcrissman has joined #ruby
matrixise has joined #ruby
Nisstyre has joined #ruby
xeronic has quit [Ping timeout: 272 seconds]
bodik has joined #ruby
<bodik> hi
<matti> Hi
williamcotton_ has joined #ruby
<bodik> is this "if not tmp.refs.select(:name).collect{|x| x.name }.select{|rrr| rrr =~ /#{filter}/}.empty?" sane ruby code ?
yoklov has joined #ruby
<bodik> i'm really new to ruby, this works, but it looks veeeery oddly ;)
<bodik> is this the way how i should code in ruby ?
williamcotton has quit [Ping timeout: 256 seconds]
williamcotton_ is now known as williamcotton
stan_man_can has quit [Quit: stan_man_can]
<matti> Em
<matti> Why so many selects?
chrisbolton has joined #ruby
<matti> if not == unless
lggr has quit [Ping timeout: 246 seconds]
und3f has quit [Ping timeout: 246 seconds]
<matti> And then, it looks sub-optimal.
KindTwo has joined #ruby
thomasfedb has quit [Quit: ZNC - http://znc.sourceforge.net]
<bodik> first select is from active record select, while the second should search through collected array and find matches in array of strings
thomasfedb has joined #ruby
JStoker has joined #ruby
<matti> bodik: You could do second select inside your map.
<Hanmac> bodik use .any?
lggr has joined #ruby
<matti> bodik: { x.name if x.name =~ /../ }.any?
<bodik> wow
cw has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<bodik> hmm
lessthanphil has joined #ruby
<bodik> "if not tmp.refs.select(:name).collect{|x| x.name if x.name =~ /../ }.any?"
<bodik> seems to work, thak you very much
<matti> bodik: So, unless tmp.refs.select(:name).map {|i| i.name if i.name =~/#{filter}/ }.any?
<matti> Oh, cool :)
statix_ has joined #ruby
<bodik> matti: i don't like using unless since perl, but thanks anyway ;)
iamjarvo has joined #ruby
bluenemo has joined #ruby
<swarley_> unless improves readability
<swarley_> in ruby
zaargy has quit [Ping timeout: 240 seconds]
sirecote has quit [Ping timeout: 244 seconds]
stat1x has quit [Ping timeout: 244 seconds]
arietis has joined #ruby
<matti> Indeed.
jasonkuhrt has joined #ruby
<deryl> hehe i know some that would absolutely disagree with you (I'm not one)
bluenemo has quit [Remote host closed the connection]
awarner has quit [Read error: Connection reset by peer]
<matti> bodik: Be very wery of "and", "or" and "not" in Ruby ;]
RubyPanther has quit [Ping timeout: 240 seconds]
JStoker has quit [Ping timeout: 244 seconds]
Synthead has quit [Ping timeout: 244 seconds]
mmercer has quit [Ping timeout: 244 seconds]
pavelz has quit [Ping timeout: 244 seconds]
<matti> bodik: They loook like boolean equivalents of &&, ||, etc.
cout has quit [Ping timeout: 244 seconds]
<matti> bodik: But really are not the same thing.
Guest32003 has quit [Ping timeout: 240 seconds]
karstensrage has quit [Ping timeout: 244 seconds]
beandip has quit [Ping timeout: 244 seconds]
Veejay has quit [Ping timeout: 244 seconds]
<matti> bodik: Just a segway ;d
<matti> bodik: Also, you can do a trick '
awarner has joined #ruby
<matti> bodik: Make filter to be []
jblack has quit [Ping timeout: 256 seconds]
cout has joined #ruby
dv__ is now known as dv_
pavelz has joined #ruby
zaargy has joined #ruby
baphled has quit [Quit: Lost terminal]
beandip has joined #ruby
RubyPanther has joined #ruby
mmercer has joined #ruby
mksm has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
mksm is now known as Guest18053
baphled has joined #ruby
<matti> And then: x.name if x.name =~ Regexp.union(filter) :)
Veejay has joined #ruby
karstensrage has joined #ruby
karstensrage has quit [Max SendQ exceeded]
davidcelis_ is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
<bodik> huh, Regexp.union(filter), wtf ;)
Synthead has joined #ruby
<bodik> ruby is most dynamic and most wired prg lng i've ever work with ;)
rabidpraxis has joined #ruby
_karstensrage has joined #ruby
<matti> >>> p Regexp.union(['abc', 'def'])
_karstensrage has quit [Excess Flood]
<matti> Is the bot there?
lggr has joined #ruby
<matti> Or the other channel.
<Hanmac> matti bodik: what about this: unless tmp.refs.any? {|i| i.name && i.name =~ /#{filter}/ }
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
adac has quit [Ping timeout: 246 seconds]
<Hanmac> matti the bot currently is searching for a new host ... like a symbiont
<matti> Hanmac: I was thinking about .any on refs, but I have no idea what Rails returns in there.
_karstensrage has joined #ruby
<matti> Hanmac: So I stayied on the safe side.
_karstensrage has quit [Excess Flood]
<workmad3> bodik: is this activerecord in 3.2?
<matti> Hanmac: Haha
<matti> Hanmac: Who does one need to host such bot?
<matti> Hanmac: I can host it on my server.
Guest63912 has quit [Quit: leaving]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<Hanmac> matti than use that: tmp.refs.select(:name).any? {|i| i.name =~ /#{filter}/ }
cw has joined #ruby
<bodik> workmad3: i dunno, how i find out ? this AR is inside metasploit
<shevy> always metasploit, ppl must love it
<matti> Hanmac: A, fair point ;]
sirecote has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<workmad3> bodik: because if it is, then tmp.refs.pluck(:name).compact.any? {|n| n =~ Regexp.union(filter) }
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<bodik> shevy: i have to sort out a 10 Class-C network scans .. so metasploit is a good tool for this ;)
_karstensrage has joined #ruby
<bodik> workmad3: pluck, ok
_karstensrage has quit [Excess Flood]
jrist-mtg is now known as jrist
<bodik> thanks gyus for all inputs, i'll google now a bit again ...
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<matti> Hanmac: I am just a Ruby n00b ;/
dmiller has joined #ruby
_karstensrage has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
Jamone has quit [Read error: Connection reset by peer]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
s0ber_ has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
lggr_ has joined #ruby
und3f has joined #ruby
|Monie| has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
philcrissman has quit [Remote host closed the connection]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
yoklov has quit [Quit: bye!]
ttt has joined #ruby
lggr_ has quit [Ping timeout: 244 seconds]
lepht_ has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
otters has quit [Ping timeout: 256 seconds]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
s0ber has quit [Remote host closed the connection]
lepht has quit [Ping timeout: 245 seconds]
Xeago has quit [Read error: Connection reset by peer]
s0ber_ is now known as s0ber
<bodik> finally i got this one "if not tmp.refs.select(:name).collect{|x| x.name if x.name =~ Regexp.union(filter) }.compact.empty?"
lggr has joined #ruby
JStoker has joined #ruby
evilsushi has quit [Quit: Lost terminal]
<matti> Haha
<matti> bodik: I would not call this an improvement ;p
<bodik> i do not like unless, and .any? adds extra block to eval (that's in docs)
Xeago has joined #ruby
<bodik> matti: no ?
_karstensrage has joined #ruby
<matti> tmp.refs.any? { x.name =~ Regep.union(filter) } -- check this one out.
mmitchell has joined #ruby
_karstensrage has quit [Excess Flood]
<matti> As per Hanmac
<matti> et al
und3f has quit [Quit: Leaving.]
ttt has quit [Ping timeout: 240 seconds]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
adac has joined #ruby
_karstensrage has joined #ruby
<bodik> matti: ok, .any? at that posittion can work as that collect, i'll try
_karstensrage has quit [Excess Flood]
SCommette_ has joined #ruby
<asteve> can I tell Logging::Logger to run a system command after a rotate?
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<matti> asteve: You mean the one from Stdlib?
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
<asteve> matti: yes
_karstensrage has quit [Excess Flood]
<matti> asteve: No.
<bodik> matti: "if tmp.refs.select(:name).any? {|x| x.name if x.name =~ Regexp.union(filter) }"
<matti> asteve: Its a pain.
<bodik> nice, thanks
<matti> bodik: Does it work?
<bodik> thank to all of ya ;)
<matti> ;d
<bodik> matti: yes, it works
<asteve> matti: I have syslog-ng running, it's used to send the logs to the a central log server
SCommette has quit [Ping timeout: 246 seconds]
SCommette_ is now known as SCommette
<asteve> i'm using logging.appenders.rolling_file to rotate the logs
dpk has quit [Quit: Asleep at the keyboard.]
<asteve> when the rotating happens, syslog-ng still has the old file handler open
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<asteve> it isn't until syslog-ng restarts that I pick up the proper log file
a_a_g has quit [Quit: Leaving.]
<matti> asteve: Indeed.
<Hanmac> bodik: "if tmp.refs.select(:name).any? {|x| x.name =~ Regexp.union(filter) }"
_karstensrage has joined #ruby
<matti> asteve: Its a pain.
<asteve> matti: any suggestions?
_karstensrage has quit [Excess Flood]
jenrzzz has joined #ruby
_karstensrage has joined #ruby
mmitchell has quit [Ping timeout: 268 seconds]
<matti> asteve: You'd have to keep on writing to the file.
_karstensrage has quit [Excess Flood]
<matti> asteve: And then use logrotate.d job with relevant options.
<matti> asteve: To rotate your file.
_karstensrage has joined #ruby
<matti> asteve: And syslog will still send logs over.
_karstensrage has quit [Excess Flood]
duracris1s has quit [Quit: leaving]
lggr has quit [Ping timeout: 246 seconds]
<bodik> Hanmac: c00l ;)
sailias has joined #ruby
<asteve> matti: but the app will continue to write to the rotated log
Niamkik has quit [Remote host closed the connection]
<asteve> I tried this previously
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
_karstensrage has joined #ruby
Guest64548 has quit [Quit: Guest64548]
zeromodulus has quit [Ping timeout: 246 seconds]
_karstensrage has quit [Excess Flood]
lggr has joined #ruby
yetzze has quit [Quit: yetzze]
a_a_g has joined #ruby
a_a_g has quit [Client Quit]
<matti> asteve: I had a lot of frustration with rotating from Ruby.
otters has joined #ruby
<matti> asteve: I ended up just logging, and switching off any rotation.
<matti> asteve: And then writing tiny logrotate script.
<matti> asteve: Just works.
_karstensrage has joined #ruby
<matti> asteve: Saves problem with dangling inodes and wrong FDs etc
_karstensrage has quit [Excess Flood]
zeromodulus has joined #ruby
<asteve> do you know what time :age => 'daily' will attempt to rotate at?
canton7 has joined #ruby
<matti> No idea.
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
dpk has joined #ruby
<matti> asteve: Look at source. Looks like a mess...
_karstensrage has joined #ruby
nat2610 has quit [Ping timeout: 256 seconds]
_karstensrage has quit [Excess Flood]
lyaunzbe has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
<matti> asteve: I ended up with this: http://pastie.org/4793140
lyaunzbe has quit [Client Quit]
jjbohn has joined #ruby
<asteve> matti: and your ruby app follows the rotation?
_karstensrage has joined #ruby
<matti> Yes.
_karstensrage has quit [Excess Flood]
<asteve> strange
philcrissman has joined #ruby
<matti> copytruncate does the trick here.
<matti> I will copy content over, and then tuncate file to 0.
<matti> You do not have inodes nor close FD then.
<matti> I also had to fork with CLOEXEC set on logging FD.
<matti> :)
<matti> I have watchdog process in my thing.
baphled has quit [Ping timeout: 256 seconds]
<matti> But this logrotate script work for me.
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
lggr has quit [Ping timeout: 246 seconds]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
jimeh3 has quit [Read error: Connection reset by peer]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
eldar has quit []
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
answer_42 has quit [Quit: WeeChat 0.3.8]
Agis__ has joined #ruby
_karstensrage has joined #ruby
macmartine has joined #ruby
mmitchell has joined #ruby
<shevy> guys
bricker has joined #ruby
jbpros_ is now known as jbpros
lggr has joined #ruby
arubin has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
bradyl0ve has joined #ruby
dmiller_ has joined #ruby
rippa has quit [Ping timeout: 256 seconds]
otters has quit [Ping timeout: 240 seconds]
<shevy> right now I use this: http://pastie.org/4793198
hashpuppy has joined #ruby
<shevy> is there a way to check for filenames shorter?
bricker_ has quit [Ping timeout: 260 seconds]
macmarti_ has joined #ruby
<davidcelis> #extension ?
<davidcelis> er, #filetype?
SCommette_ has joined #ruby
duard has quit [Remote host closed the connection]
HVboom has joined #ruby
<davidcelis> damn, sorry, it's #extname
mikeg has quit [Quit: Leaving]
<shevy> oh yes
<davidcelis> File.extname("script.rb") # => ".rb"
<shevy> why did I forget it :(
d-snp has joined #ruby
<shevy> thanks davidcelis
BeLucid has quit [Read error: Connection reset by peer]
<davidcelis> you're welcome shevy
<kaleido> just dont forget it again
<kaleido> or else!
krawchyk has quit [Remote host closed the connection]
<asteve> matti: why not log to syslog?
<shevy> kaleido, yeah... I did use it in the past... I dont know why I did not use it here for this code... I think sometimes my brain is much dumber on some days than it is on other days
<hashpuppy> i have something like a logger that is global. and it has 5 methods. it can be enabled or disbaled. it's called by doing $thingie.record("abc"). it can be disabled by being nil. i can't change this source. is this my best option to making sure this isn't called: $thingie.record("abc") unless $thing.nil?
<hashpuppy> i have many of tehse scattered throughout. ideally, it'd be nice to just do nothing if it's called
<kaleido> shevy: i understand completely
BeLucid has joined #ruby
SCommette has quit [Ping timeout: 244 seconds]
methoddk has quit [Ping timeout: 277 seconds]
macmartine has quit [Ping timeout: 241 seconds]
fearoffish has quit [Ping timeout: 277 seconds]
|Monie| has quit [Ping timeout: 241 seconds]
mmercer has quit [Ping timeout: 241 seconds]
dmiller has quit [Ping timeout: 241 seconds]
GeekOnCoffee has quit [Ping timeout: 241 seconds]
thomasfedb has quit [Ping timeout: 241 seconds]
GoHuyGo has quit [Ping timeout: 241 seconds]
fboudreau has quit [Ping timeout: 241 seconds]
bigmeow has quit [Ping timeout: 241 seconds]
framling has quit [Ping timeout: 241 seconds]
ben_alman has quit [Ping timeout: 241 seconds]
herbnerder has quit [Ping timeout: 241 seconds]
SCommette_ is now known as SCommette
framling has joined #ruby
<kaleido> im having one of those WEEKS
fboudreau has joined #ruby
herbnerder_ has joined #ruby
methoddk has joined #ruby
<shevy> yeah kaleido ... sometimes I feel as if I am in a zone, being super productive, having lots of ideas
<shevy> and then... there is phase of nothingness...
bigmeow has joined #ruby
GoHuyGo has joined #ruby
fearoffish has joined #ruby
mmercer has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
HVboom has quit [Ping timeout: 245 seconds]
GeekOnCoffee has joined #ruby
Kovensky has joined #ruby
thomasfedb has joined #ruby
* Kovensky wonders if there's an 'ri' alternative or commandline flag that displays all documentation for <<class>>
<Kovensky> instead of only listing the methods
<Kovensky> and having to use ri <<class>>.<<method>>
<invisime> Kovensky: you might try ri's interactive mode?
Jellyg00se has quit [Quit: Leaving]
<Kovensky> (like `perldoc` does (though that's an accident of perldoc having no perl awareness))
RubyPanther has quit [Quit: self.exit(:stage=>:left)]
lggr has joined #ruby
otters has joined #ruby
dmiller_ has quit [Remote host closed the connection]
otters has quit [Client Quit]
otters has joined #ruby
hashpuppy has left #ruby [#ruby]
<Kovensky> invisime: it kinda helps, but is still clunky :S
duracrisis has joined #ruby
Johanna_Meszoros has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
jso has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
the_jeebster1 has joined #ruby
BrokenCo1 has quit [Quit: leaving]
RubyPanther has joined #ruby
lggr has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
matthewrobbins has joined #ruby
banisterfiend has joined #ruby
JarJar has quit [Quit: Leaving]
ben_alman has joined #ruby
artOfWar_ has quit [Remote host closed the connection]
pitty has quit [Ping timeout: 256 seconds]
jrajav has quit []
matrixise has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 264 seconds]
philcrissman has quit [Remote host closed the connection]
lggr has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
ltsstar has quit [Quit: ltsstar]
macmarti_ has quit [Quit: Computer has gone to sleep.]
geekbri_ has quit [Remote host closed the connection]
jasonkuhrt has quit [Quit: Leaving...]
philcrissman has joined #ruby
jasonkuhrt has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
moted has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
ttt has joined #ruby
acrocity has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
snuglepuss has joined #ruby
RegEchse has joined #ruby
d-snp has quit [Ping timeout: 268 seconds]
nachtvos has quit [Read error: Operation timed out]
lledet_ has joined #ruby
acrocity has joined #ruby
robertotauille has quit [Quit: Leaving...]
dreinull has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
xeronic has joined #ruby
Russell^^ has quit [Quit: Russell^^]
ttt has quit [Ping timeout: 260 seconds]
Agis__ has quit [Quit: Agis__]
lledet has quit [Ping timeout: 246 seconds]
lledet_ is now known as lledet
matthewrobbins has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
matled- has joined #ruby
vaclavt has joined #ruby
bradhe__ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
lggr has joined #ruby
d-snp has joined #ruby
epitron__ has joined #ruby
epitron__ has quit [Changing host]
epitron__ has joined #ruby
ahuman_ has joined #ruby
jhchabran_ has joined #ruby
ij has joined #ruby
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
phrame_ has joined #ruby
bananagram has joined #ruby
faulkner- has joined #ruby
groupcat_ has joined #ruby
mtkd has joined #ruby
mark_locklear has quit [Quit: Leaving]
adamkittelson has quit [Ping timeout: 240 seconds]
groupcat has quit [Disconnected by services]
ninegrid_ has joined #ruby
groupcat_ is now known as groupcat
ionte_ has joined #ruby
alexhanh_ has joined #ruby
icambridge_ has joined #ruby
`heliar_ has joined #ruby
mephux_ has joined #ruby
ericwood_ has joined #ruby
bradyl0ve has quit [Quit: Linkinus - http://linkinus.com]
AndrzejK1zywda has joined #ruby
tdubz has joined #ruby
Wandering_Glitch has joined #ruby
rlomax_ has joined #ruby
koivula_ has joined #ruby
maddog_ has joined #ruby
KindTwo has quit [Changing host]
KindTwo has joined #ruby
Roa_ has joined #ruby
Elfix_113 has joined #ruby
brian-_ has joined #ruby
pcboy__ has joined #ruby
ada2358_ has joined #ruby
xybre_ has joined #ruby
sideshowcoder has joined #ruby
cantonic_ has joined #ruby
lamba_ has joined #ruby
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
rtl_ has joined #ruby
yeltzooo has joined #ruby
mtkd_ has quit [Ping timeout: 252 seconds]
phrame has quit [Ping timeout: 252 seconds]
rakm has quit [*.net *.split]
kalleth has quit [*.net *.split]
hackeron has quit [*.net *.split]
kollapse has quit [*.net *.split]
deavid has quit [*.net *.split]
AwesomeGarethMan has quit [*.net *.split]
dagobah has quit [*.net *.split]
willcodeforfoo has quit [*.net *.split]
Schmidt has quit [*.net *.split]
icambridge has quit [Ping timeout: 252 seconds]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
mephux has quit [Remote host closed the connection]
faulkner has quit [Quit: boo.]
notVert has quit [Remote host closed the connection]
tectonic has quit [Ping timeout: 252 seconds]
alexwh has quit [Quit: Quitting]
TorpedoSkyline has quit [Ping timeout: 252 seconds]
ninegrid has quit [Ping timeout: 252 seconds]
ping-pong has quit [Ping timeout: 252 seconds]
ionte has quit [Ping timeout: 252 seconds]
ericwood has quit [Ping timeout: 252 seconds]
mephux_ is now known as mephux
epitron has quit [Ping timeout: 252 seconds]
axiak has quit [Ping timeout: 252 seconds]
jeekl has quit [Ping timeout: 279 seconds]
matled has quit [Ping timeout: 279 seconds]
pcboy_ has quit [Ping timeout: 257 seconds]
AndrzejKrzywda has quit [Ping timeout: 279 seconds]
Elfix has quit [Ping timeout: 279 seconds]
yeltzooo7 has quit [Ping timeout: 257 seconds]
maddog__ has quit [Ping timeout: 279 seconds]
rlomax has quit [Ping timeout: 279 seconds]
jhchabran has quit [Ping timeout: 279 seconds]
alexhanh has quit [Ping timeout: 279 seconds]
koivula has quit [Ping timeout: 279 seconds]
rtl has quit [Ping timeout: 257 seconds]
Roa has quit [Ping timeout: 257 seconds]
brian- has quit [Ping timeout: 257 seconds]
matled- is now known as matled
WanderingGlitch has quit [Ping timeout: 279 seconds]
`heliar has quit [Ping timeout: 279 seconds]
Sigma00 has quit [Ping timeout: 257 seconds]
conceal_rs_ has quit [Ping timeout: 257 seconds]
lushious has quit [Ping timeout: 353 seconds]
sideshow1oder has quit [Ping timeout: 353 seconds]
ada2358 has quit [Ping timeout: 353 seconds]
faulkner- is now known as faulkner
xybre has quit [Ping timeout: 353 seconds]
lamba has quit [Ping timeout: 353 seconds]
thomas has quit [Read error: Connection reset by peer]
notVert has joined #ruby
alexwh has joined #ruby
TorpedoSkyline_ has joined #ruby
tectonic_ has joined #ruby
jeekl has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
ping-pong has joined #ruby
axiak has joined #ruby
Sigma00 has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
Edward__ has joined #ruby
lushious has joined #ruby
PragCypher has joined #ruby
conceal_rs_ has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
flagg0205 has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 245 seconds]
cantonic has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
havenn has joined #ruby
phrame_ is now known as phrame
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
yeltzooo has quit [Max SendQ exceeded]
robustus has quit [Quit: ZNC - http://znc.in]
flagg0204 has joined #ruby
icambridge_ has quit [Ping timeout: 240 seconds]
pnbeast has quit [Ping timeout: 240 seconds]
fir_ed has quit [Ping timeout: 240 seconds]
<emsilva> gentlemen, please check this gist: https://gist.github.com/3778325. Is there a way to achieve the desired output? I don't want to run the query twice and join columns if all possible.
lggr has joined #ruby
Axsuul has quit [Ping timeout: 240 seconds]
deavid has joined #ruby
kalleth has joined #ruby
AwesomeGarethMan has joined #ruby
rakm has joined #ruby
dagobah has joined #ruby
Schmidt has joined #ruby
hackeron has joined #ruby
willcodeforfoo has joined #ruby
kollapse has joined #ruby
epitron__ has quit [Ping timeout: 240 seconds]
Axsuul has joined #ruby
kollapse has quit [Read error: Connection reset by peer]
epitron has joined #ruby
epitron has quit [Changing host]
epitron has joined #ruby
QKO_ has joined #ruby
BrokenCog has quit [Quit: leaving]
yeltzooo has joined #ruby
lessthanphil has quit [Quit: lessthanphil]
gxqdmi has quit [Remote host closed the connection]
BrokenCog has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
jenrzzz has quit [Ping timeout: 245 seconds]
djbpython has joined #ruby
chrxn has quit [Remote host closed the connection]
<djbpython> hi i'm trying to reconcile this code "def_delegators :channel, :push" with the docs: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/forwardable/rdoc/Forwardable.html#method-i-def_delegators
bthesorceror has quit [Quit: bthesorceror]
arya_ has joined #ruby
<djbpython> shouldn't it take an attribute as the first param?
rjmt__ has joined #ruby
CannedCorn has quit [Quit: Computer has gone to sleep.]
bobbbo_ has joined #ruby
thorncp_ has joined #ruby
QKO has quit [Ping timeout: 268 seconds]
chrxn has joined #ruby
alanp_ has joined #ruby
Emmanuel_Chanel_ has joined #ruby
c0rn__ has joined #ruby
icambridge has joined #ruby
rjmt_ has quit [Read error: Connection reset by peer]
thorncp has quit [Ping timeout: 256 seconds]
c0rn_ has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
arubin has quit [Quit: arubin]
icambridge has quit [Ping timeout: 256 seconds]
MissionCritical has quit [Ping timeout: 256 seconds]
timrom has quit [Ping timeout: 256 seconds]
alanp has quit [Ping timeout: 256 seconds]
bthesorceror has joined #ruby
bthesorceror has quit [Client Quit]
maddog_ has quit [Ping timeout: 256 seconds]
bobbbo has quit [Ping timeout: 256 seconds]
bobbbo_ is now known as bobbbo
maddog_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
mmitchell has quit [Remote host closed the connection]
diegoviola has quit [Quit: Reconnecting]
icambridge has joined #ruby
diegoviola has joined #ruby
yoklov has joined #ruby
<havenn> emsilva: I don't know DataMapper, but if you want to parse the current output in Ruby I'd do: Hash[*output].map { |k, v| [k.first, k.last, v.last] }
<havenn> emsilva: Tried #datamapper?
dustinleer has quit [Remote host closed the connection]
timrom has joined #ruby
lggr has joined #ruby
<shevy> I. Hate. Massive. Warnings... when running scripts with -w
<shevy> :(
bluOxigen has quit [Ping timeout: 240 seconds]
gfontenot has quit []
emsilva_ has joined #ruby
edward___ has joined #ruby
xkx_ has joined #ruby
edward___ has quit [Client Quit]
dpk has quit [Quit: Asleep at the keyboard.]
<blazes816> stop using -w bro
<blazes816> problem solved
<havenn> ^
cw has quit [Ping timeout: 264 seconds]
stillEPIK has joined #ruby
<emsilva_> havenn: oh man, thank you a thousand times. (sorry if duplicated, I had disconnected)
niklasb has quit [Quit: WeeChat 0.3.8]
<havenn> emsilva_: No prob, wasn't sure that is what you wanted - glad it work!
invisime has quit [Quit: Leaving.]
beit has quit [Quit: beit]
<havenn> djbpython: Does it work with: def_delegators :@channel, :push
Koven has joined #ruby
lump has joined #ruby
{^_^}_______ has joined #ruby
strcrzy has joined #ruby
Xeago has quit [Remote host closed the connection]
emsilva has quit [Ping timeout: 268 seconds]
<matti> emsilva_: x.inject({}) {|a,b| (a[b.first] ||= []) << b.last ; a }.map(&:flatten)
Kovensky has quit [Disconnected by services]
<matti> emsilva_: Where x is your input.
jenrzzz has joined #ruby
WhereIsMySpoon_ has joined #ruby
asuka_ has joined #ruby
jaredrhine_ has joined #ruby
babinho_ has joined #ruby
<djbpython> havenn, i'm not sure, i didnt write this code, but it is code running in production fwiw
<djbpython> just trying to understand it
mmitchell has joined #ruby
alta189 has joined #ruby
EPIK has quit [Ping timeout: 240 seconds]
asuka has quit [Ping timeout: 240 seconds]
babinho has quit [Ping timeout: 240 seconds]
notbrent has quit [Ping timeout: 240 seconds]
kaen has quit [Ping timeout: 240 seconds]
WhereIsMySpoon has quit [Ping timeout: 240 seconds]
{^_^}______ has quit [Ping timeout: 240 seconds]
froy has quit [Ping timeout: 240 seconds]
xkx has quit [Ping timeout: 240 seconds]
strcrzy_ has quit [Ping timeout: 240 seconds]
JC_SoCal has quit [Ping timeout: 240 seconds]
jaredrhine has quit [Ping timeout: 240 seconds]
alta has quit [Ping timeout: 240 seconds]
kaen has joined #ruby
Jamone has quit [Quit: Quit]
notbrent has joined #ruby
JC_SoCal has joined #ruby
alta189 is now known as alta
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
<matti> emsilva_: Oh I see, numeric values are in sort order.
mmitchell has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 264 seconds]
nykac has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Remote host closed the connection]
thunders_ has quit [Remote host closed the connection]
panpainter has joined #ruby
macmartine has joined #ruby
jonathanwallace has joined #ruby
mmitchell has joined #ruby
bradhe has joined #ruby
lggr has joined #ruby
<emsilva_> matti: no, they are not. They are fixed place, like a csv. They just happen to be in sort order.
<emsilva_> I mean, its not a requirement.
cantonic_ has joined #ruby
<matti> Hehe, kinda ugly: x.inject({}) {|a,b| ((a[b.first] ||= []) << b.last).sort! ; a }.map(&:flatten)
<matti> emsilva_: Oh, right ;d
Tearan has quit [Quit: Sleepy Badger....]
bbttxu_ has joined #ruby
<emsilva_> I'm looking at the code, I see it works, but I can't make sense out of it :P
<matti> ;p
<matti> emsilva_: I just had a glass of carrot juice.
<matti> emsilva_: You see the effects ;p
Koven is now known as Kovensky
<havenn> matti: I drank coffee!: Hash[*x].map { |k, v| [k[0], k[0], v[2]] }
<matti> havenn: Does not work for me.
<matti> => [["Sun, 23 Sep 2012", "Sun, 23 Sep 2012", 293], ["Mon, 24 Sep 2012", "Mon, 24 Sep 2012", 293]]
<matti> Missing k[1]?
<matti> No.
<matti> ;d
[diecast]_ has joined #ruby
<havenn> matti: Ah, messed it up. I badly code golphed my first one. >.>
A1241 has joined #ruby
<matti> havenn: :) :) :)
<matti> havenn: No worries man ;d
<havenn> matti: Hash[*x].map { |k, v| [k.first, k.last, v.last] }
slicslak has quit [Ping timeout: 240 seconds]
<matti> Yay!
stkowski has quit [Quit: stkowski]
<matti> +1 for Hash + splat ;d
<matti> Sheer perfection in its simplicity.
<matti> ;d
jonathanwallace has quit [Ping timeout: 252 seconds]
<havenn> matti: Mmm, the effervescent Hash-splat!
JohnBat26 has quit [Read error: Operation timed out]
<sheerun> thanks
<Kovensky> Hash[*x]?
MissionCritical has joined #ruby
bbttxu has quit [Read error: Connection reset by peer]
soulcake has quit [Ping timeout: 248 seconds]
fearoffish has quit [Ping timeout: 248 seconds]
[diecast] has quit [Max SendQ exceeded]
QKO_ has quit [Ping timeout: 248 seconds]
gmci has quit [Ping timeout: 248 seconds]
CodeVision has quit [Ping timeout: 248 seconds]
cantonic has quit [Ping timeout: 248 seconds]
jim_cooley has quit [Ping timeout: 248 seconds]
katherinem13 has quit [Ping timeout: 248 seconds]
__class__ has quit [Ping timeout: 248 seconds]
TommyBot1en has quit [Ping timeout: 248 seconds]
axiak has quit [Ping timeout: 248 seconds]
uris has quit [Ping timeout: 248 seconds]
jbpros has quit [Ping timeout: 248 seconds]
anildigital_work has quit [Max SendQ exceeded]
maahes has quit [Ping timeout: 248 seconds]
bbttxu_ is now known as bbttxu
cantonic_ is now known as cantonic
soulcake has joined #ruby
<matti> havenn: I always forget about it :<
fearoffish_ has joined #ruby
anildigital_work has joined #ruby
<havenn> Kovensky: x is his Array
gmci has joined #ruby
yxhvuud has quit [Remote host closed the connection]
withnale has quit [Ping timeout: 248 seconds]
katherinem13 has joined #ruby
dpk has joined #ruby
yxhuvud has joined #ruby
<Kovensky> yeah, but what's with the star
TommyBotten has joined #ruby
Sp4rKy has quit [Remote host closed the connection]
uris has joined #ruby
jbpros has joined #ruby
Gonzih has quit [Ping timeout: 248 seconds]
maahes has joined #ruby
Sp4rKy has joined #ruby
QKO has joined #ruby
slicslak has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
jim_cooley has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.8]
bbttxu has quit [Quit: bbttxu]
axiak has joined #ruby
<matti> Kovensky: Ruby splat.
CodeVision has joined #ruby
dmiller has joined #ruby
dr_bob_ has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
__class__ has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
<havenn> Kovensky: *names = 'jane', 'doe', 'john', 'smith' #=> ["jane", "doe", "john", "smith"]
<havenn> Kovensky: Hash[*names] #=> {"jane"=>"doe", "john"=>"smith"}
goraxe1 is now known as goraxe
GoHuyGo has quit [Quit: Leaving]
<shevy> blazes816 the warnings are too important to ignore em :(
<matti> havenn: Its faster too! https://gist.github.com/3778499
tdubz is now known as thomas
philcrissman has quit [Remote host closed the connection]
s0ber_ has joined #ruby
hoelzro|away is now known as hoelzro
juarlex_ has joined #ruby
<havenn> matti: Haha, nice. I was actually curious!
elux_ has quit [Quit: Leaving...]
jgrevich_ has joined #ruby
ph^ has quit [Remote host closed the connection]
groupcat_ has joined #ruby
lggr has joined #ruby
ianbrandt_ has joined #ruby
sneakyness__wk has joined #ruby
ffranz2 has joined #ruby
jimeh has joined #ruby
philcrissman has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
ianbrandt has quit [Ping timeout: 240 seconds]
sneakyness_wk has quit [Ping timeout: 240 seconds]
ffranz1 has quit [Ping timeout: 240 seconds]
vaclavt has quit [Ping timeout: 240 seconds]
ddv has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 240 seconds]
s0ber has quit [Remote host closed the connection]
juarlex has quit [Ping timeout: 240 seconds]
RubyPanther has quit [Ping timeout: 240 seconds]
ianbrandt_ is now known as ianbrandt
sneakyness__wk is now known as sneakyness_wk
ddv has joined #ruby
mmitchell has quit [Ping timeout: 240 seconds]
s0ber_ is now known as s0ber
groupcat has quit [Disconnected by services]
groupcat_ is now known as groupcat
yoklov_ has joined #ruby
nanderoo has quit [Quit: Leaving.]
{^_^}_______ has quit [Ping timeout: 240 seconds]
yoklov has quit [Ping timeout: 240 seconds]
frogstarr78 has quit [Ping timeout: 240 seconds]
jprovazn_away has quit [Ping timeout: 240 seconds]
jokar has quit [Ping timeout: 240 seconds]
jhchabran_ has quit [Ping timeout: 240 seconds]
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
jprovazn_away has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jokar has joined #ruby
{^_^}_______ has joined #ruby
Morkel has quit [Quit: Morkel]
jhchabran has joined #ruby
SJr has joined #ruby
frogstarr78 has joined #ruby
dakine has joined #ruby
<SJr> A script I downloaded has require 'octokit' at the top. I installed it via gem, but ruby complains that it can't find it.
allan_hills has joined #ruby
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
<matti> SJr: Add: require 'rubygems' before it.
moshef has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
Neomex has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
Neomex has quit [Client Quit]
<moshef> I have a string which I scan for different words. Now, I'd like to add some exception - if the word 'no' appears before - ignore the next word. any idea how do search this?
lggr has joined #ruby
<moshef> now when I think about it, i can just remove from the string all the words following the word 'no' and then scan, but I'd like a different approach.
hiroyuki has joined #ruby
<matti> LOL
<matti> ;]
<moshef> :D
RubyPanther has joined #ruby
<moshef> so..any cool regex crap? :)
<elico> moshef: if it's words then you can first split it by spaces and have a list of conditions while you are iterating over the words.
<elico> >>
jamjam has joined #ruby
<moshef> if index[-1] != "no" ?
tehdekan has joined #ruby
tehdekan has quit [Remote host closed the connection]
<moshef> thats a very nice idea mate, great
* Kovensky was sad that ruby doesn't support s///
Elico1 has joined #ruby
Speed has quit [Remote host closed the connection]
nga4 has quit [Ping timeout: 260 seconds]
frogprince_mac has quit [Remote host closed the connection]
cantonic_ has joined #ruby
<matti> Kovensky: It does not? ;d
juarlex has joined #ruby
Jamone has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
QKO_ has joined #ruby
<Elico1> they took it down... >> words = "hello no solt world"; words.split.each_index {|i| if words[i - 1] != no; puts words[i]}
Chryson has joined #ruby
fir_ed has joined #ruby
LouisGB has quit [Disconnected by services]
n8888 has joined #ruby
<matti> elico1: 'no' ;d
eignerch_ has joined #ruby
<Elico1> matti: ?
<matti> != 'no'
ahuman has joined #ruby
<matti> I guess
tommyvyo has quit [Quit: Computer has gone to sleep.]
jaredrhine has joined #ruby
Sp4rKy has quit [Ping timeout: 264 seconds]
Bish_ has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
cakehero has joined #ruby
fyolnish has joined #ruby
issyl0_ has joined #ruby
<Elico1> well you could say.. but the point..
ttt has joined #ruby
mercwith1mouth has joined #ruby
<matti> Hehe
<matti> ;d
WhereIsMySpoon has joined #ruby
JarJar has joined #ruby
jso has quit []
framling_ has joined #ruby
WanderingGlitch has joined #ruby
workmad3_ has joined #ruby
<Elico1> why did they took the bot down?
nonotza has quit [Quit: nonotza]
Drager has joined #ruby
BrokenCo1 has joined #ruby
<matti> No idea.
gmci_ has joined #ruby
tdubz has joined #ruby
<Elico1> it was so good!!!
jaredrhine_ has quit [Read error: Connection reset by peer]
Wandering_Glitch has quit [Read error: Connection reset by peer]
GeekOnCoffee has quit [Read error: Connection reset by peer]
matled has quit [Read error: Connection reset by peer]
ahuman_ has quit [Write error: Connection reset by peer]
framling has quit [Write error: Connection reset by peer]
Monie has quit [Write error: Connection reset by peer]
BrokenCog has quit [Read error: Connection reset by peer]
`heliar_ has quit [Read error: Connection reset by peer]
TommyBotten has quit [Read error: Connection reset by peer]
thomas has quit [Read error: Connection reset by peer]
oddraisi1 has joined #ruby
sneakyness__wk has joined #ruby
gmci has quit [Read error: Connection reset by peer]
eml has joined #ruby
Rydefalk_ has joined #ruby
ryanRT has quit [Quit: Ex-Chat]
carloslopes has quit [Quit: Leaving.]
juarlex_ has quit [Ping timeout: 240 seconds]
fearoffish_ has quit [Ping timeout: 240 seconds]
QKO has quit [Ping timeout: 240 seconds]
cantonic has quit [Ping timeout: 240 seconds]
cantonic_ is now known as cantonic
jeekl has quit [Ping timeout: 240 seconds]
Edward__ has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 240 seconds]
thomasfedb has quit [Ping timeout: 240 seconds]
BrokenCo1 has quit [Client Quit]
Chryson has quit [Ping timeout: 264 seconds]
AlbireoX has joined #ruby
thomasfedb has joined #ruby
alexhanh has joined #ruby
fearoffish has joined #ruby
BrokenCog has joined #ruby
fantazo has joined #ruby
jeekl has joined #ruby
ffranz2 has quit [Ping timeout: 245 seconds]
davidcelis_ has joined #ruby
bradhe_ has joined #ruby
wereHams1er has joined #ruby
matled has joined #ruby
xkx has joined #ruby
ianbrandt_ has joined #ruby
kapowaz_ has joined #ruby
knirhs has joined #ruby
thone has quit [Ping timeout: 248 seconds]
lantins has quit [Ping timeout: 248 seconds]
sneakyness_wk has quit [Ping timeout: 248 seconds]
maahes has quit [Ping timeout: 248 seconds]
Bish has quit [Ping timeout: 248 seconds]
soulcake has quit [Ping timeout: 248 seconds]
beandip has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
Shrink has quit [Ping timeout: 248 seconds]
jamjam has quit [Ping timeout: 248 seconds]
mephux has quit [Ping timeout: 248 seconds]
WhereIsMySpoon_ has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
fyolnis__ has quit [Ping timeout: 248 seconds]
eignerchris has quit [Ping timeout: 248 seconds]
elico has quit [Ping timeout: 248 seconds]
Guest88336 has quit [Ping timeout: 248 seconds]
RichGuk has quit [Ping timeout: 248 seconds]
Guedes has quit [Ping timeout: 248 seconds]
kapowaz has quit [Ping timeout: 248 seconds]
eml_ has quit [Ping timeout: 248 seconds]
Rydefalk has quit [Ping timeout: 248 seconds]
Drager_ has quit [Ping timeout: 248 seconds]
alexhanh_ has quit [Ping timeout: 248 seconds]
issyl0 has quit [Read error: Connection reset by peer]
wereHamster has quit [Ping timeout: 248 seconds]
ianbrandt has quit [Ping timeout: 248 seconds]
davidcelis has quit [Ping timeout: 248 seconds]
oddraisin has quit [Remote host closed the connection]
Poapfel has quit [Ping timeout: 248 seconds]
xea has quit [Ping timeout: 248 seconds]
iaj has quit [Ping timeout: 248 seconds]
JarJar is now known as 31NAB4493
JarJar has joined #ruby
soulcake has joined #ruby
kapowaz_ is now known as kapowaz
yxhvuud has joined #ruby
Guedes has joined #ruby
RichGuk has joined #ruby
Guest88336 has joined #ruby
nonotza_ has joined #ruby
lggr has joined #ruby
GeekOnCoffee has joined #ruby
beandip has joined #ruby
BrokenCog has quit [Client Quit]
nonotza_ is now known as nonotza
jeekl has quit [Changing host]
jeekl has joined #ruby
jgrevich_ has joined #ruby
sneakyness__wk is now known as sneakyness_wk
Guedes has quit [Changing host]
Guedes has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
issyl0_ is now known as Guest23766
headius has quit [Quit: headius]
ttt has quit [Ping timeout: 260 seconds]
jso has joined #ruby
maahes has joined #ruby
zeromodulus has quit [Remote host closed the connection]
lantins has joined #ruby
IrishGringo has quit [Ping timeout: 256 seconds]
dimka has quit [Ping timeout: 240 seconds]
IrishGringo_ has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
<moshef> I'm within each loop of array, how do I get my index?
dimka has joined #ruby
mephux has joined #ruby
<moshef> or do I do each with index?
Sp4rKy has joined #ruby
asuka has joined #ruby
jamjam has joined #ruby
iaj has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
<havenn> moshef: 'hi', 'there'].each_with_index { |word, index| puts index }
<hoelzro> moshef: I would use each_with_index
`heliar has joined #ruby
cakehero_ has joined #ruby
<moshef> so yeah with index, ok
<moshef> thanks
31NAB4493 has quit [Read error: Connection reset by peer]
AlbireoX`Laptop has quit [Read error: Connection reset by peer]
bradhe has quit [Read error: Connection reset by peer]
cakehero has quit [Ping timeout: 252 seconds]
notVert has quit [Ping timeout: 252 seconds]
asuka_ has quit [Ping timeout: 252 seconds]
xkx_ has quit [Ping timeout: 252 seconds]
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
alexwh_ has joined #ruby
alexwh has quit [Read error: Connection reset by peer]
yxhuvud has quit [Ping timeout: 252 seconds]
notVert has joined #ruby
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
thorncp_ has quit [K-Lined]
perryh has quit [K-Lined]
tr4656 has quit [K-Lined]
cakehero_ has quit [Client Quit]
xea has joined #ruby
BrokenCog has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
thorncp has joined #ruby
TommyBotten has joined #ruby
perryh has joined #ruby
<emsilva_> matti, havenn: damn it. Solution doesn't pass testing. It could be a scenario where in one day I have 0 incidents or 0 SRs, and then it won't alternate beaufully like that. :/
tr4656 has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
GoGoGarrett has quit [Remote host closed the connection]
jsebring has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
arya__ has joined #ruby
ryanRT has joined #ruby
lggr has joined #ruby
thone has joined #ruby
<Kovensky> matti> Kovensky: It does not? ; <-- nope
<dakine> is there anything i should know in specific for instaling ruby on arch
alanp has joined #ruby
hadees has quit [Quit: hadees]
ph^ has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
<snuglepuss> dakine, if you plan on using openssl, revert to openssl 1.0.0
<emsilva_> matti, havenn: I created a new gist with the scenario where it fails, in case you think you can help. https://gist.github.com/3778720
yoklov_ has quit [Quit: bye!]
JustinCampbell has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<dakine> snuglepuss: i have 1.0.0a
<dakine> is this fine?
A1241 has left #ruby [#ruby]
arya__ has quit [Ping timeout: 244 seconds]
<snuglepuss> should be
Averna has joined #ruby
joshman_ has quit [Ping timeout: 246 seconds]
yshh_ has joined #ruby
bricker_ has joined #ruby
<dakine> snuglepuss: should i use 1.9 or 1.8.7?
ndrei has quit [Ping timeout: 268 seconds]
alanp_ has quit [Ping timeout: 264 seconds]
stepnem has quit [Ping timeout: 260 seconds]
sheerun_ has joined #ruby
EPIK has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
jokar1 has joined #ruby
slicslak has quit [Ping timeout: 240 seconds]
timrom_ has joined #ruby
iaj_ has joined #ruby
chrxn has quit [Read error: Connection reset by peer]
fboudrea1 has joined #ruby
Forevernade has joined #ruby
tsuru` has joined #ruby
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
<snuglepuss> dakine, im using 1.9
chrxn has joined #ruby
evilsushi has quit [Quit: leaving]
TommyBot1en has joined #ruby
philcrissman_ has joined #ruby
maddog__ has joined #ruby
babinho has joined #ruby
zeromodulus has joined #ruby
d-best has joined #ruby
Guedes0 has joined #ruby
alanp_ has joined #ruby
strmpnk_ has joined #ruby
ahuman_ has joined #ruby
mksm has joined #ruby
diegovio1a has joined #ruby
SCommette has quit [Ping timeout: 246 seconds]
sheerun has quit [Ping timeout: 246 seconds]
williamcotton has quit [Ping timeout: 246 seconds]
sheerun_ is now known as sheerun
alta has quit [Ping timeout: 246 seconds]
canton7 has quit [Ping timeout: 246 seconds]
KindTwo has quit [Ping timeout: 246 seconds]
iaj has quit [Ping timeout: 246 seconds]
maddog_ has quit [Ping timeout: 246 seconds]
babinho_ has quit [Ping timeout: 246 seconds]
stillEPIK has quit [Ping timeout: 246 seconds]
d-snp has quit [Ping timeout: 246 seconds]
ij has quit [Ping timeout: 246 seconds]
fboudreau has quit [Ping timeout: 246 seconds]
Veejay has quit [Ping timeout: 246 seconds]
xzy has quit [Ping timeout: 246 seconds]
strmpnk has quit [Ping timeout: 246 seconds]
allsystemsarego has quit [Ping timeout: 246 seconds]
TommyBotten has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
PragCypher has quit [Ping timeout: 246 seconds]
ping-pong has quit [Ping timeout: 246 seconds]
havenn has quit [Ping timeout: 246 seconds]
Guest18053 has quit [Ping timeout: 246 seconds]
Drewch has quit [Ping timeout: 246 seconds]
mattp_ has quit [Ping timeout: 246 seconds]
tchebb has quit [Ping timeout: 246 seconds]
fbernier has quit [Ping timeout: 246 seconds]
Criztian has quit [Ping timeout: 246 seconds]
darkc0met has quit [Ping timeout: 246 seconds]
jhowarth has quit [Ping timeout: 246 seconds]
yshh has quit [Ping timeout: 246 seconds]
ryanRT has quit [Ping timeout: 246 seconds]
eml has quit [Ping timeout: 246 seconds]
alanp has quit [Ping timeout: 246 seconds]
jokar has quit [Ping timeout: 246 seconds]
RubyPanther has quit [Ping timeout: 246 seconds]
ahuman has quit [Ping timeout: 246 seconds]
philcrissman has quit [Ping timeout: 246 seconds]
anildigital_work has quit [Ping timeout: 246 seconds]
timrom has quit [Ping timeout: 246 seconds]
JC_SoCal has quit [Ping timeout: 246 seconds]
lump has quit [Ping timeout: 246 seconds]
notbrent has quit [Ping timeout: 246 seconds]
faulkner has quit [Ping timeout: 246 seconds]
ericwood_ has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 246 seconds]
gyre007 has quit [Ping timeout: 246 seconds]
etank has quit [Ping timeout: 246 seconds]
kuzushi has quit [Ping timeout: 246 seconds]
Mch1 has quit [Ping timeout: 246 seconds]
ssspiff has quit [Ping timeout: 246 seconds]
zodiak has quit [Ping timeout: 246 seconds]
djbpython has quit [Ping timeout: 246 seconds]
faen has quit [Ping timeout: 246 seconds]
\13k has quit [Ping timeout: 246 seconds]
gogiel has quit [Ping timeout: 246 seconds]
rakunHo has quit [Ping timeout: 246 seconds]
tsuru has quit [Ping timeout: 246 seconds]
moted has quit [Ping timeout: 246 seconds]
alta has joined #ruby
faulkner has joined #ruby
faulkner has quit [*.net *.split]
Emmanuel_Chanel_ has quit [*.net *.split]
bradhe_ has quit [*.net *.split]
[diecast]_ has quit [*.net *.split]
alta has quit [*.net *.split]
kuzushi_ has joined #ruby
ericwood has joined #ruby
eml_ has joined #ruby
mr_no has joined #ruby
gogiel has joined #ruby
Criztian_ has joined #ruby
fbernier_ has joined #ruby
EPIK has quit [Client Quit]
moted has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
xeronic has quit [Ping timeout: 262 seconds]
PragCypher has joined #ruby
anildigital_work has joined #ruby
lump has joined #ruby
BrianJ has joined #ruby
allsystemsarego has joined #ruby
bradhe_ has joined #ruby
mattp_ has joined #ruby
faen has joined #ruby
faulkner has joined #ruby
sspiff has joined #ruby
alta has joined #ruby
zodiak has joined #ruby
ryanRT has joined #ruby
xzy has joined #ruby
ping-pong has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
jhowarth has joined #ruby
gyre007 has joined #ruby
dev_ryan70 has joined #ruby
notbrent has joined #ruby
rakunHo has joined #ruby
Mchl has joined #ruby
\13k has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
jjbohn has joined #ruby
Emmanuel_Chanel_ has joined #ruby
Veejay has joined #ruby
djbpython has joined #ruby
arya_ has joined #ruby
ij has joined #ruby
etank has joined #ruby
Drewch_ has joined #ruby
lggr has joined #ruby
[diecast]_ has joined #ruby
swarley_ has quit [Ping timeout: 264 seconds]
<moshef> doing a collect on array with a condition but it also collect 'nil' when condition is false. what am I doing wrong?
tchebb has joined #ruby
<moshef> dong want to .compact the array
<moshef> don't*
<hoelzro> moshef: you probably want select, not collect
baphled has quit [Ping timeout: 245 seconds]
<hoelzro> or a combination of both
havenn_ has joined #ruby
darkc0met has joined #ruby
alienvenom has quit [Ping timeout: 244 seconds]
bnagy has quit [Ping timeout: 244 seconds]
\13k has quit [Changing host]
\13k has joined #ruby
etank has quit [Changing host]
ij has quit [Changing host]
ij has joined #ruby
etank has joined #ruby
bnagy has joined #ruby
mksm is now known as Guest44778
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
faen is now known as Guest51531
sirecote has quit [Ping timeout: 244 seconds]
IrishGringo_ has quit [Ping timeout: 264 seconds]
Roa_ has quit [Quit: leaving]
alienvenom has joined #ruby
<moshef> hoelzro: right. thanks,
baphled has joined #ruby
philcrissman has joined #ruby
philcrissman has quit [Remote host closed the connection]
Guest51531 is now known as faen
<havenn_> emsilva_: DC'ed so sorry if repost, but are you reassigning data or using another variable: data = Hash[*data] or
<havenn_> emsilva_: Moar code?
adac has quit [Read error: Operation timed out]
|Monie| has joined #ruby
hoelzro is now known as hoelzro|away
arya_ has quit [Ping timeout: 246 seconds]
<emsilva_> havenn_: I created a new gist, that shows the "extreme" cases https://gist.github.com/3778720
sirecote has joined #ruby
rakunHo has quit [Remote host closed the connection]
reset has joined #ruby
<havenn_> emsilva_: Aha, so if there isn't a pair... 0.
fowl has joined #ruby
<emsilva_> havenn_: exactly. There's another gotcha. If there's 0 entries on a day (for example, nothing for the 26th, there should still be a entry for the 26th with 0 on both fields.) but I think that I can get this one done, after I resolve this other one. You guys are already helping a lot.
<fowl> >> 16*3
<fowl> bah!
fowl has left #ruby ["Leaving"]
lggr has quit [Ping timeout: 256 seconds]
mercwith1mouth has quit [Ping timeout: 256 seconds]
epitron__ has joined #ruby
epitron__ has quit [Changing host]
epitron__ has joined #ruby
RubyPanther has joined #ruby
hadees has joined #ruby
s0ber_ has joined #ruby
theRoUS_ has quit [Ping timeout: 256 seconds]
DrShoggoth has joined #ruby
DrShoggoth has quit [Client Quit]
slicslak has joined #ruby
Forevernade has quit [Remote host closed the connection]
yalue has quit [Ping timeout: 245 seconds]
frogstarr78 has quit [Ping timeout: 245 seconds]
Criztian_ has quit [Ping timeout: 245 seconds]
epitron has quit [Read error: Connection reset by peer]
pcboy__ has quit [Ping timeout: 245 seconds]
Voxxit has quit [Ping timeout: 245 seconds]
s0ber has quit [Read error: Connection reset by peer]
moted has quit [Ping timeout: 245 seconds]
jhchabran has quit [Ping timeout: 245 seconds]
Jamone has quit [Ping timeout: 245 seconds]
<fir_ed> .
pcboy_ has joined #ruby
s0ber_ is now known as s0ber
sideshowcoder has quit [Ping timeout: 245 seconds]
davidcelis_ is now known as davidcelis
sideshowcoder has joined #ruby
yalue has joined #ruby
matled has quit [Remote host closed the connection]
matled has joined #ruby
JC_SoCal has joined #ruby
Criztian has joined #ruby
frogstarr78 has joined #ruby
<havenn_> #=> 48
Guedes has quit [Ping timeout: 245 seconds]
jhchabran has joined #ruby
lggr has joined #ruby
davidcelis is now known as Guest39175
judesamp has joined #ruby
<havenn_> fowl: the bot is muuuuch slower now... =P
Voxxit has joined #ruby
Guedes has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
moted has joined #ruby
asteve has quit []
arya_ has joined #ruby
bobbbo has quit [Quit: bobbbo]
judesamp has left #ruby [#ruby]
Guest39175 is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
Synthead has quit [Quit: p33 ba115]
Synthead has joined #ruby
karakedi has joined #ruby
NimeshNeema has quit [Max SendQ exceeded]
mikekelly has quit [Ping timeout: 268 seconds]
TorpedoSkyline_ has quit [Ping timeout: 268 seconds]
realfunny has quit [Ping timeout: 268 seconds]
realfunny has joined #ruby
NimeshNeema has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
rpgsimmaster has quit [Ping timeout: 268 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
sent-hil has joined #ruby
rpgsimmaster has joined #ruby
mikekelly has joined #ruby
fir_ed is now known as Mocking-Jay
thone has quit [Read error: Connection reset by peer]
lggr has joined #ruby
TorpedoSkyline has joined #ruby
<dakine> what exactly are rubygems?
Mocking-Jay is now known as Mocking
dmiller has joined #ruby
<blazes816> dakine: they are basically libraries for ruby
<blazes816> packaged up nicely
Mocking is now known as fir_ed
<dakine> oh, nice
<havenn_> Yeah, a hosting service for Gems: http://rubygems.org/
\13k has quit [Quit: Leaving]
stopbit has quit [Quit: Leaving]
gfontenot has joined #ruby
arya_ has quit [Ping timeout: 252 seconds]
jjbohn has quit [Quit: Leaving...]
kirun has quit [Quit: Client exiting]
slicslak has quit [Ping timeout: 256 seconds]
stephenjudkins has joined #ruby
liuyuan has joined #ruby
jonathanwallace has joined #ruby
<liuyuan> Hi guys, I'm using a ruby app, I've just updated a config.yml
<liuyuan> how do I see the changes?
lggr has quit [Ping timeout: 246 seconds]
<liuyuan> I'm using gitorious, btw, thanks in advance.
quazimodo has joined #ruby
diegovio1a has quit [Ping timeout: 256 seconds]
tdubz is now known as thomas
ph^ has joined #ruby
arya_ has joined #ruby
luckyruby has quit [Remote host closed the connection]
stephenjudkins has quit [Client Quit]
Virunga has quit [Remote host closed the connection]
lggr has joined #ruby
<sent-hil> liuyuan: Are you using gitorious.com or running it locally?
jenrzzz has joined #ruby
<liuyuan> sent-hil: locally
Koshian__ has joined #ruby
<liuyuan> Thanks for replying, bgtw
<liuyuan> btw*
<sent-hil> Gitorious is a Rails app, so you need to restart your server
Koshian_ has quit [Ping timeout: 256 seconds]
ahuman_ is now known as ahuman
snearch has quit [Ping timeout: 256 seconds]
bigkevmcd has quit [Ping timeout: 256 seconds]
bigkevmcd has joined #ruby
snearch has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
adeponte has joined #ruby
Guedes0 has quit [Excess Flood]
ph^ has quit [Ping timeout: 252 seconds]
<liuyuan> sent-hil: as in reboot my server?
sailias has quit [Read error: Operation timed out]
Guedes0 has joined #ruby
<liuyuan> sent-hil: I tried this method: http://wiki.ocssolutions.com/Restarting_a_Rails_Application_Using_Passenger ... It didn't seem to work
nonotza_ has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
sneakyness__wk has joined #ruby
_adeponte has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
AlbireoX has joined #ruby
Criztian has quit [Remote host closed the connection]
<liuyuan> sent-hil: nevermind, it was silly that although the functionality was disabled (my intent) the button remained
<liuyuan> thanks for your help
liuyuan has quit [Quit: Page closed]
<sent-hil> liuyuan: are you using passenger locally or did you just run `rails s` in a terminal?
nari has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
ttt has joined #ruby
alanp has joined #ruby
<emsilva_> havenn_: I think this is not solvable. I think I'll need to talk to whoever generated the data, so I can change the data source to return the empty entries when needed. Not sure anymore.
mmitchell has joined #ruby
berserkr has quit [Quit: Leaving.]
thone has joined #ruby
xea_ has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
lggr has joined #ruby
BrokenCo1 has joined #ruby
pcboy__ has joined #ruby
oddraisin has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
nonotza has quit [Ping timeout: 399 seconds]
sneakyness_wk has quit [Ping timeout: 408 seconds]
GeekOnCoffee has quit [Read error: Connection reset by peer]
methoddk has quit [Ping timeout: 408 seconds]
nonotza_ is now known as nonotza
alanp_ has quit [Write error: Connection reset by peer]
|Monie| has quit [Write error: Connection reset by peer]
sneakyness__wk is now known as sneakyness_wk
AlbireoX`Laptop has quit [Read error: Connection reset by peer]
xea has quit [Read error: Connection reset by peer]
methoddk has joined #ruby
methoddk has quit [Changing host]
methoddk has joined #ruby
pcboy_ has quit [Read error: Connection reset by peer]
BrokenCog has quit [Read error: Connection reset by peer]
jonathan_ has joined #ruby
oddraisi1 has quit [Read error: Connection reset by peer]
Spooner has joined #ruby
allan_hills has quit [Quit: allan_hills]
bier has quit [Read error: Operation timed out]
sheerun has quit [Quit: sheerun]
adeponte has quit [Ping timeout: 241 seconds]
havenn_ has quit [Ping timeout: 241 seconds]
Guest58219 is now known as ged
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
ttt has quit [Ping timeout: 241 seconds]
GeekOnCoffee has joined #ruby
KindOne has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
juarlex has quit [Remote host closed the connection]
allsystemsarego has quit [Quit: Leaving]
jonathan_ has quit [Ping timeout: 244 seconds]
awarner has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mmitchell has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
moshef has quit [Quit: moshef]
lggr has quit [Ping timeout: 256 seconds]
budha has quit []
s0ber_ has joined #ruby
lggr has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
panpainter has quit [Quit: panpainter]
iaj has joined #ruby
gyre008 has joined #ruby
karakedi has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
Tearan has joined #ruby
pcboy_ has joined #ruby
s0ber has quit [Remote host closed the connection]
alexwh_ has quit [Ping timeout: 252 seconds]
notVert has quit [Remote host closed the connection]
pcboy__ has quit [Ping timeout: 252 seconds]
pricees has joined #ruby
alexwh has joined #ruby
iaj_ has quit [Remote host closed the connection]
s0ber_ is now known as s0ber
skogis has quit [Ping timeout: 264 seconds]
notVert has joined #ruby
JarJar has quit [Quit: Leaving]
slicslak has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
apok has quit [Quit: apok]
jonathanwallace has quit [Ping timeout: 264 seconds]
GoGoGarrett has quit [Read error: Connection reset by peer]
pettsson has quit [Remote host closed the connection]
lggr has joined #ruby
djbpython has quit [Ping timeout: 246 seconds]
bier has joined #ruby
nga4 has joined #ruby
justinmcp has joined #ruby
iaj_ has joined #ruby
the_jeebster1 has quit [Quit: Leaving.]
slicslak_ has joined #ruby
ph^ has joined #ruby
[yalue] has joined #ruby
slicslak has quit [Ping timeout: 267 seconds]
iaj has quit [Ping timeout: 267 seconds]
GeekOnCoffee has quit [Ping timeout: 267 seconds]
methoddk has quit [Ping timeout: 267 seconds]
yalue has quit [Ping timeout: 267 seconds]
bigmeow has quit [Ping timeout: 267 seconds]
chrisbolton has quit [Quit: chrisbolton]
methoddk has joined #ruby
mirror1 has joined #ruby
TandemAdam has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
jgrevich_ has joined #ruby
emsilva_ has quit [Read error: Connection reset by peer]
jgrevich has quit [Ping timeout: 265 seconds]
jgrevich_ is now known as jgrevich
jamjam has quit [Ping timeout: 256 seconds]
GeekOnCoffee has joined #ruby
banseljaj is now known as imami|afk
lggr has joined #ruby
banisterfiend has quit [Ping timeout: 268 seconds]
epitron has joined #ruby
epitron has quit [Changing host]
epitron has joined #ruby
aantix_ has joined #ruby
tntc has quit [Remote host closed the connection]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jhchabran_ has joined #ruby
Sp4rKy has quit [Ping timeout: 264 seconds]
artOfWar has joined #ruby
aces1up has quit [Remote host closed the connection]
aces1up has joined #ruby
XedMada has joined #ruby
ph^ has quit [Ping timeout: 240 seconds]
maddog_ has joined #ruby
[yalue] has quit [Quit: Leaving]
nw_ has joined #ruby
Sp4rKy has joined #ruby
froy has joined #ruby
koivula has joined #ruby
talsamon has joined #ruby
baphled_ has joined #ruby
strmpnk has joined #ruby
zeromodulus has quit [Ping timeout: 248 seconds]
maddog__ has quit [Ping timeout: 248 seconds]
nari has quit [Ping timeout: 248 seconds]
nga4 has quit [Ping timeout: 248 seconds]
strmpnk_ has quit [Ping timeout: 248 seconds]
epitron__ has quit [Ping timeout: 248 seconds]
jhchabran has quit [Ping timeout: 248 seconds]
Guest88336 has quit [Ping timeout: 248 seconds]
soulcake has quit [Ping timeout: 248 seconds]
lantins has quit [Ping timeout: 248 seconds]
moted has quit [Ping timeout: 248 seconds]
baphled has quit [Ping timeout: 248 seconds]
TommyBot1en has quit [Ping timeout: 248 seconds]
lump has quit [Ping timeout: 248 seconds]
koivula_ has quit [Ping timeout: 248 seconds]
TommyBotten has joined #ruby
aantix has quit [Ping timeout: 248 seconds]
katherinem13 has quit [Ping timeout: 248 seconds]
nw has quit [Ping timeout: 248 seconds]
soulcake has joined #ruby
lantins has joined #ruby
aantix_ is now known as aantix
soulcake has quit [Changing host]
soulcake has joined #ruby
artOfWar has quit [Remote host closed the connection]
nga4 has joined #ruby
nari has joined #ruby
Guest88336 has joined #ruby
moted has joined #ruby
Gonzih has joined #ruby
artOfWar has joined #ruby
Beoran__ has joined #ruby
Synthead has quit [Quit: p33 ba115]
lggr has quit [Ping timeout: 265 seconds]
AlbireoX has quit [Remote host closed the connection]
AlbireoX has joined #ruby
Beoran_ has quit [Ping timeout: 268 seconds]
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
lggr has joined #ruby
preller_ has joined #ruby
AlbireoX has quit [Ping timeout: 264 seconds]
AlbireoX has joined #ruby
ccooke_ has joined #ruby
preller has quit [Ping timeout: 272 seconds]
vjt has quit [Ping timeout: 272 seconds]
ElderFain has quit [Ping timeout: 272 seconds]
nricciar__ has quit [Ping timeout: 272 seconds]
ccooke has quit [Ping timeout: 272 seconds]
punkrawkR has quit [Read error: Connection reset by peer]
nricciar__ has joined #ruby
ElderFain has joined #ruby
fcoury has quit [Ping timeout: 272 seconds]
Hardcore has quit [Ping timeout: 272 seconds]
Hardcore has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
<havenn> emsilva: I'm using numbers, not dates, and not selecting actually values from the array when present - but it IS *possible* >.>: https://gist.github.com/3779103
Hardcore is now known as Guest91820
<havenn> emsilva: Probably better to have the DB guy adjust your output, but 'fun' nonetheless.
bricker_ has quit [Read error: Operation timed out]
aef_ has quit [Remote host closed the connection]
<havenn> emsilva: PS - my solution is insane and incomplete, but otherwise fine >.>
jonathanwallace has joined #ruby
<emsilva> havenn: Thanks mate, let me see if I can make it work out.
aef has joined #ruby
fcoury has joined #ruby
<emsilva> havenn: Insane > doesn't work
<havenn> emsilva: You speak my mind! =O
dagnachewa has joined #ruby
vjt has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
mikepack has quit [Remote host closed the connection]
libryder_ has joined #ruby
jhchabran_ has quit [Ping timeout: 264 seconds]
cakehero has joined #ruby
libryder has quit [Write error: Broken pipe]
JStoker has quit [Excess Flood]
lggr has joined #ruby
nonotza has quit [Quit: nonotza]
gfontenot has quit []
mxweas has joined #ruby
TommyBot1en has joined #ruby
nari has quit [Ping timeout: 248 seconds]
TommyBotten has quit [Ping timeout: 248 seconds]
TheShadowFog has joined #ruby
jhchabran has joined #ruby
xargoon has quit [Ping timeout: 260 seconds]
n_blownapart has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
xzy has quit [Quit: Leaving]
passbe has quit [Quit: WeeChat 0.3.8]
`gregorg` has joined #ruby
ph^ has joined #ruby
mbk has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
riley526 has joined #ruby
passbe has joined #ruby
ttt has joined #ruby
IrishGringo has joined #ruby
Poapfel has joined #ruby
xyzodiac has joined #ruby
t0rc has joined #ruby
xargoon has joined #ruby
t0rc has quit [Client Quit]
HoLo has joined #ruby
HoLo has left #ruby [#ruby]
jarred has joined #ruby
lggr has joined #ruby
gregorg_taf has quit [Write error: Connection reset by peer]
verto is now known as verto|off
verto|off is now known as verto
gyre008 has quit [Quit: This computer has gone to sleep]
ttt has quit [Ping timeout: 260 seconds]
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ruby
<Elico1> I have a problem with active records, I am trying to use class Agency < ActiveRecord::Base it works well for table zone as Zone but seems to try 'tdb1.agencies' instead of 'tdb1.agency'
sneakyness_wk has quit [Quit: teamsab]
XedMada has quit [Ping timeout: 244 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
JStoker has joined #ruby
mmitchell has joined #ruby
<Elico1> well solved by using set_table_name 'agency', thanks anyway
<Kovensky> well yes, it's how activerecord works
<Kovensky> =p
AlbireoX`Laptop has joined #ruby
<Elico1> Kovensky: it's funny I saw examples but non have shown a thing about I need to look at the DOcs
ph^ has quit [Ping timeout: 240 seconds]
AlbireoX has quit [Read error: Connection reset by peer]
<Kovensky> well
<Kovensky> the first rails tutorial I saw about activerecord said that's how it works :S
linguini has joined #ruby
<Kovensky> table name = class name -> lowercase -> pluralize
lggr has quit [Ping timeout: 256 seconds]
AlbireoX`Laptop has quit [Read error: Connection reset by peer]
<Elico1> I am using plain ruby and not rails..
AlbireoX has joined #ruby
<Spaceghostc2c> I don't use activerecord. :D
<Spaceghostc2c> I also build my projects more or less 'outside' of rails and I call into rails from them. Or at least, that's where I'm headed.
tommylommykins has quit [Read error: Connection reset by peer]
<Elico1> I have 1.5 GB text files i need to insert into DB and it's nicer to do with active records instead of writing a method for that
tommylommykins has joined #ruby
<Spaceghostc2c> elico1: I don't use relational databases much.
lggr has joined #ruby
xargoon has quit [Ping timeout: 272 seconds]
<n_blownapart> hi I have two questions in comments on this pastie regarding enumerators. thanks: http://pastie.org/4794256