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
Axsuul has joined #ruby
kenichi has quit [Remote host closed the connection]
oooPaul has quit [Quit: Ciao for now!]
mockra_ has quit [Remote host closed the connection]
frishi has joined #ruby
dekhaus has joined #ruby
dekhaus has left #ruby [#ruby]
jcromartie has quit [Quit: jcromartie]
baroquebobcat has quit [Ping timeout: 244 seconds]
<ekaleido> anyone tell me the general malfunction here and how i may avoid it?
brianpWins has joined #ruby
samwin has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
fayimora has joined #ruby
fserb has quit [Quit: ttyl]
CannedCorn has quit [Ping timeout: 246 seconds]
mockra has joined #ruby
Arelius has quit [Ping timeout: 245 seconds]
flagg0204 has quit [Quit: leaving]
<barefoot> ekaleido: use double quotes
ckrailo has quit [Quit: Computer has gone to sleep.]
<ekaleido> around the variable a? "a"?
<barefoot> in your json data
Axsuul has quit [Read error: Connection reset by peer]
iocor has joined #ruby
mockra has quit [Remote host closed the connection]
cousine has joined #ruby
<ekaleido> "profile" instead of 'profile' yo mean?
<ekaleido> hrm, id have to convert it as i receive it, methinks
ephemerian has joined #ruby
ephemerian has left #ruby [#ruby]
Axsuul has joined #ruby
<wpaulson> With single quotes it's not valid JSON, as far as I can see. It's valid javascript, but not json.
qwerxy has quit [Quit: offski]
nateberkopec has joined #ruby
walterheck has quit [Quit: Computer has gone to sleep]
mockra has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
qwerxy has joined #ruby
Araxia_ has quit [Read error: Connection reset by peer]
Araxia_ has joined #ruby
MissionCritical has quit [Read error: Connection reset by peer]
neektza has joined #ruby
<ekaleido> thanks for your help, im not banging my head on the wall anymore :)
Chuball has left #ruby [#ruby]
khakimov has joined #ruby
stephenjudkins has joined #ruby
mockra has quit [Remote host closed the connection]
stephenjudkins has quit [Client Quit]
stephenjudkins has joined #ruby
advorak has joined #ruby
davidpk has joined #ruby
sohocoke has quit [Quit: Computer has gone to sleep.]
fayimora has quit [Ping timeout: 248 seconds]
fayimora_ has joined #ruby
cousine has quit [Remote host closed the connection]
mvangala has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
advorak has quit [Client Quit]
franksort has joined #ruby
wilmoore has quit [Remote host closed the connection]
td123 has quit [Read error: Connection reset by peer]
td123 has joined #ruby
Karmaon has joined #ruby
sohocoke has joined #ruby
Bartzy has quit [Ping timeout: 256 seconds]
Konboi has joined #ruby
adeponte has quit [Remote host closed the connection]
MissionCritical has joined #ruby
<franksort> Is it possible to send a collect method on an array? Ex. [array].send(:collect {…})
jenrzzz-mac has joined #ruby
<banisterfiend> franksort: array.send(:collect) { }
MrGando has quit [Quit: Computer has gone to sleep.]
jenrzzz-mac has quit [Read error: Connection reset by peer]
yoklov has quit [Quit: bye!]
iocor has quit [Quit: Computer has gone to sleep.]
jenrzzz-mac has joined #ruby
cousine has joined #ruby
setient_ is now known as setient
libertyprime has joined #ruby
looopy has joined #ruby
zaychenok has quit [Read error: Connection reset by peer]
zaychenok has joined #ruby
sohocoke has quit [Quit: Computer has gone to sleep.]
azm has quit [Ping timeout: 244 seconds]
zizzyx has quit [Disconnected by services]
<franksort> Thanks banisterfiend
alejo has quit [Quit: Leaving]
zizzyx has joined #ruby
<zizzyx> i'm creating a mailer with which a secretary will use a text field to write out emails for an update list, and i'm wondering how to structure it
<zizzyx> do you treat the mailer like a controller, and set up routes for it, which point to views in the views/mymailer dir?
<zizzyx> oh do i make the email-composing view part of another controller, which calls the mailer function on post?
mockra has joined #ruby
proghat_ has joined #ruby
jonathanwallace has joined #ruby
Dl33ter has quit [Quit: ++++]
binaryplease has quit [Quit: WeeChat 0.3.8]
proghat has quit [Ping timeout: 245 seconds]
FLeiXiuS has quit [Quit: Leaving]
qwerxy has quit [Quit: offski]
GeekOnCoffee has quit [Excess Flood]
gaius65 has quit [Quit: gaius65]
GeekOnCoffee has joined #ruby
cousine has quit [Remote host closed the connection]
UNIXgod has quit [Changing host]
UNIXgod has joined #ruby
* Enekoos se despide
Enekoos has quit [Quit: Saliendo]
emmanuelux has quit [Remote host closed the connection]
tayy has quit [Remote host closed the connection]
inteq has joined #ruby
inteq has quit [Client Quit]
inteq has joined #ruby
bricker88 has quit [Quit: Leaving.]
jeffreybaird has quit [Read error: Connection reset by peer]
adamkittelson has quit [Remote host closed the connection]
jeffreybaird has joined #ruby
L-----D has joined #ruby
freeayu has joined #ruby
socomm has joined #ruby
mockra has quit [Remote host closed the connection]
<socomm> Is the require command like #include in c?
<Boohbah> yes
<shevy> checking for Python version >= 2.5 but not 3.x... configure: error: Python 2.5 or higher (but not Python 3.x) is required.
<shevy> fuck this python transition
jenrzzz-mac has quit [Quit: jenrzzz-mac]
inteq has quit []
<socomm> Another question. How can i find out where my ruby libraries are kept?
<td123> shevy: haha, don't give up
<shevy> socomm depends. try "gem env"
<shevy> td123 yeah man... firefox source build requires to have python installed. that alone annoys me a lot, but ... this transition thing is soooo annoying. there is quite some other software that says this like "use 2.x, not 3.x, we all hate 3.x!!!" :(
<socomm> shevy: thx
<shevy> they should use ruby anyway :>
bigoldrock has quit [Quit: Leaving.]
<shevy> but those version transitions seem to be painful everywhere
savage-_ has quit [Remote host closed the connection]
<shevy> heh
<shevy> #ruby is at 624, #perl is at 599
<shevy> #python at 896 :(
<Boohbah> lurkers, the lot of them!
<td123> shevy: iirc, the py2 -> py3 transition is only half way done, believe it or not, there is some sort of roadmap :P
<shevy> still having a slight edge on github compared to the python guys https://github.com/languages
<shevy> td123 oh man...
<shevy> it feels like 10 years already
<franksort> Is there a way to store :collect {..} in a variable so I can pass it to <obj>.send?
<shevy> franksort, perhaps via Proc.new, and then triggering .call ... and sending that what .call returns as argument to .send, but I am mostly just guessing wildly here without really knowing
<shevy> what you basically wanna do is apply some filter-rules on a collection or?
<socomm> shevy: wat does numbers mean?
<franksort> Yeah
SegFaultAX|work2 has quit [Quit: Lost terminal]
<shevy> socomm numbers? you use them to count how much money you have
<shevy> :)))
<shevy> ah
<banisterfiend> franksort: just store the proc
<shevy> well, not that much, but #python is a bit more active than #ruby
<banisterfiend> franksort: my_proc = proc { |v| v * 2 }
<shevy> #perl is quite dead on the other hand
xhh has joined #ruby
<banisterfiend> franksort: then when u wanna use it, use: array.send(:collect, &my_proc)
<shevy> tada! banister to the rescue
<socomm> shevy: #ruby is at 624, #perl is at 599
<shevy> yeah, people on that channel
<franksort> Might work, thanks
<socomm> oh wait you're talking about users per channel
bnagy has quit [Read error: Operation timed out]
<shevy> yeah
<shevy> on TIOBE, perl beats ruby still
<xhh> hi. how to use a ruby script to access a page requiring authentication? can any gems send username and password on the login page and keep the session with the following requests?
<shevy> but it's close now! only one rank!
pdtpatrick has quit [Quit: pdtpatrick]
<banisterfiend> franksort: what u trying to do exactly
<shevy> dafuq... lua dropping 10 ranks in one month alone? I am starting to doubt TIOBE ...
jeff_sebring has joined #ruby
indian has quit [Ping timeout: 248 seconds]
<banisterfiend> shevy: did u watch the tennis
<shevy> tennis?
<franksort> banisterfiend: I'm trying to adhere to some other code. It lets me assign :method to some array method, and then it does [arr].send(:method)
<shevy> hmm my time of watching tennis was the era of pete sampras and andre agassi
<shevy> and ivanisevic
<shevy> nowadays I dont know what is going on there anymore
<banisterfiend> franksort: how does it pass in parameters ?
liluo has joined #ruby
wilmoore has joined #ruby
<franksort> banisterfiend: A config file. Right now it says config.error_method = :to_sentence (which is a helper rails added to Array that just concats the els of an array with commas or ands)
<banisterfiend> franksort: but u want to pass in a block, right? how do u pass in a block
uris has joined #ruby
seanstickle has joined #ruby
jenrzzz-mac has joined #ruby
<franksort> banisterfiend: With the way the code is written, I don't think it's possible but I was just making sure
olrrai has joined #ruby
<franksort> I'll probably monkey patch it to accept a :method and an optional :block
iori has joined #ruby
perryh_away is now known as perryh
khakimov has quit [Ping timeout: 240 seconds]
<banisterfiend> franksort: u mean &block :P
zombor has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
khakimov has joined #ruby
<zombor> anyone know of any generic hash/object validation libraries in pure ruby?
<zombor> to validate the presence or other kinds of properties of a hash or object
uris has quit [Read error: Connection reset by peer]
<seanstickle> zombor: ActiveModel
<zombor> anything else besides Active* ? :)
<seanstickle> Ha
<zombor> i'll use it if i have to, but it's not the most flexible thing in the world
corenumb has quit [Ping timeout: 245 seconds]
hunglin has joined #ruby
<seanstickle> zombor: lighter-weight
zaychenok has quit [Read error: Connection reset by peer]
zaychenok has joined #ruby
<zombor> hrmf
<banisterfiend> seanstickle: hey stick
<banisterfiend> seanstickle: can you read russian
<seanstickle> Hey horsie
looopy has quit [Remote host closed the connection]
<seanstickle> чуточку
<seanstickle> Neato
<seanstickle> Russky-pry
<banisterfiend> seanstickle: it's enormous
ilyam has joined #ruby
jimeh has quit [Ping timeout: 265 seconds]
igotnolegs has joined #ruby
<zombor> i was hoping to find something that did it the opposite way: a validation object that accepts a hash and tells me if it's valid. maybe that's backwards
BrokenCog has joined #ruby
<seanstickle> My lie is discovered!
sleetdrop has joined #ruby
freeayu has quit [Ping timeout: 244 seconds]
BrokenCo1 has joined #ruby
Araxia_ has quit [Quit: Araxia_]
SimSala has quit [Ping timeout: 245 seconds]
albemuth has quit [Quit: Computer has gone to sleep.]
BrokenCog has quit [Ping timeout: 248 seconds]
albemuth has joined #ruby
mikepack has quit [Remote host closed the connection]
looopy has joined #ruby
Targen has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
macmartine has joined #ruby
corenumb has joined #ruby
kenperkins has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
freeayu has joined #ruby
jeff_sebring has joined #ruby
mrsolo has quit [Quit: Leaving]
zaychenok has quit [Quit: Konversation terminated!]
zaychenok has joined #ruby
ben_alman has quit [Excess Flood]
jeff_sebring has quit [Remote host closed the connection]
shevy2 has joined #ruby
albemuth has quit [Quit: Computer has gone to sleep.]
shevy has quit [Read error: Operation timed out]
BrokenCo1 has quit [Read error: Connection reset by peer]
jeff_sebring has joined #ruby
Croms has joined #ruby
BrokenCog has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
eph3meral has quit [Read error: Operation timed out]
jenrzzz-mac has joined #ruby
looopy_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
looopy_ has quit [Remote host closed the connection]
shtirlic_ has joined #ruby
ben_alman has joined #ruby
looopy_ has joined #ruby
banisterfiend has joined #ruby
looopy has quit [Ping timeout: 244 seconds]
shtirlic has quit [Ping timeout: 248 seconds]
uris has joined #ruby
wpaulson_ has joined #ruby
wpaulson_ has quit [Client Quit]
wpaulson_ has joined #ruby
jeff_sebring has joined #ruby
billiamii has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
Soul_Est has joined #ruby
rdctnst has quit [Quit: Leaving]
zinjacoder has quit [Read error: Connection reset by peer]
t0mmyvyo has quit [Quit: http://twitter.com/tommyvyo]
khakimov has quit [Quit: Computer has gone to sleep.]
ilyam has quit [Quit: ilyam]
bambanx has joined #ruby
<bambanx> hi
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
hunglin has left #ruby [#ruby]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
apok has quit [Ping timeout: 246 seconds]
seanstickle has quit [Quit: Nihil sub sole novum]
olrrai has quit [Remote host closed the connection]
olrrai has joined #ruby
igotnolegs has quit [Quit: Fire walk with me]
akoumjian has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
tdubz_ is now known as thomas
radic_ has joined #ruby
radic has quit [Disconnected by services]
radic_ is now known as radic
bambanx has quit [Ping timeout: 245 seconds]
blooberr has joined #ruby
babonk has joined #ruby
<babonk> HI guys, I'm getting the error ruby(47333,0x7fff72aee960) malloc: *** error for object 0x7f98b6a6e3f0: pointer being freed was not allocated
<babonk> *** set a breakpoint in malloc_error_break to debug
<babonk> how can I actually set such a breakpoint
<babonk> I'm not sure which extension is responsible, if any
whuffor has quit [Ping timeout: 240 seconds]
kylemcgill has quit [Remote host closed the connection]
ciopte7 has quit [Quit: ciopte7]
<td123> babonk: can you reproduce it?
<td123> if you can, find a minimal test case
ciopte7 has joined #ruby
libertyprime has quit [Quit: Lost terminal]
<banisterfiend> babonk: are you using a c extension
noyb has joined #ruby
bambanx has joined #ruby
libertyprime has joined #ruby
<babonk> td123: It occassionally reproduces when I try to send an email from my dev environment. I'm not sure the exact line of code though because the ActiveMailer code is so deep
<bambanx> sup
<babonk> it might be in tmail.. or it might be in something deeper than all of that that they rely on
<babonk> or that wraps around their calls somehow
libertyprime has quit [Client Quit]
<babonk> usually i get the error i pasted, sometimes a segfault.. and sometimes strangely it works. but mainly that malloc errorc
libertyprime has joined #ruby
zaychenok has quit [Quit: Konversation terminated!]
Spooner has quit [Ping timeout: 256 seconds]
null- has joined #ruby
zaychenok has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
<babonk> hmm, it seems like i might be able to use this method to debug with gdb? http://www.ruby-forum.com/topic/180626
ciopte7 has quit [Quit: ciopte7]
<babonk> yeah this seems to work
<babonk> for debugging
libertyprime has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
libertyprime has joined #ruby
zaychenok has quit [Read error: Connection reset by peer]
zaychenok has joined #ruby
mengu has quit [Remote host closed the connection]
igotnolegs has joined #ruby
cj3kim has joined #ruby
neohunter has joined #ruby
<neohunter> Why if i do f= File.open() ..... f.readline[5]
<neohunter> and try to read another line
<neohunter> it returns nil
<neohunter> or the same line
<neohunter> it returns nil
whuffor has joined #ruby
shadoi1 has quit [Ping timeout: 248 seconds]
jeffreybaird has joined #ruby
bnagy has joined #ruby
duder has joined #ruby
<bambanx> sup bnagy ben
IHateHavingToReg has joined #ruby
<IHateHavingToReg> OH LORDY
<IHateHavingToReg> I HAS A PIZZA STO
<IHateHavingToReg> OH LORDY
<IHateHavingToReg> ih
<IHateHavingToReg> hi
hashset has joined #ruby
<IHateHavingToReg> hi
cj3kim has quit [Quit: This computer has gone to sleep]
jeff_sebring has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
krz has quit [Quit: krz]
<bambanx> hi
frishi has quit [Quit: Leaving...]
macmartine has quit [Quit: macmartine]
<IHateHavingToReg> bambanx:
<IHateHavingToReg> IM A FA-
<IHateHavingToReg> FA-FAGGOT
mockra has joined #ruby
<bambanx> i dont care
<bambanx> is not my ass
<IHateHavingToReg> i rape niggers
<IHateHavingToReg> lol
<bambanx> this is a ruby channel men, is not a faggot channel
<bambanx> you can find your rigth channel on other place
mockra has quit [Remote host closed the connection]
<IHateHavingToReg> ur a faggot
<IHateHavingToReg> ok
<IHateHavingToReg> so fuck u
<IHateHavingToReg> faggot ass punk ass little bitch
<IHateHavingToReg> IMA FUCK U
<IHateHavingToReg> IMA FUCK U
ipoval has joined #ruby
<IHateHavingToReg> U FUCKING HERE ME
<IHateHavingToReg> IMA FUCK U
timonv has joined #ruby
stefanp_ has joined #ruby
<bambanx> anyone can ban this child pls?
BrokenCog has quit [Read error: Connection reset by peer]
hashset has left #ruby [#ruby]
<IHateHavingToReg> EXCUSEME
<IHateHavingToReg> IMA FUCK U
BrokenCog has joined #ruby
n9yty has joined #ruby
n9yty has quit [Client Quit]
stefanp has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 244 seconds]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
gtuckerkellogg has joined #ruby
<_br_> Wish I had op here so that I can kick people like that from the channel.
<babonk> is there a voting system for it
<_br_> Have no clue, how does it work? Could you please tell me?
<bambanx> _br_, you wanna kick who to IHateHavingToReg ?
<_br_> Yes.
<bambanx> cool
voodoofish430 has quit [Quit: Leaving.]
Guedes has quit [Ping timeout: 256 seconds]
zomgbie has joined #ruby
<banisterfiend> _br_: i just put him on ignore
rsimoes has joined #ruby
<_br_> banisterfiend: Also a way to do it. We need a bot here to take care of this .. :)
Wandering_Glitch has quit [Changing host]
Wandering_Glitch has joined #ruby
Wandering_Glitch is now known as WanderingGlitch
Targen has joined #ruby
franksort has quit [Quit:]
libertyprime has quit [Quit: Lost terminal]
libertyprime has joined #ruby
babonk has left #ruby [#ruby]
minijupe has quit [Quit: minijupe]
otters has quit [Ping timeout: 245 seconds]
eph3meral has joined #ruby
ciopte7 has joined #ruby
brianpWins has quit [Quit: brianpWins]
zombor has quit [Remote host closed the connection]
macmartine has joined #ruby
<bambanx> yeah
iamjarvo1 has joined #ruby
<bambanx> he heart my fellings
<bambanx> hurt*
<iamjarvo1> can someone explain the difference between protected and private?
<offby1> lemme try
<offby1> "private" means that only instances of _this_ class can access it.
<offby1> "protected" means that instances of _this_ class, as well as inherited classes, can access it.
<offby1> I think.
zaychenok has quit [Quit: Konversation terminated!]
zaychenok has joined #ruby
ciopte7 has quit [Client Quit]
DanBoy has joined #ruby
DanBoy has quit [Client Quit]
IHateHavingToReg has quit [Quit: Computer has gone to sleep]
<iamjarvo1> offby1: thanks
<iamjarvo1> according to the book protedted => "makes a method private, but within the scope of a class rather than within a
<iamjarvo1> single object."
krz has joined #ruby
<offby1> I assume it's easy to write a little example, and try out all the combinations
<iamjarvo1> private tells Ruby that any methods declared in this class from
<iamjarvo1> there on should be kept private.
<offby1> that could be it, too ... as you might have guessed I don't do much OO design
<banisterfiend> offby1: hey Eric, sup
babonk has joined #ruby
<babonk> Hi all, what's the simplest way to install Ruby so that it provides debugging symbols/info to gdb? I'm on Mac OS X
shadoi has joined #ruby
shtirlic_ has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
<offby1> "Eric"? Who is this ... oh.
<babonk> Think I got it. export optflags="-O0 -ggdb" rvm install 1.9.1
* offby1 calls the Using Meatspace Names In IRC Police on banisterfiend
Progster has quit [Ping timeout: 245 seconds]
sabooky has joined #ruby
<sabooky> Is it possible to use rvm to install precompiled binaries?
<offby1> banisterfiend: I liked you essay about the top level.
<offby1> s/you/your/
<offby1> even though I hit that damned "r" key TWICE
<banisterfiend> offby1: Cool, glad u like it homie
<sabooky> Using it as part of a deployment process and I would like to avoid having to compile it every time
ananthakumaran has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Quit: stephenjudkins]
hemanth_ has joined #ruby
jrist is now known as jrist-afk
mockra has joined #ruby
baroquebobcat has joined #ruby
minijupe has joined #ruby
gongura has joined #ruby
iamjarvo1 has quit [Quit: Leaving.]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
gongura has quit [Client Quit]
imami|afk is now known as banseljaj
tds has quit [Quit: tds]
jeff_sebring has quit [Read error: Connection reset by peer]
digitalcakestudi has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
jeff_sebring has joined #ruby
liluo has quit [Ping timeout: 244 seconds]
werdnativ has quit [Ping timeout: 244 seconds]
liluo has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
jeff_sebring has joined #ruby
banisterfiend has joined #ruby
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
MrGando has joined #ruby
rashila has joined #ruby
<rashila> hi
proghat__ has joined #ruby
uris has quit [Quit: leaving]
* offby1 grunts
rippa has joined #ruby
walterheck has joined #ruby
<rashila> is this the place where I can ask ruby on rails questions?
<Boohbah> #RubyOnRails
eywu has joined #ruby
proghat_ has quit [Ping timeout: 265 seconds]
<rashila> getting message #RubyOnRails Cannot send to channel
mockra has quit [Remote host closed the connection]
<_br_> Boohbah: look, its even in the topic :)
simao has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
simao has joined #ruby
bambanx has quit [Ping timeout: 245 seconds]
albemuth has joined #ruby
rossfuhrman has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
voodoofish431 has quit [Quit: Leaving]
zaychenok has quit [Quit: Konversation terminated!]
zaychenok has joined #ruby
<Boohbah> rashila: that's because your nick isn't registered
<rashila> ok thank you
thecreators has quit [Quit: thecreators]
franksort has joined #ruby
Markvilla has quit [Quit: Markvilla]
irrationalfab has quit [Remote host closed the connection]
hamfz_ has quit [Ping timeout: 252 seconds]
h4mz1d has quit [Ping timeout: 252 seconds]
bradb has quit [Quit: bradb]
olrrai has quit [Ping timeout: 256 seconds]
<babonk> Hey all. If I already have a version of Ruby installed prior to rvm, how can I get rvm to notice/include it?
hemanth_ has quit [Read error: Connection reset by peer]
* offby1 laughs cruelly
<offby1> I honestly don't know, and I'm just being my usual grumpy pessimistic self, but:
* offby1 laughs cruelly
hemanth_ has joined #ruby
<banisterfiend> babonk: u cant afaik
<babonk> one site said to use rvm wrapper
maletor has joined #ruby
L-----D has quit [Quit: Leaving]
mrdtt has joined #ruby
<bnagy> just install that version again with rvm
alexander-- has joined #ruby
alexander-- has quit [Client Quit]
<bnagy> faster than screwing about or talking about it
zaychenok has quit [Quit: Konversation terminated!]
<bnagy> with rbenv you could just symlink it into versions and rbenv rehash :P
zaychenok has joined #ruby
<offby1> bnagy: yeah, but ... it's WRONG
<offby1> rashila: good find!
<bnagy> what's wrong?
<offby1> bnagy: installing the same version a second time just so that rvm can manage it. (But the symlink idea is cool.)
<offby1> And by WRONG I don't mean "it won't work"; I merely mean "it makes the Baby Jesus cry".
<banisterfiend> offby1: i thought you were a jew
<bnagy> offby1: no way, it's best
<offby1> Why _shouldn't_ a jew answer a question with a question?
<bnagy> cause if you're using rvm right it will be installed as your user
<bnagy> whereas your system ruby is installed who knows how
<offby1> yep
<bnagy> usually Wrong, ime
<offby1> true dat
<offby1> there are Perl people who say "Never use the system perl".
<banisterfiend> offby1: oh i just didnt expect you to use a metaphor about jesus
<offby1> silly kiwi
chimkan has joined #ruby
randym has joined #ruby
<bnagy> "it makes Baby Jesus cry, but not as much as nailing him to a tree"
<bnagy> zing!
<banisterfiend> heh heh
* offby1 blushes at the blasphemy
<bnagy> pf you should hear some of my bestemmia
xhh has left #ruby [#ruby]
krusty_ar_ has quit [Ping timeout: 246 seconds]
digitalcakestudi has quit [Quit: Leaving.]
looopy_ has quit [Remote host closed the connection]
ylluminate has quit [Quit: Bye!]
looopy has joined #ruby
zaychenok has quit [Quit: Konversation terminated!]
jeffreybaird has quit [Quit: jeffreybaird]
zaychenok has joined #ruby
walterheck has quit [Quit: Computer has gone to sleep]
werdnativ has joined #ruby
zaychenok has quit [Client Quit]
zaychenok has joined #ruby
zaychenok has quit [Client Quit]
otters has joined #ruby
zaychenok has joined #ruby
chimkan has quit [Quit: chimkan]
dross has quit [Read error: Connection reset by peer]
dross has joined #ruby
Shahor has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
chimkan_ has joined #ruby
brianpWins has joined #ruby
dross has quit [Read error: Connection reset by peer]
dross has joined #ruby
nilg has joined #ruby
cyong has joined #ruby
L-----D has joined #ruby
eywu has quit [Quit: Leaving.]
masterhumper is now known as sejo
blumbri has quit [Ping timeout: 265 seconds]
eywu has joined #ruby
wilmoore has quit [Remote host closed the connection]
babonk_ has joined #ruby
babonk_ has quit [Changing host]
babonk_ has joined #ruby
babonk has quit [Read error: Connection reset by peer]
babonk_ is now known as babonk
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
hemanth_ is now known as hemanth
lahwran has quit [Ping timeout: 276 seconds]
manizzle has quit [Ping timeout: 245 seconds]
manizzle has joined #ruby
charliesome has joined #ruby
ryanf has joined #ruby
nipra has joined #ruby
lahwran has joined #ruby
lahwran has quit [Changing host]
lahwran has joined #ruby
tds has joined #ruby
tds has quit [Client Quit]
vitoravelino is now known as vitoravelino`afk
mikeycgto has quit [Remote host closed the connection]
zaychenok has quit [Read error: Connection reset by peer]
zaychenok has joined #ruby
albemuth has quit [Quit: Computer has gone to sleep.]
vectorshelve has joined #ruby
<vectorshelve> hemanth: hai bhai
zaychenok has quit [Client Quit]
zaychenok has joined #ruby
<hemanth> vectorshelve, hey! http://h3manth.com/content/es6-nodejs
Cicloid has quit [Remote host closed the connection]
<vectorshelve> hemanth: is there any language distro version OS sdk that u dont know ? :p prodigy :)
wpaulson__ has joined #ruby
<hemanth> vectorshelve, hmm, i know nothing
<vectorshelve> hemanth: all intelligent ppl say this line :)
ghanima has quit [Quit: Leaving.]
<hemanth> vectorshelve, hmm
<vectorshelve> hemanth: :P
Guest47773 has left #ruby [#ruby]
wpaulson_ has quit [Ping timeout: 244 seconds]
zaychenok has quit [Quit: Konversation terminated!]
zaychenok has joined #ruby
<hemanth> vectorshelve, my exact thought -> http://i.imgur.com/OoIfH.gif?1?6329
chienpo has left #ruby [#ruby]
<vectorshelve> hemanth: :) on what ?
neohunter has quit [Quit: Linkinus - http://linkinus.com]
cj3kim has quit [Quit: This computer has gone to sleep]
<hemanth> 'all intelligent ppl say this line :)'
mayankkohaley has joined #ruby
thecreators has joined #ruby
Soul_Est has quit [Ping timeout: 248 seconds]
webusnix has joined #ruby
gmci has quit [Ping timeout: 265 seconds]
Tref has joined #ruby
prtksxna has joined #ruby
a_a_g has joined #ruby
ewag_ is now known as ewag
gmci has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Drewch has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
yxhuvud has joined #ruby
Drewch has joined #ruby
zaychenok has quit [Quit: Konversation terminated!]
zaychenok has joined #ruby
noyb has quit [Ping timeout: 246 seconds]
azm has joined #ruby
corenumb has quit [Ping timeout: 248 seconds]
Tref has quit [Quit: Tref]
palmfrond has quit [Read error: Connection reset by peer]
corenumb has joined #ruby
zaychenok has quit [Read error: Connection reset by peer]
zaychenok has joined #ruby
khakimov has joined #ruby
icooba has joined #ruby
timonv has joined #ruby
eywu has quit [Quit: Leaving.]
Kunda has quit [Ping timeout: 248 seconds]
zaychenok has quit [Ping timeout: 248 seconds]
moshee has quit [Ping timeout: 248 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
babonk has quit [Read error: Connection reset by peer]
babonk has joined #ruby
babonk has quit [Changing host]
babonk has joined #ruby
nilg` has joined #ruby
palmfrond has joined #ruby
nilg` has quit [Remote host closed the connection]
codezombie has joined #ruby
nilg` has joined #ruby
stewart_ has quit [Quit: Leaving.]
palmfrond has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
perryh is now known as perryh_away
palmfrond has joined #ruby
koskoz has joined #ruby
fridim_ has joined #ruby
tonini has joined #ruby
ryanf has quit [Quit: leaving]
Helius has joined #ruby
mockra has joined #ruby
cj3kim has joined #ruby
mohits has joined #ruby
Bosma has quit [Read error: Operation timed out]
<looopy> question what does module X class << self end; end do
<looopy> some sort of constructor class for the module?
<burgestrand1> looopy: opens the singleton class of the current self, in that case it’s the module X’s singleton class
burgestrand1 is now known as burgestrand
mikepack has joined #ruby
CheeToS has joined #ruby
<looopy> ahh gotcha, thanks
febo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Helius has quit [Read error: Connection reset by peer]
<burgestrand> looopy: could’ve been “class << X” just as well as “class << self”
perryh_away is now known as perryh
<looopy> burgestrand: ahh i see. i'm reading the source code for rails.
banisterfiend has quit [Remote host closed the connection]
djdb has joined #ruby
mockra has quit [Remote host closed the connection]
ping-pong has quit [Ping timeout: 252 seconds]
Targen has quit [Ping timeout: 252 seconds]
febo has quit [Remote host closed the connection]
Karmaon has quit [Quit: WeeChat 0.3.8-rc2]
Drewch has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
Karmaon has joined #ruby
<krz> i have the following array: http://pastie.org/4071878 how would i search for bar and change the count to 5 ?
Drewch has joined #ruby
<krz> use find?
<krz> with each?
<krz> or is there a better way?
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mockra has joined #ruby
<krz> anyone?
macmartine has quit [Quit: macmartine]
babonk has quit [Quit: babonk]
sleetdrop has quit []
ping-pong has joined #ruby
gongura has joined #ruby
senny has joined #ruby
Targen has joined #ruby
zaychenok has joined #ruby
koskoz has quit [Ping timeout: 244 seconds]
fantazo_ has quit [Remote host closed the connection]
banisterfiend has joined #ruby
ABK has joined #ruby
<Boohbah> krz: uhh, that looks like a hash with an array of hashes
<banisterfiend> Boohbah: hey boob
wpaulson__ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<Boohbah> banisterfiend: hey ban
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
walterheck has joined #ruby
bradhe has quit [Remote host closed the connection]
workmad3 has joined #ruby
mockra has joined #ruby
rakm has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Morkel has joined #ruby
rakm has joined #ruby
ph^ has joined #ruby
tewecske has joined #ruby
ananthakumaran has joined #ruby
Guest20110 has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
iocor has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
bambanx has joined #ruby
<bambanx> hi
maesbn has joined #ruby
cezar has joined #ruby
prtksxna has quit [Ping timeout: 244 seconds]
cezar has quit [Client Quit]
ryanf has joined #ruby
jprovazn_away is now known as jprovazn
<bambanx> sup Hanmac1
jeff_sebring has quit [Remote host closed the connection]
azm has quit [Ping timeout: 244 seconds]
jeff_sebring has joined #ruby
yonggu_ has quit [Remote host closed the connection]
yonggu has joined #ruby
Progster has joined #ruby
qwerxy has joined #ruby
makarius has joined #ruby
schovi has joined #ruby
zommi has joined #ruby
jeff_sebring has quit [Client Quit]
DarthGandalf has quit [Read error: Operation timed out]
DarthGandalf has joined #ruby
socomm has quit [Ping timeout: 265 seconds]
DarthGandalf has quit [Changing host]
DarthGandalf has joined #ruby
<bambanx> how i can sort a csv file by max to min, for example using my price, and order my file to the max value to the minimun?
MrGando has quit [Quit: Computer has gone to sleep.]
markab has joined #ruby
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gilead has joined #ruby
markab1 has quit [Ping timeout: 244 seconds]
rashila has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120310010757]]
<makarius> bambanx: you would have to parse it first
<bambanx> how?
<bambanx> can you show me the light pls makarius
<makarius> just a sec, please!
<makarius> I don't thing I can show the light, though
<bambanx> :P
corenumb has quit [Quit: Leaving]
Raduwen has joined #ruby
<makarius> require 'csv'
<makarius> data = File.open('my-file.csv', 'r').read
<makarius> rows = []
<makarius> CSV.parse data do |row|
<makarius> rows << row.to_hash
<makarius> end
prtksxna has joined #ruby
<makarius> rows.sort_by! do |row|
<makarius> row['price']
<makarius> end
<makarius> bambanx: see if that can help you
<makarius> you should google for ruby csv parsing
<bambanx> thanks makarius
<bambanx> you can use this makarius http://pastie.org/
<makarius> right, thanks, I wasn't sure wether to use gists
socomm has joined #ruby
<Boohbah> the topic says: Paste >3 lines of text on gist.github.com :)
<makarius> sorry!!! :/ next time!!
xkx has joined #ruby
Guest20110 has quit [Ping timeout: 265 seconds]
<Boohbah> though i prefer pastie
<makarius> there is even cli tools, right?
[Neurotic] has quit [Ping timeout: 256 seconds]
werdnativ has left #ruby [#ruby]
igotnolegs has quit [Quit: Computer has gone to sleep.]
alegacyreborn has joined #ruby
emmanuelux has joined #ruby
alegacyreborn has quit [Client Quit]
Hanmac1 is now known as Hanmac
<bambanx> thanks makarius !!!!
bluOxigen has joined #ruby
invictus1 has quit [Read error: Connection reset by peer]
invictus1 has joined #ruby
walterheck has quit [Quit: Computer has gone to sleep]
mockra has quit [Remote host closed the connection]
<makarius> :)
<bambanx> i used some like this a = my_orders.each.sort_by {|x| x['volEntered'] }
mockra has joined #ruby
<bambanx> studing your code i make it
jayne has quit [Read error: Connection reset by peer]
prtksxna has quit [Read error: Connection reset by peer]
<makarius> I think you can ditch the each
prtksxna has joined #ruby
<bambanx> what mean ditch?
<makarius> if my_orders is an array
<makarius> like you don't need it
jayne has joined #ruby
saschagehlich has joined #ruby
looopy has quit [Remote host closed the connection]
<bambanx> ohhh
<bambanx> yeah
pashamur has joined #ruby
pashamur has quit [Read error: Connection reset by peer]
pashamur has joined #ruby
marccantwell has joined #ruby
<Hanmac> or like this: a = my_orders.each_with_object('volEntered').sort_by(&:[])
TheHunter_1039 has quit [Quit: TheHunter_1039]
<marccantwell> Anyone have any suggestions on deep cloning embedded mongoid docs?
francisfish has joined #ruby
pashamur has quit [Client Quit]
[Neurotic] has joined #ruby
pashamur has joined #ruby
<bambanx> hey Hanmac
zaychenok has quit [Ping timeout: 248 seconds]
mrdtt has quit [Remote host closed the connection]
<Hanmac> my variant may a little bit faster then yours
<bambanx> what is this: (&:[])
<bambanx> i dunno
mneorr has quit [Quit: WeeChat 0.3.5]
emmanuelux has quit [Ping timeout: 264 seconds]
marccantwell has quit [Quit: marccantwell]
<Hanmac> :[] is a symbol, and & turn this into a proc... its a bit better then a closure
shadoi has quit [Quit: Leaving.]
khakimov has quit [Quit: Computer has gone to sleep.]
<bambanx> thanks Hanmac
pk1001100011 has joined #ruby
<bambanx> Hanmac, is hard use threads? what diferences are in threads and fibers?
<bambanx> i need run a method in paralel with other
<bambanx> i am not sure what use
banseljaj is now known as imami|afk
mikepack has quit [Remote host closed the connection]
billiamii has quit [Ping timeout: 256 seconds]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<bnagy> if you can't master enumerable after a month you're just going to cut yourself if you try to use threads
<bnagy> gem install parallel and use Parallel.map or Parallel.each
<banisterfiend> bnagy: hey nags
banisterfiend is now known as horseman
<bnagy> on collections, that's mostly impossible to screw up
<horseman> bnagy: what's your alcohol of choice
<bnagy> hm
<bnagy> just about anything except tequila
Tref has joined #ruby
mneorr has joined #ruby
<horseman> bnagy: can u be more specific
<bnagy> I am very fond of islay single malts though
<horseman> bnagy: whiskey?
perryh is now known as perryh_away
<horseman> bnagy: do u like rum?
<bnagy> good rum, yeah definitely
<Hanmac> i never used threads or fibers ... (i must think at the book in southpark: "a million little fibers")
hemanth has quit [Read error: Connection reset by peer]
<horseman> Hanmac: did u see the flash video by the southpark guys?
<horseman> Hanmac: one sec ill link u
<bambanx> can i do this situation for example: run two methods, method_one and method_two , if my method_two register some event this do the other method, method_one start again?
hemanth has joined #ruby
jeff_sebring has joined #ruby
* Hanmac donot klick on banister links
<bnagy> bambanx: you can, but like I said, it's horrible
<bambanx> what you mean bnagy with horrible? is hard to do?
<bnagy> do everything you possibly can to avoid handling that kind of concurrency stuff yourself
<bnagy> what are you trying to do, in broad terms?
<bambanx> i need run two methods one method i wanna use for see if my apps its running ok
<bambanx> this method is scanning my screen all time
<bnagy> oh right
<bnagy> you can't
<bnagy> that's the halting problem
<bnagy> if you need a monitor make it a separate process
<bambanx> what you mean with separate process?
sepp2k has joined #ruby
<horseman> bnagy: i want to work on some badass opensource project with u in celluloid, a project so good we can sell t-shirts with the project name on it
<bambanx> my method is like a vigilant if my program is running ok
<bnagy> if you want to monitor app X you need a separate app Y
<bnagy> because compsci
trollface is now known as Paradox
iocor has quit [Quit: Computer has gone to sleep.]
jimeh has joined #ruby
<bambanx> :(
fgwaegeawgfwa has joined #ruby
<bnagy> horseman: heh, I have enough backlog with my actual job
<bnagy> I really, really want to rewrite all my stuff on celluloid though :)
<horseman> bnagy: actual jobs dont make u famous, dont u want to get famous
Gavilan has quit [Ping timeout: 244 seconds]
<bnagy> no
<bambanx> bnagy, this: if you can't master enumerable after a month , sound like you suck bambanx :( , i dont study enumerable vry well yet i dont have time =(
ipoval has quit [Quit: ipoval]
<bnagy> although in the context of security I'm more than famous enough for my taste
locriani_ is now known as locriani
<horseman> bnagy: let me google u, what should i google for
<bnagy> bambanx: just saying, you've been asking more or less the same questions on basic CSV + Enumerable for a month, and the questions are not getting any more advanced
<bnagy> which suggests to me that you're not learning
RichG is now known as RichGuk
jimeh has quit [Client Quit]
<horseman> bnagy: hey so what od u think abou tthe stability of celluloid?
seoaqua has joined #ruby
<bnagy> haven't ever used it
<bnagy> I looked at their underlying zmq stuff
<bnagy> I am not 100% convinced about it
jeff_sebring has quit [Remote host closed the connection]
<horseman> bnagy: one of my projects is happily using eventmachine now and i've been told both positive and negative things about migrating to celluloid
<horseman> negative => it's unstalbe on jruby
<bnagy> it's a really nice model
<bnagy> but I have a fairly actor-y model already
jeff_sebring has joined #ruby
<bnagy> I want to steal mainly their register and the gossip protocol
qwerxy has quit [Quit: offski]
<horseman> bnagy: "their" i thought it was just one guy :)
<bnagy> I thought the addons were more than just tarcieri?
federic has joined #ruby
<horseman> bnagy: i dont know,i thought it was
<bnagy> anyway I already have a ton of zmq backbone now, that part works - inc with jruby
seoaqua has quit [Ping timeout: 246 seconds]
berkes has joined #ruby
seoaqua has joined #ruby
Ammar01 has joined #ruby
<bnagy> although there was at least one 1.7 bug that they fixed for me (in jruby) that was breaking the ffi-rbzmq
<bnagy> bambanx: it uses eventmachine under the hood, afaik
<bambanx> ok
<bnagy> and then uses fibers to make concurrent code look like blocking code
rcf has joined #ruby
rcf has left #ruby [#ruby]
anildigital_work has joined #ruby
roolo has joined #ruby
dhruvasagar has joined #ruby
pashamur has quit [Quit: Konversation terminated!]
<krz> bambanx: its a web framework for eventmachine
<krz> its outdated
<bambanx> oh ok
pashamur has joined #ruby
* krz wishes there was something like tower.js for event machine
davidpk has quit [Quit: Computer has gone to sleep.]
Bartzy has joined #ruby
pashamur has quit [Client Quit]
pashamur has joined #ruby
sabooky has quit [Quit: leaving]
iocor has joined #ruby
fserb has joined #ruby
iocor has quit [Client Quit]
jimeh has joined #ruby
senny has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
apeiros_ has joined #ruby
cyong has quit [Quit: Leaving.]
flexd has joined #ruby
<flexd> Uh, this is not entirely the right place to ask this, but I am assuming a fair deal of people use rbenv here :p
<flexd> What might I be doing wrong when I have installed rbenv/ruby-build and install 1.9.3, but I can't do things like ruby -v
ryanf has quit [Quit: leaving]
<flexd> No such command ruby, but the folder is in my PATH
<flexd> and I can do things like rbenv exec ruby -v
<flexd> I tried going directly to the folder with the ruby version, I can do ./ruby but not just run ruby itself /
senny has joined #ruby
workmad3 has joined #ruby
vectorshelve has quit [Ping timeout: 245 seconds]
SiliconDon has joined #ruby
yannis has joined #ruby
duder has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
codezombie has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mdw has joined #ruby
indian has joined #ruby
zomgbie has quit [Ping timeout: 252 seconds]
arturaz has joined #ruby
remmy444 has joined #ruby
bambanx_ has joined #ruby
imami|afk is now known as banseljaj
<Paradox> flexd, rbenv rehash
<Paradox> then exec $SHELL
<flexd> I have, several times
<flexd> Even reconnected (ssh) like three times, which would do the same.
<Paradox> rbenv global 1.9.3-p194 ?
<flexd> I do not have root on this machine, and I have limited rights.
<flexd> Yep
<Paradox> rbenv local …
<flexd> Yep.
Vainoharhainen has joined #ruby
<Paradox> idk then
<Paradox> sorry
yonggu has quit [Quit: yonggu]
ephemerian has joined #ruby
bambanx has quit [Ping timeout: 245 seconds]
williamcotton_ has joined #ruby
pashamur has quit [Quit: Konversation terminated!]
ciopte7 has joined #ruby
pashamur has joined #ruby
williamcotton has quit [Ping timeout: 246 seconds]
williamcotton_ is now known as williamcotton
<csmrfx> it's weird how #perlists manage to be the most obnoxious cants on freenode?!
blacktulip has joined #ruby
GeekOnCoffee has quit [Ping timeout: 244 seconds]
<flexd> Paradox: I'll figure it out eventually.. at least I am able to run ruby, even if it's a bit complicated/a long command )
<flexd> :)
GeekOnCoffee has joined #ruby
Ammar_iD has joined #ruby
mneorr has quit [Quit: WeeChat 0.3.8]
mneorr has joined #ruby
<horseman> csmrfx: hey carl
vectorshelve has joined #ruby
<horseman> vectorshelve: vindaloo
<csmrfx> horseman: hey mr. banner. working undercover?
<horseman> csmrfx: Yeah.
<horseman> csmrfx: Be my fren
Ammar01 has quit [Ping timeout: 244 seconds]
<vectorshelve> horseman: whats that ?
fayimora_ has quit [Read error: Connection reset by peer]
<csmrfx> horseman: if u b my great tit
fayimora has joined #ruby
<horseman> csmrfx: i wanna be dat ass
fserb has quit [Quit: ttyl]
<csmrfx> mee-haha
<Paradox> man oh man
<Paradox> iOS6 seems like a total joke. EVERY feature they announced is currently in AOSP source
<Paradox> every
<Paradox> single
<Paradox> one
<horseman> Paradox: why are you being mean
<horseman> Paradox: r u a meanie
<Paradox> no
<Paradox> just tired and insomiac
<horseman> i thnk u're a meanie
<horseman> mean
<horseman> -ie
<Paradox> gooby pls
d3c has joined #ruby
<horseman> Paradox: what's your fave paradox
qwerxy has joined #ruby
samwin has quit [Ping timeout: 252 seconds]
robotmay has joined #ruby
Progster has quit [Ping timeout: 244 seconds]
L-----D has quit [Quit: Leaving]
theRoUS_ has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
tatsuya_o has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
pashamur has quit [Quit: Konversation terminated!]
dhruvasagar has joined #ruby
pashamur has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
zomgbie has joined #ruby
rweng has joined #ruby
jenrzzz-mac has joined #ruby
rweng has quit [Client Quit]
mailo has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
jenrzzz-mac has quit [Client Quit]
fixl has joined #ruby
bambanx_ has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
bambanx_ has joined #ruby
berserkr has joined #ruby
federic has quit [Ping timeout: 240 seconds]
vitor-br has quit [Remote host closed the connection]
federic has joined #ruby
mdw has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
rweng has joined #ruby
<rweng> hi
<horseman> rweng: sup homie
<horseman> rweng: do you use pry?
<rweng> yeah
<horseman> rweng: oh your'e the pry-rails guy
<horseman> rweng: nice work
<horseman> !
CheeToS has quit [Ping timeout: 248 seconds]
<rweng> thanks, it's just a wrapper. the pry folks are the real heros ^^
BlasterBlade has joined #ruby
<horseman> nah, they're a bunch of perverts
brianpWins has quit [Ping timeout: 256 seconds]
moosya has quit [Quit: moosya]
[Neurotic] has quit [Quit: Leaving]
bluenemo has joined #ruby
<Hanmac> rweng: i should warn you ... horseman is the boss of the, like he said, bunch of perverts XD
Guest20110 has joined #ruby
SiliconDon has quit [Quit: SiliconDon]
flype has joined #ruby
bluenemo has quit [Ping timeout: 240 seconds]
zxiest has joined #ruby
<zxiest> Hello :-)
<zxiest> Anybody here faced problems with rspec and threaded systems? -- my code works when I call it from the console but fails in rspec
<rweng> Hanmac: haha, man, he got me! -.-
<apeiros_> man, excel and ruby == sorry state of affairs…
Shrink has quit [Ping timeout: 260 seconds]
beneggett has joined #ruby
senny has quit [Remote host closed the connection]
proghat has joined #ruby
Wudino has joined #ruby
jdripper has joined #ruby
senny has joined #ruby
proghat__ has quit [Ping timeout: 252 seconds]
akem has quit [Ping timeout: 256 seconds]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
tonini has quit [Remote host closed the connection]
Wudino has quit [Client Quit]
chimkan_ has quit [Ping timeout: 240 seconds]
proghat has quit [Ping timeout: 244 seconds]
gongura has quit [Quit: This computer has gone to sleep]
gongura has joined #ruby
BeLucid_ has quit [Remote host closed the connection]
wubino has joined #ruby
nipra has quit [Ping timeout: 245 seconds]
BeLucid has joined #ruby
bluenemo has joined #ruby
chimkan_ has joined #ruby
mdw has joined #ruby
Mch1 is now known as Mchl
clyfe has joined #ruby
<apeiros_> clyfe: proxy questions ain't good style.
<clyfe> it's rather involved
<clyfe> that was the best way I could come up with
<clyfe> I have the 2 modules that are included in the 2 classes in the described way
<clyfe> I need to monkeypatch the modules as such as to override the m method so it's result to be "m + 1"
meisth0th_ has joined #ruby
bambanx_ has quit [Ping timeout: 245 seconds]
meisth0th_ has left #ruby [#ruby]
mdw has quit [Remote host closed the connection]
mrdtt has joined #ruby
mdw has joined #ruby
nfk has joined #ruby
naquad has quit [Read error: No route to host]
nipra has joined #ruby
virtuoussin13 has joined #ruby
virtuoussin13 has left #ruby [#ruby]
banseljaj is now known as imami|afk
virtuoussin13 has joined #ruby
<virtuoussin13> When you extend a module in a class definition, the methods defined in that module are added as instance methods to the class object, correct?
<horseman> virtuoussin13: no
<apeiros_> virtuoussin13: no
<apeiros_> include does that
<horseman> virtuoussin13: theyr'e added as class methods, as apeiros_ is about to say
<virtuoussin13> look carefully, I said to the "Class object"
<apeiros_> I trusted you to do that horseman :-)
<virtuoussin13> "as instances methods OF the class object" then if you prefer
<horseman> u shouldnt trust me to do anything im pretty drunk
<horseman> virtuoussin13: yeah u got the terminology wrong
<apeiros_> horseman: I think that's your default, no?
<horseman> even if u were careful
<horseman> Yeah
naquad has joined #ruby
<virtuoussin13> right well, anyway, my terminology aside
<csmrfx> let's call the AA dudes to mr. banners door
<apeiros_> class Foo; include Bar; end
<apeiros_> whoops, meep, strike that.
<apeiros_> class << Foo; include Bar; end
<apeiros_> class Foo; extend Bar; end
<apeiros_> these two do *almost* the same
<virtuoussin13> when you reference a class variable in a method that is in the extended module, I would expect it to modify the extendee's class variable. But instead it seems to reference the extended modules class variable
<apeiros_> you almost certainly never want to use class variables.
<apeiros_> they're a conceptual nightmare.
<apeiros_> (@@vars are class vars, just to avoid terminology issues)
<virtuoussin13> right, I know
<virtuoussin13> conceptual nightmares aside, is there a way to make it so that methods in an extended module reference the extender class's class variables
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
<apeiros_> reproducable code please
<horseman> virtuoussin13: afaik since class vairables are inherited they always belong to the highest class in the ancestor chain
jenglish has joined #ruby
<apeiros_> virtuoussin13: yeah, that won't work that way.
<apeiros_> you can use class_variable_get/_set
<virtuoussin13> :sadface:
<apeiros_> but again, conceptual nightmare. but if you love nightmares…
<virtuoussin13> I do actually
<virtuoussin13> is that the only way to get around this problem?
<apeiros_> virtuoussin13: why do you insist on a specific technology? that is, why do you insist on using @@vars to solve the problem?
<horseman> cos he's a tourist from noobcity
<apeiros_> why don't you show us the problem that you really try to solve instead of the technical obstacle…
<Hanmac> virtuoussin13: i think you are looking for "class instance variables"
titas9x has joined #ruby
* apeiros_ thinks so too…
titas9x has left #ruby [#ruby]
<virtuoussin13> ah, using the class << self; include Foo; end that you were mentioning apeiros?
<apeiros_> virtuoussin13: no
cheater__ has joined #ruby
<apeiros_> as said, those two are basically identical. the only difference I'm aware of is the invoked callbacks.
<apeiros_> what Hanmac said: http://pastie.org/4072698
<virtuoussin13> ...that works?
<Hanmac> yeah :P classes are instances too :P
<apeiros_> updated and slightly extended: http://pastie.org/4072698
<virtuoussin13> I'll be damned. Okay, thanks, i'll use that
<virtuoussin13> thanks
<virtuoussin13> appreciated. Later all.
<apeiros_> virtuoussin13: next time, ask a question related to your problem :-p
<virtuoussin13> apeiros_: noted
<apeiros_> (as opposed to related to technical obstacles while solving the problem)
<virtuoussin13> thanks again
<apeiros_> yw
virtuoussin13 has left #ruby [#ruby]
wpaulson has quit [Remote host closed the connection]
prtksxna has quit [Ping timeout: 248 seconds]
cheater_ has quit [Ping timeout: 260 seconds]
dcorbin has quit [Quit: This computer has gone to sleep]
pashamur_ has joined #ruby
gongura has quit [Quit: This computer has gone to sleep]
iori has quit [Read error: Connection reset by peer]
pashamur has quit [Ping timeout: 252 seconds]
iori has joined #ruby
grekko has joined #ruby
Foxandxss has joined #ruby
<shevy2> lib/ruby/1.9.1/syck/rubytypes.rb:150:in `can_be_saved?': invalid byte sequence in UTF-8 (ArgumentError)
<shevy2> Encoding, we meet again
<gogiel> .encode("UTF-8")
cantonic_ has joined #ruby
akem_ has joined #ruby
_iori_ has joined #ruby
flak has joined #ruby
iori has quit [Read error: Connection reset by peer]
flak is now known as Guest28645
Gekz has quit [Read error: Connection reset by peer]
<shevy2> k gogiel going to try... thought I'd switch back to psych first, nope doesn't seem to work either ... lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:224:in `count': invalid byte sequence in UTF-8 (ArgumentError). seems as if there is no alternative to UTF-8 now, I tried to use "# Encoding: ASCII-8BIT" but that apparently doesn't help much either
akem has quit [Ping timeout: 265 seconds]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rippa has quit [Ping timeout: 265 seconds]
cantonic has quit [Ping timeout: 265 seconds]
cantonic_ is now known as cantonic
<shevy2> hmm can I set which Encoding to use in IRB?
<shevy2> right now __ENCODING__ says UTF-8
<gogiel> i have no idea about IRB, but in file you just add header: # -*- encoding : utf-8 -*-
eurek has joined #ruby
<shevy2> hmm irb encoding, let's see ... init.rb: @CONF[:ENCODINGS] = IRB::DefaultEncodings.new(extern, intern)
mrdtt has quit [Ping timeout: 256 seconds]
<JonnieCache> ewww. did that really need a class?
titas9x has joined #ruby
<shevy2> whoa ... irb code is scary
<shevy2> they have a locale.rb file for localization, and inside there you see code like this:
<shevy2> @@legacy_encoding_alias_map = {}.freeze
<titas9x> action: is it symbol?
d3vic3 has joined #ruby
<JonnieCache> lol
<JonnieCache> "ruby stdlib is a ghetto" as they say
<shevy2> titas9x, in ruby 1.9.x I think so, it is used in a hash, right?
<shevy2> { action: test }
<shevy2> yeah JonnieCache
<shevy2> but especially, a ghetto that lacks documentation :<
<JonnieCache> ever looked inside webrick?
<titas9x> i know a symbol is like :action
<shevy2> titas9x, it is just a shortcut. example:
<titas9x> but i found an example says action: "new"
<shevy2> { action: "test" } # => {:action=>"test"}
<shevy2> traditionally you would have to write:
<shevy2> { :action => "test" } # => {:action=>"test"}
<shevy2> so you kinda save 2 characters :P
<titas9x> oh shevy thank you so much
<shevy2> JonnieCache, I think once... a few years ago
<shevy2> I was not happy with the documentation though
<shevy2> I mean, ruby documentation has improved... but still
<JonnieCache> i did all sorts of hackery on it for a project at uni. it was... interesting...
<shevy2> hehe
<JonnieCache> i think i bolted some sort of extra authentication onto it or something
pashamur_ has quit [Ping timeout: 252 seconds]
<shevy2> let me show you all something ... interesting from locale.rb in irb/
<shevy2> I've never seen so many yields before
<shevy2> it is as if they are in a pub drinking beer :)
<JonnieCache> i was doing everything in in raw ruby on top of webrick, without even rack or anything. this is before rack or sinatra or node or anything
<JonnieCache> my project would be SO EASY today
<shevy2> haha cool
<JonnieCache> aaargh that each_sublocale code is horrible
<shevy2> hehe
<shevy2> locale.rb also uses more than one instance of eval()
<shevy2> :)
<JonnieCache> string building is tricky though. i have definitely done stuff like that before
<JonnieCache> not in public facing code though haha
<shevy2> eval("self", TOPLEVEL_BINDING).extend(Module.new {eval(src, nil, path)})
tayy has joined #ruby
<JonnieCache> my eyes
<JonnieCache> !!!
<shevy2> hehe
<shevy2> oh damn
<shevy2> that line used two evals, I only saw the first one
schaerli has joined #ruby
<JonnieCache> that is the kind of line where you definitely should put a comment
zinjacoder has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
drizztbsd has joined #ruby
hemanth has joined #ruby
Guest28645 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<drizztbsd> hi, how can I require a gem WITHOUT checking the dependencies?
<shevy2> japanese hackers don't believe in comments
rippa has joined #ruby
<drizztbsd> or better, I have to include a gem WITHOUT installing a deps
<shevy2> drizztbsd tehre exists an option for gem
<shevy2> "gem install --ignore-dependencies pry"
<shevy2> should work on local .gem files fine too
<drizztbsd> that's not my question, I need to do a require 'gem'
<drizztbsd> but /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find eventmachine (>= 0) amongst [bigdecimal-1.1.0, github-markup-0.7.2, io-console-0.3, json-1.5.4, minitest-2.5.1, msgpack-0.4.6, rainbow-1.1.4, rake-0.9.2.2, rdoc-3.9.4, redcarpet-2.1.1, rexec-1.4.1, rubydns-0.4.0, rubydns-0.3.4] (Gem::LoadError)
fermion has joined #ruby
<shevy2> yep. that can never work.
<shevy2> you can rescue Gem::LoadError and continue though
mrdtt has joined #ruby
eurek has quit [Quit: Computer has gone to sleep.]
emmanuelux has joined #ruby
ananthakumaran1 has joined #ruby
liluo_ has joined #ruby
liluo has quit [Read error: Connection reset by peer]
dhruvasa1ar has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Ping timeout: 244 seconds]
fridim_ has joined #ruby
mohits has quit [Ping timeout: 240 seconds]
shevy2 is now known as shevy
eurek has joined #ruby
xastion has joined #ruby
eurek has quit [Client Quit]
xastion has quit [Client Quit]
Guedes_out is now known as Guedes
liluo_ has quit [Remote host closed the connection]
xastion has joined #ruby
tayy has quit [Remote host closed the connection]
davidcelis has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 244 seconds]
jbw_ has quit [Ping timeout: 260 seconds]
mdw has quit [Remote host closed the connection]
visof has joined #ruby
titas9x has left #ruby [#ruby]
SeanTAllen has joined #ruby
schaerli has quit [Remote host closed the connection]
davidcelis has joined #ruby
BlasterBlade has quit [Quit: Konversation terminated!]
roams has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
rizzylt has joined #ruby
iocor has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
frishi has joined #ruby
indian has quit [Ping timeout: 244 seconds]
SimSala has joined #ruby
visof has quit [Ping timeout: 252 seconds]
moshef has joined #ruby
nergal has joined #ruby
jbw_ has joined #ruby
<nergal> Hi, I'm using httparty self.class.get("<myurl>"), but I found out that when I have a url containing ":" it seems to encode it twise, such as ":" becomes %3A and then it encodes the "%" and it becomes "%253A". This makes a single ":" become %253A. Any ideas what's wrong here?
<shevy> or just install the missing gem :D
<nergal> httparty version is 0.7.8
drizztbsd has left #ruby ["Konversation terminated!"]
iamjarvo1 has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
samwin has joined #ruby
kaneda__ has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
mayankkohaley has quit [Ping timeout: 245 seconds]
mdw has joined #ruby
iocor has joined #ruby
<csmrfx> nergal: perhaps indeed only encode onc
rippa has joined #ruby
eph3meral has quit [Quit: Leaving]
vitoravelino`afk is now known as vitoravelino
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<nergal> csmrfx: but that must be httparty that encodes twise?
<csmrfx> nergal: I dont know?
cousine has joined #ruby
Kwpolska_ is now known as Kwpolska
flype has joined #ruby
sam113101 has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
franksort has quit [Quit:]
shtirlic has quit [Ping timeout: 256 seconds]
ciopte7 has quit [Quit: ciopte7]
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
sameerynho has joined #ruby
sameerynho has quit [Read error: Connection reset by peer]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
yeggeps has joined #ruby
gongura has joined #ruby
ZachBeta has joined #ruby
tk___ has joined #ruby
eurek has joined #ruby
zinjacoder has quit [Ping timeout: 256 seconds]
jackiechan0 has joined #ruby
samwin has quit [Read error: Connection reset by peer]
fridim_ has quit [Ping timeout: 264 seconds]
nanderoo has joined #ruby
Kunda has joined #ruby
stoffus has joined #ruby
cousine has quit [Remote host closed the connection]
eurek has quit [Quit: Computer has gone to sleep.]
Progster has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
fridim_ has joined #ruby
pygospa has joined #ruby
zinjacoder has joined #ruby
xastion has quit [Ping timeout: 256 seconds]
RudyValencia- is now known as RudyValencia
TheRealPygo has quit [Ping timeout: 252 seconds]
Shrink has quit [Ping timeout: 252 seconds]
pygospa has quit [Read error: Operation timed out]
fbernier has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
pygospa has joined #ruby
noyb has joined #ruby
jimeh has quit [Ping timeout: 252 seconds]
jackiechan0 has quit [Quit: Sto andando via]
fearoffish has joined #ruby
eurek has joined #ruby
Codif has joined #ruby
fixl has quit [Remote host closed the connection]
IHateHavingToReg has joined #ruby
fgwaegeawgfwa has left #ruby [#ruby]
Konboi has quit [Remote host closed the connection]
noganex has quit [Quit: Eagles may fly, but a weasel will never be sucked into a jet engine.]
ZachBeta has quit [Quit: Computer has gone to sleep.]
Shrink has joined #ruby
samwin has joined #ruby
geekbri has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
mailo has quit [Quit: Linkinus - http://linkinus.com]
Markvilla has joined #ruby
fbernier has quit [Remote host closed the connection]
Kn|t3 has joined #ruby
ZachBeta has joined #ruby
nergal has quit [Quit: leaving]
roolo has joined #ruby
fmcgeough has joined #ruby
berserkr has quit [Quit: Leaving.]
Raduwen has quit [Quit: Leaving...]
fbernier has joined #ruby
locriani has quit [Remote host closed the connection]
pawdro has joined #ruby
Codif has quit [Remote host closed the connection]
IHateHavingToReg has quit [Quit: Computer has gone to sleep]
jonathanwallace has quit [Remote host closed the connection]
eurek has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
shtirlic has joined #ruby
iocor has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
IHateHavingToReg has joined #ruby
IHateHavingToReg has quit [Client Quit]
jeff_sebring has joined #ruby
workmad3 has joined #ruby
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
locriani has joined #ruby
sam113101 has joined #ruby
krusty_ar has joined #ruby
<matled> in pry can I access objects from another scope easily? i.e. I'm in some scope and have a variable foo there, then I cd into some other scope and would like to use the object previously available through foo
Shahor has joined #ruby
allanm has joined #ruby
allanm is now known as amacgregor
liluo has joined #ruby
git-svn has joined #ruby
Shahor has quit [Read error: Connection reset by peer]
git-svn has quit [Client Quit]
`brendan has joined #ruby
fantazo has joined #ruby
IrishGringo has quit [Remote host closed the connection]
wangr has joined #ruby
flak has joined #ruby
jonathanwallace has joined #ruby
flak is now known as Guest32125
Kn|t3_ has joined #ruby
jonatha__ has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
fantazo_ has joined #ruby
Raduwen has joined #ruby
jimmy1980 has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
Kn|t3 has quit [Ping timeout: 244 seconds]
Kn|t3_ is now known as Kn|t3
mohits has quit [Read error: Connection reset by peer]
zz_chrismcg is now known as chrismcg
horseman has quit [Remote host closed the connection]
Guest32125 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
chimkan___ has joined #ruby
aeufemio has quit [Remote host closed the connection]
moshef has quit [Quit: moshef]
Kunda has quit [Ping timeout: 245 seconds]
chimkan_ has quit [Ping timeout: 246 seconds]
jimeh has joined #ruby
irrationalfab has joined #ruby
ph^_ has joined #ruby
ph^__ has joined #ruby
<arturaz> matled, assign it to global var?
webusnix has quit [Ping timeout: 244 seconds]
ph^ has quit [Ping timeout: 245 seconds]
ph^_ has quit [Ping timeout: 252 seconds]
chson has quit [Remote host closed the connection]
Bartzy has quit [Ping timeout: 248 seconds]
hynkle has joined #ruby
bglusman has joined #ruby
chimkan___ has quit [Read error: Connection reset by peer]
sandelius has joined #ruby
pawdro has quit [Quit: Konversation terminated!]
iamjarvo1 has quit [Ping timeout: 244 seconds]
jonathanwallace has joined #ruby
lambdacurry has joined #ruby
clyfe has left #ruby [#ruby]
hunglin has joined #ruby
Shrink has quit [Ping timeout: 256 seconds]
hunglin has quit [Client Quit]
gongura has quit [Quit: This computer has gone to sleep]
jonatha__ has quit [Ping timeout: 244 seconds]
jrist-afk is now known as jrist
jeffreybaird has joined #ruby
carloslopes has joined #ruby
iamjarvo1 has joined #ruby
ABK has quit [Remote host closed the connection]
fayimora has joined #ruby
_iori_ has quit [Remote host closed the connection]
grekko has quit [Quit: Linkinus - http://linkinus.com]
jcromartie has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
dv310p3r has joined #ruby
joshman_ has joined #ruby
zxiest has quit []
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
d3c has quit [Quit: Sleep]
Shrink has joined #ruby
schaerli has joined #ruby
mayankkohaley has joined #ruby
IrishGringo has joined #ruby
pu22l3r has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> what is the equivalent of:
<shevy> while gets
<shevy> do_something($LAST_READ_LINE)
<shevy> in a loop?
zinjacoder has quit [Remote host closed the connection]
<arturaz> line = gets
Bartzy has joined #ruby
Bosma has joined #ruby
zinjacoder has joined #ruby
webusnix has joined #ruby
jenrzzz-mac has joined #ruby
Shrink has quit [Ping timeout: 256 seconds]
schaerli has quit [Remote host closed the connection]
hoelzro|away is now known as hoelzro
gongura has joined #ruby
krz has quit [Quit: krz]
devdazed has quit [Quit: Bye]
lorandi has joined #ruby
nipra has quit [Ping timeout: 265 seconds]
gongura has quit [Client Quit]
devdazed has joined #ruby
a_a_g has quit [Quit: Leaving.]
<apeiros_> shevy: or $stdin.each_line do |line| …
tcopp has joined #ruby
pwelch__ has joined #ruby
pwelch__ has left #ruby [#ruby]
<vaicine> Is there a method for returning all variables?
<vaicine> (for debugging)
cjs226 has quit []
cpruitt has joined #ruby
td123 has joined #ruby
uris has joined #ruby
Shrink has joined #ruby
negaduck has quit [Read error: Connection reset by peer]
negaduck has joined #ruby
ph^__ has quit [Remote host closed the connection]
indian has joined #ruby
ph^ has joined #ruby
alexander-- has joined #ruby
alexander-- has quit [Client Quit]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
snearch has joined #ruby
ph^ has quit [Ping timeout: 245 seconds]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
axl_ has joined #ruby
alexander-- has joined #ruby
alexander-- has quit [Client Quit]
Synthead has quit [Ping timeout: 244 seconds]
macmartine has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
chson has joined #ruby
<arturaz> vaicine, local_variables
Poapfel has quit [Quit: Need a new quit message? Why not Zoidberg?"]
Poapfel has joined #ruby
mikewintermute has joined #ruby
xaq has joined #ruby
internet_user has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
bbttxu has joined #ruby
bbttxu has quit [Read error: Connection reset by peer]
bruder has joined #ruby
bbttxu has joined #ruby
hashpuppy has joined #ruby
hashpuppy has quit [Changing host]
hashpuppy has joined #ruby
jimmy1980 has quit [Ping timeout: 252 seconds]
<hashpuppy> is there something shorter, equivalent to [{"name"=>"one"}, {"name" => "two"}].map{|n| n["name"]}
<hashpuppy> i just want to pluck the names
chimkan has joined #ruby
albemuth has joined #ruby
hunglin has joined #ruby
<workmad3> hashpuppy: seems pretty short and sweet to me
<hashpuppy> yeah, but rails has something called .pluck on ActiveRecord. i was just wondering if there was something similar on Array. like, [...].pluck("name")
<hashpuppy> it's not terrible, right
<workmad3> no
<hashpuppy> i mean: right, it's not terrible
<workmad3> pluck is specifically for SQL queries to do some under-the-hood optimisations :)
<GeekOnCoffee> there is something shorter, hang on
<GeekOnCoffee> hmm maybe not in that particular case
AxonetBE has joined #ruby
<AxonetBE> if there is a function that split a string on a special character when the lenght of the string is bigger then X?
<workmad3> GeekOnCoffee: you were thinking of the .map(&:method) syntax, right? :)
<GeekOnCoffee> yup
<vaicine> Thanks arturaz
<workmad3> GeekOnCoffee: if he had structs rather than hashes, he could :)
albemuth has quit [Client Quit]
strnx has quit [Excess Flood]
pk1001100011 has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
strnx has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
moshef has joined #ruby
Progster has quit [Ping timeout: 244 seconds]
cjs226 has joined #ruby
td123 has quit [Read error: Connection reset by peer]
korishev has joined #ruby
babonk has joined #ruby
babonk has joined #ruby
babonk has quit [Changing host]
bricker88 has joined #ruby
babonk has quit [Client Quit]
itnomad has joined #ruby
sandelius has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Mon_Ouie> AxonetBE: Just check if the string is longer than N and split otherwise?
akem_ has quit [Ping timeout: 246 seconds]
<offby1> Mon_Ouie: nah, that's just what they'll be expecting!
stoffus has quit [Ping timeout: 260 seconds]
oooPaul has joined #ruby
cousine has joined #ruby
lxsameer has quit [Quit: Leaving]
pk1001100011 has joined #ruby
rasbonics has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
TheFuzzb_ has quit [Quit: Leaving...]
rsenk330 has joined #ruby
Bartzy has quit [Ping timeout: 252 seconds]
rsenk330 is now known as Guest28153
TheFuzzball has joined #ruby
cousine has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
TheHunter_1039 has joined #ruby
chimkan___ has joined #ruby
liluo has quit [Remote host closed the connection]
sspiff has quit [Remote host closed the connection]
hasrb has joined #ruby
chimkan has quit [Ping timeout: 246 seconds]
chimkan___ is now known as chimkan
billiamii has joined #ruby
kvirani has joined #ruby
andrewh has joined #ruby
flagg0204 has joined #ruby
indian has quit [Ping timeout: 256 seconds]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
pk1001100011 has quit [Remote host closed the connection]
pk1001100011 has joined #ruby
Targen has quit [Ping timeout: 248 seconds]
CheeToS has joined #ruby
wvms has quit [Quit: wvms]
albemuth has joined #ruby
bricker88 has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
alexander-- has joined #ruby
alexander-- has quit [Client Quit]
milk has joined #ruby
Bartzy has joined #ruby
A124 has joined #ruby
A124 has left #ruby [#ruby]
adeponte has joined #ruby
cousine has joined #ruby
ananthakumaran has joined #ruby
dhruvasa1ar has quit [Ping timeout: 248 seconds]
Bartzy has quit [Ping timeout: 248 seconds]
_adeponte has joined #ruby
vlad_starkov has joined #ruby
adeponte has quit [Ping timeout: 246 seconds]
pk1001100011 has quit [Remote host closed the connection]
negaduck has quit [Remote host closed the connection]
negaduck has joined #ruby
fearoffish has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
schovi has quit [Remote host closed the connection]
crond_ has joined #ruby
bigoldrock has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
crond has quit [Read error: Connection reset by peer]
kenperkins has joined #ruby
lambdacurry has quit [Quit: Leaving]
wubino has quit [Quit: Leaving]
niku4i has joined #ruby
jprovazn is now known as jprovazn_away
ckrailo has joined #ruby
looopy has joined #ruby
the_jeebster has joined #ruby
d3c has joined #ruby
the_jeebster1 has joined #ruby
Morkel has joined #ruby
Guest28153 has quit [Remote host closed the connection]
thone has joined #ruby
lkba has joined #ruby
PaciFisT has joined #ruby
tk___ has quit [Quit: ばいばい]
the_jeebster has quit [Ping timeout: 245 seconds]
graspee has joined #ruby
thone_ has quit [Ping timeout: 246 seconds]
the_jeebster1 has quit [Client Quit]
AxonetBE has quit [Quit: Leaving.]
Kunda has joined #ruby
fayimora_ has joined #ruby
freeayu has quit [Quit: 离开]
vlad_starkov has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 245 seconds]
fayimora_ is now known as fayimora
erichmenge has joined #ruby
PaciFisT1 has joined #ruby
_adeponte has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
niku4i has quit [Remote host closed the connection]
etehtsea has joined #ruby
uris has quit [Quit: leaving]
olrrai has joined #ruby
PaciFisT has quit [Ping timeout: 244 seconds]
fserb has joined #ruby
proghat has joined #ruby
crond_ is now known as crond
crond has quit [Changing host]
crond has joined #ruby
maesbn has quit [Remote host closed the connection]
moura has joined #ruby
<moura> how can i refer for instance "@username" and auto suggest other available usernames from facebook directly on textarea. thanks
davidcelis has quit [Quit: K-Lined]
DrShoggoth has joined #ruby
<Sigma00> I... what?
patricksroberts has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
<Muz> Haha
moshee has quit [Ping timeout: 265 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
sinatrabot has joined #ruby
maletor has joined #ruby
lambdacurry has joined #ruby
mohits has quit [Read error: Connection reset by peer]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
sinatrabot has quit [Remote host closed the connection]
sinatrabot has joined #ruby
sinatrabot has quit [Remote host closed the connection]
Targen has joined #ruby
fermion has quit [Ping timeout: 245 seconds]
francisfish has quit [Read error: Connection reset by peer]
sinatrabot has joined #ruby
<lambdacurry> hi everybody
<sinatrabot> hi everybody
francisfish has joined #ruby
<Sigma00> hi everybody (amIdoingitright?)
<sinatrabot> hi everybody (amIdoingitright?)
colinwd has joined #ruby
* Sigma00 shoots sinatrabot
* sinatrabot shoots sinatrabot
<Sigma00> ahahaha
<sinatrabot> ahahaha
<Sigma00> ok, it works, turn it off <_<
<sinatrabot> ok, it works, turn it off <_<
jimeh has quit [Ping timeout: 252 seconds]
sinatrabot has quit [Remote host closed the connection]
jeff_sebring has quit [Remote host closed the connection]
ipoval has joined #ruby
hashpuppy has quit [Quit: hashpuppy]
colinwd has quit [Remote host closed the connection]
sinatrabot has joined #ruby
gongura has joined #ruby
ipoval has quit [Client Quit]
sinatrabot has quit [Remote host closed the connection]
sinatrabot has joined #ruby
sinatrabot has quit [Remote host closed the connection]
adeponte has joined #ruby
fayimora_ has joined #ruby
sonne has joined #ruby
<sonne> greetings!
sinatrabot has joined #ruby
<sonne> what would you folks use if you wanted to read messages from PGQ or ActiveMQ, both without involving rails?
<sinatrabot> what would you folks use if you wanted to read messages from PGQ or ActiveMQ, both without involving rails?
<Sigma00> sinatrabot: I'm going to stab you
<sinatrabot> sinatrabot: I'm going to stab you
dockm has quit [Read error: Connection reset by peer]
<oz> double rainbow!
<sinatrabot> double rainbow!
<Muz> This is literally the worst thing ever.
<sinatrabot> This is literally the worst thing ever.
francisfish has quit [Remote host closed the connection]
<vaicine> echo
<sinatrabot> echo
<Sigma00> !kick sinatrabot
<sinatrabot> !kick sinatrabot
<Sigma00> D:
<sinatrabot> D:
sinatrabot has quit [Remote host closed the connection]
<sonne> o/
<Sigma00> he wants to be kicked too, you se!?
fayimora has quit [Ping timeout: 250 seconds]
fayimora_ is now known as fayimora
<Sigma00> er, see*
berkes has quit [Ping timeout: 265 seconds]
<sonne> so... i'll try again: what would you folks use if you wanted to read messages from PGQ or ActiveMQ, both without involving rails?
<Sigma00> oh, he left? maybe I should turn on join/part notifications
<Muz> lambdacurry: can you not find a different channel to play with your bot in?
gilead has quit [Quit: Leaving]
eurek has joined #ruby
<Sigma00> sonne: ActiveRecord is a gem on its own
rweng has quit [Quit: rweng]
<sonne> Sigma00, it is indeed, but so far every gem i found to interact with pgq would require me to use rails soon or late
fantazo_ has quit [Remote host closed the connection]
<sonne> (which is the one you get from "gem install pgq")
td123 has joined #ruby
jenglish has quit [Remote host closed the connection]
zomgbie has quit [Ping timeout: 244 seconds]
jeff_sebring has joined #ruby
znake has joined #ruby
berserkr has joined #ruby
chetan- has joined #ruby
Targen has quit [Remote host closed the connection]
jenrzzz-mac has joined #ruby
xttyragel has joined #ruby
savage- has joined #ruby
znake has quit [Client Quit]
carloslopes has quit [Ping timeout: 246 seconds]
<chetan-> I'm trying to migrate a project from 1.8.x to 1.9 and rake test keeps crapping out w/o any error. no bug/segfault message or anything. exit code = 0
<chetan-> any ideas for further debugging this?
adeponte has quit [Remote host closed the connection]
mohits has quit [Read error: Connection reset by peer]
mohits has joined #ruby
timonv has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
bier has quit [Ping timeout: 248 seconds]
MasterIdler has joined #ruby
<magoo> is there an alternative to carrier-pigeon for irc communication?
Guest20110 has quit [Ping timeout: 265 seconds]
<Sigma00> sonne: what about DataMapper?
milk has quit [Quit: Page closed]
lambdacurry has quit [Quit: Leaving]
xttyragel has quit [Remote host closed the connection]
ph^ has joined #ruby
proghat has quit [Ping timeout: 245 seconds]
<workmad3> sonne: RabbitMQ can talk to ActiveMQ I believe
RoboTamer has joined #ruby
<sonne> Sigma00, AR is fine as an ORM, that's not the problem... the problem is how to use PGQ with it
kvirani has quit [Remote host closed the connection]
<sonne> workmad3, aye, i noticed that i can just use the stomp gem to communicate with activemq
<sonne> which works good as plan b, but integrating with pgq would be even better
eywu has joined #ruby
RoboTamer has quit [Remote host closed the connection]
<workmad3> sonne: hehe :) I love that pgq gem... 'tested on rails 3 only tested' and yet it has a dependency on AR and AS versions 2.3.2...
Bartzy has joined #ruby
mikepack has joined #ruby
<sonne> workmad3, silly isn't it?
<Sigma00> sonne: what about this? https://github.com/evtuhovich/pgq
<workmad3> sonne: and on top of that, the API (which I assume is the core for interacting with postgres) only actually calls stuff on the connection
davidcelis has joined #ruby
<sonne> Sigma00, that's where the pgq gem is forked from i believe...
Targen has joined #ruby
<sonne> workmad3, are you saying that all it does is run a couple custom queries, and i'm better off just using 'pg' and doing it by hand?
senny has quit [Remote host closed the connection]
<workmad3> sonne: I suspect that what you could do is fork it and rewrite the API class to do that
mapper has joined #ruby
fermion has joined #ruby
<sonne> workmad3, heh... i'm not that good actually :) i just noticed that in order to connect to a pgq i'm required to create a full blown rails application, which sounds like an overkill
<mapper> hi
<workmad3> the API class looks pretty simple ;)
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
the_jeebster has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
noganex has joined #ruby
mneorr1 has joined #ruby
eurek has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fmcgeough has quit [Quit: fmcgeough]
Juul has joined #ruby
bier has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
TheFuzzball has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
jenrzzz-mac has joined #ruby
moura has quit [Quit: Computer has gone to sleep.]
fmcgeough has joined #ruby
benwoody has joined #ruby
CheeToS has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
chimkan has quit [Quit: chimkan]
chrismcg is now known as zz_chrismcg
codezombie has joined #ruby
khakimov has joined #ruby
kenyabob has joined #ruby
moshef has quit [Quit: moshef]
pygospa has joined #ruby
Boohbah has quit [Ping timeout: 276 seconds]
mikewintermute has quit [Quit: mikewintermute]
snearch has quit [Quit: Verlassend]
Morkel has quit [Quit: Morkel]
Boohbah has joined #ruby
TheRealPygo has quit [Ping timeout: 248 seconds]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
vlad_starkov has joined #ruby
apok has joined #ruby
jimeh has joined #ruby
ephemerian has quit [Quit: Leaving.]
DavidTiger is now known as DavidTiger|afk
jgarvey has joined #ruby
Bartzy has quit [Read error: Operation timed out]
apok has quit [Remote host closed the connection]
apok has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
webusnix has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
adeponte has joined #ruby
jgarvey has quit [Ping timeout: 246 seconds]
jeff_sebring has joined #ruby
mohits has quit [Read error: Connection reset by peer]
catphish has joined #ruby
williamcotton has quit [Ping timeout: 245 seconds]
mohits has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
<catphish> what is the simplest library / method to covert a hash of simple objects (strings, ints, nil) to xml?
Targen has quit [Ping timeout: 246 seconds]
xiaotian has joined #ruby
williamcotton has joined #ruby
davidcelis has quit [Ping timeout: 265 seconds]
cousine has quit [Remote host closed the connection]
jeff_sebring has quit [Remote host closed the connection]
<catphish> i want a lazy equivalent to Hash#to_json
<heftig> looks nice
devdazed has joined #ruby
guawoo has joined #ruby
apok_ has joined #ruby
Araxia_ has joined #ruby
<catphish> yes, that might do it, thanks
davidcelis has joined #ruby
makarius has quit [Ping timeout: 244 seconds]
<guawoo> ·ç¸ñ
carloslopes has joined #ruby
guawoo has quit [Client Quit]
bluenemo has quit [Remote host closed the connection]
apok has quit [Ping timeout: 248 seconds]
apok_ is now known as apok
Vainoharhainen has quit [Quit: Leaving...]
berkes has joined #ruby
Bartzy has joined #ruby
apok has quit [Remote host closed the connection]
jrist is now known as jrist-retro
apok has joined #ruby
jeffreybaird has joined #ruby
fridim_ has joined #ruby
sonne has quit [Quit: Leaving]
brianpWins has joined #ruby
robotmay has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
c0rn_ has joined #ruby
Bartzy|work has joined #ruby
mdw has quit [Remote host closed the connection]
mockra has joined #ruby
vlad_starkov has joined #ruby
kenichi has joined #ruby
mohits has quit [Read error: Connection reset by peer]
kenichi has quit [Remote host closed the connection]
francisfish has joined #ruby
jenrzzz-mac has joined #ruby
Bartzy has quit [Ping timeout: 245 seconds]
ringotwo has joined #ruby
cbuxton has quit [Ping timeout: 245 seconds]
ringotwo has quit [Remote host closed the connection]
ringotwo has joined #ruby
cbuxton has joined #ruby
ringotwo has quit [Remote host closed the connection]
bricker88 has joined #ruby
kenichi has joined #ruby
zomgbie has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
mockra has quit [Remote host closed the connection]
<bricker88> anybody wanna help me with a regular expression :/ https://gist.github.com/2918772 The example I gave at the bottom did not do it form e
<bricker88> for me *
mockra has joined #ruby
mengu has joined #ruby
<Sigma00> don't use regex for xml :|
<_br_> exactly
<bricker88> Sigma00: I am doing this in TextMate just to clean it up for myself
<_br_> bricker88: Take a look at nokogiri
adamkittelson has joined #ruby
<bricker88> No, I am just trying to remove the comments from a giant wordpress XML dump I was given because I don't care about them and it's doubling the time it takes Nokogiri to parse the file
remmy444 has quit [Ping timeout: 256 seconds]
<Sigma00> bricker88: use dotall
<Sigma00> it won't work without the dotall option
<Sigma00> (makes . match newlines)
<bricker88> thank you - that must be what I am missing
<Sigma00> also, #regex exists, just fyi
zomgbie has quit [Ping timeout: 240 seconds]
ringotwo has joined #ruby
davidpk has joined #ruby
<bricker88> Thanks
Ammar_iD has quit [Quit: Leaving]
brianpWins has quit [Quit: brianpWins]
azm has joined #ruby
mockra has quit [Remote host closed the connection]
hoelzro is now known as hoelzro|away
pk1001100011 has joined #ruby
nateberkopec has joined #ruby
mohits has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
Targen has joined #ruby
<_br_> Does anyone have segfault issues with 1.9.2 or 1.9.3 and ffi-rzmq ? Weird stuff, runs without problems on my machine, but trying to deploy it segfaults at EC2
hunglin has left #ruby [#ruby]
hemanth has quit [Read error: Connection reset by peer]
kenyabob has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
hemanth has joined #ruby
schovi has joined #ruby
mrsolo has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
robotmay has quit [Remote host closed the connection]
crond has quit [Ping timeout: 244 seconds]
mohits has quit [Ping timeout: 248 seconds]
jdripper has left #ruby [#ruby]
<shevy> no segfaults so far
brianpWins has joined #ruby
<shevy> but still lots of circular requires in one of my projects :P
<_br_> :)
albemuth has quit [Quit: Computer has gone to sleep.]
Aristata has joined #ruby
<_br_> How interesting, the ffi-rzmq segfaults on EC2, but the zmq gem doesn't. Ahhhh too late to trace this nonsense.
<Aristata> Can somone remind me how to make 100.0 print out to 100.00? I thought it was sprint but I am retarded and today is shitty.
mikepack has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
<otters> Aristata: sprintf
<otters> sprintf "%0.2f", 100
<Aristata> ahh that's right, thank you
thecreators has quit [Quit: thecreators]
fridim_ has quit [Ping timeout: 264 seconds]
<billiamii> Or just % right?
<_br_> yep
<otters> oh yeah
<billiamii> Is % identical to sprintf?
<otters> yeah
<otters> except it takes an array, not varargs
<_br_> Aristata: Don't if you have a bad day, you are just right here in #ruby. The channel that rocks!
<billiamii> ahh
<_br_> Wondering if that operator is "good practice"
<otters> yeah it is
<bricker88> otters: say "varargs" 5 times fast :p
<Aristata> :)
<Hanmac> its only normal ... rubys are inside rocks P
<otters> I've been working in haskell all day and ruby is its polar opposite
<otters> so I'm a little slow
davidcelis has quit [Quit: K-Lined]
vlad_starkov has joined #ruby
eywu has quit [Quit: Leaving.]
eywu has joined #ruby
<shevy> what is a monad
<_br_> ^^
<otters> it's what you get when you break a dyad in half
irrationalfab has quit [Remote host closed the connection]
<shevy> hmmm
<shevy> be nice to dryads man
<otters> of course
<otters> it's only a concept
stephenjudkins has joined #ruby
<shevy> I liked them in warcraft 3
qwester has joined #ruby
hoelzro|away is now known as hoelzro
qwerxy has quit [Ping timeout: 244 seconds]
thecreators has joined #ruby
trivol has joined #ruby
trivol has quit [Client Quit]
albemuth has joined #ruby
henn1nk has joined #ruby
<henn1nk> https://gist.github.com/2918991 line 12. is there a way to do this?
minijupe has quit [Quit: minijupe]
ciopte7 has joined #ruby
crankycoder has quit [Remote host closed the connection]
jrist-retro is now known as jrist-mtg
klaas has joined #ruby
<robacarp_> henn1nk: you appear to be doing it.
Bartzy|work has quit [Ping timeout: 244 seconds]
irrationalfab has joined #ruby
<shevy> weird that you use two [ henn1nk
hemanth has quit [Read error: Connection reset by peer]
qwester has quit [Quit: Linkinus - http://linkinus.com]
berkes has quit [Ping timeout: 248 seconds]
hemanth has joined #ruby
<henn1nk> shevy: prawn needs 3 dimensional arrays
<henn1nk> robacarp_: that throws an exception: show.pdf.prawn:12: syntax error, unexpected modifier_if, expecting ']'
<henn1nk> @order.basic_article.installation if @order.installation
<robacarp_> henn1nk: oh.
<shevy> then obviously it is not valid ruby syntax
ringotwo has quit [Ping timeout: 240 seconds]
<robacarp_> henn1nk: https://gist.github.com/2919026
gongura has quit [Ping timeout: 244 seconds]
<robacarp_> untested, of course, but thats what I would do
cheater__ has quit [Read error: Operation timed out]
cheater has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
imami|afk is now known as banseljaj
koskoz has joined #ruby
Occult has joined #ruby
the_jeebster has quit [Quit: Leaving.]
jrist-mtg is now known as jrist
<henn1nk> robacarp_: i will try thanks
<henn1nk> robacarp_: works thanks
the_jeebster has joined #ruby
<henn1nk> robacarp_: but how in the options mapping?
bluenemo has quit [Read error: Operation timed out]
Bartzy|work has joined #ruby
crankycoder has joined #ruby
punkrawkR has joined #ruby
hadees has quit [Quit: hadees]
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
mockra has joined #ruby
rippa has quit [Ping timeout: 244 seconds]
makarius has joined #ruby
Progster has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
rippa has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
jrist is now known as jrist-lunch
proghat has joined #ruby
voodoofish430 has joined #ruby
avandenhoven has joined #ruby
noyb has quit [Quit: Leaving]
khakimov has quit [Quit: Computer has gone to sleep.]
Enekoos has joined #ruby
looopy has quit [Remote host closed the connection]
<rsimoes> Is there somewhere I can look up reverse dependencies of a ruby gem?
<Sigma00> haha no
<Sigma00> that'd be quite a feat
zommi has quit [Remote host closed the connection]
<rsimoes> cpan has it :\
<Mchl> universe has it too
<Mchl> you just need to query all of it
<rsimoes> !
Kn|t3 has quit [Quit: Kn|t3]
hunglin has joined #ruby
<ekaleido> whats the easiest way to remove "token=" from a string? "token=blah".gsub(/[token=]/, '*') ?
stockholm has quit [Ping timeout: 252 seconds]
<ekaleido> or is there something easier that im too dumb to see
daniel_hinojosa has joined #ruby
<bricker88> answer this riddle: `class` is to `klass` as `module` is to `?`
<shevy> Module
<bricker88> bzzzzz
<Sigma00> todule?
<bricker88> bzzz
<bricker88> hah
<bricker88> I don't know really
<bricker88> :p
<shevy> noodle!
<bricker88> ding ding!
<deryl> i *am* corrct right? youo can *not* reassign what class another class inherits from A) for existing instances and B) unless you edit the main file and reload the classes. I mean its not possible to reassign a class in memory right?
niklasb has joined #ruby
<deryl> can't class User < ActiveRecord::Base and then later class User < SomeOtherClass
ringotwo has joined #ruby
<shevy> deryl hmm... not completely sure... perhaps with a super clever magic trick... but with specific code, I would not know. so I am going to say, it is not possible!
<tommylommykins> ekaleido: I don't think there's anything more concise than that
<deryl> yeah i thought that if it was possible that would require some hellified convoluted stuff to make sure that existing instances were still stable.
<deryl> i can only think of nightmare situations if that were allowed.
Stormbytes has joined #ruby
<deryl> shevy: thanks i just wanted to make sure i hadn't steered someone wrong
strnx has quit [Excess Flood]
<Mon_Ouie> You can do Foo = Class.new(ANewSuperClass)
ghanima has joined #ruby
Bartzy|work has quit [Ping timeout: 248 seconds]
Juul has quit [Ping timeout: 244 seconds]
rsimoes has left #ruby [#ruby]
strnx has joined #ruby
<deryl> Mon_Ouie: what does that do to an existing instance of that class that was made before the class's Super was changed?
<Mon_Ouie> Old instances don't care about what is stored in the Foo constant, only what their reference to their class is
<ekaleido> so then my next question is how can i take the body of an http post and set it to a variable? the net:http docs arent making sense to me
proghat has quit [Ping timeout: 246 seconds]
<ekaleido> but im admittedly dense with this
carlyle has joined #ruby
<deryl> so if Bar = Foo.new ; Foo = Class.new(NewClass> would Bar's class change too?
<deryl> s/>/)/
<carloslopes> deryl: no
<deryl> is this a common usage pattern?
<Mon_Ouie> No
<deryl> ok
<deryl> thanks for the info
flype has joined #ruby
qwerxy has joined #ruby
<deryl> one last thing, can you name a real world instance where this behaviour would be desirable? (and not just a confused and incorrect implementation of an idea)
<deryl> not necessary, this part is for me not the person i'm talking with
chienpo has joined #ruby
<deryl> i personally cant think of one only becaue i'm approaching it that you want to know the implementation of the model (class) at all times and for it to stay uniform throughout app execution.
hasrb has quit [Remote host closed the connection]
cousine has joined #ruby
<Mon_Ouie> All I can think of, is that it would be pretty weird if objects kept the constant name instead of an actual reference to the class
<tommylommykins> ekaleido: if you only want the part after the equals, you could do str[/(?<=token8).*$/]
<Mon_Ouie> What would happen if the class wasn't stored in a constant in the first place?
<tommylommykins> token=
* tommylommykins <3 indexing strings with reguar expressions
<tommylommykins> best feature of Ruby ever :D
pu22l3r has quit [Ping timeout: 245 seconds]
<deryl> Mon_Ouie: err? I'm not thinking constants here. just the class (klass isn't it?()
cbuxton has quit [Quit: Leaving.]
<deryl> Mon_Ouie: think I'm confused because I'm not sure what you mean by the constant.
<shevy> hmm
pu22l3r has joined #ruby
<shevy> class Foo <--- Foo is a constant
<deryl> ohhh
<deryl> duh! :)
<deryl> sorry, totally missed that fact. was sitting thinking what the hell does he mean?
<shevy> my idea was simple... change .ancestors, like insert or rather inject a new class (constant) into that chain... but apparently this does not work at all :(
<shevy> there was however evil.rb once
<shevy> it allowed you to unfreeze objects etc... lots of crazy things
dekroning has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
cbuxton has joined #ruby
<shevy> http://code.google.com/p/evil-ruby/ seems someone tried to keep it updated, but not sure
<deryl> thats cool. i don't want to advocate something that is just pure GUH or shouldn't be done. i've never tried to do what was being asked but was pretty sure that it would cause issues if it was done in the first place. figured i'd check
<shevy> oh flgr, that is the original author too actually :)
<deryl> i'm cool with being wrong as long as i learn why :) glad i wasn't though
kirun has joined #ruby
cbuxton has quit [Client Quit]
<shevy> deryl, that is a funny article about evil.rb http://www.oreillynet.com/ruby/blog/2007/04/ruby_code_that_will_swallow_yo.html
<shevy> but 5 years old ;<
<deryl> well was partially wrong insofaar as that you *can* do it. wasn't wrong that you probably don't want to do that in the first place hehe
<shevy> dog = Dog.new
<shevy> mew.force_bind(dog).call # => 'meow'
<deryl> shevy: oh snap hahah yeah thats evile :)
Kn|t3 has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
<deryl> thanks for that url
<shevy> hehe
<shevy> I liked the idea back then
<shevy> but somehow, I did not really find a real use case :\
rippa has joined #ruby
headius has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
b3nt_pin has joined #ruby
SegFaultAX|work2 has joined #ruby
Yarou_ has quit [Quit: Leaving]
jrist-lunch is now known as jrist
alexim has joined #ruby
fermion has quit [Quit: P]
Yarou has joined #ruby
alexander-- has joined #ruby
alexander-- has quit [Client Quit]
Boohbah has quit [Ping timeout: 276 seconds]
mrdtt has quit [Quit: Leaving]
davidpk has quit [Quit: Computer has gone to sleep.]
Boohbah has joined #ruby
<bricker88> has anybody successfully used symbol hound?
mdw has joined #ruby
Juul has joined #ruby
alexmin has joined #ruby
<shevy> :hound ?
MrGando has joined #ruby
shadoi has joined #ruby
rizzylt has quit [Ping timeout: 265 seconds]
fridim_ has joined #ruby
azm has quit [Ping timeout: 240 seconds]
icooba has quit [Quit: icooba]
alexmin has quit [Quit: Leaving]
catphish has quit [Quit: Leaving]
d3c has quit [Quit: Quit]
koskoz has quit [Ping timeout: 265 seconds]
DarthGandalf has quit [Ping timeout: 272 seconds]
ChampS666 has joined #ruby
A124 has joined #ruby
A124 has left #ruby [#ruby]
<Mon_Ouie> ttp://symbolhound.com/?q=ruby+||%3D that's actually pretty useful
sei has quit [Quit: It's too late. You've awakened the gazebo. It catches and eats you.]
horseman has joined #ruby
kvirani has joined #ruby
flype has quit [Quit: Computer has gone to sleep.]
pashamur_ has joined #ruby
ilyam has joined #ruby
flype has joined #ruby
<Sigma00> interesting protocol you have there :P
kvirani has quit [Remote host closed the connection]
tayy has joined #ruby
Kunda has quit [Read error: Connection reset by peer]
<shadoi> The Ta-Ta Protocol.
mapper has quit [Ping timeout: 245 seconds]
Kunda has joined #ruby
kvirani has joined #ruby
crankycoder has quit [Remote host closed the connection]
<null-> ruby is not web scale
stephenjudkins has quit [Quit: stephenjudkins]
alexander-- has joined #ruby
alexander-- has quit [Client Quit]
akem_ has joined #ruby
mdw has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<Boohbah> null-: tell that to twitter, scribd, penny arcade, pitchfork, github, hulu, urbandictionary, and yellowpages.com
Bosma has quit [Ping timeout: 248 seconds]
fmcgeough has quit [Quit: fmcgeough]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
lwhalen has joined #ruby
tilde` has joined #ruby
<lwhalen> hey all, is there a way to make a Hash.each loop output the keys in the same order each time?
Synthead has joined #ruby
<horseman> lwhalen: in 1.9 it should do that
<lwhalen> well shucks
<lwhalen> any way to make it happen in 1.8?
cousine has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 244 seconds]
<horseman> lwhalen: who cares about 1.8 :)
* lwhalen raises hand
EvanR has quit [Read error: Connection reset by peer]
EvanR has joined #ruby
pashamur_ has quit [Ping timeout: 244 seconds]
pu22l3r_ has joined #ruby
<horseman> lwhalen: but i guess you could do this: hash.keys.sort.each { |v| hash[v] ... }
<lwhalen> I've got a couple hundred CentOS servers running Puppet and various Rails apps on Ruby Enterprise Edition, that I can't just go and upgrade willy-nilly :-p
EvanR is now known as Guest27496
<lwhalen> I'll give that a shot, thank you!
zommi has joined #ruby
<null-> Boohbah: twitter is the one that said that
DarthGandalf has joined #ruby
mdw has joined #ruby
<Boohbah> null-: they still use rails for the frontend
Juul has quit [Ping timeout: 244 seconds]
falkoner has joined #ruby
<lwhalen> hrm, this is my output: http://pastebin.com/iAzk8KEK
tayy has quit [Remote host closed the connection]
<null-> Boohbah: really? they use rails?
<lwhalen> oh wait
<lwhalen> heh, proxy.sort.each does what I need
<lwhalen> thanks!
lwhalen has left #ruby ["Leaving"]
tayy has joined #ruby
tayy has quit [Remote host closed the connection]
<Boohbah> null-: nope, you were right, they don't anymore
<null-> I'm just learning ruby and never used rails, how is so much people use rails without knowing ruby?
<Boohbah> i don't know, but learning ruby first is a good idea
d3c has joined #ruby
<null-> I guess rails does so much stuff for you that no programming is needed in many cases
<LiquidInsect> null-: In my experience too many
<LiquidInsect> and it's fristrating to work with Ruby when you treat it like interpreted Java
<LiquidInsect> frustrating, that is
<null-> LiquidInsect: what do you mean?
<shevy> LiquidInsect well, rails is colossal
<shevy> give a few more years and it'll be its own language :P
<shadoi> Rails used to be a great way to learn Ruby, but now ...
<shevy> null- I wrote in PHP for about 2 years, then wanted a better language. I decided to choose between python and ruby. that was even before rails
<Boohbah> but now it's all nested hashes
<Boohbah> :D
crankycoder has joined #ruby
<LiquidInsect> null-: I mean, you CAN make a Rails app while not totally understanding how powerful Ruby is
looopy has joined #ruby
krusty_ar has quit [Ping timeout: 240 seconds]
<LiquidInsect> and when you see people taking the long road to do something that can be done in a single well-understandable line because they don't grok Enumerable, it just... make me wish they had taken the time to understand the underlying language and not just the framework
looopy has quit [Remote host closed the connection]
<Boohbah> i like to use ruby for things that i would have done in perl or bash, simple shell scripts
zomgbie has joined #ruby
krusty_ar has joined #ruby
<shevy> LiquidInsect ruby as a language is actually not that simple
hadees has joined #ruby
hadees has quit [Remote host closed the connection]
<shevy> yeah Boohbah. I dont use shell scripts anymore. I tend to put ruby code into files, and call this from the commandline. for instance:
tatsuya_o has joined #ruby
koskoz has joined #ruby
<shevy> one alias I have is for "ruby -r $RUBY_STD/custom_methods.rb -r $RUBY_STD/std_modules.rb -e "
Guest27496 is now known as EvanR
EvanR has quit [Changing host]
EvanR has joined #ruby
<shevy> "rinvoke install_flash" for instance installs flash
<shevy> rinvoke <name_of_method>
<shevy> and that file pulls in other classes I use
korishev has quit [Quit: korishev]
<Boohbah> null-: you should definitely learn all the Enumerable methods
uris has joined #ruby
SegFaultAX|work2 has quit [Ping timeout: 240 seconds]
korishev has joined #ruby
<LiquidInsect> shevy: I didn't say it was simple
<LiquidInsect> I said it was powerful
ghanima has quit [Ping timeout: 244 seconds]
<shevy> well you wrote "taking the long road" - it is not Enumerable alone. there are so many concepts in ruby that a newcomer would have to understand
<LiquidInsect> It's an example.
pashamur_ has joined #ruby
horseman has quit [Read error: Connection reset by peer]
qwerxy has quit [Quit: offski]
<shevy> "No. It's kinda complex. Ruby is simple in appearance, but is very complex inside, just like our human body. - matz."
<shevy> :)
<LiquidInsect> for instance doing some_array = []; collection.each{|item| some_array << item.method}; instead of using map. It's one example.
AxonetBE has joined #ruby
SimSala has quit [Ping timeout: 265 seconds]
cj3kim has joined #ruby
Ecco_ has quit [Quit: Ecco_]
<null-> sinatra looks nice
cheater has quit [Ping timeout: 256 seconds]
horseman has joined #ruby
<shevy> hehe
workmad3 has joined #ruby
Criztian has joined #ruby
<LiquidInsect> almost sinatra looks frightening: https://github.com/rkh/almost-sinatra
francisfish has quit [Remote host closed the connection]
<workmad3> LiquidInsect: that looks awesome :D
SimSala has joined #ruby
mneorr1 has quit [Quit: WeeChat 0.3.8]
<shevy> almost
mneorr has joined #ruby
<matti> Hi shevy
yoklov has joined #ruby
<shevy> hey matti
<shevy> killed any polar bear lately? :)
<workmad3> why would matti be killing polar bears?
minijupe has joined #ruby
federic has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
cousine has joined #ruby
cousine has quit [Remote host closed the connection]
<shevy> he is an ice expert
v0n has quit [Quit: Quitte]
xiaotian has quit [Quit: Computer has gone to sleep.]
mengu has quit [Quit: Konversation terminated!]
tomb__ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cheater has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
pashamur_ has quit [Quit: Konversation terminated!]
pashamur_ has joined #ruby
<makkura> LiquidInsect: Totally agreed [ referring to almost_sinatra ]. I believe in code that is reasonably readable and understandable by other coders with some experience. almost_sinatra is the inverse of that ^^;
<makkura> Heck it sounds almost trollish: 'don't include tests. tests just bloat the code base. just commit, the users will complain if you break anything.'
<LiquidInsect> makkura: well yeah, it is a troll... although "no code is faster than no code"
<GeekOnCoffee> makkura and LiquidInsect ^^
looopy has joined #ruby
tomb__ has joined #ruby
kvirani has quit [Remote host closed the connection]
<LiquidInsect> GeekOnCoffee: yeah, that article is where I first heard about almost sinatra
<LiquidInsect> hell, might have been where I first heard about sinatra, and stopped using rails for personal projects
berkes has joined #ruby
<makkura> GeekOnCoffee: ^^ thanks for the link
kevinbond has joined #ruby
ilyam_ has joined #ruby
chienpo has left #ruby [#ruby]
hydrozen has joined #ruby
stat1x has quit [Remote host closed the connection]
stat1x has joined #ruby
luckyruby has joined #ruby
<Boohbah> GeekOnCoffee: yes, thanks
<Boohbah> so ugly
tatsuya_o has quit [Remote host closed the connection]
ilyam has quit [Ping timeout: 246 seconds]
ilyam_ is now known as ilyam
schaerli has quit [Ping timeout: 246 seconds]
steveruby has joined #ruby
xastion has joined #ruby
<steveruby> Hi everyone, does anyone have experience with SSL on EC2?
schovi has quit [Remote host closed the connection]
<steveruby> I have the following snippt of code that works fine on my local box, but leads to SSL errors on EC2:
<steveruby> url = URI.encode("https://localhost:8443/prism/rest/sparql?query=#{text}")
<steveruby> http = Net::HTTP.new('localhost', '8443')
<steveruby> http.use_ssl = true
<steveruby> http.read_timeout = 1800
<steveruby> http.verify_mode = OpenSSL::SSL::VERIFY_NONE
<steveruby> p12 = OpenSSL::PKCS12.new(File.read("/usr/local/prism-1.0.9/certs/certs/testuser/testuser.p12"), "changeit")
<steveruby> http.cert = p12.certificate
<steveruby> http.key = p12.key
<steveruby> errors are of the form:
<steveruby> url = URI.encode("https://localhost:8443/prism/rest/sparql?query=#{text}")
<steveruby> http = Net::HTTP.new('localhost', '8443')
<steveruby> http.use_ssl = true
<apeiros_> steveruby: code samples go to a pastebin
<steveruby> http.read_timeout = 1800
<steveruby> http.verify_mode = OpenSSL::SSL::VERIFY_NONE
<steveruby> p12 = OpenSSL::PKCS12.new(File.read("/usr/local/prism-1.0.9/certs/certs/testuser/testuser.p12"), "changeit")
<steveruby> http.cert = p12.certificate
ciopte7 has quit [Ping timeout: 256 seconds]
<steveruby> http.key = p12.key
tatsuya_o has joined #ruby
<steveruby> sorry I'll post that in a minute, in the meantime, error I am getting is: /usr/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=unknown state: tlsv1 alert internal error (OpenSSL::SSL::SSLError)
tatsuya_o has quit [Remote host closed the connection]
ciopte7 has joined #ruby
<steveruby> any thoughts?
looopy has quit [Remote host closed the connection]
falkoner has left #ruby [#ruby]
tcopp has left #ruby [#ruby]
dekroning has quit [Ping timeout: 240 seconds]
mdw_ has joined #ruby
d3c has quit [Quit: Quit]
falkoner has joined #ruby
A1241 has joined #ruby
stockhol1 has joined #ruby
A1241 has left #ruby [#ruby]
emmanuelux has quit [Read error: No route to host]
pashamur_ has quit [Quit: Konversation terminated!]
yeggeps_ has joined #ruby
pashamur_ has joined #ruby
emmanuelux has joined #ruby
mdw has quit [Ping timeout: 256 seconds]
yeggeps_ has quit [Client Quit]
A1241 has joined #ruby
yeggeps_ has joined #ruby
A1241 has left #ruby [#ruby]
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dfr|work has joined #ruby
yeggeps has quit [Ping timeout: 245 seconds]
graspee has quit [Quit: leaving]
fayimora has quit [Ping timeout: 264 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
dEPy has joined #ruby
Tricks_ has quit [Read error: Connection reset by peer]
<ekaleido> i dont know how else to ask this so i made a pastie
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 256 seconds]
Gavilan has joined #ruby
pashamur_ has quit [Quit: Konversation terminated!]
hasrb has joined #ruby
pashamur_ has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
pashamur_ has quit [Read error: Connection reset by peer]
<dEPy> can someone tell me why is the public_method used in this example (it says something about substituting it when testing) ->
pashamur_ has joined #ruby
<dEPy> objectsonrails.com/#sec-5-2
cj3kim has joined #ruby
<apeiros_> ekaleido: that looks like JSON. use a json parser (in 1.9, one is in stdlib).
luxurymode has joined #ruby
Juul has joined #ruby
dEPy is now known as dEPY_
<rking> Do you guys have a handy way to keep track of timesheets?
<rking> The "timesheet" gem wants me to pass a --start and --end, but I don't know the --end yet. =)
daniel_hinojosa has quit [Quit: Leaving.]
<rking> I could write a wrapper, but now I'm thinking there's a more convenient way.
depy has joined #ruby
dEPY_ has quit [Quit: leaving]
<depy> anyone? :( explain public_method here -> http://objectsonrails.com/#sec-5-2 ?
workmad3 has quit [Ping timeout: 245 seconds]
<kirun> rking: In a previous job we just used Excel. I think there are some web apps for it.
<kirun> Don't forget to allocate time on your timesheet for filling out the timesheet.
Tricks has joined #ruby
Foxandxss has joined #ruby
<rking> The time will end up being the amount of time it takes me to say "proj1 start" and later ^c it.
<rking> I'll let them have the 0.43 seconds for free.
Stormbytes has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
nanderoo has quit [Quit: Leaving.]
cespare has quit [Quit: WeeChat 0.3.5]
hemanth has joined #ruby
Bosma has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Enekoos> [no apto para todos los publicos] http://www.cuantarazon.com/664468/cinismo
fbernier has quit [Read error: Operation timed out]
iamjarvo1 has quit [Ping timeout: 244 seconds]
fayimora has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
stephenjudkins has joined #ruby
wallerdev has joined #ruby
Guest20110 has joined #ruby
pashamur_ has quit [Quit: Konversation terminated!]
Juul has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
pashamur_ has joined #ruby
Kunda has left #ruby [#ruby]
DavidTiger|afk is now known as DavidTiger
tatsuya_o has joined #ruby
invictus1 has quit [Read error: Connection reset by peer]
dcorbin has joined #ruby
dcorbin has quit [Changing host]
dcorbin has joined #ruby
cespare has joined #ruby
alexander-- has joined #ruby
alexander-- has quit [Client Quit]
kvirani has joined #ruby
carloslopes has quit [Quit: Leaving]
falkoner has left #ruby [#ruby]
korishev has quit [Quit: korishev]
pashamur_ has quit [Quit: Konversation terminated!]
pashamur_ has joined #ruby
korishev has joined #ruby
Morkel has joined #ruby
TheFuzzball has joined #ruby
bglusman has quit [Remote host closed the connection]
fragrant has joined #ruby
williamcotton_ has joined #ruby
<bricker88> in Rails… Shouldn't I be able to to this from a file in /lib, if that model is also defined in the regular spot? https://gist.github.com/2920029
williamcotton has quit [Ping timeout: 244 seconds]
williamcotton_ is now known as williamcotton
<bricker88> it just doesn't add those accessor methods like I'm hoping it would
pashamur_ has quit [Quit: Konversation terminated!]
<fragrant> can anyone pastebin ruby code to get data value from this simple html form? https://gist.github.com/2920100
pashamur_ has joined #ruby
<fragrant> process.rb
nobitanobi has joined #ruby
<nobitanobi> Given I timestamp, how do I get a string in the format: YYYYMMDD ?
slyv has joined #ruby
<bricker88> nobitanobi: look at #strftime in the ruby docs
<nobitanobi> ok, thank you
rtl_ has quit [Ping timeout: 265 seconds]
crankycoder has quit [Remote host closed the connection]
schaerli has joined #ruby
freakazoid0223 has left #ruby ["Leaving"]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tvw has joined #ruby
hynkle has quit [Quit: hynkle]
pashamur_ has quit [Quit: Konversation terminated!]
pashamur_ has joined #ruby
geekbri has quit [Remote host closed the connection]
pu22l3r_ has quit [Ping timeout: 248 seconds]
<nobitanobi> bricker88: I see strftime formats a Date to a specific format, but frome the unix timestamp string I need to create a Date. Can't I just create that Date with the format directly? I am creating it with strptime
libertyp1ime has joined #ruby
schaerli has quit [Remote host closed the connection]
sernin has quit [Quit: Lost terminal]
sernin has joined #ruby
dcope has quit [Changing host]
dcope has joined #ruby
<bricker88> nobitanobi: You can try Time.at, and then use strftime on its outpit
<bricker88> output*
fantazo has joined #ruby
pashamur_ has quit [Read error: Connection reset by peer]
bluenemo has quit [Read error: Operation timed out]
pashamur_ has joined #ruby
libertyprime has quit [Quit: Lost terminal]
fragrant has left #ruby [#ruby]
libertyp1ime has quit [Client Quit]
libertyprime has joined #ruby
AxonetBE has quit [Quit: Leaving.]
blacktulip has quit [Remote host closed the connection]
iamjarvo1 has joined #ruby
<shadoi> nobitanobi: do you just ask that question every day or what? ;)
<shadoi> deja-vu
goraxe has quit [Ping timeout: 245 seconds]
<nobitanobi> shadoi: it seems so, but it was a different question.
<shadoi> Date.strptime(timestamp, '%Y%m%d')
t0mmyvyo has joined #ruby
<nobitanobi> DateTime.strptime('13341888000','%Y%m%d') — ArgumentError: invalid date
<shadoi> Ah, that's epoch
<shadoi> use Time.at like he said
<nobitanobi> ok
<nobitanobi> thanks.
rsenk330 has joined #ruby
rsenk330 has quit [Remote host closed the connection]
horseman has quit [Read error: Connection reset by peer]
horseman has joined #ruby
Vendethiel has joined #ruby
Juul has joined #ruby
libertyprime has quit [Quit: Lost terminal]
rizzylt has joined #ruby
borys_b_timakov has joined #ruby
koskoz has quit [Ping timeout: 248 seconds]
noganex has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
suborbital has joined #ruby
pyoor has joined #ruby
itnomad has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
pashamur_ has quit [Quit: Konversation terminated!]
pashamur_ has joined #ruby
<pyoor> Hi all. Can anyone explain to me why file.expand_path replaces "\" with "/"
libertyprime has joined #ruby
zommi has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
pashamur_ has quit [Client Quit]
wilmoore has joined #ruby
pashamur_ has joined #ruby
fayimora has quit [Quit: Busy…..zzzzz]
mockra has joined #ruby
looopy has joined #ruby
Juul has quit [Ping timeout: 246 seconds]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> pyoor I think expand_path believes that "\" are improper when making path-objects
<shevy> afaik only windows uses "\" for their paths
noganex has joined #ruby
banghouseAFK is now known as banghouse
roams has quit [Ping timeout: 246 seconds]
<pyoor> shevy: Windows does only accept \ as a path. I'm having an issue working with someone elses code. The path get's defined as work_dir=C:\\foo\\bar but for some reason when work_dir is called later it's called as C:/foo/bar
<pyoor> Any clue what might cause this?
<shevy> I am quite sure that / works fine on windows with ruby
<pyoor> Btw, I'm a complete noob when it comes to ruby
<Vendethiel> Windows perfectly accepts /
<pyoor> shevy: It won't in Windows XP SP3. I have an app that accepts a file as a command line argument. Doing foo.exe C:\foo\bar.txt --works
ZachBeta has joined #ruby
<Vendethiel> I use it everyday with ruby and many others langages and I've never seen one single time this being a problem
<deryl> so long as its a path object. doens't like it outside of ruby
<pyoor> Doing foo.exe C:/foo/bar.txt fails
<shevy> sorry, my scripts work fine on windows pyoor, I can not verify your statement that only \ will work
<shevy> what even is foo.exe
<shevy> that does not seem to belong to ruby
<pyoor> well actually in this case foo = Quicktimeplayer.exe
muse has quit [Ping timeout: 245 seconds]
<pyoor> I'm calling an executable from within ruby
<Vendethiel> that's really surprising, I have executable calls from ruby like that and I've never had any problem :/
<shadoi> File::SEPARATOR is what's used.
<korishev> pyoor: if used inside ruby, the "/" works fine on windows (Ruby handles it internally). Is the code shelling out and trying to use a string created by File.expand_path ?
muse has joined #ruby
<shevy> system 'quicktimeplayer bla.avi' should work fine in ruby scripts, it is quite how I use mplayer on windows with ruby scripts
<pyoor> korishev: yes
<pyoor> shevy: In this case I have to provide the full path to the file.
eywu has quit [Ping timeout: 256 seconds]
PaciFisT1 has quit [Quit: Leaving.]
beneggett has joined #ruby
<shevy> system 'mplayer /your/happy/superavi.avi' :)
<shevy> the root / refers to C: afaik
<pyoor> the code in question here is if anyone's curious: https://github.com/grugq/RunTracer/tree/master/ruby
<pyoor> err here:https://github.com/grugq/RunTracer/blob/master/ruby/stalk_tracer.rb
stockhol1 has quit [Ping timeout: 252 seconds]
jonathan_ has joined #ruby
Morkel has quit [Quit: Morkel]
yeggeps_ has quit [Read error: Connection reset by peer]
notbrent has joined #ruby
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
<shevy> you can test that it works quickly, via irb
yeggeps has joined #ruby
<shevy> start irb, via irb.exe or something like that
<shevy> then put some file at C:// like foo.txt, then x = File.readlines('/foo.txt'); require pp; pp x
<pyoor> shevy: well it's being outputted during execution. That file calls :https://github.com/grugq/RunTracer/blob/master/ruby/word_tracer.rb
d3c has joined #ruby
<shevy> if that works, then it'll work for every other file as well
<pyoor> and you can specify debug to print out the exact commandline being executed
<pyoor> and I see that it's outputting as C:/foo/bar
<shevy> never used RunTracer
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
berserkr has quit [Quit: Leaving.]
<pyoor> first time for me and I'm useless with ruby
ZachBeta has quit [Ping timeout: 245 seconds]
cj3kim has quit [Client Quit]
<shevy> did you start irb already
<pyoor> Trying to find my way around but there's certain behavior I don't understand
<pyoor> shevy: yea
yeggeps has quit [Read error: Connection reset by peer]
<shevy> k and reading in a file works from irb right?
andrewh has quit [Ping timeout: 248 seconds]
yeggeps has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
lorandi has quit [Quit: Leaving]
hemanth has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
hemanth has joined #ruby
<pyoor> shevy: what is pp?
<shevy> pp is pretty print
<pyoor> oh, undefined in my environment
<shevy> it prints your data structures nicely
<shevy> if you did require 'pp' before then it can not be undefined
<shevy> I turned on my laptop to my left, it has win xp
Codif has joined #ruby
<shevy> and ruby 1.9.3 something (the rubyinstaller ruby)
<shevy> ok, once that works, you now know that "/" in paths with ruby work just fine
<pyoor> shevy: doing require pp in irb returns NameError: undefined local variable or method "pp" ...
<shevy> not only for .txt files but for any files, including .avi
<shevy> I tell you 100%, I tried it just now
<shadoi> pyoor: require 'pp'
<shevy> require 'pp' works
stockhol1 has joined #ruby
<pyoor> aye, i see
mdw_ has quit [Remote host closed the connection]
<shevy> p could work too
<shevy> but pp looks nicer
<shevy> p object; pp object
fserb has quit [Quit: ttyl]
stephenjudkins has quit [Quit: stephenjudkins]
ZachBeta has quit [Ping timeout: 252 seconds]
luxurymode has quit [Quit: Computer has gone to sleep.]
yeggeps has quit [Ping timeout: 248 seconds]
Codif has quit [Remote host closed the connection]
bzitzow has joined #ruby
<bzitzow> hello. I'm new to Ruby. I need to traverse what I am used to calling a multi-dimensional array
<korishev> pyoor: in the bit that shells out to windows, you are using the string created by File.expand_path() right? is that a variable?
<bzitzow> an arbitrary number of levels deep
<shadoi> bzitzow: see Hash
<bzitzow> I was attempting to use the .each iterator
<bzitzow> shadoi: ok
<pyoor> yes. korishev I think it's a problem with File.join
<pyoor> where is File::SEPARATOR defined at?
<shadoi> If it is arrays then you just need to make a recursive iterator.
Zolrath has quit [Ping timeout: 244 seconds]
pygospa has quit [Ping timeout: 244 seconds]
<shevy> pyoor I think it is part of class File, a constant there, called SEPARATOR
TheFuzzball has joined #ruby
<pyoor> shevy: figured it out. It's the fact that the path is being supplied to an external program and not used internally in ruby
<shadoi> pyoor: it's determined at ruby load time.
<korishev> pyoor: tack this onto the variable right before shelling out: .gsub(/\//, '\\')
<pyoor> solved it by adding .gsub(%r{/}) { "\\" }
thecreators has quit [Quit: thecreators]
<shevy> :)
<shevy> he is not a total noob!
pygospa has joined #ruby
<pyoor> my google fu ain't too shabby
<pyoor> :)
<pyoor> but thanks nonetheless
hoelzro is now known as hoelzro|away
pdtpatrick has joined #ruby
stephenjudkins has joined #ruby
wangr has quit [Ping timeout: 244 seconds]
bbttxu has quit [Quit: bbttxu]
Juul has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
mockra has quit [Remote host closed the connection]
zinjacoder has quit [Quit: Peace!]
pashamur_ has quit [Quit: Konversation terminated!]
pashamur_ has joined #ruby
cbuxton has joined #ruby
peregrine81 has joined #ruby
horseman has quit [Read error: Connection reset by peer]
<interopcop> can Rube String class convert "ThisCamelCaseString" into "This Camel Case String"?
<interopcop> *ruby
internet_user has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
godzirra has quit [Quit: Lost terminal]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
yxhuvud has quit [Ping timeout: 248 seconds]
albemuth has quit [Quit: Computer has gone to sleep.]
iamjarvo1 has quit [Ping timeout: 244 seconds]
horseman has joined #ruby
samwin has quit [Remote host closed the connection]
indian has joined #ruby
ph^ has quit [Remote host closed the connection]
ciopte7 has quit [Ping timeout: 256 seconds]
rizzylt has quit [Ping timeout: 265 seconds]
ph^ has joined #ruby
mockra has joined #ruby
Juul has quit [Ping timeout: 248 seconds]
hemanth has quit [Read error: Connection reset by peer]
<shevy> interopcop I think not by default
robotmay has joined #ruby
ghanima has joined #ruby
<shevy> you can try something like
hemanth has joined #ruby
TheFuzzball has joined #ruby
<shevy> class String; def de_camelcase; self.gsub(/([A-Z]+)([A-Z])/,'\1_\2').gsub(/([a-z])([A-Z])/,'\1_\2').downcase
<shevy> "WhatDoYouWant".de_camelcase # => "what_do_you_want"
<shevy> well, you have to use .capitalize
<shevy> but you get the idea
<shevy> ah you jus want to insert ' '
pashamur_ has quit [Quit: Konversation terminated!]
minijupe has quit [Quit: minijupe]
<shevy> interopcop, "ThisCamelCaseString".gsub(/([A-Z]+)([A-Z])/,'\1_\2').gsub(/([a-z])([A-Z])/,'\1 \2') # => "This Camel Case String"
pashamur_ has joined #ruby
korishev has quit [Quit: korishev]
dv310p3r has quit [Read error: Operation timed out]
ph^ has quit [Ping timeout: 244 seconds]
balki_ has joined #ruby
<matti> shevy: Or... 'ThisCamelCaseString'.split(/([A-Z][a-z]+)/).reject(&:empty?)
pashamur_ has quit [Client Quit]
etehtsea has quit []
pashamur_ has joined #ruby
<shevy> there are many ways to rome
<shevy> but I'll take the plane
<matti> interopcop: In 1.9.x use look-behind.
borys_b_timakov has quit [Remote host closed the connection]
<matti> shevy: E? :)
<shevy> man
<shevy> I always look behind when I leave home
<shevy> matti, it's about bed time here, I am struggling to stay awake
<matti> shevy: Its 11pm in UK
<matti> :)
Yarou has quit [Ping timeout: 248 seconds]
IHateHavingToReg has joined #ruby
Juul has joined #ruby
<shevy> yeah man, I am 1 hour in the future here in central europe!
<shevy> I'd like to fix the circular require problems in my projects before I go sleep today
<matti> MAN FROM THE FUTURE!
balki has quit [Ping timeout: 245 seconds]
TheFuzzball has quit [Quit: Leaving...]
<shevy> I don't yet have the real solution how to require different .rb files properly
<matti> shevy: Arrange project differently.
berkes has quit [Ping timeout: 244 seconds]
delameko has joined #ruby
<shevy> yeah but... how
<matti> shevy: And use autoload.
<shevy> hmmm autoload
Gavilan has left #ruby [#ruby]
nilg` has quit [Remote host closed the connection]
workmad3 has joined #ruby
<shevy> what is also weird is
<shevy> I even use yaml files in some projects, to specify what .rb files to load
Guest20110 has quit [Ping timeout: 246 seconds]
kirun has quit [Quit: Client exiting]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<matti> shevy: That sounds like a horrible idea.
pashamur_ has quit [Quit: Konversation terminated!]
<shevy> hehehe
<matti> shevy: Leverage what language offers already.
pashamur_ has joined #ruby
<matti> shevy: Or, write simple plug-in framework.
kevinbond has quit [Quit: kevinbond]
stephenjudkins has left #ruby [#ruby]
<shadoi> autoload is evil
<matti> shevy: Have a look at MCollective's PluginManager for an example of simple-yet-elegant solution.
<matti> shadoi: With great power ... ;p
<shadoi> in a big project I've seen it cause mass confusion over and over and over
<matti> shadoi: I like it.
<shadoi> and it's VERY hard to make thread-saf
<shadoi> thread-safe*
kvirani has quit [Remote host closed the connection]
fridim_ has quit [Ping timeout: 264 seconds]
nilg has quit [Remote host closed the connection]
pashamur_ has quit [Client Quit]
<shadoi> It's good if it's a small project and start-up time is important.
pashamur_ has joined #ruby
MasterIdler_ has joined #ruby
MasterIdler_ has quit [Client Quit]
<matti> shadoi: In my case its a cluster file-system front-end.
depy has quit [Quit: Leaving]
Zolrath has joined #ruby
Zolrath has quit [Client Quit]
ciopte7 has joined #ruby
<workmad3> isn't autoload being scrapped?
<shevy> I am not even at the point of considering to use autoload or not
<shevy> because right now, my projects are kinda like "toss any .rb file into it that is used anywhere"
<shevy> it's a mess that was ok on 1.8.7 but on 1.9.3 there is the circular require thingy now
MasterIdler has quit [Ping timeout: 244 seconds]
<workmad3> ah, it's being deprecated in 2.0 with matz wanting to remove it from 3.0
<shevy> matz slows down with age doesn't he
<shevy> :)
<workmad3> and his comment was 'I strongly discourage the use of autoload in any standard libraries.'
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
incluye has joined #ruby
<shevy> did you look at bundler man
incluye has quit [Read error: Connection reset by peer]
<workmad3> shevy: I use bundler all the time :)
chson has quit [Remote host closed the connection]
<matti> workmad3: Hehe
centipedefarmer has quit [Quit: This computer has gone to sleep]
<shevy> then you know it is using like 50 lines of autoload :D
<workmad3> that I did not... I personally don't care tbh :)
<shevy> ok not 50, less than
<workmad3> besides, the concerns are autoload with threads... if you're spawning threads before your bundler setup I'd say you're doing it wrong :)
<shevy> what is the alternative to autoload?
[Neurotic] has joined #ruby
steveruby has quit [Ping timeout: 256 seconds]
ghanima has quit [Quit: Leaving.]
<shevy> I mean if matz wants to kill it
<workmad3> hmm, explicit requires?
billiamii has quit []
xnm has joined #ruby
td123 has joined #ruby
<horseman> autoload constants have really weird interactions with const_define? and const_get iirc, really confusing and broke some introspection code. I think the only way to deal properly with it was to rescue exceptions or so
<horseman> const_defined?
virunga has joined #ruby
uris has quit [Quit: leaving]
Natch has joined #ruby
yannis has quit [Quit: yannis]
davidcelis has joined #ruby
wvms has joined #ruby
Natch| has quit [Ping timeout: 244 seconds]
Natch is now known as Natch|
pixelsnbits has joined #ruby
dr_diamond has joined #ruby
dr_diamond has joined #ruby
dr_diamond has quit [Changing host]
eywu has joined #ruby
xiaotian has joined #ruby
gregorg has quit [Ping timeout: 245 seconds]
pashamur_ has quit [Quit: Konversation terminated!]
Progster has quit [Ping timeout: 244 seconds]
pashamur_ has joined #ruby
griffindy has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
Criztian has quit [Remote host closed the connection]
IHateHavingToReg has quit [K-Lined]
falkoner1 has joined #ruby
falkoner1 has left #ruby [#ruby]
cpruitt has quit [Quit: cpruitt]
headius has quit [Quit: headius]
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
Beoran4 has quit [Ping timeout: 245 seconds]
pashamur_ has quit [Client Quit]
bglusman has joined #ruby
pashamur_ has joined #ruby
<xiaotian> beneggett, it doesn't even mention "content_tag" at all.
xaq has quit [Read error: Connection reset by peer]
xaq has joined #ruby
pashamur_ has quit [Client Quit]
ghanima has joined #ruby
pashamur_ has joined #ruby
<shevy> screw that going to bed, youtube fail bloopers are more fun
pixelsnbits has quit [Ping timeout: 265 seconds]
pashamur_ has quit [Client Quit]
bigoldrock has quit [Quit: Leaving.]
pashamur_ has joined #ruby
mockra has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
hadees has joined #ruby
adamkittelson has quit [Remote host closed the connection]
hunglin has quit [Ping timeout: 244 seconds]
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
bglusman has quit [Remote host closed the connection]
saschagehlich has quit [Quit: saschagehlich]
<shadoi> if you want lazy require you can use a proc
<shadoi> It's still nasty though
IrishGringo has joined #ruby
mockra has joined #ruby
ghanima has quit [Quit: Leaving.]
davidpk has joined #ruby
cjs226 has quit []
looopy has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
itnomad has joined #ruby
pashamur_ has quit [Client Quit]
jrist is now known as jrist-afk
pashamur_ has joined #ruby
<shevy> dunno, right now I am ripping away class after class, and putting in requires in every .rb file only when I need them
<shevy> it is very slow but so far quite simple
<shadoi> that's generally the way you're supposed to do it anyway. :)
xnm has quit [Read error: Connection reset by peer]
bigoldrock has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
Beoran4 has joined #ruby
ZachBeta has joined #ruby
null- has left #ruby [#ruby]
Siphonblast has joined #ruby
ZachBeta has quit [Client Quit]
tilde`_ has joined #ruby
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
looopy has joined #ruby
ghanima has joined #ruby
xnm has joined #ruby
ZachBeta has joined #ruby
trend has joined #ruby
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
dr_diamond has quit [Quit: Quitte]
tilde` has quit [Ping timeout: 256 seconds]
Progster has joined #ruby
Karmaon has quit [Quit: WeeChat 0.3.8-rc2]
mengu has quit [Read error: Operation timed out]
virunga has quit [Quit: Sto andando via]
the_jeebster has quit [Quit: Leaving.]
tilde`_ has quit [Ping timeout: 244 seconds]
tilde` has joined #ruby
c0rn_ has joined #ruby
robotmay has quit [Remote host closed the connection]
chico_chicote has joined #ruby
pashamur_ has quit [Client Quit]
albemuth has joined #ruby
pashamur_ has joined #ruby
<shevy> yeah
albemuth has quit [Client Quit]
<shevy> oh well
<shevy> after I'll have finished with this, there is another project that will require the same
eywu has quit [Quit: Leaving.]
ZachBeta has quit [Quit: Computer has gone to sleep.]
eywu has joined #ruby
thatRD has joined #ruby
rizzylt has joined #ruby
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
Natch| has quit [Read error: Connection reset by peer]
<shevy> this is so annoying
<shevy> lib/ruby/site_ruby/1.9.1/mp3info/id3v2.rb:222: warning: assigned but unused variable - experimental
Natch| has joined #ruby
<shevy> lines like:
<shevy> @unsync, ext_header, experimental, footer = (0..3).collect { |i| flags[i].chr == '1' }
<shevy> I dont get why there must be a warning ... the author just assigned a throwaway variable there anyway
delameko has quit [Quit: delameko]
pashamur_ has quit [Client Quit]
goraxe has joined #ruby
pashamur_ has joined #ruby
thomasfedb has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
luckyruby has quit [Remote host closed the connection]
mengu has quit [Changing host]
mengu has joined #ruby
ChampS666 has quit [Ping timeout: 246 seconds]
djdavis has joined #ruby
thomasfedb has joined #ruby
djdavis has quit [Client Quit]
<shadoi> Set the warning level
pashamur_ has quit [Client Quit]
billiamii has joined #ruby
<shevy> how? right now I just use -w in the shebang line for all my .rb files
pashamur_ has joined #ruby
<shadoi> -W1
<shevy> hmm ok
<rking> Is there any way to make `gem install` do the `ri` step in a background fork?
<rking> RDoc, too.
<shadoi> rking: no, but I just tell it no to do it
<rking> shadoi: Hrm. I guess I could then explicitly invoke it with a cronjob or something.
<rking> I do like having the docs available, sometimes.
<shadoi> put "gem: --no-ri --no-rdoc" in ~/.gemrc
<shadoi> sure, on a dev box
<rking> Right.
<rking> Hrm, i see `gem rdoc` but not `gem ri`
<shadoi> it works
qwerxy has joined #ruby
<rking> Running `gem rdoc` gets both?
<shadoi> it's an option to gem install
<rking> Interestingly that also got YARD/yri.
workmad3 has quit [Read error: Operation timed out]
<rking> shadoi: Yeah, but I'm trying to also figure out how to explicitly kickoff the docs process.
ZachBeta has joined #ruby
<shadoi> yeah… gem rdoc --all
<rking> K.
* rking does: gem() { gem "$@" && gem rdoc --all &> /dev/null & }
pashamur_ has quit [Quit: Konversation terminated!]
<shadoi> hehe
pashamur_ has joined #ruby
<rking> I meant gem() { command gem… }, but I don't think that would work well with rvm.
<rking> I personally am back on rbenv, but I'm trying to write all my stuff as broadly as possible.
explody has joined #ruby
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
<rking> Tough call.
<rking> On the one hand, I imagine users of this config would be surprised to find that the docs got turned off by default.
<rking> I can easily provide a ",gem" function (as is my custom for this project, to make ",foo"), but I don't know how to give them the hint that it was in use.
macmartine has quit [Quit: macmartine]
<rking> Or I could just say screw rvm.
fserb has joined #ruby
<shevy> :)
<rking> I think I'll not mess with ~/.gemrc and make ,gem do the --no-ri --no-rdoc inside itself.
mayankkohaley has quit [Ping timeout: 244 seconds]
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
fayimora has joined #ruby
pashamur_ has quit [Client Quit]
looopy has quit [Remote host closed the connection]
xnm has quit [Read error: Connection reset by peer]
pashamur_ has joined #ruby
liluo has joined #ruby
oooPaul has quit [Quit: Ciao for now!]
<shadoi> .gemrc is useful for lots of other things too though
mccauley has joined #ruby
seanstickle has joined #ruby
<rking> shadoi: What else do you put in it?
davidcelis has quit [Ping timeout: 252 seconds]
greyEAX has joined #ruby
looopy has joined #ruby
<rking> BTW it's not as simple as wrapping as: gem --no-ri --no-rdoc "$@" -- it expects it after the 'install', e.g.: gem install --no-ri --no-rdoc
tilde`_ has joined #ruby
rorrego has quit [Quit: Ex-Chat]
<rking> Hrm, cool.
<greyEAX> how do i do a test to see if something exists?
Natch| has quit [Read error: Connection reset by peer]
<shadoi> what sort of something? an object?
<greyEAX> basically i have a json string that starts with connect, and has relevant data
<shevy> greyEAX, what has to exist
<greyEAX> and i want it to just first check if it starts with 'connect'
<shevy> well there is if defined? then there is foo.include?
<greyEAX> {"connect":{"tunein":true,"name":"Craigslist-Checker","creator":"greyEAX","key":"AB5DF"}}
<greyEAX> like that
<shevy> a string?
<greyEAX> yeah a json string
<greyEAX> which is being parsed through the json rubygem
davidcelis has joined #ruby
<shadoi> greyEAX: JSON.parse(str).key?("connect")
tilde` has quit [Ping timeout: 246 seconds]
Natch| has joined #ruby
<greyEAX> kk ill try that
<greyEAX> when you use the ? in ruby you don't need to use 'if' right?
pashamur_ has quit [Quit: Konversation terminated!]
pashamur_ has joined #ruby
<shadoi> greyEAX: it's just a convention for boolean methods, not a hard and fast rule.
<greyEAX> oic
adamkittelson has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
<shadoi> in that case, key and key? are identical.
stewart_ has joined #ruby
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
Progster has quit [Ping timeout: 260 seconds]
<shadoi> sorry that was wrong
<shadoi> key returns the key.
Targen has joined #ruby
<shadoi> for a given value
<rking> Cool, this is a huge win. (the backgrounded docs)
<rking> ,gem 4 lyfe!
<greyEAX> oic
<rking> (If anyone has any additional ideas of random dotfiles-n-scripts that help with ruby dev, toss 'em my way, please)
<greyEAX> well it seems to work
krusty_ar has joined #ruby
<greyEAX> so thank you shadoi
<greyEAX> json is cool
xiaotian has quit [Quit: Computer has gone to sleep.]
pashamur_ has quit [Client Quit]
<rking> Did you know that 100% of valid JSON is also valid YAML?
pashamur_ has joined #ruby
<rking> One could use a YAML parser to load any JSON.
<rking> (And a featureful YAML dumper to emit JSON, as long as it doesn't use advanced things like references)
pashamur_ has quit [Client Quit]
yoklov has quit [Quit: computer sleeping]
<rking> (And then there's JSYNC (jsync.org) if you actually do need the advanced things.)
pashamur_ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
Aaton is now known as Aaton_off
yoklov has joined #ruby
looopy has quit [Remote host closed the connection]
pashamur_ has quit [Client Quit]
pashamur_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
pashamur_ has quit [Read error: Connection reset by peer]
pashamur_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
hemanth has quit [Read error: Connection reset by peer]
ken_barber has joined #ruby
hemanth has joined #ruby
<bricker88> How do I get the instance variables of an object? I'm trying to print out just attributes that I've set for an object
<shadoi> rking: do JSON objects translate to YAML hash refs?
pashamur_ has quit [Client Quit]
kevinbond has joined #ruby
<shadoi> hashes in JSON in otherwords
pashamur_ has joined #ruby
<shadoi> bricker88: obj.instance_variables
<rking> shadoi: I'm not sure if I follow… can you give an example?
<bricker88> shadoi: json and yaml don't play well, I prefer yaml because it can handle ruby objects fine. JSON just turns them into an array.
looopy has joined #ruby
<bricker88> or rather, it deserializes them into an array
<rking> shadoi: Oh, I think I do follow, then yes. If you serialize an object in JSON it becomes a hash.
<rking> bricker88: An array?
chson has joined #ruby
ilyam has quit [Remote host closed the connection]
pashamur_ has quit [Client Quit]
<bricker88> rking: let me see if I can show an example, one sec
ilyam has joined #ruby
pashamur_ has joined #ruby
<shadoi> bricker88: obj.instance_variables.map {|ivar| obj.instance_variable_get(eval(":#{ivar}")) }
Aaton_off is now known as Aaton
<bricker88> shadoi: Thank you
<shadoi> It's better to make a class method to list attributes that you want to create accessors for
<shadoi> then you can just call that method, iterate and use the accessors.
<rking> Hrm, the 'json' gem actually refuses to dump objects.
Markvilla has quit [Quit: Markvilla]
<shadoi> rking: yeah you have to override the to_json method
pashamur_ has quit [Client Quit]
<bricker88> rking: You're right, I think the problem is if the object doesn't have a to_json method. All I know is that I had issues with json/ flash hash in Rails
nfk has quit [Quit: yawn]
pashamur_ has joined #ruby
<rking> shadoi: Right. Then the only tool available to it that point is a Hash.
iocor has quit [Quit: Computer has gone to sleep.]
<rking> That's where JSYNC comes in, assuming actual YAML isn't avialable.
<rking> Hehe:
<rking> puts JSON.dump({'a' => 1, a: 2})
<rking> {"a":1,"a":2}
qwerxy has quit [Quit: offski]
<shadoi> if you want real object serialization you need to tell it what class to map it to
ZachBeta has quit [Quit: Computer has gone to sleep.]
<shadoi> but.. in my experience it's kind of a rabbit hole, because it doesn't work on all objects.
<rking> AFAIK JSYNC round-trips fine.
<rking> I'm not sure if it's worth writing the jsync gem or not.
<rking> It'd only take an afternoon.
<shadoi> throw a Proc at it :)
minijupe has joined #ruby
<rking> Hrm, wait, I'll have to see what jsync.js does for that one…
pashamur_ has quit [Read error: Connection reset by peer]
rdctnst has joined #ruby
<shadoi> If it works, I have a BUNCH of uses for it.
pashamur_ has joined #ruby
<shadoi> My state machines would be so much simpler to serialize....