apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p385: http://ruby-lang.org (ruby-2.0.0-rc2) || Paste >3 lines of text on http://gist.github.com
Al__ has quit [Quit: Al__]
SCommette has quit [Quit: SCommette]
uris has quit [Ping timeout: 248 seconds]
SCommette has joined #ruby
thams has joined #ruby
spider-mario has quit [Remote host closed the connection]
bitpimp has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
nathanst1tt has joined #ruby
joeycarmello has quit [Read error: Connection reset by peer]
joeycarm_ has joined #ruby
bubblehead has joined #ruby
jonahR has quit [Quit: jonahR]
twshelton has quit [Quit: Computer has gone to sleep.]
nga4 has joined #ruby
DrShoggoth has joined #ruby
regedarek has quit [Ping timeout: 244 seconds]
nathanst1tt has quit [Client Quit]
nathanstitt has quit [Ping timeout: 248 seconds]
<maetthew> Can I get the location of an IP with Ruby?
<maetthew> Is there a gem for this?
<apok> maybe this one? https://github.com/mtodd/geoip
<maetthew> apok: thanks ^^
artOfWar has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
stringoO has quit [Read error: Connection reset by peer]
uris has joined #ruby
stringoO has joined #ruby
horofox has joined #ruby
regedarek has joined #ruby
adman65 has joined #ruby
brum has quit [Remote host closed the connection]
HecAtic has joined #ruby
justsee has quit [Quit: Leaving...]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
dustint has quit [Quit: Leaving]
ozgura has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
spacebug_ has joined #ruby
ozgura has joined #ruby
lmg_ has quit [Ping timeout: 256 seconds]
moshee has quit [Ping timeout: 264 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
spacebug has quit [Read error: Connection reset by peer]
endzyme has quit [Ping timeout: 240 seconds]
huoxito has joined #ruby
slainer68 has quit [Remote host closed the connection]
ahokaomaeha has joined #ruby
w400z has joined #ruby
miskander has joined #ruby
sn0wb1rd_ has joined #ruby
pavilionXP has joined #ruby
pavilionXP has quit [Remote host closed the connection]
pavilionXP has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
PanPan has joined #ruby
hogeo has joined #ruby
<maetthew> apok: seems i have to install third party C libraries though :/
sn0wb1rd has quit [Ping timeout: 260 seconds]
sn0wb1rd_ is now known as sn0wb1rd
bubblehead has quit [Remote host closed the connection]
w400z has quit [Client Quit]
<havenwood> maetthew: You could send the IP to an API that returns the location back.
Zeppelin24 has quit []
ckrailo has quit [Quit: Computer has gone to sleep.]
<havenwood> maetthew: If you're trying to avoid gems.
<maetthew> havenwood: hmm. know of a API?
<maetthew> nvm i think i found one :p
<markalanevans> Hey guys, i'm having a rather bizare issue: i'm trying to do gem install sparsehash
yshh has quit [Remote host closed the connection]
PanPan has quit [Ping timeout: 246 seconds]
stringoO has quit [Quit: stringoO]
horofox has quit [Quit: horofox]
woolite64_ has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
<markalanevans> and as it starts up it seems to start the make process, but then errors our saying it can't find a folder google/sparse_hash_map
horofox has joined #ruby
<markalanevans> So i look in the gem folder and the google folder along with most of what should have been downloaded from the gem as seen here: https://bitbucket.org/winebarrel/sparsehash-ruby/src
machty_ has joined #ruby
<markalanevans> is not downloaded.
machty has quit [Read error: Connection reset by peer]
machty_ is now known as machty
<markalanevans> What might be the reason the rest of the files / folders are not downloading
<markalanevans> The parent folder for the gem is created after I do the gem install sparsehash
<markalanevans> ~/.rvm/gems/ruby-1.9.2-p320/gems/sparsehash-0.1.1
<markalanevans> but for some reason its not downloading the entire gem or something?
otherj has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
etcetera has quit []
ckrailo has joined #ruby
woolite64__ has quit [Ping timeout: 256 seconds]
erry_ has joined #ruby
stringoO has joined #ruby
TCastro has quit [Quit: Leaving]
etcetera has joined #ruby
horofox has quit [Quit: horofox]
Spooner has joined #ruby
horofox has joined #ruby
mattbl has joined #ruby
predator217 has joined #ruby
nari has quit [Ping timeout: 252 seconds]
<maetthew> apok: havenwood; seems like geoip moved to https://github.com/cjheath/geoip
<maetthew> i can't get anything working though :/
erry has quit [Ping timeout: 624 seconds]
adkron has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
<maetthew> for instance
<maetthew> pry(main)> c = GeoIP.new('GeoIP.dat').country('www.nokia.com')
<maetthew> Errno::EINVAL: Invalid argument - GeoIP.dat
sn0wb1rd has quit [Remote host closed the connection]
xardas has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
sn0wb1rd has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
<havenwood> Look under REQUIREMENTS: https://github.com/cjheath/geoip
adkron_ has joined #ruby
stringoO has quit [Quit: stringoO]
<havenwood> maetthew: Works well for me, once I download 'GeoIP.dat'.
<havenwood> markalanevans: sparehash seems to be quite an old gem, didn't compile on 1.9.3 or 2.0.0 for me. Are you on 1.8? Does the gem install sparehash error out?
ffranz has joined #ruby
Vainoharhainen has joined #ruby
Choclo has joined #ruby
<markalanevans> I'm on 1.9.2
<markalanevans> yes
<markalanevans> havenwood: yes for me it errors out
brum has joined #ruby
<maetthew> havenwood: i still just get Errno::ENOENT: No such file or directory
<markalanevans> ill paste it for yoyu
<maetthew> even though the file exist
<maetthew> (i'm on osx fwiw)
<markalanevans> havenwood: ^
<havenwood> maetthew: i'm on os x as well, paste a gist of your code? LoadError?
<maetthew> k sec
<havenwood> markalanevans: Yeah, so the problem is the gem isn't compiline.
<havenwood> s/compiline/compiling
<markalanevans> So how do i fix that?
<maetthew> havenwood: i'm basically doing the examples in pry
<markalanevans> It should work.
<maetthew> but hold on i'll paste something
<markalanevans> We installed it a month back on another server, without issue.
<havenwood> markalanevans: On Ruby 1.8?
<markalanevans> 1.9.3
<markalanevans> i'm trying it on my mac right now
the_mentat has quit [Quit: Computer has gone to sleep.]
<markalanevans> but it seemed to work fine on ubuntu
<havenwood> hmm, might be an os x issue?? i'll try on ubuntu and freebsd, sec
NemesisD has quit [Ping timeout: 245 seconds]
<markalanevans> ok
moshee has quit [Ping timeout: 248 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
Monie has quit [Quit: Quit]
Vainoharhainen has quit [Ping timeout: 252 seconds]
<maetthew> havenwood: hmm just realized it works in one folder but not another. i think i have some file permission issues
MartinCleaver has quit [Quit: MartinCleaver]
<havenwood> maetthew: ahh
<havenwood> markalanevans: Not building for me on anything.
bubblehead has joined #ruby
otherj has quit []
brum has quit [Ping timeout: 248 seconds]
<markalanevans> Hmm.
ckrailo has quit [Quit: Computer has gone to sleep.]
<markalanevans> havenwood: are you family w/ the gem build steps.
<markalanevans> For example if i download the gem zip file
QaDeS has quit [Quit: Ex-Chat]
<havenwood> I am gem build's stepson.
<markalanevans> and put it in the correct directory
<maetthew> thanks for your assistance tough havenwood
<markalanevans> will it not try to download an override what i put there?
the_jeebster has quit [Quit: Leaving.]
w|t has quit [Quit: Cya.]
kristofers has quit []
w|t has joined #ruby
w|t has quit [Changing host]
w|t has joined #ruby
fir_ed has joined #ruby
ebobby has quit [Ping timeout: 255 seconds]
adman65 has quit [Ping timeout: 264 seconds]
j3ffko has joined #ruby
yshh has joined #ruby
<aces1up> i can't tell, but on String.sub / gsub methods, if pattern sent is a string will it convert to regex during operation?
<Spooner> If it is a string, it will just replace that directly. Not as a regexp.
reset has quit [Quit: Leaving...]
marr has quit [Ping timeout: 252 seconds]
nari has joined #ruby
<aces1up> ok
parzorep has joined #ruby
<Spooner> You can do Regexp.new(str) if you need to convert though.
<SqREL> but you can convert string to regexp via Regexp.new("[a-z]")
<Spooner> Or /#{str}/
mlr has quit [Ping timeout: 255 seconds]
graft has quit [Quit: Lost terminal]
Kuifje has quit [Ping timeout: 276 seconds]
<markalanevans> havenwood: any ideas...
yshh has quit [Read error: No route to host]
yshh has joined #ruby
MartinCleaver has joined #ruby
Xeago has quit [Remote host closed the connection]
<aedornm> Any random blog online: "Follow me on Twitter, like me on Facebook, +1 me on Google+. Here's my Tumblr, Pinterest, my YouTube channel, and I'm on Skype, and AIM! I keep my code on GitHub, and here's my email <gravatar link>."
gregorg has quit [Read error: Connection reset by peer]
the_mentat has joined #ruby
thams has quit [Quit: thams]
<markalanevans> ?
adkron_ has quit [Ping timeout: 252 seconds]
<aedornm> Meanwhile, at work, I can't find an email address, or phone extension of the IT dept.
adkron has quit [Ping timeout: 245 seconds]
angusiguess has joined #ruby
poikon has joined #ruby
kenichi has quit [Ping timeout: 260 seconds]
taoru has joined #ruby
reset has joined #ruby
ebobby has joined #ruby
nfk has quit [Quit: yawn]
<aedornm> Someone need a new market? Fixing dysfunctional communication at companies.
adkron has joined #ruby
adkron_ has joined #ruby
SeanTAllen has quit [Ping timeout: 252 seconds]
kenichi has joined #ruby
poikon_work has quit [Ping timeout: 260 seconds]
<markalanevans> Should all the ruby gem source codes have a .gem file?
lethjakman has quit [Ping timeout: 256 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
nilobject has joined #ruby
newUser1234 has quit [Remote host closed the connection]
jrendell has joined #ruby
newUser1234 has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
<Spooner> marcgg, All gems "have" a .gem file. Not sure what you are asking really though.
drago757 has joined #ruby
mengu has quit [Quit: Leaving]
sailias has joined #ruby
apeiros_ has joined #ruby
Takehiro has joined #ruby
chrishough has quit [Quit: chrishough]
newUser1234 has quit [Ping timeout: 276 seconds]
nari has quit [Quit: Ex-Chat]
pdamer has quit [Quit: pdamer]
apeiros_ has quit [Ping timeout: 244 seconds]
jonathanwallace has quit [Read error: Connection reset by peer]
nari has joined #ruby
HecAtic has quit [Quit: HecAtic]
F1skr has quit [Quit: WeeChat 0.4.0]
Takehiro has quit [Ping timeout: 252 seconds]
twoism has quit [Ping timeout: 252 seconds]
parzorep has quit [Read error: Connection reset by peer]
pandawarrior1 has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
parzorep has joined #ruby
froy has quit [Quit: kablam!]
HecAtic has joined #ruby
PanPan has joined #ruby
devyn has quit [Quit: Changing server]
gatopan has quit [Ping timeout: 245 seconds]
devyn has joined #ruby
the_mentat has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
pdamer has joined #ruby
the_mentat has joined #ruby
vabenjamin has left #ruby [#ruby]
<markalanevans> Spooner: just realized what i was looking for
allanm has quit [Read error: Connection reset by peer]
otherj has joined #ruby
allanm has joined #ruby
<markalanevans> the .gem file is availabe from rubygems.org
<markalanevans> but its not up on the source code sites like github etc
<Muz> Correct
PanPan has quit [Ping timeout: 256 seconds]
<Muz> A .gem is just an archive of that source code along with some headers and extra jizz.
MartinCleaver has quit [Quit: MartinCleaver]
vabenjamin has joined #ruby
zzing has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
mlr has joined #ruby
xclite has quit [Ping timeout: 245 seconds]
adkron has quit [Read error: Connection reset by peer]
mlr has quit [Disconnected by services]
adkron has joined #ruby
xclite has joined #ruby
mlr_ has joined #ruby
<vabenjamin> ive almost hit version 0.1 of my own software, how exciting =P
mlr_ has quit [Client Quit]
mlr has joined #ruby
elspeth has quit [Read error: Operation timed out]
elspeth has joined #ruby
SqREL has quit [Ping timeout: 248 seconds]
chrishough has joined #ruby
newUser1234 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
ephemerian has quit [Quit: Leaving.]
nga4 has quit []
jonahR has joined #ruby
thone has quit [Read error: Operation timed out]
machty has quit [Quit: machty]
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
bradhe has quit [Remote host closed the connection]
NemesisD has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
brum has joined #ruby
thone has joined #ruby
etcetera has quit []
Eaffon has joined #ruby
gatopan has joined #ruby
horofox has quit [Quit: horofox]
<Eaffon> Hi, I read an article about ruby, and want to learn it. What books or resources would you reccomend?
horofox_ has joined #ruby
Brainix has joined #ruby
Eaffon has quit [Client Quit]
DaltonUS has joined #ruby
newUser1234 has quit [Remote host closed the connection]
brum has quit [Ping timeout: 248 seconds]
<jblack> there are a handful of tutorials available via google that will get you started.
newUser1234 has joined #ruby
<reactormonk> patience :>
niklasb has quit [Ping timeout: 244 seconds]
<jblack> do you have experience in other languages, particularly java?
<reactormonk> jblack, he left already
<jblack> Wow, seriously.
<Brainix> jblack: Wow, I remember you from #linux on Dal, a decade ago. :-)
sn0wb1rd has quit [Quit: sn0wb1rd]
<jblack> That is me!
<jblack> closer to two decades than one. =)
<Brainix> I used to be DorkPunk. I was one of your ops.
eka has quit [Quit: Computer has gone to sleep.]
<vabenjamin> I come from Java, Ruby has been pretty easy to learn so far
<jblack> I do remember Dorkpunk. You were a pretty cool guy to help with.
garbagecollectio has joined #ruby
<Brainix> Thanks, and likewise. :-)
tish has joined #ruby
brianpWins has quit [Quit: brianpWins]
BrindleFly has quit [Read error: Operation timed out]
jonahR has quit [Quit: jonahR]
icy` has quit [Quit: .: adios :.]
<jblack> we should like 69 recommendationw on linkedin sometime. :P
<Brainix> jblack: I'm down!
jonathanwallace has joined #ruby
newUser1234 has quit [Ping timeout: 245 seconds]
inao has joined #ruby
<jblack> =)
newUser1234 has joined #ruby
<jblack> anyone wanna do a 12 way?
<jblack> anyway...
etcetera has joined #ruby
carsonm has joined #ruby
ahokaomaeha has quit [Ping timeout: 276 seconds]
BrindleFly has joined #ruby
carsonm has left #ruby [#ruby]
etcetera has quit [Client Quit]
bricker has quit [Ping timeout: 276 seconds]
banjara has quit [Quit: Leaving.]
otherj has quit []
<fir_ed> jblack, bring it on
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Virunga has quit [Remote host closed the connection]
newUser1234 has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
newUser1234 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
adkron__ has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
adkron has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
techhelp has joined #ruby
adkron___ has joined #ruby
Guest93868 has joined #ruby
bradleyprice has joined #ruby
adkron_ has quit [Ping timeout: 264 seconds]
Voodoofish430 has quit [Quit: Leaving.]
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
sn0wb1rd has joined #ruby
Guest93868 has quit [Read error: Connection reset by peer]
unix has joined #ruby
meoblast has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
rezzack has quit [Quit: Leaving.]
sn0wb1rd has quit [Remote host closed the connection]
jrendell has quit [Ping timeout: 256 seconds]
rupee has quit [Ping timeout: 244 seconds]
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
anothervenue has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
gosshedd has joined #ruby
Slivka has quit [Ping timeout: 244 seconds]
CreativeEmbassy has joined #ruby
mockra has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
markalanevans has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
chrisja has joined #ruby
Takehiro has joined #ruby
newUser1234 has quit [Read error: No route to host]
newUser1234 has joined #ruby
Qwak has joined #ruby
Es0teric has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
Takehiro has quit [Ping timeout: 245 seconds]
PanPan has joined #ruby
BadLarry has quit [Quit: quitting]
horofox_ has quit [Quit: horofox_]
newUser1234 has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
apok has quit [Quit: apok]
BadLarry has joined #ruby
horofox_ has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
newUser1234 has joined #ruby
PanPan has quit [Ping timeout: 276 seconds]
jrhorn424 has joined #ruby
Brainix has quit [Quit: Brainix]
miso1337 has joined #ruby
rburton- has joined #ruby
gosshedd has quit [Read error: Operation timed out]
octoberry has joined #ruby
gosshedd has joined #ruby
jrhorn424 has quit [Quit: jrhorn424]
jrhorn424 has joined #ruby
danneu has joined #ruby
miskander has quit [Quit: miskander]
juarlex has quit [Ping timeout: 248 seconds]
fschuindt has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
heliumsocket has joined #ruby
heliumsocket has quit [Client Quit]
brum has joined #ruby
skattyadz has quit [Quit: skattyadz]
heliumsocket has joined #ruby
squidBits has quit [Quit: whoops]
chrisja has quit [Quit: leaving]
jaygen has quit [Remote host closed the connection]
kiwnix has quit [Quit: Leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
whitedawg has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
brum has quit [Ping timeout: 264 seconds]
dankest has quit [Ping timeout: 255 seconds]
kofno has joined #ruby
mockra has joined #ruby
newUser1234 has quit [Remote host closed the connection]
S2kx has joined #ruby
gatopan has quit [Ping timeout: 245 seconds]
newUser1234 has joined #ruby
tylersmith has quit [Quit: tylersmith]
bradhe has joined #ruby
Hanmac1 has joined #ruby
io_syl has quit [Ping timeout: 255 seconds]
Baughn has quit [Ping timeout: 255 seconds]
Baughn has joined #ruby
sailias has joined #ruby
mockra has quit [Remote host closed the connection]
plantseeker has quit [Ping timeout: 256 seconds]
alexspeller has quit [Ping timeout: 252 seconds]
S1kx has quit [Ping timeout: 255 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
adamholt has quit [Ping timeout: 252 seconds]
plantseeker has joined #ruby
WhereIsMySpoon has quit [Read error: Connection reset by peer]
sailias has quit [Client Quit]
ahokaomaeha has joined #ruby
WhereIsMySpoon has joined #ruby
verysoftoiletppr has joined #ruby
Boohbah has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Ping timeout: 264 seconds]
alexspeller has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
wookiehangover has quit [Ping timeout: 245 seconds]
Boohbah has joined #ruby
baba has joined #ruby
Boohbah is now known as Guest86617
hbpoison has joined #ruby
unix has quit [Ping timeout: 256 seconds]
adamholt has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
wookiehangover has joined #ruby
cantonic has joined #ruby
yfeldblum has quit [Quit: Leaving]
thinkclay has quit [Quit: Leaving.]
gosshedd has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
Spooner has quit [Remote host closed the connection]
Spooner has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
alvaro_o has quit [Quit: Ex-Chat]
horofox_ has quit [Quit: horofox_]
allaire has joined #ruby
SeanTAllen has joined #ruby
ffranz has quit [Quit: Leaving]
baroquebobcat has joined #ruby
Spooner has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
taoru has quit [Remote host closed the connection]
newUser1234 has joined #ruby
cableray has quit [Quit: cableray]
jberanek has joined #ruby
<jberanek> Looking for help: is there a way to detect an exception from a child thread?
etcetera has joined #ruby
<jberanek> Sorry, let me correct, is there a way to detect an exception in a child thread from the parent that creates it?
moos3 has quit [Quit: Computer has gone to sleep.]
cableray has joined #ruby
adkron___ has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby
adkron__ has quit [Ping timeout: 256 seconds]
mattbl has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
reset has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Ping timeout: 255 seconds]
gatopan has joined #ruby
twshelton has joined #ruby
stu has joined #ruby
<havenwood> jberanek: you can ask it its #value and it will return the error
stu has left #ruby [#ruby]
stringoO has joined #ruby
<havenwood> e.g., thread = Thread.new { goober }; thread.value; #=> NameError: undefined local variable or method...
nonotza has joined #ruby
PanPan has joined #ruby
<jberanek> havenwood: From the usage, I'm guessing you have to manually check (vs passing the error to the parent so the parent can perform error handling)
MartinCleaver has quit [Quit: MartinCleaver]
seoaqua has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
cyong has joined #ruby
gatopan has quit [Ping timeout: 245 seconds]
<havenwood> jberanek: ya, here is an example that just prints the exception to parent thread's stdout
PanPan has quit [Ping timeout: 256 seconds]
Qwak has quit [Ping timeout: 255 seconds]
<jberanek> havenwood: Thanks, I'll give that a try in my use case
locriani_ has joined #ruby
PanPan has joined #ruby
etcetera has quit []
locriani has quit [Ping timeout: 276 seconds]
tjbiddle_ has joined #ruby
gatopan has joined #ruby
joeycarm_ has quit [Remote host closed the connection]
<havenwood> jberanek: Yeah, if you want to re-raise it, in the `rescue Exception => e` block put a `Thread.main.raise e`
etcetera has joined #ruby
Choclo has quit [Quit: Leaving.]
tjbiddle has quit [Ping timeout: 276 seconds]
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
heliumsocket has quit [Ping timeout: 245 seconds]
forced_request has quit [Read error: Connection reset by peer]
v0n has joined #ruby
stringoO has quit [Quit: stringoO]
tjbiddle_ has quit [Ping timeout: 264 seconds]
twshelton has quit [Quit: Computer has gone to sleep.]
adkron has joined #ruby
SCommette has joined #ruby
jrhorn424_ has joined #ruby
jrhorn424_ has left #ruby [#ruby]
mattbl has quit [Quit: This computer has gone to sleep]
<jberanek> havenwood: The print statements are working, but re-raising doesn't appear to work. However, the application also creates an HTTP server which seems to steal Ctrl+C commands from the main thread, so that may have something to do with what is going on
Monie has joined #ruby
pdamer has quit [Quit: pdamer]
filipe has quit [Ping timeout: 276 seconds]
aarkerio has joined #ruby
bubblehead has quit [Remote host closed the connection]
jerikl has joined #ruby
brum has joined #ruby
nonotza has quit [Quit: nonotza]
<aarkerio> hi! I am new on ruby and I see this method: association( :author, factory: :user, last_name: "Writely")
mattbl has joined #ruby
Mattix has joined #ruby
<aarkerio> what the two points (:) means in factory:
JohnBat26 has joined #ruby
<aarkerio> I know :var is a symbol
vikhyat has joined #ruby
mockra has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
uris has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
joeycarmello has joined #ruby
cyong has quit [Quit: Leaving.]
Choclo has joined #ruby
apok has joined #ruby
aarkerio has left #ruby ["Leaving"]
mattbl has quit [Quit: This computer has gone to sleep]
SCommette has quit [Quit: SCommette]
filipe has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
wmoxam has joined #ruby
otherj has joined #ruby
reset has joined #ruby
reset has quit [Client Quit]
baroquebobcat has joined #ruby
banisterfiend has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
luckyruby has joined #ruby
baroquebobcat has quit [Client Quit]
techhelp has quit [Quit: This computer has gone to sleep]
cyong has joined #ruby
stanigator has joined #ruby
jrhorn424 has quit [Quit: Textual IRC Client: www.textualapp.com]
jpcamara has quit [Quit: jpcamara]
r0bby has joined #ruby
<brum> aarkerio: it's hash syntax
newUser1_ has joined #ruby
uris has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
newUser1234 has quit [Ping timeout: 256 seconds]
jberanek has quit [Remote host closed the connection]
tcstar has joined #ruby
divout has joined #ruby
fschuindt has quit [Ping timeout: 264 seconds]
j^2 has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
Vert has quit [Ping timeout: 252 seconds]
Choclo has quit [Quit: Leaving.]
twshelton has joined #ruby
otherj has quit []
thufir_ has joined #ruby
ebobby has quit [Quit: Lost terminal]
adkron has quit [Ping timeout: 246 seconds]
TheTFEF is now known as Nightmare
Qodosh has quit [Disconnected by services]
otherj has joined #ruby
newUser1_ has quit [Ping timeout: 245 seconds]
t-mart_ has joined #ruby
stanigator has quit [Quit: Page closed]
hbpoison has quit [Ping timeout: 256 seconds]
bigmac has joined #ruby
t-mart has quit [Ping timeout: 260 seconds]
huoxito has quit [Quit: Leaving]
gtuckerkellogg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tish has quit [Quit: Leaving.]
bradhe has joined #ruby
icole has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
banisterfiend has joined #ruby
decoponio has joined #ruby
techhelp has joined #ruby
carlyle has joined #ruby
carlyle has quit [Remote host closed the connection]
crackfu has joined #ruby
vikhyat_ has joined #ruby
radic has joined #ruby
macmartine has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
vikhyat has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 276 seconds]
linoge has joined #ruby
w400z has joined #ruby
<linoge> Night, got a weird problem while trying to implement A* algorithm, idk why http://ideone.com/DchvSw , if anybody have any ideas, much appreciated :)
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
radic_ has quit [Ping timeout: 264 seconds]
<linoge> For some reason after executing "while open_set.empty? == false" a 76 is added to the array :(
tomzx_mac has quit [Ping timeout: 255 seconds]
Bosox20051 has quit [Quit: Leaving]
allaire has quit []
CreativeEmbassy has joined #ruby
Takehiro has joined #ruby
<linoge> sorry, fixed it, i'm a bit sleepy
octoberry has quit [Ping timeout: 264 seconds]
<brum> linoge: take a nap
girija has joined #ruby
drago757 has quit [Quit: drago757]
techhelp has quit [Quit: This computer has gone to sleep]
joeycarmello has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
decoponi_ has joined #ruby
seoaqua has quit [Quit: 离开]
joeycarmello has joined #ruby
w400z has quit []
joeycarmello has quit [Remote host closed the connection]
thinkclay has joined #ruby
etcetera has quit []
decoponio has quit [Ping timeout: 255 seconds]
aytch_ has joined #ruby
verysoftoiletppr has quit [Ping timeout: 264 seconds]
jpfuentes2 has joined #ruby
newUser1234 has joined #ruby
monkegjinni has joined #ruby
akhet has joined #ruby
aytch has quit [Ping timeout: 260 seconds]
verysoftoiletppr has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran1 has joined #ruby
hbpoison has joined #ruby
crackfu has quit [Remote host closed the connection]
znode has joined #ruby
tish has joined #ruby
wmoxam has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
decoponi_ is now known as decoponio
ananthakumaran has quit [Ping timeout: 264 seconds]
brum has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
thufir_ has quit [Quit: Leaving.]
io_syl has joined #ruby
luckyruby has quit [Remote host closed the connection]
jerikl has quit [Quit: jerikl]
monkegjinni has quit [Remote host closed the connection]
otters has quit [Quit: WeeChat 0.4.0]
Matip has joined #ruby
otters has joined #ruby
j^2 has quit [Ping timeout: 255 seconds]
verysoftoiletppr has quit [Ping timeout: 264 seconds]
mockra has joined #ruby
cyong has quit [Quit: Leaving.]
Mattix has quit [Ping timeout: 252 seconds]
fir_ed has quit [Ping timeout: 255 seconds]
banjara has joined #ruby
Nisstyre-laptop has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mockra has quit [Ping timeout: 252 seconds]
chrishough has quit [Quit: chrishough]
DeusFigendi has joined #ruby
<DeusFigendi> Hi, I'm VERRY new to ruby, just read a wikibook and wanted to start now with something productive. But my first steps leed me into a build-error using gem that says...
<DeusFigendi> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
<DeusFigendi> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
<DeusFigendi> from extconf.rb:4:in `<main>'
yacks has quit [Ping timeout: 276 seconds]
<DeusFigendi> strange that "ruby --version" returns
<DeusFigendi> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<DeusFigendi> but the paths seem to say 1.9.1
cableray has quit [Quit: cableray]
locriani_ has quit [Ping timeout: 252 seconds]
<DeusFigendi> what does this error mean?
joeycarmello has joined #ruby
otters has quit [Quit: WeeChat 0.4.0]
Qodosh has joined #ruby
otters has joined #ruby
<bean> DeusFigendi, hey, just saw your post.
<bean> DeusFigendi, i think that means you need libruby.
<DeusFigendi> aham?
<bean> what OS are you on?
<DeusFigendi> is it a gem or a "real" libary (other words: gem or apt-get?)
c0rn has joined #ruby
<DeusFigendi> Mint
<bean> apt-get install ruby-dev i think
<bean> not sure what its called in Mint
<DeusFigendi> I'll try that
<bean> btw, you may want to see if you can get a copy of ruby 1.9.3
LBRapid has joined #ruby
<bean> instead of 1.9.1
<DeusFigendi> the package exists
<DeusFigendi> bean> like I said --version returns "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]"
locriani has joined #ruby
<DeusFigendi> sounds lik 1.9.3
jlast has quit [Remote host closed the connection]
<bean> oh, your gems appears to be points at 1.9.1
<bean> lol
<DeusFigendi> jep
<bean> ruby-1.9.3-dev is the package i think
<DeusFigendi> I think it was because of an update
LBRapid has quit [Client Quit]
<DeusFigendi> I hat 1.9.1 and updated to .3
<DeusFigendi> the gem seems to install now btw
banisterfiend has joined #ruby
<bean> cool
<DeusFigendi> yap
<DeusFigendi> thanks bean
<bean> np
<DeusFigendi> ow jez' my english is pretty bad 6:39 in the morning XD
Gestahlt has joined #ruby
<Gestahlt> Hi
<DeusFigendi> "lik" => "like"; "hat" → "had"
<DeusFigendi> ^.^
<bean> hi Gestahlt
<Gestahlt> I´d like to read a config file (yaml) and build attr_accessors from the content
<bean> DeusFigendi, I figured it out, where are you from?
<DeusFigendi> Germany
<Gestahlt> Without hardcoding them
<Gestahlt> Do you guys have an idea or a pointer?
<bean> DeusFigendi, that's what I figured. I took german in high school.
<Gestahlt> Reading the yaml works
<bean> Gestahlt, that sounds like a bad idea, but you should gist / paste some code.
r0bby is now known as robbyoconnor
puff has joined #ruby
<bean> i believe you should be able to do something like this: http://stackoverflow.com/a/11850739
yacks has joined #ruby
noop has joined #ruby
<Gestahlt> This is what i have now. I can hardcode it, but i rather try to take a more dynamic apporach so i dont have to touch everywhere when i create new functionality and add stuff to the config
meoblast has quit [Remote host closed the connection]
d2dchat has joined #ruby
banisterfiend has quit [Ping timeout: 256 seconds]
<Gestahlt> hm doesnt really look like what i am looking for
drago757 has joined #ruby
znode has quit [Remote host closed the connection]
spaceships has quit [Quit: leaving]
linoge has quit [Read error: Connection reset by peer]
<bean> why not? grab that part of the yaml into some sort of array, iterate over the array with create_attr( name_of_attr)
Hanmac1 has quit [Read error: Connection reset by peer]
linoge has joined #ruby
mattbl has joined #ruby
Hanmac has joined #ruby
bigmac has quit [Quit: Leaving]
himsin has quit [Ping timeout: 260 seconds]
krz has joined #ruby
DeusFigendi has quit [Quit: R.I.P. http://ln-s.net/92rg]
otherj has quit []
gatopan has quit [Ping timeout: 245 seconds]
yekta has quit [Quit: yekta]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
Takehiro has quit [Remote host closed the connection]
brianpWins has joined #ruby
browndawg has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<bean> Gestahlt, this will do exactly what you want
<bean> just confirmed it
tommyvyo has joined #ruby
dallasm has joined #ruby
berserkr has quit [Quit: Leaving.]
vikhyat_ has quit [Remote host closed the connection]
cableray has joined #ruby
brax4444 has joined #ruby
jlast has joined #ruby
HecAtic has quit [Quit: HecAtic]
brax4444 has left #ruby [#ruby]
freeayu__ has quit [Read error: Connection reset by peer]
garbagecollectio has quit [Quit: garbagecollectio]
<Gestahlt> yeah i figured it out :)
<Gestahlt> Im still a bit of a noob and im refractoring my code. I did finish protoyping now im doing a more object oriented apporach
dallasm has quit [Ping timeout: 248 seconds]
<bean> could obvs remove the attr_accessors then
ahokaomaeha is now known as dameningenda
hbpoison has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
codecop has joined #ruby
Sonarcade has joined #ruby
<Sonarcade> hello
<Sonarcade> I was wondering how I might be able to download all the dependencies for gems for offline use. I'm learning Ruby using a tutorial and don't have reliable access to the internet
jlast has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
bradleyprice has quit [Remote host closed the connection]
rippa has joined #ruby
freeayu has joined #ruby
brianpWins has quit [Quit: brianpWins]
toekutr has quit [Read error: Connection reset by peer]
h4mz1d has joined #ruby
uris has quit [Quit: Leaving]
drago757 has quit [Quit: drago757]
<havenwood> Sonarcade: If you `gem install` a gem, its dependencies are downloaded. just `gem install` all the gems you'll need offline.
hbpoison has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
<Sonarcade> havenwood> I've been installing similar gems for different projects and instead of having to do online everytime, I was wondering how I can have a way to store it offline so that I can run gem install for this gem for a new program without having to go online
<havenwood> Sonarcade: ahh.
Mon_Ouie has joined #ruby
<Sonarcade> the closest thing that I found that addresses this is here; http://stackoverflow.com/questions/4357895/offline-gem-dependencies
<havenwood> Sonarcade: You can clone the gem repo, and gem install ./gemname from the repo root dir
<havenwood> all gems can be build locally
<Sonarcade> but unfortunately, the option -y is invalid
<havenwood> hmm
<Sonarcade> awesome! I'll tyr that out
verysoftoiletppr has joined #ruby
geekmod has joined #ruby
baroquebobcat has joined #ruby
<havenwood> Sonarcade: when you `gem build` it looks in the current directory before online.
hbpoison has joined #ruby
<havenwood> `gem install`**
<havenwood> I mean ^
<vabenjamin> is there any way to make an array of arrays, ie. i call a position in an array and it returns another array
<Sonarcade> is there a way to use a gem repo without github, which I believe is exclusively online?
toekutr has joined #ruby
<havenwood> Sonarcade: you can always download a gem
<havenwood> Sonarcade: once downloaded, no online access needed
<Sonarcade> oh!
<Sonarcade> I did not know that
<Sonarcade> I'll look into this
<Sonarcade> thanks, havenwood
<havenwood> Sonarcade: Yeah, when you `gem install` the gem becomes available locally
<Sonarcade> havenwood> I haven't been able to find what directory the files are installed into
<havenwood> vabenjamin: Can you give an example of what the array looks like, and what would be returned?
<Sonarcade> I assumed that they would be found somewhere in the project directory
<vabenjamin> for example
Takehiro has joined #ruby
<havenwood> Sonarcade: you can: gem list gem-name-here -d
<vabenjamin> data << [4,3,1] << [1,1,3] << [5,2,1], if I call data[0] I want [4,3,1]
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
<geekmod> Hi, I need some career advice. I used to be a flash developer, than I left and went to university to graduate in computer science. I've been trying to find a job as php developer but found none because I didnt't have enough experience. Now I am considering dedicating to Ruby on Rails or to Python/Django. I'm on a crossrroad and cannot decide what should I really pursue as a career. Rails and
<geekmod> Django seem good for jobs and pay pretty well.
<geekmod> Any help and advice?
<bean> the ruby on rails guys would be able to tell you better
h4mz1d has quit [Ping timeout: 255 seconds]
<havenwood> vabenjamin: Do if you do: data = []
nilobject has quit [Quit: nilobject]
<bean> #rubyonrails is that way ->
<havenwood> vabenjamin: Then your code will work as you intend.
<Sonarcade> oh...awesome!
<Sonarcade> thank you so much!
<vabenjamin> I have
<vabenjamin> you mean declare it as an array?
<Mon_Ouie> An array that contains arrays is nothing special
<vabenjamin> and then add elements
TomJ has quit [Ping timeout: 248 seconds]
TomJ_ is now known as TomJ
nomenkun has joined #ruby
<havenwood> vabenjamin: data = []
hbpoison has quit [Ping timeout: 246 seconds]
<vabenjamin> I know but for some reason it is returning everything as single integers rather than arrays
danneu has quit [Quit: WeeChat 0.3.8]
vlad_starkov has quit [Remote host closed the connection]
<havenwood> geekmod: Read a book on Python and a book on Ruby and see which you grok.
<bean> >> data = []; data << [3,4,5] << [6,7,8], p data
<eval-in> bean: Output: "/tmp/execpad-32b5e06411f6/source-32b5e06411f6:1: syntax error, unexpected ',', expecting $end\ndata = []; data << [3,4,5] << [6,7,8], p data\n ^\n" (http://eval.in/10878)
hbpoison has joined #ruby
<vabenjamin> what's p data
<hemanth> puts data
<bean> >> data = []; data << [3,4,5] << [6,7,8]; p data
<eval-in> bean: Output: "[[3, 4, 5], [6, 7, 8]]\n" (http://eval.in/10879)
<havenwood> geekmod: Both are nice languages. I really, really like Ruby - which makes the choice easy.
<Mon_Ouie> It's not, you're just not displaying them right
<bean> >> data = []; data << [3,4,5] << [6,7,8]; p data[0]
<eval-in> bean: Output: "[3, 4, 5]\n" (http://eval.in/10880)
<bean> woorks like havenwood says
<hemanth> >> data = []; data << [3,4,5]+ [6,7,8]; p data
<Mon_Ouie> p data is like puts data.inspect
<hemanth> >> data = []; data << [3,4,5]+ [6,7,8]; p data
<eval-in> hemanth: Output: "[[3, 4, 5, 6, 7, 8]]\n" (http://eval.in/10881)
braoru has joined #ruby
<vabenjamin> Still nothing unfortunately, im not sure whats going on
<havenwood> vabenjamin: What Ruby are you running? Gist your code?
<vabenjamin> I do pass the array to another method before accessing it, would that mmatter at all?
<havenwood> vabenjamin: Paste a Gist.
<vabenjamin> yeah I can upload it, code is not very readable at the moment though one second
artofraw has joined #ruby
artofraw has quit [Client Quit]
rupee has joined #ruby
<vabenjamin> https://gist.github.com/vabenjamin/5011261 method one, method two (abbreviated), and output of puts data
<bean> still works with 1.8.7 so
<bean> its gotta be a code problem
hbpoison has quit [Ping timeout: 255 seconds]
hbpoison has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
<bean> vabenjamin, its creating the array correctly.
iamjarvo has quit [Quit: Leaving.]
Renich has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Renich> hey guys
<Renich> why isn't this working? http://paste.fedoraproject.org/3552/
<vabenjamin> Ok I guess my IDE is just outputting it in a way that looks like its printing out integer by integer
akhet has quit [Remote host closed the connection]
<vabenjamin> aptana studio...
carraroj has joined #ruby
<vabenjamin> I really need to break from java and eclipse more when Im doing stuff in Ruby
<vabenjamin> renich what's your error with that code
<havenwood> vabenjamin: ah, when you #puts an array, it flattens it and prints each element on its own line.
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Renich> vabenjamin: ../lib/autokrn/begin.rb:37:in `<main>': undefined method `blue' for "OK":String (NoMethodError)
generalissimo has quit [Remote host closed the connection]
<havenwood> vabenjamin: puts [1,2,3] != p [1,2,3]
<bean> Renich, hmm I might have something around for you that will serve the same purpose
<vabenjamin> havenwood, if I change puts to p, I get the same output
<Renich> bean: share... ;=)
<vabenjamin> Im wondering if it really is just aptana studio
pandawarrior1 has joined #ruby
<havenwood> vabenjamin: hrm, sounds likely.
anotherv1 has joined #ruby
<Renich> in any case... why isn't that working? it should, right?
<vabenjamin> Any IDE or editor you recommend? I've been hearing good things about sublime text but it's $70 for a license, ouch
<havenwood> which OS?
Myconix has quit [Ping timeout: 264 seconds]
<bean> and then you use it like
<vabenjamin> windows and linux
<bean> include Color
<bean> err
pandawarrior1 has quit [Client Quit]
<vabenjamin> a crossplatform ide\editor would be best for Ruby
<havenwood> vabenjamin: If you dun wanna study up on vim or emacs, ST2 is a very nice and pretty option.
<bean> require 'color.rb'; include Color; puts "#{CYAN}thing#{NC}";
<vabenjamin> ah i use vim all the time in linux
rupee has quit [Ping timeout: 245 seconds]
<Renich> bean: will it work on EOF?
<vabenjamin> there are plug-ins to add syntax color notation?
<havenwood> vabenjamin: yup
<vabenjamin> nice ty
anothervenue has quit [Ping timeout: 245 seconds]
willob has quit [Quit: Leaving.]
<bean> Renich, no idea. im not sure why your code isn't work for you, it's working fine for me
<Renich> bean: man... but your code looks nice as well
<Renich> bean: at least you got more colors than I do ;=)
<bean> I can't take credit for it, my friend and I have passed that file around for a few years now
<Renich> bean: so, where do I put that color module thingy in order for it to be in Ruby's path...
* Renich is a major newbie
<bean> oh, Renich, your problem is that you aren't double quoting your string I think
<bean> or hmm
<bean> mby not
<Renich> bean: I'll try that anyway.. .hehe
NemesisD has quit [Ping timeout: 248 seconds]
<Renich> does the module need a #!/usr/bin/env ruby ?
<bean> Renich, what is this BEGIN { nonsense
apeiros has joined #ruby
<bean> without it, it works
<Renich> bean: read it somewhere... it runs when you run your script... you have an END too...
<Renich> ooooohhh
<bean> so
<bean> whats happening is
<bean> it's getting run before the modifications to class String are made
bradhe has joined #ruby
<bean> because the BEGIN block runs first
<bean> dont use that shit
<bean> no one uses that shit
hbpoison has quit [Ping timeout: 264 seconds]
<Renich> bean: LOL, ok
* Renich is droping BEGIN and END
drago757 has joined #ruby
<bean> yeah, ruby will just run bare code, like we see in the bot here
Al__ has joined #ruby
hbpoison has joined #ruby
<Renich> ok, so, my lib files... do they need a #!/usr/bin/env ruby ?
<Renich> or just .rb will do?
<bean> >> Class string; def red; colorize(self, "\e[1m\e[31m");end; def colorize(text, color_code); "#{color_code}#{text}\e[0m";end;end; p "okay".red
<eval-in> bean: Output: "/tmp/execpad-1c9b719a1b8e/source-1c9b719a1b8e:1: syntax error, unexpected keyword_end, expecting $end\n...olor_code}\#{text}\\e[0m\";end;end; p \"okay\".red\n... ^\n" (http://eval.in/10894)
<bean> ah man i mssed it up :P oh well
<bean> Renich, no, only for the first file that gets run
<Renich> bean: fine
<Renich> thanks a ton for your help! I'll read more about modules and stuff
<bean> no problem
<bean> not sure where you read that BEGIN stuff
zyrex has joined #ruby
apeiros has quit [Remote host closed the connection]
<bean> >> puts "oh, i'm first"; BEGIN { puts "no me!"}
<eval-in> bean: Output: "no me!\noh, i'm first\n" (http://eval.in/10895)
Sonarcade has quit [Ping timeout: 256 seconds]
<Renich> bean: some ruby tutorial
apeiros_ has joined #ruby
<bean> a bad one :p
vikhyat has joined #ruby
<bean> or written by someone that loves AWK
thams has joined #ruby
<Renich> bean: yeah, maybe, hehe
wmoxam has joined #ruby
<havenwood> Renich: Some good ones at: http://www.ruby-lang.org/en/documentation/
delqn is now known as bedouin_
<Renich> thanks havenwood
bedouin_ has quit [Quit: leaving]
tish has quit [Quit: Leaving.]
apeiros_ has quit [Remote host closed the connection]
sepp2k has joined #ruby
wf2f has quit []
baba has quit [Read error: Connection reset by peer]
wmoxam has quit [Ping timeout: 260 seconds]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
joeycarmello has quit [Remote host closed the connection]
techlife has quit [Ping timeout: 256 seconds]
techlife has joined #ruby
sayan has joined #ruby
Retistic has quit [Quit: Retistic]
bedouin has joined #ruby
dedis has quit [Ping timeout: 260 seconds]
rupee has joined #ruby
willb has quit [Ping timeout: 255 seconds]
sayan has quit [Max SendQ exceeded]
pskosinski has quit [Remote host closed the connection]
brianpWins has joined #ruby
NemesisD has joined #ruby
sayan has joined #ruby
miso1337_ has joined #ruby
Morkel has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
Al__ has quit [Quit: Al__]
bedouin has quit [Client Quit]
someGuy5463 has joined #ruby
haxrbyte_ has joined #ruby
miso1337 has quit [Ping timeout: 264 seconds]
miso1337_ is now known as miso1337
bedouin has joined #ruby
bedouin has quit [Client Quit]
maletor has joined #ruby
unix has joined #ruby
artOfWar has joined #ruby
bedouin has joined #ruby
<someGuy5463> Hi!, i need some help urgent! im trying to load some gems in a rakefile but i always get this error: cannot load such file -- compass
<someGuy5463> it happens with all the gems that im trying to load
bedouin has quit [Client Quit]
delqn has joined #ruby
<havenwood> someGuy5463: Have you installed compass?: gem install compass
delqn has quit [Client Quit]
<havenwood> someGuy5463: Is this a project with a Gemfile?
haxrbyte has quit [Ping timeout: 252 seconds]
<someGuy5463> yep, its installed
delqn has joined #ruby
tagrudev has joined #ruby
delqn has quit [Client Quit]
<someGuy5463> it happens with all the gems
<havenwood> someGuy5463: Have you run: bundle
sn0wb1rd has joined #ruby
<havenwood> someGuy5463: An app? What are you trying to run?
<someGuy5463> im a beginner in ruby
v0n has quit [Quit: WeeChat 0.4.0]
<someGuy5463> a task
<someGuy5463> im trying to run a task
delqn has joined #ruby
workmad3 has joined #ruby
<someGuy5463> the first task is about check all the gems required
<havenwood> Is there a file in the root folder of the task that is named Gemfile?
<someGuy5463> no, there's no file
<havenwood> (Gemfile is a bundler file that lists the dependencies for an app.)
<havenwood> someGuy5463: So you don't know what gems are required?
<someGuy5463> but, let me tell you something, i clone this project in opther computer and it works perfectly,
rupee has quit [Ping timeout: 248 seconds]
<havenwood> someGuy5463: So the other computer has the required gem installed, I presuem?
<havenwood> s/presuem/presume
delqn has quit [Client Quit]
zyrex has quit [Quit: ChatZilla 0.9.90 [Firefox 18.0/20130107224926]]
Renich has left #ruby [#ruby]
<someGuy5463> let me explain it to you, the rake file has a task that checks if some gems are installed (and they are installed) but looks like that ruby cant find them or something like that
[rust] has joined #ruby
<havenwood> someGuy5463: Dunno if this is the problem, but you might check that your ENV variables for GEM_HOME, GEM_PATH, and GEM_ROOT are set correctly?
<havenwood> someGuy5463: I use chruby to do it for me. :O
<vabenjamin> so Im sort of surprised there is no open source text editor up to par with sublime text
willb has joined #ruby
delqn has joined #ruby
delqn has quit [Client Quit]
a_a_g has joined #ruby
francisfish has joined #ruby
delqn has joined #ruby
delqn has quit [Client Quit]
delqn has joined #ruby
<someGuy5463> what are the correct paths?? im a begginner
robert_ has quit [Read error: Connection reset by peer]
delqn has quit [Client Quit]
_veer has quit [Read error: Connection reset by peer]
<havenwood> someGuy5463: I'd suggest using chruby to set it for you. It is very minimalist and basically sets the correct env vars for Ruby and gems.
<havenwood> someGuy5463: It does requires unix, so OS X, linux, bsd, etc. No windows.
<someGuy5463> im in ubuntu
<vabenjamin> havenwood: Aptana studio started to magically work so it doesnt seem to be the fault of the IDE in case anyone in the future asks about it
<havenwood> vabenjamin: Ha, nice.
<havenwood> someGuy5463: Then I'd recommend chruby: https://github.com/postmodern/chruby
delqn has joined #ruby
linoge has quit [Quit: WeeChat 0.4.0]
<havenwood> someGuy5463: Install it, then run the setup.sh for the most recent ruby, jruby, and rbx
delqn has quit [Client Quit]
<havenwood> someGuy5463: Another very popular option is rvm.
francisfish has quit [Remote host closed the connection]
artOfWar_ has joined #ruby
<someGuy5463> havenwood: i don't understand, i didn't need to do all of this to run my app on other machines
<havenwood> someGuy5463: Sometimes environment variables get borked. Sometimes it works. Things like chruby are to just ensure they get set ideally, so you don't have to mess with it. Quite minimalist.
delqn has joined #ruby
<havenwood> someGuy5463: chruby is like 80 lines of shell script.
mafolz has joined #ruby
<havenwood> very concise, very precise
budmang has joined #ruby
<someGuy5463> havenwood: is there any way to set my paths manually, without chruby?
<postmodern> someGuy5463, im guessing your running on an older ruby, on an older ubuntu?
<postmodern> someGuy5463, with ruby 1.8.x, you had to put require 'rubygems' at the top of everything
artOfWar has quit [Ping timeout: 260 seconds]
Qodosh has quit [Remote host closed the connection]
<someGuy5463> i have that line at the top of my rakefile
budmang_ has quit [Ping timeout: 240 seconds]
<postmodern> someGuy5463, ah hmm idk
a_a_g1 has joined #ruby
vlad_starkov has joined #ruby
hemanth has quit [Ping timeout: 260 seconds]
NemesisD has quit [Ping timeout: 246 seconds]
<someGuy5463> havenwood: well, can you tell me please where i can set my env paths for ruby??
<someGuy5463> havenwood: i want to do it manually, please hel me
<postmodern> someGuy5463, you can set your paths manually, by exporting them in .bashrc
<postmodern> someGuy5463, export PATH="/.../:$PATH"
<havenwood> someGuy5463: You could read through chruby and follow its lead?: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
adeponte has joined #ruby
<havenwood> someGuy5463: What postmodern said. :)
<someGuy5463> i dont get it, is there a file where i can set this manually
<postmodern> someGuy5463, yes ~/.bashrc
<someGuy5463> ok
adeponte has quit [Client Quit]
browndawg has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
dr_bob has joined #ruby
a_a_g has quit [Ping timeout: 264 seconds]
aedornm has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
hbpoison has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
hbpoison has joined #ruby
someGuy5463 has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
drago757 has quit [Quit: drago757]
banisterfiend has joined #ruby
banisterfiend has quit [Remote host closed the connection]
unix has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
unix has joined #ruby
browndawg has joined #ruby
Takehiro has joined #ruby
sepp2k has quit [Remote host closed the connection]
andikr has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
NemesisD has joined #ruby
whitedawg1 has joined #ruby
decoponio has quit [Quit: My PC will reboot]
bluOxigen has joined #ruby
whitedawg has quit [Ping timeout: 255 seconds]
love_color_text has quit [Ping timeout: 255 seconds]
atyz has joined #ruby
_veer has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
thams has quit [Quit: thams]
banisterfiend has joined #ruby
decoponio has joined #ruby
unix has quit [Quit: WeeChat 0.4.0]
devians has joined #ruby
unix has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<devians> hey, is there any good resource that talks about the whole ruby ecosystem, ie ruby, gems, bundler, rvm etc and how to deploy things like that in production?
mattbl has quit [Quit: This computer has gone to sleep]
robert_ has quit [Ping timeout: 255 seconds]
Retistic has joined #ruby
aedornm has joined #ruby
<dcunited001> have you checked out railscasts and rubyrogues?
TheFuzzball has joined #ruby
<dcunited001> i'm not sure of a good resource that talks about everything. you just have to get on github and start forking things up
eldariof has joined #ruby
<dcunited001> gtg devians
havenwood has quit [Remote host closed the connection]
dcunited001 has quit [Quit: Leaving]
<devians> thats the problem i'm finding with ruby. lots of epherma and hard to get a grasp of where it all fits together.
nomenkun has quit [Remote host closed the connection]
Myk267 has joined #ruby
Myk267 has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
thinkclay has quit [Quit: Leaving.]
gosshedd has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
keyvan has quit [Ping timeout: 244 seconds]
bradhe has quit [Read error: Connection reset by peer]
vikhyat has quit [Remote host closed the connection]
lemonsparrow has joined #ruby
veer has joined #ruby
puppeh has joined #ruby
<reactormonk> devians, same for everything
monkegjinni has joined #ruby
veer is now known as Guest94795
NemesisD has quit [Ping timeout: 276 seconds]
<devians> hmmmm, ruby is particularly bad. just the whole versioning thing is a bit of a clusterfuck, no?
aganov has joined #ruby
_veer has quit [Ping timeout: 256 seconds]
t-mart_ has quit [Read error: Connection reset by peer]
Monie has quit [Read error: Connection reset by peer]
allanm has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
havenn has joined #ruby
t-mart has joined #ruby
t-mart has quit [Changing host]
t-mart has joined #ruby
allanm has joined #ruby
ananthakumaran1 has quit [Read error: Connection reset by peer]
<reactormonk> devians, versioning?
ananthakumaran has joined #ruby
justsee has quit [Read error: Connection reset by peer]
TomJ has quit [Read error: Connection reset by peer]
<devians> the problem that rvm purports to resolve, every app needing a different ruby version
codespectator has quit [Quit: Computer has gone to sleep.]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
pyrac has joined #ruby
marr has joined #ruby
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
Emmanuel_Chanel has quit [Excess Flood]
Emmanuel_Chanel has joined #ruby
tagrudev has quit [Ping timeout: 264 seconds]
Mchl has joined #ruby
joeycarmello has quit [Ping timeout: 245 seconds]
SqREL has joined #ruby
appamatto has quit [Ping timeout: 264 seconds]
appamatto has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
ephemerian has joined #ruby
<shevy> devians if you have to use rvm, you deserve to be a sheep
tagrudev has joined #ruby
<shevy> same with bundler
<devians> pardon?
<shevy> and in essence, gems, except that it is now officially distributed in the latest 1.9.x
tish has joined #ruby
<shevy> devians why do you have to use rvm?
atyz has quit [Quit: Leaving...]
<devians> well thats the thing, I dont know. I'm not a ruby programmer, but I seem to need to deploy ruby apps all the time, and I'm forever mucking around with installs
vikhyat has joined #ruby
<devians> you install one thing according to instruction, but the next thing you install needs a different environment, and then it all goes downhill
<shevy> bundler wasn't there like 3 or 4 years ago, gems perhaps not 5 or 6 years ago
<shevy> the ancient way to install a ruby "standalone" project used to be via one file alone, setup.rb
<havenn> I like Gemfile and `bundle` :)
unix has quit [Quit: WeeChat 0.4.0]
<shevy> all what this did, and in some ways gem does too, was to copy things into the respective site dir of where ruby is installed
QaDeS has joined #ruby
QaDeS has quit [Client Quit]
unix has joined #ruby
<shevy> for instance, into /usr/lib/ruby/site_ruby/1.9.1
<devians> what is a site dir?
<shevy> devians just where ruby drops the things it needs from a project, for example:
<shevy> in that directory, is another directory called tk/ and a file called tk.rb
<shevy> these are the ruby bindings to the tk toolkit
<havenn> I don't quite understand why so many people `bundle install` when it is identical to `bundle`?
<shevy> when you do: require 'tk' within a .rb file the tk.rb file is loaded
<havenn> Seems to me fewer is better.
<devians> is this an attempt to share assets between projects?
toekutr has quit [Remote host closed the connection]
atyz has joined #ruby
hiroyuki_ has quit [Remote host closed the connection]
<devians> ie, tk is in a shared location rather than in every project that needs tk?
<shevy> well you can say that, it is the (or among the) first areas where ruby tries to find projects
hiroyuki has joined #ruby
<shevy> $LOAD_PATH should have the listing of all directories it tries to search through
rodzhers has joined #ruby
<shevy> what gem then added was the option to easily install and remove projects, from the commandline
willbradley has joined #ruby
<shevy> for example, if tk would be a rubygem project, you could do: gem install tk, and ... gem uninstall tk
<devians> and bundler is a sort of auto gem handler yes? ie i want these gems
<willbradley> heya, i've got a call to method get() in this code and i don't know what it is. can I do something like get().inspect() ?
<shevy> I am not entirely sure how bundler really fits in, I think it handles mass-gems, with different versions... I have had problems with it so I am biased against bundler
<willbradley> I'd like some output like SomeFramework::GetterMethods::get
<shevy> havenn likes them so he should rather tell speak more about bundler haha
<devians> ok.
wallerdev has quit [Quit: wallerdev]
<devians> so whats the go with ruby versioning and rvm, ie whats the problem that solves?
<shevy> well, see that is not rvm alone here
<shevy> debian for example changes the way ruby/gems work, they dont like gems much
<shevy> so people typically come here with debian-related problems and expect the ruby folks here to solve problems related to debian-ruby
<shevy> like why mkmf is not available by default
CraHan|out is now known as CraHan
vikhyat has quit [Remote host closed the connection]
<shevy> anyway, rvm partially attempts to solve this problem too
hashmal has quit [Quit: Computer has gone to sleep.]
<shevy> people can install and manage different ruby versions into their home directory
codespectator has joined #ruby
<havenn> devians: chruby is a nice option for managing (and installing) Rubies on Debian. RVM is also quite popular.
<devians> why do you need rubies, ie more than one ruby?
hiroyuki has quit [Ping timeout: 264 seconds]
<shevy> but rvm can only help if you have a need for it. I manage different ruby versions on my own, without rvm, and I never have a problem to switch the versions (they are only symlinks to the real ruby binary, this is what rvm does too as far as I know)
<shevy> devians, and on debian, you can have only once instance of "/usr/bin/ruby"
<shevy> at that position
<shevy> this could be ruby 1.8.x or 1.9.x or 1.0.0
dameningenda has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<shevy> it's a huge flaw in the FHS
Nisstyre-laptop has quit [Quit: Leaving]
<devians> im on ubuntu in this particular deployment, although i've run into this issue on my development mac. is ubuntu affected by this, being downstream debian more or less
<havenn> devians: Well, there is the C Ruby, which all others follow. Then JRuby on the JVM, Maglev on GemstoneVM, Rubinius on LLVM, Topaz on RPython, etc. etc.
moshee has quit [Ping timeout: 246 seconds]
<shevy> btw devians python has version problems too
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
dameningenda has joined #ruby
maxmanders has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<havenn> devians: mruby, ironruby, macruby, cardinal, and others
<shevy> when you compile latest python from source, in the bin/ directory you will have python3.3 and python3 symlink. they dont have a "python" symlink yet, I assume because they do not want to overwrite /usr/bin/python just yet hehehe
<devians> so theres all these rubies, and for each app you want to run, it will want a specific version?
<shevy> and python2 to python3 has incompatible syntax, ruby is a bit incompatible too
<shevy> (from ruby 1.8.x to ruby 1.9.x)
<havenn> devians: If the Ruby implementation supports a version, say 1.9.2+, then it runs on whatever VM.
<havenn> i phrased that badly, s/implementation/script
<devians> 'whatever VM' being a ruby binary thats 1.9.2 or above in this case?
senayar has joined #ruby
daig0ro has joined #ruby
daig0ro has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Takehiro has joined #ruby
<havenn> devians: For example, here is a benchmark I did of prime number maths, same code running on Ruby 1.9, 2.0, Topaz, JRuby, RBX, Maglev, IronRuby, MacRuby, and MRuby: https://gist.github.com/havenwood/4724778
vlad_starkov has quit [Remote host closed the connection]
<havenn> devians: Same exact code, since they all comply with Ruby's spec.
vlad_starkov has joined #ruby
alx- has joined #ruby
bradhe has joined #ruby
<havenn> 2 days till 2.0.0 :D
<vabenjamin> So why isruby slower than topaz?
<vabenjamin> Topaz is the ruby vm written in python?
<havenn> vabenjamin: In RPython.
jimeh has joined #ruby
<havenn> vabenjamin: Its JIT favors this benchmark (did the benchmark after looking at Topaz).
<vabenjamin> Im not familiar with rpython
mattbl has joined #ruby
<vabenjamin> Hm Ill also have to upgrade to 2.0, I didnt know it was coming out in two days
<vabenjamin> I should have installed the ruby version manager...
dhruvasagar has joined #ruby
<havenn> vabenjamin: chruby ftw!
vlad_starkov has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
<havenn> vabenjamin: RPython: https://code.google.com/p/rpython/
<vabenjamin> I just started writing a gem, hope nothing breaks. Really doubt it though because im using fairly basic libraries and data types so far
mattbl has quit [Client Quit]
rodzhers has quit [Quit: Leaving]
<havenn> vabenjamin: It almost certainly wont break unless you have native C extensions.
[rust] has quit [Quit: Leaving]
hbpoison has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
hbpoison has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
main has joined #ruby
r4do has joined #ruby
schaerli has quit [Remote host closed the connection]
Astralum has joined #ruby
francisfish has joined #ruby
brianpWins has quit [Quit: brianpWins]
Astral_ has quit [Ping timeout: 245 seconds]
d2dchat has quit [Remote host closed the connection]
vikhyat has joined #ruby
kevinfagan has joined #ruby
anderse has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
Criztian has joined #ruby
sk87 has joined #ruby
tish has quit [Quit: Leaving.]
hoelzro|away is now known as hoelzro
wargasm has joined #ruby
obs has joined #ruby
mattbl has joined #ruby
jprovazn has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
love_color_text has joined #ruby
razibog has joined #ruby
eka has joined #ruby
anderse has quit [Quit: anderse]
khismetix has joined #ruby
segv- has joined #ruby
samphippen has joined #ruby
Al__ has joined #ruby
hbpoison has joined #ruby
emergion has joined #ruby
fabrice31 has joined #ruby
nfk has joined #ruby
segv- has quit [Remote host closed the connection]
lkba has joined #ruby
Slivka has joined #ruby
Qwak has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
bradhe has joined #ruby
banseljaj is now known as imami|afk
Elhu has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
m3pow has quit [Remote host closed the connection]
SqREL has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
bradhe has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
tatsuya_o has joined #ruby
zzing has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
<banisterfiend> <@KSIOlajidebt> yoloͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦͦ
nari has quit [Ping timeout: 245 seconds]
<fabrice31> Has anyone ever had the message "no such file to load" for rspec gems, though it is intalled ?
m3pow has joined #ruby
havenn has quit [Remote host closed the connection]
SqREL has joined #ruby
Vainoharhainen has joined #ruby
<Muz> banisterfiend: is that some yolo-zalgo crossover?
<Muz> I have a large vertical smear emanating from the final o.
arturaz has joined #ruby
<Zelest> wow, that really made my terminal laggy
<Zelest> if I resize the window it takes forever before it re-"render" it
khismetix has joined #ruby
workmad3 has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
gatopan has joined #ruby
segv- has joined #ruby
m3pow has quit [Read error: Connection reset by peer]
zzing has joined #ruby
zzing has quit [Client Quit]
samphippen has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
predator217 is now known as predator117
Al__ has quit [Quit: Al__]
pepps has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
vikhyat has quit [Remote host closed the connection]
blacktulip has joined #ruby
bubbajones has joined #ruby
Elhu has joined #ruby
Evixion has quit [Ping timeout: 264 seconds]
cableray has quit [Quit: cableray]
keymone has joined #ruby
nari has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
chris-supportie has joined #ruby
hbpoison has joined #ruby
Neomex has joined #ruby
vabenjamin has left #ruby [#ruby]
gyre007 has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
Myconix has joined #ruby
pyrac has quit [Read error: Connection reset by peer]
pyrac_ has joined #ruby
elico has joined #ruby
samphippen has joined #ruby
monkegjinni has joined #ruby
maasha has joined #ruby
elaptics`away is now known as elaptics
lkba has quit [Ping timeout: 252 seconds]
<maasha> hi
<maasha> should while 1; end; give a warning?
Qwak has quit [Ping timeout: 255 seconds]
<maasha> warning: literal in condition
chussenot has joined #ruby
timonv has joined #ruby
babinho has joined #ruby
gatopan has quit [Ping timeout: 245 seconds]
<Hanmac> maasha while 1 is bad coding style
pskosinski has joined #ruby
anderse has joined #ruby
<maasha> Hanmac: I guess it is old school. What do you propose?
<workmad3> maasha: yes, it should give a warning. A literal in a condition can't change, which means that either the loop will never terminate or will never execute (depending on if you use literal nil/false, or a truthy literal)
<Hanmac> loop
<workmad3> (barring a break, that is :) )
<maasha> but endless loops are a useful feature? I have seen them many places
<Hanmac> maasha: loop { .... }
<workmad3> maasha: hence warning - 'Are you sure you wanted to do this?' vs error
<maasha> so it is because Ruby have another preferred way (loop)?
<workmad3> maasha: also, it's rare that you want to keep the loop completely endless... it's generally cleaner to allow the loop to terminate than have a conditional break
<pepps> no loops are actually intended to be endless
<workmad3> maasha: so that you can more cleanly terminate the loop when handling a graceful termination from a ctrl-c signal, or in a game loop to terminate it when you're going to the menu, or closing the game...
<maasha> workmad3: I know. But sometimes it is very clean to setup a endless loop if the there are several tricky break conditions.
<workmad3> maasha: it's just as clean to set up a termination condition and flip it in those conditions
<macq> workmad3: sometimes you don't want to wait till the loop cycle ends
<workmad3> maasha: you can pretty much always replace 'break' with 'keep_looping = false'
<maasha> workmad3: I suppose that comes down to style ...
<workmad3> macq: then the rest of the loop goes into an else :P
<maasha> OK, but I now understand that the warning is in place to advocate one style :o)
<workmad3> and yeah, as Hanmac says, if you want a break-controller loop... use loop {} ;)
<macq> workmad3: while keep_looping { f1; f2; f3; f4; } if i have to stop after f2 it's way easier to break then to do all that ifs
<macq> or you will end up with code like {if1 if keep_looping; f2 if keep_looping; f3 if ...}
<pepps> really good ruby doesn't depend on if-statements
mikecmpbll has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<pepps> or rather, oop doesn't
<workmad3> macq: I'd personally go with the suffix 'ifs' to make it explicit that this code is currently more complicated than I'd ideally like, rather than trying to hide the complexity of execution flow behind a break statement
bradhe has joined #ruby
<workmad3> macq: not to mention that a 'break' resists refactoring the loop control away from the loop itself
miso1337 has quit [Quit: afk]
unix has quit [Quit: WeeChat 0.4.0]
ssedano1 has joined #ruby
PragCypher has joined #ruby
unix has joined #ruby
<ssedano1> Hi, how can I validate a string against a regexp (to check if it matches the whole string)?
<workmad3> ssedano1: what do you mean 'check it matches the whole string'?
schaerli has joined #ruby
<ssedano1> For example, if I made a group, the group would be the whole string. /a/ "a" but not "ab". Sorry if it is confusing.
<ssedano1> s/made/make
<Hanmac> ssedano1 "abc" =~ /\Aabc\Z/
PanPan has quit [Remote host closed the connection]
ozgura has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
<ssedano1> \A meaning start of line is it? (^ like)
<ssedano1> cool thanks
ExxKA has joined #ruby
apok has quit [Quit: apok]
ebouchut has quit [Remote host closed the connection]
artOfWar_ has quit [Ping timeout: 256 seconds]
<Hanmac> \A means start of string
vikhyat has joined #ruby
seich- has quit [Ping timeout: 276 seconds]
adeponte has quit [Remote host closed the connection]
timmow has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
jprovazn has quit [Quit: Leaving]
Loaft has quit [Read error: Connection reset by peer]
vikhyat has quit [Remote host closed the connection]
hbpoison has joined #ruby
eka has joined #ruby
monkegjinni has quit [Remote host closed the connection]
filipe has quit [Ping timeout: 264 seconds]
yewton has quit [Excess Flood]
vlad_starkov has joined #ruby
spider-mario has joined #ruby
yewton has joined #ruby
<shevy> yeah, ^ means start of line :D
<shevy> pepps hmm do you never use "if"?
geekmod is now known as hdhoy
hdhoy has left #ruby [#ruby]
love_color_text has quit [Remote host closed the connection]
berserkr has joined #ruby
skattyadz has joined #ruby
Shrink has quit [Ping timeout: 244 seconds]
miso1337 has joined #ruby
erry_ is now known as erry
seich- has joined #ruby
banisterfiend has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 255 seconds]
<pepps> shevy: I do, but not in the case of explicitly ending loops
emergion has joined #ruby
<pepps> Using if-statements everywhere for everthing is a code smell
<pepps> and it smells bad
filipe has joined #ruby
hemanth has joined #ruby
<Hanmac> x ? ( y ? 1 : 2 ) : (z ? 3 : 4) #:P
Stilo has joined #ruby
basshunter has joined #ruby
<shevy> anyone knows of a simple way to
<shevy> convert 191 seconds into a 00:03:11 format?
Xeago has joined #ruby
<hoelzro> hours = seconds % 3600 ; seconds /= 3600 ; minutes = seconds % 60 ; seconds /= 60 ; sprintf '%02d:%02d:%02d', hours, minutes, seconds
<DefV> adapt for seconds
<DefV> done
<hoelzro> seconds must be an integer, though
<whitequark> ugh
<hoelzro> that won't work for floats
<shevy> cool thanks
parzorep has quit [Quit: parzorep]
vlad_starkov has quit [Ping timeout: 264 seconds]
khismetix has joined #ruby
miso1337 has quit [Quit: afk]
<hoelzro> divmod is a good suggestion
F1skr has joined #ruby
<hoelzro> you could do this with divmod:
Neomex has quit [Quit: Neomex]
<hoelzro> hours, seconds = seconds.divmod(3600) ; minutes, seconds = seconds.divmod(60) ; sprintf '%02d:%02d:%02d', hours, minutes, seconds
parzorep has joined #ruby
parzorep has quit [Client Quit]
hemanth has quit [Quit: Leaving]
zigomir has joined #ruby
love_color_text has joined #ruby
Shrink has joined #ruby
m3pow has joined #ruby
<Hanmac> shevy what about:
<Hanmac> >> p Time.at(191).utc.strftime("%H:%M:%S")
<eval-in> Hanmac: Output: "\"00:03:11\"\n" (http://eval.in/10906)
banjara has quit [Quit: Leaving.]
fermion has joined #ruby
dragoonis has joined #ruby
<dragoonis> I'm using jekyll for website dev hosted on github.com, is this the right place to ask jekyll questions?
<dragoonis> It's about extending layouts
<dragoonis> and if this isn't the right channel, what's the right one?
a_a_g1 has quit [Ping timeout: 252 seconds]
unix has quit [Read error: Connection reset by peer]
<shevy> Hanmac wow that is short
<DefV> Hanmac: that's actually a great idea :-)
a_a_g has joined #ruby
marcgg_ has joined #ruby
dragoonis has quit [Remote host closed the connection]
<hoelzro> it's short, but it might be deceptive to someone reading that code
moshee has quit [Ping timeout: 264 seconds]
unix has joined #ruby
moshee has joined #ruby
aspiers has quit [Ping timeout: 276 seconds]
HecAtic has joined #ruby
marcgg has quit [Ping timeout: 276 seconds]
aspiers has joined #ruby
miso1337 has joined #ruby
seich- has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
deadalus has quit [Ping timeout: 272 seconds]
adambeynon has joined #ruby
girija has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
Matip has quit [Quit: Leaving]
Mattix has joined #ruby
seich- has joined #ruby
vlad_starkov has joined #ruby
deadalus has joined #ruby
girija has joined #ruby
tatsuya__ has joined #ruby
adambeynon has quit [Ping timeout: 264 seconds]
<shevy> hehe
skattyadz has quit [Quit: skattyadz]
<shevy> that's Hanmac code for everyone but Hanmac!
<Hanmac> my code is a bit special ... it does not want to be readed from everyone :P
pdelgallego has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
CraHan is now known as CraHan|out
tatsuya_o has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
devians has quit [Remote host closed the connection]
adambeynon has joined #ruby
chris-supportie has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Ping timeout: 256 seconds]
devians has joined #ruby
Retistic has quit [Quit: Retistic]
ozgura has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
yewton has quit [Excess Flood]
rippa has quit [Ping timeout: 240 seconds]
zoonfafer has joined #ruby
yewton has joined #ruby
tatsuya_o has joined #ruby
ddd_ has joined #ruby
tatsuya__ has quit [Ping timeout: 264 seconds]
nomenkun has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
unix has quit [Quit: WeeChat 0.4.0]
ddd has quit [Ping timeout: 245 seconds]
maxmanders has quit [Ping timeout: 264 seconds]
tatsuya__ has joined #ruby
devians has quit [Remote host closed the connection]
svandiepen has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 248 seconds]
hiroyuki has joined #ruby
svandiepen has joined #ruby
Guest94197 has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
michal_ has joined #ruby
unix has joined #ruby
brandon has joined #ruby
brandon is now known as Guest36011
devians has joined #ruby
inao has quit [Quit: Leaving...]
hbpoison has joined #ruby
Romance has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
adeponte has joined #ruby
pyrac_ has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
Romance has left #ruby [#ruby]
khismetix has quit [Quit: Computer has gone to sleep.]
newUser1234 has quit [Remote host closed the connection]
`brendan has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
maxmande_ has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
adeponte has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
Criztian has quit []
maxmande_ has quit [Ping timeout: 264 seconds]
khismetix has joined #ruby
Takehiro has quit [Remote host closed the connection]
inao has joined #ruby
Choclo has joined #ruby
pdelgallego has quit [Ping timeout: 264 seconds]
allanm has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
huoxito has joined #ruby
khismetix has quit [Ping timeout: 264 seconds]
lemonsparrow has quit [Quit: Page closed]
inao has quit [Quit: Leaving...]
kristofers has joined #ruby
khismetix has joined #ruby
tatsuya_o has joined #ruby
jonnie18 has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
tatsuya__ has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
maxmanders has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
girija has quit [Read error: Connection reset by peer]
codespectator has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
pdelgallego has joined #ruby
banisterfiend has joined #ruby
atno__ has joined #ruby
kofno has quit [Read error: Connection reset by peer]
kofno_ has joined #ruby
maxmanders has joined #ruby
CraHan|out is now known as CraHan
atno has quit [Disconnected by services]
atno__ is now known as atno
atno__ has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
dameningenda has quit [Ping timeout: 252 seconds]
divout has quit [Remote host closed the connection]
fir_ed has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
senayar has quit [Ping timeout: 255 seconds]
jpcamara has joined #ruby
gvz has joined #ruby
love_color_text has quit [Remote host closed the connection]
tatsuya__ has joined #ruby
Bry8Star has quit [Quit:]
nkr has joined #ruby
wmoxam has joined #ruby
tatsuya_o has quit [Ping timeout: 248 seconds]
<maasha> Right, this must surely be a bug in ruby
<maasha> I have lame problems with ruby and warnings.
<shevy> maasha let's admit it
<shevy> the warning system in ruby is gayer than gay
<shevy> even perl asskicks ruby here
<shevy> ruby should die because of this alone
<maasha> So I set export RUBYOPT=-w in my .bashrc and now when I run my script to plot stuff using rubys gnuplot gem it outputs: writing this to gnuplot: and then all the data to STDOUT.
atno has quit [Remote host closed the connection]
atno__ has quit [Read error: Connection reset by peer]
<maasha> which breaks the following code. warnings should be printed to stderr, yes?
slainer68 has quit [Remote host closed the connection]
<hoelzro> are you sure it's not gnuplot that writes the data to STDOUT?
girija has joined #ruby
<maasha> hoelzro: actually, I dont know. The problem is toggled with using -w or not.
<shevy> hehe
<maasha> I just waited all morning for this script to complete and then this nasty thing broke it at the end.
<hoelzro> have you tried digging into the gnuplot gem and seeing if it's responsible?
garbagecollectio has joined #ruby
<shevy> beat it with a stick man
<maasha> hm. let me see if I can grep the message
<shevy> shake it out "what are you doing gnuplot gem what are you doing!!!"
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dylan_ has joined #ruby
HecAtic has quit [Quit: Àá¼ö]
jbw has joined #ruby
cha1tanya has quit [Ping timeout: 248 seconds]
Al__ has joined #ruby
dylan_ has left #ruby [#ruby]
bradhe has joined #ruby
atno has joined #ruby
<maasha> this seems to be the culprit? ./lib/gnuplot.rb: puts "writing this to gnuplot:\n" + to_gplot + "\n" if $VERBOSE
<hoelzro> that would be it.
<maasha> and $VERBOSE - is that a standard constant changed by -w?
<hoelzro> yes
Astral_ has joined #ruby
<maasha> ok, so that puts - should be puts to stderr - is that a fair claim?
robbyoconnor has quit [Ping timeout: 255 seconds]
fir_ed has quit [Ping timeout: 264 seconds]
rlb3 has joined #ruby
guyz has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 264 seconds]
<hoelzro> I think so
<Hanmac> maasha there is also an -d flag but i have seen gems that breaks if you use that
<hoelzro> you shouldn't clobber stdout with "crap" data
<maasha> ok, I'll file an issue. thanks
Shrink has quit [Read error: Connection reset by peer]
Astralum has quit [Ping timeout: 276 seconds]
Choclo has quit [Quit: Leaving.]
<Hanmac> i think $stderr.puts is what you are looking for
Virunga has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
digifiv5e has joined #ruby
nari has quit [Ping timeout: 244 seconds]
digifiv5e is now known as Guest69846
basshunter has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
maxmanders has quit [Ping timeout: 264 seconds]
elico has quit [Quit: Elico]
<maasha> Hanmac: I know. I just submitted the issue with that proposal :o)
rmartin has joined #ruby
Al__ has quit [Quit: Al__]
chussenot has quit [Quit: chussenot]
elico has joined #ruby
dhruvasagar has quit [Quit: Lost terminal]
bluenemo has joined #ruby
monkegji_ has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
unix has quit [Quit: WeeChat 0.4.0]
maxmanders has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
_pdelgallego has joined #ruby
_pdelgallego has quit [Client Quit]
devians has left #ruby [#ruby]
octoberry has joined #ruby
ssedano1 has quit [Ping timeout: 248 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
pdelgallego has quit [Ping timeout: 264 seconds]
maxmanders has quit [Ping timeout: 264 seconds]
monkegji_ has quit [Remote host closed the connection]
vikhyat has joined #ruby
ssedano1 has joined #ruby
tatsuya__ has quit [Ping timeout: 264 seconds]
tatsuya_o has joined #ruby
vikhyat has quit [Remote host closed the connection]
Udom0 has joined #ruby
maxmanders has joined #ruby
obs has quit [Quit: Konversation terminated!]
noop has quit [Remote host closed the connection]
Takehiro has joined #ruby
testingb0t has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
hbpoison has quit [Ping timeout: 256 seconds]
<testingb0t> What would be the best way to sort an array of browsernames with their version number? ['IE6', 'FF10', 'FF12', 'IE9']? normal sort does not take the version numbers into account
ssedano1 has quit [Client Quit]
Choobie has joined #ruby
slainer68 has joined #ruby
yshh has joined #ruby
whitedawg1 has quit [Ping timeout: 252 seconds]
<shevy> testingb0t what is the specific output you want in this example here
garbagecollectio has joined #ruby
MartinCleaver has joined #ruby
<testingb0t> shevy: ['FF10', 'FF12', 'IE6', 'IE9'], I am trying to use Comparable and <=> but not sure how to handle the version numbering
<shevy> ok so from array1 = ['IE6', 'FF10', 'FF12', 'IE9'] to array2 = ['FF10', 'FF12', 'IE6', 'IE9']
<shevy> I am confused
carloslopes has joined #ruby
keymone has quit [Quit: keymone]
<shevy> array1 = ['IE6', 'FF10', 'FF12', 'IE9']
<shevy> array1.sort # => ["FF10", "FF12", "IE6", "IE9"]
<Hanmac> >> p ['IE6', 'FF10', 'FF12', 'IE9'].sort_by{|s| s.scan(/(\w+)(\d+)/)[0] }
<eval-in> Hanmac: Output: "[\"FF10\", \"FF12\", \"IE6\", \"IE9\"]\n" (http://eval.in/10907)
yshh has quit [Ping timeout: 264 seconds]
monkegji_ has joined #ruby
<testingb0t> Thanks shevy
lkba has joined #ruby
<shevy> testingb0t keep Hanmac's code in mind, it may work for a larger dataset too
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
<shevy> like 'moZ555' haha
<shevy> I dont even know how many browsers exist
monkegji_ has quit [Remote host closed the connection]
moos3 has joined #ruby
tomzx_mac has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
<tobiasvl> i still don't see how normal sort doesn't take the version numbers into account?
<testingb0t> Indeed, thank you Hanmac
<tobiasvl> lexicographical sorting?
Slivka has quit [Ping timeout: 264 seconds]
<macq> he is sorting strings, so FF9 > FF10
fschuindt has joined #ruby
<shevy> ah
<shevy> now that seems to make sense
kaffepanna has joined #ruby
<tobiasvl> aaah yeah. okay.
<tobiasvl> i see now that shevy's example gracefully skipped that particular use case ;)
<shevy> yeah :(
elico has quit [Remote host closed the connection]
<shevy> but I am lazy... I only try to perfect code for a situation at hand
<shevy> Hanmac is perfect all the time
otherj has joined #ruby
<macq> hanmacs version not perfect either
<macq> "FF10".scan(/(\w+)(\d+)/)[0] => ["FF1", "0"]
<shevy> Hanmac you can't let this sit on you!
<shevy> array = ['IE6', 'FF10', 'FF12', 'IE9', 'FF9', 'IE3']
CreativeEmbassy has joined #ruby
<Hanmac> >> p "FF10".scan(/([[:alpha:]]+)([[:digit:]]+)/)[0]
<eval-in> Hanmac: Output: "[\"FF\", \"10\"]\n" (http://eval.in/10908)
robustus has quit [Ping timeout: 276 seconds]
<shevy> you purposely use features against ruby 1.8.x right Hanmac? :P
<shevy> oh
<Hanmac> hm yes :P
<shevy> this seems to work on 1.8
whitedawg has joined #ruby
<shevy> odd, thought that [:alpha:] would not work
niklasb has joined #ruby
robustus has joined #ruby
unix has joined #ruby
SolidResolve has quit [Quit: Good bye]
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
pac1 has joined #ruby
mark_locklear has joined #ruby
schaerli has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
Virunga has joined #ruby
Virunga_ has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
Emmanuel_Chanel has quit [Quit: Leaving]
Virunga has quit [Read error: No route to host]
pyrac has quit [Read error: Connection reset by peer]
pyrac_ has joined #ruby
<Hanmac> shevy you need [[]] so it can be detected as an specific group
Virunga_ is now known as Virunga
chussenot has joined #ruby
deadalus has quit [Changing host]
deadalus has joined #ruby
haxrbyte_ has quit [Ping timeout: 264 seconds]
CraHan is now known as CraHan|out
bradhe has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<testingb0t> >> p ["Chrome", "FF4", "FF13", "FF7"].sort_by { |s| s.scan(/([[:alpha:]]+)([[:digit:]]+|\s*)/)[0] }
<eval-in> testingb0t: Output: "[\"Chrome\", \"FF13\", \"FF4\", \"FF7\"]\n" (http://eval.in/10925)
Elhu has joined #ruby
Emmanuel_Chanel has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
daniel_- has joined #ruby
khismetix has joined #ruby
<macq> >> p ["Chrome", "FF4", "FF13", "FF7"].sort_by { |s| s.scan(/(\D+)(\d+)?/).first }
<eval-in> macq: Output: "[\"Chrome\", \"FF13\", \"FF4\", \"FF7\"]\n" (http://eval.in/10927)
adambeynon has joined #ruby
berserkr has quit [Quit: Leaving.]
ananthakumaran has quit [Quit: Leaving.]
Choclo has joined #ruby
Liothen has quit [Remote host closed the connection]
MartinCleaver has quit [Quit: MartinCleaver]
twshelton has joined #ruby
geekbri has joined #ruby
samphippen has joined #ruby
thibauts has joined #ruby
alx- has quit [Ping timeout: 276 seconds]
<thibauts> Hi, what is the best (idiomatic) way to compute the number of hours between two timestamps ? (any helping gem is allowed)
skattyadz has joined #ruby
TomJ has quit [Quit: TomJ]
uris has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
octoberry has quit [Ping timeout: 264 seconds]
<tobiasvl> if you're doing this in rails it's pretty simple
clocKwize has joined #ruby
<tobiasvl> but i don't think ruby has a good way to do that without doing math
<thibauts> tobiasvl: how would i do ?
uris has quit [Client Quit]
<tobiasvl> rails or no rails?
<macq> >> p ["Chrome", "FF4", "FF13", "FF7"].sort_by { |s| s.split /(?<!\d)(?=\d)/ }
<eval-in> macq: Output: "[\"Chrome\", \"FF13\", \"FF4\", \"FF7\"]\n" (http://eval.in/10933)
uris has joined #ruby
<thibauts> tobiasvl: yes
<thibauts> rails
<tobiasvl> thibauts: (Time.now - incidents.first.created_on) / 1.hour
<tobiasvl> in rails
<thibauts> pretty nice
<tobiasvl> something like that
<thibauts> that's what i was looking for, thank you
<tobiasvl> 1.hour is the way to convert to hours at any rate
<tobiasvl> np
yfeldblum has quit [Ping timeout: 264 seconds]
kaffepanna has quit [Quit: leaving]
justme1 has joined #ruby
markprovan has joined #ruby
Virunga has quit [Remote host closed the connection]
pdamer has joined #ruby
pdamer has quit [Client Quit]
Astral_ has quit [Ping timeout: 246 seconds]
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
`p has quit [Ping timeout: 248 seconds]
krz has quit [Quit: krz]
lmg_ has joined #ruby
kaffepanna has joined #ruby
`p has joined #ruby
gregor3005 has joined #ruby
Virunga has joined #ruby
Virunga has quit [Remote host closed the connection]
Virunga has joined #ruby
mikecmpbll has joined #ruby
<gregor3005> hi, i try to build an update and restart method into my server-client application. the update part works but on restart it cannot find the file. i restart the application with: system("ruby startClient.rb")
<gregor3005> when i disable the update methode (unzip and overwrite existend files) the restart process works
filemon_CZ has joined #ruby
<pepps> gregor3005: put "sleep 1" or something inbetween the update and restart to check if it's some kind of race condition
<gregor3005> i get: startClient.rb:53:in `system': No such file or directory - getcwd (Errno::ENOENT)
tomzx_mac has quit [Ping timeout: 260 seconds]
<gregor3005> pepps: did not help, maybe a refresh of the file system or any different ways
techhelp has joined #ruby
<gregor3005> hm, or a wrapper
hogeo has quit [Remote host closed the connection]
m3pow has quit [Read error: Connection reset by peer]
<gregor3005> ah i found away. i my update version i deleted the whole directory, that caused the problem
sailias has joined #ruby
tommyvyo has joined #ruby
blaxter has quit [Quit: foo]
<pepps> yeah, the new folder gets a new file descriptor
wmoxam has joined #ruby
CraHan|out is now known as CraHan
<pepps> an ugly way to solve it would be to exit the old folder, delete it, unpack the new one, enter the new folder, run rb-file
<pepps> instead of doing some kind of intelligent merge-thingy
samphippen has quit [Quit: Computer has gone to sleep.]
CreativeEmbassy has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
newUser1234 has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
codecop has quit [Remote host closed the connection]
horrror has joined #ruby
maxmande_ has joined #ruby
fschuindt has joined #ruby
<horrror> how can i start a shell console through ruby? not execute a single command (like %x() ) but open an entire shell session
<pepps> Like bash or another shell?
<tobiasvl> well you can just do %x( bash )
kofno_ is now known as kofno
<horrror> but this won't work on remote right?
jgarvey has joined #ruby
maxmanders has quit [Ping timeout: 264 seconds]
<pepps> Maybe you could open an ssh-connection
maxmanders has joined #ruby
Takehiro_ has joined #ruby
jpcamara has quit [Quit: jpcamara]
<tobiasvl> what exactly do you want, horrror
<tobiasvl> what do you mean by "remote"
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
tomku has quit [Ping timeout: 245 seconds]
<horrror> tobiasvl: i think ssh connection is what i need
maxmande_ has quit [Ping timeout: 264 seconds]
<pepps> horrror: what is it that you are trying to accomplish?
tomku has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
<horrror> i have two servers that are running ruby application (database and cli), i want to limit the access the the cli server but also to be able to control the db server from it
<pepps> why not just use the regular ssh-command without ruby?
mulinux has joined #ruby
<horrror> because the most of the controlling possibilities are designed and built on ruby
MartinCleaver has quit [Quit: MartinCleaver]
<horrror> but i do have some shell commands i want to be able to run
khismetix has quit [Quit: Computer has gone to sleep.]
<horrror> so i was using eval ( i understand how risky it is) but i won't be able to see the output because its an external connection right??
sailias has joined #ruby
maxmanders has quit [Ping timeout: 256 seconds]
samphippen has joined #ruby
Coolhand|laptop has joined #ruby
yfeldblum has joined #ruby
<pepps> Rye should be of some help
jpfuentes2 has joined #ruby
mulinux has quit [Quit: mulinux]
drago757 has joined #ruby
jtharris has joined #ruby
mulinux has joined #ruby
maxmanders has joined #ruby
mulinux has quit [Client Quit]
segv- has quit [Remote host closed the connection]
mulinux has joined #ruby
mr-rich has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<horrror> looks nice, thx
jpcamara has joined #ruby
CreativeEmbassy has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
skattyadz has quit [Quit: skattyadz]
yshh has joined #ruby
otherj has quit []
<gregor3005> hi, i try to remove files vom an directory like "rm -rfv folder/*" therefore i use FileUtils.rm_rf("folder/*") but FileUtils did not delete the files, why?
interactionjaxsn has joined #ruby
asepior2345234 has joined #ruby
dustint has joined #ruby
hoelzro is now known as hoelzro|away
lewis has joined #ruby
<lewis> hi
<lewis> require_alternative does not work for some reasons
<tobiasvl> gregor3005: permissions maybe?
<Hanmac> gregor3005 you need to glob for yourself FileUtils.rm_rf Dir.glob('folder/*')
<tobiasvl> ah nevermind
tcstar has quit [Ping timeout: 246 seconds]
<gregor3005> Hanmac: thx
joofsh has joined #ruby
<Hanmac> lewis maybe its a stupid rails method? i never see require_alternate before
yshh has quit [Read error: Connection reset by peer]
lewis has quit [Remote host closed the connection]
yshh has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
girija has quit [Ping timeout: 264 seconds]
asepior2345234 has quit [Quit: Leaving]
bradhe has joined #ruby
fourq has joined #ruby
solidoodlesuppor has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
asepior2345234 has joined #ruby
<gregor3005> is it possible to test an zip file if it not corrupt with rubyzip? so my update method did not destroy the whole application when i upload an wrong zip file :-)
havenwood has quit [Remote host closed the connection]
dmwit has joined #ruby
pdamer has joined #ruby
justme1 has quit [Quit: Leaving.]
arthurstomp has joined #ruby
<dmwit> Real beginner's question here: how can I configure gem so that I don't have to pass --bindir every time I gem install something?
willob has joined #ruby
<dmwit> From my searches online, I've found that there's a ~/.gemrc file, but I'm having trouble finding documentation on the format.
hbpoison has joined #ruby
<dmwit> man gem, gem help, and the rubygems website have all been sort of a bust on this
bradhe has quit [Ping timeout: 248 seconds]
<dmwit> (None of them even mentioned the existence of .gemrc, let alone what format it uses. =P)
LBRapid has joined #ruby
jonahR has joined #ruby
ffranz has joined #ruby
devinus has joined #ruby
anonymuse has joined #ruby
<pepps> gregor3005: are you having problems with the zip-file being corrupt?
invisime has joined #ruby
marr has quit [Read error: Connection reset by peer]
<pepps> gregor3005: or do you mean "corrupt" as uploading and unrelated zip-file?
<gregor3005> pepps: not yet but i can happen anytime so i want to catch that case
jrajav has joined #ruby
<gregor3005> it*
clocKwize has quit [Quit: clocKwize]
whitedawg has quit [Quit: Leaving.]
<gregor3005> for test case i create a textfile and rename it to an zip file and try an update with that
<shevy> love thy brother
peb7268 has joined #ruby
iamjarvo has joined #ruby
fhd has joined #ruby
joshfng has joined #ruby
<peb7268> Hi all, when defining variables to be used in my tests with Rspec, why do I have to use let? Why can't I just say someVar = "A value" ?
<fhd> Can I somehow get the gemdir without calling `gem env gemdir`?
JohnBat26 has quit [Read error: Operation timed out]
<pepps> Anything can happen at any time, if it ain't broke, don't fix it
sayan has joined #ruby
filemon_CZ has quit [Remote host closed the connection]
Takehiro_ has quit [Read error: Connection reset by peer]
unix has quit [Quit: WeeChat 0.4.0]
sayan has quit [Read error: Connection reset by peer]
unix has joined #ruby
thomas` has joined #ruby
<shevy> pepps so true
<gregor3005> i the meantime i build an workaround that unzip the file nowhere and when i get no exception i install the update
<shevy> I try to keep my code as simple as possible
<shevy> but sometimes complexity creeps in :(
<pepps> gregor3005: But you can create an md5-file on the side for checking integrity
biff_tannen has joined #ruby
PragCypher has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
joshfng has quit [Client Quit]
Takehiro has joined #ruby
maxmande_ has joined #ruby
hbpoison has joined #ruby
<thomas`> hello. I'm trying to understand what's going on there: https://gist.github.com/pelletier/5013786 Could someone please give me a hint?
<gregor3005> pepps: i create anyway a sha256sum before i send the file but it is possible that on the server side the file is corrupt
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
maxmanders has quit [Ping timeout: 257 seconds]
<pepps> gregor3005: If the file gets corrupted on either of the filesystems or in transport, you have bigger problems
dameningenda has joined #ruby
<gregor3005> pepps: i test the file integrity with the object that is build for sending and receiving files, that should not be the problem
graeme has joined #ruby
<gregor3005> but for a stable running application all possible values should be tested and one value is that its possible that somebody sends a corrubt update file to the client
<gregor3005> corrupt*
horrror is now known as h0rr
elaptics is now known as elaptics`away
jlast has joined #ruby
pi3r has joined #ruby
a_a_g has quit [Quit: Leaving.]
gaahrdner has joined #ruby
<gyre007> anyone noticed that UNicorn 4.5.0 is ignoring USR2 signal ? mm annoying
jerius has joined #ruby
dmerrick has joined #ruby
joshfng has joined #ruby
elaptics`away is now known as elaptics
skattyadz has joined #ruby
<gregor3005> pepps: the next step is to sign the update file with public key and check the received file or build tls into the application
sonda has joined #ruby
senayar has joined #ruby
enebo has joined #ruby
newUser1234 has quit [Remote host closed the connection]
atyz has quit [Quit: Linkinus - http://linkinus.com]
twshelton has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
rippa has joined #ruby
<peb7268> Hi all. In the following code what does the double bang mean? !!ENV['HEADLESS']
<epitron> peb7268: that just converts it to a boolean
<peb7268> ah cool
<epitron> the first ! casts to a boolean, then gives you the inverse
<epitron> the second ! inverts it again
stopbit has joined #ruby
<epitron> :)
<peb7268> and I set that in bash by doing HEADLESS=TRUE?
<peb7268> ha
<pepps> gregor3005: One way to prevent corruption would be to have a simple script that always does the prepare and zip correctly
v0n has joined #ruby
<epitron> peb7268: yeah, that would work. HEADLESS=false wouldn't work though :)
<peb7268> thank you
* dmwit tangentially ponders the "environment variables in all-caps" convention
<peb7268> Setting up some Capybara stuff
<epitron> it has to be HEADLESS= because "false" is true in ruby
<gregor3005> pepps: but it is no fail to catch such a case and not to set as precondition that other methods will ever work correctly (test driven development)
fermion has quit [Read error: Connection reset by peer]
Choclo has quit [Ping timeout: 264 seconds]
Al__ has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
sayan has joined #ruby
zyrex has joined #ruby
<pepps> gregor3005: TDD doesn't mean that you should test everything possible
<pepps> gregor3005: you should test things that accutally has anything to do with the application itself
<gregor3005> pepps: but when i can test something i should test it
<pepps> gregor3005: you can test if the moon is gray, doesn't mean you should
<pepps> It can change color, if you hold an blue lens in front of the camera
<gregor3005> sry i have no time for that
<gregor3005> but thanks for your help
twshelton has joined #ruby
<pepps> Have fun with your project :)
fermion has joined #ruby
<gregor3005> thx
<peb7268> when defining variables to be used in my tests with Rspec, why do I have to use let? Why can't I just say someVar = "A value" ?
maasha has quit [Quit: Page closed]
pyrac_ has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
KevinSjoberg has joined #ruby
Kuifje has quit [Ping timeout: 246 seconds]
<fuzai> client.on :moderator_added do |user| # I've got a bunch of these client.on event that are exactly the same, is there any way to make a list of events and have only one code block?
<tobiasvl> peb7268: let uses memoization
<peb7268> and thats just caching right?
<tobiasvl> basically
<tobiasvl> or well. it is caching
<tobiasvl> it uses lazy evaluation too
marr has joined #ruby
adkron has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
willob has quit [Quit: Leaving.]
<fuzai> nm i figured it out
dablack has joined #ruby
<dablack> wow, more people here than on #ruby-lang
<dablack> that didn't use to be the case
axl_ has joined #ruby
nricciar has quit [Read error: Connection reset by peer]
elux has joined #ruby
_nitti has joined #ruby
<fuzai> were all closet case rock hounds too
jpcamara has quit [Quit: jpcamara]
<fuzai> this room serves both our needs :
<fuzai> :p
<peb7268> Thank you
nricciar has joined #ruby
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
<shevy> dablack they mandate of you to be registered in order to speak on #ruby-lang
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
<shevy> since I am too lazy to do that, those bastards in effect banned me to #ruby
<dablack> shevy: ah, no wonder
<fuzai> i didn't even know ruby-lang existed
<shevy> also there are some guys here who are banned from #ruby-lang ;)
* dablack is the registrant of #ruby-lang, but didn't know about this :-)
<dablack> my 'dblack' nick got released and taken by someone else
<dablack> i'm in irc limbo
bean__ has joined #ruby
<fuzai> yea i did something similar
<fuzai> i forgot my password
<shevy> RubyPanther here was ban-slaughtered for instance by egospider
<fuzai> but i really think someone just changed it on me
<pi3r> Hi there, I'm wondering something, when I do `p = lambda{}; p("foo")`
<shevy> haha I also forgot my password... but I am way too lazy to retrieve it (the old email address I no longer have either)
<pi3r> what the call generated by p(), because it's not the same as p.call
newUser1234 has joined #ruby
mafolz has quit [Quit: mafolz]
kpshek has joined #ruby
<shevy> pi3r p() is a specific call to a method called p
Al__ has quit [Quit: Al__]
<shevy> p[] should be synonymous to p.call()
twshelton has quit [Quit: Computer has gone to sleep.]
<pi3r> shevy: but here p() is my lambda right ?
tish has joined #ruby
<shevy> no, I dont think so, it looks like a normal method call to a method called p to me
mulinux has quit [Quit: mulinux]
<shevy> hmmm
<dablack> pi3r: you can do p.()
<pi3r> dablack: yeah I know
<pi3r> I'm just wondering
<pi3r> what the hell is doing p() in this case
<peb7268> Hey gents, it's my understanding that if I use page.should have_content('blah') then if it isn't present in the dom yet the test will fail, but if I use page.find capybara will wait until the element is visible to try the test, for a default time period. Is this a correct understanding?
<fuzai> yea so i made a parody of my old one
<slainer68> pi3r: hé hoo !
<shevy> pi3r yeah now I am confused myself
<dablack> pi3r: it's calling the method #p
<shevy> oh right
<shevy> Kernel#p probably
<tobiasvl> Kernel::pyes
<tobiasvl> oop
hiroyuki has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
<thomas`> pi3r and I are trying to understand what happens there: https://gist.github.com/pelletier/5013786
Progster has joined #ruby
wallerdev has joined #ruby
<zyrex> anyone here using ruboto?
Spooner has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
<pi3r> sheerun_: tobiasvl dablack, I feel so stupid... thanks guys :D
tish has quit [Quit: Leaving.]
adkron has joined #ruby
philcrissman has joined #ruby
graeme has quit [Quit: graeme]
pavilionXP has joined #ruby
CreativeEmbassy has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
juarlex has joined #ruby
tish has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
bradhe has joined #ruby
bradleyprice has joined #ruby
tcstar has joined #ruby
tish has quit [Client Quit]
braoru has quit [Remote host closed the connection]
maletor has joined #ruby
<drago757> anyone know why on cents 6 when I run ruby with the require statement it never finds any gems
maletor has quit [Max SendQ exceeded]
maletor has joined #ruby
<Progster> I've been coding against the USPS address verification web service, only to find out a few days before launch that their web service is only allowed for packages shipped out by USPS. This seems obvious, but is not delineated ANYWHERE on their website, and after calling them to complain about it, their response is, "Well yeah, if we told customers the valid uses of our API, then they'd just lie
<Progster> to us." Wow. In any case, I need an address verification service, and fast. Can anyone here recommend something please?
the_mentat has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
justme1 has joined #ruby
tcstar has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Remote host closed the connection]
codecop has joined #ruby
newUser1234 has quit [Remote host closed the connection]
SCommette has joined #ruby
Al__ has joined #ruby
tcstar has joined #ruby
<zyrex> drago757: check your $PATH?
binaryplease has joined #ruby
<drago757> what should be there zyrex
<fschuindt> !lolroku
newUser1234 has joined #ruby
failshell has joined #ruby
<bean> Progster, address verification is a "hard problem"
<bean> Progster, http://smartystreets.com/ might do the trick though
<zyrex> drago757: you install ruby manually or with rvm?
arya has joined #ruby
DaltonUS has joined #ruby
tagrudev has quit [Remote host closed the connection]
Jackneill has joined #ruby
<drago757> i install via yum
<bean> god i hate centos.
<bean> not helpin on that one
<bean> if you were on ubuntu I could heh
adamdecaf has joined #ruby
khismetix has joined #ruby
gregor3005 has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
<bean> oh hai adamdecaf
schaerli has joined #ruby
gregor3005 has joined #ruby
pi3r has left #ruby ["Leaving"]
himsin has joined #ruby
Gestahlt has quit [Ping timeout: 245 seconds]
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
<adamdecaf> hey bean!
adkron has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Al__ has quit [Quit: Al__]
jlwestsr has joined #ruby
adkron has joined #ruby
yekta has joined #ruby
Gestahlt has joined #ruby
NemesisD has joined #ruby
justme1 has quit [Read error: No route to host]
khismetix has quit [Quit: Computer has gone to sleep.]
IrishGringo_ has joined #ruby
`p has quit [Quit: Leaving]
justme1 has joined #ruby
sie is now known as `s
<zyrex> drago757: do you never hear about rvm before?
maxmande_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
<drago757> i think i know what i did wrong
<drago757> one sec
sepp2k has joined #ruby
maxmanders has joined #ruby
chussenot has quit [Quit: chussenot]
<drago757> so dumb
<drago757> didn't do require rubygmes
engel_ has joined #ruby
postmodern has quit [Quit: Leaving]
w400z has joined #ruby
Gestahlt has quit [Quit: ChatZilla 0.9.90 [Firefox 18.0.2/20130201065344]]
Banistergalaxy has joined #ruby
skaflem has joined #ruby
__BigO__ has joined #ruby
gregor3005 has quit [Read error: Connection reset by peer]
d2dchat has joined #ruby
devinus has quit [Quit: devintorr.es]
casheew has quit [Ping timeout: 252 seconds]
nmeum has quit [Ping timeout: 252 seconds]
devinus has joined #ruby
ferdev has joined #ruby
NemesisD has quit [Ping timeout: 276 seconds]
<fuzai> if i pull a ruby module with git, I just have to change into the main directory and type gem install 'module name' and it will grab the local one i just pulled with git right?
gregor3005 has joined #ruby
Monie has joined #ruby
dgaffney has joined #ruby
<dgaffney> Hello!
<fuzai> hello
beiter has quit [Quit: beiter]
<dgaffney> I like ruby
Qwak has joined #ruby
<dgaffney> and computers
<dgaffney> and fun
<dgaffney> FUN
banisterfiend has joined #ruby
arthurstomp has quit [Quit: Computer has gone to sleep.]
<fuzai> haha
<fuzai> where ya from dgaffney ?
<dgaffney> brazil
<fuzai> Nice
hashmal has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
browndawg has quit [Read error: Operation timed out]
willob has joined #ruby
CraHan is now known as CraHan|out
jerikl has joined #ruby
jpfuentes2 has quit [Ping timeout: 276 seconds]
dgaffney has quit [Quit: dgaffney]
jpfuentes2 has joined #ruby
Qwak has quit [Ping timeout: 244 seconds]
r4do has quit []
jetblack has quit [Read error: Operation timed out]
justme1 has quit [Quit: Leaving.]
IrishGringo_ has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
Al__ has joined #ruby
main has quit [Ping timeout: 255 seconds]
IrishGringo has joined #ruby
a_a_g has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
techhelp has joined #ruby
x0F_ is now known as x0F
joshman_ has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
apeiros_ has joined #ruby
backjlack has joined #ruby
DaltonUS has joined #ruby
peb7268 has quit [Quit: peb7268]
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
Al__ has quit [Quit: Al__]
schaerli has quit [Remote host closed the connection]
lethjakman has joined #ruby
jerikl has quit [Quit: jerikl]
mlr has quit [Ping timeout: 256 seconds]
lethjakman has quit [Client Quit]
Neomex has joined #ruby
Neomex has quit [Client Quit]
razibog has quit [Read error: Operation timed out]
fumbe has joined #ruby
maxmanders has quit [Ping timeout: 264 seconds]
arthurstomp has joined #ruby
chussenot has joined #ruby
octoberry has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
jpcamara has joined #ruby
browndawg has joined #ruby
etcetera has joined #ruby
maxmanders has joined #ruby
eldariof has quit [Ping timeout: 264 seconds]
asterite has joined #ruby
mahmoudimus has joined #ruby
mlr has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
pepps has quit [Ping timeout: 260 seconds]
gatopan has joined #ruby
casheew has joined #ruby
gosshedd has quit [Ping timeout: 276 seconds]
Bry8Star has joined #ruby
peteyg has quit [Ping timeout: 246 seconds]
etcetera has quit []
kofno has quit [Remote host closed the connection]
velCzupa has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
spaceships has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
Banistergalaxy has quit [Ping timeout: 252 seconds]
binaryplease has quit [Quit: WeeChat 0.4.0]
main has joined #ruby
banisterfiend has quit [Remote host closed the connection]
chrishough has joined #ruby
j^2 has joined #ruby
PragCypher has joined #ruby
Banistergalaxy has joined #ruby
maxmanders has quit [Ping timeout: 255 seconds]
forrest has joined #ruby
luckyruby has joined #ruby
tenmilestereo has joined #ruby
CraHan|out is now known as CraHan
arturaz has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Remote host closed the connection]
<fourq> "Tyler
<fourq> OHHHHHH
<fourq> HI PEOPLE
<fourq> ok
puppeh has quit [Remote host closed the connection]
<fourq> SMOOCHIES
casheew has quit [Read error: Connection reset by peer]
<fourq> "
j^2 has quit [Client Quit]
<fourq> shit, sorry, wrong ch
maxmanders has joined #ruby
<yebyen> no smoochies for the rubies?
<yebyen> :(
<fourq> guess not
pasties has quit [Quit: Gone]
<fourq> that was quoted text btw...lol
<shevy> lol
<shevy> what are you doing fourq
jiveturkey has quit [Quit: leaving]
<fourq> I was pasting a msg to the #salesforce channel and irssi "made" me do it
fabrice31 has quit [Read error: Connection reset by peer]
pasties has joined #ruby
freeayu has quit [Remote host closed the connection]
<fourq> havenwood: private gist?
<havenwood> fourq: public gist
<fourq> There was an authentication error. Please try again.
<havenwood> ooooh, odd
<shevy> hah
<havenwood> githubs, tsk tsk
<shevy> this is why I cant use irssi, I always mispaste
j^2 has joined #ruby
<fourq> havenwood: was is dotconf?
Elhu has quit [Quit: Computer has gone to sleep.]
zoonfafer has quit [Ping timeout: 264 seconds]
aganov has quit [Quit: aganov]
<havenwood> fourq: Just a little script to fill your screen with 'SMOOCHIES' using curses.
<fourq> ha, thanks
<fourq> havenwood++
pyrac has quit [Read error: Connection reset by peer]
<havenwood> I should have it stop and tell you how long it took when it fills the last whitespace. :O
pyrac has joined #ruby
casheew has joined #ruby
<Hanmac> shevy: google-store: http://tapastic.com/episode/1976
razibog has joined #ruby
segv- has joined #ruby
banisterfiend has joined #ruby
yekta has quit [Quit: yekta]
banisterfiend has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
carloslopes has quit [Remote host closed the connection]
kofno has joined #ruby
endzyme has joined #ruby
Elhu has joined #ruby
Kuifje has joined #ruby
chussenot__ has joined #ruby
diimdeep has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
Umren has joined #ruby
Mon_Ouie has joined #ruby
danneu has joined #ruby
endzyme_ has joined #ruby
`s has quit [Quit: WeeChat 0.3.9.2]
mikepack has joined #ruby
endzyme has quit [Ping timeout: 244 seconds]
dustint_ has joined #ruby
vlad_starkov has joined #ruby
dustint has quit [Read error: Operation timed out]
<diimdeep> anyone know if it's possible to rub ruby scripts from .bashrc, i'm trying to configure my console environment using Ruby scripts..
<segv-> just put "ruby ~/.bash.rb | bash" in your .bashrc
<segv-> and have your script output bash code to setup the env
<h0rr> is there a different between string.include? and string =~ string
thams has joined #ruby
pepps has joined #ruby
<diimdeep> segv-: can you provide more info on last line
<diimdeep> please
<segv-> diimdeep: there's not much else to say. you want to run ruby code in your .bashrc? just call a ruby script.
<diimdeep> i call it: $DOTFILES/etc/bash/formulas_loader.rb | bash
<shevy> h0rr =~ is slower
<dablack> h0rr: #include? looks for a substring, while =~ matches against a regular expression
<diimdeep> #!/usr/bin/env rubyw
<diimdeep> formulas = Dir.glob(File.dirname(__FILE__) + '/formulas/**{.rb}')
<diimdeep> formulas.each do |formula|
<diimdeep> `ruby #{formula}`
<diimdeep> end
<segv-> hm, piping the output to bash won't work (we're still in a child)
<segv-> i think eval `ruby script` might work
dablack has quit [Quit: dablack]
chussenot__ has quit [Quit: chussenot__]
<segv-> assuming ruby script outputs bash code
zigomir has quit [Quit: zigomir]
<diimdeep> segv-: inside files in folder i have something like this eval `export PATH="$(brew --prefix)/bin:$PATH"`
<diimdeep> but it not work
a_a_g has quit [Ping timeout: 252 seconds]
<bean> just run "ruby $DOTFILES/etc/bash/formulas_loader.rb" in the bottom of your bashrc...
blaxter has joined #ruby
<segv-> bean: that can't change the parent's env
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<bean> hm ok
<segv-> you'll have to output bash code and eval it (or something to that effect) if you want to change the shell's env
<Hanmac> ping apeiros_
Qwak has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
skum has joined #ruby
<segv-> diimdeep: if your ruby script has just 'puts "export FOO=4"'
devinus has left #ruby ["devintorr.es"]
<segv-> and you run, in your bash shell, eval `ruby my-script.rb`
apeiros_ has joined #ruby
<segv-> then, after the execution and the script has terminatied, you should echo $FOO => 4
generalissimo has joined #ruby
wyhaines has joined #ruby
neurone-1337 has quit [Ping timeout: 252 seconds]
Vainoharhainen has quit [Ping timeout: 252 seconds]
neurone-1337 has joined #ruby
ozgura has quit [Remote host closed the connection]
rcrossan has joined #ruby
rcrossan is now known as dark_hudson
CraHan is now known as CraHan|out
<dark_hudson> hi I'm practicing slice method and have a function written, but something is not working. Would be grateful if anyone has a quick moment to look over and offer suggestions. https://gist.github.com/anonymous/43a290a1334bdb4d5c50
filipe has quit [Read error: Connection reset by peer]
withnale has joined #ruby
withnale has quit [Remote host closed the connection]
<bean> dark_hudson, im not even sure what you're trying to do, pf = 2, and then you're trying to call a function called pf?
havenwood has quit [Remote host closed the connection]
withnale has joined #ruby
<bean> mby if you say what you're trying to accomplish it will be easier to decipher
arturaz has joined #ruby
luckyruby has quit [Remote host closed the connection]
DaltonUS has quit [Read error: Connection reset by peer]
DaltonUS has joined #ruby
davidw has joined #ruby
DaltonUS has quit [Client Quit]
apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p392: http://ruby-lang.org (ruby-2.0.0-rc2) || Paste >3 lines of text on http://gist.github.com
withnale has quit [Client Quit]
<davidw> hi - anyone use aws-sdk? I'm looking for information about ...failure. Like how things work if the network goes down, if aws is down...stuff like that
neurone-1337 has quit [Ping timeout: 252 seconds]
luckyruby has joined #ruby
Qwakeree has joined #ruby
miso1337 has quit [Quit: afk]
Qwak has quit [Ping timeout: 252 seconds]
<JonnieCache> ooh
<JonnieCache> whats new?
<JonnieCache> oh just that patched json
<apeiros_> no idea, check the changelog :)
<JonnieCache> and rexml
<apeiros_> rexml… who uses that? it's slow as molasses… but well, one pro of it is that it's pure-ruby
<JonnieCache> yeah well it had a DoS vuln apparently
<JonnieCache> and now it doesnt
mockra has joined #ruby
<bean> dark_hudson, did you figure it out?
newUser1234 has quit [Remote host closed the connection]
carloslopes has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
maletor has joined #ruby
<dark_hudson> I just finished re-writting it and got it down to one error. I included the error msg in the link and the re-write https://gist.github.com/anonymous/feaae759d0b0cfd65587
bradhe has joined #ruby
end_guy has quit [Remote host closed the connection]
<bean> dark_hudson, you have an extra ) on your slice func
binaryplease has joined #ruby
codespectator has joined #ruby
withnale has joined #ruby
markprovan has quit [Ping timeout: 252 seconds]
<withnale> Is it possible to use named parameters in regexps when you are using =~ in an if block?
arthurstomp has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Hanmac> withnale yeah and with an regex literal its more cool
<withnale> i.e. if (a =~ /(?<var1>\w+)=(?<var2>\w+)/) { .... }
<withnale> it accepts the syntax but I can't work out how I can get to the values
<Hanmac> withnale you need otherway around ... // =~ a
havenwood has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
<dark_hudson> I'm seeing ((( and ))) total on that line. Where is the extra?
<withnale> that's going to confuse my old perl-remembering brain. ta
dallasm has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
diimdeep has quit [Remote host closed the connection]
<jblack> Hi, so I'm having trouble with one of my llong running scripts getting hosed up with "too many open files". I looked in /proc, and I see that I have 1017 closed sockets associated with that process
anonymuse has quit [Quit: Leaving...]
<jblack> I'm using sinatra, mechanize, a few other things. how can I figure out what's not closing sockets?
etcetera has joined #ruby
<havenwood> jblack: Can you paste a Gist of the code?
pyrac has quit [Ping timeout: 244 seconds]
berserkr has joined #ruby
Mattix has quit [Read error: Connection reset by peer]
<Hanmac> withnale, yeah it confuses me too ... but it can only work when the regex literal cames first ... its part of the parser
chussenot has joined #ruby
<jblack> It's not pastable. it's very large and spread out across dozens of files.
Mattix has joined #ruby
carloslopes has quit [Ping timeout: 256 seconds]
<havenwood> jblack: Open source or closed? Hard to diagnose this one without looking.
<jblack> It's proprietary too. My hope for this conversation is someone will say "Oh, you can just attach "somedebugger" and it has the "xxx" command that will show which objects have what sockets"
willob has quit [Quit: Leaving.]
<havenwood> jblack: ahh
kofno has quit [Remote host closed the connection]
thams has quit [Quit: thams]
<havenwood> jblack: You could try Pry with binding.pry to try to tell from the open sockets I suppose? Hrm.
Choobie has quit [Ping timeout: 260 seconds]
engel_ has quit [Quit: Leaving]
end_guy has joined #ruby
<dark_hudson> @bean - thank you. you got me in proper direction. No more errors.
<jblack> I'm not sure what owns the sockets. I have a lot going on there.. sinatra, a logger, mechanize, probably other stuff.
thams has joined #ruby
joofsh has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
artOfWar has joined #ruby
<bean> np dark_hudson
dallasm has quit [Remote host closed the connection]
<bean> could always just bump your nofiles allowed way up
<bean> heh
<withnale> is there a release date for ruby2 yet? or just 'when it's done'? I saw them say rc2 was the final rc so it must be soon
<jblack> if it were C, I could just attach with gdb and go from there. I'm not sure what the ruby equivilant is
<bean> pry
<bean> its a gem
<JonnieCache> jblack: pry
zyrex has quit [Quit: ChatZilla 0.9.90 [Firefox 18.0/20130107224926]]
sn0wb1rd has joined #ruby
* jblack reads
<banister_> withnale: in about 2-3 days i think
timonv has quit [Remote host closed the connection]
<havenwood> withnale: yeah, slated for Feb 24
<havenwood> withnale: Ruby 2.0 and RubyGems 2.0
buibex has joined #ruby
<havenwood> jblack: Pry!
billiam has joined #ruby
<withnale> didn't realise gems were changing - big changes?
<jblack> I'm reading up on Pry. =)
<withnale> jblack: me too. fun fun fun
otters has quit [Quit: WeeChat 0.4.0]
bluenemo has quit [Remote host closed the connection]
<apeiros_> jblack: pry and irb_drop
buibex has quit [Remote host closed the connection]
otters has joined #ruby
<apeiros_> the latter if you want to keep using the inferior irb (pry++)
<jrajav> irb, more like dirb
<jrajav> amirite
johnmichael has joined #ruby
<havenwood> withnale: Yeah, some good changes. You can actually go ahead and install RubyGems 2.0.0 on 1.9.3, report any bugs! :)
<apeiros_> ah, hijack lets you do that via gdb
<apeiros_> *that* of course is nice
<jblack> I've never been much of a fan of irb. I just use irb as a quick "does xxx do yyy"
<havenwood> RubyGems 2.0.0-rc2.1**
ferdev has quit [Quit: Leaving...]
<havenwood> jblack: alias irb="pry"
<h0rr> how to write ruby commands in one line? besides the semicolons option?
<johnmichael> Hello. I'm coming to Ruby from other languages like Haskell, Scala, Java, C. My book (well grounded rubyist) says that some objects are stored as immediate values, such as fixnum, true, false, nil. I can't get my head around what he means. Surely true and false are just normal objects, and you pass them around as references. How are they immediate values? With fixnums, isn't it the case that each fixnum value is like its own instance
<jblack> I'm still trying to figure out how to get pry to attach to this already running process I have.
joeycarmello has joined #ruby
<banister_> johnmichael: it's an implementation detail
<apeiros_> johnmichael: you can consider "immediate" as implementation detail
<banister_> johnmichael: he probably shouldn't have even told you that
<apeiros_> it's an optimization
<havenwood> jblack: binding.pry
<jblack> but I get you, Pry is the bees knees, and I will live a happy life if I use it wheneve rpossible. =)
<johnmichael> banister_: yeah, i know how the implementation works, and that's what i thought it was, so it doesn't leak into the semantics of the language at all? apart from no metaclass for fixnums?
<havenwood> jblack: you put a 'require "pry"' in the file then a `binding.pry` where you want to break out.
unix has quit [Quit: WeeChat 0.4.0]
<banister_> johnmichael: right, taht's about it
<workmad3> joeycarmello: it's an implementation detail that has some edge-case ramifications... all it basically means is that all the information about the object is stored in the reference rather than in a separate heap-allocated object
<havenwood> true.class; #=> TrueClass; false.class; #=> FalseClass
<banister_> workmad3: the only edge-case is that they dont have metaclasses though, right?
cantonic_ has joined #ruby
alvaro_o has joined #ruby
<johnmichael> banister_: he says he mentions it to explain why no ++ operator in Ruby, but I think that's bull because you can still desugar x++ to x += 1 for exactly the same semantics
<workmad3> banister_: you also can't define methods on them that mutate the object data
ExxKA has quit [Ping timeout: 256 seconds]
peteyg has joined #ruby
mahmoudimus has joined #ruby
<johnmichael> actually, that's not quite the same semantics, but you could do it like that if you wanted
xemu has joined #ruby
<banister_> johnmichael: yeah i don't buy that explanation either
<banister_> johnmichael: x++ has nothing to do with x being an immediate value
<banister_> i mean the inability to do x++
<workmad3> banister_: e.g. you can't create a method 'a.succ!' that would mutate 'a = 1' to a new 'a = 2'
<JonnieCache> >> puts 1.object_id == 1.object_id
<eval-in> JonnieCache: Output: "true\n" (http://eval.in/10941)
<apeiros_> x++ and x+=1 have different semantics
<JonnieCache> >> puts "foo".object_id == "foo".object_id
<eval-in> JonnieCache: Output: "false\n" (http://eval.in/10942)
<JonnieCache> thats the difference ultimately
<apeiros_> at least C's x++
nmeum has joined #ruby
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
<johnmichael> banister_: but the grammar could just define ++ to mean += 1
twoism has joined #ruby
<workmad3> joeycarmello: x += 1 would actually be '++x'
<JonnieCache> johnmichael: rubys grammar is already overcomplex
<banister_> workmad3: sure, but it's hard to understand what that would mean in the context of Fixnums etc. For example floats aren't immediate values, yet you also can't define such methods
hbpoison has joined #ruby
<apeiros_> johnmichael: and what does "hello"++ do?
<johnmichael> it does "hello" += 1 and gives you an error
<apeiros_> or rather, x = "hello"; x++ (since you can't assign to a literal)
newUser1234 has joined #ruby
<jblack> yeah, looks like for this particular thing, hijack is better than pry.
<johnmichael> just say no literal on lhs
<apeiros_> johnmichael: so you're implementing a method for a single edge case
<jblack> pry doesn't attach to already running processes
<apeiros_> sounds bad to me
<apeiros_> also, +=1 vs. ++ is 1 char diff
<apeiros_> TEH HORROR! :-p
<workmad3> banister_: true
<workmad3> banister_: hadn't considered floats tbh
<banister_> jblack: hijack is just a wrapper around gdb
<johnmichael> this isn't a bad book by the way apart from that, manages to go from relative basics most of the way through the language
markalanevans has joined #ruby
mrmist has quit [Quit: restarting]
<jblack> hijack's whole point is to attach to already running processes and provide an irb. from there, I can run pry. =)
<workmad3> johnmichael: you'd probably get more (and more correct) detail on the subject from 'Ruby under a microscope' btw
imami|afk is now known as banseljaj
<workmad3> which is a point... I really should get my hands on that and read it at some point :)
m8 has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
philcrissman has quit [Remote host closed the connection]
<h0rr> how to write multiple ruby commands in one line through bash? without using semicolons
<johnmichael> workmad3: i find the ruby source pretty readable, quite pleasent
dark_hudson has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
<workmad3> johnmichael: yeah, the few times I've delved into it, I've not had a problem navigating :)
tylersmith has joined #ruby
tatsuya_o has quit [Ping timeout: 248 seconds]
<workmad3> johnmichael: but I'm not particularly familiar with parsers or virtual machines from an implementation perspective so I don't have a brilliant understanding of the overall design (I have a rough map, just not a lot of fine detail)
adeponte has joined #ruby
gosshedd has joined #ruby
xardas has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
johnmichael has quit [Quit: Page closed]
jerikl has joined #ruby
testingb0t has quit [Quit: Leaving.]
alvaro_o has joined #ruby
cousine has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
philcrissman has joined #ruby
dr_bob has left #ruby [#ruby]
RonScagz has joined #ruby
codespectator has quit [Quit: Computer has gone to sleep.]
<h0rr> how can I add stuff to an existing method? would "def method super mystuff_here end "- will do?
wmoxam has quit [Ping timeout: 264 seconds]
cascalheira has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
cousine has quit [Remote host closed the connection]
thinkclay has joined #ruby
mrmist has joined #ruby
davidw has quit [Ping timeout: 252 seconds]
KL-7 has joined #ruby
adamdecaf has quit [Ping timeout: 264 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
Qwakeree has quit [Ping timeout: 248 seconds]
the_mentat has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby
codespectator has joined #ruby
<bean> h0rr, yeah, that should do it I'd think
aldodelgado has joined #ruby
the_mentat has joined #ruby
SqREL has quit [Ping timeout: 276 seconds]
jerikl has quit [Quit: jerikl]
bradhe has joined #ruby
gatopan has quit [Ping timeout: 245 seconds]
KL-7 has quit [Client Quit]
newUser1234 has quit [Ping timeout: 264 seconds]
newUser1234 has joined #ruby
mlr has quit [Ping timeout: 252 seconds]
asterite has quit [Quit: Leaving.]
Voodoofish430 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
w400z has quit []
blaxter has quit [Quit: foo]
axl_ has quit [Quit: axl_]
banister_ has quit [Remote host closed the connection]
nmeum has quit [Read error: Operation timed out]
alvaro_o has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection timed out]
alvaro_o has joined #ruby
rupee has joined #ruby
skum has quit [Quit: Leaving...]
alvaro_o has quit [Read error: Connection reset by peer]
sn0wb1rd has quit [Quit: sn0wb1rd]
monkegjinni has joined #ruby
<Spooner> h0rr, That will do it if the method exists on a superclass, but not if you are monkey-patching.
<h0rr> Spooner: if i want to add a method to an existing "show" method inside of rails. would it be enough?
<h0rr> also, how can i validate that the method does exist?
<Spooner> #respond_to? :show
edelpero has joined #ruby
<h0rr> Spooner: no, but it's a sub-method of show
<Spooner> What is a sub-method?
kevinfagan has quit [Quit: Leaving...]
banisterfiend has joined #ruby
tommyvyo has joined #ruby
<h0rr> a function inside a method
<bean> apeiros_, lol, he doesn't even know what he's talking about!
<bean> apeiros_, especially since he called it "hdsf"... it's HDFS
<apeiros_> bean: um, that's not really the point…
<bean> its a java app.
slainer68 has quit [Remote host closed the connection]
<bean> what does he expect
<bean> heh
<apeiros_> that it works?
<bean> well, just typing "hadoop" gives the output of the commands
<bean> that can be run
<bean> so
<apeiros_> that makes it's advice to run `hadoop -help` still wrong and leaves the actual running of `hadoop -help` still crashing…
chussenot has quit [Quit: chussenot]
gatopan has joined #ruby
SMan23 has joined #ruby
<bean> it just suggests that for whatever you type
gaahrdner has quit [Ping timeout: 264 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
<aedornm> hmm, anyone use RethinkDB?
<bean> hadoop -fkasdjad
casheew has joined #ruby
<bean> Error: No command found "-fkasdjad" was found. perhaps you means hadoop hkasdjad
<bean> meant*
<apeiros_> bean: great, so it's even more broken :-p
<bean> apeiros_, the bash script just checks to see if the first arg is in its list
<apeiros_> bean: great. still. broken.
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<bean> *shrug* its open source, you could try to fix it.
<apeiros_> I don't need the explanation of why or how it does what it does. it's broken.
<apeiros_> I don't use hadoop, so no, I've no intention to.
<markalanevans> havenwood: I figured it out yesterday
Monie has quit [Quit: Quit]
<apeiros_> havenwood: ah, you're back - thx @ release info
<markalanevans> I actually had to install google sparsehash. I though the gem did that. Sadly it doesn't say that on the gem.
pavilionXP has joined #ruby
velCzupa has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: Ex-Chat]
<markalanevans> anyhow on a mac brew install google-sparsehash and on ubuntu apt-get install sparseshash
<markalanevans> Just an FYI
<shevy> yippie ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.bz2
<havenwood> markalanevans: ooooh, we should do a pull request on the README.md!
<markalanevans> Yea. Thats probably a good idea
chussenot has joined #ruby
marr has quit []
nmeum has joined #ruby
Voodoofish430 is now known as voodoofish430
workmad3 has quit [Ping timeout: 260 seconds]
mlr has joined #ruby
wmoxam has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
willob has joined #ruby
yacks has quit [Quit: Leaving]
ferdev has joined #ruby
someGuy5463 has joined #ruby
Xeago has quit [Remote host closed the connection]
<someGuy5463> hi everybody, i have a problem, i have more than one version of ruby installed, i want to remove the old ones. How can i do it?
<bean> someGuy5463, what OS
<someGuy5463> ubuntu 12.10
<someGuy5463> bean: ubuntu 12.10
<bean> and how did you install the other versions?
<someGuy5463> i don't really remember
marr has joined #ruby
dallasm has joined #ruby
angusiguess has joined #ruby
<someGuy5463> bean: maybe using the apt-get
<someGuy5463> bean: sudo apt-get install ruby1.9.1
aldodelgado has quit [Quit: aldodelgado]
<bean> someGuy5463, okay, so apt-get remove ruby{whateverversion}
<bean> not hard
<someGuy5463> ok, let me try
m3pow has joined #ruby
yekta has joined #ruby
<someGuy5463> the command removed all the version
Guest86617 has quit [Changing host]
Guest86617 has joined #ruby
Guest86617 has joined #ruby
wmoxam has quit [Ping timeout: 260 seconds]
Guest86617 is now known as Boohbah
<someGuy5463> bean: well, ill reinstall again, thanx for the help!!
sn0wb1rd has joined #ruby
brianpWins has joined #ruby
<bean> yeah, try package ruby1.9.3
<bean> i think is what its called
adeponte has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 256 seconds]
jpcamara has quit [Quit: jpcamara]
goganchic has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
zzing has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.0]
vabenjamin has joined #ruby
<apeiros_> (asked this in #ruby-lang too) I gemified Sorting - I'd be glad for feedback on it: https://github.com/apeiros/sorting
<markalanevans> havenwood: i updated the bitbucket code: https://bitbucket.org/winebarrel/sparsehash-ruby/wiki/Home
<markalanevans> How do I make a change to what is see on the rubygems.org site?
pskosinski has quit [Ping timeout: 260 seconds]
wmoxam has joined #ruby
havenwood has quit [Remote host closed the connection]
tethra has joined #ruby
<vabenjamin> markalaneveans you have to re-push your gem
<markalanevans> Its not mine... Sadly.
<vabenjamin> http://guides.rubygems.org/make-your-own-gem/ have you seen this guide?
<vabenjamin> oh
<vabenjamin> do you need an older version of a gem
banjara has joined #ruby
pyrac has joined #ruby
vlad_starkov has joined #ruby
robert_ has joined #ruby
<Hanmac> apeiros_ it has more javascript than ruby :D
adeponte has joined #ruby
Es0teric has joined #ruby
<apeiros_> Hanmac: yard
<Hanmac> you mean the files in doc are autogenerated?? then they should not be commited
* Hanmac wonders what the http://en.wikipedia.org/wiki/Bus_factor of ruby is
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
MartinCleaver has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
uris has quit [Ping timeout: 244 seconds]
banjara has quit [Client Quit]
danneu has quit [Quit: WeeChat 0.3.8]
<apeiros_> Hanmac: I disagree
<apeiros_> you may or may not be able to generate the docs of an arbitrary long in the past commit
<apeiros_> I usually update the docs prior to release and commit that then, so the docs historized too and changes to the generator won't matter.
h0rr has quit [Quit: h0rr]
_nitti has quit [Ping timeout: 245 seconds]
bradhe has quit [Remote host closed the connection]
Retistic has joined #ruby
Yakko has joined #ruby
cantonic_ has joined #ruby
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
_nitti has joined #ruby
yekta has quit [Quit: yekta]
<Yakko> hey guys, I've been kinda too much on the rails side, how do you change the stdout on a ruby script?
jtharris has quit [Quit: WeeChat 0.4.0]
<banisterfiend> Yakko: not telling, you need to be punished for being one of those awful "rails only" rubyists who give ruby a bad name
<banisterfiend> hand your head in shame
<banisterfiend> hang*
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
andikr has quit [Quit: No Ping reply in 180 seconds.]
krandi has joined #ruby
<apeiros_> Yakko: $stdin = some_io
mercwithamouth has joined #ruby
<banisterfiend> :P
<Yakko> apeiros_: just the file name?
<apeiros_> err, $stdout, of course
<apeiros_> no, an *IO*
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<apeiros_> not a filename
<Yakko> File.open
goganchic has left #ruby ["Leaving"]
sayan has joined #ruby
pskosinski has joined #ruby
<apeiros_> f.ex., yes
anothervenue has joined #ruby
<Yakko> apeiros_: $stdout.class
<Yakko> now it makes sense =)
bradhe has joined #ruby
Takehiro has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 256 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
cantonic has joined #ruby
hbpoison has joined #ruby
mattbl has joined #ruby
stevebbd has joined #ruby
anotherv1 has quit [Ping timeout: 276 seconds]
gatopan has quit [Ping timeout: 245 seconds]
cascalheira has quit [Read error: Connection reset by peer]
<stevebbd> hi! can anyone take the time to explain, or point me in the direction of docs that explain, what the top level scope of a ruby script is. so when i write statements not in a class, method or module, i understand that i'm in some kind of unnamed main object, and probably in some implicit method as well
cascalheira has joined #ruby
roadt has joined #ruby
chrisja has joined #ruby
sn0wb1rd_ has joined #ruby
<apeiros_> stevebbd: the toplevel scope is an instance of Object
pskosinski has quit [Quit: Red Eclipse, game of racist admins/devs: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
skaflem has left #ruby ["Leaving"]
vlad_starkov has quit [Read error: Connection timed out]
<apeiros_> it is a bit special in some regards, can't recount them from the top of my head right now
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<stevebbd> cheers, i guess i'll just experiment
<apeiros_> include e.g. will include modules into Object
casheew has quit [Read error: Connection reset by peer]
<apeiros_> oh, and it *has* include (normally only modules and classes have)
zigomir has joined #ruby
casheew has joined #ruby
zigomir has quit [Client Quit]
sn0wb1rd has quit [Ping timeout: 264 seconds]
sn0wb1rd_ is now known as sn0wb1rd
thillux has joined #ruby
<banisterfiend> that article is ok, but it's a bit vague in some places and i probably need to rewrite it
<banisterfiend> but it might get u started
thams has quit [Quit: thams]
chussenot has quit [Quit: chussenot]
gregor3005 has quit [Remote host closed the connection]
<stevebbd> thanks for that
thams has joined #ruby
zastern has joined #ruby
Mon_Ouie has joined #ruby
casheew has quit [Read error: Connection reset by peer]
maxmanders has quit [Ping timeout: 264 seconds]
cantonic has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
cantonic has joined #ruby
joofsh has joined #ruby
fourq has quit [Quit: leaving]
casheew has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
dallasm has quit [Remote host closed the connection]
havenwood has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
mattbl has joined #ruby
berserkr has quit [Quit: Leaving.]
Takehiro has joined #ruby
mrsolo has joined #ruby
justme1 has joined #ruby
eldariof has joined #ruby
casheew has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
casheew has joined #ruby
dblack__ has joined #ruby
dblack__ has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
dblack_ has joined #ruby
dameningenda has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
JohnBat26 has joined #ruby
ahokaomaeha has joined #ruby
hbpoison has joined #ruby
Xeago has joined #ruby
ffranz has quit [Quit: Leaving]
ffranz has joined #ruby
timonv has joined #ruby
banjara has joined #ruby
chrishough has quit [Quit: chrishough]
cousine has joined #ruby
segv- has quit [Remote host closed the connection]
rh1n0 has joined #ruby
hbpoison has quit [Remote host closed the connection]
`p has joined #ruby
fumbe has quit [Remote host closed the connection]
the_mentat has quit [Quit: Computer has gone to sleep.]
hbpoison has joined #ruby
philcrissman has joined #ruby
endzyme_ has quit [Remote host closed the connection]
anderse has quit [Quit: anderse]
fumbe has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
zorbyte has joined #ruby
nitehawkx has joined #ruby
ebobby has joined #ruby
<nitehawkx> Checking for matches between a and b, then appending matches to new array called c is my goal. I just seem to have an error on how I ended the statement. https://gist.github.com/anonymous/d3f9b86a6400f5c6f76f
someGuy5463 has quit [Ping timeout: 255 seconds]
hbpoison has quit [Ping timeout: 245 seconds]
ckrailo has joined #ruby
jpcamara has joined #ruby
jpcamara has quit [Remote host closed the connection]
hbpoison has joined #ruby
adkron has quit [Quit: leaving]
adkron has joined #ruby
jpcamara has joined #ruby
<dblack_> nitehawkx: you're missing a ton of 'end's. this isn't python :-)
<dblack_> nitehawkx: also, unless you really want the string "j" in your new array, you can probably use a & b
mattbl has quit [Quit: This computer has gone to sleep]
<davidcelis> holy shit
<davidcelis> that's not ruby
<davidcelis> what is that
pskosinski has joined #ruby
philcrissman has joined #ruby
cctv43 has quit [Ping timeout: 260 seconds]
nitehawkx has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
mattbl has joined #ruby
LouisRoR has joined #ruby
artOfWar_ has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
artOfWar has quit [Ping timeout: 276 seconds]
Wildhoney has joined #ruby
fermion has joined #ruby
hbpoison has joined #ruby
carlyle has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
Retistic has quit [Quit: Retistic]
joel__ has joined #ruby
rh1n0 has quit [Read error: Connection reset by peer]
joel___ has joined #ruby
<Yakko> hey guys, I'm trying to run a daemon process, but it keeps the shell busy, how can I run it in the back?
gaahrdner has joined #ruby
joel is now known as Guest79991
Morkel_ has joined #ruby
edelpero has quit [Quit: Ex-Chat]
hbpoison has quit [Ping timeout: 256 seconds]
w400z has joined #ruby
chrishough has joined #ruby
budmang_ has joined #ruby
<Yakko> how can you create a deatached process like rails server -d does?
BRMatt has joined #ruby
<Yakko> with a ruby script
decoponio has quit [Quit: Leaving...]
<jrajav> Yakko: Manually? By running the Ruby script with '&' or another shell equivalent for fork-and-return
<apeiros_> Yakko: see daemons gem
<jrajav> Yakko: Programmatically, by forking or using something more sophisticated to wrap forking (recommended)
budmang has quit [Ping timeout: 248 seconds]
<jrajav> Like, indeed, a daemon gem :P
Guest79991 has quit [Ping timeout: 245 seconds]
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
<apeiros_> oh, just daemon? I thought it was daemons
<Yakko> jrajav apeiros_: yeah, but when I restart it always spawns another process
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
<jrajav> Err, what do you mean by that
<Yakko> well, you tell me lol
kofno has joined #ruby
<Yakko> Im' kinda confused
joel__ has quit [Ping timeout: 245 seconds]
<Yakko> I'm using stalker and unicorn
pyrac has quit [Quit: pyrac]
<Yakko> so when I run unicorn config/unicorn.rb it doesn't lock the shell
<Yakko> so when I run stalk config/jobs.rb it locks the shell
pyrac has joined #ruby
<Yakko> am I making sense?
twshelton has joined #ruby
jtharris has joined #ruby
nomenkun has joined #ruby
<jrajav> Well whatever you use should support restarting. I haven't used Unicorn myself
<jrajav> But you do need to hook back to the old process somehow to kill it (or you'll have to do that yourself)
alx- has joined #ruby
artOfWar_ has quit [Ping timeout: 255 seconds]
axl_ has joined #ruby
gyre007 has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Quit: Leaving.]
<Yakko> jrajav: the daemons gem was just respawning another process, I also tried an ubuntu init script, and it doesn't work either
<bean> and your jobs.rb script is correct for what you want it to do?
hbpoison has joined #ruby
Xeago has joined #ruby
<aedorn> There seems to be a complete lack of clear communication in this whole scenario.
ozgura has joined #ruby
<Xeago> apeiros_: you still working?
<apeiros_> Xeago: no, working on https://github.com/apeiros/sorting
<apeiros_> feedback welcome
ebobby has quit [Quit: leaving]
<apeiros_> after that, I'll probably have to clean up the apartment - wife coming home tomorrow :)
ebobby has joined #ruby
artOfWar has joined #ruby
d2dchat has quit [Remote host closed the connection]
<Yakko> bean: yes, the command is cool
apok has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
* bean has never used stalker, can't say I know what the problem would be
crankycoder has quit [Quit: leaving]
jonahR_ has joined #ruby
crankycoder has joined #ruby
crankycoder has quit [Client Quit]
crankycoder has joined #ruby
<aedorn> sooo, yeah...
<aedorn> Yakko: You're never going to get a good answer because the question is still not clear. What are you trying to accomplish?
toekutr has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
hbpoison has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
LBRapid has quit [Quit: Farewell.]
hbpoison has joined #ruby
jonahR has quit [Ping timeout: 260 seconds]
jonahR_ is now known as jonahR
casheew has joined #ruby
thufir_ has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
newUser1234 has quit [Read error: Connection reset by peer]
<Xeago> apeiros_: ascending/descending.rb, the comment is clear but awkwardly ambiguous
newUser1234 has joined #ruby
etcetera has quit []
artOfWar has quit [Remote host closed the connection]
Retistic has joined #ruby
Vainoharhainen has joined #ruby
<apeiros_> Xeago: ok, noted. I'm currently working on docs & tests
elaptics is now known as elaptics`away
newUser1_ has joined #ruby
dhruvasagar has joined #ruby
nightwalk63 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<Xeago> some tricky stuff going on as you are accepting nils
cascalheira has quit [Quit: Leaving...]
ryanf has joined #ruby
casheew has joined #ruby
dhruvasagar has joined #ruby
Shrink has quit [Ping timeout: 245 seconds]
<Yakko> aedorn: I'm trying to have a ruby script run as a service so I can stop and restart it
frem has joined #ruby
newUser1234 has quit [Ping timeout: 244 seconds]
sayan has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Client Quit]
hbpoison has quit [Ping timeout: 256 seconds]
shevy has joined #ruby
joel___ is now known as Joel
Joel has quit [Changing host]
Joel has joined #ruby
pyrac has quit [Quit: pyrac]
hbpoison has joined #ruby
nomenkun has quit [Remote host closed the connection]
<aedorn> Yakko: Okay, which script? Your own? If so, where does Unicorn and Stalker come into the picture?
jblack has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
[rupee] has joined #ruby
<Yakko> aedorn: to run stalker you need to execute: bundle exec stalk config/jobs.rb
MartinCleaver has quit [Quit: MartinCleaver]
mityaz has joined #ruby
<Yakko> aedorn: so you append an & so it runs as a background process, right?
[diecast] has joined #ruby
<shevy> %w( b c a ).to_set
<shevy> hmm what exactly is a "set" in ruby terminology?
<aedorn> Yakko: So you want to run your Stalker process as a daemon?
<shevy> or rather the difference to an array
<Yakko> aedorn: well, I want to be able to restart it with one command
br4ndon has joined #ruby
<Xeago> shevy: sets usually don't have order and can't contain duplicate values
<shevy> ah
<Xeago> pretty sure in ruby that applies aswell
<shevy> let me test that
<apeiros_> it does
<Yakko> aedorn: how would you do that?
Retistic has quit [Quit: Retistic]
<shevy> yep you are right Xeago
rupee has quit [Ping timeout: 256 seconds]
<apeiros_> Set in ruby is basically a Hash with only the keys being relevant
pavilionXP has quit [Ping timeout: 245 seconds]
davidw has joined #ruby
<aedorn> Yakko: What distro? Ubuntu?
davidw is now known as Guest87067
<Yakko> aedorn: yes
<stevebbd> Is hash just short for hash table? I never understood why ruby people talk about hashes? I think of a hash as being a summary of some larger value
the_mentat has joined #ruby
<Yakko> aedorn: I tried to set it with the daemon gem and as an init script
hbpoison has quit [Remote host closed the connection]
twshelton has quit [Quit: Computer has gone to sleep.]
<Xeago> apeiros_: looks pretty neat
<shevy> hmmm and what would a set be useful for? I mean, I could use array.uniq then I have only unique values...
tvw has quit []
<apeiros_> Xeago: had it for like 4y now
ffranz has quit [Quit: Leaving]
<apeiros_> gisted it ~2y ago
<shevy> stevebbd I dont think a hash has something to do with a hash table, it is just a key-value paired dictionary
<aedorn> Yakko: The easiest thing will be to use a shell script and start it with start-stop-daemon, because you can force it into the background, create a pid file for it, and when you want to restart it you can kill it via the pid file and restart
<apeiros_> and now I'm tidying it up and publish it as a gem :)
[rupee] has quit [Ping timeout: 264 seconds]
ffranz has joined #ruby
<Xeago> you want help with doc/tests?
hbpoison has joined #ruby
<apeiros_> shevy: a) it conveys intent, b) it's more convenient than Array when you really want a Set
<shevy> stevebbd the name hash is not so uncommon or? In LPC it is called a mapping as far as I know
<Yakko> aedorn: let me give you a gist of that
<shevy> apeiros_ aha I see
<apeiros_> shevy: sadly it's slow. Array's set operations are often faster :-(
<stevebbd> shevy: but it's implemented as a hash table isn't it? otherwise why call it a hash
<aedorn> And I need to keep around an Ubuntu VM, apparently...
<shevy> stevebbd why is an array called an array! does it have an array table?
<Xeago> stevebbd: your logic is the wrong way around
ojacobson has joined #ruby
<stevebbd> what am i misunderstanding?
kevinfagan has joined #ruby
<stevebbd> the ruby hash object implments a hash table doesn't it?
<ojacobson> Can defs close over local variables in their surrounding context? At all? (I've been working through http://www.ruby-doc.org/docs/ProgrammingRuby/, which didn't mention it that I can see.)
<Xeago> stevebbd: hash table is nothing more than simplifying lookups by hashing a key
<apeiros_> stevebbd: yes, Hash is a hash table, or dictionary
<apeiros_> or hash map
etcetera has joined #ruby
<banister_> ojacobson: nup
<ojacobson> farts. Thanks.
<apeiros_> stevebbd: and yes, it's not very aptly named, since a) a hash is commonly what you said, and b) even exists in ruby as #hash
marc_online_ has joined #ruby
<yxhuvud> it is also bloody slow to create, compared to arrays
<ojacobson> I'll have to be incrementally clever-er.
<banister_> ojacobson: define_method can though
<ojacobson> yeah, since define_method receives a block, I get it :)
<ojacobson> thanks again.
ojacobson has left #ruby ["Linkinus - http://linkinus.com"]
thillux has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
pyrac has joined #ruby
carlyle has quit [Remote host closed the connection]
artOfWar has joined #ruby
Wildhoney has quit [Ping timeout: 276 seconds]
rupee has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
thams has quit [Quit: thams]
krandi has quit [Remote host closed the connection]
<Yakko> aedorn: I'd have it as stalker_myapp_production restart
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> wheeee just compiled ruby 1.9.3p392
hbpoison has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
<aedorn> shevy: But in two days you'll have to compile 2.0!
breakingthings has joined #ruby
artOfWar has quit [Ping timeout: 252 seconds]
<aedorn> Yakko: one sec
axl_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
Squarepy has joined #ruby
axl_ has joined #ruby
<shevy> aedorn haha that's ok
<aedorn> Installing Ubuntu so I don't tell you to use something you won't have ...
<shevy> I use ruby to compile ruby!
maxmanders has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
thams has joined #ruby
eklarkri has joined #ruby
slainer68 has joined #ruby
verysoftoiletppr has quit []
<aedorn> Install took longer than the download ... heh
hbpoison has quit [Read error: Connection reset by peer]
<aedorn> glorious
thufir_ has quit [Quit: Leaving.]
<Yakko> aedorn: you're installing Ubuntu?
<Yakko> aedorn: wow, thanks
d2dchat has joined #ruby
<shevy> aedorn must be some kind of computer guru
thufir_ has joined #ruby
<shevy> sitting in a room with like 100 computers
<shevy> with a neural interface
<shevy> in the butt hahahaa
hbpoison has joined #ruby
vlad_starkov has joined #ruby
<aedorn> Yakko: Change your run command (CMD) to "/sbin/start-stop-daemon --chdir $APP_ROOT --start --pidfile $PID -m -b --exec bundle -- exec stalk config/stalker.rb"
thufir_ has quit [Client Quit]
<aedorn> Yakko: You'll also have to add a stop: "/sbin/start-stop-daemon --stop --pidfile $PID", and you need to export RAILS_ENV=production somewhere in there before running CMD
gosshedd has quit [Read error: Operation timed out]
angusiguess has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
<Yakko> aedorn: I wasn't aware /sbin/start-stop-daemon existed
eklarkri has quit [Quit: leaving]
etcetera has quit []
eklarskov has joined #ruby
marc_online_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Catbuntu has joined #ruby
<Yakko> aedorn: if I export it does it mean every app will understand it as production?
hbpoison has quit [Ping timeout: 256 seconds]
<aedorn> Yakko: Only within the scope of that script
eklarskov has quit [Client Quit]
failshell has quit [Remote host closed the connection]
eklarskov has joined #ruby
<aedorn> or I could be lying
hbpoison has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
etcetera has joined #ruby
<Yakko> aedorn: interesting
carloslopes has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
justme1 has left #ruby [#ruby]
<aedorn> I mean, it's been awhile since I've really looked at Ubuntu's startup - it could be doing something totally crappy, but usually only within the scope.
nomenkun has joined #ruby
eklarskov has quit [Client Quit]
eklarskov has joined #ruby
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
arturaz has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
Retistic has joined #ruby
eklarskov has quit [Client Quit]
workmad3 has joined #ruby
eklarskov has joined #ruby
arturaz has joined #ruby
Jackneill has quit [Remote host closed the connection]
NemesisD_ has joined #ruby
pavilionXP has joined #ruby
monkegjinni has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
etcetera has quit []
cilquirm has joined #ruby
cilquirm has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
<Yakko> aedorn: it says it can't find the /current/path/bundle command
Vainoharhainen has quit [Quit: Leaving...]
Takehiro has joined #ruby
mlr is now known as baaaaaa
dhruvasagar has quit [Quit: Lost terminal]
mlr has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
<aedorn> Yakko: Even if you provide the full path to bundle?
carloslopes has joined #ruby
etcetera has joined #ruby
rodayo has joined #ruby
<rodayo> I'm trying to make tiny_tds talk to an azure database. I'm running windows so I had to build freetds with openssl myself. To install the tiny_tds gem I ran this command: "gem install tiny_tds --platform=ruby -- --with-freetds-dir=/c/freetds --with-freetds-include=/c/freetds/include --with-freetds-lib=/c/freetds/lib --with-icon v-dir=/c/libiconv" but when I try to run my script I get this error on the 'require 'tiny_tds'' line. c:/ruby/
<shevy> hey
<rodayo> ms/custom_require.rb:36:in `require': 126: The specified module could not be found. - c:/ruby/lib/ruby/gems/1.9.1/gems/tiny_tds-0.5.1/lib/tiny_tds/tiny_tds.so (LoadError)
<Yakko> aedorn: yeah I just solved it /usr/local/bin/bundle
<shevy> is there a way to embed irb in a browser tab fore firefox?
<rodayo> I'm sorta new to ruby, so any ideas what this error means?
MartinCleaver has joined #ruby
philcrissman has joined #ruby
<shevy> rodayo a shared object .so was not found
<shevy> perhaps tiny_tds sucks :>
baaaaaa has quit [Ping timeout: 255 seconds]
artOfWar has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
zeade has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
uris has joined #ruby
Retistic has quit [Quit: Retistic]
c0rn has joined #ruby
<rodayo> shevy, which .so is it unable to find? I mean, is there a way to find out what it's looking for?
horrror has joined #ruby
<shevy> tiny_tds.so
hbpoison has joined #ruby
<rodayo> shevy, it's right there in the path it spat out. :s
<shevy> the string "The specified module could not be found" is non-standard, so I am sure tiny_tds generates that error
<shevy> unlikely!
<rodayo> how so?
<shevy> you can always test in irb
<shevy> File.stat "c:/ruby/lib/ruby/gems/1.9.1/gems/tiny_tds-0.5.1/lib/tiny_tds/tiny_tds.so"
<shevy> how did you install tiny_tds btw? "gem install tiny_tds" ?
<shevy> I mean
<shevy> did it install without error
<shevy> I am on linux btw, never in my life will I be able to go back to windows ;<
__BigO__ has quit [Remote host closed the connection]
<rodayo> shevy, i installed tiny_tds by specifying the dir to freetds and libiconv
nazty has quit [Read error: No route to host]
<rodayo> lemme try out that command
Elhu has joined #ruby
slainer68 has quit [Remote host closed the connection]
__BigO__ has joined #ruby
<shevy> well that command is superstrange
<shevy> why are there two -- in the middle
<shevy> what purpose do they serve?
<rodayo> shevy, typo on my part, i was copy-pasting from a terminal
<shevy> "gem install tiny_tds --platform=ruby -- " <-- those two -- there
<rodayo> File.stat gives me : => #<File::Stat dev=0x2, ino=0, mode=0100644, nlink=1, uid=0, gid=0, rdev=0x2, size=45056, blksize=nil, blocks=nil, atime=2013-02-22 12:16:08 -0800, mtime=2013-02-22 12:16:08 -0800, ctime=2013-02-22 12:16:08 -0800>
<shevy> ok so it can find the file
<shevy> then try to require it directly
<rodayo> like require 'absolute/path/to/tiny_tdb.rb' ?
Elhu has quit [Client Quit]
roadt has quit [Ping timeout: 264 seconds]
<shevy> hmmmm
<shevy> on ruby 1.8.x that would work
<shevy> on 1.9.x it might not work
<shevy> :\
<shevy> you could try to append the current directory to $LOAD_PATH
<shevy> $LOAD_PATH << '.'
SolidResolve has joined #ruby
<shevy> $LOAD_PATH << Dir.pwd
SolidResolve has quit [Max SendQ exceeded]
<shevy> something like that, in irb
<shevy> then require it
NemesisD_ has left #ruby [#ruby]
<rodayo> shevy, same error when giving the absolute path with ".rb"
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<rodayo> i hate windows >_<
<shevy> what error
<shevy> you get an error: "The specified module could not be found"
<shevy> ??
<rodayo> specified module could not be found
<rodayo> yep
<shevy> I show you what I get when I require:
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<aedorn> rodayo: tiny_tds prebuilt doesn't have OpenSSL?
<apeiros_> ok, completed docs - I'd be glad about feedback on library & docs, thanks! (posted in #ruby-lang too)
<shevy> require '/joe/blablablaa/test.rb'
<shevy> LoadError: cannot load such file -- /joe/blablablaa/test.rb
<shevy> rodayo I can not believe you :)
<rodayo> aedorn, only on linux. windows precompiled gems don't unfortunately
<aces1up> Dir.glob(search_for).map{ |dir| dir =~ /.*\/(.*).data/ } #<---- how can i just map the captured match?
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
hbpoison has quit [Ping timeout: 245 seconds]
<shevy> rodayo I mean on the require part
<shevy> ohhhh
<shevy> apeiros_ wrote something
<shevy> the continuation of butler!!!
carloslopes has quit [Remote host closed the connection]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<apeiros_> shevy: heh, lol, sadly not :)
<shevy> ok first thing when I look at the example, I ask myself what is asc() and desc()
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
hbpoison has joined #ruby
<aedorn> rodayo: "If you are on Windows, we precompile binaries for Ruby 1.8.7 and 1.9.2 for x86-mingw32. The precompiled gem includes the latest static version of FreeTDS too, so no compilation is needed."
<shevy> ok second example answers that partially, with Sorting.asc
artOfWar has quit [Remote host closed the connection]
<lectrick> Can the Range operator(s) be overridden?
banseljaj is now known as imami|afk
horofox has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<shevy> lectrick hmmmmm
bean__ has joined #ruby
Guest87067 is now known as davidw
<rodayo> aedorn, one sec. i'll find where i found my info from
davidw has quit [Changing host]
davidw has joined #ruby
<shevy> apeiros_ idea: for a small example, you could give output of this type of sorting, or compare it with "classical" sorting
davidw has left #ruby ["Leaving"]
<lectrick> we have a line of minitest code which is passing, and we are scratching our heads as to why: @site..portal_web_template_myportal_companies_config = true << SPOT THE SYNTAX ERROR
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<lectrick> shevy: ^ look at that one
<shevy> so that people on first look can see the difference/advantage
<shevy> lectrick what is the second, a method?
<apeiros_> shevy: click on "examples for more examples" ;-)
<shevy> lectrick well it assigns... a range to true?
<lectrick> shevy: yes
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<shevy> apeiros_ ok
<lectrick> shevy: the second is a method. the .. is a typo
<apeiros_> a comparison with normal sort_by might be an idea, though
<shevy> lectrick aaaah hahaha now I understand :D
<lectrick> shevy: it's the fact that the typo still passed the test that is causing us to scratch our heads lol
<shevy> lectrick that's a funny typo though, you would have fooled me
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 245 seconds]
<lectrick> but WHY IS IT PASSING??
<rodayo> aedorn, https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/wiki/Using-Azure - "Currently TinyTDS does not have a native gem for Windows that includes static libs of OpenSSL, which is required for FreeTDS to connect to Azure."
<shevy> perhaps ruby thinks "hey, this guy is funny, this is funny code, I am gonna just let him pass this once"
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
fuzai has quit [Ping timeout: 252 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SqREL has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<aedorn> rodayo: meh.. well then
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<lectrick> shevy: the only thing I can come up with is that I'm looking through some of the test gem code and it seems to rescue RangeError
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
mnaser has quit [Ping timeout: 245 seconds]
eklarskov has quit [Quit: leaving]
eklarskov has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
ebobby has quit [Quit: leaving]
<dblack_> lectrick: irb(main):003:0> a = true; a..b = true; b
<dblack_> => true
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<dblack_> lectrick: not sure that helps but anyway
<lectrick> but @site is not true, right there
<lectrick> it's an AR object
<dblack_> yeah, that's what i was afraid of :-)
<shevy> dblack_ man... for a moment I thought you are drbrain or dbrain or whatever was the name from #ruby-lang
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<havenwood> drblack
Retistic has joined #ruby
<dblack_> shevy: no, i'm the former 'dblack', now connected as 'dblack_' because a new dblack grabbed my nick :-(
<dblack_> havenwood: i am that, actually :-)
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
sonda has quit [Remote host closed the connection]
invisime has quit [Quit: Leaving.]
<lectrick> David A. Black? :)
mnaser has joined #ruby
<dblack_> lectrick: yes
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
pavilionXP has quit [Read error: Connection reset by peer]
kennyp has joined #ruby
kennyp has left #ruby [#ruby]
<apeiros_> dblack_: oh? I thought you had dblack - but seems somebody was faster than you :)
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<dblack_> apeiros_: i didn't connect for over a year, and he convinced the admins to release my nick
<apeiros_> ah! I thought I hadn't seen you for years
<dblack_> yeah :-)
<apeiros_> /nick the_real_dblack ;-p
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<dblack_> apeiros_: yeah, i'm considering realDAB :-)
endzyme has joined #ruby
<shevy> havenwood ah yeah... hmm
SMan23 has left #ruby [#ruby]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<apeiros_> real digital audio broadcasting? hmmmm
<shevy> there is a drbrain on #rubygems
<apeiros_> ;-)
<shevy> apeiros_ is the new owner of #ruby !!!
<apeiros_> I'm not
allure has joined #ruby
allure has quit [Changing host]
allure has joined #ruby
<apeiros_> fflush was and still is the owner of #ruby
<shevy> ah yeah
* apeiros_ simply has a little bit more presence
allure has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
<dblack_> drbrain is eric yodel, from seattle
<dblack_> whoops
<apeiros_> and I managed to convince fflush to make me op here. and a few years later, some other ppl
<dblack_> eric hodel i mean
banjara has quit [Quit: Leaving.]
<havenwood> Eric Yodelayheehoo
banjara has joined #ruby
banjara has quit [Client Quit]
<dblack_> in theory i'm the owner of #ruby-lang, but since i can't even connect to it (they only take registered nicks) it isn't doing me much good
banjara has joined #ruby
<apeiros_> uuuh, ouch
<havenwood> dblack_: hehe
chrisja has quit [Quit: leaving]
<apeiros_> I'm actually surprised that the current dblack managed to get the nick released
rlb3 has quit [Quit: rlb3]
<dblack_> apeiros_: yeah, me too. they really shouldn't do that
banjara has quit [Client Quit]
<apeiros_> freenode is notoriously slow wrt administrative stuff
michal_ has quit [Quit: michal_]
banjara has joined #ruby
banjara has quit [Client Quit]
<shevy> hehehe
<apeiros_> dblack_: I'm not surprised that they agreed to, I'm surprised they actually did :)
<shevy> kinda funny how the old famous ones from #ruby-lang drop by to #ruby
banjara has joined #ruby
<dblack_> apeiros_: :-)
banjara has quit [Client Quit]
<dblack_> shevy: i was surprised to see that there are > 2X as many people here. it used to be the other way around
banjara has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
banjara has quit [Client Quit]
<apeiros_> damit, I need to write more tests
<shevy> yeah
* apeiros_ is sooo slow writing them :( too little practice
banjara has joined #ruby
banjara has quit [Client Quit]
<shevy> we are still quite a way off from #python
banjara has joined #ruby
banjara has quit [Client Quit]
<shevy> but decently ahead of #php and #perl
banjara has joined #ruby
banjara has quit [Client Quit]
Retistic has quit [Quit: Retistic]
banjara has joined #ruby
banjara has quit [Client Quit]
hbpoison has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
<apeiros_> #python's topic is LOL
banjara has joined #ruby
banjara has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Client Quit]
* dblack_ 's screen is filling up with banjara
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
pandawarrior1 has joined #ruby
<havenwood> rofl, #python /topic: NO PROJECT EULER
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
Retistic has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
swex has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
horofox has quit [Quit: horofox]
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
swex_ has quit [Ping timeout: 252 seconds]
<havenwood> New Project Euler tomorrow: "Problem 416 will be accessible in 15 hours, 48 minutes"
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
banjara has joined #ruby
hbpoison has quit [Remote host closed the connection]
banjara has quit [Client Quit]
hbpoison has joined #ruby
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Client Quit]
pmros has joined #ruby
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
<apeiros_> ah f*ck
<pmros> hi!
<havenwood> hey
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
<apeiros_> forgot that modules included into modules have issues with shared methods
horofox has joined #ruby
LouisRoR has quit []
banjara has joined #ruby
Umren has quit [Ping timeout: 245 seconds]
<apeiros_> i.e. module A; end; class X; include A; end; module A; include B; end # --> B's methods are not available in X
* lectrick just realized for the first time that he's been out of #ruby-lang for months while using only #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
<banister_> lectrick: ruby-lang is boring
<pmros> I'm developing a compiler in ruby and it makes me happy
<lectrick> whew
banjara has quit [Client Quit]
<banister_> pmros: that's what she said
<banister_> ;)
eklarskov has quit [Ping timeout: 264 seconds]
<Xeago> anyone experience with using nginx as a https proxy
banjara has joined #ruby
banjara has quit [Client Quit]
<banister_> apeiros_: yeah, it's pretty interesting
<Xeago> and/or client certificate authentication?
banjara has joined #ruby
banjara has quit [Client Quit]
dmerrick has quit [Ping timeout: 255 seconds]
Guest12789 has joined #ruby
Guest12789 has quit [Client Quit]
asepior2345234 has quit [Quit: Leaving]
shanonlev has joined #ruby
<apeiros_> gah, result is fugly code
geekbri has quit [Remote host closed the connection]
<stevebbd> How does Ruby reconcile operators being methods, with short circuit semantics?
zeade has quit [Quit: Leaving.]
<whitequark> stevebbd: || is not a method
<whitequark> similarly && isn't one
agarie has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
<whitequark> Xeago: I did that some time ago
<stevebbd> whitequark: can you define || for your own classes?
<whitequark> stevebbd: no
<stevebbd> whitequark: thank you
brianpWins has quit [Quit: brianpWins]
<apeiros_> since it's not a method
huoxito has quit [Quit: Leaving]
<stevebbd> apeiros_: i thought maybe if you did define a method, the intrinsic || operator would defer to it and whatever semantics it had
sn0wb1rd has joined #ruby
<whitequark> Xeago: it boils down to you providing a CA to nginx, and then nginx verifies the client cert and passes the CN in it to you
<whitequark> something along that
<whitequark> it is pretty straightforward actually after you grasp X509
eklarskov has joined #ruby
Retistic has quit [Quit: Retistic]
twshelton has joined #ruby
Catbuntu has quit [Quit: Auf wiedersehen]
mattbl has quit [Quit: This computer has gone to sleep]
w400z has quit []
HalfMadDad has quit [Ping timeout: 255 seconds]
dblack_ has quit [Quit: dblack_]
rmartin has quit [Remote host closed the connection]
Udom0 has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 255 seconds]
hbpoison has joined #ruby
ferdev is now known as ferdev|away
JohnBat26 has quit [Remote host closed the connection]
tvw has joined #ruby
eldariof has quit []
tjarratt has joined #ruby
razibog has quit [Ping timeout: 252 seconds]
gaahrdner has quit [Remote host closed the connection]
juarlex has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
juarlex has joined #ruby
maletor has joined #ruby
hbpoison_ has joined #ruby
Takehiro has joined #ruby
aldodelgado has joined #ruby
stevebbd has quit [Quit: Page closed]
<Yakko> aedorn: finally! thank you so much =D
mattbl has joined #ruby
skcin7 has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
mando has joined #ruby
<Xeago> whitequark: I am aware of x509 and stuff
<Xeago> never configured nginx
<Xeago> I figured so far I can use a normal ssl offloading config
<Xeago> and add 'ssl_verify_client on'
werdnativ has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
<Xeago> mind showing your config so I can see if that is correct and for other pointers?
HalfMadDad has joined #ruby
ferdev|away is now known as ferdev
vlad_starkov has joined #ruby
Morkel has quit [Quit: Morkel]
joofsh has quit [Remote host closed the connection]
<tjarratt> Hi everyone. I'm using ruby-2.0.0-rc2 and I'm trying to figure out why I'm unable to verify client certificates with Net::HTTP. Even if I include :verify_mode => OPENSSL::SSL::VERIFY_NONE, it still tries to verify the remote server.
<tjarratt> has anyone seen that?
<aedorn> Yakko: Guess that means it all works!
havenwood has joined #ruby
eavgerinos has joined #ruby
Retistic has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
meoblast001 has joined #ruby
<aedorn> I'm totally going to rescue Exception.
jrajav has quit [Quit: I tend to be neutral about apples]
hbpoison_ has quit [Ping timeout: 252 seconds]
`p has quit [Ping timeout: 248 seconds]
love_color_text has joined #ruby
mlr has quit [Ping timeout: 255 seconds]
hbpoison has joined #ruby
<whitequark> Xeago: I don't think I have it anymore.
<whitequark> but yeah, you're doing it right
pyrac has quit [Quit: pyrac]
Virunga has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
<havenwood> aedorn: Why not go further and really confound everybody?: https://github.com/drbrain/return_bang
Virunga has joined #ruby
<werdnativ> A quarter-way down this article there's a monster PCRE regular expression. Can Ruby's onigurama Regexp do "DEFINE" like that or similar?
<havenwood> Hehe: "As a bonus, you also get exception handling that ignores standard Ruby’s inflexible begin; rescue; ensure; end syntax."
testingb0t has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
c0rn has quit [Read error: Connection reset by peer]
`p has joined #ruby
<aedorn> havenwood: but I don't want it to exit!
rodayo has quit [Quit: Page closed]
<aedorn> I want it to run ... forever. Indefinitely.
Retistic has quit [Quit: Retistic]
hbpoison has quit [Ping timeout: 256 seconds]
wrapids has joined #ruby
<aedorn> And then if you try to kill the process it reboots the system, and starts again
<havenwood> aedorn: guess that is kinda the opposite or return_bang, we need a never_return gem :P
<havenwood> s/or/of
<wrapids> Could someone explain why I keep geetting "unexpected keyword_end" and "unexpected $end, expecting keyword_end" in http://pastebin.com/sZkFEpRN
hbpoison has joined #ruby
billiam has quit [Quit: Leaving]
Virunga has quit [Ping timeout: 260 seconds]
<aedorn> i++
pandawarrior1 has quit [Quit: Leaving.]
<wrapids> oh?
<wrapids> Oh
<wrapids> Ruby doesn't support the increment operator
<aedorn> wrapids: You want i += 1
<wrapids> Thanks a bunch, I don't think I would have ever found that
pandawarrior1 has joined #ruby
eklarskov has quit [Quit: leaving]
<aedorn> Meanwhile, I'm going to avoid explaining why by dialing into this meeting ...
Virunga has joined #ruby
<havenwood> wrapids: Instead of incrementing i, you could use #each_with_index: formatter.each_with_index do |x, index|
<aedorn> (or just doing even use an index and append with <<)
<wrapids> lol apparently I'm used to doing everything the hard way.
<aedorn> (or just avoid the loop entirely and use .map)
hbpoison has quit [Ping timeout: 256 seconds]
<havenwood> wrapids: ooh, yeah aedorn is right - i didn't actually look at what you're doing...
sailias has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
<wrapids> for map that would be: logo_name = x.map { |y| y.match(...) }?
<havenwood> wrapids: logo_name = formatter.map { |x| x.match(/(.*)\s/)[0].to_s }
newUser1234 has joined #ruby
<wrapids> well, assuming I used correct variable names of course.
mlr has joined #ruby
Lemtzas has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
newUser1234 has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
newUser1_ has quit [Ping timeout: 260 seconds]
mark_locklear has quit [Remote host closed the connection]
Lemtzas has joined #ruby
<eavgerinos> Good evening guys. I am quite a noob in Ruby and I need some help. I wanna learn how to write my own gems. I found a guide in which you create a hola gem, but I didn't get the idea. I wanna learn how to make gems like defunkt/gist (standalone terminal apps in ruby) and like intredea/omniauth (oauth2 strategies) which works as a library. Do you know where I can find some resources/books/tutorials?
<aedorn> oh f me... these people want to use SOAP
hbpoison has quit [Ping timeout: 244 seconds]
<havenwood> eavgerinos: A nice way to create gems is to use Bundler: http://railscasts.com/episodes/245-new-gem-with-bundler
<havenwood> eavgerinos: http://gembundler.com/rubygems.html
<havenwood> aedorn: ouch....!
<havenwood> aedorn: No REST for the wicked.
* havenwood cringes at his own pun.
<aedorn> ...
ahokaomaeha has joined #ruby
hbpoison has joined #ruby
gvz has quit []
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<havenwood> eavgerinos: I'd recommend the gem-release gem as well, makes tagging, bumping, pushing gems a cinch: https://github.com/svenfuchs/gem-release
pmros has left #ruby ["Konversation terminated!"]
pdamer has quit [Quit: pdamer]
staafl has quit [Ping timeout: 255 seconds]
<havenwood> eavgerinos: FTW: gem bump --tag --release
Slivka has joined #ruby
<aedorn> I need to move most of these libs into their own gem, but that means having to setup a private gem server. So much to do
<havenwood> aedorn: internal-use libs?
<eavgerinos> havenwood: thanks alot :)
<havenwood> eavgerinos: np, happy gemcutting!
<aedorn> havenwood: Pretty much ... some will go open source. A lot are very specific to our use only. I was looking at GemFury for those, but might just go gem in a box.
<mando> aedorn: I've used gem in a box at a couple of places - works fine
jocellyn has joined #ruby
artOfWar has joined #ruby
tvw has quit []
<jocellyn> hi :)
hbpoison has quit [Ping timeout: 252 seconds]
<havenwood> hi
<aedorn> hi
BrianJ has joined #ruby
jocellyn has left #ruby [#ruby]
wmoxam has quit [Ping timeout: 255 seconds]
tethra has quit [Ping timeout: 245 seconds]
tjarratt has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
angusiguess has joined #ruby
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
testingb0t has quit [Quit: Leaving.]
c0rn has joined #ruby
pandawarrior1 has quit [Quit: Leaving.]
<Yakko> aedorn: it all works when I ssh, but on capistrano it raises me some error on start() only, stop always works. can you please check? https://gist.github.com/yakko/5016203
tommyvyo has joined #ruby
hbpoison has joined #ruby
<aedorn> Yakko: what error?
willob has quit [Quit: Leaving.]
newUser1234 has quit [Remote host closed the connection]
tylersmith has quit [Quit: tylersmith]
newUser1234 has joined #ruby
cableray has joined #ruby
tylersmith has joined #ruby
<Yakko> aedorn: it works when I run stop (which actually raises an error cause the process cant be found)
<Yakko> aedorn: but on start, where there are no errors, it fails
the_mentat has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
<apeiros_> havenwood: gem is released :) https://rubygems.org/gems/sorting
<aedorn> Yakko: just in case, add --: ...exec /usr/local/bin/bundle -- exec
Diranged has joined #ruby
anonymuse has joined #ruby
<Diranged> is there a simple way to take rdoc formatted plaintext and turn it into pure plaintext thats readable?
<havenwood> apeiros_: Nice! Just installed it on 2.0.0 :D
<Diranged> simply, remove all the rdoc formatting characters
horrror is now known as h0rr
jrajav has joined #ruby
<Yakko> aedorn: wasn't it
<apeiros_> havenwood: oooh, can you run the tests?
<havenwood> apeiros_: sec, will do
joofsh has joined #ruby
biff_tannen has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
pavilionXP has joined #ruby
<apeiros_> havenwood: ah, sorry, should probably have told you: `ruby test/runner.rb` in the project dir
tethra has joined #ruby
<apeiros_> I still should add a `rake test` task
wmoxam has joined #ruby
<apeiros_> (after all, all it has to do is `load 'test/runner'`
<apeiros_> )
<havenwood> cd
<havenwood> sry, misstell
<aedorn> Yakko: hmmm. Add rm -f $PID to your stop function. Not that it will solve anything, but you do have to remove it. This 'feels' like a permission problem
<havenwood> apeiros_: Getting an ArgumentError: sorting_test/helper.rb:29:in `suite': wrong number of arguments (0 for 1) (ArgumentError)
love_color_text has quit [Remote host closed the connection]
pandawarrior1 has joined #ruby
<havenwood> apeiros_: Passes on 1.9.3
<Yakko> aedorn: yet it works perfect when I'm in ssh
banjara has left #ruby [#ruby]
<aedorn> Yakko: Right, but when you're in ssh you are logged in as root, yes?
<Yakko> aedorn: capistrano user is also root
<havenwood> apeiros_: All green on 1.9 and JRuby 1.7.3.
niklasb has joined #ruby
<Yakko> aedorn: and as I said, stop works
<apeiros_> havenwood: kk, I should probably just install ruby 2.0 myself :)
<apeiros_> odd error, though
<havenwood> apeiros_: indeed, confusing
elux has quit [Quit: Leaving...]
wargasm has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
etcetera has quit []
wrapids has left #ruby [#ruby]
s3m73x has quit [Remote host closed the connection]
<aedorn> Yakko: Well you had a pid of 9058 when you tried to stop it first, then start it, and a pid of 9058 when trying to just stop. Also, your start function returns 1, which if its the last thing it does in the script, it's exiting with 1 also.
sepp2k1 has joined #ruby
etcetera has joined #ruby
newUser1234 has quit [Remote host closed the connection]
adkron has quit [Quit: leaving]
backjlack has quit [Remote host closed the connection]
banister_ has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 252 seconds]
BRMatt has quit [Quit: Leaving]
adkron has joined #ruby
newUser1234 has joined #ruby
adkron has quit [Client Quit]
workmad3 has joined #ruby
adkron has joined #ruby
<aedorn> Yakko: Also, it would help here to redirect stderr/stdout into a log file to see what it does when you run it via Capistrano. So you can add 2>&1 >/some/file
adkron has quit [Client Quit]
<Yakko> aedorn: $stdout = File.open("log/stalker_#{RAILS_ENV}.log", 'a')
adkron has joined #ruby
<Hanmac> aedorn or try reopen
<Yakko> aedorn: I put that on the stalker.rb file, but I think I might get the capistrano error description
Virunga has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
<havenwood> rb
Virunga has joined #ruby
moshee has quit [Remote host closed the connection]
mosheee has joined #ruby
mosheee is now known as moshee
hbpoison has quit [Ping timeout: 255 seconds]
thams has quit [Quit: thams]
mattbl has quit [Quit: This computer has gone to sleep]
zzing has quit [Quit: Computer has gone to sleep.]
zul_ has joined #ruby
<aedorn> I don't know. I don't see anything else inherently wrong with it, but it still feels very permission issue like
artOfWar has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
zzing has joined #ruby
<zul_> Hi guys could you solve me a very stupid problem in ruby and character escaping? Look this link: http://pastebin.com/BjpR2W2C
<zul_> it doesn't work due to some characters.
c0rn has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
mando has quit [Ping timeout: 264 seconds]
<aedorn> Yakko: Well, do me a favor and add the pid removal. Also remove the usage of su -c; use --chuid $AS_USER on the start-stop-daemon line instead. Then try running it/stopping it twice and gist the output of those
<apeiros_> zul_: please don't use "it doesn't work" as a problem description. it is none.
c0rn has joined #ruby
workmad3 has joined #ruby
<zul_> apeiros sorry, I don't know how to do it :)
h0rr has quit [Quit: h0rr]
<zul_> could you help me?
kofno has quit [Remote host closed the connection]
adkron has quit [Quit: leaving]
aldodelgado has quit [Quit: aldodelgado]
dmerrick has joined #ruby
adkron has joined #ruby
<apeiros_> zul_: you describe what you expect and what happens instead
hbpoison has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
<zul_> havenwood I try :)
Diranged has left #ruby [#ruby]
mando has joined #ruby
moshee has quit [Quit: ZNC - http://znc.in]
NiteRain has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
forrest has quit [Quit: Leaving]
mockra has quit [Remote host closed the connection]
__BigO__ has quit [Remote host closed the connection]
moshee has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
zzing has quit [Quit: Computer has gone to sleep.]
zastern has quit [Remote host closed the connection]
Virunga has joined #ruby
thufir_ has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
thams has joined #ruby
Umren has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
horofox has quit [Quit: horofox]
hbpoison has joined #ruby
alanp has quit [Read error: Connection reset by peer]
alanp_ has joined #ruby
breakingthings has quit []
cantonic has quit [Read error: Connection reset by peer]
alanp_ is now known as alanp
Choclo has joined #ruby
brianpWins has quit [Quit: brianpWins]
techhelp has quit [Quit: This computer has gone to sleep]
jerius has quit [Ping timeout: 244 seconds]
carlyle has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
hbpoison has quit [Read error: Connection reset by peer]
zul_ has quit [Quit: Ex-Chat]
thinkclay has quit [Quit: Leaving.]
jpcamara has quit [Quit: jpcamara]
hbpoison has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
tethra has quit [Changing host]
tethra has joined #ruby
pkrnj has joined #ruby
jgarvey has quit [Quit: Leaving]
<Hanmac> shevy today is a good time to find a critical bug in ruby trunk :P
baroquebobcat has joined #ruby
Choclo has quit [Quit: Leaving.]
<havenwood> Hanmac: haha
_nitti has quit [Remote host closed the connection]
hbpoison has quit [Remote host closed the connection]
hbpoison has joined #ruby
philcrissman has quit [Remote host closed the connection]
brianpWins has joined #ruby
thinkclay has joined #ruby
CraHan|out is now known as CraHan
solidoodlesuppor has quit [Remote host closed the connection]
skcin7 has quit [Quit: Computer has gone to sleep.]
Squarepy has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 245 seconds]
bradleyprice has quit [Remote host closed the connection]
alx- has quit [Ping timeout: 245 seconds]
hbpoison has joined #ruby
SCommette has quit [Quit: SCommette]
<shevy> Hanmac hmm
<shevy> this zul_ guy always disconnects quickly
<Hanmac> but i dont think this is a ruby bug
wargasm has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mattbl has joined #ruby
br4ndon has quit [Ping timeout: 264 seconds]
stopbit has quit [Quit: Leaving]
hbpoison has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
* Hanmac sings: "tomorrow comes the Matz o' Claus, deliver us new Gems"
Umren has quit [Ping timeout: 260 seconds]
joshman_ has quit [Ping timeout: 252 seconds]
s3m73x has joined #ruby
niklasb has quit [Read error: Operation timed out]
jlast has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
d2dchat has quit [Remote host closed the connection]
lmg_ has quit [Ping timeout: 256 seconds]
thufir_ has quit [Quit: Leaving.]
Coolhand|laptop has quit [Read error: Connection reset by peer]
octoberry has quit [Ping timeout: 264 seconds]
<swarley> Hanmac, what about the people who still use 1.8.7? Do they get coal in their stockings?
dmerrick has quit [Quit: dmerrick]
mockra has joined #ruby
tvw has joined #ruby
hbpoison has quit [Remote host closed the connection]
<Hanmac> hm no they get visit by santas little helper :P (the bad one)
hbpoison has joined #ruby
<swarley> oh, the segfault fairy
thinkclay has quit [Quit: Leaving.]
<apeiros_> ruby-2.0.0-rc2 - #compiling
<shevy> swarley I WILL NEVER LET GO OF 1.8.X!!!
<swarley> :((((
newUser1234 has quit [Remote host closed the connection]
<apeiros_> we will be using ruby 27.9 and shevy will still be on 1.8
<shevy> yeah
<havenwood> 2.0 is to Santa as 1.8 is to Krampus
<shevy> until I have amassed enough knowledge to write "The Original Ruby Interpreter 1.0"
<swarley> why would you continue to use a version that's reached EOL?
<shevy> swarley because 1.9.x gives me new problems I don't have on 1.8.x
<swarley> What problems?
j3ffko has quit [Remote host closed the connection]
<apeiros_> havenwood: odd, ruby-2.0.0-rc2 runs the tests just fine here
<shevy> Encoding breaking my .rb files
<swarley> shevy, ?..
<apeiros_> shevy: just fix it
<havenwood> apeiros_: hrm, wonder whats borked about mine
main has quit [Ping timeout: 260 seconds]
<Hanmac> shevy no more, because utf8 is now default encoding on files
thams has quit [Quit: thams]
<shevy> Hanmac but what for people who do not use utf8?
kpshek has quit []
<swarley> Seriously, if you just fix the files you get a huge performance boost from 1.8->1.9
<Hanmac> they are eigher to dump or to arrogant
spider-mario has quit [Remote host closed the connection]
<shevy> Hanmac but you argue that there is no alternative :)
<swarley> Hanmac, I only use ASCII as god intended
<shevy> the default encoding is US-ASCII
octoberry has joined #ruby
<apeiros_> swarley: ascii is utf-8 compatible
<swarley> I know
<shevy> why didn't the core team require utf-8?
<swarley> i was joking
techhelp has joined #ruby
<shevy> that's it - I am going to become japanese
<havenwood> utf-8 ALL THE THINGS \o/
linguini has joined #ruby
<Hanmac> (00:32:08) shevy: why didn't the core team require utf-8? << as i said the default encoding will be UTF8
<swarley> turning japanese oh, he's turning japanese i really think so
<shevy> I already like takeshi's castle so that's 50% at least
<shevy> Hanmac ah you mean, a new change? right now it is US-ASCII or?
<swarley> utf-16
hbpoison has quit [Remote host closed the connection]
<havenwood> shevy: In 2.0.0.
<shevy> aha ok
<shevy> that's new for me :)
<swarley> Really it's not a huge problem anyway. Just # encoding: utf-8
nwertman has joined #ruby
<shevy> swarley ISO-8859-1 FOREVER!!!!!!!
<swarley> Ew, what do you use, notepad.exe?
<shevy> bluefish 1.0.7
<shevy> and proudly so
<swarley> oh. Pretty much the same
<shevy> what do you use?
<swarley> vim
<swarley> or sublime text
jekotia has joined #ruby
<shevy> so you are vimster
<shevy> the vim has occupied a big part of your brain
<Hanmac> joe does generate dead ones :P
<shevy> when you see text your brain starts to think "dd22[mm/sss7"
mockra has quit [Ping timeout: 244 seconds]
blacktulip has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
enebo has quit [Quit: enebo]
<swarley> No, I'm not going to tell you that vim is the master editor. I will tell you however that most graphical editors geared towards programmers give you more than you need and end up looking horrid in the process.
<havenwood> Text editor learning curve comparison graph: http://mrozekma.com/editor-learning-curve.png
<shevy> that's why I use bluefish! I killed as many widgets as possible
<Hanmac> vim is good if you destroyed your Xserver
pandawarrior1 has quit [Quit: Leaving.]
<swarley> LOL EMACS
<shevy> I basically only have... tabs... syntax highlighting... and a big fat main widget for editing files
<Hanmac> "EMACS - OS now with embedded text editor"
<swarley> Lol, I tried to use Emacs the other day
<swarley> I couldn't get into it
<shevy> vim hates the mouse :(
<swarley> shevy, gvim
<swarley> or mouse support with vim
<shevy> shevy hates the gvim
<havenwood> swarley: macvim
<swarley> <- windows 8 and linux
<swarley> windows 7*
<shevy> vim is ok, but gvim I hate this thing... it claims to be graphical but it behaves like a shaky vim embedded into a widget where it never wanted to reside in in the first place
<shevy> oh gawd, windows 7
<occupant> I like macvim, but I wish it could magically integrate with iterm
v0n has quit [Ping timeout: 246 seconds]
<swarley> What? gVim is graphical.
timonv has quit [Remote host closed the connection]
<swarley> If it was totally graphical then it wouldn't be vim
<shevy> swarley I see the g but I can not accept for what it stands
Mekkis has quit [Ping timeout: 245 seconds]
<havenwood> maybe windows 8 will add a third OS that you must use
<swarley> What more do you want? there are a full set of drop downs and full mouse support
<shevy> it's vim under LSD influence
<havenwood> windows 9**
codecop has quit [Remote host closed the connection]
hbpoison has joined #ruby
<shevy> swarley if I compare gvim to, for example, GTK based widget, gvim is just aaaaaawful
<shevy> and it is slower than vim too!
<swarley> ... because you're thinking of it without remembering that it uses vim keybindings
<Xeago> shevy: do you need cursor stuff in vim?
<swarley> which are essential to it being vim
<shevy> Xeago hmm I tend to use the cursor keys, yeah, but I feel this is a minor difference
<swarley> and if you can notice the change in speed from vim -> gVim, you need a new computer
<Xeago> not cursor keys, I mean mouse selection etc
<aedorn> vim under LSD? Sign me up
<Xeago> swarley: I also notice a difference in vim and macvim
<shevy> Xeago hmm not really, I do text selection with keyboard only
<Xeago> on a 4.2ghz mac pro
<Xeago> shevy: then why not use vim in a terminal?
<swarley> I have no significant difference from vim and gvim on either os
<shevy> Xeago because it behaves oddly compared to those GTK based widgets! I want to do text selections with a graphical highlight
chrishough has quit [Quit: chrishough]
<swarley> But then again, i'm saying it has to be more than a second to be worth saying it's slower
<swarley> shevy, that's because it's vim
<aedorn> I'd pay good money to pair program with an imaginary fairy.
<swarley> it's not meant to do what GTK widgets do
<shevy> I want my Ctrl-C and Ctrl-V
horofox has joined #ruby
<shevy> Xeago btw what do you use? vim?
tvw has quit [Ping timeout: 252 seconds]
<Xeago> vim macvim, textmate
<shevy> both vim and textmate?
bluOxigen has quit [Ping timeout: 252 seconds]
<Xeago> yep
<shevy> you vim guys begin to surprise me
<Xeago> vim, macvim and textmate
<swarley> shevy, Ctrl-V == "+gP
<Xeago> I prefer macvim for longer periods
tylersmith has quit [Ping timeout: 244 seconds]
<shevy> first swarley ... meekly writing vim... then adding sublime text... now Xeago... vim... and textmate
<Xeago> I started with textmate
<Xeago> because I wasn't experienced in vim at that point
<havenwood> Xeago: i'm pretty fond of TM2
<shevy> swarley I use my left hand for this! I dont want to add my right hand
Mekkis has joined #ruby
<Xeago> still am a newb btw
<Xeago> havenwood: TM2 is fine, just not as quick as I want it to be
hbpoison has quit [Remote host closed the connection]
<shevy> it's slower than textmate1?
<aedorn> I used vim for a few years, but switched to Sublime Text 2. I'm actually faster under ST2 than I was with vim (but that could be to a variety of reasons)
<Xeago> the reason why I often come back to vim (in a terminal), is to have it tabbed, borderless on fullscreen etc
<shevy> \o/
<shevy> I like aedorn
NiteRain has quit [Ping timeout: 246 seconds]
jonahR has quit [Quit: jonahR]
hbpoison has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
<swarley> aedorn, I'm only faster under sublime text when I have mass deletions to make. Otherwise I find that I avoid silly mistakes and the like with vim
<shevy> I use vim in terminals too, I just refuse to learn too much
m8 has quit [Quit: Sto andando via]
<aedorn> I also used Emacs for ~5 years, also, which was before the usage of vim.
<swarley> But I do see why you would use a graphical client over a terminal editor, i just don't see the point in comparing the two like they are the same
<swarley> M-x butterfly
octoberry has quit [Ping timeout: 248 seconds]
Qwak has joined #ruby
<aedorn> swarley: as I said, it could be from a variety of reasons. I don't think I was ever "into it", to start with. Which is funny, considering how little I use the mouse with ST2.
awarner has quit [Remote host closed the connection]
<swarley> Yeah, I don't blame you for liking st, I liked it way more than vim originally. I don't know how i got into vim tbh
`p has quit [Ping timeout: 246 seconds]
<aedorn> And really, though I joke about it, I like ST2 *most* because of smooth scrolling. It's a gimmick and I love it.
<shevy> that's a lot of years usage
chrishough has joined #ruby
<withnale> Is there a nice way to do a concat of arrays, but have it prepend rather than append?
<shevy> perhaps one day I shall let go of bluefish 1 ... and try sublime
pkrnj has quit [Quit: Computer has gone to sleep.]
joofsh has quit [Remote host closed the connection]
<swarley> I will say that ST2 is the master of all graphical editors in my experience
<aedorn> I did like Emacs, too, but then I stopped getting work done because I could play Minesweeper in it.
thams has joined #ruby
frem has quit [Ping timeout: 264 seconds]
juarlex has quit [Ping timeout: 248 seconds]
Qwak has quit [Ping timeout: 260 seconds]
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
IrishGringo has quit [Ping timeout: 264 seconds]
Al___ has joined #ruby
<Xeago> aedorn: there is a ninja gaiden remake for emacs iirc
wyhaines has quit [Remote host closed the connection]
wyhaines has joined #ruby
<aedorn> Ooh sweet... then I could never get work done while also being infuriated by how annoying difficult Ninja Gaiden (1) was! Give me Mega Man 2 and I could really take it to the next level.
bean__ has quit [Quit: Computer has gone to sleep.]
philcrissman has joined #ruby
fir_ed has joined #ruby
<swarley> Zelda 2: Adventure of Link, the first game to make me scream
wyhaines has quit [Ping timeout: 244 seconds]
artOfWar has joined #ruby