<porcelina>
i wonder how those work for image matching. ;o
<porcelina>
probably pretty badly...
crankharder joined #ruby-lang
AndChat| joined #ruby-lang
flip_digits joined #ruby-lang
lsegal joined #ruby-lang
gregmoreno joined #ruby-lang
takaokouji joined #ruby-lang
nofxx joined #ruby-lang
yfeldblum joined #ruby-lang
woollyams joined #ruby-lang
gentz joined #ruby-lang
vesan joined #ruby-lang
neoesque joined #ruby-lang
<erikh>
text gem too
looopy joined #ruby-lang
looopy joined #ruby-lang
wyhaines joined #ruby-lang
tomzx joined #ruby-lang
Banistertab joined #ruby-lang
mbriggs joined #ruby-lang
mikeric joined #ruby-lang
SuperTa__ joined #ruby-lang
Defusal joined #ruby-lang
Defusal joined #ruby-lang
spuk joined #ruby-lang
meth joined #ruby-lang
banisterfiend joined #ruby-lang
tomzx joined #ruby-lang
looopy joined #ruby-lang
<jtoy>
i want all calls to method foo to run some code before it runs, what is the ruby way to do this?
<jtoy>
I saw that rails uses a trick with aliasing a method where the initialization code goes and then call the original method, is this considered good ruby?
<drbrain>
class HomeWork < MethodInterception; def say_hello; puts "say hello"; super; end; end
<drbrain>
jtoy: Just Use super
<drbrain>
I guess you'd want class Interceptor < HomeWork and use super in there, but really, just use super
<jtoy>
drbrain: how would I use super to accomplish that? my current setup is I have a class Job with self.run and then I subclass that and implement run with the job, Im trying to time/log the runtime of my jobs
<drbrain>
so you have class DeliverJob < Job ?
<jtoy>
drbrain: yes
<jtoy>
and then I do self.run ; and implement my jobs in there
<drbrain>
and if you have ReadJob and WriteJob you don't want duplication, right?
<jtoy>
drbrain: yeah, I wrote hundreds of jobs, and so I am trying to figure out how to modify this once so all my jobs are logged
<jtoy>
drbrain: cool, i didnt know i could do #1 like that
<jtoy>
drbrain: probably method #2s easier to implement so I dont have to add super to every call
<drbrain>
jtoy: if you already have lots of implementations #2 is easier
<jtoy>
drbrain: but starting fresh you would do #1?
<drbrain>
it depends
<drbrain>
I'd probably do #2 because #1 feels too fancy
<drbrain>
#1 came to mind first
<drbrain>
making the user add extra indentation feels wrong on second thought
<jtoy>
drbrain: huh, indentation where?
<drbrain>
super do [indented code] end
<jtoy>
ah, i see
aef joined #ruby-lang
<jtoy>
drbrain: thx, appreciate it
<drbrain>
jtoy: I prefer less magic^Wmetaprogramming
tyler- joined #ruby-lang
<jtoy>
drbrain: i prefer whatever has faster execution time which i think equals less magic
<aef>
drbrain: hey there. I remember I discussed signing gems with gpg with you one time. what do you think about signing all gems commited to rubygems by a rubygems specific key? a bit like the debian style repositories. thereby you could remove the hassle of key exchange almost competely and enable people to run mirrors in a secure way.
<drbrain>
aef: I think this is the best way
<aef>
drbrain: so was this discussed already? are there plans to implement such a thing?
brianpWins joined #ruby-lang
<drbrain>
aef: nothing official
elephants joined #ruby-lang
<drbrain>
aef: if you want to check out the rubygems.org source and work on it I would be grateful
<drbrain>
(of course, it would need to use OpenSSL since that's universally available with ruby)
<aef>
drbrain: is it currently possible to sign a gem multiple times? so that if this signing is implemented, people don't have to abandon their current signing process?
<drbrain>
currently it is not, but since the signatures are just extra files in the gem (which is a tar archive) having data.tar.gz.sig, data.tar.gz.sig.1, .2, … wouldn't be a problem
<drbrain>
aef: the path of least resistance tells me to only auto-sign gems that aren't signed by the author
<aef>
drbrain: well, maybe i'll look into it. but I already didn't finish my patch to allow providing signing key by commandline because of insufficient spare time, you may remember the pull request.
jwill joined #ruby-lang
<drbrain>
aef: I know, I don't have enough spare time either
<aef>
drbrain: is there currently any post processing in former gemcutter? i mean, I guess signing should happen asynchronous to the pushing request.
<drbrain>
I do not know much about the internals of gem cutter, but I think the only thing that happens is the gemspec is extracted to fetch the version and dependencies and so-forth
<drbrain>
I don't think the file is edited
looopy joined #ruby-lang
<aef>
drbrain: is there just the mailing list or is there a bug tracker for rubygems? or should one use the ruby core redmine for that?
<Koolvin>
Hey, I have a ruby application that's preventing phpmyadmin from being editable, how can I fix that
<Koolvin>
Rather
<Koolvin>
Viewable
<lianj>
its a feature!
<Koolvin>
Great!
<Koolvin>
How do I disable said feature
<lianj>
not sure :) whats the error and setup?
<Koolvin>
No error, simply not allowing me to access phpmyadmin
<Koolvin>
404
<Koolvin>
Ubuntu 10.04
<kalleth>
Koolvin: What ruby application? Sinatra?
<Koolvin>
With gitorious overlaying phpmyadmin
<Koolvin>
Gito
<Koolvin>
Gitorious
<kalleth>
Koolvin: have you ever used a rails application before?
<kalleth>
Koolvin: the problem will be that your apache config file is passing all of the requests coming in for that site to passenger, assuming they all go to the rails application
dv310p3r joined #ruby-lang
<kalleth>
Koolvin: I can't actually fix it for you, but you need to modify the /etc/apache2/sites-available/gitorious file to make sure it only runs for a given subdomain/location/etc.
Dreamer3 joined #ruby-lang
<Koolvin>
Alright
darkf joined #ruby-lang
<Koolvin>
Kalleth, how can I make the emailing function work
plusk joined #ruby-lang
gearaholic joined #ruby-lang
kmeehl joined #ruby-lang
looopy joined #ruby-lang
elephants joined #ruby-lang
lele|w joined #ruby-lang
<Koolvin>
How can I get the ruby email to work
srbaker joined #ruby-lang
steph021 joined #ruby-lang
steph021 joined #ruby-lang
S2kx joined #ruby-lang
lele|w joined #ruby-lang
macmartine joined #ruby-lang
SuperTaz_ joined #ruby-lang
<sirfilip>
night
sirfilip left #ruby-lang
voker57 joined #ruby-lang
voker57 joined #ruby-lang
cjs226 joined #ruby-lang
zmack_ joined #ruby-lang
marcosto_ joined #ruby-lang
S1kx joined #ruby-lang
rushed joined #ruby-lang
srbaker joined #ruby-lang
elephants joined #ruby-lang
burgestrand joined #ruby-lang
looopy joined #ruby-lang
marcostoledo joined #ruby-lang
<erikh>
drbrain: I can better articulate this rubygems output not showing up when there's no tty; it's more of a feature request involving the download reporter but it is what it is if you have time to hear it
babinho joined #ruby-lang
<erikh>
the thing I was talking to zenspider about a month or so back
<erikh>
I can put a ticket in too if you're hibernating on that project.
Dreamer3 joined #ruby-lang
ksinkar joined #ruby-lang
terraUNDverra joined #ruby-lang
havenn joined #ruby-lang
butchanton joined #ruby-lang
MrPunkin joined #ruby-lang
apeiros_ joined #ruby-lang
<MrPunkin>
Guys, I'm trying to gain support for Ruby 1.9s Rational#rationalize method that creates an approximated rational (for the purpose of say converting .3333335 into 1/3). Is there any way to monkey patch this into 1.8.7 easily? I'm guessing no, since Ruby's code is C
headius joined #ruby-lang
lele|w joined #ruby-lang
cyri_ joined #ruby-lang
lightcap joined #ruby-lang
kalleth joined #ruby-lang
looopy joined #ruby-lang
<andrewvos>
Hey. I wrote a gem but when I run it from a directory of another project with a gemfile then it's having dependency issues.
<andrewvos>
The gem has haml in it's gemspec, and it works from anywhere on the file system except my project directory.
<steveklabnik>
MrPunkin: only half of ruby is in C, the standard library is in ruby, the inerpreter and core libraries are in c
<MrPunkin>
Anyone know what the principle/theory is called that allows you to round a rational down to an easy "fraction"?
zmack joined #ruby-lang
<bougyman>
hrm
<bougyman>
a fraction is a rational, i'm confused.
<rue>
MrPunkin: You mean 2/6 -> 1/3?
<erikh>
lowest common denominator?
lele|w joined #ruby-lang
<MrPunkin>
Like so .00555556 converts to Rational(138889, 25000000), ruby 1.9 has "rationalize" that will convert it to 1/180
<MrPunkin>
there is some theory or something I read about that is used to do this
<Koolvin>
Simplifying fractions?
<MrPunkin>
it had some name
<MrPunkin>
some dude, smart dude
<MrPunkin>
or something
<MrPunkin>
ha
<rue>
LMGTFY: smart dude fractions
<erikh>
heh, mandelbrot?
* erikh
pisses into the wind
<rue>
It's just rational simplification, I guess. #rationalize takes an epsilon to use
hahuang65 joined #ruby-lang
<rue>
Or, apparently, guesses one if one's not given…
<MrPunkin>
theory of continued fractions
<MrPunkin>
is what I was looking for apparently
<rue>
Fucking maths, how does it work?
<shevy>
2+2=5
<MrPunkin>
you forgot to drop the 0
<Koolvin>
Not true!
<Koolvin>
2+5/2-1 = 5
<shevy>
I zero you!
<Koolvin>
How do I continue 56/0?
<andrewvos>
IS the rubygems download count right?
<shevy>
you could rescue ZeroDivisionError
<andrewvos>
I mean, why would someone download a gem that doesn't even explain what it does.
<shevy>
andrewvos when it has a cool name perhaps
<shevy>
"See, I have the gem God, Master and Ponies."
<andrewvos>
bundle gem this_will_rm_rf_your_shit
<shevy>
a gem virus!
yfeldblum joined #ruby-lang
<manveru>
even more?
<rue>
Koolvin: You can't continue a division by zero
<samuelkadolph>
andrewvos: ERROR: Could not find a valid gem 'this_will_rm_rf_your_shit' (>= 0) in any repository
<samuelkadolph>
I feel lied to
<Koolvin>
Ya you can
<rue>
No…
<manveru>
56/0.0
<manveru>
there you go
<lianj>
zing
<Koolvin>
56/0 = 8
<manveru>
oO
<manveru>
so... what universe are you from?
<samuelkadolph>
wut?
<jaska>
:D
<Koolvin>
Have you never seen survivor?
<manveru>
no
<Koolvin>
They teach you all about that shit
<manveru>
what's that?
<Koolvin>
It's a gym in north canada
<Koolvin>
They have tons of lions and shit
<shevy>
sounds like a very cold gym
<Koolvin>
All of them are commissioned to divide by zero
<manveru>
canada and lions?
<Koolvin>
As of yet they have come up with 56/0 = 8
<Koolvin>
Yah
<shevy>
sealions
<Koolvin>
Northern canada
<shevy>
whoa man
<shevy>
I can see Infinity here...
<samuelkadolph>
That reminds me to go hunt some sealions
<shevy>
56/0.0 # => Infinity
<Koolvin>
No
<shevy>
who would have thought that Infinity is so close to zero zero
<Koolvin>
Oh, did my infinity symbol show up for you?
<Tanaka>
If you turn the head right or left, that's true... Because 8 is just a rotated infinity symbol-->[ -]
<jaska>
It's not the end of the world, but you can see it from here...
<shevy>
sounds like coding under influence of weed
<Koolvin>
I posted an infinity symbol, however most IRC clients simply resolve it to 8
<shevy>
ah
<shevy>
thought those were boobs
<samuelkadolph>
No you fail at pasting a real infinity symbol
<Koolvin>
Lions don't give a fuck about your crazy science math shit.
<Tanaka>
Koolvin: I turned the head and I saw it \m/
<manveru>
you meant ∞
<Koolvin>
The head?
<samuelkadolph>
∞
<shevy>
I can't see what manveru typed :(
<jaska>
i can see manverus infinity symbol all right
<manveru>
shevy: you are on ISO
<bougyman>
it's fine here, too
Tanaka left #ruby-lang
<bougyman>
we're in 2011, get UTF already
<Koolvin>
^^
<samuelkadolph>
Yeah, no kidding
<Koolvin>
UTF 0 bit
<Koolvin>
Forget that UTF BS
<Koolvin>
Get UTF 8bit
<manveru>
i don't think you make any sense today
<Koolvin>
I'm really tired.
<Koolvin>
That makes sense.
<bougyman>
s/\bto//
<Koolvin>
Therefore, I have disproven your statement
<manveru>
go sleep with the lions
<Koolvin>
Fuck that shit
<Koolvin>
I'm not in canada
<Koolvin>
And I know science
<Koolvin>
They don't like the non-believers
<Koolvin>
Rather ? the believers?
<samuelkadolph>
zenspider: Wakey wakey
<Tasser>
how do I install a gem I got as file?
<manveru>
Tasser: gem install path/to/file.gem
<manveru>
possibly with -l for local
<Koolvin>
Shevy
<shevy>
what
<Koolvin>
I'm having more troubles =[
<Koolvin>
Something you might be able to help with
macmartine joined #ruby-lang
<shevy>
when something is too complex, simplify it
<Koolvin>
Git-poller is failing to start
<Tasser>
manveru, nah
<Tasser>
➜ /tmp gem install -l ./pry-0.9.7.4.gem
<Tasser>
ERROR: Could not find a valid gem './pry-0.9.7.4.gem' (>= 0) in any repository
<manveru>
oh?
<rue>
Leave out the -l?
<Tasser>
installs from remote
<rue>
No, it doesn't.
<manveru>
gem i -l pry
<manveru>
i think it searches cwd first
<manveru>
otherwise without -l... dunno
<Tasser>
same error
<rue>
I personally just installed something last week with $ gem install meh-version.gem
<lianj>
ack
<manveru>
likewise
wmoxam joined #ruby-lang
echoprinter joined #ruby-lang
<shevy>
rack
<shevy>
never saw -l
<shevy>
oh
<shevy>
-l, --local Restrict operations to the LOCAL domain
heftig joined #ruby-lang
macmartine_ joined #ruby-lang
<t4nkd>
steveklabnik: o hai steve -- actually just trying to make a reserved word array for some schemaless data storeage
axegee joined #ruby-lang
resetexistence joined #ruby-lang
<t4nkd>
steveklabnik: mongoid has a list of reserved words for headers, but it also tends to choke on reserved ruby/rails words
gregmoreno joined #ruby-lang
nofxx joined #ruby-lang
<axegee>
so I have a method that executes an FSSM block (https://github.com/ttilley/fssm) and tries to call another method from inside the update/delete blocks and fails because of lost context
<axegee>
how do I solve that?
<shevy>
hmm question ... I have right now a method in a module. every .rb program calls that method with something like bla(__FILE__)
<shevy>
so basically I just need the filename
<shevy>
but writing bla(__FILE__) is kinda ugly ...
<apeiros_>
shevy: you can use caller
<apeiros_>
I'd use nil as default and use caller if nothing has been passed.
Phrogz joined #ruby-lang
looopy joined #ruby-lang
woollyams joined #ruby-lang
jensn_ joined #ruby-lang
<Mon_Ouie>
I wish caller returned something we wouldn't need to parse manually
<apeiros_>
seconded
m0wfo joined #ruby-lang
<rue>
__caller__ ?
<Tasser>
Mon_Ouie, binding_of_caller ?
<rue>
That's not quite the same (nor directly supported)
<burgestrand>
plusk: I still don’t get it. What does the guide not have that you need?
d3vic3 joined #ruby-lang
Jake232 joined #ruby-lang
steph021 joined #ruby-lang
steph021 joined #ruby-lang
curtism joined #ruby-lang
twittard joined #ruby-lang
looopy joined #ruby-lang
elephants joined #ruby-lang
<rue>
plusk: class A; @this_is_a_class_instance_variable = :yay; end
<burgestrand>
rue: what’s all those funky characters you been postin' recently?
<rue>
burgestrand: International Phonetic Alphabet
yorickpeterse joined #ruby-lang
<burgestrand>
That’s what I thought *half* of it was
<rue>
[ʌɪ'pʰɪːɛɪ]
wyhaines joined #ruby-lang
arooni-mobile joined #ruby-lang
workmad3 joined #ruby-lang
shivamib joined #ruby-lang
<shevy>
apeiros_ hmm ok, will play around with caller
arooni-mobile__ joined #ruby-lang
udzinari joined #ruby-lang
<andrewvos>
gem install this_will_rm_rf_your_shit
cjs226 joined #ruby-lang
<andrewvos>
samuelkadolph: Done ^
<shevy>
lies!
saLOUt joined #ruby-lang
<infid>
is there a way to do a .upto() on two variables at the same time?
<burgestrand>
What would it do?
<whitequark>
infid: a, b = 100, 200; 0.upto(13) do |x| p a+x, b+x end
<andrewvos>
whitequark: Oooh. Sneaky
<Mon_Ouie>
Maybe he wanted zip, e.g. (0..50).zip(10..60) do |x, y| … end
saysjonathan joined #ruby-lang
theconartist joined #ruby-lang
musl joined #ruby-lang
thone joined #ruby-lang
<infid>
the zip thing didn't seem to do it
cout joined #ruby-lang
<shevy>
but your problem is already solved right!
ilyam_ joined #ruby-lang
NemesisD joined #ruby-lang
ryanf joined #ruby-lang
<NemesisD>
is there a way to control when a module gets included into a class? i have a module which overrides some methods that the class defines. the problem is that includes traditionally happen at the beginning of the class definition, so the class ends up overriding my module
nuclearsandwich joined #ruby-lang
thrcka joined #ruby-lang
<TTilus>
NemesisD: it does not matter which comes first, the definition of the class methods or the inclusion of module
<TTilus>
NemesisD: the module comes after the class itself in the ancestors list
<TTilus>
NemesisD: if you call a method, it is essentially the ancestors list, which is walked to find an implementation of the method
<TTilus>
NemesisD: if you want to override (as if you had inherited from the class) methods you need to restructure the class to allow that
<NemesisD>
TTilus: restructure in what way
malev joined #ruby-lang
<TTilus>
NemesisD: ill cook a short example
Phrogz_ joined #ruby-lang
<Phrogz_>
Well-versed comp sci masters: is there a name for ~partial-application of functions through accumulating key-value pairs until complete (as seen in my middle code block here: http://stackoverflow.com/q/8233255/405017) ?
<burgestrand>
Add the overriding methods through your own module and extend/include it before you extend/include the other
<TTilus>
Tasser: that ^ would have been for Tati hadnt he been gone already
benanne joined #ruby-lang
tomku left #ruby-lang
scampbell joined #ruby-lang
<NemesisD>
TTilus: thanks. i think the implementation idea will work. i'm going to name the module Overrideable and only include the methods ill allow to be overridden. i'm happy with that
udzinari joined #ruby-lang
dejongge joined #ruby-lang
<rue>
That sounds kinda iffy. What’s your use case, NemesisD?
aglenday joined #ruby-lang
jensn joined #ruby-lang
Manhose joined #ruby-lang
<akahn>
Why does this return nil? [1,2,3,4,5].zip([4,5,6,7,8]) {|a, b| a * b }
<burgestrand>
When given a block, zip returns nil
<akahn>
why is that? shouldn't it use the block as a function to zip the two values?
<burgestrand>
I think it’s silly, too
<burgestrand>
But no
<akahn>
lolruby?
<rue>
akahn: loluser
<rue>
zip is a sequence of pairs
<andrewvos>
roflrue
<burgestrand>
zip and map if you want the behaviour you describe
<rue>
Yes, zip.map { block }
srbaker joined #ruby-lang
<akahn>
nice :)
<rue>
It would make no sense for a zip to return a sequence of single elements
zmack joined #ruby-lang
Mon_Ouie joined #ruby-lang
<andrewvos>
I got my algorithm working!!
<andrewvos>
(well, not my one)
<samuelkadolph>
andrewvos: How hard is it to write `rm -rf /`?
twittard joined #ruby-lang
<andrewvos>
samuelkadolph: It's a joke. You know that right?
<samuelkadolph>
andrewvos: As was mine :P
<andrewvos>
:)
<samuelkadolph>
I wish rubygems.org had reviews
<samuelkadolph>
This gem didn't not do what was expected. 1 start
<Tanak>
Hi guys, what's the regex to say "return to line" ?
<andrewvos>
Tanak: What do you mean?
<injekt>
what?
<samuelkadolph>
Regex cannot "say" anything
<injekt>
regex say u wrong!
<Tanak>
andrewvos: I'm parsing some expressions, and I have to say "match(return to line)", but I don't know how. I tried '\n', but I got wierd results
<oddmunds>
andrewvos: what's the problem with single quotes?
<rue>
Return to what line?
<Tanak>
don't know how to call it, new line maybe ?
<Koolvin>
My boss essentially told me that he wants me to single handedly build a social network that houses multiple types of users and several different formats of user posted content
<TTilus>
Koolvin: in addition to that, you need a goal as burgestrand suggests
<TTilus>
Koolvin: so you have a goal =D
<wmoxam>
Koolvin: awesome
<Koolvin>
I essentially told him that it'd be beneficial to build it with ROR, so hire someone who can =>
<TTilus>
Koolvin: he needs your other hand for something else?
<injekt>
well, depends what you compare it too I guess :-)
<Koolvin>
I know there are frameworks and such, but they are all just so.. ancient
<Koolvin>
Php is definitely slow
<injekt>
and there are php frameworks that aren't ancient, lol
<wmoxam>
Koolvin: PhP is about the same speed as Ruby
<injekt>
ruby is slower than php...
<Koolvin>
Sounds great
<wmoxam>
isn't CodeIgniter hot shit these days?
<Koolvin>
I guess I just want a bit of a change
<Koolvin>
Not really "hot shit":
<Koolvin>
It's a pain in the ass
<wmoxam>
heh
<TTilus>
php processes usually only live to see one request and thus have humongous load/parse/bytecompile/bootup overhead
brushbox joined #ruby-lang
<TTilus>
thats why there are a whole industry of php accelerators
<Koolvin>
Right
<Koolvin>
But on a sufficient server and with sufficient setup, that's negated.
gix joined #ruby-lang
<Koolvin>
Meh
<TTilus>
well, actually no ;)
<Koolvin>
I guess I really have no reason to use ROR rather than a php framework
<Koolvin>
Sounded good at the time
<burgestrand>
It’s fun.
<Koolvin>
Yes it'd be fun to learn another language
<andrewvos>
troll?
<injekt>
na
<burgestrand>
Ruby is made for enjoyment.
<burgestrand>
It makes a difference for you, as a programmer.
<andrewvos>
PHP is made for pain, on the other hand.
<burgestrand>
PHP wasn’t made it was summoned.
<Koolvin>
Well why are sites like github and twitter using ROR rather than a PHP framework
<burgestrand>
… one function at a time
<andrewvos>
Spawned, if you will.
<injekt>
PHP was crafted by dwarfs in the underworld
<Koolvin>
Lol.
<injekt>
Koolvin: why is facebook using php?
<wmoxam>
like a teenaged pregnancy, PHP just kinda happened
<injekt>
oh snap, did I just rm -rf your point?
nofxx joined #ruby-lang
<TTilus>
injekt: that needed to be said =D
<Koolvin>
No
<Koolvin>
Because facebook is the only site at that level using php
<injekt>
Koolvin: the point is, use what's best for you
<Koolvin>
Mainly atleast
<burgestrand>
Koolvin: RoR is very good for prototyping. Beyond that point it’s very similar to any good architected system (assuming you kept the coding standard up)
<injekt>
twitter doesn't just use rails
<wmoxam>
Koolvin: untrue
<wmoxam>
:/
<injekt>
in fact they replaced a love of rails with scala
<injekt>
lot*
<Koolvin>
And there must be a reason for that
<burgestrand>
Once you get to a high enough level, shit will break no matter the language or framework you use ^^
<Koolvin>
I wasn't asking to make a point
<Koolvin>
I was curious =p
<injekt>
companies use what they think will work best for what they're trying to achieve
<injekt>
if I thought php was better for my company, I would use it
<injekt>
but, alas, I dont
<injekt>
but, we're migrating some stuff to the jvm, which our ruby devs probably wont like
<havenn>
Get thee behind me, PHP! Thou art an offense unto me, for though savourest not the things of God's interests, but man's.
<Koolvin>
Wut?
<injekt>
tl;dr fuck you php
<Koolvin>
Lol
<injekt>
Koolvin: if you think ruby fits what you're trying to do, and you're interested in learning it
<injekt>
go for it
<TTilus>
php is a part of a kinda fun cycle which i see happening repeatedly here and there
<TTilus>
php used to be a templating language for perl
<injekt>
lol
<TTilus>
smarty is a templating language for php
<TTilus>
i bet some day there will be a templating language written in (and for) smarty
<hrnt>
perl6
<shevy>
Koolvin the problem of PHP is that it is spaghetti design
<Koolvin>
But I <3 spaghetti
<Koolvin>
Btw
<andrewvos>
False. The problem with php is it takes an incredible amount of code to do anything.
<Koolvin>
Why don't people use perl in the mainstream anymore ?
<injekt>
the problem with php is the people who write php
<andrewvos>
Well, anything non-trivial at least.
<injekt>
Koolvin: I use perl a lot
<Koolvin>
Such as?
<shevy>
Koolvin spaghetti are nice when you want to eat them, but not when building a skyscraper
<Koolvin>
I do as well
<Koolvin>
But in applications and production programs
<injekt>
shevy: a spaghettiscrape?
<injekt>
r
<Koolvin>
I hardly ever see it any more
<Koolvin>
What if you're planning on eating the skyscraper?
<shevy>
injekt thou shalt build on steel and concrete!!!
<shevy>
Koolvin sure, if you want to eat it then PHP is just fine
<Koolvin>
Lol.
<shevy>
Koolvin I am not understanding your question about perl though, in the end you can use any programming language. But some suck more than the others do
<TTilus>
Koolvin: so if you dont see perl you are looking into wrong direction
<freedrull>
does this mean the argument to gsub is invalid, or the callee is invalid? `gsub': invalid byte sequence in UTF-8 (ArgumentError)
srbartlett joined #ruby-lang
<Koolvin>
I guess you must be right TTilus
<shevy>
freedrull ruby is just bitchy about some invalid character in that stream
<shevy>
I think the string to gsub must be incorrect
<drbrain>
freedrull: the string you called gsub on has an invalid byte
<freedrull>
that's what i thought. the error message makes me think the args are wrong instead...
* freedrull
throws force_encoding() everywhere
<Koolvin>
Everywhere is sort of impossible.
<Koolvin>
How do I unload a ruby application
srbartlett joined #ruby-lang
<Koolvin>
Essentially
<Koolvin>
Remove it completely
mnaim joined #ruby-lang
meth left #ruby-lang
ecin joined #ruby-lang
srbartlett joined #ruby-lang
robotmay joined #ruby-lang
adamjleonard joined #ruby-lang
postmodern joined #ruby-lang
<shevy>
Koolvin remove it!
<shevy>
rm *.rb!!!
<Koolvin>
Did it
<Koolvin>
Awhile ago
elephants joined #ruby-lang
<shevy>
Koolvin good!
<shevy>
Koolvin now you need to invest heavily into perl for the future
<shevy>
perl 6 and Hurd will rock the boat
Mon_Ouie joined #ruby-lang
<jaimef>
anyone ever seen activerecord return an int with "++" appended to the end? e.g. "123456++" vs "123456" which a query to mysql yields?
<rue>
jaimef: Someone on #ror may have
kain_ joined #ruby-lang
hagabaka joined #ruby-lang
hagabaka joined #ruby-lang
Austin__ joined #ruby-lang
<shevy>
I wanna flyyyyyyyyyyyyyyyyy
M- joined #ruby-lang
<Koolvin>
Oh
<Koolvin>
Okay
<shevy>
Koolvin let's fly together to a new land
<shevy>
you mentioned something about lions in Toronto
petercooper joined #ruby-lang
<Koolvin>
No
<Koolvin>
Northern canada
<Koolvin>
Not toronto
<Koolvin>
And they do math
<shevy>
but ... there is nothing but ice in the north :(
<Koolvin>
And lions
<Phrogz_>
!
<andrewvos>
What's the best way to add a method to an instance real quick?
<andrewvos>
Outside of the class
<andrewvos>
By real quick I mean like on the fly.
<andrewvos>
Or um, to the eigenclass.
<terraUNDverra>
andrewvos: def o.meth; end
<andrewvos>
terraUNDverra: Cool, so that's not a nasty way to do it?
Axsuul joined #ruby-lang
cjs226 joined #ruby-lang
<apeiros_>
andrewvos: unless you consider class methods to be nasty…
Austin__ left #ruby-lang
<andrewvos>
apeiros_: Yeah, I decided to create a new class instead of doing that. Probably because restclient pissed me off so much with its String.extend stuff.