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]
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
<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.]
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]
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]
<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
<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!]
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
<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
<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
<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]
<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?
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
<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]
<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]
<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 ;(
<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]
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:]?
<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]
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
<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 ?
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
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]
<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.
<_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?
<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
<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.
<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.
<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?
<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)
<_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)
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
<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>
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!
<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…
<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.
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]
<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?
<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>
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]
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.