MikaAK has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
lsegal has quit [Read error: No route to host]
sharpmachine has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
sharpmachine has joined #ruby-lang
sharpmachine has quit [Ping timeout: 250 seconds]
marr has quit [Ping timeout: 260 seconds]
mfmfmfmfmfmf has quit [Remote host closed the connection]
mfmfmfmfmfmf has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MikaAK has joined #ruby-lang
amerine has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
amerine has joined #ruby-lang
<bougyman>
how do I remove a rake task?
qba73 has quit [Remote host closed the connection]
<bougyman>
I can replace it with Rake::Task['namespace:task'].clear, but that doesn't remove its output from the list when using rake --tasks/-T
<bougyman>
and some I just want to remove and not replace, so they're not in the listing.
nofxx_ has quit [Ping timeout: 250 seconds]
<zenspider>
I think you really only need to clear out the desc
tsou has quit [Ping timeout: 246 seconds]
<zenspider>
fuck rake is a PITA
<zenspider>
bougyman: call clear_comments on it
chouhou__ has quit [Remote host closed the connection]
<bougyman>
zenspider: thanks.
chouhoulis has joined #ruby-lang
jhass is now known as jhass|off
<bougyman>
hrm
<bougyman>
it says there's no method clear_comments
<bougyman>
zenspider: undefined method `clear_comments' for <Rake::Task test:benchmark => [db:test:prepare]>:Rake::Task
saarinen has quit [Quit: saarinen]
jakko has joined #ruby-lang
MikaAK has quit [Remote host closed the connection]
tsou has joined #ruby-lang
jakko has quit [Remote host closed the connection]
jakko has joined #ruby-lang
MikaAK has joined #ruby-lang
<bougyman>
instance_variable_set(:@comment, "") does it
<bougyman>
hrm
<bougyman>
now the tasks I don't want there are still there, just have no comment
<bougyman>
ugh
<pipework>
bougyman: Are you trying to hide them or remove them?
<bougyman>
remove them
<bougyman>
and hide them from rake -T
<bougyman>
it's an old rails app that i'm replacing the test harness in
<bougyman>
can't use the rake test tasks that get included in the test environment
<bougyman>
I can make mine run now, but can't remove the tasks for the old test stuff.
<zenspider>
iirc, hoe ... or rake-remote_task has code for this
klmlfl has joined #ruby-lang
diegoviola has joined #ruby-lang
<zenspider>
clear_comments is available in rake-10
<zenspider>
Hoe's hoe/rake.rb has a re-impl of it, just in case
<zenspider>
also has clear_tasks(*tasks) that delete the actual tasks
<bougyman>
oh nice
<bougyman>
that's what I really want
<zenspider>
steal it
<zenspider>
or just include hoe in your project. :)
<zenspider>
I'll keep mine working forever
nofxx_ has joined #ruby-lang
amsi has quit [Quit: Leaving]
jdecuirm has joined #ruby-lang
tkuchiki has joined #ruby-lang
<jdecuirm>
Hi all
<jdecuirm>
good night here in Mexico!
parenjitsu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jdecuirm>
I am learning Ruby with the Pickaxe book! but i have a doubt
<jdecuirm>
What is the difference with Enumerator and Enumerable?!
yatish27 has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
<womble>
jdecuirm: That's a good one.
tris- has joined #ruby-lang
<jdecuirm>
hahahaha
<womble>
Enumerator is a class, instances of which can be enumerated (you can call methods like #each, #next, #map, etc)
symm- has quit [Ping timeout: 245 seconds]
<womble>
Enumerable is a module full of the sort of methods that allow any class to be enumerated over (again, you can call methods like #ach, #next, #map, etc)
<jdecuirm>
yes, the call them external iterators or something
<womble>
Yeah, using Enumerator is a bit of an adventure the first time
<jdecuirm>
So...what is the difference .-.
<womble>
It's relatively rare to need to use Enumerator; typically, you'll use Enumerable as an include in your own classes when you want them to act like an array or other sort of linear collection
<jdecuirm>
oh
<womble>
jdecuirm: The difference is as I've already mentioned: one is a class, the other is a module
<jdecuirm>
I see, i was thinking that could be, i don't know a result they return or something
<jdecuirm>
basically they do the same thing? .-.?
<womble>
They achieve much the same outcome (something that can be enumerated), but they do it in very different ways, so you'd use them in different situations.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amerine has quit [Ping timeout: 250 seconds]
saltsa_ has quit [Ping timeout: 250 seconds]
<womble>
If you're writing a class, and you think, "gee I'd really like to be able to #map over this", then you include Enumerable and write your own #each method
<womble>
Enumerable provides a #map method which uses your #each to do its work
<womble>
If, on the other hand, you're writing some code and you think "I'd really like to return a value from this code that people can enumerate over", well, use an array. <grin>
saltsa has joined #ruby-lang
<womble>
But if for some reason you need to provide a more complicated return value (say, you're calculating values on the fly), then you could wrap that logic up in an Enumerator and return that.
alexju has quit [Remote host closed the connection]
<womble>
For instance, the ever-useful fibbonaci series could be written in an Enumerator
<womble>
Although calling #each on it *may* cause adverse reactions...
<jdecuirm>
Lol I appreciate your explanation, and yes, you have the right to call me idiot, i'm getting troubles to catch it!, maybe if i see them in code could be easier to get them...
<womble>
jdecuirm: Don't worry, I'm not calling you an idiot.
MikaAK has quit [Remote host closed the connection]
<womble>
Let me whip up a quick explanation.
<womble>
Hang on, afk for a bit.
|jemc| has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
<jdecuirm>
ok!
mistym has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
tsou has quit [Ping timeout: 255 seconds]
toastynerd has quit [Remote host closed the connection]
<jdecuirm>
to override behavior, and with enumerator they use standard loops?
<jdecuirm>
D: or maybe i'm that stupid lol
yatish27 has joined #ruby-lang
<womble>
jdecuirm: Well, both forms use a loop, because we're just calculating things
<womble>
An example with a boundary condition would probably be better... got to think of one that can't just be done with an array...
<womble>
Oh, I know...
<jdecuirm>
You will hate me sorry :c
<jdecuirm>
things i have to do, to learn Ruby on Rails, i need a backend for a mobile application
<womble>
jdecuirm: I've updated that gist with an "enumerable with termination" version of Fibonnaci
<womble>
It's still using a loop, but it won't go forever
<womble>
But each, pretty much by definition, uses some sort of repetition, because it is supposed to yield multiple values, one after the other, that represent the elements of the collection.
ddv has joined #ruby-lang
<womble>
jdecuirm: And I've just added an 'enumerator with termination' example to show how to do the same thing, but using Enumerator
karamazov has quit [Read error: Connection reset by peer]
karamazov has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<womble>
"Real-world" examples of using Enumerator tend to be relatively difficult to understand, because there's usually a lot of underlying scaffolding that get in the way
<jdecuirm>
why enumerable is a class and enumerator is not?
Miphix has joined #ruby-lang
shinnya has quit [Ping timeout: 245 seconds]
yatish27_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 240 seconds]
<womble>
jdecuirm: Enumerator is the class, Enumerable is a module, and they're that way because you instantiate Enumerator, whereas you "mix-in" (include) the methods in Enumerable in your own classes.
<womble>
If you're not familiar with modules and mixing-in, I'd suggest curling up with the pickaxe and irb until you get the hang of it.
wallerdev has joined #ruby-lang
MikaAK has joined #ruby-lang
parenjitsu has joined #ruby-lang
Lewix has joined #ruby-lang
<jdecuirm>
In fact i think i will change of book, cuz they go deep with enumerable and enumerator and they don't even reach modules and mix-ins
wallerdev has quit [Client Quit]
wallerdev has joined #ruby-lang
toastynerd has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
<jdecuirm>
i read a lot of good reviews of Beginning Ruby x
<jdecuirm>
xd
j4cknewt has joined #ruby-lang
btiefert has joined #ruby-lang
Miphix has quit [Quit: Leaving]
kgrz has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
thomasxie has joined #ruby-lang
Miphix has joined #ruby-lang
j4cknewt has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
migbar has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 245 seconds]
migbar has joined #ruby-lang
eddiezane_zzz is now known as eddiezane
eddiezane is now known as eddiezane_zzz
migbar has quit [Ping timeout: 245 seconds]
Asher has quit [Quit: Leaving.]
djbkd has joined #ruby-lang
yatish27 has joined #ruby-lang
yatish27_ has quit [Ping timeout: 250 seconds]
jamooo has quit [Ping timeout: 250 seconds]
jamooo has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
* womble
thought the Pickaxe covered modules... but it's been a long time
io_syl has quit [Ping timeout: 245 seconds]
parenjitsu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
mfmfmfmfmfmf has quit [Remote host closed the connection]
mfmfmfmfmfmf has joined #ruby-lang
cirenyc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
Miphix has joined #ruby-lang
michaeldeol has quit [Client Quit]
kgrz has joined #ruby-lang
mfmfmfmfmfmf has quit [Ping timeout: 244 seconds]
dabradley has quit [Ping timeout: 260 seconds]
kgrz has quit [Remote host closed the connection]
eddiezane_zzz is now known as eddiezane
eddiezane is now known as eddiezane_zzz
gix has quit [Ping timeout: 264 seconds]
gix has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
yatish27 has quit [Remote host closed the connection]
karamazov has quit [Read error: Connection reset by peer]
karamazov has joined #ruby-lang
yatish27 has joined #ruby-lang
dabradley has joined #ruby-lang
saarinen has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 245 seconds]
migbar has joined #ruby-lang
arooni-mobile has joined #ruby-lang
migbar has quit [Ping timeout: 245 seconds]
jko_ has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
dm78 has joined #ruby-lang
danijoo has joined #ruby-lang
rcvalle has quit [Ping timeout: 245 seconds]
earthquake has joined #ruby-lang
dm78_ has quit [Ping timeout: 260 seconds]
rcvalle has joined #ruby-lang
zz_anildigital is now known as anildigital
MikaAK has quit [Remote host closed the connection]
dm78 has quit [Read error: Connection reset by peer]
dm78_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
qba73 has quit []
<|jemc|>
ARGV
redhat is now known as webhat
<ruby-lang061>
jemc: Arguments will be collected from form.
emmesswhy has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
AKASkip has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
zz_dlu has quit [Read error: Connection reset by peer]
<ruby-lang061>
Anywhere here who can address my problem
<ruby-lang061>
Anyone
thomasxie has quit [Remote host closed the connection]
GaelanAintAround has quit [Read error: Connection reset by peer]
zz_dlu has joined #ruby-lang
migbar has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
GaelanAintAround has joined #ruby-lang
j4cknewt has quit []
Sphynx has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
alexju has quit [Remote host closed the connection]
Miphix has quit [Ping timeout: 250 seconds]
kiddorails has joined #ruby-lang
migbar has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<womble>
ruby-lang061: I, for one, don't know what your problem *is*
skade has joined #ruby-lang
<womble>
ruby-lang061: Found your gist. Commented.
robmiller has joined #ruby-lang
arBmind has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
Savtech has joined #ruby-lang
thomasxie has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
yell0wgh0st has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Miphix has joined #ruby-lang
yfeldblum has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
mbr__ is now known as mbr
Savtech has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
kwd has joined #ruby-lang
zenspider has quit [Quit: bye]
ianmcshane has joined #ruby-lang
chussenot has joined #ruby-lang
io_syl has quit []
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
zenspider has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
kedare has quit [Quit: WeeChat 0.4.1]
ianmcsha_ has joined #ruby-lang
ruby-lang061 has quit [Ping timeout: 246 seconds]
zenspider has quit [Client Quit]
ianmcshane has quit [Ping timeout: 255 seconds]
ianmcsha_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
fullybaked has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
migbar has joined #ruby-lang
fullybaked has quit [Ping timeout: 245 seconds]
MouseTheLuckyDog has quit [Ping timeout: 240 seconds]
<yorickpeterse>
morning
michd is now known as MichD
migbar has quit [Ping timeout: 250 seconds]
Missphoenix has joined #ruby-lang
mfmfmfmfmfmf has quit [Remote host closed the connection]
fullybaked has joined #ruby-lang
tectonic has quit []
Miphix has quit [Ping timeout: 240 seconds]
<nofxx_>
thinking what's the best possible arch for a sockety thing. Can be udp or tcp, need load balance. Thinking: Load -> ruby spawned thru servers -> redis , then ruby workers work calmy in the redis queue
<nofxx_>
wondering if nodejs would be a better fit for the socket to redis part
<nofxx_>
yorickpeterse, morning!
MouseTheLuckyDog has joined #ruby-lang
<nofxx_>
data -> listeners -> redis, redis -> workers -> calculations/fill mongo, pg or whatever....
thomasxie has quit [Read error: Connection reset by peer]
<yorickpeterse>
node.js.....
<yorickpeterse>
there's literally no reason you want to use Node over Ruby, especially when you start looking into Rbx/JRuby
thomasxie has joined #ruby-lang
<nofxx_>
yorickpeterse, all I need to hear, have a js freak friend that;s trying to drag me to the dark side
<maloik>
yorickpeterse: I may have asked this before, I can't seem to find anything about it though... but would Olery have any interest in sponsoring ArrrrCamp?
<nofxx_>
and whata great excuse to play with rbx
<maloik>
If so, who should I get in touch with?
<maloik>
We're looking to add a few more sponsors to break even and pay back more of our speakers' travel, not being able to pay 100% back kind of sucks
<nofxx_>
yorickpeterse, what jruby may provide in thsi scenario? more stability? need HA, going to run lots of VM's for this
<yorickpeterse>
maloik: how much gold are we talking about roughly?
<maloik>
nine hundred million thousand
<yorickpeterse>
nofxx_: JRuby and Rubinius don't have a GIL, this means you can run multiple threads in parallel. This means you can easily outperform Node.js
<nofxx_>
yorickpeterse, mean jruby vs rbx.. already discarded nodejs
<nofxx_>
=D
<yorickpeterse>
nofxx_: JRuby provides the JVM and associated Java libraries, thus if you want to use any Java libs go with that
<maloik>
Not mentioned in there: all sponsors get a table in the lounge (for demo's, socialising, goodies/swag etc), and all Silver sponsors and up get 5min to talk about their company/product on stage should they want to do that
emmesswhy has quit [Quit: This computer has gone to sleep]
<yorickpeterse>
If you don't need Java, or don't want to, look into Rbx. Rbx also does most things in Ruby, opposed to Java/C
<yorickpeterse>
maloik: Hm that means I have to get Boothdudes
<maloik>
you don't need to make use of it, or need to be present there 24/7 :-) but it's an option of course
dabradley has quit [Ping timeout: 245 seconds]
<yorickpeterse>
maloik: asking around atm, I'll get back to you once I know more
<maloik>
great thanks
<maloik>
can I ask my colleague to follow up with you if you haven't gotten back to me by tonight? I'm leaving on a roadtrip this evening :)
arBmind has joined #ruby-lang
jhass|off is now known as jhass
<yorickpeterse>
maloik: I should have an answer within the next 10-15 minutes most likely
<maloik>
oh ok, great :-)
dabradley has joined #ruby-lang
bsvineeth has quit [Read error: Connection reset by peer]
bsvineeth has joined #ruby-lang
<nofxx_>
yorickpeterse, yeah, already playing with rbx... don't need java libs I think. only a redis driver
<nofxx_>
thank you
<yorickpeterse>
np
kek has joined #ruby-lang
<yorickpeterse>
maloik: ok seems people are hiding in meeting rooms now, so it might take longer. Tell said co-worker to shoot an Email to me if I don't get back to you before the end of the day (PM'ing Email)
wnd has quit [Excess Flood]
ianmcshane has joined #ruby-lang
marr has joined #ruby-lang
ender|dkm has joined #ruby-lang
allomov has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<maloik>
will do, thanks!
wnd has joined #ruby-lang
enkristoffer has joined #ruby-lang
ianmcshane has quit [Ping timeout: 245 seconds]
ender|dkm has quit [Ping timeout: 264 seconds]
banister has quit [Ping timeout: 250 seconds]
qba73 has joined #ruby-lang
migbar has joined #ruby-lang
DEac-_ has quit [Read error: No route to host]
DEac- has joined #ruby-lang
dabradley has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Ping timeout: 260 seconds]
migbar has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
jds has joined #ruby-lang
dabradley has joined #ruby-lang
cantonic has joined #ruby-lang
kwd has quit [Quit: Leaving.]
skade has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
matp has joined #ruby-lang
rahul_j has joined #ruby-lang
enkristoffer has joined #ruby-lang
<jds>
On a smartos server, my ruby 2.1 is unable to write files larger than 2GB. Any suggestions why?
<jds>
it raises "File too large @ io_write"
<jds>
Google is not helpful when searching for that phrase
<jds>
It sounds like a 32bit limitation, but 32bit ruby on other machines will carry on writing fine
kyb3r_ has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
Savtech has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
symm- has joined #ruby-lang
ianmcshane has joined #ruby-lang
<jhass>
sounds like an os level error to me, so a limitation of the kernel, FS or available diskspace
dm78_ has quit [Read error: Connection reset by peer]
dm78 has joined #ruby-lang
<jds>
I tried cat'ing files together to produce a 4GB file, which appeared to work fine, and I could open it in vim
tkuchiki_ has joined #ruby-lang
ianmcshane has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 260 seconds]
tkuchiki_ has quit [Ping timeout: 240 seconds]
mouse_ has joined #ruby-lang
MouseTheLuckyDog has quit [Ping timeout: 240 seconds]
robmiller has quit [Quit: Leaving.]
migbar has joined #ruby-lang
chussenot_ has joined #ruby-lang
rolfb has joined #ruby-lang
mouse_ has quit [Ping timeout: 240 seconds]
symm- has quit [Quit: Leaving...]
chussenot has quit [Ping timeout: 255 seconds]
chussenot_ is now known as chussenot
symm- has joined #ruby-lang
kiddorails has joined #ruby-lang
|jemc| has quit [Ping timeout: 264 seconds]
migbar has quit [Ping timeout: 240 seconds]
chussenot has quit [Quit: chussenot]
mouse_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 255 seconds]
nofxx_ has quit [Ping timeout: 250 seconds]
ruby-lang601 has joined #ruby-lang
<ruby-lang601>
hi
hellangel7 has quit [Read error: Connection reset by peer]
ur5us has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
<jhass>
hi
haraoka has quit [Ping timeout: 255 seconds]
ur5us has quit [Ping timeout: 260 seconds]
robmiller has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
<ruby-lang601>
i having some issue with running mongodb admin commands from ruby...can anybody help