srbartlett has quit [Remote host closed the connection]
perryh_away is now known as perryh
srbartlett has joined #ruby-lang
QaDeS_ has joined #ruby-lang
savage- has quit [Remote host closed the connection]
Natch| has joined #ruby-lang
QaDeS has quit [Ping timeout: 245 seconds]
novodinia has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
novodinia has quit [Changing host]
novodinia has joined #ruby-lang
soahccc` is now known as soahccc
cmacos is now known as cjrwin
<novodinia>
i am solving the project euler problems, i several solutions to the first problem, i was thinking of making a class named something like 'peuler1', i don't know the typical naming convention used
<novodinia>
one of the solutions is a class itself
<novodinia>
i don't know if that's a problem
<novodinia>
also, is it recommended to require more than one module per line?
Hakon|mbp has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
QaDeS_ has quit [Quit: Ex-Chat]
Criztian has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
bruno_coelho has joined #ruby-lang
ConstantineXVI has quit [Remote host closed the connection]
<ryanf>
novodinia: you are defining fmans as an instance method of the class ProjectEuler1::Solutions1
<ryanf>
you need to either instantiate an object of that type and then call fmans on it, or make those class methods instead and call e.g. ProjectEuler1::Solution1.fmans
<ryanf>
but you can't just call fmans directly unless you are already in the context of an object of the class ProjectEuler1::Solutions1
<bnagy>
good thing you're here and not in #python then
kaspernj has joined #ruby-lang
<shevy>
hehe
<shevy>
I never get past the language barrier
<shevy>
I write sshhh Szszhshshs sshshshhshs all diligently and everyone suddenly wants to ignore me :(
<bnagy>
mmm parseltongue
PhilCK has quit [Quit: PhilCK]
gasbakid has quit [Ping timeout: 246 seconds]
cantonic has joined #ruby-lang
flip_digits has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
retro|cz has joined #ruby-lang
gasbakid has joined #ruby-lang
Codif has joined #ruby-lang
kvs has quit [Ping timeout: 248 seconds]
kvs has joined #ruby-lang
rushed has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
adambeynon has joined #ruby-lang
<shevy>
hmm
<shevy>
is it adviced to use a method called "send" in a ruby class?
<shevy>
send 'hi'
solars has quit [Read error: Connection reset by peer]
huug has joined #ruby-lang
<shevy>
or would that conflict with the default self.send for objects in ruby
huug has quit [Client Quit]
<yxhuvud>
__send__
<yxhuvud>
however, not everyone uses that
PhilCK has joined #ruby-lang
ssand has joined #ruby-lang
solars has joined #ruby-lang
yugui_zzz is now known as yugui
sandbags has joined #ruby-lang
PhilCK has quit [Quit: PhilCK]
yugui is now known as yugui_zzz
stamina has joined #ruby-lang
ryanf has quit [Quit: leaving]
m10zart has quit [Quit: Leaving.]
flip_digits has quit [Quit: Computer has gone to sleep.]
s0ra_h is now known as sora_h
ttilley has quit [Remote host closed the connection]
llakey has quit [Read error: Operation timed out]
llakey has joined #ruby-lang
gregmore_ has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
<rue>
__send__ is the backup
<rue>
So, for example, Socket can use #send, and there’s still __send__ if needed.
<rue>
shevy: ^
<shevy>
ah nice
Z33K|Lux has quit [Ping timeout: 246 seconds]
sora_h is now known as s0ra_h
benanne has joined #ruby-lang
diegoviola has quit [Quit: leaving]
A1241 has quit [Read error: Connection reset by peer]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
jxie has quit [Quit: leaving]
Codif has quit [Remote host closed the connection]
deobald__ has joined #ruby-lang
Erlfin has joined #ruby-lang
dax has quit [Ping timeout: 619 seconds]
dax has joined #ruby-lang
<Erlfin>
Hi
<Erlfin>
I'm programming a Irc bot, and need some help. For example when you write !ping in a channel, it answer !pong in a privmsg to the nickname and not the channel: PRIVMSG #{@channel} :PONG, how do I change the channel tag to the nickname of the user?
<Tasser>
Erlfin, take a look at cinch :-P
<Erlfin>
thx Tasser :)
Boohbah has quit [Ping timeout: 276 seconds]
mssola has joined #ruby-lang
postmodern has left #ruby-lang ["Leaving"]
s0ra_h is now known as sora_h
<shevy>
Erlfin I write a mini IRC client right now. it annoys me to no ends...
solars has quit [Ping timeout: 276 seconds]
sora_h is now known as s0ra_h
PhilCK has joined #ruby-lang
imperator has joined #ruby-lang
Erlfin has left #ruby-lang [#ruby-lang]
soahccc is now known as soahccc`
stardiviner has quit [Read error: Connection reset by peer]
<banisterfiend>
seanstickle: correction, u need to get the hell away from PHP
<seanstickle>
That is another option, true.
<banisterfiend>
seanstickle: i thought your company was ruby? it's PHP?
<yorickpeterse>
hahahahaha PHP pry
<seanstickle>
banisterfiend: mix-and-match
<banisterfiend>
yorickpeterse: oh hey yoz
<seanstickle>
And right now, I am between jobs.
<seanstickle>
Looking for new things.
TheHunter_1039 has joined #ruby-lang
<banisterfiend>
seanstickle: i thought you had some sweet job with a company something to do with trading carbon credits
<seanstickle>
banisterfiend: something like that, yes.
<seanstickle>
banisterfiend: wasn't really for me
adambeynon has joined #ruby-lang
<banisterfiend>
seanstickle: too much php?
<seanstickle>
Too much startup.
<imperator>
what, 80 hours a week wasn't fun?
<seanstickle>
Nah, that's fine.
<banisterfiend>
imperator: btw what happens if u dont reach the $50K for your kickstarter? everyone gets their money back? or do u get to keep what they've given so far?
<seanstickle>
Just not a great project list for me.
<seanstickle>
Hard to explain.
<seanstickle>
60 hours is my base, no matter what job I'm at.
<seanstickle>
So that rarely bothers me.
<seanstickle>
banisterfiend: money is only transferred on hitting the target
<imperator>
banisterfiend, they get their money back. it isn't really "spent" unless i reach my goal
<banisterfiend>
imperator: are you confident to reach it?
<imperator>
in other words, pledgers spend nothing until goal is reached
<kyrylo>
What's the goal?
<banisterfiend>
$50K
<kyrylo>
I mean, what's the goal, he wants to reach with help of money.
<imperator>
man, what is it with jruby and Dir.chdir? always has been squirrlyl
deobald__ has quit [Ping timeout: 260 seconds]
gix has joined #ruby-lang
gregf has quit [Quit: WeeChat 0.3.7]
<rue>
imperator: It’s just because it’s using the JavaOS view of the file system
<imperator>
rue, yeah, i've reported at least one issue with it in the past; blows up one of my tests i think
<rue>
Are you certain the test is correct?
<imperator>
works with mri
<imperator>
i'm using test-unit 2, and just doing a Dir.chdir call in the self.startup method so that some temp files i generate are created in the test directory
<imperator>
but with jruby it never seems to actually chdir
<imperator>
but....it might have something to do with me redefining Dir.pwd, not sure yet, still investigating
Defusal has quit [Quit: Quit message goes here]
<imperator>
(although, as i said, mri had no complaints)
ryez has quit [Ping timeout: 245 seconds]
virunga has joined #ruby-lang
ayumin has quit [Remote host closed the connection]
yannis has joined #ruby-lang
stamina has quit [Quit: Lost terminal]
tomb_ has joined #ruby-lang
thone_ has quit [Read error: Connection reset by peer]
ttilley has quit [Remote host closed the connection]
tRAS has joined #ruby-lang
flowerpot has quit [Quit: Ex-Chat]
jbsan has quit [Ping timeout: 245 seconds]
segy has quit [Ping timeout: 276 seconds]
segy has joined #ruby-lang
mikkelb has joined #ruby-lang
<mikkelb>
WHYYYYYYYYYYYYYYY always this shit https://gist.github.com/2759036 Error installing fileutils: ERROR: Failed to build gem native extension. (using cygwin, I already got ImageMagick and libImageMagick installed)
<Mon_Ouie>
You need a magick-config binary somehow
gsav has joined #ruby-lang
mistym has quit [Read error: Connection reset by peer]
<deryldoucette>
oh the joys of Windows! <NOT>
<mikkelb>
Well, this is using rvm. Using Cygwin's own Ruby version it works fine though
sepp2k has joined #ruby-lang
<mikkelb>
deryldoucette: hehe yeah :/
mistym has joined #ruby-lang
<mikkelb>
is there a way to install fileutils without rmagick?
<mikkelb>
probably not, forget i asked
<Mon_Ouie>
It's confusing to have a gem that has the same name as a library in stdlib but does something totally different
<mistym>
mikkelb: Is magick-config in your path?
<deryldoucette>
this is why RVM Project doesn't support windows. such a freakin nightmare.
<mistym>
Mon_Ouie: Yeah, the builtin FileUtils was what I was thinking of too.
<mikkelb>
Mon_Ouie: true that
<mikkelb>
mistym: doesnt seem like it no
<mistym>
mikkelb: Then add its location to your path.
nahhh has joined #ruby-lang
<mikkelb>
running find / -name magick-config
<mikkelb>
might be a better way but :-)
imperator has quit [Ping timeout: 276 seconds]
fgomez has quit [Ping timeout: 244 seconds]
imperator has joined #ruby-lang
gasbakid__ has quit [Quit: Quitte]
arooni-mobile has joined #ruby-lang
adambeynon has joined #ruby-lang
mikkelb has quit [Quit: Lost terminal]
t has joined #ruby-lang
t is now known as Guest12893
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mikkelb has joined #ruby-lang
tonesfrommars has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<mikkelb>
mistym: I don't know, I can't find magick-config / Magick-config anywhere. I've reinstalled ImageMagick and libImageMagick several times too.
toretore has quit [Ping timeout: 248 seconds]
<mikkelb>
Google says it's suppose to be in /usr/bin or /bin, but no sir!
<lsegal>
mikkelb there's pik for windows (rvm-like implementation)
* mikkelb
tinkers with the thought of using his 12-gauge shotgun
<lsegal>
you might get better results with that
<lsegal>
not the shotgun
mikkelb has quit [Disconnected by services]
mikkelb has joined #ruby-lang
<shevy>
hmm
<shevy>
yeah
<shevy>
try a smaller gun
<shevy>
:)))
<mikkelb>
hehe
zmack has joined #ruby-lang
<mikkelb>
i got one of those poisonous darts
<mikkelb>
used to stroke them gently under my arms to get a LSD-like high
<mikkelb>
* under my underarms
<mikkelb>
i think ill do that actually, might come up with a solution
<mikkelb>
jungle folks down there use them apparently, against construction workers etc. that come and try to mess up their forests
<lianj>
hihi
<Harzilein>
hmm
deobald__ has joined #ruby-lang
nahhh has quit [Quit: nahhh]
<Harzilein>
can ri caches be merged?
segy has quit [Ping timeout: 260 seconds]
segy has joined #ruby-lang
kaspernj has joined #ruby-lang
<andrewvos>
This channel never ceases to amaze.
<imperator>
oh?
<andrewvos>
imperator: Read up
<imperator>
what? lsd loaded darts?
<andrewvos>
Yep.
<imperator>
gem install llsd
<imperator>
alright, not quite, but close!
<andrewvos>
imperator: I would have a better chance of understanding the darts to be honest.
<imperator>
obviously, it's time to create an "lsd-darts" gem
yannis has quit [Read error: Connection timed out]
<lianj>
for windows construction workers
<andrewvos>
In any case, I think we've kind of arrived at the fact that when using Ruby under Windows the best choice is to quit and find a better job.
<imperator>
we have?
<andrewvos>
imperator: You didn't get the memo?
<imperator>
no, it must have come out when i was rebooting my snow leopard desktop for a security update
<andrewvos>
Was that a burn? I'm not even sure.
<imperator>
or maybe it was a safari security fix, i can never keep track
<andrewvos>
What's that new version of Windows? Windows 8? There, that's my comeback.
<imperator>
oh, well, as long as some guy in china is working for slave wages in a sweatshop somewhere so i can run this awesome hardware, i'm happy
<andrewvos>
imperator: You and me both buddy. You and me both.
savage- has quit [Remote host closed the connection]
kyrylo has quit [Quit: WeeChat 0.3.7]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
benanne has quit [Quit: kbai]
bnagy has quit [Ping timeout: 252 seconds]
bnagy has joined #ruby-lang
cirwim has joined #ruby-lang
slyphon has joined #ruby-lang
diegoviola has joined #ruby-lang
adambeynon has quit [Quit: adambeynon]
ttilley has joined #ruby-lang
ViperMaul has quit [Ping timeout: 244 seconds]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
rippa has quit [Ping timeout: 245 seconds]
virunga has quit [Quit: Sto andando via]
seanstickle has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
ViperMaul has joined #ruby-lang
Anda has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
Anda has quit []
Anda has joined #ruby-lang
Anda has left #ruby-lang [#ruby-lang]
Slackwise_ has quit [Ping timeout: 246 seconds]
sepp2k has quit [Remote host closed the connection]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
petercooper has joined #ruby-lang
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
ridders24 has joined #ruby-lang
kaspernj has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
cantonic has quit [Quit: cantonic]
erpuds has joined #ruby-lang
igotnolegs has joined #ruby-lang
fgomez has quit [Quit: leaving]
fgomez has joined #ruby-lang
erpuds has quit [Client Quit]
erpuds has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
benanne has joined #ruby-lang
spuk has joined #ruby-lang
ridders24 has quit [Ping timeout: 248 seconds]
virunga has joined #ruby-lang
ssand has quit [Quit: Leaving]
yxhuvud has quit [Ping timeout: 246 seconds]
andrewhl has joined #ruby-lang
erpuds has quit [Quit: erpuds]
fukushim_ has joined #ruby-lang
fukushima has quit [Ping timeout: 276 seconds]
segy has quit [Ping timeout: 240 seconds]
segy has joined #ruby-lang
harukomoto has joined #ruby-lang
eban has quit [Ping timeout: 244 seconds]
Axsuul has joined #ruby-lang
<apeiros_>
drbrain: can't you make *.gemspec the default arg to `gem build`?
* apeiros_
always stumbles over that again and again, just too stupid to learn it…
solars has quit [Ping timeout: 244 seconds]
mikkelb has quit [Quit: Lost terminal]
wallerdev has joined #ruby-lang
Guest12893 has quit [Remote host closed the connection]
fukushim_ has quit [Ping timeout: 244 seconds]
mssola has quit [Quit: Konversation terminated!]
fukushima has joined #ruby-lang
<kyrylo>
gem build <TAB>; works for me :)
<apeiros_>
you set up a bash-completion?
<kyrylo>
It's default behaviour in zsh. gem build f<TAB> expands to foo.gempsec, for example; Not a problem to press two (or three) more buttons.
<apeiros_>
kyrylo: zsh knows by default that it has to expand to something that ends in .gemspec for gem build? o0
* apeiros_
has some doubts about that…
<kyrylo>
You can write `gem build *.g*`
<cirwim>
gem build *spec
<cout>
or write a wrapper
<apeiros_>
kyrylo: I already do that
<apeiros_>
the point is that I don't want to have to type that
<apeiros_>
and *.gemspec would be a sane default
<cirwim>
I think it'd be cool if gem build with no arguments did the right thing too
<kyrylo>
Well, OK. Let's wait, what drbrain will say.
<apeiros_>
at least I don't see any use-cases where it'd be a problem
Hakon|mbp has quit [Quit: Leaving...]
<kyrylo>
apeiros_, also, I think there are completions for `gem` command. You could install one (I don't use them myself, though).
<apeiros_>
I probably should. I use bare gem commands quite often.
rmascarenhas has joined #ruby-lang
ttilley has quit [Remote host closed the connection]
srbartlett has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
naz has quit [Quit: Leaving]
erpuds has joined #ruby-lang
naz has joined #ruby-lang
publicvoid__ has joined #ruby-lang
publicvoid_ has quit [Ping timeout: 265 seconds]
hahuang65_ has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby-lang
andrewhl has quit [Quit: andrewhl]
benanne has quit [Quit: kbai]
hahuang65_ has quit [Quit: Computer has gone to sleep.]
nofxxx is now known as nofxx
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
<nofxx>
Isn't there any new, nice, cool human verification gem around? I remember one with those "5 minus 3" questions...
vesan has quit [Read error: Connection reset by peer]
vesan has joined #ruby-lang
<nofxx>
hehe.. won't be surprise if that filters more humans than machines today tbh....
<seanstickle>
It is a sort of tom jabbar
<seanstickle>
*gom jabbar
seanstickle has quit [Quit: seanstickle]
<nofxx>
"death-alternative test of human awareness" hehe, nice to know
virunga has quit [Quit: Sto andando via]
<nofxx>
alternative is work for google.. for free. Now they're using the captcha to OCR house numbers, taken with google streets
srbartlett has joined #ruby-lang
mistym has joined #ruby-lang
tomb_ has joined #ruby-lang
<rue>
You should play “The Final Countdown” and ask if it’s awesome or not. If they say no, it’s a computer
<kyrylo>
rue, what are you using to type correct apostrophes and quotes?
<rue>
OS X
<rue>
(Less glibly, it’s opt-<letter> and opt-shift-<letter> for a few of the more common ones)