apeiros changed the topic of #ruby to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
ferdev is now known as ferdev|away
techhelp has joined #ruby
ninegrid has quit [Quit: Lost terminal]
mneorr_ has joined #ruby
Edward_ has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
samphipp_ has joined #ruby
tommyvyo has joined #ruby
freezway has quit [Remote host closed the connection]
fir_ed has quit [Quit: Leaving]
arya has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
ninegrid has joined #ruby
shock_one has quit [Ping timeout: 255 seconds]
arya has joined #ruby
adeponte has joined #ruby
mengu has joined #ruby
Virunga has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
cableray has quit [Quit: cableray]
Monie has joined #ruby
jgrevich has quit [Quit: jgrevich]
ahokaomaeha has joined #ruby
adeponte has quit [Remote host closed the connection]
vansonhk_ has joined #ruby
havenn has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
healpay has quit [Read error: Connection reset by peer]
eregon has quit [Read error: Connection reset by peer]
eregon has joined #ruby
Takehiro has joined #ruby
ereslibre has quit [Ping timeout: 256 seconds]
ereslibre has joined #ruby
yshh has quit [Remote host closed the connection]
guyz has quit [Ping timeout: 264 seconds]
Virunga has joined #ruby
jaequery has joined #ruby
icole has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
digifiv5e has joined #ruby
digifiv5e is now known as Guest75147
angusiguess has joined #ruby
Myconix has quit [Read error: Connection reset by peer]
subbyyy has quit [Quit: none 0.3.9.2]
kumarat9pm has joined #ruby
Konboi has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
subbyyy has joined #ruby
vansonhk_ has quit [Quit: vansonhk_]
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
crackfu has joined #ruby
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
thufir_ has joined #ruby
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
robbyoconnor has quit [Read error: No route to host]
kumarat9pm has joined #ruby
arya has quit [Ping timeout: 248 seconds]
kumarat9pm has quit [Max SendQ exceeded]
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
arya has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
rakl has joined #ruby
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
jaequery has joined #ruby
kumarat9pm has joined #ruby
Virunga has quit [Remote host closed the connection]
kumarat9pm has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 276 seconds]
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
Edward_ is now known as fir_ed
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
Vainoharhainen has joined #ruby
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
chrisramon has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
eka has joined #ruby
arya_ has joined #ruby
kumarat9pm has joined #ruby
arya has quit [Ping timeout: 248 seconds]
kumarat9pm has quit [Max SendQ exceeded]
eka has quit [Client Quit]
tommyvyo has joined #ruby
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
adkron has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
kumarat9pm has joined #ruby
mneorr has joined #ruby
Elhu has joined #ruby
kumarat9pm has quit [Client Quit]
ntzrmtthihu777 has joined #ruby
otherj has joined #ruby
Elhu has quit [Client Quit]
<ntzrmtthihu777> Im having a chicken and egg situation here: I wanna install wxruby into 1.6.2, but it requires jruby-openssl. gem install jruby-openssl requires jruby-openssl also, so what the hell am I supposed to do lol
arya_ has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby
ossareh has quit [Remote host closed the connection]
kumarat9pm has joined #ruby
kumarat9pm has quit [Max SendQ exceeded]
jeer has joined #ruby
arya has joined #ruby
subbyyy has quit [Ping timeout: 255 seconds]
Vainoharhainen has quit [Quit: Leaving...]
keanehsiao has joined #ruby
<ntzrmtthihu777> anyone?
arya has quit [Ping timeout: 252 seconds]
rakl has quit [Quit: sleeping]
taoru has joined #ruby
yshh has joined #ruby
objectivemo has quit [Remote host closed the connection]
havenn has joined #ruby
objectivemo has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
arya has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
kmurph has joined #ruby
objectivemo has quit [Quit: objectivemo]
jrajav has joined #ruby
adeponte has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
julian-dephiki has joined #ruby
tommyvyo has joined #ruby
dallasm has quit [Remote host closed the connection]
otherj has quit [Quit: otherj]
aedornm has joined #ruby
Retistic has joined #ruby
dallasm has joined #ruby
tommyvyo has quit [Client Quit]
ntzrmtthihu777 has left #ruby [#ruby]
julian-dephiki has quit [Ping timeout: 276 seconds]
crackfu has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
crackfu has joined #ruby
julian-dephiki has joined #ruby
parkinson2013 has quit [Quit: Ex-Chat]
freeayu has joined #ruby
MattRB has joined #ruby
julian-dephiki has quit [Client Quit]
arya has quit [Ping timeout: 240 seconds]
ZT has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
elico has joined #ruby
chrishough has joined #ruby
tommyvyo has quit [Client Quit]
raul782 has joined #ruby
crackfu has quit [Ping timeout: 276 seconds]
cardoni has joined #ruby
toolz has joined #ruby
MattRB has quit [Client Quit]
arya has joined #ruby
baroquebobcat has joined #ruby
MattRB has joined #ruby
unsay has quit [Ping timeout: 245 seconds]
DrShoggoth has quit [Quit: Leaving]
rakl has joined #ruby
cardoni has quit [Ping timeout: 245 seconds]
<ninegrid> futbol
Spooner has quit [Read error: Connection reset by peer]
daniel_- has quit [Ping timeout: 244 seconds]
<kylescottmcgill> i saw somewhere people talking about rbenv, i just want to clarify something, rbenv looks nice, but the one thing i love about rvm is that i dont have to sudo to install a gem, is this the same for rbenv?
horofox has quit [Quit: horofox]
IstKrieg has joined #ruby
<ninegrid> kylescottmcgill: i dont think so...
<ninegrid> ~/.rbenv is where everything goes, as long as the permissions are correct then you don't have to sudo
IstKrieg has left #ruby [#ruby]
<kylescottmcgill> ninegrid: excellent, thats exactly what i wanted to know, thanks
<ninegrid> curious though, why would you switch
<kylescottmcgill> ninegrid: just to get a better feel for my options
icole has joined #ruby
<kylescottmcgill> i have nothing against rvm at all, however i have seen rbenv pop up all of the place, and it perked my interest
tommyvyo has joined #ruby
taoru has quit [Remote host closed the connection]
jaequery has quit [Quit: Computer has gone to sleep.]
<havenn> kylescottmcgill: Another really nice option is chruby.
jaequery has joined #ruby
TomyLobo has quit [Quit: Standby mode...]
<havenn> kylescottmcgill: Switches Rubies with name globbing, so you can do: chruby 1.9
<havenn> kylescottmcgill: https://github.com/postmodern
<havenn> kylescottmcgill: no shims and lightest weight of the three
<havenn> Oop, bad link, meant: https://github.com/postmodern/chruby
<havenn> kylescottmcgill: No sudo required with chruby.
arya has quit [Ping timeout: 276 seconds]
<havenn> s/name globbing/fuzzy matching by Ruby name
<kylescottmcgill> havenn: hey thanks for that, i will def look into this! i like minimal interfaces
arya has joined #ruby
<banisterfiend> havenn: how does it compare to rbfu again?
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<havenn> kylescottmcgill: Gets the job done with just setting correct PATH and ENV vars. :)
<kylescottmcgill> ya nice
<havenn> banisterfiend: Instead of shims it sets correct env vars based on the Ruby you choose.
tommyvyo has joined #ruby
kmurph has quit [Quit: kmurph]
jaequery has quit [Quit: Computer has gone to sleep.]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
eka has joined #ruby
dr_neek has joined #ruby
<dr_neek> Hey all. Does anyone have any experience with retrieving inline attachments from email? I can't seem to make the mail gem work with mail sent from iPhone or iMail. It shows attachments == []
arya has quit [Ping timeout: 244 seconds]
elux has joined #ruby
nfk has quit [Quit: yawn]
unsay has joined #ruby
techhelp has joined #ruby
crackfu has joined #ruby
unsay has quit [Ping timeout: 252 seconds]
arya has joined #ruby
pskosinski has quit [Quit: Drama: Open source spirit and copyright infringement according to Quinton Reeves, Red Eclipse developer: http://pawelk.pl/quinton-reeves]
cableray has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
murilo_fs has joined #ruby
murilo_fs has quit [Quit: Konversation terminated!]
tjbiddle has joined #ruby
nari has joined #ruby
advorak has quit [Remote host closed the connection]
arya has quit [Ping timeout: 260 seconds]
lupinstein has quit [Ping timeout: 264 seconds]
dallasm has quit [Remote host closed the connection]
julian-dephiki has joined #ruby
samphipp_ has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
<aedornm> hmmm this is really interesting - I seem to have a socket that stays open indefinitely while using Mechanize. It never times out, it just keeps waiting for data from the site on port 80. I'm a tad confused at this
fyolnish has joined #ruby
iamjarvo has joined #ruby
julian-dephiki has quit [Client Quit]
keanehsiao has quit [Quit: keanehsiao]
jpfuentes2 has joined #ruby
julian-dephiki has joined #ruby
techhelp has joined #ruby
banisterfiend is now known as banister`sleep
adeponte has quit [Remote host closed the connection]
<aedornm> huh ... infinite get request/syn ack loop
unsay has joined #ruby
michaelmartinez has joined #ruby
mengu has quit [Quit: Leaving]
Hanmac1 has joined #ruby
rakl has quit [Quit: sleeping]
icole has quit [Remote host closed the connection]
lupinstein has joined #ruby
cardoni has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
gunthler has joined #ruby
elico has quit [Remote host closed the connection]
icole has joined #ruby
chrisramon has quit [Quit: chrisramon]
icole has quit [Remote host closed the connection]
arya has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
benlieb has joined #ruby
jaequery has joined #ruby
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
cardoni has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Quit: tjbiddle]
idkazuma has quit [Remote host closed the connection]
ttt has joined #ruby
angusiguess has joined #ruby
kmurph has joined #ruby
kpshek has joined #ruby
julian-dephiki has quit [Quit: Computer has gone to sleep.]
adkron has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
kpshek has quit [Ping timeout: 260 seconds]
ffranz has joined #ruby
ben_h has quit [Quit: ben_h]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
raul782 has quit [Remote host closed the connection]
onemanjujitsu has joined #ruby
emmanuelux has quit [Remote host closed the connection]
arya_ has joined #ruby
ben_h has joined #ruby
emocakes has quit [Quit: emocakes]
arya has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
michaelmartinez has joined #ruby
cupakromer has joined #ruby
aaronmacy has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
kmurph has quit [Quit: kmurph]
techlife has quit [Ping timeout: 255 seconds]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
Fezzler has joined #ruby
techlife has joined #ruby
adeponte has quit [Ping timeout: 246 seconds]
adkron has quit [Ping timeout: 245 seconds]
gmurphy has quit [Quit: Leaving]
niklasb has quit [Ping timeout: 240 seconds]
rakl has joined #ruby
<dr_neek> Anyone have ruby mail experience?
<dr_neek> Fetching?
rramsden has joined #ruby
idkazuma has joined #ruby
onemanjujitsu has quit [Ping timeout: 248 seconds]
krz has joined #ruby
kmurph has joined #ruby
adkron has joined #ruby
oscardelben has joined #ruby
roadt_ has joined #ruby
thorncp has quit [Quit: hills]
MattRB has quit [Quit: This computer has gone to sleep]
mhf has joined #ruby
swarley- has joined #ruby
Bry8Star has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
moshee has quit [Ping timeout: 264 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
mhf has quit [Remote host closed the connection]
swarley| has quit [Ping timeout: 276 seconds]
pac1 has quit [Quit: I got it one line of code at a time]
G has quit [Quit: leaving]
vinax has joined #ruby
mhf has joined #ruby
mhf has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
mneorr_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
<_br_> dr_neek: Fetching mail? I'm a big fan of Ruby, but I'm wondering if something like offlineimap wouldn't be a better choice, since it is quite battle hardend.
arya has joined #ruby
kmurph has quit [Quit: kmurph]
gabrielrotbart has quit [Read error: Connection reset by peer]
<dr_neek> _br_: I have to fetch attachments from email. Does offline imap put it into a different container or put them into the file system?
Fezzler has quit [Quit: Leaving]
adkron has quit [Ping timeout: 252 seconds]
cardoni has joined #ruby
gabrielrotbart has joined #ruby
x82_nicole has joined #ruby
swarley| has joined #ruby
kmurph has joined #ruby
swarley- has quit [Ping timeout: 245 seconds]
cardoni has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
pcarrier has quit []
kmurph has quit [Quit: kmurph]
angusiguess has joined #ruby
pskosinski has joined #ruby
Doyley has joined #ruby
rakl has quit [Quit: sleeping]
icole has joined #ruby
mhf has joined #ruby
rdark has joined #ruby
justsee has quit [Quit: Leaving...]
yacks has joined #ruby
billyoc has joined #ruby
icole has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
mhf has quit [Read error: Connection reset by peer]
mhf has joined #ruby
ZT has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 248 seconds]
icole has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
onemanjujitsu has joined #ruby
Umren has quit [Ping timeout: 276 seconds]
hackerdude has joined #ruby
Doyley has left #ruby [#ruby]
sleetdrop has joined #ruby
jamescarr has joined #ruby
mhf has quit [Read error: Connection reset by peer]
mhf has joined #ruby
arya has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
techhelp has joined #ruby
arya has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
pyro111 has joined #ruby
reppard has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
arya has joined #ruby
icole has quit [Remote host closed the connection]
ahokaomaeha has joined #ruby
reppard has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
Retistic has quit [Quit: Retistic]
jon31 has joined #ruby
<jon31> i got the impression that shoes is the most preferred gui kit for ruby. but it seems like their site is down and i can't download the windows installer
onemanjujitsu has quit [Quit: onemanjujitsu]
billyoc has quit [Remote host closed the connection]
zenloop has joined #ruby
rippa has joined #ruby
sleetdrop has quit [Remote host closed the connection]
jamescarr has quit [Quit: jamescarr]
joshman_ has joined #ruby
cupakromer has quit [Quit: Computer has gone to sleep.]
<jon31> anybody?
julian-dephiki has joined #ruby
michaelmartinez_ has joined #ruby
gunthler has left #ruby [#ruby]
onemanjujitsu has joined #ruby
michaelmartinez_ has left #ruby [#ruby]
radic has quit [Disconnected by services]
radic_ has joined #ruby
ben_h has quit [Quit: ben_h]
cha1tanya has quit [Quit: Leaving]
mhf has quit [Remote host closed the connection]
ben_h has joined #ruby
mikepack has joined #ruby
icole has joined #ruby
Umren has joined #ruby
huttan has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
keanehsiao has joined #ruby
tfittsy has joined #ruby
cardoni has joined #ruby
oreo has joined #ruby
vinax has quit []
<oreo> Hello. Would any of you know if there is a limit to the concurrent number of SCP transfers for a given SSH connection? I guess getting Net::SSH::ChannelOpenFailed when I seem to issue a large number of concurrent transfers.
cardoni has quit [Ping timeout: 276 seconds]
onemanjujitsu has quit [Quit: onemanjujitsu]
idkazuma has quit [Remote host closed the connection]
recycle__ is now known as recycle
gabrielr_ has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
Bubo has joined #ruby
Bubo has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
frem has joined #ruby
frem has quit [Client Quit]
io_syl has joined #ruby
mahmoudimus has joined #ruby
oscardelben has quit [Quit: oscardelben]
Myconix has joined #ruby
sascha__ has joined #ruby
reuven has quit [Ping timeout: 244 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
ananthakumaran1 has joined #ruby
skbierm1 has quit [Ping timeout: 245 seconds]
oscardelben has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
ahokaomaeha has quit [Ping timeout: 240 seconds]
pabloh has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 248 seconds]
julian-dephiki has quit [Quit: Computer has gone to sleep.]
crackfu has quit [Quit: Leaving...]
<oreo> Hello. Would any of you know if there is a limit to the concurrent number of SCP transfers for a given SSH connection? I guess getting Net::SSH::ChannelOpenFailed when I seem to issue a large number of concurrent transfers.
MattRB has joined #ruby
gabrielrotbart has joined #ruby
gabrielr_ has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
chrishough has quit [Quit: chrishough]
keanehsiao has quit [Read error: Connection reset by peer]
spaceships has quit [Quit: leaving]
kn330 has joined #ruby
aaronmacy has quit [Quit: Leaving.]
noop has joined #ruby
icole has quit [Remote host closed the connection]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
ttt has quit [Remote host closed the connection]
Myconix has quit [Ping timeout: 264 seconds]
Tabrenus has joined #ruby
mneorr_ has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
xemu has quit [Ping timeout: 245 seconds]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
bradleyprice has joined #ruby
arya has quit [Ping timeout: 248 seconds]
joeycarmello has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mxweas has quit [Quit: Computer has gone to sleep.]
Retistic has joined #ruby
arya has joined #ruby
JumpMast3r has joined #ruby
kmurph has joined #ruby
otherj has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
kn330 has quit [Ping timeout: 252 seconds]
tfittsy has quit [Ping timeout: 245 seconds]
cardoni has joined #ruby
mneorr has joined #ruby
Myconix has joined #ruby
etcetera has joined #ruby
Bosox20051 has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
genta has left #ruby ["Leaving..."]
etcetera has quit [Client Quit]
cardoni has quit [Ping timeout: 264 seconds]
<Jeaye> What's the standard way to perform GET requests? (Assuming no gems)
otherj has quit [Quit: otherj]
vincentpaca has quit [Ping timeout: 248 seconds]
vincentpaca has joined #ruby
po has joined #ruby
Retistic has quit [Quit: Retistic]
ananthakumaran1 has quit [Quit: Leaving.]
gosshedd has joined #ruby
po has left #ruby [#ruby]
kmurph has quit [Quit: kmurph]
Umren has quit [Read error: Operation timed out]
nomenkun has joined #ruby
kmurph has joined #ruby
<ben_h> Jeaye: require 'net/http'; Net::HTTP.get(URI.parse('http://ruby-lang.org'))
<Jeaye> Oh, excellent.
<Jeaye> Is there a bot/command for recommended Ruby books? I'm really liking Ruby so far.
joeycarmello has joined #ruby
vincentpaca1 has joined #ruby
vincentpaca has quit [Ping timeout: 248 seconds]
girija_ has joined #ruby
<havenn> Jeaye: Another option (for only GET) is: require 'open-uri'; open 'http://rubylang.org'
<otters> open("http://rubylang.org").read
<Jeaye> open("foo") do |line| puts line end # right?
browndawg has joined #ruby
joeycarmello has quit [Remote host closed the connection]
jonathanwallace2 has joined #ruby
dougireton has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
jonathanwallace1 has quit [Ping timeout: 276 seconds]
<havenn> Jeaye: Usually (assuming you're fetching HTML?) I'd use Nokogiri to straight up parse it: html = Nokogiri::HTML(open('http://foo'))
<havenn> Jeaye: I think "The Ruby Programming Language" is an excellent book! http://shop.oreilly.com/product/9780596516178.do
rakl has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
jonathanwallace3 has joined #ruby
<havenn> Jeaye: Here's a list of 10 free e-books on Ruby: http://readwrite.com/2011/04/08/10-free-e-books-on-ruby-for-be
browndawg has joined #ruby
fir_ed has quit [Ping timeout: 248 seconds]
<havenn> Jeaye: Actually, ruby-lang.org has a great list of resources: http://www.ruby-lang.org/en/documentation/
L1 has joined #ruby
L1 has quit [Changing host]
L1 has joined #ruby
jonathanwallace2 has quit [Ping timeout: 246 seconds]
gabrielrotbart has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
<Jeaye> havenn: Featching JSON from the Github API
<Jeaye> No ability to isntall gems though
<havenn> Jeaye: Aha. Ruby 1.9+?
dawkirst has joined #ruby
<Jeaye> havenn: Hmm, can I check from within Ruby?
rippa has quit [Ping timeout: 240 seconds]
<havenn> Jeaye: RUBY_VERSION
a_a_g has joined #ruby
<havenn> Or RUBY_DESCRIPTION
<Jeaye> 1.8.7
<havenn> Jeaye: Ah, too bad - on 1.9 without needing a gem you can: require 'json'
<_br_> dr_neek: Filesystem, maildir. Basically one file one mail.
<Jeaye> Awww
<havenn> Jeaye: Can you install gems if you do it from within Ruby?
mneorr_ has joined #ruby
<Jeaye> havenn: Hmm, maybe. I just don't have access to this website's cpanel, but I've FTP access and CGI support.
yacks has quit [Ping timeout: 246 seconds]
cableray has quit [Quit: cableray]
bradleyprice has quit [Remote host closed the connection]
NemesisD has joined #ruby
noop_ has joined #ruby
ben_h has quit [Quit: ben_h]
<havenn> Jeaye: I'd suggest trying installing from within Ruby. Something like: https://gist.github.com/4705238
codecop has joined #ruby
mneorr has quit [Ping timeout: 255 seconds]
<Jeaye> Ohh, interesting.
girija_ has quit [Ping timeout: 256 seconds]
<havenn> Jeaye: If that works... They you can swap out 'json' for whatever other gem you want to install.
<havenn> *if*
ananthakumaran has joined #ruby
<Jeaye> Right.
<havenn> HTTParty is a nice wrapper around Net::HTTP.
noop has quit [Ping timeout: 248 seconds]
wreckimn1 has joined #ruby
Myconix has quit [Ping timeout: 248 seconds]
<NemesisD> anyone remember a talk about service oriented architecture where there was one big event stream and then services tap into it either to get all future messages or they could go back to the start and replay history
<NemesisD> im not sure who gave the talk or what tech they used
whowantstolivefo has joined #ruby
<Jeaye> havenn: CGI doesn't seem to like it.
pyro111 has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
gabrielrotbart has joined #ruby
wreckimn1 has quit [Ping timeout: 252 seconds]
keanehsiao has joined #ruby
pyro111 has joined #ruby
jon31 has quit [Ping timeout: 255 seconds]
<NemesisD> havenn: maybe. i looked at his slide deck and not the presentation, didn't see any particular comment on the tech there
<NemesisD> maybe its in the talk and not the deck
<havenn> Jeaye: I guess you could store the JSON gem locally on the site. And require it. Tough to be able to parse JSON in 1.8 without access to gems.
<havenn> Jeaye: Oh wait, you could use YAML to parse the JSON I guess.
hackerdude has quit [Remote host closed the connection]
JumpMast3r has quit [Quit: JumpMast3r]
po has joined #ruby
pyro111 has quit [Ping timeout: 245 seconds]
icole has joined #ruby
<NemesisD> havenn: he mentions the solution: one giant queue that everyone can look at, but he said he doesn't do it like that
justsee has quit [Quit: Leaving...]
<NemesisD> i really thought i heard of someone laying out their architecture like this before
ttt has joined #ruby
icole_ has joined #ruby
Retistic has joined #ruby
icole has quit [Read error: Connection reset by peer]
girija_ has joined #ruby
tfittsy has joined #ruby
decoponio has joined #ruby
iamjarvo has quit [Quit: Leaving.]
tjbiddle has joined #ruby
fphilipe has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
techhelp has quit [Quit: This computer has gone to sleep]
cardoni has joined #ruby
pyro111 has joined #ruby
arya has left #ruby [#ruby]
arya has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
<Jeaye> I need a converter for my C++ thoughts to Ruby.
Banistergalaxy has joined #ruby
<NemesisD> Jeaye: drink to forget. start from scratch
postmodern has joined #ruby
<Jeaye> Yeah.
<Jeaye> _Really_ sucks not being able to use gems (and not being 1.9 and having json available)
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
cardoni has quit [Ping timeout: 276 seconds]
techhelp has joined #ruby
emergion has joined #ruby
tfittsy has quit [Ping timeout: 248 seconds]
tfittsy has joined #ruby
<NemesisD> you can't use gems because you think in C++?
bettor has joined #ruby
lolmaus has joined #ruby
<whitequark> Jeaye: if you're using 1.8, you are doing it wrong. period.
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
techhelp has quit [Client Quit]
<Jeaye> NemesisD, whitequark: Nah, just what my host is using. -_-
krz has quit [Quit: krz]
<NemesisD> whitequark: at work, for a while ree 1.8 was significantly more performant than 1.9
<whitequark> NemesisD: emphasis on was
<whitequark> Jeaye: your host?
<NemesisD> somewhat. i haven't tested it that much, but i noticed that our JSON encoding stuff is faster in 1.9
dawkirst has quit [Quit: Leaving]
<whitequark> NemesisD: gem install oj, probably
dawkirst_ has joined #ruby
dawkirst_ has quit [Client Quit]
<Jeaye> whitequark: HostMonster, and it's on someone else's site, so I don't have access to the cpanel to isntall gems.
dawkirst has joined #ruby
* Jeaye can never type 'install' properly. -_-
<NemesisD> whitequark: was using yajl at the time
pyro111 has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
thufir_ has quit [Quit: Leaving.]
nomenkun has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
mercwithamouth has quit [Quit: Lost terminal]
generali_ has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
backjlack has joined #ruby
pcarrier has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
zenloop has quit [Quit: zenloop]
dougireton has quit [Quit: Leaving.]
tjbiddle has quit [Quit: tjbiddle]
nazty has quit [Ping timeout: 244 seconds]
_br_ has quit [Excess Flood]
oscardelben has quit [Quit: oscardelben]
joeycarmello has joined #ruby
Retistic has quit [Quit: Retistic]
<Jeaye> havenn: What file would I need to copy locally for the json gem?
d34th4ck3r has joined #ruby
<Jeaye> I've the 1.9 version on my Arch machine, but there are many files in the gem json directory.
_br_ has joined #ruby
<havenn> Jeaye: Could you use 1.8 YAML parser to parse the JSON?
icole_ has quit [Remote host closed the connection]
<havenn> Jeaye: Quite a bind being stuck on 1.8 and also not being able to use gems!
<Jeaye> Yeah. I s'pose I could use YAML, but I'm just looking to get this job done quickly (while the Ruby books are in the mail) and the JSON gem seemed like the fastest way of doing it.
<Jeaye> wouldn't I need to supply my own grammar file to YAML?
joeycarmello has quit [Ping timeout: 248 seconds]
mockra has joined #ruby
macrun8 has joined #ruby
<havenn> Jeaye: Since JSON is a proper subset of YAML I'd think it should work okay.
d34th4ck3r has quit [Quit: Konversation terminated!]
jozefk has joined #ruby
jozefk has joined #ruby
jozefk has quit [Changing host]
<havenn> Jeaye: E.g.: ghetto_json = YAML.parse '{ "JSON": "Indeed" }'; ghetto_json.first.value #=> "JSON"
girija_ has quit [Ping timeout: 255 seconds]
nomenkun has joined #ruby
jozefk has left #ruby [#ruby]
<Jeaye> Hmm, first.value?
benlieb has quit [Quit: benlieb]
mockra has quit [Ping timeout: 255 seconds]
<Jeaye> ghett_json["JSON"] would give "Indeed" then?
toekutr has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<havenn> Jeaye: Hrm, i've never used yaml to parse json before, but my brain isn't functioning properly atm. >.>
<Jeaye> :P Ok.
michaelmartinez has joined #ruby
fphilipe has quit [Remote host closed the connection]
dv_ has quit [Ping timeout: 264 seconds]
girija_ has joined #ruby
acrocity has quit [Read error: Connection reset by peer]
macrun8 has quit [Remote host closed the connection]
osaut has joined #ruby
acrocity has joined #ruby
aaronmacy has joined #ruby
dv_ has joined #ruby
samlt has joined #ruby
ahokaomaeha has joined #ruby
Nigel_ has joined #ruby
benlieb has joined #ruby
postmodern has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
nomenkun has quit [Remote host closed the connection]
Archnoob has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
zommi has joined #ruby
yacks has joined #ruby
Archnoob has left #ruby [#ruby]
robustus has joined #ruby
Nigel_ is now known as G
techlife has quit [Ping timeout: 244 seconds]
blaxter has joined #ruby
angusiguess has joined #ruby
h8R has quit [Ping timeout: 248 seconds]
cardoni has joined #ruby
h8R has joined #ruby
Elhu has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<shevy> lol
<shevy> ghetto_json... what a variable name
techlife has joined #ruby
cardoni has quit [Ping timeout: 252 seconds]
angusiguess has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
mafolz has joined #ruby
fphilipe has joined #ruby
dhruvasagar has joined #ruby
acrocity has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
sepp2k has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
acrocity has joined #ruby
<shevy> hmmmm
<shevy> when to use a module and when a class? especially when it comes to class methods
<shevy> class Foo; def self.test vs. module Foo; def self.test
Tabrenus has quit [Quit: Tabrenus]
<shevy> right now I am changing module to class
Morkel has joined #ruby
<shevy> somehow, one has lots of more power when using a class :(
arya has quit [Ping timeout: 248 seconds]
az7ar has joined #ruby
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
grzywacz has joined #ruby
BizarreCake has joined #ruby
shock_one has joined #ruby
filipe has joined #ruby
bigkevmcd has joined #ruby
kiwnix has joined #ruby
zigomir has joined #ruby
samuel02 has joined #ruby
toekutr has quit [Remote host closed the connection]
bricker`1ork has joined #ruby
afd__ has quit [Quit: No Ping reply in 180 seconds.]
acrocity_ has joined #ruby
afd__ has joined #ruby
main_ has joined #ruby
bricker`work has quit [Read error: Operation timed out]
acrocity has quit [Ping timeout: 245 seconds]
acrocity_ is now known as acrocity
krz has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
Xeago has joined #ruby
eldariof has joined #ruby
lundahl has joined #ruby
Morkel_ has joined #ruby
JumpMast3r has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
Norrin has joined #ruby
Norrin has left #ruby ["Textual IRC Client: www.textualapp.com"]
arya has joined #ruby
arkiver has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
arya has quit [Client Quit]
benlieb has quit [Quit: benlieb]
ttt_ has joined #ruby
arya has joined #ruby
a_a_g has quit [Ping timeout: 256 seconds]
gouthamvel has joined #ruby
Retistic has joined #ruby
pyro111 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
acrocity_ has joined #ruby
dcwu has quit [Quit: Leaving.]
arya has quit [Ping timeout: 244 seconds]
Jeaye has quit [Quit: zzzZZZzzz]
main_ has quit [Ping timeout: 276 seconds]
sascha__ is now known as skbierm
acrocity has quit [Read error: Operation timed out]
acrocity- has joined #ruby
yacks has joined #ruby
idkazuma has joined #ruby
Elhu has joined #ruby
arya has joined #ruby
acrocity_ has quit [Ping timeout: 248 seconds]
wallerdev has quit [Quit: wallerdev]
marr has joined #ruby
horofox has joined #ruby
slainer68 has joined #ruby
kmurph has quit [Quit: kmurph]
meoblast001 has quit [Read error: Connection reset by peer]
arkiver has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
acrocity has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
skbierm has quit [Quit: Verlassend]
acrocity- has quit [Ping timeout: 255 seconds]
acrocity_ has joined #ruby
dr_bob has joined #ruby
NemesisD has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
acrocity has quit [Ping timeout: 244 seconds]
acrocity_ is now known as acrocity
Hypn has joined #ruby
pcarrier has quit []
cardoni has joined #ruby
kmurph has joined #ruby
stkowski has quit [Quit: stkowski]
acrocity_ has joined #ruby
angusiguess has joined #ruby
andredieb has quit [Ping timeout: 264 seconds]
razibog has joined #ruby
tjbiddle has joined #ruby
acrocity has quit [Ping timeout: 240 seconds]
acrocity_ is now known as acrocity
andredieb has joined #ruby
andredieb has quit [Changing host]
andredieb has joined #ruby
kmurph has quit [Client Quit]
tjbiddle has quit [Remote host closed the connection]
cardoni has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby
maxmanders has quit [Max SendQ exceeded]
aaronmacy has quit [Quit: Leaving.]
angusiguess has quit [Ping timeout: 276 seconds]
slainer68 has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
johndouthat has quit [Quit: johndouthat]
lkba has joined #ruby
ferdev|away is now known as ferdev
piotr_ has joined #ruby
DefV has quit [Ping timeout: 264 seconds]
robotmay has joined #ruby
DefV has joined #ruby
<shevy> down with modules
<shevy> freedom for classes!
<havenn> modules rise up and overthrow the oppressive class!
jimeh has joined #ruby
<Paradox> some artists really basically exist to have their music put in ski videos
<Paradox> not sure if its the artists fault
<Paradox> or the ski video genre
<havenn> shevy: I think classes are overused more often than modules! Not often you see someone unnecessarily reimplement #new and #initialize, but all the time classes used when a module would do!
<Paradox> erm
<Paradox> damnit
<Paradox> ah well
<Paradox> that wasnt meant for this it was meant for skiing on another network
<Paradox> but lol
wargasm has quit [Read error: Connection reset by peer]
<shevy> havenn well, modules allow only one unique aspect, which is mixins
wargasm has joined #ruby
hiroyuki_ has joined #ruby
<shevy> other than that, they aren't useful for anything much at all. one can use classes as namespace as well
<shevy> in fact, apeiros is doing that!
balr0g has quit [Ping timeout: 256 seconds]
<havenn> shevy: Modules seem lighter weight to me. All classes are modules, no? :O
mercwithamouth has joined #ruby
nomenkun has joined #ruby
<shevy> I think it all comes down to what matz wanted to have
arya_ has joined #ruby
<shock_one> havenn, modules are not fertile classes!
kmurph has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
<shevy> subclassing vs. include functionality seems to have a lot of overlapping concern
hiroyuki has quit [Ping timeout: 255 seconds]
<shock_one> shevy, it's always about «is a» and «has a»
Nisstyre-laptop has quit [Ping timeout: 244 seconds]
<havenn> Paradox: Ski.new #ArgumentError: wrong number of arguments (0 for 1); Ski.new('classic surf track') #=> "carve em"
<shevy> my cat wants to eat my greek yoghurt right now :(
<Paradox> havenn, good idea
<Paradox> i'll throw some dick dale in
arya has quit [Ping timeout: 255 seconds]
<shevy> hey Paradox did you play DOS games?
<Paradox> yes
<shevy> if only ruby would make it super easy to recreate such games!
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
<Paradox> sim ant
hoelzro|away is now known as hoelzro
beiter has joined #ruby
TheFuzzball has joined #ruby
wreckimn1 has joined #ruby
<havenn> shevy: Just discovered Boxer for OS X, so cool! Nostalgia. Installed Lemmings on Boxer and fullscreen it on OS X. Mmmmmhmmm.
krz has quit [Quit: krz]
<havenn> shevy: Just drag a dos game folder on to Boxer window, and it opens a virtualized MSDOS console in the dos dir.
<havenn> I had no idea... There are so many hours I could have been wasting.
<Paradox> sim city 2k
<shevy> haha lemmings were awesome
<shevy> but there was one level where one had to solve it just by being fast with the mouse and avoid mistakes
<shevy> I failed at that...
<shevy> my dad managed. so i stopped playing lemmings...
<havenn> Paradox: Haha, just tried installing Sim City 2000 and it asked me to insert a floppy in my A drive.
<Paradox> oh god
<Paradox> on OS X?
<Paradox> you know that there is a GOG version
<Paradox> sure its not the good one
<Paradox> but its sim city
po has quit [Ping timeout: 245 seconds]
<Paradox> the good one is the mac edition
<Paradox> remember that one, had the awesome music
Hanmac has joined #ruby
<havenn> Paradox: Yeah, played the mac one in high school.
<Paradox> remember sim tower too?
<havenn> Paradox: Thought that was all the apple was good for. That and hypercard. :P
<Paradox> i love macs
<Paradox> and always have
<Paradox> even though i had pc up till this one
<Paradox> other than my first being a 128k mac
<Paradox> lol
<shevy> I remember sim ants
po has joined #ruby
<havenn> shevy: never played that one
<shevy> my only purpose was to slay enemy ants in that game
<Paradox> i loved using cheats
<Paradox> and taking over the spider
<Paradox> and shooting lasers
<shevy> havenn, it was kind of cool, because it was a game, yet at the same time you could learn about ants, in some ways. such games should have been much more widespread, and also better, it would give more incentives for kids to learn while playing
<Paradox> one of the best guitar solos i've ever heard
subbyyy has quit [Ping timeout: 260 seconds]
<Paradox> oh god
fuzai has quit [Quit: fuzai]
<Xeago> oh god, it's one of those 'gassy' mornings again..
<Paradox> oh god
<Paradox> chips challenge
<Paradox> :(
<Paradox> y no chips 2
subbyyy has joined #ruby
<shevy> hmmm
<shevy> can i do: module Foo; class Object; end; end
<shevy> or will this conflict
po_ has joined #ruby
<hoelzro> shevy: I don't see why that wouldn't work
<hoelzro> although it may be confusing if you ever refer to it as just Object
<shevy> yeah good point
dr_bob has quit [Quit: Leaving.]
<shevy> I already managed to confuse myself :D
jaequery has quit [Quit: Computer has gone to sleep.]
po_ has quit [Client Quit]
main_ has joined #ruby
cha1tanya has quit [Ping timeout: 248 seconds]
ABK has joined #ruby
<shevy> in fact, I did ...
<shevy> something like
<shevy> def foo(i = Object.to_s)
dr_bob has joined #ruby
Konboi has quit [Remote host closed the connection]
cha1tanya has joined #ruby
clocKwize has joined #ruby
clocKwize has quit [Client Quit]
po has quit [Ping timeout: 256 seconds]
adeponte has quit [Remote host closed the connection]
<Hanmac> shevy it does not conflct ... because your Object class in the namespace is a different class Object than in the main space
<shock_one> shevy, isn't it the whole point of modules to have the ability to create the classes with the same names in different scopes?
Elhu has joined #ruby
reinaldob has joined #ruby
<shevy> shock_one I hope so... but I really confused myself a lot here...
<Hanmac> if you are inside the Foo namespace and you want to access the orginal object class, do ::Object
pavilionXP has quit [Ping timeout: 256 seconds]
<shevy> I have a bunch of .rb files, where the name.rb becomes class Name, and one file is called object.rb with a method "def object" inside... now I wanted to extend it by some default Object.some_method thingies, but that is kind of confusing
<shevy> Hanmac aha
blacktulip has joined #ruby
adambeynon has joined #ruby
bapul has joined #ruby
mneorr_ has quit [Remote host closed the connection]
tvw has joined #ruby
cha1tanya has quit [Remote host closed the connection]
ferdev is now known as ferdev|away
<shock_one> shevy, It's very bad idea to name your class Object. Can you change it?
<bapul> hi,i am using ruby xmpp4r library to implement multi user group chat application with openfire server. Is there is any class present in xmpp4r library to return group chat history?? any help appriciate ?
<shevy> shock_one yeah, I decided to not use any "class Object". this file lacks it, but it's ok, it would confuse me too much if I have lots of different "class Object" in different namespaces
* Hanmac hates php and magento more and more ... it does have typed parameters like doSomething(A $obj) , but 1.) it does not support overload and 2.) for some unknown reason magento can deactivate that type check
<shevy> Hanmac why do you use php :P
heckler has quit [Ping timeout: 276 seconds]
<Hanmac> because i get paid for that :(
slainer68 has quit [Remote host closed the connection]
<shevy> ah I see
elaptics`away is now known as elaptics
<shevy> my paths are getting awful
<shevy> I generate .html pages with ruby even in deep-down directories
<shevy> so the link to the favicon is like this:
<shevy> <link rel="shortcut icon" href="../../../../../../../images/standard/wings.png" />
unsay has quit [Ping timeout: 276 seconds]
<shevy> :(
<shock_one> shevy, why don't use Rails.root.join ?
<shevy> shock_one hmmm
<shevy> where would rails store images though? are images stored on a per-app basis?
beiter has quit [Quit: beiter]
<shock_one> in a/a/images
<whitequark> shevy: that would give you a filesystem path, not relative to webserver root
<whitequark> Hanmac: PHP "static typing" is horribly broken, read about it
cardoni has joined #ruby
qohelet_ has joined #ruby
<shevy> whitequark hmm good point
horofox has quit [Quit: horofox]
buibex has joined #ruby
angusiguess has joined #ruby
KevinSjoberg has joined #ruby
<shock_one> shevy, why do you need to link your favicon?
ephemerian has joined #ruby
advorak has joined #ruby
<shevy> shock_one I love favicons!
<shevy> in firefox they look so neat in the tabs
swoosh has joined #ruby
horofox has joined #ruby
vlad_starkov has joined #ruby
<shock_one> shevy, OK, but there is no need to link to it. Just place it in the public folder with the name favicon.ico
techlife has quit [Ping timeout: 252 seconds]
cardoni has quit [Ping timeout: 248 seconds]
<shevy> hmm
angusiguess has quit [Ping timeout: 240 seconds]
whyme has joined #ruby
buscon has joined #ruby
techlife has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
whyme has left #ruby [#ruby]
theRoUS has joined #ruby
theRoUS has joined #ruby
<Hanmac> hm method overloading could be funny in ruby too :P
Bry8Star has joined #ruby
<shevy> hehe
<shevy> or you assign objects to every parameter of a method
<shevy> or put all logic into blocks
<shock_one> Hanmac, I believe most cases of overloading is based on parameters types, not quantity.
macrun8 has joined #ruby
<shock_one> Hanmac, but I would like to have overloaded constructors.
<Hanmac> shevy or i use my masquade object that can change its own class :D
swarley| has quit [Read error: Connection reset by peer]
<shevy> the what object? masquerade?
swarley| has joined #ruby
nari has quit [Ping timeout: 276 seconds]
acrocity has quit [Read error: Connection reset by peer]
<Hanmac> shevy an object where "obj.class #=> Fixnum; obj.to_s! obj.class #=> String" is possible :P
acrocity has joined #ruby
<shevy> hehe
techlife has quit [Ping timeout: 252 seconds]
<Xeago> please tell me this is proper english: "(This is the) weighted average over the last minute in 5 second samples."
Asher1 has joined #ruby
workmad3 has joined #ruby
r0bby has joined #ruby
woolite64__ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
woolite64 has quit [Read error: Connection reset by peer]
Asher has quit [Read error: Connection reset by peer]
yacks has quit [Ping timeout: 248 seconds]
qohelet_ has quit [Quit: qohelet_]
noxoc has joined #ruby
dr_bob has quit [Quit: Leaving.]
hamed_r has joined #ruby
georgi has joined #ruby
georgi has quit [Read error: Connection reset by peer]
georgi has joined #ruby
main_ has quit [Ping timeout: 264 seconds]
subbyyy has quit [Ping timeout: 252 seconds]
Dreamer3 has quit [Ping timeout: 246 seconds]
dr_bob has joined #ruby
techlife has joined #ruby
BizarreCake has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
main has joined #ruby
Dreamer3 has joined #ruby
girija_ has quit [Ping timeout: 248 seconds]
girija_ has joined #ruby
acrocity has quit [Read error: Connection reset by peer]
Axsuul has quit [Ping timeout: 252 seconds]
acrocity has joined #ruby
klaut has joined #ruby
klaut has quit [Remote host closed the connection]
buibex has joined #ruby
daniel_- has joined #ruby
arturaz has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
yacks has joined #ruby
kmurph has quit [Quit: kmurph]
Vainoharhainen has joined #ruby
buibex has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
osaut has quit [Quit: osaut]
Hecatic has joined #ruby
Dreamer3 has quit [Ping timeout: 252 seconds]
beliveyourdream has joined #ruby
emocakes has joined #ruby
samphippen has joined #ruby
kylescottmcgill has quit [Quit: WeeChat 0.3.8]
rakl has quit [Quit: sleeping]
buibex has joined #ruby
noop_ is now known as noop
Dreamer3 has joined #ruby
L1 has quit [Ping timeout: 248 seconds]
pavilionXP has joined #ruby
fphilipe has quit [Remote host closed the connection]
jamescarr has joined #ruby
ij has joined #ruby
vlad_starkov has joined #ruby
slainer68 has joined #ruby
vaan3713 has joined #ruby
buibex has quit [Remote host closed the connection]
buibex has joined #ruby
yshh has quit [Remote host closed the connection]
chussenot has joined #ruby
pavilionXP has quit [Ping timeout: 276 seconds]
horofox has quit [Quit: horofox]
main has quit [Remote host closed the connection]
samphippen has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
pavilionXP has joined #ruby
main has joined #ruby
cdt has joined #ruby
elico has joined #ruby
havenn has quit [Remote host closed the connection]
Retistic has quit [Quit: Retistic]
adeponte has joined #ruby
nkr has joined #ruby
swoosh has quit [Quit: Computer has gone to sleep.]
angusiguess has joined #ruby
mneorr has joined #ruby
adeponte has quit [Ping timeout: 244 seconds]
daniel_- has quit [Read error: Operation timed out]
theRoUS has quit [Ping timeout: 245 seconds]
jokke has quit [Quit: WeeChat 0.3.6]
angusiguess has quit [Ping timeout: 248 seconds]
<shevy> Xeago you must convey meaning through your sentences
mneorr has quit [Ping timeout: 240 seconds]
<shevy> I do not know what meaning your sentence wants to convey
<shevy> what exactly is the "weighted average"
<shevy> 60 / 5 is 12, 12 datasets, you give an average over 12 datasets?
<Xeago> the meaning is in the rest of the context
<Xeago> was more worried about the grammar and order of words in that sentence
lkba has quit [Ping timeout: 255 seconds]
vaan3713 has quit [Quit: Leaving]
berserkr has joined #ruby
<shevy> it has a perfect grammar, a perfect order, and also seems fairly ununderstandable :-)
anderse has joined #ruby
hemanth_ has joined #ruby
slainer68 has quit [Remote host closed the connection]
felipe has quit [Ping timeout: 248 seconds]
vaan3713 has joined #ruby
slainer68 has joined #ruby
swex_ has joined #ruby
idkazuma has joined #ruby
buibex has quit [Remote host closed the connection]
kristofers has joined #ruby
swex has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
Umren has joined #ruby
maxmanders has joined #ruby
pskosinski has quit [Quit: Drama: Open source spirit and copyright infringement according to Quinton Reeves, Red Eclipse developer: http://pawelk.pl/quinton-reeves]
buibex has joined #ruby
Catbuntu has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
buibex has quit [Remote host closed the connection]
kmurph has joined #ruby
yacks has quit [Remote host closed the connection]
skbierm has joined #ruby
kmurph has quit [Client Quit]
buibex has joined #ruby
cha1tanya has joined #ruby
kmurph has joined #ruby
techlife has quit [Ping timeout: 245 seconds]
lupinstein has quit [Ping timeout: 248 seconds]
<Xeago> it is just a snippet of a sentence
roflmaus has joined #ruby
<Xeago> you can search for it here: blog.xeago.nl/graduation/extended-abstract
<Xeago> I keep my hopes up that it makes sense when it is read in context :)
haxrbyte has quit [Ping timeout: 264 seconds]
lolmaus has quit [Read error: Connection reset by peer]
kmurph has quit [Client Quit]
haxrbyte has joined #ruby
kmurph has joined #ruby
grzywacz has quit [Ping timeout: 245 seconds]
megha has joined #ruby
yacks has joined #ruby
sepp2k has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
justsee has quit [Quit: Leaving...]
justsee has joined #ruby
<shevy> you need to read style guide books!
techlife has joined #ruby
samphippen has joined #ruby
ferdev has joined #ruby
JohnBat26 has joined #ruby
lupinstein has joined #ruby
baphled has joined #ruby
<hemanth_> !books
jamescarr has quit [Quit: jamescarr]
ij has left #ruby ["WeeChat 0.3.9.2"]
kristofers has quit []
<shevy> !books!
<shevy> :books
padi has joined #ruby
renanoronfle has joined #ruby
<ddv> !boobs
fermion has joined #ruby
<shevy> !noobs
horofox has joined #ruby
buibex has quit [Ping timeout: 264 seconds]
krz has joined #ruby
<Xeago> shevy: got any tips?
<Xeago> or recommendations?
<shevy> Xeago why? you said you are only worried about grammar before and the grammar seems fine :P
<Xeago> in that part of the subsentence
<shevy> lol
<shevy> do you want to optimize every character in every word? ;)
<Xeago> go ahead, scrutinize me: blog.xeago.nl/graduation/extended-abstract :)
<Xeago> it is in the database section
fyolnish has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
aaronmcadam has joined #ruby
<Xeago> (I really need to get some kinda tracking on it..)
sayan has quit [Quit: Leaving]
sayan has joined #ruby
<shevy> well with the picture it is easier to understand
billy_ran_away has quit [Ping timeout: 245 seconds]
hamed_r has quit [Ping timeout: 252 seconds]
<whitequark> Xeago: I have read that page and I don't understand what new stuff you've did
a_a_g has joined #ruby
mhf has joined #ruby
billy_ran_away has joined #ruby
vlad_sta_ has joined #ruby
plotter has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
yshh has joined #ruby
Xeago has joined #ruby
reinaldob has left #ruby [#ruby]
techlife has quit [Ping timeout: 244 seconds]
cardoni has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
Lemtzas is now known as Norwegia
yshh has quit [Ping timeout: 255 seconds]
rdark has quit [Ping timeout: 264 seconds]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
Norwegia is now known as Somaliland
rdark has joined #ruby
techlife has joined #ruby
cardoni has quit [Ping timeout: 264 seconds]
Somaliland is now known as Lemtzas
fermion has joined #ruby
mhf has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 276 seconds]
Hecatic has quit [Quit: Àá¼ö]
Xeago has quit [Read error: No route to host]
Xeago has joined #ruby
<Xeago> whitequark: you mean what has changed recently?
<Xeago> whitequark: you mean what has changed recently?
<Xeago> there is full history on github
<Xeago> most notably, the results section is written over the weekend
baphled has quit [Ping timeout: 252 seconds]
<Xeago> on a side note, does anyone have experience with analytics, (google analytics, segment.io)
<Xeago> any recommendations/tips?
megha has quit [Quit: WeeChat 0.4.0]
lkba has joined #ruby
reppard has joined #ruby
reppard has quit [Client Quit]
arya has joined #ruby
baphled has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
<ninegrid> Xeago: if you go with google, be sure to checkout their `webmaster tools'
carloslopes has joined #ruby
postmodern has quit [Quit: Leaving]
fir_ed has joined #ruby
mhf has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
vlad_sta_ has quit [Read error: Connection reset by peer]
chussenot has quit [Quit: chussenot]
vlad_starkov has joined #ruby
wreckimn1 has quit [Ping timeout: 252 seconds]
Lemtzas is now known as Puntland
<Xeago> thinking of going with analytics.js and hooking that up with google-analytics and webmaster tools
<ninegrid> Xeago: google analytics is pretty good, i've used a few others, including woopra
nfk has joined #ruby
aedornm has quit [Ping timeout: 248 seconds]
<ninegrid> Xeago: when you get it setup though, be sure to build funnels to get the most out of it
<Xeago> mostly interested in origin of request
<Xeago> funnels?
<ninegrid> yea if you're planning on making money with your site then using funnels is the best way to measure performance and see what works and what doesnt
<Xeago> (I only have static html pages)
banister`sleep has quit [Remote host closed the connection]
<Xeago> not interested in money at all, mostly seeing if people read it
<Xeago> I am currently located in sweden, finishing my internship
<ninegrid> then probably wouldn't matter which analytics you use
<Xeago> Gauges.js did not have city level origin of request
niklasb has joined #ruby
<ninegrid> that geo location stuff is not 100% accurate
<ninegrid> google's is probably the most accurate
RurouniJones has joined #ruby
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 244 seconds]
haxrbyte_ has joined #ruby
pu22l3r has joined #ruby
<chiel> i wish reloading in ruby wasn't such a ball ache >.<
dr_bob has quit [Quit: Leaving.]
haxrbyte has quit [Ping timeout: 240 seconds]
haxrbyt__ has joined #ruby
browndawg has joined #ruby
mjolk has joined #ruby
slainer68 has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
fir_ed has quit [Ping timeout: 248 seconds]
haxrbyte_ has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
niklasb has quit [Ping timeout: 244 seconds]
<shevy> chiel reloading what?
<Xeago> ninegrid: thanks
<shevy> I usually do it inside a reset() method, which then reloads yaml dataset etc... and re-assigns the different @ivars
samphippen has joined #ruby
casheew has quit [Read error: Connection reset by peer]
idkazuma has quit [Remote host closed the connection]
zerba has joined #ruby
casheew has joined #ruby
Bosma has quit [Read error: Connection reset by peer]
raptor has joined #ruby
raptor is now known as sc_raptor
s1n4 has joined #ruby
pu22l3r_ has joined #ruby
Bosma has joined #ruby
dr_bob has joined #ruby
emocakes has quit [Quit: emocakes]
pu22l3r has quit [Ping timeout: 252 seconds]
emocakes has joined #ruby
kn330 has joined #ruby
billy_ran_away has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
bluOxigen has joined #ruby
s1n4 has quit [Ping timeout: 256 seconds]
s1n4 has joined #ruby
billy_ran_away has joined #ruby
niklasb has joined #ruby
vaan3713 has quit [Read error: No route to host]
michele has quit [Ping timeout: 244 seconds]
pu22l3r_ has quit [Remote host closed the connection]
kn330 has quit [Remote host closed the connection]
michele has joined #ruby
krz has quit [Quit: krz]
chussenot has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
baphled has quit [Ping timeout: 264 seconds]
gyre007 has joined #ruby
swarley- has joined #ruby
rdark has quit [Quit: leaving]
bluOxigen has quit [Ping timeout: 255 seconds]
hamed_r has joined #ruby
swarley| has quit [Ping timeout: 260 seconds]
C-Desu has joined #ruby
grzywacz has joined #ruby
C-Desu has left #ruby [#ruby]
slainer68 has joined #ruby
<chiel> shevy: application code :)
quest88_ has joined #ruby
mhf has quit [Remote host closed the connection]
matled- has joined #ruby
blacktul_ has joined #ruby
AntiTyping_ has joined #ruby
a_a_g1 has joined #ruby
Morkel_ has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
swarley- has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
krislappy has joined #ruby
swex has joined #ruby
hybris has joined #ruby
chrismcgh has joined #ruby
joschi_ has joined #ruby
cardoni has joined #ruby
hybris has quit [Client Quit]
AntiTyping has quit [Read error: Connection reset by peer]
quest88 has quit [Read error: Connection reset by peer]
a_a_g has quit [Read error: Connection reset by peer]
matled has quit [Remote host closed the connection]
Teduardo has quit [Read error: Connection reset by peer]
blacktulip has quit [Read error: Connection reset by peer]
Morkel has quit [Read error: Connection reset by peer]
KevinSjoberg has quit [Ping timeout: 252 seconds]
Elhu has quit [Ping timeout: 252 seconds]
soulcake has quit [Ping timeout: 252 seconds]
alexspeller has quit [Ping timeout: 252 seconds]
Caius has quit [Ping timeout: 252 seconds]
zz_chrismcg has quit [Ping timeout: 252 seconds]
krisfremen has quit [Remote host closed the connection]
swex_ has quit [Quit: No Ping reply in 180 seconds.]
joschi has quit [Remote host closed the connection]
nopper has quit [Ping timeout: 252 seconds]
eka has quit [Ping timeout: 252 seconds]
matled- is now known as matled
AntiTyping_ is now known as AntiTyping
quest88_ is now known as quest88
chendo_ is now known as chendo
Morkel_ is now known as Morkel
hybris has joined #ruby
Teduardo has joined #ruby
Bosma has quit [Ping timeout: 252 seconds]
regedarek has quit [Ping timeout: 252 seconds]
ada2358 has quit [Ping timeout: 252 seconds]
daniel_- has joined #ruby
ada2358_ has joined #ruby
angusiguess has joined #ruby
regedarek has joined #ruby
wereHamster has quit [Ping timeout: 252 seconds]
Elhu has joined #ruby
Bosma has joined #ruby
alexspeller has joined #ruby
soulcake has joined #ruby
eka has joined #ruby
wereHamster has joined #ruby
nopper has joined #ruby
Caius has joined #ruby
atyz has joined #ruby
AndChat| has joined #ruby
AndChat| has quit [Client Quit]
cardoni has quit [Ping timeout: 255 seconds]
AndChat| has joined #ruby
lushious has joined #ruby
buibex has joined #ruby
Banistergalaxy has quit [Ping timeout: 255 seconds]
slainer68 has quit [Ping timeout: 248 seconds]
rdark has quit [Ping timeout: 276 seconds]
emocakes has quit [Quit: emocakes]
rdark has joined #ruby
Myconix has joined #ruby
cha1tanya has quit [Ping timeout: 248 seconds]
rmartin has joined #ruby
georgi has quit [Ping timeout: 252 seconds]
ryanh has quit [Quit: Computer has gone to sleep.]
baphled has joined #ruby
Morkel has quit [Quit: Morkel]
az7ar has quit [Remote host closed the connection]
jfl0wers has quit [Quit: jfl0wers]
emergion has quit [Quit: Computer has gone to sleep.]
banister`sleep has joined #ruby
banister`sleep has quit [Remote host closed the connection]
kpshek has joined #ruby
banister`sleep has joined #ruby
wreckimn1 has joined #ruby
emocakes has joined #ruby
pskosinski has joined #ruby
kpshek has quit [Client Quit]
baphled has quit [Ping timeout: 276 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
georgi has joined #ruby
kiwnix has quit [Remote host closed the connection]
sheerun has joined #ruby
bluOxigen has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
<nmeum> is there any builtin method to return all keys from a map? Or do I have to do this myself with a loop?
<nmeum> oops
<nmeum> wrong channel
s1n4 has quit [Ping timeout: 248 seconds]
arya has quit [Ping timeout: 248 seconds]
atno has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
Catbuntu has quit [Ping timeout: 245 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
kmurph has quit [Quit: kmurph]
banister`sleep has joined #ruby
<Hanmac> nmeum what channel ar you looking for? :P
<Quadlex> w00t!
<Quadlex> Secured tickets to RubyConf.au
arya has joined #ruby
aaronmcadam has quit [Quit: aaronmcadam]
samphippen has joined #ruby
Udom0 has joined #ruby
samphippen has quit [Client Quit]
girija_ has quit [Ping timeout: 248 seconds]
buibex has quit [Remote host closed the connection]
berserkr has quit [Ping timeout: 248 seconds]
afd__ has quit [Read error: Connection reset by peer]
buibex has joined #ruby
emocakes has quit [Quit: emocakes]
shock_one has quit [Quit: Ex-Chat]
arya has quit [Ping timeout: 248 seconds]
shock_one has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
arya has joined #ruby
workmad3 has joined #ruby
cha1tanya has joined #ruby
<shevy> dumdedum
mark_locklear has joined #ruby
dustint_ has joined #ruby
dustint_ has quit [Read error: Connection reset by peer]
baphled has joined #ruby
ffranz has joined #ruby
dustint has quit [Quit: Leaving]
dustint has joined #ruby
yacks has quit [Quit: Leaving]
krz has joined #ruby
jfl0wers has joined #ruby
MattRB has joined #ruby
mklappstuhl has quit [Quit: WeeChat 0.3.7]
Stilo has joined #ruby
invisime has joined #ruby
haxrbyt__ has quit [Read error: Connection reset by peer]
gestahlt has joined #ruby
<gestahlt> Hi guys!
<nmeum> Hanmac: #go-nuts ;)
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<gestahlt> Im trying to execute a linux command from a ruby script. The thing is, i have to use ruby variables inside the command. So i tried to build a string and then execute it with the ` enclosures
x0F_ is now known as x0F
rmartin has quit [Remote host closed the connection]
berserkr has joined #ruby
<tobiasvl> gestahlt: yes?
<gestahlt> Thats my string i build: parted_command = "parted -l" + " " + var + " " + "print"
<gestahlt> of course i do expect print to output parted -m /dev/sda print
<gestahlt> Now i just need to execute it as it is and build an array (which is no problem if i have the proper execution. It wont work with system since it will only return true or false)
<gestahlt> And that is where my problem is
cardoni has joined #ruby
<Hanmac> how about ? "parted -l #{var} print"
<tobiasvl> first of all a warning: be aware that inserting user-defined input into commands you run on the system might be a bad idea :)
<gestahlt> AH
yshh has joined #ruby
<tobiasvl> but yeah, Hanmac has the solution
<tobiasvl> `parted -l #{var} print`
<gestahlt> #{} is the escape from string?
<tobiasvl> string interpolation
<tobiasvl> it inserts a variable into a string
<gestahlt> And putting the command into ` does not ignore whitespaces?
<nmeum> I guess you could also use a format string if you don't like #{} :P
<Hanmac> gstahlt but BEWARE ... var can be evil like ";rm / -rf;"
<gestahlt> no, #{} is good
<tobiasvl> gestahlt: `` doesn't ignore whitespace, no. why in the world would it do that
yacks has joined #ruby
PragCypher has joined #ruby
<gestahlt> Nevermind tobias, i had just too much of it :). When i close my eyes, i see code
dhruvasagar has quit [Read error: Operation timed out]
<tobiasvl> hehe
<gestahlt> Hanmac: I need to do that! Who needs an operating system anyway?
<gestahlt> Hanmac: Operating system and saved file is for pussys. Wasnt there some script around that could turn a random entered command into rm / -rf? Just for the fun of it?
jamescarr has joined #ruby
cardoni has quit [Ping timeout: 248 seconds]
<hoelzro> why not do system 'parted', '-l', var, 'print'?
<Hanmac> gestahlt: you could first do File.blockdev?(var) it would return true for /dev/sda
abcdefg_ has joined #ruby
<gestahlt> hoelzro: Wouldnt that execute the stuff in sequence?
<hoelzro> gestahlt: no, it passes the arguments given to the 'parted' command
<hoelzro> without shell parsing
<hoelzro> it's a wrapper over fork + execve
<hoelzro> of course, if you want the output, you have to do a little more work
<hoelzro> but system has options to make that easier
rippa has joined #ruby
a_a_g1 has quit [Quit: Leaving.]
<gestahlt> Hanmac: Its okay that way, im trying to do a reimage script for a lot of different computers. And since Windows 7, 8 and OEM recovery partitions are fucked up to no avail, i need as much data about partitions possible
<gestahlt> i had a workign solution with fdisk (and hey, i hadnt to do that much regexp with it like i do it now for parted=
rmartin has joined #ruby
<whitequark> gestahlt: do you know what LOR is?..
blaxter has quit [Quit: foo]
<whitequark> because it is echo "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'
<whitequark> (DO NOT RUN)
Targen has quit [Ping timeout: 264 seconds]
<gestahlt> Not really
<shevy> wtf was that
<shevy> and what is "see" ?
<gestahlt> Regexp?
<gestahlt> Loughing out Ruby?
<gestahlt> Ah i see what whitequark did.. haha. yeah, but whats the abrivation for?
karlfreeman has joined #ruby
dr_neek has quit [Quit: dr_neek]
<shevy> it probably destroys all data on the hdd
buscon has quit [Ping timeout: 255 seconds]
<shevy> $? is probably a special variable like in ruby
<karlfreeman> Question thats been bugging me for a while. Whats preferred, if foo.nil? or unless foo.
<shevy> I dont think these are the same karlfreeman
niklasb has quit [Ping timeout: 248 seconds]
<shevy> foo.nil? checks for nil, if/unless checks for true/false primarily
<tobiasvl> karlfreeman: depends. remember that nil isn't the only thing that's false
<hoelzro> $? is indeed special
<Hanmac> hoelzro "special" in the meaning of "retarded"? :D
<shevy> true == true # => true; nil == true # => false
<karlfreeman> shevy: there not quite the same, but in the case of knowing that foo could either be truthy or nil ( eg a method of my own writing )
<tobiasvl> karlfreeman: most of the time `unless foo` is a fine idiom to use, as long as you're aware of what it actually means
<gestahlt> Woohoo.. sweet
<hoelzro> Hanmac: no, more like 'magical'
<shevy> karlfreeman well I hope foo was initialized ;)
subbyyy has joined #ruby
* gestahlt bangs his head at splitting gparted output into an array
<karlfreeman> tobiasvl: thanks. I find myself writing more verbose logical statements to find that actually I could make things easier with unless
<karlfreeman> shevy: ;)
tommyvyo has joined #ruby
hamed_r has quit [Quit: Leaving]
norm has quit [Quit: norm]
<gestahlt> Fdisk crashes on OEM Rescue partitions...
<gestahlt> sfdisk does also the same
<gestahlt> parted is a bitch to grep
<gestahlt> Arf
buscon has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest87563
Guest87563 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Catbuntu has joined #ruby
ben_h has joined #ruby
elux has quit [Quit: Leaving...]
sailias has joined #ruby
<shevy> hmm
<shevy> can I create a directory, as a specific user with lower ID than mine?
<hoelzro> gestahlt: what exactly are you trying to do?
<shevy> like I want to setup some dirs for a user, via a ruby script
<hoelzro> shevy: use sudo?
parkinson2008 has joined #ruby
atyz has quit [Quit: Leaving...]
<gestahlt> hoelzro: Im trying to get a reliable partition table output that works with the OEM System rescue partitions. From there, i will put the text formatted partition data into an array, determine what kind of partition / drive it is and create Images based on it
wudofyr_ has quit [Remote host closed the connection]
wudofyr_ has joined #ruby
<hoelzro> gestahlt: isn't there a libparted you could use?
<hoelzro> instead of shelling out to parted?
samphippen has joined #ruby
<gestahlt> hoelzro: For Windows based OS images i thought of doing it like WIM images.. means copying only the files and write the boot manager seperatly as an image
<gestahlt> uh, im a bit new to ruby, so i dont know how. Im quite used to shell script.. and my brother in law tells me it shows in my code :)
ananthakumaran has quit [Quit: Leaving.]
angusiguess has joined #ruby
padi has left #ruby [#ruby]
<gestahlt> What would be the difference / benefits of using the libparted?
<hoelzro> gestahlt: you wouldn't have to parse anything
<gestahlt> Hmmmmm
<gestahlt> That is a benefit
<hoelzro> but it would likely require knowledge of C, unless there's already a Ruby binding for it
KevinSjoberg has joined #ruby
<gestahlt> because regexp drives me mad. And splitting into an array is giving me serious headaches because the output is so fucked up that it makes a bitch to parse
<hoelzro> Hanmac: iirc, you can't just give other users arbitrary files
<gestahlt> I check for ruby bindings now then
<hoelzro> unless you're root
jpfuentes2 has joined #ruby
<gestahlt> doesnt look so good...
moos3 has joined #ruby
jamescarr has quit [Quit: jamescarr]
<Hanmac> hoelzro why not? why cant i give my own files away? :(
<hoelzro> Hanmac: I'm not sure, but it probably has something to do with setuid
joofsh has joined #ruby
jamescarr has joined #ruby
<hoelzro> if I make an executable with setuid on, and give it to someone else, I can run that process with their rights
parkinson2008 has quit [Quit: Ex-Chat]
<shevy> hmm
parkinson2013 has joined #ruby
bjeanes has quit [Ping timeout: 244 seconds]
<shevy> interesting
angusiguess has quit [Ping timeout: 245 seconds]
<shevy> sounds like a permanent trojan horse!
<hoelzro> that's probably why you can't do it =)
freeayu__ has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
noop_ has joined #ruby
bjeanes has joined #ruby
inokenty has joined #ruby
<whitequark> hoelzro: no
<whitequark> there's FFI
dr_bob has quit [Quit: Leaving.]
<hoelzro> ah, true
sambio has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
MattRB has joined #ruby
<chiel> hm.. can someone help me with this:
<chiel> ERROR: Loading command: install (LoadError) cannot load such file -- zlib
<chiel> ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand
<chiel> i installed ruby with rbenv
* Hanmac prefers selfmade over FFI
<chiel> did i not install a dependency it requires, or something?
noop has quit [Ping timeout: 276 seconds]
<Muz> Your version of ruby hasn't been compiled with zlib support.
<Hanmac> chiel did you also install the build requirements?
willob has joined #ruby
<chiel> unsure, most likely not, hehe
<Hanmac> you need to install the zlib-dev package
<hoelzro> Hanmac: me too =)
b1rkh0ff has quit [Ping timeout: 245 seconds]
<hoelzro> FFI is a crutch =P
<chiel> alright cool, any other packages i should grab while i am going to reinstall ruby?
<hoelzro> </trolling>
aquaranto has joined #ruby
<Hanmac> chiel: you could do "apt-get build-dep ruby1.9.1" that would install all possible build depends ...
willob has quit [Client Quit]
cha1tanya has quit [Quit: Leaving]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<Hanmac> after you install them you need to rebuild your ruby
s1n4 has joined #ruby
joast has quit [Quit: Leaving.]
<chiel> yep, was going to :)
<chiel> and alright, fair enough, will check that out
jpfuentes2 has joined #ruby
<chiel> man that's a lot of packages
frankkany has joined #ruby
noop_ has quit [Remote host closed the connection]
<shevy> hehe
<chiel> i'll stick with zlib for now and just update when needed
<Hanmac> :P yeah ruby has lots of extras :D
<shevy> the joy of crippled packages
<shevy> you surely must use debian, chiel right?
<Hanmac> shevy he crippeld it itself when he use rbenv :P
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<shevy> he lacked the headers, debian hates all people who need header files
<Hanmac> its not debians fault when he does not install the build depends
<chiel> shevy: i do yea
<shevy> it is a SERVER OS!!!
<chiel> like Hanmac says, it's my own fault really
<shevy> nah
v0n has joined #ruby
<chiel> i just thought rbenv install would grab relevant packages :)
<chiel> i was wrong
<shevy> do you get an easy way to tell debian to never cripple any package ever again?
emanon_ has joined #ruby
<chiel> i was not installing ruby from a package manager
<Hanmac> shevy imo its okay to spit into header, lib and data packages ... its also for mulitarching
<chiel> if i had done that, then it would no doubt have installed such dependencies.
<shevy> Hanmac you can all have pros and cons, I am listing cons
shock_one has quit [Quit: Ex-Chat]
<chiel> anyway - let's not turn this into a debian-bashing feast, no need for that :)
s1n4 has quit [Quit: leaving]
<Muz> Certainly, not an uneducated or misinformed bash.
<chiel> yarr
<chiel> compiling... zzzz
tommyvyo has joined #ruby
xemu has joined #ruby
<Hanmac> shevy you dont need the header package at run time, and extra data package is nice when you want to install the lib multiarch ... (when you dont need to install the data package twice)
<chiel> hah, now missing openssl xD
<shevy> Hanmac I expect an easy way to install a package completely on debian, without me having to query the names
<chiel> i can tell this is going to be a good day...
<shevy> chiel don't you enjoy doing this :P
<chiel> i do :)
<shevy> lies!
<chiel> just wondering which openssl package i need tbh
<chiel> none of them seem to very obviously be the one i need
<Muz> If anything, this isn't an issue with apt, or debian, just the person who packages Ruby.
<shevy> hehehe
<Muz> Assuming this issue even exists when installing from packages.
<shevy> chiel I think openssl 0.9.x something
<Muz> Which isn't the issue at hand.
<gestahlt> re
hydrozen has joined #ruby
<chiel> is it this: "libglobus-openssl-dev" ?
<shevy> chiel hahaha ;)
samphippen has quit [Quit: Computer has gone to sleep.]
<chiel> i have no clue :)
<shevy> don't you enjoy trying to find out how they put it into packages
breakingthings has joined #ruby
<Muz> chiel: it'll be named libopenssl-something most likely.
kpshek has joined #ruby
<shevy> what... why are you guys guessing
<chiel> Muz: that's what i thought.. alas :p
<shevy> does debian not follow a STANDARD for this???
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<Hanmac> shevy, mostly it does
<Muz> libssl-dev
<shevy> but you know what the coolest thing is?
<Muz> chiel: ^
<shevy> every distribution has different names for their -dev packages :)
<Hanmac> thats not debians fault :P
<shevy> Hanmac it does not at all. take Muz - he used no number
nari has joined #ruby
jpfuentes2 has joined #ruby
<shevy> but I am 100% sure that there is libreadline5-dev and libreadline6-dev
<chiel> Muz: ah, my bad, was searching for openssl, d'oh
emocakes has joined #ruby
<shevy> chiel you are excused, the official name is "openssl", as you can see from this tarball: ftp://ftp.openssl.org/source/openssl-1.0.1c.tar.gz
reuven has joined #ruby
<shevy> so we now know, debian's convention is 100% "libopenssl", following "lib"-name-of-package-here, right :D
wudofyr_ has quit [Remote host closed the connection]
wudofyr_ has joined #ruby
b1rkh0ff has joined #ruby
<gestahlt> oh damn this is so stupid..
joast has joined #ruby
AlSquirrel is now known as AlSquire
<Muz> shevy: openssl is the name of the project, not the library.
<shevy> Muz ok so what is debian's naming scheme? lib-library-name?
ben_h has quit [Read error: Connection reset by peer]
Coolhand has quit [Ping timeout: 255 seconds]
kpshek has quit [Ping timeout: 252 seconds]
_nitti has joined #ruby
<Muz> There you go.
<Hanmac> shevy about the two readline devs that has todo with the licence of them ...
<shevy> so you dont know the naming scheme :(
<Muz> No, it's a case of I'm not going to give you a redacted version that's open to incorrect interpretation - as I'm sure you'll favour this.
geekbri has joined #ruby
<Hanmac> readline5 and readline6 have different GPL licence versions ... (normaly its not allowed to build ruby1.8 against readline6)
axl_ has joined #ruby
<shevy> I want to see a consistent pattern
atyz has joined #ruby
<ruzu> facking gpl, always crapping on people :\
<Muz> If you want to pick apart the naming scheme, how about you read it first. Secondly if there is a package in the core apt repo that's wrong, file a bug on the Debian tracker.
<Muz> You're just being a dick really.
<shevy> Muz wait a moment, why would I have to file a bug about it?
<Hanmac> shevy: for sample: sometimes its libABC-dev, sometimes its ABC-dev ... it depends ... like for sample with zlib-dev ..
MattRB has quit [Quit: This computer has gone to sleep]
s1n4 has joined #ruby
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
jaywastaken has joined #ruby
moofy has joined #ruby
<moofy> ahoy
<shevy> apt-search does not even give me a zlib-dev :(
<moofy> does anyone know of a gem that can generate greeked text?
RagingDave has joined #ruby
<moofy> so i can see what things look like with some content
wudofyr_ has quit [Remote host closed the connection]
elux has joined #ruby
wudofyr_ has joined #ruby
eka has quit [Ping timeout: 256 seconds]
atyz has quit [Client Quit]
enroxorz-work has joined #ruby
cr3 has joined #ruby
atyz has joined #ruby
eka has joined #ruby
dr_neek has joined #ruby
jrist-afk is now known as jrist
segv- has joined #ruby
<chiel> woo, i don't think i've ever been so happy i managed to install a gem :p
<shevy> chiel are you sure it works? :P
spaceships has joined #ruby
<chiel> shevy: no
<chiel> :D
BizarreCake has joined #ruby
jtharris has joined #ruby
arya_ has joined #ruby
<shevy> that is healthy optimism!
jerius has joined #ruby
<Hanmac> its zlib1g-dev
<shevy> Hanmac, why is there a "1g", that's confusing me ;(
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> 1g 2h 3i
fedza has joined #ruby
blueOxigen has joined #ruby
s1n4 has quit [Quit: leaving]
<Hanmac> shevy i dont know ... the funny thing is that its install libs (*.so + *.a files) but the packages are not named lib* ... maybe to avoid libzlib? :P
bluOxigen has quit [Ping timeout: 256 seconds]
<shevy> Mint is a nice distribution even though it is based on debian
Al__ has joined #ruby
kpshek has joined #ruby
<shevy> Hanmac, hmm
<shevy> my old ruby 1.8.x has a libruby-static.a
<shevy> ah... 1.9.x too
<shevy> can you make a .so for ruby?
KevinSjoberg has joined #ruby
tommyvyo has joined #ruby
<shevy> --enable-shared ... let's try
arya has quit [Ping timeout: 276 seconds]
<Hanmac> shevy there is a .so file too in my package ... but i does still wonder why its named "-static" ...
<hoelzro> shevy: you sure can
jgarvey has joined #ruby
bradleyprice has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<Hanmac> shevy what do you think about that gui? http://wiki.ubuntuusers.de/Cinnamon
casheew has joined #ruby
arya_ is now known as arya
samphippen has joined #ruby
<shevy> ok hoelzro
<shevy> wonder why I kept on using .a
codecop has quit [Remote host closed the connection]
<shevy> Hanmac I think it is quite ok
<shevy> there is something related with themes though, that somehow slowed down loading of files in bluefish editor
ttt_ has quit [Remote host closed the connection]
d2dchat has joined #ruby
ananthakumaran has joined #ruby
<Hanmac> shevy you may need the .a file when you add ruby into an C program :P
<shevy> hmm perhaps with mruby eventually
DuoSRX has joined #ruby
huttan has joined #ruby
kpshek has quit [Ping timeout: 256 seconds]
<Hanmac> you could add ruby as a scripting engine into an C++ game ... but i like the other direction :D
<shevy> 'You can also compile Ruby programs into compiled byte code using the mruby compiler "mrbc".'
<shevy> Hanmac well
<shevy> ogre + ruby!
wakoinc has joined #ruby
Spooner_ has joined #ruby
jekotia has joined #ruby
mmitchell has joined #ruby
<Hanmac> yeah that what i can do ... (and after i rewite it, add cegui + ruby into the fomula to increase the Fun :P)
<Xeago> is å an accented character?
<Xeago> or how are those characters named (non us-ascii)
Morkel has joined #ruby
kristofers has joined #ruby
<hoelzro> uniprops reveals nothing interesting
<hoelzro> =(
lusory has joined #ruby
nari has quit [Ping timeout: 264 seconds]
<shevy> Xeago I can not read the character so it must be special
fourq has quit [Quit: Lost terminal]
<shevy> Xeago can you describe it to me :D
<shevy> is it like those glyphs used by the ancient egypts?
<chiel> 'm starting to think a system-wide install of rbenv was a bad idea on my dev box :p
dr_neek has quit [Quit: dr_neek]
<hoelzro> shevy: it's LATIN SMALL LETTER A WITH RING ABOVE
nateberkopec has joined #ruby
blueOxigen has quit [Ping timeout: 245 seconds]
moofy has left #ruby [#ruby]
<Hanmac> wiki says its a "diacritical mark"
chussenot has quit [Quit: chussenot]
<wakoinc> any suggestions to using rbenv but with a script that uses port 443? without root install it causes trouble
aaronmcadam has joined #ruby
Virunga has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
<hoelzro> Hanmac: the ring is, but the character?
dr_neek has joined #ruby
<hoelzro> wakoinc: run Ruby on a non-priviledged port and have a proxy server running as root, perhaps?
blaxter has joined #ruby
dmiller has joined #ruby
Beoran__ has joined #ruby
Coolhand has joined #ruby
iambic has joined #ruby
<wakoinc> yeah, but that seems to be double handling too much
fphilipe has joined #ruby
<wakoinc> but yeah.. that would be an option
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
<hoelzro> wakoinc: that's what I would do =)
<hoelzro> that or write iptables rules to redirect 443 traffic to a non-priviledged port
<hoelzro> ugh, can't type today.
<wakoinc> yeah.. i have been playing with siri proxy - and yeah.. that seems like the best option
elbonito has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
Umren has quit [Read error: Connection reset by peer]
<Hanmac> >> puts "◌̊◌̥>"
<eval-in> Hanmac: Output: "/tmp/execpad-91a1d9cc706a/source-91a1d9cc706a:1: invalid multibyte char (US-ASCII)\n/tmp/execpad-91a1d9cc706a/source-91a1d9cc706a:1: invalid multibyte char (US-ASCII)\n" (http://eval.in/8243)
<Hanmac> :(
elbonito has quit [Read error: Connection reset by peer]
<Xeago> thanks
<wakoinc> haha
angusiguess has joined #ruby
Umren has joined #ruby
chussenot has joined #ruby
<shevy> :D
jrafanie has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
ner0x has joined #ruby
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
kold has joined #ruby
puppeh has joined #ruby
reuven has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
girija_ has joined #ruby
stopbit has joined #ruby
Norrin has joined #ruby
breakingthings has quit []
chiel has quit [Quit: leaving]
chiel has joined #ruby
casheew has quit [Read error: Connection reset by peer]
nari has joined #ruby
philcrissman has joined #ruby
casheew has joined #ruby
hydrozen has quit [Ping timeout: 252 seconds]
wreckimn1 is now known as wreckimnaked
iamjarvo has joined #ruby
mneorr has joined #ruby
<chiel> good thing i'm not compiling ruby for the 4th time or anything ;D
zdennis has joined #ruby
slainer68 has quit [Remote host closed the connection]
emanon_ has quit [Ping timeout: 256 seconds]
rismoney has joined #ruby
slainer68 has joined #ruby
pyro111 has quit [Ping timeout: 248 seconds]
slainer68 has quit [Remote host closed the connection]
slainer68 has joined #ruby
gosshedd has quit [Ping timeout: 244 seconds]
DaltonUS has joined #ruby
fmcgeough has joined #ruby
fourq has joined #ruby
kold has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
emanon_ has joined #ruby
nari has quit [Ping timeout: 248 seconds]
mikepack has joined #ruby
jlast has joined #ruby
bradleyp_ has joined #ruby
ner0x has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 264 seconds]
bradleyp_ has quit [Read error: Connection reset by peer]
joofsh has quit [Remote host closed the connection]
marr has quit [Read error: Connection reset by peer]
rkneufeld has joined #ruby
bradleyprice has joined #ruby
casheew has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
pyro111 has joined #ruby
casheew has joined #ruby
MattRB has joined #ruby
asteve has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
__BigO__ has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
pyro111 has quit [Read error: Operation timed out]
axl_ has quit [Quit: axl_]
Neomex has joined #ruby
Neomex has quit [Client Quit]
pyro111 has joined #ruby
megha has joined #ruby
skbierm has quit [Ping timeout: 246 seconds]
<ashp> Hey guys, I was hoping to get some design help/suggestions. I have a chunk of code that looks up commands to run per operating system in a giant hash at the top. It was suggested that I refactor this to be class based. I assume this means I'd have a class per operating system and then just return the appropriate commands when doing operating_system.thing. Is there a better way to design something like this?
spinagon has joined #ruby
the_mentat has joined #ruby
_nitti has quit [Remote host closed the connection]
<ashp> I probably did a horrible job explaining that, it's to get ipaddresses for interfaces and hide the details of different operating systems
rippa has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
pavilionXP has quit [Ping timeout: 264 seconds]
<heftig> they meant the factory pattern, i guess
<Hanmac> ruby has factory-factories too :P
bradleyprice has joined #ruby
speakingcode-wor has quit [Remote host closed the connection]
Coolhand has quit [Remote host closed the connection]
joofsh has joined #ruby
g0bl1n has joined #ruby
<heftig> you ask Foobar for an object that does the OS-specific stuff, and it returns an instance of the appropriate class
<ashp> I'll check that out I guess, factory pattern sounds like what I want
rkneufeld has quit [Ping timeout: 255 seconds]
cardoni has joined #ruby
<gestahlt> Whats the regexp in ruby for [:digit:]?
<puppeh> gestahlt: you said it :)
<gestahlt> .grep(/sd[a-z][:digit:]/)
<gestahlt> Woot?
<waxjar> does anyone know why this isn't legal ruby? https://gist.github.com/46129521be2a1339aa65
<gestahlt> Maybe typo, im gonna check
<tobiasvl> gestahlt: or \d
awarner has joined #ruby
<Hanmac> /[[:digit:]]/
<puppeh> waxjar: lol wtf
<puppeh> waxjar: what are you trying to do?
<gestahlt> i like digit.. because its more readable than the other cryptic shit
<tobiasvl> yeah sure
<waxjar> trying to write concise code :p
<tobiasvl> it should work fine
rkneufeld has joined #ruby
traph has joined #ruby
dr_bob has joined #ruby
<gestahlt> i like digit.. because its more readable than the other cryptic shit
<traph> hey guys
<gestahlt> oops
Coolhand has joined #ruby
<traph> does anyone know of a way to tell whether the screensaver has been activated in Ruby?
<gestahlt> Woaa
<Hanmac> tobiasvl & gestahlt: [[:digit:]] and \d are not equal
<waxjar> puppeh, any idea why the second rescue raises a syntax error?
<gestahlt> Finally its coming to a close
<gestahlt> I got from parted a readable array.... finally
<puppeh> waxjar: i don't think you can have nested rescues or 2 rescues in the same begin...end block
<gestahlt> 2D Array
<chiel> hmmm.. that rerun gem seems pretty nice
<hoelzro> waxjar: because rescue may not follow else
<chiel> let's try it out :D
nuba has quit [Ping timeout: 264 seconds]
<waxjar> why not hoelzro?
<tobiasvl> Hanmac: tell me more
workmad3_ has joined #ruby
vlad_starkov has joined #ruby
ozgura has joined #ruby
cardoni has quit [Ping timeout: 244 seconds]
<hoelzro> waxjar: it just can't; what's wrong with putting your rescue before the else?
<Hanmac> tobiasvl: http://ruby-doc.org/core-1.9.3/Regexp.html /[[:digit:]]/.match("\u06F2") #=> #<MatchData "\u{06F2}">
<tobiasvl> aha
DaltonUS has quit [Read error: No route to host]
<waxjar> i'm calling two methods that raise the same exception, so i split em up like that
bradleyprice has quit [Read error: Connection reset by peer]
<puppeh> waxjar: just read how begin..rescue..ensure is used in Ruby
<Hanmac> tobiasvl digit matchs all of them ... when they are not 0-9
<waxjar> puppeh, i know how they work
<puppeh> then why you're not using them right?
<waxjar> save for the second rescue, i am
DaltonUS has joined #ruby
<puppeh> it's invalid ruby code so I guess you're not :P
workmad3 has quit [Ping timeout: 264 seconds]
invisime has quit [Quit: Leaving.]
<waxjar> note the "save for the second rescue" ;)
beiter has joined #ruby
<chiel> why does thin have to be in your Gemfile nowadays to start? i don't remember that being the case before.. :/
<gestahlt> Uhm
baroquebobcat has joined #ruby
<ozgura> hi people! boring question from newby here: I have a script which builds up a system command in an array and then calls "system(*command)". This is in a ruby file run as a standalone script. Question: I want this script to propagate the exit status code of the system call. How can I achieve this?
<gestahlt> Is there an oposite to the .reject method?
<gestahlt> like .keep?
bwlang has joined #ruby
ffranz1 has joined #ruby
Choobie has joined #ruby
<chiel> resolve? fulfill?
MattRB has quit [Quit: This computer has gone to sleep]
<chiel> those are common names for it, anyway
<tobiasvl> gestahlt: select?
<chiel> (also i have no idea what you mean btw :p)
_nitti has joined #ruby
julian-dephiki has joined #ruby
Choobie has quit [Client Quit]
<hoelzro> ozgura: exit with $?
<hoelzro> or exec
_nitti_ has joined #ruby
<hoelzro> if you don't need to do anything more from Ruby
mneorr has quit [Remote host closed the connection]
<gestahlt> Hm, detect looked good.. i check on select now
<ozgura> hoelzro: I don't. So you mean "system(*command) ; exit $?"
frem has joined #ruby
<ozgura> let me try
johndouthat has joined #ruby
<hoelzro> ozgura: that will work, as will exec
gosshedd has joined #ruby
frankkany has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 245 seconds]
<hoelzro> I personally would prefer exec
ffranz has quit [Ping timeout: 264 seconds]
pavilionXP has joined #ruby
sullenel has joined #ruby
LucidDreamZzZ has joined #ruby
bricker`LA has joined #ruby
_nitti has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
generalissimo has joined #ruby
fourq has quit [Quit: Lost terminal]
dallasm has joined #ruby
<ozgura> hoelzro: thanks. $? seems like the better option, because I now realise I actually want to "exit $? unless $? == 0"
carloslopes has joined #ruby
dallasm has quit [Remote host closed the connection]
<hoelzro> ozgura: ah. you could also do exit $? unless system(*command)
jaequery has joined #ruby
<hoelzro> since the return value of system reflects the success of the command
<ozgura> hmmmm
puppeh has quit [Quit: Leaving...]
karlfreeman has quit [Remote host closed the connection]
<ozgura> hoelzro: this definitely is more handsome now.
<hoelzro> =)
JumpMast3r has quit [Quit: JumpMast3r]
insulator has joined #ruby
ner0x has joined #ruby
<ozgura> many thanks hoelzro!
<hoelzro> np =)
pyro111 has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
ttt has joined #ruby
Morkel has quit [Quit: Morkel]
mneorr_ has joined #ruby
Morkel has joined #ruby
shock_one has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
markalanevans has joined #ruby
baphled has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
carloslopes has quit [Read error: No route to host]
carloslopes has joined #ruby
_nitti_ has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
dmiller has quit [Ping timeout: 248 seconds]
oscardelben has joined #ruby
fumbe has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
bradleyprice has joined #ruby
banister`sleep has quit [Remote host closed the connection]
_nitti has joined #ruby
Umren has quit [Ping timeout: 244 seconds]
jonahR has joined #ruby
banister`sleep has joined #ruby
angusiguess has joined #ruby
cardoni has joined #ruby
ffranz1 has quit [Quit: Leaving]
main has quit [Read error: No route to host]
main has joined #ruby
ahokaomaeha has quit [Ping timeout: 260 seconds]
bjeanes has quit [Ping timeout: 248 seconds]
a_a_g has joined #ruby
ffranz has joined #ruby
bjeanes has joined #ruby
wargasm1 has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
a_a_g1 has joined #ruby
Umren has joined #ruby
x82_nicole has joined #ruby
uris has joined #ruby
a_a_g has quit [Ping timeout: 248 seconds]
renanoronfle has quit [Quit: This computer has gone to sleep]
Vert has quit [Ping timeout: 252 seconds]
baphled has quit [Ping timeout: 256 seconds]
techhelp has joined #ruby
whowantstolivefo has quit [Quit: who wants to live forever ?]
nazty has joined #ruby
Virunga has quit [Remote host closed the connection]
joshman_ has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
angusiguess has quit [Ping timeout: 244 seconds]
lundahl has quit [Ping timeout: 256 seconds]
pcarrier has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
Hypn has quit [Remote host closed the connection]
flagg0204 has quit [Quit: leaving]
dr_neek has quit [Quit: dr_neek]
insulator has quit [Quit: insulator]
cardoni has quit [Quit: cardoni]
jaequery has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 248 seconds]
renanoronfle has joined #ruby
fourq has joined #ruby
<ericwood> mo $, mo problems
SCommette has joined #ruby
breakingthings has joined #ruby
_nitti has quit [Remote host closed the connection]
lancepantz has joined #ruby
pcarrier has quit []
renanoronfle has quit [Client Quit]
kpshek has joined #ruby
roflmaus has quit []
dr_bob has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
nkr has quit [Ping timeout: 256 seconds]
KRF has joined #ruby
pcarrier has joined #ruby
Elhu has quit [Remote host closed the connection]
Elhu has joined #ruby
steventux has joined #ruby
oscardelben has quit [Quit: oscardelben]
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
pcarrier has quit [Client Quit]
yacks has quit [Quit: Leaving]
voodoofish has quit [Ping timeout: 246 seconds]
RurouniJones has quit [Remote host closed the connection]
flagg0204 has joined #ruby
slainer68 has quit [Remote host closed the connection]
slainer68 has joined #ruby
poga has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<shevy> lol
<shevy> no $, no problems?
vinax has joined #ruby
bricker`1A has joined #ruby
bricker`1A has quit [Client Quit]
interactionjaxsn has joined #ruby
bricker`1A has joined #ruby
pcarrier has joined #ruby
buscon has quit [Remote host closed the connection]
eldariof has quit [Read error: Operation timed out]
lolmaus has joined #ruby
chrishough has joined #ruby
AntiTyping_ has joined #ruby
main has quit [Ping timeout: 246 seconds]
cha1tanya has joined #ruby
ahokaomaeha has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
iamjarvo has quit [Quit: Leaving.]
bricker`LA has quit [Ping timeout: 252 seconds]
agbeladem has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<agbeladem> Hi everyone. I tried reinstalling ruby (without rvm) because my gem paths were f***ed up, but they're still there after reinstall, how do I reset gem env properly ?
AntiTyping has quit [Ping timeout: 248 seconds]
AntiTyping_ is now known as AntiTyping
zigomir has joined #ruby
nkr has joined #ruby
Catbuntu is now known as Meredith
maxmanders has joined #ruby
zigomir has quit [Client Quit]
DaltonUS has quit [Quit: DaltonUS]
_nitti has joined #ruby
Asher has quit [Quit: Leaving.]
baphled has joined #ruby
bwlang has left #ruby [#ruby]
poga has quit [Remote host closed the connection]
<lancepantz> i'm trying to bone up on my cs fundamentals by working through a book in ruby, does anyone mind checking out this binary search tree i wrote? https://gist.github.com/f8e1cb709a66d0f22108
atyz has quit [Quit: Linkinus - http://linkinus.com]
<lancepantz> i feel like #<< could use some ruby foo
Hanmac has joined #ruby
<lancepantz> too many if else's
jaequery has joined #ruby
dr_bob has joined #ruby
codecaster has joined #ruby
* hoelzro is sad to see overloading of <<
jonahR has quit [Quit: jonahR]
<lancepantz> hoelzro: should i just use append?
<lancepantz> it's not really overloading if it's on a base class though, right?
<Hanmac> hoelzo i use it as an alias for add
<hoelzro> lancepantz: do you want evaluation of the quality of the algorithm? or the quality of the code as well?
<davidcelis> why's that overloading?
<davidcelis> it's a base class
aaronmcadam has quit [Quit: aaronmcadam]
<hoelzro> it's operator overloading
<lancepantz> hoelzro: i would appreciate both, thanks!
<davidcelis> no it isn't; that operator wouldn't be defined
<hoelzro> maybe I should just better term
<hoelzro> it's using << for something other than bit shifting.
<lancepantz> i don't disagree that maybe append is more explicity
voodootaco has joined #ruby
<hoelzro> anyway, I'll stop beating that dead horse =P
wallerdev has joined #ruby
<hoelzro> lancepantz: it's just a preference of mine =)
<lancepantz> so what do you think about that method though?
<lancepantz> surely theres something i can do
toolz is now known as tewlz
<hoelzro> I would name it add
<agbeladem> anybody ?
<Hanmac> i use it for adding elements ... i would use >> too for extracting them, but it may be more complicated
kpshek has quit [Ping timeout: 252 seconds]
<lancepantz> i was thinking about making left and right keywords, then doing a instance_variable_get
<hoelzro> I also would use .value instead of @value in the << body
<hoelzro> so if value < v
<hoelzro> also, I would call v new_value
<lancepantz> k
<lancepantz> what about all the ifs?
<hoelzro> I would start << with unless value ; value = new_value ; return ; end
<hoelzro> I'd also use accessors for left and right
<lancepantz> k
<hoelzro> other than that, looks pretty good!
<lancepantz> hmm, alright
<lancepantz> thanks!
markalanevans has quit [Quit: markalanevans]
<lancepantz> does it make sense to have a bstree class with node inside of it?
<lancepantz> because everything could actually just be written as a node
<hoelzro> lancepantz: I would just use nodes
<hoelzro> but that's me
<lancepantz> any reason?
<lancepantz> i've seen it both ways, but i don't have a cs background
<Hanmac> lancepantz there is an gem for RbTree
<lancepantz> so i'm not sure what's standard
<hoelzro> there's just no reason to have a top level tree class
razibog has quit [Ping timeout: 248 seconds]
<lancepantz> Hanmac: yeah, i'm doing this as a learning exercise
<lancepantz> but i should look at that gem for tips tho!
DrCode has quit [Remote host closed the connection]
<lancepantz> hoelzro: k, thanks
<hoelzro> all operations you would be performing on a tree at the top level are valid for any arbitrary node in the tree
<lancepantz> hoelzro: yeah, i agree, i just saw a java implementation that did it this way that made me change my mind
<lancepantz> ok, great
<lancepantz> thank you all for the tips
sparuvu has joined #ruby
<Hanmac> hoelzro for sample i in my stuff i cant use the accessors, because there are not accessable, there is a @layers but layers is not the reader for it, but an enumerator :P
markalanevans has joined #ruby
jory has joined #ruby
chrishunt has quit [Quit: Leaving...]
<hoelzro> sorry, I had some trouble parsing that =/
alvaro_o has joined #ruby
jonahR has joined #ruby
<jory> Is there any operator in ruby analogous to Coffescript's '.?' ?
<whitequark> jory: no, but ActiveSupport has #try
<whitequark> which does the same thing
lpm has quit [Excess Flood]
<jory> whitequark: Thanks for the tip.
<whitequark> I personally consider it an antipattern though, *especially* if used multiple times in a row
philcrissman has quit [Remote host closed the connection]
<jory> whitequark: I'm parsing some pre-defined JSON, and would rather not include a ton of "unless or" caveats.
<sparuvu> hey guys how to iterate through a hash only for even items ?
<sparuvu> and want to skip all the odd items
<lancepantz> sparuvu: .select{|k,v| v.even?}.each ...
<sparuvu> oh kool. Thank you lancepantz
macrun8 has quit [Remote host closed the connection]
DrCode has joined #ruby
haxrbyte has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
jozefk has joined #ruby
<hoelzro> ah
mneorr_ has quit [Remote host closed the connection]
marr has joined #ruby
<Kuifje> why doesn't this work? module ASD def foobar end end. ASD::foobar
<Hanmac> hoelzro i do it so it prevents the user from breaking the structure :P
<lancepantz> Kuifje: self.foobar
<Kuifje> why must it be self.foobar?
<Hanmac> Kuifje: the method is an instance_method, you need self.foobar to define it as class method ... (or module_function)
<lancepantz> Kuifje: in the same module you can add `extend ASD`
<lancepantz> Kuifje: then you won't have to use all the self's if they bother you
_nitti_ has joined #ruby
<lancepantz> legit beef, that irks me sometimes too
jgrevich has joined #ruby
<Hanmac> lancepantz: hm you could also use "extend self"
Kuifje has quit [Read error: Connection reset by peer]
<lancepantz> Hanmac: ah, good point
macrun8 has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
AntiTyping_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
_nitti has quit [Ping timeout: 256 seconds]
Meredith has quit [Ping timeout: 248 seconds]
<Hanmac> lancepantz there is a difference in using module_function and extend self ... you may find it with some guessing :P
peteyg has joined #ruby
AntiTyping has quit [Read error: Operation timed out]
AntiTyping_ is now known as AntiTyping
jaequery has quit [Quit: Computer has gone to sleep.]
<lancepantz> Hanmac: what's that?
markalanevans has quit [Quit: markalanevans]
<Hanmac> extends links the instance methods into the module object ... while module_function makes a copy
mercwithamouth has joined #ruby
dn2k has joined #ruby
macrun8 has quit [Remote host closed the connection]
<lancepantz> Hanmac: what do you mean by module_function?
<Hanmac> shevy: löl, TLS seems to breakable: http://www.isg.rhul.ac.uk/tls/
<hoelzro> lancepantz: it's a method on Module
<lancepantz> ah
<lancepantz> so module function does the same as extend except it creates duplicates of the function definitions?
<lancepantz> why would you use that/
<Hanmac> because you can? :P
Nisstyre has joined #ruby
<lancepantz> hehe
<lancepantz> it looks like you can do it for individual functions, so that's one thing
_nitti_ has quit [Remote host closed the connection]
Vert has joined #ruby
<wakoinc> i <3 ruby
codecaster has quit [Read error: Connection reset by peer]
quest88 has quit [Quit: quest88]
codecaster has joined #ruby
apok has joined #ruby
DaltonUS has joined #ruby
hoelzro is now known as hoelzro|away
<lancepantz> ruby is a beginners lisp.
<lancepantz> there, i said it
F1skr has joined #ruby
wakoinc has quit [Remote host closed the connection]
wakoinc has joined #ruby
Xeago has joined #ruby
Asher has joined #ruby
bricker`1A is now known as bricker`LA
bradleyprice has joined #ruby
QKO_ has joined #ruby
hackerdude has joined #ruby
dr_neek has joined #ruby
<shevy> but without the () parens
<lancepantz> and without macros
mneorr has joined #ruby
QKO has quit [Ping timeout: 260 seconds]
_nitti has joined #ruby
<Hanmac> hm you have macro-like stuff with attr_accessor ... (or with eval :P)
<lancepantz> heheh, riiiiight :)
BizarreCake has quit [Read error: Connection timed out]
haxrbyte_ has joined #ruby
wakoinc_ has joined #ruby
jgrevich_ has joined #ruby
<Hanmac> and i use evil "C"-Macros, that generate "C++"-Code, for my "Ruby" gems :D
ABK has quit [Ping timeout: 246 seconds]
<lancepantz> Hanmac: hahaha, that's awesome
<lancepantz> Hanmac: i'm a clojure fanatic personally
<lancepantz> but i still do a lot of ruby
haxrbyte has quit [Ping timeout: 255 seconds]
haxrbyte_ has quit [Remote host closed the connection]
bigkevmcd has quit [Ping timeout: 276 seconds]
BizarreCake has joined #ruby
haxrbyte has joined #ruby
agbeladem has quit [Quit: Page closed]
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
baphled has quit [Ping timeout: 260 seconds]
pcarrier has quit []
<sparuvu> how can I process two items in a hash at a time ?
wakoinc has quit [Ping timeout: 276 seconds]
wakoinc_ is now known as wakoinc
<lancepantz> sparuvu: each_slice
<sparuvu> like h = {a: 1, b:2, c:3, d:4} ... now I want to perform some operation on h.a & h.b once and h.c & h.d once
<Hanmac> lancepantz: with this bindings i can do 3D stuff, That's awesome :D
<whitequark> sparuvu: .values_at(:a, :b), but do not use a hash for this
<whitequark> make it a class
dustint has quit [Quit: Leaving]
<lancepantz> Hanmac: from ruby?
dustint has joined #ruby
Jeaye has joined #ruby
<Xeago> shevy: http://cl.ly/image/3f3Q201t441n "Unanimous improvement of the search system." or "Improvement of the search system is unanimous."
<Hanmac> yeah, that what my gem is for :D
<lancepantz> Hanmac: sounds awesome
<lancepantz> sparuvu: each_slice, dude
hasse has joined #ruby
Akuma has joined #ruby
<Xeago> hanmac mind giving an example of such c macros that generate c++ code?
sayan has joined #ruby
bwlang has joined #ruby
<Hanmac> >> {a: 1, b:2, c:3, d:4}.each_slice(2){|(k1,v1),(k2,v2)| p k1,v1,k2,v2}
<eval-in> Hanmac: Output: ":a\n1\n:b\n2\n:c\n3\n:d\n4\n" (http://eval.in/8252)
<hasse> How do I test multiple if conditions in a good way? Like def valid?; image? && !pending? && products.size > 1 && no_bad_words?; end;
QKO_ has quit [Read error: Operation timed out]
pu22l3r has quit [Remote host closed the connection]
angusiguess has joined #ruby
jozefk has left #ruby ["catch you later guys"]
<Xeago> hasse: that would be a possibility
philcrissman has joined #ruby
<Xeago> as long as your definition of valid remains similar across your context
Guest61025 has joined #ruby
<lancepantz> hasse: yeah, looks like you got it
<Xeago> and don't get halfy valid and other such nonsense
pcarrier has joined #ruby
aantix has joined #ruby
<hasse> Xeago, lancepantz: No I mean how do I write a test for it? Should I have a test for each statement and stub everything else?
_nitti has quit [Quit: Leaving...]
Guest61025 is now known as Catbuntu
<Xeago> how you test if your valid? method works?
Catbuntu has quit [Changing host]
Catbuntu has joined #ruby
stetho has joined #ruby
<Hanmac> lancepantz: https://github.com/Hanmac/libogre-ruby/blob/master/ext/main.hpp#L367 there is the macros defined ... try to read it :D
<hasse> Xeago: yeah
poikon has joined #ruby
jonahR has quit [Quit: jonahR]
chrishough has quit [Quit: chrishough]
<lancepantz> hehe, jesus
<shevy> Xeago your english is kind of weird... I'd pick the second sentence
<lancepantz> that's worse than a lisp macro!
jaequery has joined #ruby
QKO has joined #ruby
cardoni has joined #ruby
jaequery has quit [Remote host closed the connection]
tcstar has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
<Hanmac> xD thank you XD ... now just image what i can do with ruby code :D
benlieb has joined #ruby
jonahR has joined #ruby
jonahR has quit [Client Quit]
<shevy> please have mercy with ruby, Hanmac
<shevy> write it in C++ alone :D
* Hanmac says: "exterminate!" :D
bigkevmcd has joined #ruby
<lancepantz> ok, so I'm making progress on my bstree code, here's my latest: https://gist.github.com/ad32880aa09c2003b3fa
<lancepantz> now i'm using the method accessors instead of the instance variables as someone suggested
<lancepantz> but they are coming back as nil
MrPunkin has left #ruby [#ruby]
alx- has joined #ruby
lump is now known as froy
bricker`1A has joined #ruby
bricker`1A has quit [Client Quit]
zenloop has joined #ruby
MattRB has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
alvaro_o has quit [Remote host closed the connection]
<lancepantz> any ideas? Hanmac ?
passbe has quit [Ping timeout: 245 seconds]
<Xeago> how are you using it?
blazes816 has joined #ruby
tylersmith has joined #ruby
binaryplease has joined #ruby
<lancepantz> Xeago: b = Node.new 5; b.add 5, etc
beliveyourdream has quit [Read error: Connection reset by peer]
renanoronfle has joined #ruby
jonahR has joined #ruby
krz has quit [Quit: krz]
bricker`LA has quit [Ping timeout: 255 seconds]
joeycarmello has joined #ruby
Asher has quit [Quit: Leaving.]
jonahR has quit [Client Quit]
mmitchell has quit [Ping timeout: 248 seconds]
alvaro_o has joined #ruby
<lancepantz> it's like the instance methods created by attr_accessor are not available from within other methods...
<Xeago> lancepantz: you should receive an error when doing that
<Xeago> you access them as @value
apok has quit [Quit: apok]
peteyg has quit [Ping timeout: 256 seconds]
<lancepantz> so indeed they aren't available from within other methods?
buibex has quit [Ping timeout: 240 seconds]
cardoni has quit [Quit: cardoni]
<Xeago> if you want to call the method that is created with attr_accessor call self.value
<Xeago> however, you should just use the instance variable @value
cardoni has joined #ruby
jory has quit [Ping timeout: 252 seconds]
<lancepantz> Xeago: ah
<lancepantz> ok
<lancepantz> that's what i was doing, but someone earlier told me to change it!
jonahR has joined #ruby
<lancepantz> i actually like that behavior, it makes sense, the interpreter things it's a variable
pavilionXP has quit [Ping timeout: 240 seconds]
aaronmcadam has joined #ruby
<Xeago> yup
JMcAfreak has joined #ruby
JMcAfreak has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
benlieb has quit [Quit: benlieb]
jaequery has joined #ruby
gyre007 has quit [Ping timeout: 248 seconds]
JMcAfreak has joined #ruby
cardoni has quit [Client Quit]
steventux has quit [Ping timeout: 248 seconds]
eldariof has joined #ruby
txdv has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
txdv has joined #ruby
razibog has joined #ruby
zeade has joined #ruby
jory has joined #ruby
pcarrier has quit []
wreckimnaked has quit [Ping timeout: 252 seconds]
roadt__ has joined #ruby
gyre007 has joined #ruby
chrishunt has joined #ruby
peteyg has joined #ruby
joofsh has quit [Read error: Connection reset by peer]
cha1tanya has quit [Quit: Leaving]
JumpMast3r has joined #ruby
joofsh has joined #ruby
roadt_ has quit [Ping timeout: 248 seconds]
ckrailo has joined #ruby
passbe has joined #ruby
jonahR has quit [Quit: jonahR]
tetley has joined #ruby
mahmoudimus has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
arturaz has quit [Ping timeout: 252 seconds]
mahmoudimus has quit [Client Quit]
noxoc has quit [Quit: noxoc]
havenn has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
jonahR has joined #ruby
sparuvu has quit [Ping timeout: 245 seconds]
Eiam has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
_nitti has joined #ruby
nga4 has joined #ruby
BizarreCake has quit [Ping timeout: 240 seconds]
g0bl1n has quit [Quit: Ex-Chat]
adeponte has joined #ruby
braoru has joined #ruby
Asher has joined #ruby
slainer68 has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
guttermonkey has joined #ruby
kpshek has joined #ruby
BizarreCake has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
jfelchner has quit [Ping timeout: 255 seconds]
jfelchner has joined #ruby
benlieb has quit [Quit: benlieb]
<guttermonkey> anybody actually chat in this room?
<Spitfire> Never
<guttermonkey> just wondering, a lot of channels I hop in get no responses
<Spitfire> Well there's 850 people in here. Safe to say that it occasionally gets a bit of chatter.
<breakingthings> they're all too nice to step on eachother's toes and noisy up the room
<guttermonkey> maybe one of you 2 can point me in the write direction...
<breakingthings> "Matz is quiet and so we are quiet" -completely legitimate mantra of the ruby community not altered at all
<breakingthings> whatcha need champ
<guttermonkey> I've got a working EventMachine script that does exactly what I want it to
<breakingthings> Sounds like you're in a happy scenario
<guttermonkey> I would like to wrap it in a web interface so that I can stop & start it dynamically from a webapp
<guttermonkey> but everytime I try to put Sinatra around it I come up frustrated
wyhaines has joined #ruby
kpshek has quit [Ping timeout: 252 seconds]
<guttermonkey> Ideas on how I can accomplish what I want to do?
<guttermonkey> (btw for clarification, there are actually 2 different EventMachine scripts that are handling some things for me)
rupee has joined #ruby
<breakingthings> Don't know what you're having troubles with Sinatra, and not too familiar with EM so I can't say that I have insight into your problem without more specific information
girija_ has quit [Ping timeout: 276 seconds]
pettsson has joined #ruby
<breakingthings> (I personally am going out to lunch in a moment as well, but I'm sure someone can help with more info)
benlieb has joined #ruby
chussenot has quit [Quit: chussenot]
<guttermonkey> I'm heading out to lunch shortly too, so I'll probably take another crack at it after lunch & see if I can make heads or tails of it
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
aaronmcadam has quit [Quit: aaronmcadam]
<guttermonkey> I haven't actually touched the project since July, so maybe it's something I can figure out this time around
breakingthings has quit []
Vainoharhainen has quit [Quit: Leaving...]
jaequery has left #ruby ["Textual IRC Client: www.textualapp.com"]
michaelmartinez has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
dr_bob has quit [Quit: Leaving.]
alex__c2022 has quit [Write error: Connection reset by peer]
Shadow_S has joined #ruby
asteve has quit [Quit: Computer has gone to sleep.]
alex__c2022 has joined #ruby
tommyvyo has joined #ruby
xclite has quit [Remote host closed the connection]
xclite has joined #ruby
pu22l3r has joined #ruby
mafolz has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
tvw has quit [Read error: Connection reset by peer]
sullenel1 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mahmoudimus has joined #ruby
sullenel1 has quit [Client Quit]
maxmanders has quit [Quit: Computer has gone to sleep.]
workmad3_ has quit [Ping timeout: 255 seconds]
jon30 has joined #ruby
mmitchell has joined #ruby
_nitti has quit [Remote host closed the connection]
chussenot has joined #ruby
jacktrick has joined #ruby
asteve has joined #ruby
<jon30> Hello. Is there a way to get an AVI movie's title? I was going to parse the filename but it's not always accurate. I figured maybe there's a way to get the title by accessing some global database and retrieving title of the movie by passing hash md5 of the file.
filipe has quit [Remote host closed the connection]
GuidovanPossum has joined #ruby
theRoUS has quit [Ping timeout: 255 seconds]
poikon has quit [Remote host closed the connection]
mockra has joined #ruby
a_a_g1 has quit [Quit: Leaving.]
<Spitfire> jon30, http://rvideo.rubyforge.org/ might work.
Asher has quit [Ping timeout: 260 seconds]
mrsolo has joined #ruby
macrun8 has joined #ruby
<jon30> Spitfire: I saw this before but I don't fully get how it would help me retrieve the movie title. I'll keep reading though
zommi has left #ruby [#ruby]
<GuidovanPossum> Hello, I'm fairly new to Ruby and was looking over a gem called music where you can assign notes using either the letter + flat/sharp, or the frequency, I wanted to know how to then output this as sound and just had a hard time because of the general terms music and note
n1x has joined #ruby
<GuidovanPossum> Is there some way to then output the sound that anyone knows of? thanks
zeade has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
carloslopes has quit [Remote host closed the connection]
anderse has quit [Quit: anderse]
<jon30> Spitfire, can you please give me additional guidance?
<havenn> GuidovanPossum: What OS/distro?
<Spitfire> jon30, I haven't used it myself, sorry.
invisime has joined #ruby
<jon30> Spitfire: Ok thanks
carloslopes has joined #ruby
tewlz has quit [Quit: leaving]
jblack has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
balr0g has joined #ruby
<havenn> GuidovanPossum: Some options here: https://www.ruby-toolbox.com/categories/music___midi
bradleyp_ has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
Asher has joined #ruby
<Kuifje> what happens if you pass a library name to require?
<Kuifje> will it include all the files in the library dir?
thorncp has joined #ruby
rakl has joined #ruby
spider-mario has joined #ruby
apeiros_ has joined #ruby
<_br_> GuidovanPossum: Of course you can use ruby to do such a task, but I am wondering if a full blown music processing language isn't more your cup of tea if you want to hack together something more complex. http://en.wikipedia.org/wiki/Comparison_of_audio_synthesis_environments
<_br_> Kuifje: Well, it will load the corresponding .rb file which is in your $LOAD_PATH. If that file has further require's that include all subsequent files from the gem, then yes.
heckler has joined #ruby
<Kuifje> _br_, I see. thank you
<Catbuntu> Why does require 'tk' don't work on Ruby 1.9.3?
jfelchner1 has joined #ruby
<Catbuntu> Do I have to install some package?
angusiguess has joined #ruby
lkba has quit [Remote host closed the connection]
<havenn> GuidovanPossum: This one works well: https://github.com/sausheong/muse
<Catbuntu> libtcltk-ruby?
cdt has quit [Quit: Ex-Chat]
<shevy> Catbuntu do you have tk installed and working and does your ruby have the tk bindings
jfelchner2 has joined #ruby
<havenn> Catbuntu: Might be you need to: sudo apt-get install libtcltk-ruby
the_mentat has joined #ruby
cdt has joined #ruby
DuoSRX has quit [Remote host closed the connection]
<havenn> Catbuntu: Oh, you just said that. >.>
<Catbuntu> I installed it with RVM.
alex__c2022 has quit [Read error: Connection reset by peer]
jfelchner has quit [Ping timeout: 245 seconds]
<Catbuntu> I mean, I've installed the package but it still doesn't work.
<Catbuntu> I installed Ruby with RVM.
<Catbuntu> Do I have to reinstall it?
aaronmcadam has joined #ruby
alex__c2022 has joined #ruby
<yxhuvud> you may have to have tk installed when compiling.
<Catbuntu> then let's try to reinstall
<havenn> Catbuntu: Ya, have to rebuild Ruby.
woolite64__ has quit [Quit: Leaving]
rdark has quit [Ping timeout: 245 seconds]
cdt has quit [Client Quit]
<yxhuvud> or maybe rvm decided that they couldn't care less about tk. it is not very widely used, to say the least
Kuifje has quit [Read error: Connection reset by peer]
<Catbuntu> And which GUI library should be used?
<yxhuvud> dunno
jaywastaken_ has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
cardoni has joined #ruby
jfelchner1 has quit [Ping timeout: 245 seconds]
straind has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
straind has joined #ruby
philcrissman has quit [Remote host closed the connection]
chrishunt has quit [Quit: Leaving...]
KevinSjoberg has joined #ruby
philcrissman has joined #ruby
reuven has joined #ruby
<havenn> Catbuntu: Hrm. GTK+3 might be an option? http://ruby-gnome2.sourceforge.jp
<KevinSjoberg> Have anyone experience is handling unicode characters (UTF-8) in Ruby 1.8.7?
jaywastaken has quit [Ping timeout: 248 seconds]
chrishunt has joined #ruby
colonolGron has joined #ruby
<graft> i don't like gtk, the file dialogs are terrible and the design is from 1996
<havenn> Catbuntu: tk has worked fine for me
<whitequark> file dialogs are fine, but everything else is fucked up, and the design is a lame attempt to imitate os x
<GuidovanPossum> is it ok if I put a link to my website up for anyone who's interested? I've got a ruby program I wrote and am currently expanding, it's used to generate animations using keyframes of fractals and can use other inputs, like accelerometers, and now I'm writing the code to make it audio driven off of the levels from an mp3, it's small and just my own and there are no adds, I just wanted to check first?
tcstar has quit [Ping timeout: 260 seconds]
casheew has quit [Read error: Connection reset by peer]
codecop has joined #ruby
casheew has joined #ruby
<havenn> GuidovanPossum: I'm curious to see it.
<graft> GuidovanPossum: does ruby work well for stuff like that? i'd assume it was too slow
bricker`1ork is now known as bricker
<_br_> KevinSjoberg: Its a nightmare via KCode. If possible try to switch to 1.9.x branch as quickly as possible. see e.g. http://yehudakatz.com/2010/05/05/ruby-1-9-encodings-a-primer-and-the-solution-for-rails/
<lectrick> graft- File dialogs themselves are terrible. They are basically a holdover from Mac OS circa version 7 when the Finder was not running concurrently with the frontmost app and there needed to be an alternate simplified file browser for open and save operations. I'm surprised nobody has thought of a way to integrate that with Explorer/Finder/whatever the
<lectrick> standard OS file browser is.
<lectrick> /rant
jon30 has quit [Quit: Page closed]
<havenn> graft: Ruby works well for audio, 3d, etc etc.
arietis has joined #ruby
<_br_> GuidovanPossum: git repo?
<_br_> Catbuntu: Try shoes ! :)
<_br_> .oO( http://shoesrb.com/ )
<GuidovanPossum> we'll here it is, I've been really wanting to work on it a bit more, and it's my first bigger ruby program, I process the recipes which is quick and then render, any comments are much appreciated and the actual code is under the Code and Process section, and I'm really new to ruby and know there's probably some stuff I did wrong, but hey I'm learning: http://blazinglace.com thanks :)
<KevinSjoberg> _br_: I know. The reason I'm asking is because I'm tied to Ruby 1.8.7 for this particular task. But handling non ascii characters such as the swedish ones (åäö) is real pain.
<Catbuntu> _br_, I'm on that.
<KevinSjoberg> I was just wondering if there was any good "workaround" or "solution" for the matter.
<Catbuntu> But I can't install it.
<havenn> _br_: Just discovered green_shoes the other day, pretty cool: https://github.com/ashbb/green_shoes
<nate_h> whats the best way to execute an external process in ruby and get zero output from it except for an error code? I keep getting stderr messages
<graft> _br_: nice
<Catbuntu> I downloaded the .run file from GitHub and it's giving me some error
<nate_h> even if I do a $2>1 > /dev/null in the command.
<Catbuntu> Where should I get it, _br_?
<KevinSjoberg> nate_h: Run the external command and use redirection?
<graft> nate_h: &> /dev/null
cardoni has quit [Ping timeout: 248 seconds]
<nate_h> hmm, ok, i'll try that
<graft> nate_h: you can also run it in backticks, ``
<_br_> KevinSjoberg: maybe the backports gem has something to help with that problem and don't forget to run your interpreter with -KU
<nate_h> the thing was that I wanted to use it as a loop conditional. but I guess I can break it out of the loop somehow
<_br_> havenn: nice ! thanks for the link
Virunga has joined #ruby
<graft> nate_h: explain?
<nate_h> _br_, i basically went to backticks for that reason
<nate_h> while ( system('my command returns false')
Al__ has quit [Quit: Al__]
jain-at-K-OLE has joined #ruby
<nate_h> sorry i meant while it returns true
<_br_> nate_h: Zero output? In nice form? Probably you want fork
<graft> nate_h: ah, yeah, so just do while system("your command &> /dev/null")
<Catbuntu> Thanks havenn
<GuidovanPossum> oh my bad http://blazinglace.net, so so sorry got distracted for a second there
braoru has quit [Ping timeout: 260 seconds]
stkowski has joined #ruby
mark_locklear has quit [Remote host closed the connection]
<KevinSjoberg> _br_: The Ruby console (IRB) for Ruby 1.8.7 doesn't have those flags. Or am I wrong?
Eiam has joined #ruby
<graft> nate_h: you can also reopen stderr and stdout streams as /dev/null if it comes to that
oreo has quit [Ping timeout: 260 seconds]
Lubinski has joined #ruby
<shevy> hmm anyone knows
<shevy> "chmod -v a+wt test/"
<shevy> works in bash
<shevy> works in ruby?
<_br_> KevinSjoberg: hm? my 1.8.7 has -K and U is unicode...
huoxito has joined #ruby
<Eiam> alright so I made a branch in order to implement rspec2 tests for all my gems (hooray) and i thought while I'm at it, I should look at continuous integration
<KevinSjoberg> _br_: Where is the documentation for those options? I ran "irb --help" and couldn't seem them.
<Eiam> does anyone have any solutions they use for CI with ruby/gems they are happy with? (thats not run externally -- e.g. it can be done locally on your own servers)
<havenn> nate_h: Or something like: https://gist.github.com/4708669
<nate_h> havenn, oh, hah, i should have thought of that. thanks.
postmodern has joined #ruby
marr has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
<havenn> KevinSjoberg: man irb
tcstar has joined #ruby
<KevinSjoberg> havenn: That was what I ran. I didn't mention the flags "K" nor "U". "man ruby" mentioned K but not U.
<_br_> Eiam: seems these days gitlab is getting better and better. It has a CI integrated now was well. Originally, I would say Jenkins.
mark_locklear has joined #ruby
<Eiam> ugh I trid to setup gitlab about 5 months ago
<havenn> KevinSjoberg: Ahh, Ruby 1.8...
<Eiam> was a terrible experience
slainer68 has quit [Remote host closed the connection]
<havenn> KevinSjoberg: Gah, can't wait till June end-of-life for 1.8...
<Eiam> not to mention then trying to setup open directory support for auth
<KevinSjoberg> havenn: Exactly, I hate that I'm forced to work with it for this task.
BizarreCake has quit [Ping timeout: 255 seconds]
<shevy> havenn hehe
anderse has joined #ruby
<_br_> KevinSjoberg: see e.g. http://www.slideshare.net/dimelo_RD/encodings (see slide 12)
hadees has quit [Quit: hadees]
<shevy> I want ruby 2.0 before 1.8 dies
<havenn> shevy: 20 more days.
<_br_> poor MRI... its such a good old friend... .oO(die die!)
gouthamvel has quit [Remote host closed the connection]
<havenn> :D
<_br_> shevy: maybe we should fix the security holes first ... what a mess these days
<KevinSjoberg> _br_: Thanks a lot. I'll look into it.
<_br_> cheers!
<Catbuntu> err
BizarreCake has joined #ruby
<Catbuntu> I installed the shoes gem, now what do I do?
<Catbuntu> I tried " Shoes.app { button("Click me!") { alert("Good job.") } }" and it doesn't work
spider-mario_ has joined #ruby
c0rn has joined #ruby
<lectrick> I want to be able to contribute to ruby without getting into a big email digest war with resident greybeards. for example, I would like a handful of more callbacks, and I want "def methodname; end" to return :methodname the symbol. I feel like I have to write a book to prove these would be good changes, and they are so small
bradleyp_ has quit [Ping timeout: 245 seconds]
spider-mario has quit [Ping timeout: 245 seconds]
<graft> that doesn't seem like a small change to me
<graft> def methodname; end should return nil
<Catbuntu> It says: /home/tomeu/ruby/shoes/shoes.rb:1:in `<main>': uninitialized constant Shoes (NameError)
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
cddr has joined #ruby
colonolGron is now known as cleaninGron
<sullenel> Catbuntu: have you required it?
robotmay has quit [Remote host closed the connection]
jrist is now known as jrist-afk
<Catbuntu> I tried.
<Catbuntu> Which thing should I require?
<sullenel> require 'shoes' i guess
<shevy> _br_ hey I still proudly use 1.8.x :D
<cddr> I have a helper method defined in a module of its own. How would I make this available in a factory girl definition?
<Catbuntu> ow
<Catbuntu> Sorry, this gem currently does nothing. Team Shoes is working on Gemifying Shoes, and this is just a placeholder until then.
<shevy> Catbuntu yeah it died when _why left
<_br_> shevy: hehe... dito... still its too much cruft
<Catbuntu> And then what did I download, _br_?
<shevy> I think it is time to get over _why. his projects are all dead.
<graft> Catbuntu: a placeholder gem
<graft> that's annoying
maxmanders has joined #ruby
<shevy> Catbuntu it's a way of saying "hey, we maintain the project, but we are too lazy to even attempt making this a gem, so please stop using this software."
ferdev has quit [Disconnected by services]
<_br_> shevy: no!!! D:
ferdev|away is now known as ferdev
<shevy> but it is!
<graft> how is it distributed if it's not a gem? also, how hard is it to make something into a gem (answer: not hard)
<shevy> I could not even get the shoes example to work on my machine
n1x has quit [Ping timeout: 252 seconds]
<shevy> when _why was in charge, those things worked
<Catbuntu> but but
<shevy> graft, you can get it in another way, and supposedly that way also works
* _br_ holds ears and runs away
<shevy> didn't work for me though, so I gave up on it
mmitchell has quit [Remote host closed the connection]
<Catbuntu> then what should I use?
<GuidovanPossum> and the _what and _where took over and well you see...
berserkr has quit [Quit: Leaving.]
<_br_> Catbuntu: did you try the green shoes link?
hybris has quit [Read error: Connection reset by peer]
<shevy> ok
<shevy> they have a new site
<shevy> this one is up since only a few days
<Catbuntu> Yes _br_
<_br_> hm
<Catbuntu> Perhaps I installed it badly
<shevy> so my comment should be regarded as prior-to-that site, because it's been like at least 2 months ago since I last tried it
<Catbuntu> I did `gem install shoes`
<GuidovanPossum> I still use hpricot and it works fine for me, but every time someone sees it they cringe
<havenn> Catbuntu: gem install green_shoes
mmitchell has joined #ruby
<Catbuntu> let's try
<shevy> GuidovanPossum I loved hpricot, mechanize worked for me
ananthakumaran has quit [Quit: Leaving.]
<shevy> then came nokogiri and ever since I couldnt get mechanize to play nicely with my old software, so I ended up discarding mechanize
<Catbuntu> Oooooh I did it good _br_
<Catbuntu> But it's "require 'green_shoes'"
<Catbuntu> :)
roadt__ has quit [Ping timeout: 248 seconds]
<shevy> cool
<shevy> that works?
<Catbuntu> yep
<shevy> the examples work too?
iamjarvo has joined #ruby
phantasm66 has quit [Ping timeout: 264 seconds]
maxmanders has quit [Ping timeout: 252 seconds]
<_br_> shevy: _why might be gone but his legacy lives on! :D
<shevy> hmm
maletor has joined #ruby
<shevy> still waiting until Catbuntu says the examples work
<_br_> shevy: hehe
<havenn> _br_: _why isn't dead, just hibernating...
<Catbuntu> it works
<shevy> whoa I am surprised
chussenot has quit [Quit: chussenot]
skogis has joined #ruby
<havenn> shevy: green_shoes are the only color of shoes that run!
abcdefg_ has quit [Ping timeout: 276 seconds]
<shevy> lol
skogis has quit [Client Quit]
<shevy> well then I am sold
<shevy> when 2.0 is out
<shevy> I will give green_shoes a try
<robert___> so I have a slight dilema- I'm trying to calculate an exact date relative to any given month ("the third monday in (month name)", "one week from the end of the month in (month name)"); only, I'm not sure the best way to go about it.
maxmanders has joined #ruby
<havenn> shevy: It doesn't compile on 2.0.0. :P
<shevy> grrrrrrr
decoponio has quit [Quit: i'll take to sleep see you soon xD]
<Hanmac> with red shoes you can only get out of Oz :P
<shevy> I'll try anyway
<Catbuntu> any wya
<shevy> matz promised that 2.0 will be better than 1.8 :(
<shevy> like guido with python 3
<Catbuntu> I'm really liking Ruby hehe
<shevy> yeah ruby is 85% perfect
pu22l3r has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
<Catbuntu> I used to use Python.
<Catbuntu> Formerly I used Perl.
<shevy> python is 75% perfect
spider-mario has joined #ruby
<shevy> perl is 50% perfect
<GuidovanPossum> thanks
tewlz has joined #ruby
<Catbuntu> I also use Java now hehe
<Catbuntu> GuidovanPossum?
<shevy> java is 1% perfect (you get rich at least)
<robert___> eww, perl
tewlz has left #ruby [#ruby]
robert___ is now known as robert_
<Catbuntu> lol
spider-mario_ has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
tewlz has joined #ruby
<Catbuntu> haha
<Catbuntu> and what about C++?
<robert_> I like C++, lol
<GuidovanPossum> pure awesome
<shevy> I am not sure... a friend of mine actually got rich writing macros for MS office... no idea what language he used in his company
<havenn> Why Java when you can JRuby?! http://jruby.org
<Catbuntu> I have to check JRuby
<Catbuntu> This is my Ruby hello worlde: https://github.com/unrar/rubies/blob/master/animal.rb
kirun has joined #ruby
kaen has quit [Quit: Leaving]
<robert_> Catbuntu: C++ > perl/java/C#, imo. :p
<havenn> shevy: I heard Macros in Word are the most popular Lisp dialect.
<shevy> Catbuntu you use java?
<Catbuntu> Java > C# imo
<Catbuntu> I use Java a bit
benlieb has joined #ruby
<Catbuntu> I like it as a compiled language.
tewlz has quit [Read error: No route to host]
<shevy> havenn really? hmm... he has like 100 microsoft-books at home... I think he must have used some other language... visual something or C++
<Catbuntu> It's compiled and interpreted with the JVm, though.
<robert_> Catbuntu: I don't like how verbose it requires you to be. bleh.
skogis has joined #ruby
skogis has quit [Client Quit]
<robert_> and HAAAI, shevy :D
<havenn> shevy: I kid, but. :P
<Catbuntu> I wrote my IRC bot with PHP, then with Python.
<Catbuntu> I won't rewrite it on Ruby hehe
<robert_> :p
<Catbuntu> It took me ages
<shevy> Catbuntu, in your code
<shevy> def type=(newType); @type = newType
<shevy> you can replace this with: attr_writer :type
<Catbuntu> yep
<Catbuntu> I know
skogis has joined #ruby
emocakes has quit [Quit: emocakes]
<shevy> first project I did in ruby was an IRC bot
<shevy> and the reason was, I tried with php, and I failed :(
<Catbuntu> It was just like a test of "what happens if it's not on attr_accessor"
<Catbuntu> Ow, but but.
<shevy> attr_accessor combines attr_writer and attr_reader
<Catbuntu> But attr_accessor allows reading and writing, doesn't it?
<Catbuntu> Oh, I see
<Catbuntu> I really like this
<shevy> and it is doing nothing magical btw
<havenn> Catbuntu: Yup, same as attr_reader + attr_writer
<shevy> it is exactly the same as if you would have wrote it yourself
hadees has joined #ruby
<Catbuntu> Plus, Ruby doesn't have the annoying underscores of Python, or the must-have parenthesis.
<shevy> attr_reader :foo is the same as def foo; @foo; end
<Catbuntu> I really like Ruby hehe
<Catbuntu> Which OS's do you use?
<shevy> you can continue to use parens
<Catbuntu> Yep, but they're optional
<Catbuntu> As the indentation
<shevy> yeah but most people decide to not use them
<Catbuntu> Which are mandatory on Python
<shevy> I am on linux
<Catbuntu> Me too
<shevy> but I cant say I love linux as a whole
<Catbuntu> I switched to Linux a year-and-half ago
<Catbuntu> Oh I really do
BizarreCake has quit [Ping timeout: 264 seconds]
<Catbuntu> I've been changing the distro each two days hehe
<Catbuntu> Since the Ubuntu Unity disaster.
<Catbuntu> I'm currently happy with Linux Mint and MATE (=GNOME2), using Compiz.
fphilipe has quit [Remote host closed the connection]
<jacktrick> Eh
<jacktrick> I really dislike Mint
breakingthings has joined #ruby
<jacktrick> Xubuntu all the way
<Catbuntu> :P
<Catbuntu> I also used Xubuntu for three months.
<Catbuntu> But I preffer MATE to XFCE.
<jacktrick> Or arch if I feel like adding some danger to my life
<Catbuntu> meh
<Catbuntu> I dislike Arch.
<sullenel> Catbuntu: why?
<shock_one> How to match everything inside of corresponding quotes? I need something like /['"](.*)['"]/ but last bracket shouldn't match " if first matched ' and vice versa
<Catbuntu> It took me two days to have it usable, and then I just got rid of it.
Kuifje has quit [Read error: Connection reset by peer]
<Catbuntu> Oh, regex
<GuidovanPossum> oh and for anyone who's interested, since there's been so much mention of _why today, crank up the Don McLean and sing along with my adapted lyrics to American _Why: https://gist.github.com/1168850
blazes816 has quit [Quit: blazes816]
tylersmith has quit [Quit: tylersmith]
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
<Catbuntu> What happened to _why?
<havenn> Catbuntu: He released a couple riddles on his website a few weeks ago. Would be nice if he came out of hibernation!
dr_neek has quit [Quit: dr_neek]
shevy has quit [Ping timeout: 246 seconds]
<shock_one> jacktrick, OMG
Axsuul has joined #ruby
<jacktrick> !!!
backjlack_ has joined #ruby
grzywacz has quit [Ping timeout: 248 seconds]
alfism has joined #ruby
rkneufeld has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<shock_one> jacktrick, thank you.
<jacktrick> np
bluOxigen has joined #ruby
woolite64 has joined #ruby
grayson has quit [Quit: Computer has gone to sleep.]
<swarley> shock_one; if you're trying to get the content between quotes this regex should work /(['"])([^\1\\]|\\.)\1/
backjlack has quit [Ping timeout: 245 seconds]
rdark has quit [Ping timeout: 252 seconds]
<swarley> >> puts /(['"])([^\1\\]|\\.)\1/.match("'foo\''").captures
<eval-in> swarley: Output: "/tmp/execpad-1befd3f5cd4a/source-1befd3f5cd4a:1:in `<main>': undefined method `captures' for nil:NilClass (NoMethodError)\n" (http://eval.in/8260)
* swarley tries to remember how to backref
<swarley> Whatever, it looks like you found your answer
<shock_one> swarley, don't know if it works with ruby engine, though.
<swarley> >> puts /'([^\1\\]|\\.)'/.match("'foo\''").captures
<eval-in> swarley: Output: "/tmp/execpad-5600f59b798d/source-5600f59b798d:1:in `<main>': undefined method `captures' for nil:NilClass (NoMethodError)\n" (http://eval.in/8261)
<swarley> >> puts /'([^\1\\]|\\.)'/.match("'foo\''")
<eval-in> swarley: Output: "\n" (http://eval.in/8262)
ryanf has joined #ruby
<swarley> wtf
<swarley> oh
<swarley> duh
<Spooner_> swarley, Test in pry first ;)
<swarley> Spooner_; shhhhh fresh install
<swarley> i don't have ruby built yet
<swarley> >> puts /'([^\'\\]|\\.)'/.match("'foo\''")
<eval-in> swarley: Output: "\n" (http://eval.in/8263)
<swarley> :| fine I'm done
<swarley> But I know I've used that
Feoh has joined #ruby
<swarley> Oh, maybe I need to escape those quotes
<swarley> w/e
<jacktrick> tabs, Catbuntu? D:
n1x has joined #ruby
benlieb has quit [Quit: benlieb]
Feoh has left #ruby [#ruby]
<havenn> Catbuntu: snake_case barewords and 2-space indentation would be nice for reading ease
<havenn> headless camels, oh my!
<Spooner_> swarley, I'm lazy: puts /(?:'(?<m>[^']+)|"(?<m>[^"]+))/.match("'foo\''")['m']
alfism has quit [Quit: alfism]
KevinSjoberg has joined #ruby
<swarley> OH
<jacktrick> Java convert, probably. I used to do the same. D:
<swarley> >> puts "'hello\''".match /(['"])([^\1\\]|\\.)*\1/
<eval-in> swarley: Output: "'hello''\n" (http://eval.in/8264)
maletor has quit [Ping timeout: 276 seconds]
<swarley> I forgot the repetition operator
araujo has quit [Read error: Connection reset by peer]
shevy has joined #ruby
sayan has quit [Quit: Leaving]
<Catbuntu> 2-space is better than tabs=
<Catbuntu> *?
<jacktrick> it's a common ruby convention
<Catbuntu> Oh, I preffer cammelCase
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
nomenkun has joined #ruby
<Spooner_> Catbuntu, 2space, not tab (tab is evil!) and, firefox? and new_type and it looks like Ruby ;)
<Catbuntu> new_type where?
n1x has quit [Read error: Connection reset by peer]
MattRB has quit [Quit: This computer has gone to sleep]
<Spooner_> Catbuntu, new_type, not newType
<shevy> Catbuntu there are three choices you can make - 2 space 4 space or 1 tab
<Catbuntu> ok
<swarley> >> puts ("'hello\''".match /(['"])([^\1\\]|\\.)*\1/)).captures
<eval-in> swarley: Output: "/tmp/execpad-f3fdede1be92/source-f3fdede1be92:1: syntax error, unexpected ')', expecting $end\nputs (\"'hello\\''\".match /(['\"])([^\\1\\\\]|\\\\.)*\\1/)).captures\n ^\n" (http://eval.in/8265)
<swarley> >> puts ("'hello\''".match /(['"])([^\1\\]|\\.)*\1/).captures
<eval-in> swarley: Output: "'\n'\n" (http://eval.in/8266)
<swarley> wat
<jacktrick> ?
<jacktrick> Down this path lies madness, swarley,
<swarley> >> puts ("'hello\''".match /(['"])(([^\1\\]|\\.)*)\1/).captures
<eval-in> swarley: Output: "'\nhello'\n'\n" (http://eval.in/8267)
<swarley> there we go
<swarley> >> p ("'hello\''".match /(['"])(([^\1\\]|\\.)*)\1/).captures
<eval-in> swarley: Output: "[\"'\", \"hello'\", \"'\"]\n" (http://eval.in/8269)
<swarley> \o/
<swarley> I knew I wasn't crazy
<swarley> just forgetful
<shock_one> swarley, so which one?
moos3_ has joined #ruby
<swarley> /(['"])(([^\1\\]|\\.)*)\1/
<swarley> That one
<swarley> It would be $2
<swarley> if you use =~
<Spooner_> Catbuntu, Also, you only need: def firefox?; @type.downcase == "firefox" end
banister`sleep has quit [Read error: Connection reset by peer]
<swarley> if you use String#match it's capture[1]
angusiguess has quit [Ping timeout: 255 seconds]
angusiguess has joined #ruby
<shock_one> I suppose there is no way to avoid capturing quotes?
<swarley> shock_one; there is
<jacktrick> hm?
moos3 has quit [Ping timeout: 255 seconds]
moos3_ is now known as moos3
banister`sleep has joined #ruby
<swarley> Would you like to see it?
<swarley> it's longer
<shock_one> swarley, what? more scary?
<swarley> not really
<Catbuntu> Now?
baphled has joined #ruby
pavilionXP has joined #ruby
<jacktrick> much more rubyish
<jacktrick> heh
thams has joined #ruby
huttan has quit [Ping timeout: 245 seconds]
<swarley> /(?: \' ( [^'\\] | \\. )* \' ) | (?: \" ( [^"\\] | \\. )* \" )/x
<shevy> swarley has become mad :(
<shevy> look at all the madness he types
<swarley> just repetative
<shock_one> sweet
<swarley> you can actually speed that up a bit probabyl
<swarley> probably
ferdev is now known as ferdev|away
<swarley> /(?:\'([^'\\]|\\.)*\')|(?:\"([^"\\]|\\.)*\")/
<swarley> it just looks crazy now
Targen has joined #ruby
<shock_one> I need to parse 100-500 lines only
DrShoggoth has joined #ruby
<swarley> /x makes whitespace between in the regex not matter
<swarley> If you're not going to modify the regex you can just use the second one
ferdev|away is now known as ferdev
<swarley> the first one is more useful if you're going to comment on how it works
<shock_one> I was trying to find how rubinius parses strings, but without any success.
<swarley> Ah, well thats the way it does '' strings
<swarley> and q// strings to a degree
GuidovanPossum has quit [Quit: GuidovanPossum]
<swarley> "" strings are a whole different beast that is scary beyond belief
the_jeebster has joined #ruby
huttan has joined #ruby
<shock_one> swarley, do you know in which file I can look at it?
aaronmacy has joined #ruby
eldariof has quit []
<Hanmac> i have currenently /(?:\'([^'\\]*|\\.*)\')|(?:\"([^"\\]*|\\.*)\")/ but i think that can be better
<Catbuntu> hehe
<Catbuntu> Is there any Ruby style guide?
<havenn> Catbuntu: Github has a nice one: https://github.com/styleguide/ruby
frankkany has joined #ruby
<Catbuntu> Thanks :)
slainer68 has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
<swarley> /\% q (?:([~!@#$%^&*)_-+=]|\/,\.>:;}`"']) (([^\1\\] | \\.)*) \1)|(?: \< (([^>\\] | \\.)*) \> )|(?: \[ (([^\]\\] | \\.)*) \] )|(?: \{ (([^}\\] | \\.)*) \})|(?: \( (([^(\\]|\\.)*) \) )/x
<swarley> %q// string regex \o/
cardoni has joined #ruby
<swarley> blah the last one is wrong
johndouthat_ has joined #ruby
<swarley> should be ) instead of (
<Catbuntu> Oh, TomDoc looks great.
<swarley> Hanmac; it can't be done better without capturing
<shock_one> swarley, where is it from?
<swarley> afaik
the_mentat has quit [Quit: Computer has gone to sleep.]
<swarley> shock_one; I just made it
<shock_one> swarley, no kidding?
<swarley> I wrote a ruby parser the other day
ForSpareParts has joined #ruby
<swarley> Yeah
<shock_one> swarley, pretty impresive
the_mentat has joined #ruby
<swarley> Meh, If only
johndouthat has quit [Ping timeout: 264 seconds]
johndouthat_ is now known as johndouthat
kristofers has quit []
<Hanmac> what about this: /(\'|\")([^\1\\]*|\\.*)\1/
GuidovanPossum has joined #ruby
<swarley> That's what I had earlier
chrishough has quit [Quit: chrishough]
<swarley> But he said he wanted to avoid the capture
<swarley> So I expanded it
<swarley> To what you showed before
<swarley> Except with non capturing groups
<epta> How can I check that there is a git repo in some directory with ruby-git ? ( https://github.com/schacon/ruby-git )
<swarley> oh no you had them
cardoni has quit [Ping timeout: 252 seconds]
<shock_one> Can you write the simplest version possible (may be with quotes capturing or whatever)?
hiroyuki_ has quit [Read error: Connection reset by peer]
<Catbuntu> bye bye
<swarley> /(["'])(([^\1\\]|\\.)*\1/
Catbuntu has quit [Quit: rubyruby]
<swarley> err
<swarley> /(["'])(([^\1\\]|\\.)*)\1/
zerba has quit [Remote host closed the connection]
<shock_one> swarley, thanks, I'll try it.
TomJ has quit [Ping timeout: 256 seconds]
<swarley> no problem
security has joined #ruby
SQLDarkly has joined #ruby
Elhu has joined #ruby
hiroyuki has joined #ruby
megha has quit [Ping timeout: 255 seconds]
blaxter has quit [Quit: foo]
<swarley> >> "'foo=\'bar\''" =~ /(["'])(([^\1\\]|\\.)*)\1/; puts $2
<eval-in> swarley: Output: "foo='bar'\n" (http://eval.in/8270)
<swarley> >> "'foo=\'bar\''" =~ /(["'])(([^\1\\]|\\.)+)?\1/; puts $2
<eval-in> swarley: Output: "foo='bar'\n" (http://eval.in/8271)
<SQLDarkly> if I have an array like key=value,key1=value1,key2=value2. What is the best method convert to hash like {key => value}
<swarley> >> "'foo=\'bar\''" =~ /(["'])(([^\1\\]|\\.)?)+\1/; puts $2
<eval-in> swarley: Output: "\n" (http://eval.in/8272)
pskosinski has quit [Read error: Connection reset by peer]
spinagon has quit [Read error: Connection reset by peer]
braoru has joined #ruby
<swarley> >> "'foo=\\'bar\\''" =~ /(["'])(([^\1\\]|\\.)*)\1/; puts $2
<eval-in> swarley: Output: "foo=\\'bar\\'\n" (http://eval.in/8273)
rippa has joined #ruby
<swarley> >> "'foo=\\'bar\\''" =~ /(["'])(([^\1\\]|\\.)*)\1/; puts $1
<eval-in> swarley: Output: "'\n" (http://eval.in/8274)
<swarley> k
aces1up has joined #ruby
<havenn> SQLDarkly: Hash[key: 'value'] #=> {:key=>"value"}
<aces1up> can someone help me why this returns an array?
<aces1up> attributes.max_by{ |attr, value| value.length }
pskosinski has joined #ruby
<aces1up> when attributes is a hash?
<canton7> a lot of the Enumerable Hash functions return an array
<canton7> use Hash[result] to get them back
thams has quit [Quit: thams]
<Hanmac> aces1up because it returns an [key,value] pair
chrishough has joined #ruby
<swarley> a hash is just
<SQLDarkly> hmm i guess im over complicating things. Was trying to use map in addition to the above.
<swarley> [["foo", "bar"], ["herp", 1], [:key, :value]]
<swarley> Not exactly, but you can picture it that way
tenmilestereo has joined #ruby
dougireton has joined #ruby
dougireton has left #ruby [#ruby]
<swarley> also most hash enumerables return a key,value pair
<ForSpareParts> Anyone here know how I could extend HAML to add extra classes to certain elements at compile time? It's the sorta thing I could easily do with JQuery, but it seems silly to apply that overhead clientside to a page load when I could just do it once in compilation.
dr_neek has joined #ruby
rezzack has joined #ruby
blaxter has joined #ruby
arya has quit [Ping timeout: 255 seconds]
Chinorro has quit [Remote host closed the connection]
blaxter has quit [Client Quit]
<epta> Is square brackets in %x[] stands for list of commands? So could I run some commands like %x["a", "b", "c"]?
dougireton has joined #ruby
KevinSjoberg has quit [Ping timeout: 248 seconds]
<swarley> no
<swarley> %x[] is a single command
<aces1up> how can i just get the value of a single key/value hash if i don't know the key? ex {k, v}.value
<swarley> what
r0bby has quit [Read error: Connection reset by peer]
rupee has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
<apeiros_> .to_a.last
r0bby has joined #ruby
<swarley> also, don't use 1.8
rupee has joined #ruby
<apeiros_> but you should ask yourself why you even have a hash with a single key/value pair with unknown key…
main has joined #ruby
<apeiros_> sorry, to_a.last.last
<apeiros_> or .values.first
<swarley> >> puts {foo: 1}.last
<eval-in> swarley: Output: "/tmp/execpad-ba1c140590fd/source-ba1c140590fd:1: syntax error, unexpected ':', expecting '}'\nputs {foo: 1}.last\n ^\n" (http://eval.in/8275)
<swarley> Didn't think so
<swarley> worth a try
arya has joined #ruby
<swarley> wait what
<swarley> >> puts RUBY_VERSION
<eval-in> swarley: Output: "1.9.3\n" (http://eval.in/8276)
<apeiros_> block syntax
<apeiros_> you can't have puts {
philcrissman has quit [Remote host closed the connection]
<swarley> >> puts({foo: 1}.last)
<eval-in> swarley: Output: "/tmp/execpad-a2f4444b7429/source-a2f4444b7429:1:in `<main>': undefined method `last' for {:foo=>1}:Hash (NoMethodError)\n" (http://eval.in/8277)
<ericwood> >> puts "{"
<eval-in> ericwood: Output: "{\n" (http://eval.in/8278)
<ericwood> there ya go
<apeiros_> omg
<epta> %x[] hide the command output. How can I print it?
imami|afk has quit [Ping timeout: 245 seconds]
Shadow_S has quit [Quit: Textual IRC Client: www.textualapp.com]
marr has joined #ruby
<aces1up> Hash[ *attributes.max_by{ |attr, value| value.length } ].keys.first
<aces1up> is that totally retarted?
<apeiros_> whyyyyy
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
<apeiros_> yes
<aces1up> lol
<havenn> epta: backticks, e.g.: `ls`
<ericwood> >.<
<swarley> I'm so confused as to what is going on
vinax has quit [Ping timeout: 264 seconds]
<apeiros_> it seems you're not alone
<ericwood> where am i
F1skr has quit [Quit: WeeChat 0.4.0]
<swarley> I have no idea what anyone's intent with anything they are doing is
<apeiros_> attributes.max_by{ |attr, value| value.length }.first
banseljaj has joined #ruby
Retistic has joined #ruby
philcrissman has joined #ruby
<swarley> that may be the least readable ruby code I've seen o-O
<apeiros_> ericwood: in my nightmare.
<swarley> and I've seen some shit
<ericwood> damn bro
<apeiros_> somebody know another nsfw webcomic which is fun?
<aces1up> apeiros_ thanks man for un retarding me..
* apeiros_ already read all of oglaf & menage à 3
pu22l3r has quit [Ping timeout: 248 seconds]
TomJ_ has joined #ruby
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
<ner0x> Anything for comparing strings and giving back a % similar?
<ericwood> apeiros_: all web comics are NSFW because you should be doing work and not reading comics damnit
<Xeago> erhm, not a comic per se, angel blade manga
<Xeago> tho the anime is also very good
abcdefg_ has joined #ruby
<Xeago> the storyline, not the nsfw
<ericwood> ner0x: there's a bunch of measures of similarity...here's a good starting point: http://en.wikipedia.org/wiki/Category:String_similarity_measures
jory has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jacktrick> * apeiros_ already read all of oglaf & menage à 3
<jacktrick> omg
<jacktrick> thanks for reminding me about menage a 3
<jacktrick> :D
otters has quit [Ping timeout: 245 seconds]
<ner0x> ericwood: Thanks for the reading. Any gems that come to mind?
mhf has joined #ruby
dougireton has quit [Quit: Leaving.]
TomJ has quit [Ping timeout: 248 seconds]
TomJ_ is now known as TomJ
<ericwood> ner0x: a gem for that is kind of overkill
<apeiros_> Xeago: link?
<Xeago> to angel blade?
jaygen has joined #ruby
reset has joined #ruby
fphilipe has joined #ruby
<apeiros_> sure
<apeiros_> ericwood: you think a gem for a couple of hard to implement algorithms was overkill?
<apeiros_> odd thresholds you have…
<ericwood> he just wants like one simple algo
<ericwood> if it were a more complicated one I'd say it would be a good choice, but this is just a simple function
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
<ericwood> mo gems, mo problems, ya know?
zykes- has joined #ruby
workmad3 has joined #ruby
<zykes-> how does one to like if a == b: dosomething() in ruby?
<ericwood> dosomething if a == b
TomJ_ has quit [Remote host closed the connection]
<ner0x> ericwood: Oh... Alright then.
<apeiros_> I would very much like to know how you get a % similarity of two strings in a couple of lines…
<ericwood> apeiros_: it could very well be 10-15 LOC, but that's still not nearly enough for a whole GEM
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
<ericwood> I somehow see this ending with me being wrong, though
ozgura has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 248 seconds]
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<apeiros_> ericwood: go out of my nightmare already :-p
TomJ has quit [Ping timeout: 248 seconds]
TomJ_ is now known as TomJ
<ericwood> I'm doing metaprogramming somebody stop me before anyone gets hurt D:
davetherat has joined #ruby
<ner0x> ericwood: http://search.cpan.org/dist/Text-Levenshtein/Levenshtein.pm Seems pretty good to me?
<ericwood> that's perl, not ruby
<Hanmac> ericwood pah i have write more worse code :P
slainer68 has quit [Remote host closed the connection]
anderse has quit [Quit: anderse]
kaen has joined #ruby
<ericwood> apeiros_: see? I'm right.
<ericwood> unstoppable
<shock_one> swarley, Your regexp is too eager. In the string «some 'text' with 'many quotes'» it matches «text' with 'many quotes»
d2dchat has quit [Remote host closed the connection]
recycle has quit [Read error: Connection reset by peer]
<apeiros_> ericwood: wow, that "right" answer is horrible
recycle has joined #ruby
dv_ has quit [Read error: Connection reset by peer]
<ericwood> yeah well whatever
<ericwood> I only glanced at it :p
lkba has joined #ruby
<shock_one> /(["'])(([^\1\\]|\\.)*)\1/
razibog has quit [Ping timeout: 246 seconds]
lolmaus has quit []
rippa has quit [Ping timeout: 240 seconds]
<ericwood> I think a cat just walked on shock_one's keyboard
<Hanmac> ericwood: beat that: 1 - a.each_char.to_enum(:zip,b.each_char).count {|x,y| x==y} / a.size.to_f
<swarley> ah.
<apeiros_> "hello" and "Hello" happen to be very dissimilar per this algorithm
<ericwood> >> def foo(a,b); 1 - a.each_char.to_enum(:zip,b.each_char).count {|x,y| x==y} / a.size.to_f
<eval-in> ericwood: Output: "/tmp/execpad-0cb878704881/source-0cb878704881:1: syntax error, unexpected $end, expecting keyword_end\n...unt {|x,y| x==y} / a.size.to_f\n... ^\n" (http://eval.in/8279)
<ericwood> whoops
<apeiros_> actually any 2 strings which happen to not share the same first character
<apeiros_> ah, sorry
<apeiros_> "hello world" and "ello world"
<swarley> /(["'])(([^\1\\]|\\.)+?)\1/
<swarley> shock_one; ^
<swarley> /(["'])((?:[^\1\\]|\\.)+?)\1/
guttermonkey has quit []
<swarley> non capture is probably better there
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
Morkel_ has joined #ruby
<shock_one> swarley, can it match content of each string?
stayarrr has joined #ruby
pdamer has joined #ruby
<swarley> it should. That should be lazy instead of eager
bradleyprice has joined #ruby
<Hanmac> apeiros_ what about: Rational(a.each_char.to_enum(:zip,b.each_char).count {|x,y| x==y},a.size)
<shock_one> swarley, I also need the content of second string captured
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
hasse has quit [Ping timeout: 245 seconds]
<apeiros_> Hanmac: still suffers from a being totally dissimilar from a[1..-1]
dv_ has joined #ruby
<Hanmac> hm ok but from the answer ericwood shows, my code is better
<swarley> shock_one; you should be able to do a full capture with match a think
<shock_one> >> puts (/(["'])((?:[^\1\\]|\\.)+?)\1/.match "some 'text' with 'many quotes'")
<eval-in> shock_one: Output: "'text'\n" (http://eval.in/8280)
<apeiros_> Hanmac: also a problem: a = "X"; b = "Xfooooooooooooobaaaaar"
<apeiros_> 100% similar per algorithm
<apeiros_> too bad
<whitequark> um
codecaster has quit [Read error: Connection reset by peer]
<whitequark> no one mentioned hamming distance?
<whitequark> there's even a gem
<apeiros_> whitequark: the link came early to WP
<apeiros_> but somebody claimed it would be overkill to use a gem
<shock_one> swarley, ⇈
joschi_ is now known as joschi
<whitequark> if a gem is overkill
<whitequark> just vendor it lol
<apeiros_> there's even a gem with a couple of string similarity algorithms crammed together
anderse has joined #ruby
<whitequark> apeiros_: just posted a link to it.
<apeiros_> using better algorithms like jarro-winkler e.g.
codecaster has joined #ruby
nateberkopec has joined #ruby
gyre007 has quit [Remote host closed the connection]
<apeiros_> jepp, didn't remember its name was rubyfish
wakoinc has left #ruby [#ruby]
<apeiros_> but it contains jaro-winkler (why do I always misspell that as jarro-winkler?)
cableray has joined #ruby
arya has quit [Ping timeout: 252 seconds]
moos3_ has joined #ruby
ben_h_ has joined #ruby
fphilipe has quit [Remote host closed the connection]
moos3 has quit [Ping timeout: 264 seconds]
moos3_ is now known as moos3
<whitequark> yarr
<shock_one> jailbreak for ios6 is out if somebody cares.
<apeiros_> meh
* apeiros_ is a happy prisoner
<whitequark> meh
s1n4 has joined #ruby
* whitequark is not in a closed ecosystem
<apeiros_> well, it's an open prison
Xeago has quit [Remote host closed the connection]
<apeiros_> I can walk out any time I want
mando has joined #ruby
<shock_one> apeiros_, alcoholics also can stop drinking any time they want
<whitequark> oxymoron much
fphilipe has joined #ruby
<apeiros_> shock_one: bad analogy
jrist-afk is now known as jrist
<whitequark> I find it pretty decent :D
<Hanmac> hm i looked at the rubyfish ... it has ugly code :(
<apeiros_> Hanmac: don't. look. at. foreign. code.
<apeiros_> it's horror. in 99% of all cases.
<Hanmac> look at this line "(0...as_length).each do |i|"
<Hanmac> or "(low_lim..hi_lim).each do |j|"
<whitequark> Hanmac: nothing wrong with it
<apeiros_> don't pull me in
lundahl has joined #ruby
chussenot has joined #ruby
joofsh has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 264 seconds]
<Hanmac> whitequark there are better functions for that ... like times and upto
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<whitequark> Hanmac: better is an enemy of good
<whitequark> it's short and clear. it is not ugly.
fphilipe has quit [Remote host closed the connection]
<Hanmac> whitequark upto is shorter and more clear
atmosx has joined #ruby
fphilipe has joined #ruby
<whitequark> ...
fphilipe has quit [Remote host closed the connection]
dougireton has joined #ruby
bwlang has left #ruby [#ruby]
jacktrick has quit [Quit: Leaving]
bradhe has joined #ruby
PragCypher has quit [Remote host closed the connection]
PragCypher has joined #ruby
KevinSjoberg has joined #ruby
zastern has quit []
zastern has joined #ruby
codecaster has quit [Quit: Leaving.]
cardoni has joined #ruby
asteve has quit [Remote host closed the connection]
ozgura has joined #ruby
otters has joined #ruby
asteve has joined #ruby
asteve has quit [Remote host closed the connection]
asteve has joined #ruby
jblack has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
jblack has joined #ruby
sullenel has quit [Quit: sullenel]
s1n4 has quit [Quit: leaving]
cardoni has quit [Ping timeout: 248 seconds]
<KevinSjoberg> I really need some help figuring out this issue. I'm trying to understand why the bytes differentiate between two scenarios, both running Ruby 1.8.7 but get the input from different sources. See https://gist.github.com/4709596. The string in question is "Kevin Sjöberg".
dougireton has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
<KevinSjoberg> Can anyone explain why there is a difference on 1 byte?
BSaboia has joined #ruby
ozgura_ has joined #ruby
ozgura has quit [Read error: Connection reset by peer]
thams has joined #ruby
mhf has quit [Remote host closed the connection]
Udom0 has left #ruby [#ruby]
mhf has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<KevinSjoberg> Any ideas?
Puntland is now known as Lemtzas
chussenot has quit [Quit: chussenot]
twoism has joined #ruby
Elhu has joined #ruby
squidBits has joined #ruby
chussenot has joined #ruby
BSaboia__ has joined #ruby
elaptics`away is now known as elaptics
ben_h_ has quit [Read error: Connection reset by peer]
rmartin has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
<mando> KevinSjoberg: are you 100% sure that /usr/bin/ruby is the same as /usr/bin/env ruby?
brad[] has quit [Ping timeout: 276 seconds]
breakingthings has quit []
heckler has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
<KevinSjoberg> mando: As far as I checked. Is there a way to confidently confirm that? I ran "puts VERSION" in both the script and with /usr/bin/ruby and both ouputted "1.8.7".
<Hanmac> KevinSjoberg: 1.8 cant handle encoding well ...
BSaboia has quit [Ping timeout: 245 seconds]
<KevinSjoberg> Hanmac: So I figured. But it's weird that 1.8 handle two strings differently. One would imagine that it would handle them equally bad, right?
heckler has joined #ruby
brad[] has joined #ruby
dougireton has joined #ruby
<mando> KevinSjoberg: I've got to install 1.8.7, but 1.9.3 handles them them the same
d2dchat has joined #ruby
nicoulaj has joined #ruby
workmad3 has joined #ruby
<KevinSjoberg> mando: Yeah, I know 1.8.7 handles unicode support badly, but I didn't expect to get different outcome on the same string.
emanon_ has quit [Read error: No route to host]
frem has quit [Ping timeout: 248 seconds]
<ner0x> ericwood: https://gist.github.com/4709704 Seems to work
emanon_ has joined #ruby
<apeiros_> KevinSjoberg: how sure are you that the -Ku is passed in the 2nd scenario?
<apeiros_> not all env pass on flags. BSD does, GNU afaik does not
<Hanmac> ner0x use: same = a.each_char.to_enum(:zip,b.each_char).count {|x,y| x==y}
<KevinSjoberg> apeiros_: Well, pretty sure. "puts $KCODE" says "UTF8" and without it it says "None".
<apeiros_> KevinSjoberg: you can test by `p $KCODE`
fedza has quit [Ping timeout: 240 seconds]
<zykes-> ok, how does one document a ruby function ?
cleaninGron is now known as colonolGron
<Hanmac> >> p $KCODE
<eval-in> Hanmac: Output: "/tmp/execpad-efc164cd17c0/source-efc164cd17c0:1: warning: variable $KCODE is no longer effective\nnil\n" (http://eval.in/8281)
<ner0x> Hanmac: Any specific reason?
<apeiros_> KevinSjoberg: oh, seems it's not a ruby issue
<apeiros_> you're getting the value in two different normalizations. it's both unicode.
<mando> KevinSjoberg: even in 1.8.7, I get the same results
otters has quit [Ping timeout: 252 seconds]
<Hanmac> ner0x image you have two strings both are 255 chars long ... now guess why my part is better whan yours
ferdev is now known as ferdev|away
<KevinSjoberg> mando: You do? You ran both scenarios? Terminal and through shell script?
<robert_> hai apeiros_
<apeiros_> hi robert_
<robert_> how's it going?
Kuifje_ has joined #ruby
Kuifje_ has quit [Changing host]
Kuifje_ has joined #ruby
<mando> KevinSjoberg: yup
moos3 has quit [Quit: Computer has gone to sleep.]
<apeiros_> robert_: not too well. been sick for a week and still coughing.
<mando> wait, hold on :)
<mando> hahaha
<KevinSjoberg> mando: I see, it must be something else then.
<robert_> eesh
<mando> I accidentally pasted the return vals into the last line of the ruby script :)
<robert_> [re-post] so I have a slight dilema- I'm trying to calculate an exact date relative to any given month ("the third monday in (month name)", "one week from the end of the month in (month name)"); only, I'm not sure the best way to go about it.
heckler has quit [Quit: Leaving]
vlad_starkov has joined #ruby
<KevinSjoberg> apeiros_: Aha, I see. So that mean Alfred (an Mac application) that serve the input to the shell script has a different normalization than Ruby?
<mando> KevinSjoberg: ok, I took the superfluous returns out and it STILL works
<apeiros_> KevinSjoberg: I don't know what it means for your specific case. just that you're getting input in different normalizations.
braoru has quit [Ping timeout: 276 seconds]
<Hanmac> ner0x: your code does first create an two dimensional array with size 2× a.size and then an two dimensional array with size x × 2 ... my variant does not create any array
<apeiros_> and that's reflected at binary level.
<KevinSjoberg> apeiros_: How does one handle different normalizations. Any idea?
<mando> KevinSjoberg: if I had to guess, I'd look at ARGV[0]
<apeiros_> you normalize to one
<apeiros_> take a look at the unicode gem e.g.
Kuifje has quit [Ping timeout: 245 seconds]
frankkany has quit [Remote host closed the connection]
<KevinSjoberg> apeiros_: Sure, I'll do that. Thanks a lot.
<apeiros_> it can reencode from KC to KD
adambeynon has joined #ruby
<Hanmac> i would still recoment to drop 1.8 support
<apeiros_> or the other way round
<KevinSjoberg> mando: Yeah, I've done that. Nothing particular about it. But I'll go a head and try to fix the normalization.
<apeiros_> Hanmac: 1.9 sadly still doesn't have tools for unicode normalizations :(
Jedi_SCT1 has quit [Quit: See ya]
hydrozen has joined #ruby
<spider-mario> KevinSjoberg: there’s also unicode_utils
<ner0x> Hanmac: You sir, are the man.
<apeiros_> robert_: you want to parse that out from textual expressions?
<spider-mario> I’m not sure how to choose between them
<KevinSjoberg> spider-mario: Thanks. I'll look into that too.
Jedi_SCT1 has joined #ruby
carloslopes has quit [Remote host closed the connection]
otters has joined #ruby
ferdev|away is now known as ferdev
Vert has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
GuidovanPossum has left #ruby [#ruby]
ryanf has quit [Ping timeout: 252 seconds]
mhf has quit [Remote host closed the connection]
mhf has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
renanoronfle has quit [Quit: This computer has gone to sleep]
jain-at-K-OLE has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Nine out of ten l33t h4x0rz prefer it]
c0rn has quit [Ping timeout: 248 seconds]
atmosx has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby
ryanf has joined #ruby
kylescottmcgill has joined #ruby
fphilipe has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.0]
jfl0wers has quit [Quit: jfl0wers]
atno has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
DaltonUS has quit [Quit: DaltonUS]
abcdefg_ has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121128204232]]
c0rn has joined #ruby
Xeago has joined #ruby
mmitchell has quit [Remote host closed the connection]
Al__ has joined #ruby
mthk has joined #ruby
straind` has joined #ruby
straind has quit [Read error: Connection reset by peer]
swex has quit [Ping timeout: 255 seconds]
bricker_ has joined #ruby
benlieb has joined #ruby
grzywacz has joined #ruby
bricker has quit [Read error: Operation timed out]
reuven` has joined #ruby
jimeh has quit [Ping timeout: 256 seconds]
chussenot has quit [Ping timeout: 246 seconds]
jimeh has joined #ruby
1JTAAH44K has joined #ruby
ryanjh has joined #ruby
frem has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
reuven has quit [Ping timeout: 245 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mercwithamouth has quit [Quit: Lost terminal]
<mthk> I'm trying to set multiple attributes of an object in a block, passing in a string (the attribute to be modified) and giving it a value. How would I do this?
<mthk> Right now i have https://gist.github.com/4709941
mark_locklear has quit [Ping timeout: 248 seconds]
pu22l3r has quit [Ping timeout: 276 seconds]
atno has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
<mthk> I can't just call "car.attr" like I've got in the gist right now
<mthk> Do I need to use eval and a string?
<mthk> Like eval "car.#{attr} = #{input}"
<apeiros_> you're looking for send
<apeiros_> mthk: Object#send
<apeiros_> don't forget that car.attr = val calls the method 'attr='
cardoni has joined #ruby
otters has quit [Ping timeout: 252 seconds]
_br_ has quit [Excess Flood]
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
_br_ has joined #ruby
Lubinski has quit [Ping timeout: 248 seconds]
thufir_ has joined #ruby
<mthk> apeiros_: Thank you. There's no simple way to add the = to the end of the symbol, is there?
<apeiros_> "#{foo}="
<apeiros_> or :"#{foo}=" if you prefer that. but send accepts a string just fine
<mthk> Oh, brilliant. I didn't realize you could just prepend a colon to a string with interpolation. Much obliged.
<mthk> apeiros_: Thanks and thanks again
benlieb has quit [Quit: benlieb]
Elhu has quit [Quit: Computer has gone to sleep.]
fphilipe has quit [Remote host closed the connection]
erlingur has joined #ruby
_br_ has quit [Excess Flood]
cardoni has quit [Ping timeout: 264 seconds]
mthk has quit [Quit: Page closed]
dougireton has quit [Quit: Leaving.]
jonahR has quit [Quit: jonahR]
Elhu has joined #ruby
noxoc has joined #ruby
kmurph has joined #ruby
_br_ has joined #ruby
emanon_ has left #ruby [#ruby]
vlad_starkov has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
emergion has joined #ruby
dallasm has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
IceDragon has joined #ruby
_br_ has quit [Excess Flood]
<Eiam> apeiros_: do you use continuous integration?
chussenot has joined #ruby
hydrozen has quit [Quit: Computer has gone to sleep.]
Lubinski has joined #ruby
shock_one has quit [Remote host closed the connection]
breakingthings has joined #ruby
chussenot has quit [Client Quit]
thone_ has joined #ruby
icole has joined #ruby
thone has quit [Read error: Operation timed out]
_br_ has joined #ruby
<robert_> apeiros_: any ideas?
Dwarf has quit [Ping timeout: 246 seconds]
<robert_> oh, sorry. I didn't see that.
<robert_> oh, I see, I think.
vlad_starkov has quit [Ping timeout: 260 seconds]
jblack_ has joined #ruby
geekbri has quit [Remote host closed the connection]
Myconix has quit [Ping timeout: 264 seconds]
otters has joined #ruby
thams has quit [Quit: thams]
joofsh has joined #ruby
pdamer has quit [Quit: pdamer]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
bapul has quit [Ping timeout: 252 seconds]
thams has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
emergion has quit [Quit: Computer has gone to sleep.]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
xyzodiac has joined #ruby
_br_ has quit [Excess Flood]
s1n4 has joined #ruby
hydrozen has joined #ruby
Myconix has joined #ruby
aedornm has joined #ruby
fbernier has quit [Read error: Connection reset by peer]
dougireton has joined #ruby
nomenkun has quit [Remote host closed the connection]
_br_ has joined #ruby
marienz has quit [Ping timeout: 615 seconds]
emergion has joined #ruby
cnrk has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
aquaranto has quit []
bawigga has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
kmurph has quit [Quit: kmurph]
mjolk has quit [Quit: Leaving]
mmitchell has joined #ruby
dallasm has quit []
emergion has quit [Quit: Computer has gone to sleep.]
jrist is now known as jrist-afk
bradleyprice has quit [Ping timeout: 248 seconds]
Dwarf has joined #ruby
emergion has joined #ruby
sarkis has joined #ruby
ferdev is now known as ferdev|away
Chinorro has joined #ruby
<1JTAAH44K> Hello.is there a gem to remotely retrieve meta data for a media file? like movie or mp3 song?
<sarkis> hey all, is it possible to install bundler in a local repo? i tried installing it to ./vendor/bundle/ruby/1.8/bin .. then when i run ./vendor/bundle/ruby/1.8/bin/bundle install --deployment i get this error: /usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
tenmilestereo has quit [Quit: Leaving]
lundahl has left #ruby ["ruby"]
<sarkis> sorry not "local repo" i should say in a non conventional directory.. like ./vendor
Cymurai has joined #ruby
seich- is now known as Seich
elico has quit [Ping timeout: 255 seconds]
gabrielr_ has joined #ruby
emmanuelux has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
mhf has quit [Remote host closed the connection]
allaire has joined #ruby
<sarkis> anyone ?
mhf has joined #ruby
<Cymurai> hey ruby users! new here, and new to ruby, just thought I would say hello, as I'm sure I'll be back here more often than not
Kuifje_ has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 248 seconds]
Kuifje has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
staafl has joined #ruby
mhf has quit [Remote host closed the connection]
mhf has joined #ruby
m8 has joined #ruby
anderse has quit [Quit: anderse]
xyzodiac has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
dougireton has quit [Quit: Leaving.]
alx- has quit [Remote host closed the connection]
alx- has joined #ruby
Morkel has quit [Quit: Morkel]
codecop has quit [Remote host closed the connection]
<Gate> Cymurai: hi :)
staafl has quit [Quit: Leaving]
noxoc has quit [Read error: Connection reset by peer]
<Cymurai> hey Gate! how's life treating you today?
nicoulaj has quit [Quit: nicoulaj]
<_br_> sarkis: what you want is rvm or rbenv together with bundler
<ozzloy> why doesn't this give an error, or nil? ['a', 'b'].first{ |e| e =~ /^c/ }
<Gate> sarkis: it should be possible, I'm guessing that you need is to pass a load path argument to the script
noxoc has joined #ruby
<Gate> Cymurai: so far, so good :)
<ozzloy> i would expect it to run the proc for each element and return the first for which the proc returned true
1JTAAH44K is now known as Jon30
<ozzloy> or to give an error
ilyam has joined #ruby
<ozzloy> instead it gives 'a'
<breakingthings> _br_ isn't bundler a meta-tool though? You wouldn't want to install bundler as part of the application...
<breakingthings> In the first place, I'm saying.
Al__ has left #ruby [#ruby]
<Gate> ozzloy: because you want "find" not "first"
the_mentat has quit [Quit: Computer has gone to sleep.]
forced_request has joined #ruby
<Gate> first ignores the block, find uses it as a selector
emergion has quit [Quit: Computer has gone to sleep.]
<ozzloy> that's surprising
<ozzloy> to me, at least
havenn has quit [Remote host closed the connection]
<Gate> ozzloy: yeah, I get caught with that one from time to time.
<Gate> breakingthings: I can easily see an argument for using specific bundler versions for apps, given that they are a moving target just like everything else
beiter has quit [Quit: beiter]
<Gate> although I agree, I just globally install bundler
blacktul_ has quit [Remote host closed the connection]
<breakingthings> But they're not part of the application itself
<breakingthings> They're a meta-tool to help you manage it
colonolGron has quit [Quit: leaving]
bradleyprice has quit [Remote host closed the connection]
<Gate> and yet rails depends on it ;)
milkpost_ has joined #ruby
EvanR has joined #ruby
ferdev|away is now known as ferdev
gyre008 has joined #ruby
bricker_ is now known as bricker
hydrozen has quit [Quit: Computer has gone to sleep.]
<EvanR> hi ruby channel. how do i convert a zoned time value from whatever timezone it is in to another zone, not necessarily the local timezone
milkpost_ has quit [Client Quit]
TomyLobo has quit [Quit: Standby mode...]
milkpost_ has joined #ruby
milkpost_ has left #ruby [#ruby]
<_br_> breakingthings: rvm allows you to have "system" gems and "gemsets" hence its ok
elux has quit [Quit: Leaving...]
<breakingthings> huh. ok.
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
idkazuma has joined #ruby
samlt has quit [Read error: Operation timed out]
d2dchat has quit [Remote host closed the connection]
<_br_> EvanR: You want to look at DateTime.parse
thufir_ has quit [Remote host closed the connection]
emergion has joined #ruby
<_br_> EvanR: alternatively maybe http://tzinfo.rubyforge.org/
Umren has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
chrishough_ has joined #ruby
chrishough_ has quit [Client Quit]
<EvanR> tzinfo will convert the time but it ignores the zone and does not return a value with the zone changed
aedornm has quit [Ping timeout: 245 seconds]
<v0n> what's the simplest S3 upload library?
<EvanR> which (i think) causes the results to compare incorrectly with other time values in other zones
chrishough has quit [Ping timeout: 264 seconds]
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
joshman_ has quit [Read error: Operation timed out]
noxoc has quit [Quit: noxoc]
hydrozen has joined #ruby
<bawigga> I'm currently working on an API wrapper gem.I'm receiving json from the service, what's the best way to convert the json responses into my Domain ruby objects. I'm currently using hash initialization, but these feels weird, as I have a bunch of mapping code all over the place.
<bawigga> basically, what's the cleanest way to map json object properties to ruby objects?
BSaboia__ has quit [Read error: Connection reset by peer]
pettsson has quit [Remote host closed the connection]
Lubinski_ has joined #ruby
Lubinski_ has quit [Changing host]
Lubinski_ has joined #ruby
Lubinski has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
sickn3ss has joined #ruby
zastern has quit [Remote host closed the connection]
<sickn3ss> Quick question guys, what do you recommend I install in order to use Windows API's in Ruby. I have heard of Win32API is that good enough ?
<Gate> bawigga: I would have a "from_hash" or similar method in each class, is my offhand reaction
jrafanie has quit [Quit: jrafanie]
<bawigga> Gate: so each Ruby object would contain a copy of the service json, then when I call the from_hash method, fetch it from the array?
generalissimo has quit [Remote host closed the connection]
<Gate> bawigga: not what I was thinking, I was thinking that there would be a "top" level object that would have everything, then pass relevant hashes to create its children
breakingthings has quit []
alanp_ has joined #ruby
<Gate> meaning a response has the whole hash, a Widget just gets the hash for one widget
alanp has quit [Read error: Connection reset by peer]
Lubinski_ has quit [Quit: Leaving]
nari has joined #ruby
__BigO__ has quit [Remote host closed the connection]
invisime has quit [Quit: Leaving.]
marienz has joined #ruby
emergion has quit [Read error: Connection reset by peer]
__BigO__ has joined #ruby
dougireton has joined #ruby
v0n has quit [Ping timeout: 276 seconds]
mengu has joined #ruby
piotr__ has joined #ruby
mhf has quit [Remote host closed the connection]
piotr_ has quit [Ping timeout: 264 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
mhf has joined #ruby
gabrielr_ is now known as gabrielrotbart
kold has joined #ruby
JohnRedcorn has joined #ruby
enroxorz-work has quit [Read error: Connection reset by peer]
asteve has quit [Quit: Computer has gone to sleep.]
<bawigga> Gate: Appreciate the help. I think that's sort of what I have now. Here's some real code: https://gist.github.com/4710598
__BigO__ has quit [Ping timeout: 246 seconds]
<Gate> bawigga: yep. Don't know if you can improve that too much more. One of my styles is to use a hash map, but all that does is shuffle the mess around a little.
<Amnesia> question, I've got an each block inside a for loop, but when I use the keyword "next" it looks like it's also going to the next for cycle..
<Gate> fundamentally, you still have to map one attribute key to another.
<bawigga> Gate: exactly, and I don't see a cleaner way to do it, are you familiar with ActiveResource, if so does it make this sort of thing easier?
<Amnesia> is there some way to get it to get out of the each block, but not the for loop?
samuel02 has quit [Remote host closed the connection]
<Gate> bawigga: I've played with it, sorry I don't know know if it would be much better.
jgrevich_ has joined #ruby
<bawigga> Gate: ok no worries, thanks for the help!
samuel02 has joined #ruby
joofsh has quit [Remote host closed the connection]
<Gate> bawigga: you could write a module to do it in a declarative style
zdennis has quit [Quit: zdennis]
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
<Gate> something like client_attribute "eventDate", :event_date
chrishough has joined #ruby
<Gate> it would be a pretty short module, too
<Gate> .... that sounds fun to write.....
slainer68 has joined #ruby
* Gate hacks when he should be working
<bawigga> Gate: I think I found something like that earlier, lemme see if i can find it again. I think it was a gem called json_model
<spider-mario> devs = File.open(fname, 'r') { |f| f.read } → devs = IO.read(fname)
<spider-mario> ?
tommyvyo has joined #ruby
mneorr has quit [Remote host closed the connection]
<Gate> bawigga: it was a good idea, therefore it was likely unoriginal :D
<Gate> cool
<spider-mario> (not what you asked for, but still a possible little simplification)
noodletraveler has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
sickn3ss has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
marienz has quit [Ping timeout: 606 seconds]
main has quit [Ping timeout: 276 seconds]
stetho has quit [Read error: Connection reset by peer]
Kingy has joined #ruby
samuel02 has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
<bawigga> Gate: actually that project doesn't seem to do what we're hoping
stetho has joined #ruby
gosshedd has quit [Ping timeout: 276 seconds]
tlvb has quit [Read error: Connection reset by peer]
<Gate> bawigga: looks like it maps to conventionally named attributes only...
horofox has joined #ruby
jerius has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
<bawigga> gate: this looks a bit better, https://github.com/apotonick/representable
marienz has joined #ruby
Monie has quit [Ping timeout: 248 seconds]
reuven` has quit [Read error: Connection reset by peer]
reuven` has joined #ruby
kold has quit [Remote host closed the connection]
jgarvey has quit [Quit: Leaving]
BBonifield has quit [Ping timeout: 245 seconds]
RagingDave has quit [Quit: Ex-Chat]
<Gate> bawigga: still looks like it doesn't allow you to map from arbitrary keys to arbitrary keys
emergion has quit [Ping timeout: 264 seconds]
sailias has quit [Ping timeout: 245 seconds]
<bawigga> Gate: what do you mean?
lorn has quit [Ping timeout: 260 seconds]
<bawigga> Gate: you mean like eventDate <=> event_date ?
<Gate> bawigga: as I understand it, your problem is that you want to map the hash { "eventDate": 123 } to the object <@event_date=123>
<Gate> right
<bawigga> Gate: correct, don't want the api to drive my property names
horofox has quit [Quit: horofox]
vetsin has quit [Ping timeout: 245 seconds]
<Gate> bawigga: I agree completely, and that doesn't look at a first read like it gives you that power
<bawigga> gate: ah it looks like it does
<bawigga> gate: property :title, as: :name
<Gate> I missed it? Awesome!
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<Gate> sweet
horofox has joined #ruby
vetsin has joined #ruby
lorn has joined #ruby
Jon30 has quit []
iamjarvo has quit [Quit: Leaving.]
kmurph has joined #ruby
<bawigga> Gate: only other thing I'm needing is to be able to map a string to a datatype, ex: "2012-02-04" <=> DateTime object
ner0x has quit [Quit: Leaving]
BBonifield has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
Targen has quit [Ping timeout: 248 seconds]
jlast has quit [Remote host closed the connection]
arya has joined #ruby
xyzodiac has joined #ruby
<Gate> cool
segv- has quit [Quit: segv-]
atno has joined #ruby
stopbit has quit [Quit: Leaving]
MattRB has joined #ruby
mengu has joined #ruby
<EvanR> alright
onemanjujitsu has joined #ruby
<EvanR> so i have a DateTime or Time, and i want to convert it to a particular time zone
<EvanR> tzinfo's utc_to_local changes the time
<nate_h> _rc say I have a fact I want only distributed to one host in an environment, is there some clever way to do this?
<EvanR> but not the offset
Jedi_SCT1 has quit [Quit: See ya]
arya has quit [Ping timeout: 248 seconds]
<EvanR> which causes times to compare wrong
<nate_h> _rc other than make the fact disable itself except for a specific hostname
baphled has quit [Ping timeout: 255 seconds]
jamescarr has quit [Quit: jamescarr]
<EvanR> DateTime has new_offset which changes the time in addition to the offset
m8 has quit [Quit: Sto andando via]
marienz has quit [Ping timeout: 624 seconds]
<EvanR> i have been going through ever combination of APIs all day and cant get anything to work
Jedi_SCT1 has joined #ruby
<nate_h> hmm confine looks interesting
<nate_h> maybe thats the key
freakazoid0223 has joined #ruby
jekotia has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
_hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
jekotia has joined #ruby
radic has joined #ruby
kirun has quit [Quit: Client exiting]
mmitchell has quit [Remote host closed the connection]
jamescarr has joined #ruby
nfk has quit [Read error: Operation timed out]
fir_ed has joined #ruby
wargasm1 has quit [Ping timeout: 264 seconds]
samuelkadolph has quit [Ping timeout: 264 seconds]
chussenot has joined #ruby
radic_ has quit [Ping timeout: 264 seconds]
nfk has joined #ruby
apeiros_ has quit [Remote host closed the connection]
marienz has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
wargasm has joined #ruby
TomRone has quit [Ping timeout: 264 seconds]
alex__c2022 has quit [Quit: alex__c2022]
jtharris has quit [Quit: WeeChat 0.3.9.2]
r0bby has quit [Ping timeout: 264 seconds]
ilyam has quit [Quit: ilyam]
Hecatic has joined #ruby
samuelkadolph has joined #ruby
erlingur has quit [Quit: Computer has gone to sleep.]
SeySayux has quit [Ping timeout: 264 seconds]
nari has quit [Ping timeout: 264 seconds]
xargoon has quit [Ping timeout: 252 seconds]
<Eiam> Anyone recommend any CI solutions for ruby/ruby gems aside from jenkins?
pu22l3r has joined #ruby
<Eiam> going to take my first stab at doing rspec/unit tests (shaddup) and figured I'd go all in
<Eiam> whole package
SeySayux has joined #ruby
Beoran__ has quit [Ping timeout: 264 seconds]
TomRone has joined #ruby
Beoran__ has joined #ruby
radic has quit [Ping timeout: 260 seconds]
mhf has quit [Read error: Operation timed out]
josh_keith has joined #ruby
kmurph has quit [Quit: kmurph]
xargoon has joined #ruby
wargasm1 has joined #ruby
hadees has quit [Quit: hadees]
mhf has joined #ruby
wargasm has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
recycle has quit [Read error: Connection reset by peer]
recycle has joined #ruby
<bawigga> this should be easy: how do i inherit from a global class from within a module?
pcarrier has joined #ruby
kmurph has joined #ruby
marienz has quit [Ping timeout: 600 seconds]
cardoni has joined #ruby
arya has joined #ruby
mercwith1mouth has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
<bawigga> yip, forgot to require openstruct… stupid..
piotr__ has quit [Ping timeout: 248 seconds]
ilyam has joined #ruby
radic has joined #ruby
dallasm has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
vinax has joined #ruby
TheFuzzball has joined #ruby
Hecatic has left #ruby [#ruby]
jfl0wers has joined #ruby
sintrix has joined #ruby
cardoni has quit [Ping timeout: 256 seconds]
jamescarr has quit [Quit: jamescarr]
radic has quit [Read error: Operation timed out]
TomRone has quit [Ping timeout: 248 seconds]
<Gate> bawigga: I blame you, I'm doing something very similar and I am suddenly *very* unsatisfied with my ATTRIBUTES_MAP constant
<bawigga> Gate: :)
IceDragon has quit [Ping timeout: 248 seconds]
<bawigga> Gate: I'm working on implementing this with this gem, having some issues, but I'm going to assume it's do to my newb status
arya has quit [Ping timeout: 252 seconds]
spider-mario has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 248 seconds]
IceDragon has joined #ruby
SCommette has quit [Quit: SCommette]
kmurph has quit [Quit: kmurph]
RyanD has joined #ruby
voodootaco is now known as voodoofish
dougireton has quit [Quit: Leaving.]
aedornm has joined #ruby
HAKEON has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<davidcelis> bawigga: You can also prepend a :: to make sure you're calling the global class
<bawigga> davidcelis: that's good to know, thanks!
Banistergalaxy has quit [Ping timeout: 255 seconds]
<davidcelis> Like if you had MyModule::OpenStruct, just calling OpenStruct would assume the nesting
<davidcelis> ::OpenStruct will always refer to the non-nested constant
<bawigga> What's everyone use as an editor/ide?
<davidcelis> sublime text
<davidcelis> or vim
<davidcelis> or gtfo
<bawigga> haha
Virunga has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
<bawigga> wait… is gtfo a real thing... or did i interpret your sarcasm correctly?
<davidcelis> you interpreted it correctly
<bawigga> davidcelis: glorious
<davidcelis>
<bawigga> davidcelis: you have any sort of debuggers hooked up to vim?
<davidcelis> not really
<davidcelis> pry fulfills most of my debugging needs
<bawigga> pry...
<davidcelis> pryrepl.org
Kuifje has quit [Ping timeout: 260 seconds]