apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
bbttxu has quit [Quit: bbttxu]
neiZ has quit [Changing host]
neiZ has joined #ruby
jarred has quit [Read error: Connection reset by peer]
jarred_ has joined #ruby
indian has joined #ruby
Zolrath has quit [Quit: Computer has gone to sleep.]
troyack has joined #ruby
g_rotbart has joined #ruby
htroyack has quit [Ping timeout: 250 seconds]
ronychen has joined #ruby
wvms has joined #ruby
yoklov has joined #ruby
shadoi has quit [Quit: Leaving.]
RainbowDashh has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
td123 has quit [Quit: WeeChat 0.3.8]
Zolrath has joined #ruby
yannis has quit [Read error: Connection reset by peer]
jarred_ has quit [Quit: jarred_]
jarred has joined #ruby
rcsheets has quit [Quit: gone]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
Berglund has quit [Quit: Computer died.]
tvw has quit [Remote host closed the connection]
TheShadowFog has joined #ruby
banisterfiend has quit [Ping timeout: 250 seconds]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
ryanf has joined #ruby
bradhe has quit [Remote host closed the connection]
zeromodulus has joined #ruby
eggie5 has joined #ruby
<eggie5> can somebody explain this code to me?: https://gist.github.com/3068799
luckyruby has quit [Remote host closed the connection]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
jarray52 has quit [Quit: Leaving.]
mnaser has joined #ruby
dsa has joined #ruby
WilleD has joined #ruby
<WilleD> listen up ruby rubensteins...here's some Saturday music for you being spun live. Enjoy! http://91.233.126.111:8000/studio.m3u
<WilleD> and for goodness' sake, DANCE. DANCE like a dancing dance machine
WilleD has left #ruby [#ruby]
Criztian has joined #ruby
EzeQL has quit [Ping timeout: 265 seconds]
rdx has joined #ruby
subbyyy1 has joined #ruby
mengu has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
Criztian has quit [Remote host closed the connection]
ramblex has quit [Quit: ramblex]
<Spooner> eggie5: That makes no sense, since you join forever, even after you've actually joined. Very odd.
ipsifendus has joined #ruby
ryan0x2 has joined #ruby
<fowl> Spooner, did you click on willed's link
<fowl> its funky fresh
<Spooner> I'm less than thrilled by the prospect of unsolicited music, thanks :P
TorpedoSkyline has joined #ruby
Enekoos has joined #ruby
Enekoos has quit [Client Quit]
healpay has quit [Ping timeout: 264 seconds]
ryan0x2 has quit [Remote host closed the connection]
fantazo has quit [Remote host closed the connection]
fixl has joined #ruby
zeromodulus has quit [Remote host closed the connection]
jfoley has quit [Quit: jfoley]
ringotwo has joined #ruby
atmosx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
<CmdrTallen> So is Nil == Null in content but Nil != Null in type?
<CmdrTallen> C# guy here tasked with learning Ruby for a project and its tweaking my head a bit in places.
<banisterfiend> CmdrTallen: ruby doesn't even have Null
<banisterfiend> CmdrTallen: or Nil
baphled has quit [Ping timeout: 248 seconds]
<banisterfiend> it's called nil
<banisterfiend> and there is no null :)
<banisterfiend> CmdrTallen: what the hell book are you reading???
<banisterfiend> :)
<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?
<heftig> Azure: __FILE__, File.dirname, File.expand_path
<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]
dbgster has joined #ruby
banisterfiend has joined #ruby
<fowl> zhando, your code is definitely artistic but i have no idea what it does
liluo has joined #ruby
<zhando> Well my goal was instead of explicitly and boringly writing three methods calls, first and the last just doing a toggle, instead do this:
baroquebobcat has quit [Quit: baroquebobcat]
<zhando> declare toggle_method { other_method }..
verto|off is now known as verto
saneshark has joined #ruby
<zhando> and further more, it's really ugly when you do something like toggle_method if ok; other_method; toggle_method if ok..
<saneshark> Can you declare a constant as a time value? something like MYTIME = Time.new(2001, 1, 1, 0, 0, 0, 0)
<saneshark> it doesn't work
<saneshark> what is the proper way to do this?
ttilley is now known as ttilley_off
<zhando> with the code in my pastebin instead i'd do:
robert_ has joined #ruby
<fowl> saneshark, that line worked fine here
RudyValencia has joined #ruby
<saneshark> as a constant, really?
<fowl> yea
jarred has quit [Quit: jarred]
<saneshark> it works in IRB, yea… but if you declare it within a class and try to use it in a method it seems to not work
<zhando> wrap( ok ? Proc.new { toggle_method } : nil) { other_method }
greasegum has quit [Ping timeout: 265 seconds]
<saneshark> fowl: what i'd like to do is declare it as a class level constant
<saneshark> i know it works in irb
<banisterfiend> seanstickle: you cant define constants inside methods like that
savage- has joined #ruby
<banisterfiend> saneshark: *
<seanstickle> huh?
<seanstickle> oh
baroquebobcat has joined #ruby
<banisterfiend> saneshark: if you really want to do this, then ues: Object.const_set(:YourConstName, your_value)
minijupe has quit [Quit: minijupe]
cakehero has quit [Quit: Computer has gone to sleep.]
subbyyy1 has quit [Quit: Leaving.]
<saneshark> banisterfiend: i'm open to this way of doing it, but it seems like a hack. is there no way to set a consent as a Time object?
minijupe has joined #ruby
<saneshark> something as simple as MYINTEGER = 1
saneshark has quit [Quit: saneshark]
freeayu has joined #ruby
htroyack has joined #ruby
<banisterfiend> seanstickle: do you have a reddit account?
<seanstickle> Yup
<banisterfiend> seanstickle: do you want to school some dumbass who thinkgs ruby's lambdas aren't closures?
robert_ has quit [Ping timeout: 265 seconds]
umttumt has joined #ruby
ukd1 has joined #ruby
<ukd1> Is anyone familar with Mongoid?
<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
<andrewhl> I used his sgfparser for a go based tournament site I built. https://github.com/Trevoke/SGFParser
<andrewhl> suffice it to say, it was quite buggy
<banisterfiend> hehe
saneshark has joined #ruby
<andrewhl> (go is a board game)
marknyc has quit []
VegetableSpoon has quit [Ping timeout: 264 seconds]
<andrewhl> banisterfiend: also, unfortunately, some people have the opposite reaction to having their idiocy spectated
<banisterfiend> andrewhl: feel free to tell him he's wrong though :)
<banisterfiend> i'm prepared to take that risk hehe
<Spaceghostc2c> He forgot to pass the block back up to method_missing super...
<Spaceghostc2c> I'm already done.
minijupe has quit [Quit: minijupe]
saneshark has quit [Quit: saneshark]
saneshark has joined #ruby
banisterfiend has quit [Remote host closed the connection]
subbyyy has joined #ruby
dbgster has quit [Quit: dbgster]
banisterfiend` has joined #ruby
mdszy has quit [Quit: nini]
htroyack has quit [Excess Flood]
htroyack has joined #ruby
htroyack has quit [Excess Flood]
htroyack has joined #ruby
* slyfunky ANDERSON ...
* slyfunky SILVAAAAAAAAAAAAAAA ...
saneshark has quit [Quit: saneshark]
<offby1> KHANNNN
htroyack has quit [Client Quit]
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
apok has joined #ruby
* slyfunky Anderson Silva is BRAZIL !!
<banisterfiend`> offby1: hey eric
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
umttumt has quit [Remote host closed the connection]
itnomad has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
hunglin has quit [Quit: Leaving.]
xnm has quit [Read error: Connection reset by peer]
<offby1> ahoy
<banisterfiend`> offby1: im just curious, are oyu jewish?
<offby1> ahoy!
<offby1> which answer wins me the most money?
<banisterfiend`> offby1: hahaha
<banisterfiend`> :P
<banisterfiend`> Asher: look at this lols ^
minijupe has joined #ruby
andrewhl has quit [Remote host closed the connection]
wvms has quit [Read error: Connection reset by peer]
wvms has joined #ruby
freeayu has quit [Ping timeout: 265 seconds]
seanstickle has quit [Quit: Nihil sub sole novum]
jfoley has quit [Quit: jfoley]
banghouse has quit [Remote host closed the connection]
RandyInLA has quit [Quit: RandyInLA]
ananthakumaran has joined #ruby
* slyfunky Anderson Silva !!!!!!!!!!!!!!!!!
* slyfunky Anderson Silva !!!!!!!!!!!!!!!!!
freeayu has joined #ruby
fbernier has joined #ruby
williamcotton has quit [Ping timeout: 252 seconds]
williamcotton_ is now known as williamcotton
<offby1> ^-.
williamcotton_ has joined #ruby
freeayu has quit [Quit: 离开]
<offby1> banisterfiend`: [782] pry(main)>
<offby1> I don't think I've started a second "pry" yet
<banisterfiend`> offby1: hehe that's cute, hey if you like pretty colors, you should check out https://github.com/kyrylo/pry-theme
greasegum has joined #ruby
htroyack has joined #ruby
troyack has joined #ruby
htroyack has left #ruby [#ruby]
troyack has left #ruby [#ruby]
williamcotton_ has quit [Ping timeout: 245 seconds]
williamcotton_ has joined #ruby
brianpWins has joined #ruby
noyb has quit [Ping timeout: 265 seconds]
andrewhl has joined #ruby
tewecske has joined #ruby
banisterfiend` has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
banisterfiend has joined #ruby
Chryson has quit [Quit: Leaving]
RainbowDashh has joined #ruby
savage- has quit [Remote host closed the connection]
banisterfiend` has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
TomRone has quit [Read error: Connection reset by peer]
croz has quit [Read error: Connection reset by peer]
Ontolog has joined #ruby
TomRone has joined #ruby
cherrypeel has quit [Ping timeout: 248 seconds]
banisterfiend` has quit [Remote host closed the connection]
mxbtt has joined #ruby
banisterfiend has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 265 seconds]
itnomad has quit [Quit: Leaving]
tommyvyo has joined #ruby
pdtpatrick_ has joined #ruby
verto is now known as verto|off
oscardelben has quit [Quit: oscardelben]
TheHairyWoodsman has quit [Quit: Leaving.]
addenial has joined #ruby
cherrypeel has joined #ruby
addenial has quit [Quit: Leaving]
Ionic` has quit [Ping timeout: 244 seconds]
dross has joined #ruby
jsilver has quit [Remote host closed the connection]
croz has joined #ruby
zhando has quit [Ping timeout: 265 seconds]
savage- has joined #ruby
minijupe has quit [Quit: minijupe]
td123 has quit [Quit: WeeChat 0.3.8]
ryanf has joined #ruby
nachtwandler has joined #ruby
Goles has joined #ruby
Zolrath has joined #ruby
k_89 has quit [Ping timeout: 250 seconds]
banisterfiend has joined #ruby
cherrypeel has quit [Quit: Leaving]
Ethan has joined #ruby
mockra has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
noyb has joined #ruby
kevinbond has quit [Quit: kevinbond]
mengu has joined #ruby
ukd1_ has joined #ruby
dnyy has quit [Remote host closed the connection]
ukd1 has quit [Ping timeout: 265 seconds]
nai has joined #ruby
nai has quit [Remote host closed the connection]
yoklov has quit [Quit: computer sleeping]
mwilson_ has quit [Excess Flood]
yoklov has joined #ruby
mwilson_ has joined #ruby
mathie has joined #ruby
yoklov has quit [Client Quit]
johnernaut has quit [Ping timeout: 244 seconds]
perryh_away is now known as perryh
johnjohnson has joined #ruby
mockra has quit [Remote host closed the connection]
mxbtt has quit [Quit: mxbtt]
staunch has joined #ruby
savage- has quit [Remote host closed the connection]
<staunch> working on some ruby koans, this make sense to anyone...
<staunch> def test_slicing_arrays
<staunch> array = [:peanut, :butter, :and, :jelly]
<staunch> assert_equal [:peanut], array[0,1]
<staunch> assert_equal [:peanut, :butter], array[0,2]
justsee is now known as justsee|away
<staunch> assert_equal __, array[2,2]
<staunch> assert_equal __, array[2,20]
<staunch> assert_equal __, array[4,0]
<staunch> assert_equal __, array[4,100]
<staunch> assert_equal __, array[5,0]
<staunch> end
<staunch> i don't get why [0,1] equals :peanut
<fowl> staunch, [0, 1] means start at index 0, length 1
<staunch> ahhh thanks
perryh is now known as perry
<fowl> staunch, compare "hello"[0, 2] to "hello"[0..2]
k_89 has joined #ruby
<fowl> string#[] works like array#[]
liluo has quit [Remote host closed the connection]
mathie has quit [Quit: Sleeping...]
justsee|away is now known as justsee
adamkittelson has quit [Remote host closed the connection]
obryan has quit [Quit: Konversation terminated!]
tk___ has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
Targen has quit [Read error: Operation timed out]
pattymobi has joined #ruby
pattymobi has quit [Remote host closed the connection]
nari has quit [Ping timeout: 250 seconds]
adamkittelson has joined #ruby
mathie has joined #ruby
savage- has joined #ruby
Ontolog has quit [Remote host closed the connection]
freeayu has joined #ruby
savage- has quit [Remote host closed the connection]
mmokrysz has joined #ruby
digitalcakestudi has quit [Ping timeout: 244 seconds]
mmokrysz has quit [Client Quit]
mmokrysz has joined #ruby
freeayu has quit [Ping timeout: 240 seconds]
andrewhl has quit [Ping timeout: 246 seconds]
mathie has quit [Quit: Sleeping...]
justsee is now known as justsee|away
freeayu has joined #ruby
arturas has joined #ruby
justsee|away is now known as justsee
davejacobs has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
Yulli has joined #ruby
Earwig has joined #ruby
<Yulli> Test...
Earwig has left #ruby [#ruby]
Yulli has left #ruby [#ruby]
remmy444 has joined #ruby
remmy444 has left #ruby [#ruby]
zodiac1111 has joined #ruby
savage- has joined #ruby
RainbowDashh has quit [Ping timeout: 246 seconds]
RainbowDashh has joined #ruby
freeayu has joined #ruby
fixl has joined #ruby
RainbowDashh has quit [Disconnected by services]
RainbowD_ has joined #ruby
RainbowD_ is now known as PinkiePiee
kvirani has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
fantazo has joined #ruby
ping-pong has quit [Ping timeout: 244 seconds]
RainbowDashh has joined #ruby
PinkiePiee has quit [Disconnected by services]
RainbowDashh is now known as PinkiePIee
PinkiePIee is now known as PinkiePiee
PinkiePiee is now known as PinkiePie
PinkiePie is now known as PinkiePiee
greasegum has quit [Ping timeout: 248 seconds]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
learc83 has quit [Quit: learc83]
ping-pong has joined #ruby
savage- has quit [Remote host closed the connection]
adamkittelson has quit [Remote host closed the connection]
imami|afk is now known as banseljaj
apok has quit [Quit: apok]
subbyyy has quit [Quit: Leaving.]
saneshark has joined #ruby
paidhi has joined #ruby
saneshark has quit [Client Quit]
AlbireoX is now known as AlbireoX`Away
AlbireoX` has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
robozahn has joined #ruby
mathie has joined #ruby
luckyruby has quit [Remote host closed the connection]
davejacobs has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
gh has joined #ruby
Criztian has joined #ruby
nachtwandler has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
yonggu has quit [Remote host closed the connection]
yonggu has joined #ruby
brianpWins has quit [Quit: brianpWins]
mohits has quit [Ping timeout: 246 seconds]
mathie has quit [Quit: Sleeping...]
lewis1711 has joined #ruby
yonggu_ has joined #ruby
<banisterfiend> lewis1711: i want to fight u
yonggu has quit [Ping timeout: 264 seconds]
<lewis1711> you're autistic
<banisterfiend> lewis1711: you're lacking frontal lobes altogether
<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?
zommi has joined #ruby
<lewis1711> monkey patch it
codezombie has quit [Quit: Linkinus - http://linkinus.com]
pk1001100011 has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
bier has quit [Read error: Operation timed out]
bier has joined #ruby
<robert_> ruby is discriminatory.
<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]
<robert_> Oh, sweet.
<robert_> hm
<robert_> undefined method `request_uri' for "http://genderchecker.com/default.aspx":String (NoMethodError)
<robert_> oh, uri
<robert_> or not...
lkba has joined #ruby
<robert_> or again, not.
<robert_> ooh, nice.. I think.
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]
mdszy has joined #ruby
mneorr has joined #ruby
_md has joined #ruby
jimeh3 has quit [Ping timeout: 252 seconds]
iocor has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
niklasb has joined #ruby
Tricks has joined #ruby
Progster has joined #ruby
mneorr has quit [Quit: Leaving.]
TwilightSparklee has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
jfoley has joined #ruby
nachtwandler has joined #ruby
<shevy> Xethron hmm really not sure...
<shevy> it must have been solved before for others though
VegetableSpoon has quit [Ping timeout: 264 seconds]
freeayu has quit [Quit: 离开]
tk___ has quit [Quit: ばいばい]
tk___ has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
abra has quit [Quit: Leaving]
<Xethron> Ok, I'm done
<Xethron> I dunno what anymore
RainbowDashh has joined #ruby
digitalcakestudi has joined #ruby
hoelzro|away is now known as hoelzro
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tk___ has quit [Quit: ばいばい]
baroquebobcat has quit [Quit: baroquebobcat]
baphled has joined #ruby
Targen has joined #ruby
gmci has quit [Ping timeout: 248 seconds]
strnx has quit [Excess Flood]
<shevy> well
gmci has joined #ruby
<shevy> perhaps it could work if you find out where the other gems are kept
<shevy> because whatever ruby version is used, seems to not find or pick up the gems
<shevy> perhaps try to locate all versions of "gem" and do "gem env" on these
<shevy> - GEM PATHS:
<shevy> - /Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8
<shevy> that's for me when I use 1.8.7
<shevy> for 1.9.3 it's a bit different
strnx has joined #ruby
k_89 has joined #ruby
pk1001100011 has quit [Ping timeout: 245 seconds]
zodiac1111 has joined #ruby
cakehero has joined #ruby
tommyvyo has joined #ruby
<Xethron> shevy: you on windows?
savage- has joined #ruby
subbyyy has joined #ruby
kirun has quit [Ping timeout: 260 seconds]
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]
yoklov has joined #ruby
lxsameer has quit [Quit: Leaving]
seanstickle has quit [Quit: seanstickle]
Hanmac has joined #ruby
A124 has joined #ruby
A124 has left #ruby [#ruby]
shadoi has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
baphled has joined #ruby
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
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Foxandxss has joined #ruby
williamcotton_ has joined #ruby
<awaySilver-sleep> ez steezer ez steezer
shadoi has quit [Quit: Leaving.]
<Horofox> offby1: not ruby on rails, just ruby.
baphled has quit [Ping timeout: 246 seconds]
kexibq has joined #ruby
<awaySilver-sleep> horofox: ...On Rails!
<icy`> yea google is actively denying my queries with site: and intitle: commands ;P
<Horofox> awaySilver-sleep: im only using ruby
<awaySilver-sleep> ... On Rails!
<patient> lol
jrajav has joined #ruby
<Horofox> awaySilver-sleep: fuck you with your bloated framework
<awaySilver-sleep> :D :P
pk1001100011 has joined #ruby
<Horofox> :D
<offby1> horofox: oops :)
<Horofox> hahaha
<awaySilver-sleep> On... Sinatra?
<awaySilver-sleep> yea rails sux
<awaySilver-sleep> rubymotion is good
<Horofox> go write coffescreept bootstrap link_to :remote=>true
<awaySilver-sleep> i'm fapping right now with my coffeescript book open and my AWDR book wide open baby
<awaySilver-sleep> ...On Rails!
kexibq has quit [Client Quit]
<richardcreme> lol
<awaySilver-sleep> lol
BrianE has quit [Quit: Leaving...]
hoelzro is now known as hoelzro|away
ringotwo has quit [Remote host closed the connection]
BrianE has joined #ruby
dnyy has joined #ruby
poncha has joined #ruby
mdszy has quit [Quit: bye for now]
Morkel has joined #ruby
wallerdev has joined #ruby
keppy has joined #ruby
imami|afk is now known as banseljaj
nicoulaj has joined #ruby
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
Cache_Money has joined #ruby
codezombie has joined #ruby
Horofox has quit [Ping timeout: 244 seconds]
Drewch has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 252 seconds]
dekroning has joined #ruby
ukd1 has joined #ruby
ukd1 is now known as Guest51265
<shevy> omg
<shevy> rails
<shevy> why does it leak to #ruby
chessguy has quit [Remote host closed the connection]
awaySilver-sleep has quit [Remote host closed the connection]
<shevy> hmmm we need something to replace .cgi with
Horofox has joined #ruby
fbernier has joined #ruby
Guest51265 has quit [Quit: Lost terminal]
<offby1> .liveaction
<any-key> .php
mmokrysz has joined #ruby
<apeiros_> .cf
pdelgallego has quit [Quit: pdelgallego]
mockra has joined #ruby
banghouse is now known as banghouseAFK
poncha has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
undersc0re has joined #ruby
Ethan has quit [Ping timeout: 246 seconds]
k_89 has joined #ruby
Cache_Money has quit [Quit: Leaving]
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
<offby1> er
<offby1> array.size - index - 1
* offby1 <---
<davidpk> :D
<offby1> or something like that :)
<offby1> left as an exercise for the reader &c &c
<apeiros_> ary.each_with_index.reverse_each
<offby1> oooh.
<davidpk> apeiros_: aha, thanks
<apeiros_> alternatively: (ary.size-1).downto(0) …
Eldariof-ru has quit []
GuidovanPossum has joined #ruby
<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]
dv310p3r has joined #ruby
companion has quit [Ping timeout: 264 seconds]
companion has joined #ruby
_md has quit [Quit: Linkinus - http://linkinus.com]
zastaph has quit []
timonv has joined #ruby
dekroning has quit [Ping timeout: 252 seconds]
VegetableSpoon has joined #ruby
heftig has joined #ruby
tatsuya_o has joined #ruby
dv310p3r has quit [Ping timeout: 264 seconds]
learc83 has quit [Quit: learc83]
blacktulip has quit [Remote host closed the connection]
TheHairyWoodsman has quit [Quit: Leaving.]
gfuggiano has quit [Ping timeout: 252 seconds]
zodiac1111 has quit [Ping timeout: 246 seconds]
keppy has quit [Ping timeout: 244 seconds]
tatsuya__ has joined #ruby
wvms has quit [Ping timeout: 245 seconds]
<Cork> is it possible to get net::http to connect to a unix socket?
tatsuya_o has quit [Ping timeout: 264 seconds]
wvms has joined #ruby
jeff_sebring has joined #ruby
mneorr has left #ruby [#ruby]
mucker has joined #ruby
jonathanwallace has joined #ruby
<offby1> shevy: I suspect both
<offby1> Cork: I'd be surprised.
TheHairyWoodsman has joined #ruby
k_89 has joined #ruby
dekroning has joined #ruby
<Cork> hmm, i'm drawing a blank, and that surprises me a bit
rekenerd has joined #ruby
<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
fbernier has joined #ruby
banghouseAFK is now known as banghouse
<jrajav> Xethron: a[5], a[7], a[8] = ["a", "b", "c"]
<Xethron> nice
<offby1> pity you can't do what Xethron originally suggested though.
<offby1> pretty sure you can do that in Python and/or Perl; they call that "slicing" an array
<Xethron> thanks jrajav
jgrevich has quit [Quit: jgrevich]
<workmad3> offby1: it's the same thing, just a different syntax :)
pdelgallego has quit [Quit: pdelgallego]
jhunter has quit [Ping timeout: 248 seconds]
<workmad3> offby1: although slicing an array is normally doing something like a[2..4] to get a 'slice'
<workmad3> offby1: rather than assigning to arbitrary array indicies :)
<Xethron> yes, but its less typing. Easier syntax
<offby1> man, that .rvm/scripts/rvm thingy is some high-tech shell wizardry
<Xethron> :P
Guest16542 has joined #ruby
<jrajav> I don't really like parallel assignment to begin with, I would outright hate it if the lvalues could be implicit too
<workmad3> offby1: yeah, RVM does some pretty heavy lifiting in your shell :)
<offby1> workmad3: I'm pretty sure there's _some_ language out there that lets you form expressions like Xethron had it
<Xethron> workmad3: so if I do it with following values like 3 4 and 5 I can go a[3..5] = ["a", "b", "c"]
zeromodulus has joined #ruby
Tricks has quit [Read error: Connection reset by peer]
jhunter has joined #ruby
<tommylommykins> [[1, 2], [3, 4]].each {|(first, second)| puts first}
<workmad3> Xethron: not sure if there's an assignment operator for that...
<tommylommykins> can be convenient sometimes :D
<verto> tommylommykins :P
<workmad3> Xethron: you could probably *write* one though ;)
<workmad3> Xethron: guess it depends how much you want to try to monkey-patch array (assuming it doesn't already exist)
<Xethron> it works :D
jfoley has quit [Quit: jfoley]
lapinferoce has quit [Quit: Leaving]
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
JustinCampbell has quit [Remote host closed the connection]
<Xethron> a[3..5] = ["a", "b", "c"] that is... that works
<offby1> oho
<workmad3> Xethron: cool :)
<workmad3> I guess it's just a case handled by Array#[]=
<offby1> so it does
sepp2k has quit [Read error: Connection reset by peer]
<fowl> RUBY!
sepp2k has joined #ruby
cantonic has joined #ruby
<workmad3> Xethron: you can also do ary[3, 2] = %w(a b c)
slacker has joined #ruby
<workmad3> Xethron: err, ary[3,3] even
<dankest> Has anyone done any natural language processing in Ruby? The only good tools for it I can find are either in Java or Python.
Goles has quit [Quit: Computer has gone to sleep.]
philips has quit [Excess Flood]
bglusman has joined #ruby
seanstickle has joined #ruby
<hunglin> anyone know how to do "insert or update" using ActiveRecord?
Goles has joined #ruby
<cheako> workmad3: Who not just have a Makefile that calls rake? Don't try and confuse ppl by inventing your own buildsystem.
popl has joined #ruby
philips has joined #ruby
<Spaceghostc2c> cheako: What do you mean?
noyb has joined #ruby
<cheako> Ahh, I got it.
<cheako> Thank you.
cheako has left #ruby ["Client exiting"]
<verto> aff
atmosx has joined #ruby
Goles has quit [Client Quit]
dhruvasagar has joined #ruby
Goles has joined #ruby
<verto> hunglin the save method already do it.
BeLucid_ has joined #ruby
<hunglin> it complains about duplicate primary key
BeLucid has quit [Read error: No route to host]
VegetableSpoon has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
<hunglin> maybe because i set this in my model: def self.attributes_protected_by_default
<hunglin> []
<hunglin> end
<offby1> dunno what that does
<hunglin> i set this because i need to manual set id in database
<offby1> that sounds ... troublesome
andrewhl has joined #ruby
andrewpthorp has joined #ruby
<hunglin> i c, let me try something else
<offby1> I don't know much about ActiveRecord but I suspect that is the core of your problem
<verto> hunglin if you need define something before the save object you could use callbacks.. before_save
slacker has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<hunglin> cool, let me try that, too
<hunglin> thanks
Ontolog has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
troyack has quit [Quit: Blame Blizzard.]
k_89 has quit [Ping timeout: 255 seconds]
jfoley has joined #ruby
indian has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
S2kx has joined #ruby
nicoulaj has quit [Remote host closed the connection]
S1kx has quit [Ping timeout: 244 seconds]
noyb has quit [Ping timeout: 255 seconds]
S1kx has joined #ruby
Axsuul has joined #ruby
jfoley has quit [Quit: jfoley]
<shevy> 82639660 bytes
<shevy> anyone knows an easy way to turn this into MB ?
<shevy> is it / 1024.0 / 1024.0 ?
subbyyy1 has joined #ruby
subbyyy1 has quit [Client Quit]
subbyyy has quit [Read error: Connection reset by peer]
S2kx has quit [Ping timeout: 252 seconds]
Morkel has quit [Quit: Morkel]
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
<verto> google works too
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
adamkittelson has joined #ruby
mengu has joined #ruby
<jrajav> Too mainstream
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
<Spaceghostc2c> Google gives answers, usually only one.
<jrajav> I think he actually meant programmatically, anyway :P
<verto> :D
<jrajav> shevy: tl;dr : yes
BrianE has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
eph3meral has quit [Ping timeout: 248 seconds]
<atmosx> hello ppl
BrokenCog has quit [Read error: Connection reset by peer]
<atmosx> shevy: yes
BrokenCog has joined #ruby
dekroning has quit [Ping timeout: 240 seconds]
khakimov has joined #ruby
Horofox has joined #ruby
<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]
wvms has joined #ruby
BrokenCog has joined #ruby
_md has joined #ruby
atmosx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
indian has quit [Quit: Leaving]
williamcotton_ has joined #ruby
wargasm has quit [Ping timeout: 264 seconds]
zeromodulus has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 245 seconds]
dkissell_ has joined #ruby
<tommylommykins> hmm
dkissell has quit [Ping timeout: 250 seconds]
dkissell_ is now known as dkissell
<tommylommykins> Is it in-style to use the === operator explicitly?
wookiehangover is now known as wookiehangover_
<Tasser> tommylommykins, not really
<tommylommykins> ie: if (123...456) === xyz then blahblah end ?
<Tasser> tommylommykins, #include?
<tommylommykins> #include?
<Tasser> tommylommykins, (123...456).include? xyz
sonkei has quit [Ping timeout: 240 seconds]
wookiehangover_ is now known as wookiehangover
<tommylommykins> ah, ok, I was thinking C/C++ #include there :s
tatsuya_o has quit [Remote host closed the connection]
<shevy> hmm
BeLucid has joined #ruby
BeLucid_ has quit [Ping timeout: 245 seconds]
noyb has joined #ruby
zomb1e has joined #ruby
BeLucid_ has joined #ruby
wagle has quit [Quit: No Ping reply in 180 seconds.]
wagle has joined #ruby
BeLucid has quit [Read error: Connection reset by peer]
tatsuya_o has joined #ruby
VegetableSpoon has joined #ruby
BeLucid has joined #ruby
BeLucid_ has quit [Read error: No route to host]
subbyyy has joined #ruby
BeLucid has quit [Read error: Connection reset by peer]
hunglin has quit [Quit: Leaving.]
BeLucid has joined #ruby
cherrypeel has quit [Quit: Leaving]
BeLucid has quit [Read error: Operation timed out]
BeLucid has joined #ruby
workmad3 has joined #ruby
lukehamilton has joined #ruby
BeLucid has quit [Read error: No route to host]
BeLucid_ has joined #ruby
SegFaultAX has quit [Quit: Lost terminal]
lukehamilton has quit [Quit: lukehamilton]
workmad3 has quit [Ping timeout: 245 seconds]
jarred has joined #ruby
blacktulip has quit [Remote host closed the connection]
igotnolegs has joined #ruby
noyb has quit [Ping timeout: 245 seconds]
jarred has quit [Ping timeout: 245 seconds]
tatsuya_o has quit [Remote host closed the connection]
jarred has joined #ruby
[Neurotic] has joined #ruby
cherrypeel has joined #ruby
balki_ has joined #ruby
alanp has joined #ruby
cheako has joined #ruby
choffstein has quit [Remote host closed the connection]
<cheako> rake completes successfully, but creates undesirable output... Most of the pkgs generated using this method are empty.
Guest16542 has quit [Ping timeout: 245 seconds]
balki has quit [Ping timeout: 245 seconds]
alanp_ has quit [Ping timeout: 245 seconds]
Criztian has joined #ruby
sonkei has joined #ruby
GuidovanPossum has quit [Quit: GuidovanPossum]
BeLucid_ has quit [Read error: Connection reset by peer]
BeLucid_ has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
banseljaj is now known as imami|afk
Neil_ has quit [Remote host closed the connection]
etehtsea has quit []
andrewpthorp has quit [Quit: Linkinus - http://linkinus.com]
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...
verto is now known as verto|off
LifeSF has quit [Ping timeout: 265 seconds]
<gogiel> avalarion: gem coderay --version 1.0.6
<gogiel> avalarion: gem install coderay --version 1.0.6
nari has joined #ruby
workmad3 has joined #ruby
verto|off is now known as verto
<avalarion> gogiel: Thanks, that is exactly what I was looking for =)
cousine has joined #ruby
<gogiel> avalarion: have you used bundler before installing? bundler should install all gems in correct versions
enroxorz_ has joined #ruby
<avalarion> gogiel: nope, I've never used ruby... How exactly am I using bundler?
LifeSF has joined #ruby
_md has quit [Quit: Leaving...]
<gogiel> avalarion: in ruby project there's file called Gemfile. it's list of all dependant gems. you install them by performing 'bundle install'
mdszy has joined #ruby
<davidcelis> avalarion: gembundler.com/
brianpWins has joined #ruby
<avalarion> gogiel: looks easy, thanks!
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
Criztian has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
subbyyy has joined #ruby
lockweel has joined #ruby
cakehero has quit [Quit: Leaving...]
zomb1e has quit [Quit: zomb1e]
kevinbond has quit [Quit: kevinbond]
enroxorz_ has quit [Remote host closed the connection]
Corey has quit [Ping timeout: 615 seconds]
thomas has quit [Ping timeout: 615 seconds]
savage- has quit [Read error: Connection reset by peer]
jimeh3 has joined #ruby
mengu has quit [Remote host closed the connection]
savage- has joined #ruby
learc83 has joined #ruby
jrajav has quit [Ping timeout: 245 seconds]
jimeh3 has quit [Ping timeout: 248 seconds]
derekv has joined #ruby
jimeh3 has joined #ruby
kirun has quit [Quit: Client exiting]
oscardelben has joined #ruby
Z_Mass has joined #ruby
ringotwo has quit [Remote host closed the connection]
eph3meral has joined #ruby
jlwestsr has quit [Quit: Leaving]
kvirani has joined #ruby
<shevy> I am now proud with myself... I wrote a class that tells me the top 20 largest programs I have locally
workmad3 has quit [Ping timeout: 265 seconds]
<shevy> http://pastie.org/4222878 not very useful :P
<patient> way to go shevy
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
<shevy> but in the long run, I will try to put this all on git... so that it could then be used similar to https://github.com/mxcl/homebrew/commits/master/Library/Formula
alek_b_ has quit [Ping timeout: 240 seconds]
<shevy> cool icy`
<icy`> otherwise the 'google-search' gem is pretty decent
<shevy> is your scraper faster now?
<icy`> i think so; it's not fully tested. Hoping to keep seeing the nice 200 HTTP codes
nwest has joined #ruby
<shevy> hmm
<icy`> was a mess earlier; i was trying to give fake user agents, cookies, and other garbage ;P
<shevy> with an example! then I can use your code in my proud old school ruby .cgi scripts
fayimora has quit [Quit: Busy…..zzzzz]
<icy`> perhaps one day
mdszy has quit [Quit: bye for now]
<shevy> hehe
lewis1711 has joined #ruby
lewis1711 has left #ruby [#ruby]
yoklov has quit [Quit: computer sleeping]
bosphorus has quit [Remote host closed the connection]
Progster has quit [Ping timeout: 272 seconds]
stewart_ has quit [Quit: Leaving.]
robotmay has quit [Remote host closed the connection]
emmanuelux has joined #ruby
vlad_starkov has joined #ruby
savage- has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
thone_ has quit [Read error: Operation timed out]
stephenjudkins has quit [Quit: stephenjudkins]
ringotwo has joined #ruby
jimeh3 has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
Z_Mass has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 248 seconds]
thone has joined #ruby