<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
<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.
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
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]
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
<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]
<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: 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
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>
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
<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.]
<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]
<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?
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!!!"
<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']
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??
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]
<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]
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]
<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?
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"
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]
<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]
<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!]
<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]
<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
<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'
<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.]
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
<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
<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 :)
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
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
<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
<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]
<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(...) }?
<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>
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]
<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
<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]
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.
<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