<seanstickle>
Ruby for C-Sharpers, The Unexpurgated Edition
<CmdrTallen>
quirky madness
<seanstickle>
Yeah, don't use that book to learn Ruby
<seanstickle>
Get a proper book
<patient>
i really liked The Well-Grounded Rubyist by David Black
<seanstickle>
Yes, that is a very good one
<CmdrTallen>
I have this but I dont know if its current. http://goo.gl/oK2RT
<seanstickle>
Also the O'Reilly one is quite solid
<banisterfiend>
seanstickle: that book doesnt make the mistake (why's poignant guide)
<banisterfiend>
CmdrTallen: can u show me where it says Nil and Null ?
RainbowDashh has joined #ruby
<seanstickle>
banisterfiend: no, my recommendation to not read it is unconnected to the Nil/Null thing
<seanstickle>
CmdrTallen: that's an OK book too
<banisterfiend>
CmdrTallen: "Null" is mentioned on that page at all
<banisterfiend>
CmdrTallen: and Nil is just a chapter heading, all the code samples use 'nil'
<banisterfiend>
CmdrTallen: so what are you smoking?
<CmdrTallen>
oh I didnt mean to imply that book said that. Its my mind wondering if they are the same.
<banisterfiend>
CmdrTallen: but neither of them even exist in ruby!!
<banisterfiend>
CmdrTallen: so where did you get the idea they even exist?
Yarou has joined #ruby
<CmdrTallen>
well my case faux pas evidently caused much confusion. My "Nil" I really meant "nil" and "Null" I meant "null".
<banisterfiend>
CmdrTallen: null doenst exist in ruby
<banisterfiend>
only nil does :)
jeff_sebring has quit [Quit: Leaving]
<CmdrTallen>
and I didnt know if Ruby had "null" or not. Hence my question. It was confusing to me as "null" is used in C#.
<seanstickle>
Well, that was a roundabout conversation
htroyack has joined #ruby
<CmdrTallen>
excitable fellow indeed.
Zolrath has quit [Ping timeout: 265 seconds]
<banisterfiend>
CmdrTallen: no, your question was phrased such that you had assumed (or appeared to assume) null already existed, and you were asking if null and nil were the same
troyack has quit [Ping timeout: 244 seconds]
savage- has joined #ruby
straind` has quit [Read error: Connection reset by peer]
straind has joined #ruby
jfoley has joined #ruby
RandyInLA has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
troyack has joined #ruby
kyktommy has quit [Quit: kyktommy]
marknyc has joined #ruby
htroyack has quit [Ping timeout: 240 seconds]
dkissell_ has joined #ruby
indian has quit [Ping timeout: 255 seconds]
mnaser has quit [Read error: Operation timed out]
bigsky has quit [Read error: Connection reset by peer]
dnyy has quit [Remote host closed the connection]
dkissell has quit [Ping timeout: 265 seconds]
dkissell_ is now known as dkissell
ringotwo has quit [Remote host closed the connection]
mnaser has joined #ruby
Spooner has quit [Ping timeout: 248 seconds]
luckyruby has joined #ruby
itnomad has quit [Quit: Leaving]
bradhe has joined #ruby
slyfunky has joined #ruby
<Ionic`>
hm how do you speak spline?
<Ionic`>
es pe lain or splain?
mnaser has quit [Ping timeout: 264 seconds]
<Ionic`>
hm, ok, latter one
kyktommy has joined #ruby
mnaser has joined #ruby
<CmdrTallen>
seanstickle: by "the O'Reilly one" do you mean this? -> http://goo.gl/Oghjg
mnaser has quit [Client Quit]
<seanstickle>
Yup
<CmdrTallen>
ok thanks
brianpWins has quit [Quit: brianpWins]
Yarou has quit [Ping timeout: 248 seconds]
iocor has quit [Quit: Computer has gone to sleep.]
patient has quit [Quit: leaving]
RainbowDashh has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
emmanuel__ has quit [Remote host closed the connection]
justsee|away is now known as justsee
noganex has quit [Ping timeout: 246 seconds]
ringotwo has joined #ruby
noganex has joined #ruby
htroyack has joined #ruby
learc83 has joined #ruby
AlbireoX is now known as Guest88037
AlbireoX_ is now known as AlbireoX
troyack has quit [Ping timeout: 250 seconds]
htroyack has quit [Client Quit]
FreschFN has joined #ruby
kevinbond has joined #ruby
noyb has joined #ruby
ipsifendus has quit [Quit: ipsifendus]
larissa has quit [Quit: gone]
greasegum has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kyktommy has quit [Quit: kyktommy]
balki_ is now known as balki
Guest49465 has quit [Ping timeout: 246 seconds]
CmdrTallen has quit [Quit: Leaving]
ronychen has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
Guest83274 has joined #ruby
VegetableSpoon has joined #ruby
baroquebobcat has quit [Client Quit]
TheHairyWoodsman has joined #ruby
lkba has joined #ruby
<TheHairyWoodsman>
is there a Gemfile equivalent for python?
Synthead has quit [Read error: Connection reset by peer]
<seanstickle>
TheHairyWoodsman: yes, for pip anyways
baroquebobcat has joined #ruby
ronychen has joined #ruby
<seanstickle>
requirements.txt can be passed to pip to pull down specified packages
Z_Mass has joined #ruby
<TheHairyWoodsman>
ok googlin that.. thx so much sean
<TheHairyWoodsman>
seanstickle
<seanstickle>
Sure thing
<TheHairyWoodsman>
excuse me
<TheHairyWoodsman>
didn't mean to get so informal
<seanstickle>
No worries, Mr. Woodsman
<seanstickle>
;)
<TheHairyWoodsman>
i don't understand how to make a built python package l do with ruby… bothers me
<TheHairyWoodsman>
maybe pip is the answer
<seanstickle>
It's not as pleasant as in Ruby.
<TheHairyWoodsman>
I once did something with buildout
<TheHairyWoodsman>
was horrendous… will never do that again
<TheHairyWoodsman>
I thought it'd save me time; was way wrong. terrible 'library management' mechanism
cakehero has joined #ruby
<TheHairyWoodsman>
well, since seanstickle is so savvy to the world and way of things.. do you know a migration tool in ruby that's awesome and isn't rail's db:migrate business?
nari has joined #ruby
ronychen has quit [Client Quit]
<TheHairyWoodsman>
I'm wanting to give alembic a whirl (sql alchemy derived product), but that means I have to ask the rest of the team to get pythoned out
<seanstickle>
I stay away from Python.
<seanstickle>
You lucked out on asking me one of the few things I happened to know about.
<seanstickle>
:)
<TheHairyWoodsman>
heh
Sou|cutter has quit [Quit: WeeChat 0.3.0]
<TheHairyWoodsman>
very well
<TheHairyWoodsman>
i used to think python was great, still do… but ultimately the packaging story is killing me compared to ruby
<TheHairyWoodsman>
or java
<TheHairyWoodsman>
.jar and .gem are well done
rdx has quit [Quit: leaving]
baroquebobcat has quit [Quit: baroquebobcat]
stefanp_ has joined #ruby
AlbireoX is now known as Guest51731
Guest88037 is now known as albireox
<Spaceghostc2c>
Win.
albireox is now known as Guest61950
Guest51731 is now known as AlbireoX
baroquebobcat has joined #ruby
banisterfiend has quit [Remote host closed the connection]
chessguy has quit [Read error: Connection reset by peer]
chessguy has joined #ruby
baroquebobcat has quit [Client Quit]
AlbireoX is now known as Guest38405
Guest61950 is now known as AlbireoX
AlbireoX is now known as AlbireoX`
zhando has joined #ruby
Guest38405 is now known as AlbireoX
stefanp has quit [Ping timeout: 265 seconds]
jsilver has joined #ruby
FreschFN has quit [Quit: Leaving]
jlwestsr has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
codezombie has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
cantonic has joined #ruby
univers has quit [Remote host closed the connection]
Nanuq has joined #ruby
<Azure>
Let's say that I have my main script, `script.rb`. And I relatively require a file in it, `lib/loadfile.rb`. In loadfile.rb, I want to load a yaml file that is relative to that file, `a_file.yml`.
<Azure>
How do I target that file without having to explicitly say that it's in `./lib/`?
tomzx_ has joined #ruby
tomzx_ has left #ruby [#ruby]
<mdszy>
Azure: some sort of recursive-find thing?
<mdszy>
recursively searches from the current directory until it finds `a_file.yaml`
<Azure>
I suppose.
codezombie has joined #ruby
<mdszy>
only thing I could think of, I'm sure someone else has a better iea
<Azure>
Another example I suppose: I have a gem that I load, and in ./lib/mygem/ I have that yaml file that I want to load via a script in the same directory. How would I do that?
<mdszy>
*idea
<mdszy>
so the yaml file and script are in the same place?
<ryanf>
Azure: __FILE__ is the location of the current source file. so in loadfile.rb, you can say File.expand_path('a_file.yml', File.dirname(__FILE__))
<ryanf>
among other ways of arranging those method calls
yonggu has joined #ruby
dnyy has joined #ruby
ryanf has quit [Quit: leaving]
apok has joined #ruby
yonggu_ has quit [Ping timeout: 245 seconds]
<zhando>
anyone ever write a toggle_method; some_method; toggle_method in a declarative style?? i.e. wrap toggle_method { some_method }? This is what I came up with: http://pastebin.com/9xDZNfgF.. Is this called wrapping?
apok has quit [Quit: apok]
<zhando>
I'm thinking of taking this approach with saving the state of a flag, changing it then restoring the original state. Just seems so ugly to repeat a method call in code if you don't have to..
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
verto is now known as verto|off
Targen has joined #ruby
eggie5 has left #ruby [#ruby]
savage- has quit [Remote host closed the connection]
<seanstickle>
banisterfiend: Well, you certainly exploded a bit. :)
<banisterfiend>
seanstickle: he's been maintaing this same ridiculous line of argument for the last 2 hours, there's a few comments in that thread
<banisterfiend>
he's a total dumbass
<seanstickle>
Well, I guess I won't waste my time then.
<banisterfiend>
seanstickle: i was polite in my earlier posts :)
<banisterfiend>
seanstickle: well a 3rd party might make him shutup
td123 has joined #ruby
<seanstickle>
What, in your entire IRC experience, leads you to believe that more people saying smart things makes stupid people shut up?
<fowl>
srs internet business
<fowl>
matters of consequence here
Z_Mass has quit [Quit: Leaving]
<banisterfiend>
seanstickle: some people only persist in an idiocy so long as it's only 1-1 and they think no one else is watching, soon as they realize there's other spectators they shrink and stfu
<andrewhl>
hey, I know that guy
<banisterfiend>
seanstickle: that's what i want to happen here
<lewis1711>
you're creepy, weird, and I don't think you've ever felt the touch of a living woman.
blacktulip has joined #ruby
<banisterfiend>
lewis1711: you're imbecilic and a bad programmer and will remain a virgin until your sister eventually puts of your lonely, unhygienic misery
<lewis1711>
zed shaw might fight you. he's like the stone cold steve austin of ruby programming
schickung has joined #ruby
gh has quit [Quit: gh]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
justsee is now known as justsee|away
g_rotbar_ has joined #ruby
g_rotbart has quit [Read error: Connection reset by peer]
pdtpatrick_ has quit [Quit: pdtpatrick_]
gtuckerkellogg has joined #ruby
arturas has quit [Remote host closed the connection]
workmad3 has joined #ruby
jxf has joined #ruby
mathie has joined #ruby
JohnBat26 has joined #ruby
graspee has quit [Quit: leaving]
robert_ has joined #ruby
<robert_>
so what good are the DateTime classes of they keep raising exceptions on U.S. date formats?
<robert_>
it discriminates against us United States developers!
<robert_>
:p
<robert_>
(it refuses to accept U.S. dates)
<banisterfiend>
USD date format is totally retarded
<banisterfiend>
it's backwards to all reasonable countries
<robert_>
how is it retarded?
<banisterfiend>
you'er talking about the order of: dd/mm/yy right?
<robert_>
"September fourth, two thousand twelve"
<robert_>
no
<banisterfiend>
in america it's: mm/dd/yy
<robert_>
that's international date
<robert_>
yes
<robert_>
because that's the way one reads dates. so isn't it logical to format it as such?
<banisterfiend>
well in other countries it goes from smallest units to greatest
bier|tp has quit [Ping timeout: 244 seconds]
<banisterfiend>
robert_: no it's not the way people read dates........outside of america :)
<banisterfiend>
we say "4th of september"
<banisterfiend>
we dont say "september 4th"
Tricks has quit [Read error: Connection reset by peer]
<robert_>
that's overly word-y.
<robert_>
that's just my opinion, though.
<robert_>
either way
<robert_>
sup banisterfiend :p
<banisterfiend>
robert_: there's one extra word, and it's grammatical. You guys also say things like "couple beers"
<banisterfiend>
robert_: which is retarded, the correct way of saying it is "couple OF beers"
<banisterfiend>
:)
<robert_>
:p
<ryanf>
banisterfiend: do you have two of beers?
<banisterfiend>
ryanf: "a couple of beers" :)
<ryanf>
banisterfiend: actually I guess you probably have more like five of beers right
<robert_>
ryanf: \o/
<robert_>
:p
<banisterfiend>
robert_: so sometimes you leave out words, and other times you guys add a word that's totally unnecessary, the way you guys say "off of", like "and i got the link off of the website"
<robert_>
that's stupid.
<ryanf>
not everyone does that
<robert_>
agreed.
<robert_>
I don't say that
<robert_>
"I got a link off his website."
<robert_>
off of is gramatically incorrect, too.
<robert_>
:p
<banisterfiend>
i see "off of" all the time on here & in tweets
<banisterfiend>
:)
<banisterfiend>
it's kind of cute though
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
jimeh3 has joined #ruby
<robert_>
hint: whoever says that is an idiot. from one american to the rest of us: stop making us look dumb. :p
<robert_>
ryanf: sup
zommi has quit [Remote host closed the connection]
lkba has quit [Client Quit]
saschagehlich has joined #ruby
mathie has quit [Quit: Sleeping...]
g_rotbar_ has quit [Remote host closed the connection]
ukd1_ has quit [Ping timeout: 264 seconds]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
davejacobs has joined #ruby
bier|tp has joined #ruby
thomas is now known as CowboyTom
paidhi has quit [Quit: paidhi]
abra has joined #ruby
freeayu has quit [Ping timeout: 244 seconds]
dekroning has joined #ruby
davejacobs has quit [Ping timeout: 255 seconds]
mathie has joined #ruby
sepp2k has joined #ruby
thone_ has joined #ruby
keppy has quit [Ping timeout: 255 seconds]
freeayu has joined #ruby
thone has quit [Ping timeout: 252 seconds]
jgrevich has quit [Quit: jgrevich]
fantazo has quit [Remote host closed the connection]
rcsheets has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
xbayrockx has joined #ruby
banseljaj is now known as imami|afk
robozahn_ has joined #ruby
workmad3 has joined #ruby
ryanf has quit [Ping timeout: 246 seconds]
saschagehlich has joined #ruby
nyuszika7h has quit [Read error: Connection reset by peer]
PinkiePiee is now known as Rarityy
zastaph has joined #ruby
dekroning has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
williamcotton has quit [Quit: williamcotton]
williamcotton_ is now known as williamcotton
perry is now known as perryh_away
blacktulip has quit [Remote host closed the connection]
Synthead has joined #ruby
staunch has quit [Quit: staunch]
siefca has left #ruby [#ruby]
mengu has joined #ruby
Criztian has quit [Remote host closed the connection]
saneshark has joined #ruby
saneshark has left #ruby [#ruby]
Goles has quit [Quit: Computer has gone to sleep.]
nyuszika7h has joined #ruby
khakimov has joined #ruby
<robert_>
blah; I wish there were a way to tell male from female names programatically. :/
schickung has quit [Quit: schickung]
kenperkins has quit [Ping timeout: 264 seconds]
wagle has quit [Ping timeout: 264 seconds]
wagle has joined #ruby
robozahn_ has quit [Ping timeout: 265 seconds]
robozahn_ has joined #ruby
robozahn has quit [Ping timeout: 265 seconds]
gfuggiano has joined #ruby
<matled>
robert_: if you have an appropriate lookup table that's no problem :)
Seventoes has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
Even then, it depends on the language the name comes from
<Mon_Ouie>
And you *will* find people with unexpected names :p
Seventoes has joined #ruby
justsee|away is now known as justsee
<banisterfiend>
Mon_Ouie: you're right, french males often have female names.
robozahn has joined #ruby
<burgestrand>
And, well, me.
<burgestrand>
~:(
<burgestrand>
(Kim, male)
<banisterfiend>
burgestrand: haha, that seems appropriate though: chocolate-milk man ;)
<banisterfiend>
jk
<burgestrand>
:p
freeayu has quit [Ping timeout: 244 seconds]
jayne has quit [Read error: Connection reset by peer]
<robert_>
yeah; I'm looking for spanish and English names, I think.
<banisterfiend>
Mon_Ouie has a name like nothing on this earth, im not even sure if it sounds male or female
<burgestrand>
No worries, I don’t have a problem with it, only freak out foreigners now and then when they learn I’m male, after knowing my name for months
<banisterfiend>
burgestrand: must be disappointing when they've been looking forward for weeks to finally meet this hot "kim" chick in RL
<burgestrand>
banisterfiend: voicechat is always fun the first time
<robert_>
burgestrand: Not really. I don't freak out. You're Kim in the same manner that Kim-Jhong Il is. :p
<robert_>
burgestrand: even so, what's it really matter? :3
<burgestrand>
banisterfiend: back when I was gaming a lot, lots of awkward silences as a result, it’s hilarious
<burgestrand>
robert_: not much :p
<robert_>
burgestrand: exactly. :p
<robert_>
burgestrand: that was mostly, "Oh, cool! A gamer chick! I can jerk-off to her later!" and then, "... oh, wait. WHAT? YOU'RE A DUDE? WHA-- WHAT THE HELL IS THIS? I'VE BEEN JERKING OFF TO A DUDE THIS WHOLE TIME?!!" :p
<banisterfiend>
burgestrand: do u get a lot of sexiest insults
<banisterfiend>
burgestrand: sexist*
<robert_>
lmao@sexiest
<robert_>
:p
<burgestrand>
banisterfiend: nope, just lots of free stuff and a bunch of teenage guys acting like teenage girls
<banisterfiend>
burgestrand: what game is this
khakimov has quit [Quit: Computer has gone to sleep.]
<burgestrand>
banisterfiend: world of warcraft, some four years ago
<banisterfiend>
ah ok
<burgestrand>
banisterfiend: and before that, tibia, some 8~10 years ago, that was even worse
<banisterfiend>
burgestrand: hey, u ever played 'limbo' ? apparently it's written by a couple of your countrymen
yosafbridge has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<burgestrand>
banisterfiend: nope, was thinking of buying it two days ago, but I’m not much of a fan for that genre
jayne has joined #ruby
<fowl>
banisterfiend, i thought you were talking about that shit where u have walk under a pole
JohnBat26 has quit [Ping timeout: 264 seconds]
<banisterfiend>
fowl: haha no
<banisterfiend>
fowl: it's a black and white side scrolling thingy
<fowl>
looks stupid
<fowl>
theres 0 information on the website
<banisterfiend>
fowl: it's pretty good, won a bunch of awards
lewis1711 has left #ruby [#ruby]
freeayu has joined #ruby
yosafbridge has joined #ruby
workmad3 has joined #ruby
vlad_starkov has joined #ruby
Foxandxss has joined #ruby
jsilver has joined #ruby
noyb has quit [Ping timeout: 245 seconds]
manizzle has quit [Read error: No route to host]
Synthead has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
workmad3 has quit [Ping timeout: 264 seconds]
pdelgallego has joined #ruby
ramblex has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
niku4i has joined #ruby
Axsuul has quit [Ping timeout: 250 seconds]
baphled has joined #ruby
gmci has quit [Ping timeout: 264 seconds]
indian has joined #ruby
gmci has joined #ruby
jxf has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
k_89 has quit [Ping timeout: 264 seconds]
freeayu has joined #ruby
mneorr has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
<mneorr>
any Octopress bloggers here?
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
jsilver is now known as awaySilver-sleep
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Rarityy is now known as Applejackk
baphled has quit [Ping timeout: 265 seconds]
berserkr has joined #ruby
bilel has joined #ruby
bilel has left #ruby [#ruby]
nari has joined #ruby
justsee is now known as justsee|away
burgestrand has quit [Quit: Leaving.]
<zagabar>
lol
justsee|away is now known as justsee
odinswand has joined #ruby
odinswand is now known as blanka
simonpe^^ has joined #ruby
<simonpe^^>
Im looking to make a cross platform executable out of a rvm gemset and my application. If someone knows how to do this, please let me know
blanka has quit [Remote host closed the connection]
nari has quit [Read error: Operation timed out]
odinswand has joined #ruby
niklasb has joined #ruby
dr0p has joined #ruby
Spooner has joined #ruby
indian has quit [Read error: Operation timed out]
iocor has joined #ruby
blacktulip has joined #ruby
odinswand is now known as blanka
apeiros_ has joined #ruby
CowboyTom is now known as thomas
<fowl>
people are waking up
<fowl>
changing from their crazy buried-personality-nick
<fowl>
it comes out when you sleep, and types wild things
robert_ has joined #ruby
<robert_>
bah
<robert_>
so I'm trying to perform an HTTP POST to a website so I can scrape the contents, only I'm not sure whether I should use EM::Protocol::HttpClient, EM::Protocol::HttpClient2, EventMachine::HttpRequest or what
seanstickle has joined #ruby
<fowl>
i would use Net::HTTP
<fowl>
eventmachine is complicated
<robert_>
how do I submit postdata with Net::HTTP?
bfgun has quit [Read error: Connection reset by peer]
blacktulip has quit [Remote host closed the connection]
<robert_>
blah; I hate this stupid website lol
<fowl>
theres plenty of net::http examples on google
fixl has quit [Remote host closed the connection]
VegetableSpoon has joined #ruby
<robert_>
yeah
<robert_>
I'm seeing that
<robert_>
hmm
arturaz has joined #ruby
mun2 has joined #ruby
bfgun has joined #ruby
<robert_>
OH, okay. that's why.
kirun has joined #ruby
Axsuul has joined #ruby
mun2 has left #ruby [#ruby]
<robert_>
apparently I need to post cookies as well. fun.
pdelgallego has quit [Quit: pdelgallego]
KevinSjoberg has joined #ruby
wargasm has quit [Ping timeout: 265 seconds]
niku4i has quit [Remote host closed the connection]
niku4i has joined #ruby
akem has quit [Ping timeout: 245 seconds]
niku4i has quit [Ping timeout: 244 seconds]
patient has joined #ruby
Berglund has joined #ruby
Axsuul has quit [Ping timeout: 246 seconds]
<robert_>
fowl: I'm just asking, I'll find it, but what about custom http headers and form data?
dr0p_ has joined #ruby
dr0p has quit [Ping timeout: 265 seconds]
baphled has joined #ruby
andrewhl has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
blanka has left #ruby [#ruby]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Applejackk is now known as TwilightSparklee
chessguy has joined #ruby
greasegum has joined #ruby
<thomasfedb>
How would I go bout "injecting" a decorator model into a Class?
gfuggiano has quit [Ping timeout: 245 seconds]
<thomasfedb>
Would I just hook the instantiation?
greasegum has quit [Client Quit]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
pk1001100011 has joined #ruby
<shevy>
ack
<shevy>
sounds railsy
<apeiros_>
thomasfedb: um, I think decorator pattern is covered by Object#extend in ruby.
akem has joined #ruby
<thomasfedb>
apeiros_, good point.
<shevy>
how is the | token called in english?
<shevy>
bar? vertical bar? line? downline?
<fowl>
pipe
<shevy>
ah cool, good one, thanks
beandip has quit [Ping timeout: 272 seconds]
<Xethron>
Ooooookay...
<Xethron>
I need some serious help
<Xethron>
I've tried everything and I'm ready to bliksim something now
<shevy>
ok first lower your pants man
<shevy>
then slowly detail the problem
<fowl>
Definition for bliksem: To beat up, hit or punch - or a mischievous person..
<Xethron>
I don't have root access on my server... So I set GEM_HOME=$HOME/gems GEM_PATH=$HOME/gems:/usr/local/rvm/gems/ruby-1.9.3-p125 and PATH=$PATH:$HOME/gems/bin
<fowl>
learned a new word today (:
<Xethron>
I installed the gem by changing the settings in ~/.gemrc
<Xethron>
fowl: Its Afrikaans :P So, you learned a new language too :D
<shevy>
Afrikaans!
<shevy>
man
<shevy>
do you know what is a "Rehwildsboeckli"?
<shevy>
we had a guy called ichi who ordered this at a restaurant once. it was a word we german speaking folks understood
<Xethron>
ok, so, I see raspell-1.3 in ~/gems/gems, but nothing in /gems/bin....
<Xethron>
and when I require rspell, I get an error... so, HOW do I tell ruby that rspell is installed?
<Xethron>
shevy: No idea... "Wildsbokkie" means small wild buck
<shevy>
hehehe
<shevy>
yeah! Wildsbokkie
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
<shevy>
Xethron: and "gem list" shows that the gem is installed?
<Xethron>
yea. Wild means wild, bok, means buck or antilope, and kie means tiny
<Xethron>
shevy: jup
<shevy>
oh cool, did not know about kie
<shevy>
hmm Xethron best estimate is that somehow it does not find the correct gem path... let's see...
<Xethron>
Afrikaans is cool like that... Huis means house, huisie means tiny house (almost in a cute way)
ringotwo has quit [Remote host closed the connection]
<Xethron>
Everything in afrikaans can be made big or small :D
<Xethron>
ok
<Xethron>
shevy: not sure if this is relevent, but there are about 4 versions of ruby installed. I did use the correct gem with the correct versiou. I also tried using "gem" and "ruby" (I think thats v 1.8) and that also didn't work
<shevy>
yeah I guess there is a little mess here
<shevy>
I myself try to use only one ruby version and in one directory. but I can always be superuser, which you can't right now apparently
<Xethron>
yes...
yannis has joined #ruby
umttumt has joined #ruby
<Xethron>
But how do I fix this mes?
<Xethron>
I know the admin... But, we wanne set this up so that I don't need to bother him everytime, and he doesn't wanne install raspell as a gem for all users...
abra has quit [Remote host closed the connection]
<Xethron>
Its a shared ssh server with like 200 users
jrajav has joined #ruby
pdelgallego has joined #ruby
<Xethron>
shevy... ran outa ideas?
<Xethron>
I told you the meaning of an Afrikaans word... You have to help me!
<Xethron>
:P
<Xethron>
lol
shevy has quit [Ping timeout: 244 seconds]
umttumt has quit [Remote host closed the connection]
bglusman has quit [Remote host closed the connection]
lxsameer has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
gtuckerkellogg has joined #ruby
chico_chicote has joined #ruby
shevy has joined #ruby
dkissell_ has joined #ruby
dkissell has quit [Ping timeout: 255 seconds]
dkissell_ is now known as dkissell
umttumt has joined #ruby
tomb has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Remote host closed the connection]
<Xethron>
anyone?
theRoUS has quit [Ping timeout: 244 seconds]
abra has joined #ruby
troy{}| has joined #ruby
troy{}| has quit [Client Quit]
troyack has joined #ruby
chessguy has quit [Read error: Connection reset by peer]
chessguy has joined #ruby
uris has joined #ruby
hunglin has joined #ruby
Ionic` has joined #ruby
baroquebobcat has joined #ruby
twock has joined #ruby
liluo has joined #ruby
tobago has joined #ruby
ringotwo has joined #ruby
mengu has quit [Remote host closed the connection]
zodiac1111 has quit [Read error: Connection reset by peer]
krusty_ar has joined #ruby
niklasb has quit [Read error: Operation timed out]
mneorr has quit [Quit: Leaving.]
bluenemo has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
beandip has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
deryl has joined #ruby
mxweas_ has joined #ruby
cakehero has joined #ruby
TheHairyWoodsman has joined #ruby
kirun has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
RainbowDashh has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
jrajav has quit [Quit: The best darkness is strange and surprising]
RainbowDashh has joined #ruby
troyack has left #ruby [#ruby]
mxweas_ has quit [Quit: Leaving...]
k_89 has quit [Ping timeout: 240 seconds]
troy{}| has joined #ruby
troy{}| has quit [Client Quit]
baroquebobcat has joined #ruby
htroyack has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
wallerdev has joined #ruby
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
Niamkik has joined #ruby
jrajav has joined #ruby
arturaz has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
dbgster has joined #ruby
tomb has joined #ruby
williamcotton_ has joined #ruby
williamcotton has quit [Ping timeout: 248 seconds]
williamcotton_ is now known as williamcotton
BrokenCog has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
verto|off is now known as verto
Eldariof-ru has joined #ruby
oscardelben has joined #ruby
choffstein has joined #ruby
bosphorus has joined #ruby
JohnBat26 has joined #ruby
jrajav has quit [Ping timeout: 248 seconds]
burgestrand has joined #ruby
AlbireoX`Away is now known as AlbireoX
VegetableSpoon has joined #ruby
kvirani has joined #ruby
jrajav has joined #ruby
mockra has joined #ruby
htroyack has quit []
ttilley_off is now known as ttilley
troy{}| has joined #ruby
troy{}| has quit [Client Quit]
jgrevich has joined #ruby
htroyack has joined #ruby
htroyack has quit [Client Quit]
htroyack has joined #ruby
Husel has joined #ruby
pdtpatrick_ has joined #ruby
td123 has joined #ruby
wookiehangover has quit [Ping timeout: 250 seconds]
baphled has quit [Ping timeout: 265 seconds]
umttumt has quit [Remote host closed the connection]
davidpk has joined #ruby
<Xethron>
I wanne check if var == 1 or 55 or 83 or 99 or 222 or 875
<seanstickle>
Super
<Xethron>
I know
<Xethron>
:D
<Xethron>
How does the or function work?
<Xethron>
coz || doesnt
<apeiros_>
yes it does
<Xethron>
so
<apeiros_>
but it is (var == 1) || (55)
<apeiros_>
and 55 is just true
<Xethron>
if ooh
<mdszy>
if var == 1 or var == 55
<seanstickle>
Xethron: take a look at Array#include
<apeiros_>
ruby can't read your mind. you need to be more explicit :-p
<Xethron>
I tried: if (var == 2||55||34)
<apeiros_>
yeah, that var == 2
<apeiros_>
because 2||55||34 # => 2
abra has joined #ruby
wookiehangover has joined #ruby
<Xethron>
so, I should say if (var == 2)||(55)||(34)
<Xethron>
?
<hoelzro>
no, you need to do var == 2 or var == 5 or ... etc
<apeiros_>
Xethron: no, really, try to understand how code works
<seanstickle>
Xethron: Look into Array#include?.
<apeiros_>
a || b || c <-- will evaluate a first before or'ing it with b, then or the result with c
<Xethron>
seanstickle: looking at it :)
<apeiros_>
as said, var == 2 || 55 -- that'll just result in either `true || 2` or in `false || 2`
keyvan has quit [Excess Flood]
<apeiros_>
(beause var == 2 will either be true or false)
<Xethron>
yes
<apeiros_>
again, ruby can't read your mind. it can't infer that you mean that the or refers to the ==.
andrewhl has quit [Remote host closed the connection]
<fowl>
Xethron, ez way to do this is have an array of the values you'll accept then check if var is in the array
justsee is now known as justsee|away
<Xethron>
fowl: jup, seanstickle said that... Looking at it now :)
<Xethron>
Seems to be the easiest
<Xethron>
thanks :)
keyvan has joined #ruby
<fowl>
Xethron, you need to understand what's wrong with using var == 2 || 55 || 34
<Xethron>
fowl: I do :)
<fowl>
okie
TheHairyWoodsman has quit [Quit: Leaving.]
Synthead has joined #ruby
dr0p_ has quit [Quit: Wychodzi]
savage- has quit [Remote host closed the connection]
banghouse has joined #ruby
BrokenCog has quit [Read error: Connection reset by peer]
BrokenCog has joined #ruby
mockra has quit [Remote host closed the connection]
htroyack has quit []
<icy`>
!55
<icy`>
=> false
<icy`>
;P
baroquebobcat has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
<icy`>
actually that doesnt apply here. disregard. Anyway, going to move my scraping code over from hpricot to nokogiri finally ;P
<icy`>
after i benchmarked searching methods, and hpricot came up with 51.25 seconds, while nokogiri was at about 6 seconds, I was forced to concede
simonpe^^ has quit [Ping timeout: 250 seconds]
savage- has joined #ruby
Tricks has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Read error: Connection reset by peer]
JustinCampbell has joined #ruby
Tricks has joined #ruby
baroquebobcat has joined #ruby
Chryson has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
ryanf has joined #ruby
JustinCampbell has joined #ruby
mdpatrick has joined #ruby
ePirat_ has joined #ruby
Goles has joined #ruby
mockra has joined #ruby
VegetableSpoon has quit [Ping timeout: 264 seconds]
<shevy>
hehe
<shevy>
I conceded earlier
<shevy>
I gave up on XML
<shevy>
apeiros_: I wanna have a language where "var == 2" will become "maybe"
ananthakumaran1 has quit [Quit: Leaving.]
RainbowDashh has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
<apeiros_>
shevy: go ahead
ttilley is now known as ttilley_off
<shevy>
maybe!!!
<shevy>
I think I would need to have a programming language where it could be designed in a componently way
mneorr has joined #ruby
<offby1>
"mebbe yes, mebbe no" -- spoken in a heavy foreign accent
<shevy>
like... today I will add one component... then I do other things for 3 months... then I get back...
<offby1>
... and find that moss has grown over the code
nachtwandler has quit [Read error: Operation timed out]
krusty_ar has quit [Remote host closed the connection]
<shevy>
I once wanted to write a MUD in ruby. after a few months, I stopped for 2 or 3 years. and now, I feel the whole code is such a mess that starting from 0 would be easier...
oscardelben has quit [Quit: oscardelben]
brianpWins has joined #ruby
ePirat_ has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
nachtwandler has joined #ruby
htroyack has joined #ruby
<offby1>
I hate that.
<offby1>
all that work wasted.
<offby1>
And I bet you're not confident that what you write today will be able to withstand three years of neglect either
savage- has quit [Remote host closed the connection]
jrajav has quit [Quit: The best darkness is strange and surprising]
tommyvyo has joined #ruby
<any-key>
it takes some serious reality distortion to ever believe that
htroyack has quit []
learc83 has joined #ruby
BrianE has joined #ruby
mmokrysz has quit [Quit: Leaving.]
Neil_ has joined #ruby
<offby1>
"Captain, we've opened the time capsule, and it seems to contain ... software!"
baroquebobcat has quit [Quit: baroquebobcat]
<offby1>
"Let's see if it works!"
<offby1>
...
<icy`>
is there some trick to making a google search in ruby? i'm getting varied results if i run one line at a time from irb, or call my class from irb, or testing my class from outside irb
snearch has joined #ruby
<offby1>
"Gosh, it works perfectly! Those old 21st-century coders knew their stuff"
<offby1>
icy`: I don't think even reloading a web page will always yield the same results
<icy`>
on the last one i get 503 Service Unavailable lol. Google somehow knows...
<offby1>
I don't think you can reasonably expect a search to keep yielding the same set of results
Horofox has joined #ruby
adamkittelson has joined #ruby
<Horofox>
what is a good way to do something before a method executes? I'm creating an api and before a method say "delete" executes, I want some code to be executed before it.
Husel has quit [Quit: Page closed]
<offby1>
horofox: I assume Observers could help with that
liluo has quit [Remote host closed the connection]
perryh_away is now known as perryh
baphled has joined #ruby
mmokrysz has quit [Quit: Leaving.]
<TTilus>
.wtflol
mockra has quit [Remote host closed the connection]
perryh is now known as perry
gfuggiano has joined #ruby
<shevy>
hehehe
codezombie has quit [Read error: Connection reset by peer]
codezombie has joined #ruby
kevinbond has joined #ruby
nachtwandler_ has joined #ruby
nachtwandler has quit [Ping timeout: 265 seconds]
ghanima has joined #ruby
godzirra has quit [Disconnected by services]
<davidpk>
is there a quick and easy way to iterate over an array backwards, and have each_with_index refer to the correct index in the original array (ie not an array that has been reversed)
<offby1>
I'd do each_with_index, then have a variable that's array.size - index
<apeiros_>
I don't know how efficient Enumerator#reverse_each is. it might have to generate a temporary array. so it might not be a good solution for large arrays.
<offby1>
oooh.
<davidpk>
This will never be a very long array, so it's fine
<davidpk>
offby1, apeiros_: thanks!
mpereira has joined #ruby
blacktulip has joined #ruby
dbgster has left #ruby [#ruby]
gentz has quit [Remote host closed the connection]
fantazo has joined #ruby
d3c has joined #ruby
companion has quit [Quit: Poweroff]
TheHairyWoodsman has joined #ruby
companion has joined #ruby
Seus has joined #ruby
<shevy>
oh dear... offby1 was off by one again :(
<shevy>
are you positive off by 1 or negative or both
vlad_starkov has quit [Remote host closed the connection]
flu- has quit [Quit: leaving]
heftig has quit [Ping timeout: 245 seconds]
k_89 has quit [Ping timeout: 240 seconds]
ringotwo has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
<dekroning>
is there a difference between druby vs eventmachine ?
tatsuya_o has joined #ruby
wargasm has joined #ruby
<offby1>
jrajav: you sure put your hands on that fast!
<jrajav>
lol that's not my code
<offby1>
Cork: I'm curious -- why do you need this?
<Cork>
offby1: we'r running separat services on the same machine, and they comunicate with eachother over unix sockets
<offby1>
via http, huh?
<Cork>
yes
<jrajav>
And whose idea was this?
<offby1>
odd. And yet they don't listen on an IP address / port combo
<Cork>
jrajav: sweet, thx!
tatsuy___ has joined #ruby
<Cork>
offby1: its separate services, running in different languages
khakimov has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
tatsuya__ has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
moisesv has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Ping timeout: 252 seconds]
moisesv has left #ruby [#ruby]
lapinferoce has joined #ruby
blacktulip has joined #ruby
troyack has joined #ruby
tatsuya_o has joined #ruby
davidpk has joined #ruby
baphled has quit [Quit: leaving]
tatsuy___ has quit [Ping timeout: 250 seconds]
baphled has joined #ruby
etehtsea has joined #ruby
tobago has quit [Remote host closed the connection]
Neil___ has joined #ruby
ttilley_off is now known as ttilley
rekenerd has quit [Quit: Leaving]
nachtwandler_ has quit [Read error: Connection reset by peer]
Neil_ has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
nachtwandler has joined #ruby
cantonic has quit [Quit: cantonic]
nachtwandler has quit [Ping timeout: 248 seconds]
moisesv_ has joined #ruby
moisesv_ has left #ruby [#ruby]
brianpWins has quit [Quit: brianpWins]
cherrypeel has joined #ruby
adamkittelson has quit [Remote host closed the connection]
rekenerd has joined #ruby
jeff_sebring has quit [Quit: Leaving]
stephenjudkins has quit [Quit: stephenjudkins]
zommi has joined #ruby
ttilley is now known as ttilley_off
tatsuya_o has quit [Ping timeout: 264 seconds]
williamcotton_ has quit [Quit: williamcotton_]
saschagehlich has quit [Quit: saschagehlich]
zommi has quit [Remote host closed the connection]
BrianE has quit [Quit: Leaving...]
eph3meral has joined #ruby
Niamkik has quit [Quit: leaving]
dankest has joined #ruby
ohdae has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
davidpk has quit [Quit: Computer has gone to sleep.]
Neil___ has quit [Remote host closed the connection]
rekenerd has quit [Quit: Leaving]
Neil_ has joined #ruby
rekenerd has joined #ruby
BrianE has joined #ruby
Horofox has quit [Ping timeout: 265 seconds]
snail has quit [Quit: Leaving.]
kvirani has quit [Remote host closed the connection]
Aturi has joined #ruby
Aturi has quit [Client Quit]
Aturi has joined #ruby
Aturi has left #ruby [#ruby]
TheHairyWoodsman has quit [Quit: Leaving.]
yxhuvud has quit [Ping timeout: 264 seconds]
tatsuya_o has joined #ruby
neku has joined #ruby
cheako has joined #ruby
<cheako>
What do I do with a Rakefile? I'm attempting to build what should be a Debian package, but instead of running "dpkg-buildpackge -b" like normal, there is a Rakefile.
<cheako>
Googling says it's Ruby and not much else.
sernin has quit [Quit: Lost terminal]
<verto>
cheako Rakefile contains tasks written in ruby. what's the problem?
<oddmunds>
if you have rake installed you can run 'rake -T' and get a list of things you can do with that rakefile
jonathanwallace has joined #ruby
<dekroning>
anyone know if there is a specific channel about drb ?
<Xethron>
is there a way to set more than one value in an array at once... for example a[5,7,8] = ["a", "b", "c"]
<offby1>
cheako: what oddmunds said. Put simply, you type "rake" and it executes commands for you
snearch has quit [Quit: Verlassend]
dnyy has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 264 seconds]
pdelgallego has joined #ruby
<workmad3>
cheako: rake == ruby make
jonathanwallace has quit [Remote host closed the connection]
* offby1
nods gravely
<offby1>
although if cheako isn't familiar with "make", that explanation won't be very helpful
<atmosx>
it can be extended to peta bites… but it's for a script tha backups my tweets into an sqlite3 db… and I never thought that I'd get a GB sqlite3 db of tweets… before I turned 200 years old at least...
BrokenCog has quit [Read error: Connection reset by peer]
wvms has quit [Read error: Connection reset by peer]
Ontolog has quit [Remote host closed the connection]
savage- has joined #ruby
berserkr has quit [Quit: Leaving.]
subbyyy has quit [Read error: Connection reset by peer]
mucker has quit [Ping timeout: 240 seconds]
Ontolog_ has joined #ruby
LifeSF has joined #ruby
LBRapid has joined #ruby
Peregrinu5 has joined #ruby
VegetableSpoon has quit [Remote host closed the connection]
enroxorz has joined #ruby
enroxorz has joined #ruby
enroxorz has quit [Changing host]
c0rn_ has joined #ruby
joshwines has joined #ruby
Ontolog_ has quit [Ping timeout: 265 seconds]
apeiros_ has quit [Remote host closed the connection]
philips has quit [Excess Flood]
philips_ has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
ZachBeta has joined #ruby
LBRapid has quit [Quit: Computer has gone to sleep.]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
minijupe has joined #ruby
pk1001100011 has joined #ruby
rekenerd has quit [Read error: Connection reset by peer]
<Horofox>
i have declared two methods with the same name but one with 0 parameters and the other with 1, but it always calls the one with 1 parameters?
<Horofox>
why?
vlad_starkov has quit [Ping timeout: 248 seconds]
cantonic_ has joined #ruby
<Spaceghostc2c>
Because you're redefining the method.
<Spaceghostc2c>
Make the parameter optional.
AlbireoX` has joined #ruby
cantonic has quit [Read error: Operation timed out]
cantonic_ is now known as cantonic
enroxorz has quit [Ping timeout: 252 seconds]
shadoi has joined #ruby
shadoi has quit [Client Quit]
<cherrypeel>
horofox: that is, you can't overload methods the way you can in something like C++
avalarion has joined #ruby
<avalarion>
Hi there, I am using passenger to run redmine. Not passenger throws, that coderay-1.0.6 is not installed, what is correct, because if I install coderay via gem I get Version 1.0.7... Is there a quick way to solve this problem? Using gentoo linux...
ZachBeta has quit [Quit: Computer has gone to sleep.]
<mdszy>
pretty cool
<shevy>
oh cool... I even miscounted ... 21 programs :\ :/
<patient>
I like the way it says "Please be _patient_"
<shevy>
haha
<shevy>
it takes like 8 seconds at that moment... not sure what else to do. perhaps try to make it faster ... hmm
justsee|away has quit [Quit: Leaving...]
<shevy>
right now those are from 2400 different yaml files. would a single sqlite database be faster? hmmm
shadoi has joined #ruby
<patient>
ahah
<icy`>
yaml files? :o
<icy`>
what does your program do exactly ;P
alek_b has joined #ruby
<icy`>
i think i've solved my battle with google scraping... i've had success with 'net/http' rather than 'open-uri'
alek_b has quit [Remote host closed the connection]
<icy`>
if i tried to open complicated google queries with open-uri, google would think i was a bot and try to give me a captcha. pfft, i'm not a bot ;P
<shevy>
icy`: hmm right now it reads in those yaml files only and provides data from that. something like a query tool... it should query things like "php installs these files" or "ruby depends on those other programs" and so on
<icy`>
shevy, oh wow, so many...
<shevy>
yeah, took me a long time to gather all this
<shevy>
it's also not complete either :(
<icy`>
i think 8 seconds is pretty good
stephenjudkins has joined #ruby
<icy`>
I too wanted a faster scraper for just google web results, which prompted me to write my own