<Francis2211>
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.
<Francis2211>
Permission denied (publickey).
<Francis2211>
fatal: Could not read from remote repository.
sincereness has joined #ruby
<sincereness>
if i have this code <a href='<%= @array.first.href %>'><%= @array[0] %></a> that outputs the first link in an array how do i change this into a code block to output all the links?
<Francis2211>
I'm trying to push to my github and im getting this error
kil0byte has quit [Remote host closed the connection]
cpruitt has joined #ruby
lkba has joined #ruby
near77 has quit [Quit: Page closed]
nisstyre has joined #ruby
momomomomo has joined #ruby
rahult_ is now known as rahult
<popl>
Francis2211: How is this related to Ruby?
<Francis2211>
sorry wrong channel
x77686d has quit [Quit: x77686d]
aspires has quit []
jamto11 has joined #ruby
derek_c has joined #ruby
evenix has quit [Read error: Connection reset by peer]
evenix has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
AlexRussia__ has joined #ruby
andrewlio has quit [Quit: Leaving.]
jamto11 has quit [Ping timeout: 268 seconds]
YamakasY has joined #ruby
ktosiek has joined #ruby
Beoran has quit [Ping timeout: 264 seconds]
<benzrf>
bbl
gancl has quit [Quit: No Ping reply in 180 seconds.]
benzrf is now known as benzrf|offline
gancl has joined #ruby
YamakasY_ has joined #ruby
ChrisAnn has quit [Remote host closed the connection]
yfeldblum has joined #ruby
YamakasY has quit [Ping timeout: 255 seconds]
Chronocity has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
nanoyak has joined #ruby
Nss has quit [Ping timeout: 265 seconds]
osvico has joined #ruby
bawNg has quit [Quit: No Ping reply in 180 seconds.]
nisstyre has quit [Quit: WeeChat 0.4.3]
otherj has joined #ruby
karmatr0n has quit [Remote host closed the connection]
bawNg has joined #ruby
bawNg has joined #ruby
bawNg has quit [Changing host]
havenwood has quit [Remote host closed the connection]
YamakasY_ is now known as YamakasY
havenwood has joined #ruby
jetblack has joined #ruby
jetblack has quit [Client Quit]
northfurr has joined #ruby
m0s^away is now known as m0s
evenix_ has joined #ruby
gemmy has quit [Quit: Lost terminal]
Beoran has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
siwica has quit [Ping timeout: 265 seconds]
predator117 has joined #ruby
evenix has quit [Ping timeout: 252 seconds]
brunops has quit [Quit: leaving]
siwica has joined #ruby
brunops has joined #ruby
<Francis2211>
Thank you!!!! my blog is up and running
mehlah has quit [Quit: Leaving...]
predator217 has quit [Ping timeout: 251 seconds]
x77686d has joined #ruby
cpruitt has quit [Quit: cpruitt]
tomdane_ has joined #ruby
kirun_ has quit [Ping timeout: 265 seconds]
m0s is now known as m0s^away
AlexRussia__ has quit [Ping timeout: 255 seconds]
m0s^away is now known as m0s
postmodern has quit [Quit: Leaving]
Speed has quit [Ping timeout: 265 seconds]
x77686d has quit [Quit: x77686d]
samlt has quit [Ping timeout: 240 seconds]
Erthe has joined #ruby
Erthe has left #ruby [#ruby]
userx- is now known as userx
RaptorJesus has joined #ruby
m0s is now known as m0s^away
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
m0s^away is now known as m0s
JBreit has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
cpruitt has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
gilest has quit [Remote host closed the connection]
cpruitt has quit [Client Quit]
cpruitt has joined #ruby
deadlock has joined #ruby
bradhe_ has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has quit [Client Quit]
maroloccio has quit [Quit: WeeChat 0.4.3]
bradhe has quit [Ping timeout: 255 seconds]
brunops has quit [Quit: leaving]
cpruitt has quit [Quit: cpruitt]
chipotle has quit [Quit: cya]
tectonic has joined #ruby
nateberkopec has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
cpruitt has joined #ruby
nffff has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
macmartine has joined #ruby
otherj has quit []
benzrf|offline is now known as benzrf
xapak has joined #ruby
<xapak>
Hello.
<xapak>
In Ruby 2.1.1 is “require 'rubygems'” required?
fabrice31 has joined #ruby
nopolitica has quit [Quit: Lost terminal]
evenix_ has quit [Remote host closed the connection]
ktosiek has quit [Ping timeout: 265 seconds]
evenix has joined #ruby
macmartine has quit [Ping timeout: 255 seconds]
dapz has joined #ruby
YamakasY has quit [Quit: The best revenge is massive success...]
MatthewsFace has quit [Quit: This computer has gone to sleep]
fabrice31 has quit [Ping timeout: 265 seconds]
gregf has joined #ruby
derek_c has quit [Ping timeout: 255 seconds]
<apeiros>
xapak: no
gilest has joined #ruby
MatthewsFace has joined #ruby
Es0teric has quit [Ping timeout: 268 seconds]
MatthewsFace has quit [Remote host closed the connection]
tomdane_ has quit [Ping timeout: 240 seconds]
evenix has quit [Ping timeout: 268 seconds]
aspires has joined #ruby
<xapak>
apeiros, thanks.
gregf has quit [Client Quit]
gregf has joined #ruby
MatthewsFace has joined #ruby
crystal77 has joined #ruby
jwingfi has joined #ruby
serp` has joined #ruby
xapak has left #ruby [#ruby]
aspires has quit [Ping timeout: 268 seconds]
Splourian has joined #ruby
danno1 has joined #ruby
rahult is now known as rahult_
shevy has quit [Ping timeout: 264 seconds]
bawNg has quit [Ping timeout: 268 seconds]
weeb1e has quit [Ping timeout: 255 seconds]
sputnik1_ has joined #ruby
RaptorJesus_ has joined #ruby
bradhe_ has quit [Ping timeout: 240 seconds]
RaptorJesus has quit [Ping timeout: 255 seconds]
sputnik__ has joined #ruby
sputnik1_ has quit [Read error: Connection reset by peer]
cashnguns has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 265 seconds]
cpruitt has quit [Quit: cpruitt]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dmarr>
I just installed rbenv and 2.1.1, when I try to bundle install in the our-boxen dir, I still get an error with the path /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
tectonic has quit []
slopjong has joined #ruby
sincereness has quit [Quit: Page closed]
nath_schwarz has quit [Read error: Connection reset by peer]
gilest has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
gilest has joined #ruby
bawNg has joined #ruby
bawNg has joined #ruby
bawNg has quit [Changing host]
pierre1_ has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
weeb1e has joined #ruby
pwh has joined #ruby
ctp has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
AlexRussia__ has joined #ruby
Francis2211 has quit [Remote host closed the connection]
AlexRussia has joined #ruby
sputnik__ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
peta_ has quit [Quit: peta_]
sputnik1_ has joined #ruby
Hanmac has quit [Ping timeout: 268 seconds]
shevy has quit [Remote host closed the connection]
AlexRussia__ has quit [Ping timeout: 240 seconds]
sputnik1_ has quit [Client Quit]
AlexRussia has quit [Client Quit]
bahar has quit [Changing host]
bahar has joined #ruby
cescalante is now known as ce_afk
AlexRussia has joined #ruby
chipotle has joined #ruby
kennym has quit [Quit: Leaving.]
Shidash has quit [Ping timeout: 265 seconds]
Psybur has joined #ruby
Shidash has joined #ruby
AlexRussia has quit [Read error: Operation timed out]
RaptorJesus_ has joined #ruby
aef has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
aef has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
shevy has joined #ruby
r_rios has joined #ruby
RaptorJesus has quit [Ping timeout: 264 seconds]
The_NetZ has joined #ruby
thomasxie has joined #ruby
AlexRussia has joined #ruby
r0bby has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
RaptorJesus has joined #ruby
Celm has quit [Remote host closed the connection]
<The_NetZ>
hrm. its really hard to google for using the code::blocks IDE to write ruby extensions when codeblock is a ruby programming technique
m0s is now known as m0s^away
AlexRussia has quit [Client Quit]
Hanmac has joined #ruby
RaptorJesus_ has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
supermarin has quit [Remote host closed the connection]
supermarin has joined #ruby
kyb3r_ has joined #ruby
montyboy has joined #ruby
kennym has joined #ruby
charliesome has joined #ruby
RaptorJesus_ has joined #ruby
kyb3r_ has quit [Client Quit]
kyb3r_ has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
supermarin has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
RaptorJesus has quit [Ping timeout: 255 seconds]
diegoviola has joined #ruby
JBreit has left #ruby ["Leaving"]
f1skn has quit []
shevy has joined #ruby
danno1 has joined #ruby
oniMaker has joined #ruby
kennym has quit [Quit: Leaving.]
f1skn has joined #ruby
<oniMaker>
Installed ruby with `sudo apt-get install ruby1.9.1-dev` but `ruby` and `which ruby` show nothing
<oniMaker>
Is there another install step?
axsuul has joined #ruby
<benzrf>
oniMaker: try just ruby1.9.1
<benzrf>
oniMaker: i think -dev is for the headers
<oniMaker>
benzrf: oh... I'm setting up something where I think I need -dev
<oniMaker>
benzrf: so, install both?
<benzrf>
tryggvib:
<benzrf>
*try
<benzrf>
cant hurt :-)
<oniMaker>
just did:
<oniMaker>
ruby1.9.1 is already the newest version.
<oniMaker>
ruby1.9.1 set to manually installed.
<oniMaker>
what's the directory it gets installed to?
<benzrf>
:o
<benzrf>
oniMaker: no idea >.>
jamto11 has joined #ruby
<benzrf>
oniMaker: you could try using locate
<benzrf>
oniMaker: i assume u have an updatedb cronjob
nisstyre has joined #ruby
timonv has joined #ruby
<oniMaker>
no
mostlybadfly has quit [Quit: Connection closed for inactivity]
<oniMaker>
just installed locate, but `locate ruby` returns nothing
<oniMaker>
updatedb first?
chuk has quit [Quit: This computer has gone to sleep]
radic has quit [Ping timeout: 265 seconds]
Axsuul_ has joined #ruby
Axsuul_ has quit [Max SendQ exceeded]
Axsuul_ has joined #ruby
zigomir_ has quit [Ping timeout: 265 seconds]
f1skn has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
gregf has quit [Quit: WeeChat 0.4.3]
radic has joined #ruby
brunops has joined #ruby
petey has joined #ruby
timonv has quit [Ping timeout: 268 seconds]
axsuul has quit [Ping timeout: 268 seconds]
Splourian has quit [Ping timeout: 245 seconds]
danno1 has quit [Ping timeout: 240 seconds]
george2 has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
<oniMaker>
ok, the only ruby binary I see is one at /etc/alternatives/ruby
<oniMaker>
I can't remember when that was installed or how it was done
<oniMaker>
though I see entries for ruby1.8 in apt-get installed packages
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kennym has joined #ruby
The_NetZ_ has joined #ruby
<oniMaker>
removed 1.8 from apt-get, then it updated /usr/bin/ruby
<oniMaker>
update-alternatives: using /usr/bin/ruby1.9.1 to provide /usr/bin/ruby (ruby) in auto mode.
marcdel has joined #ruby
The_NetZ has quit [Ping timeout: 265 seconds]
<shevy>
debian makes me sad
<oniMaker>
now bundle is complaining about a missing 1.8
<oniMaker>
is there a sane way for this to be set up?
freerobby has joined #ruby
<oniMaker>
I don't even see how bundler is installed... gem doesn't list it
The_NetZ has joined #ruby
<oniMaker>
shevy: why?
jwingfi has quit [Remote host closed the connection]
<shevy>
oniMaker because you have to run extra loops just to make your build sane
<oniMaker>
shevy: what's a better alternative?
jwingfi has joined #ruby
The_NetZ_ has quit [Ping timeout: 240 seconds]
<shevy>
compiling from source
<oniMaker>
that's different for debian?
<shevy>
of course they also compile from source
<shevy>
but they split up the compiled parts into separate packages
jamto11 has joined #ruby
Axsuul_ has quit [Ping timeout: 264 seconds]
<shevy>
there is no guarantee for your ruby install to be "as-is" compared to the source archives
<shevy>
for instance, debian hates mkmf and so removes it usually
gilest has quit [Remote host closed the connection]
kyb3r_ has quit [Quit: Leaving]
<oniMaker>
what's mkmf?
x77686d has joined #ruby
<shevy>
then there are a few other changes they do, such as defaulting to /var/lib something for your gems
vpretzel has quit [Remote host closed the connection]
<shevy>
mkmf is a part of ruby, it provides ways for some gems that require native compilation to work
<oniMaker>
I still don't have the hang of install paths on any distro... there doesn't seem to be much rhyme or reason to it
<bnagy>
anyway json just dumps your hash. If the value is a float you'll get a float, if it's a string you'll get a string
<bnagy>
so that hash will get you {"a":0.1}
pfg has joined #ruby
<Jon30>
morenoh149: it gives me 1.22e-06 once again
<morenoh149>
bnagy: yeah but he has a bigdecimal that he converts first
Splourian has left #ruby [#ruby]
<bnagy>
so?
<bnagy>
if it's a float at the time you json it, you get a float
<morenoh149>
he can't get the representation without double quotes in the first place
<Jon30>
i need it to be 0.0000121 but instead it gives me 1.22e-06
<Jon30>
yeah.. or with double quotes "0.0000121"
yasushi has joined #ruby
<morenoh149>
I have a feeling whatever you're using to display the value may implicitly add quotes to show it to you, but it may very well be unquoted. Do you have any other way of testing it?
<Jon30>
i am just using the browser to show it
<Jon30>
when doing to_i it gives me 0 without double quotes
<bnagy>
I mean.. a float is a float. A string representation is a string...
Celm has quit [Remote host closed the connection]
SHyx0rmZ has quit [Ping timeout: 255 seconds]
<oniMaker>
and what of a banana?
hurricanehackers has joined #ruby
<Jon30>
bnagy: i need the float to show with 8 decimals
<bnagy>
sounds like the cleanest thing you can do is leave it as a string and to_f if you need to use it for arithmetic
<morenoh149>
I agree with bnagy just tested a couple of scenarios. Put a string in your json and reinterpret it at the endpoint
lw has joined #ruby
dcope has left #ruby [#ruby]
<morenoh149>
bnagy: where do I find docs on the %.7f stuff?
The_NetZ has quit [Ping timeout: 265 seconds]
hurricanehackers has left #ruby [#ruby]
<Jon30>
it will slow things down :-/ i got a huge json output
iamdoo2 has joined #ruby
Splourian has joined #ruby
<bnagy>
morenoh149: Kernel#printf
timonv has joined #ruby
etqqkoiflwhb has joined #ruby
<morenoh149>
Jon30: what are you trying to accomplish? if you just pass the 1.22e-06 you'll have a float at the other end. If you want to display the data make it a string. If you want both you'll have to do both.
gilest has quit [Remote host closed the connection]
gancl has joined #ruby
<Jon30>
i need the output to have 8 decimal points
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
kennym has quit [Client Quit]
Splourian has quit [Ping timeout: 245 seconds]
jamto11_ has quit [Ping timeout: 268 seconds]
macmartine has quit [Ping timeout: 268 seconds]
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Doppp has quit [Ping timeout: 264 seconds]
gilest has quit [Remote host closed the connection]
michael_lee has joined #ruby
jamto11 has quit [Remote host closed the connection]
macmartine has joined #ruby
brunops has quit [Ping timeout: 240 seconds]
gilest has joined #ruby
chuk has joined #ruby
gilest has quit [Remote host closed the connection]
brunops has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
macmartine has quit [Remote host closed the connection]
Fraeon has joined #ruby
freerobby has quit [Quit: Leaving.]
kennym has joined #ruby
lw has quit [Quit: s]
fabrice31 has joined #ruby
mary5030 has joined #ruby
gilest has joined #ruby
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
flippant has joined #ruby
Doppp has joined #ruby
abdulsattar has joined #ruby
spacemud has quit [Ping timeout: 265 seconds]
tectonic has joined #ruby
Es0teric has joined #ruby
SparkySparkyBoom has quit [Read error: Operation timed out]
snuffeluffegus has joined #ruby
dfsahfkjhakhg has joined #ruby
<dfsahfkjhakhg>
some1 can tel me about the 'bug' with remote call to DRbObject referencing a Queue plz
dseitz has joined #ruby
kennym1 has joined #ruby
cover has quit [Remote host closed the connection]
dfsahfkjhakhg has left #ruby [#ruby]
idiocrash has joined #ruby
dfsahfkjhakhg has joined #ruby
kennym has quit [Ping timeout: 264 seconds]
oniMaker has left #ruby [#ruby]
bahar has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
bahar has joined #ruby
larissa has quit [Quit: Leaving]
magler has joined #ruby
tectonic has quit []
Cache_Money has quit [Quit: Cache_Money]
Fraeon has quit [Ping timeout: 264 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
bnagy has left #ruby [#ruby]
agent_white has quit [Quit: brb]
brunops has quit [Ping timeout: 240 seconds]
spacemud has joined #ruby
browndawg has quit [Quit: Leaving.]
chris_thomson has quit [Quit: Zzz...]
mary5030 has quit [Remote host closed the connection]
browndawg has joined #ruby
noop has joined #ruby
magler has quit [Remote host closed the connection]
sawbon3s has quit [Quit: Leaving]
chipotle has quit [Quit: cya]
bahar has quit [Ping timeout: 240 seconds]
dfsahfkjhakhg has quit [Quit: leaving]
bahar has joined #ruby
Aquilo has joined #ruby
boombadaroomba has quit [Ping timeout: 265 seconds]
agent_white has joined #ruby
noop has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
nbezzala has joined #ruby
decoponio has joined #ruby
browndawg has quit [Quit: Leaving.]
bahar has joined #ruby
browndawg has joined #ruby
browndawg has left #ruby [#ruby]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
abdulsattar has quit [Ping timeout: 265 seconds]
petey has quit [Remote host closed the connection]
petey has joined #ruby
Solnse has quit [Quit: Leaving.]
mary5030 has joined #ruby
interweb has joined #ruby
oo_ has joined #ruby
<interweb>
hello
freerobby has joined #ruby
boombadaroomba has joined #ruby
derek_c has joined #ruby
maroloccio has joined #ruby
evenix has joined #ruby
petey has quit [Ping timeout: 268 seconds]
<agent_white>
heya
rippa has joined #ruby
havenwood has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<interweb>
agent_white, I want to begin programming with one of python or ruby , which one is better to choose ?
<agent_white>
interweb: I like Ruby. But why not try both and see what fits comfortably?
freerobby has quit [Ping timeout: 265 seconds]
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has quit [Ping timeout: 255 seconds]
crystal77 has joined #ruby
lambo has joined #ruby
chichou has joined #ruby
<interweb>
agent_white, Why does python users are more active on #python ?
teddyp1cker has joined #ruby
<agent_white>
interweb: Beats me! I'm here and not in Python :) -- I hope you base your choice over the language than number of people in the IRC channel.
etqqkoiflwhb has joined #ruby
<lambo>
why my client caller crash when i try to call methode on DRbObject of a Thread::Queue ??
yasushi has joined #ruby
gilest has quit [Remote host closed the connection]
chuk has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Remote host closed the connection]
gilest has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
centrx has joined #ruby
papercode has joined #ruby
chichou has quit []
lambo has quit [Quit: leaving]
momomomomo has quit [Quit: momomomomo]
mary5030 has quit [Ping timeout: 265 seconds]
ziyadb_ has joined #ruby
arietis has joined #ruby
timonv has joined #ruby
kennym1 has quit [Quit: Leaving.]
chichou has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
timonv has quit [Ping timeout: 268 seconds]
tgkokk has joined #ruby
coderhs has joined #ruby
coderhs has quit [Remote host closed the connection]
Fraeon has joined #ruby
pfg has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 255 seconds]
<RubyPanther>
If you're not sure if you want Ruby or Python, you're probably best off with Perl
jason__ has quit [Remote host closed the connection]
freerobby has joined #ruby
mercwithamouth has joined #ruby
<centrx>
I wish we could put that in the topic
teddyp1cker has joined #ruby
nari has joined #ruby
pfg has quit [Client Quit]
browndawg has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
freerobby has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mesamoo has joined #ruby
LadyRainicorn has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
skammer has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
slawrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slawrence has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
havenwood has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
eynj has left #ruby [#ruby]
jamto11 has quit [Ping timeout: 264 seconds]
CyborgCygnus has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 265 seconds]
etqqkoiflwhb has joined #ruby
arietis has joined #ruby
meatherly has quit [Remote host closed the connection]
oniMaker has joined #ruby
<oniMaker>
When I run 'bundle exec rake secret' I get:
<oniMaker>
cannot load such file -- cookiejar
<oniMaker>
looks like it comes from the activesupport gem
meatherly has joined #ruby
<oniMaker>
what does this mean, and how can I fix it?
nanoyak has joined #ruby
brunops has joined #ruby
Jon30 has quit [Ping timeout: 268 seconds]
meatherly has quit [Ping timeout: 264 seconds]
papercode has quit [Quit: WeeChat 0.4.3]
LadyRainicorn has quit [Ping timeout: 255 seconds]
Shidash has quit [Ping timeout: 268 seconds]
LadyRainicorn has joined #ruby
rm__ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
rm_ has joined #ruby
bahar has quit [Ping timeout: 264 seconds]
bahar has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
thomasxie has quit [Quit: Leaving.]
<centrx>
oniMaker, Check your gems?
yfeldblum has joined #ruby
<oniMaker>
centrx: the cookiejar gem didn't have read permissions for group/other
<oniMaker>
centrx: is that normal?
<oniMaker>
setting them fixed it
fabrice31 has quit [Ping timeout: 255 seconds]
rm_ has quit [Ping timeout: 268 seconds]
<centrx>
oniMaker, The files in the gem itself didn't?
<oniMaker>
right
<centrx>
Yeah seems wrong
brunops has quit [Ping timeout: 264 seconds]
<oniMaker>
what sets the permissions normally?
<oniMaker>
can each gem do that?
snuffeluffegus has quit [Ping timeout: 265 seconds]
<centrx>
I don't know
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 265 seconds]
kitak has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
kitak has joined #ruby
yacks has joined #ruby
cj3kim_ has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
Splourian has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
speakingcode has joined #ruby
gancl has joined #ruby
chichou has quit []
pwh has quit []
cj3kim_ has joined #ruby
Fraeon has quit [Ping timeout: 264 seconds]
abdulsattar has joined #ruby
spacemud has quit [Ping timeout: 264 seconds]
x77686d has quit [Quit: x77686d]
Celm has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
mrnugget has joined #ruby
freerobby has joined #ruby
thomasxie has joined #ruby
ghr has joined #ruby
Splourian has quit [Quit: Page closed]
endash_ has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
freerobby has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
bahar has joined #ruby
Lucky_Red has joined #ruby
papercode has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
s3ri0us has joined #ruby
oniMaker has quit []
spacemud has joined #ruby
prs_ is now known as prs
prs has quit [Changing host]
prs has joined #ruby
adeponte has quit [Ping timeout: 255 seconds]
adeponte has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
dangerousdave has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
relix has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
Hobogrammer has joined #ruby
MatthewsFace has joined #ruby
akitada has joined #ruby
gilest has quit [Quit: Leaving...]
pierre1_ has quit [Quit: Leaving]
cj3kim_ has joined #ruby
ktosiek has joined #ruby
skaflem has joined #ruby
Celm has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
maroloccio has joined #ruby
Atw has quit [Ping timeout: 240 seconds]
Fraeon has joined #ruby
yfeldblum has joined #ruby
bahar has quit [Ping timeout: 255 seconds]
bahar has joined #ruby
Hanmac1 has joined #ruby
kitak has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
Fraeon has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
iamdoo2 has quit [Remote host closed the connection]
timonv has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
claymore has joined #ruby
toastynerd has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 268 seconds]
jonmorehouse has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
gancl has quit [Ping timeout: 265 seconds]
cj3kim_ has quit [Remote host closed the connection]
toastynerd has joined #ruby
tgkokk has quit [Remote host closed the connection]
tgkokk has joined #ruby
noocode has quit [Ping timeout: 246 seconds]
Deele has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
brunops has joined #ruby
kevinykchan has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
yasushi has joined #ruby
freerobby has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
diegoviola has quit [Remote host closed the connection]
_Andres has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
Jetchisel has joined #ruby
s3ri0us has quit [Quit: leaving]
slopjong has quit [Ping timeout: 245 seconds]
endash_ has quit [Quit: endash_]
chrisseaton has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
browndawg has quit [Read error: Connection timed out]
slawrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky_Red has quit [Quit: Leaving...]
bahar has joined #ruby
evenix has quit [Remote host closed the connection]
Jetchisel has quit [Ping timeout: 252 seconds]
yasushi has joined #ruby
jamto11 has joined #ruby
Hanmac has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
bahar has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
ktosiek has joined #ruby
yasushi has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 252 seconds]
mrnugget has joined #ruby
browndawg has quit [Read error: Connection timed out]
arietis has joined #ruby
jonmorehouse has joined #ruby
mrnugget has quit [Client Quit]
karmatr0n has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
brunops has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
Fraeon has quit [Ping timeout: 264 seconds]
tacos1de has quit [Remote host closed the connection]
tacos1de has joined #ruby
brunops has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
rm_ has joined #ruby
yfeldblum has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
yfeldblum has quit [Read error: Connection reset by peer]
nfk has joined #ruby
sski has joined #ruby
tacos1de has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 264 seconds]
deadlock has quit [Quit: fuck off]
bahar has joined #ruby
oo__ has joined #ruby
Dude007 has joined #ruby
browndawg has joined #ruby
jhass|off is now known as jhass
rm_ has quit [Ping timeout: 268 seconds]
oo_ has quit [Ping timeout: 240 seconds]
interweb has quit [Ping timeout: 265 seconds]
tacos1de has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nbezzala has quit [Ping timeout: 265 seconds]
Hanmac1 has joined #ruby
nbezzala has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
andrewlio has joined #ruby
teddyp1cker has quit [Read error: Connection timed out]
teddyp1cker has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
jason__ has joined #ruby
freerobby has joined #ruby
WormDrink has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
jason__ has quit [Ping timeout: 245 seconds]
WormDrink has joined #ruby
aagdbl has joined #ruby
CaptainJet has quit [Remote host closed the connection]
CaptainJet has joined #ruby
oo__ has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 268 seconds]
oo_ has joined #ruby
elektronaut has quit [Ping timeout: 240 seconds]
ponbiki has quit [Read error: Operation timed out]
jonatasdp has quit [Ping timeout: 240 seconds]
jaimef has quit [Ping timeout: 268 seconds]
ponbiki has joined #ruby
ponbiki is now known as Guest56776
Nss has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
nbezzala has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 265 seconds]
CaptainJet has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Remote host closed the connection]
klaut_ has joined #ruby
bahar has quit [Ping timeout: 255 seconds]
browndawg has quit [Read error: Connection timed out]
CaptainJet has joined #ruby
elektronaut has joined #ruby
tgkokk has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mengu has joined #ruby
bahar has joined #ruby
browndawg has joined #ruby
Fraeon has joined #ruby
rahult_ is now known as rahult
rylev has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
relix has joined #ruby
jaimef has joined #ruby
jackneill has joined #ruby
jonmorehouse has quit [Ping timeout: 255 seconds]
Speed has joined #ruby
carif has joined #ruby
rylev has quit [Remote host closed the connection]
carraroj has joined #ruby
Xeago has joined #ruby
carif has quit [Ping timeout: 240 seconds]
kimiamania has joined #ruby
petey has joined #ruby
morenoh149 has quit [Ping timeout: 264 seconds]
jzigmund has quit [Ping timeout: 240 seconds]
carif has joined #ruby
timonv has joined #ruby
elaptics`away is now known as elaptics
klaut_ has quit []
Rainicorn has joined #ruby
timonv has quit [Read error: Operation timed out]
petey has quit [Ping timeout: 265 seconds]
LadyR has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
danux has joined #ruby
yasushi has joined #ruby
gancl has joined #ruby
jespada has joined #ruby
Rainicorn has quit [Ping timeout: 255 seconds]
LadyR is now known as LadyRainicorn
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
montyboy has joined #ruby
montyboy has quit [Client Quit]
klaut has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yasushi has quit [Ping timeout: 265 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
montyboy has joined #ruby
Fraeon has quit [Ping timeout: 265 seconds]
Fraeon has joined #ruby
rm_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
browndawg has quit [Read error: Connection timed out]
mehlah has joined #ruby
bijumon has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bijumon>
hi, is /^([A-Za-z]+)/ correct for matching alpha numeric words starting with a character
browndawg has joined #ruby
<LadyRainicorn>
no.
rm_ has quit [Ping timeout: 265 seconds]
<jhass>
posix defines alphanumeric to A-Za-z0-9
<bijumon>
LadyRainicorn: can u help me understand? a bit confused
<LadyRainicorn>
That matches the first letters at the beginning of a line.
Lucky_Red has joined #ruby
<bijumon>
i'm trying to assert_match a username
Alina-malina has quit [Read error: Connection reset by peer]
<jhass>
I'm not aware of _the_ specification for valid usernames
<jhass>
so you need to get a little more specific
<LadyRainicorn>
you likely want /\A\w+\z/
mengu has quit [Remote host closed the connection]
<LadyRainicorn>
Isn't there a specific alphanumeric thing in Rails?
relix has joined #ruby
Alina-malina has joined #ruby
<bijumon>
alphanumeric chars but starts with a letter
<bijumon>
^[A-Za-z](A-Za-z0-9*+) is correct?
<LadyRainicorn>
No.
monkegjinni has joined #ruby
<jhass>
LadyRainicorn: there's [[:alnum:]] for the unicode class, but I think that's broader than posix definition, \w already is
carif has quit [Ping timeout: 265 seconds]
<LadyRainicorn>
Then /\A[A-Za-z]\w+\z/
Speed has quit [Ping timeout: 264 seconds]
<LadyRainicorn>
I meant a Rails validation thingy
<bijumon>
LadyRainicorn, yea, i just figured that , cool tyvm
aspiers has quit [Ping timeout: 246 seconds]
<Hanmac1>
there is also /[[:upper:]]/ ;P
kennym has joined #ruby
glen has joined #ruby
rahult is now known as rahult_
<bijumon>
/\A[A-Za-z]\w+\z/ looks about right
relix has quit [Client Quit]
<glen>
hey. i would like to make wrapper function that takes optional hash params and makes them all into block calls, something like this: http://sprunge.us/RQGA
<jhass>
bijumon: note that \w includes underscores
kennym has quit [Client Quit]
Alina-malina has quit [Read error: Connection reset by peer]
<jhass>
glen: it's not entirely clear what you want
pfg has joined #ruby
<glen>
i.e i want to write: wrap_block 'mucus', :port => 3316, :innodb => false
arietis has joined #ruby
<glen>
which will do something like: cacti_graph_mysql 'mucus' do port 3316; innodb false end
<jhass>
you want the block to return the hash?
<jhass>
ah you want to call the methods in the hash keys
Alina-malina has joined #ruby
<glen>
i think, i want hash to be convert to block or something
<jhass>
params.each do |method, param| public_send(method, param); end;
<jhass>
depending on your DSL you have to use send instead of public_send
<glen>
and that syntax i presented, it will appear as params?
<glen>
i mean the :port and :innodb are kind of optional hash or something
timonv has joined #ruby
<jhass>
then additionally do def wrap_block(name, params={})
<glen>
and also, the "name" funciton parameter is not optional
<Hanmac1>
in newer ruby you can use def wrap_block(name, **params) for the optional parameters
monkegjinni has quit [Remote host closed the connection]
kitak_ has joined #ruby
mehlah has quit [Quit: Leaving...]
arietis has joined #ruby
temaaa has joined #ruby
LadyRainicorn has quit [Ping timeout: 265 seconds]
ViPi2 has joined #ruby
tgkokk has quit [Ping timeout: 255 seconds]
jason__ has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
nuck has quit [Ping timeout: 240 seconds]
jason__ has quit [Ping timeout: 245 seconds]
aef has quit [Remote host closed the connection]
nuck has joined #ruby
banister has joined #ruby
ViPi2 has quit [Quit: Computer has gone to sleep.]
popl has quit [Ping timeout: 264 seconds]
eka has joined #ruby
<Xeago>
when I do require 'gemname'
<Xeago>
Can I get to know where the gem was found?
<Xeago>
for some reason gem list shows no gems, but I can still require it :\
<Hanmac1>
Xeago: $LOADED_FEATURES
Hanmac1 is now known as Hanmac
temaaa has quit [Quit: Pfxtv ns 'nj xbnftim&]
<Xeago>
Hanmac: that shows gemname.rb, but not the path to genmane
<Hanmac>
hm for me it shows paths :/
Fraeon has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
<apeiros>
as of 1.9 $LOADED_FEATURES should contain absolute paths
SparkySparkyBoom has quit [Remote host closed the connection]
kitak__ has joined #ruby
yfeldblum has joined #ruby
caustic has joined #ruby
LadyRainicorn has joined #ruby
rm_ has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
gancl has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<Xeago>
bag :/
<Xeago>
is there trickery I can do before 1.9?
<Xeago>
I'll install 1.9
jollyy has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
jollyy has quit [Client Quit]
<atmosx>
hello
jonaskindler has joined #ruby
Hanmac1 has joined #ruby
<atmosx>
I want to create a calendar for an appointments RoR page any ideas on which gem to use/how to proceed? I need to display appointes (time and date) in an *acceptable* manner :-)
<jonaskindler>
Hey I got a question. I
hiall has joined #ruby
<jonaskindler>
m new to ruby and uesd rbenv to install 2.1.1 on my computer. just tried to install a gem but i get “You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory"
<jonaskindler>
I used rbenv global 2.1.1 (which is my custom installation)
<jonaskindler>
am i missing something?
bijumon has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 268 seconds]
teddyp1cker has quit [Remote host closed the connection]
<Xeago>
jonaskindler: you haven't switched yet to your installed ruby
jle` has quit [Quit: WeeChat 0.4.2]
<Xeago>
it seems you are still using system ruby
<jonaskindler>
I think i dont. ‘rbenv version’ gets me my custom installed ruby
<Xeago>
rbenv version just lists
fabrice31 has joined #ruby
<Xeago>
is there an asterisk next to it?
<jonaskindler>
yes.
<Xeago>
what does `which ruby` output?
lxsameer has quit [Quit: Leaving]
freerobby has joined #ruby
<jonaskindler>
‘/usr/bin/ruby’
chipotle has quit [Ping timeout: 255 seconds]
r_rios has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiall has quit [Ping timeout: 240 seconds]
Fraeon has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
hiall has joined #ruby
gancl has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
bahar has quit [Ping timeout: 264 seconds]
bahar has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
Fraeon has quit [Ping timeout: 264 seconds]
gancl has joined #ruby
oo_ has joined #ruby
WillAmes has quit [Remote host closed the connection]
freggles has quit [Remote host closed the connection]
<bawNg>
Even more useful when embedded into EventMachine based applications, but can be used for blocking web servers too
freggles has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
<shevy>
what do you guys think about flexible APIs
<shevy>
def foo(a, b = nil)
<shevy>
b could be a string, a hash, a symbol
<shevy>
some symbols or hashes could control the behaviour (settings) of the other arguments
<bawNg>
It enables a game-like dev console on the web front end for logged in devs which can be toggled with the tilda key, that acts as a remote REPL interface into your backend, evaluating entered lines and serializing the response the json
Justi is now known as jousseti
jousseti is now known as Jousse
linojon has joined #ruby
bahar has joined #ruby
<bawNg>
It also syntax highlights the json response, wraps exception backtraces in a scollable area and includes tab competion for code
<bawNg>
shevy: I have nothing wrong with dynamic APIs like that, as long as their behavior is well defined
<bawNg>
It also often makes more sense to make b a options hash
<shevy>
well that's the thing
<bawNg>
*an options hash
Jousse is now known as Justi
<shevy>
the more dynamic it is, the more complicated such methods become
<bawNg>
It depends on the method, often it makes sense for functionality to be dynamic
<bawNg>
I don't like defining [](obj) on certain classes like models which accepts various kinds of objects for convenience
<bawNg>
Unless used for a DSL-like implementation
<shevy>
you mean def self.[](obj) ?
<bawNg>
I do so in some cases where that method handles caching of model instances
<bawNg>
Yeah
<shevy>
hehe
browndawg has joined #ruby
<shevy>
for some time I used that for mini classes
<bawNg>
So that would accept an ID or name for lookups
<shevy>
where self.[] was the only method they had added :)
freggles has quit [Remote host closed the connection]
<bawNg>
Hah, that is a bit extreme :P
<shevy>
RemoveDirectory['/tmp/test']
<shevy>
yeah
jamto11_ has joined #ruby
lolmaus has joined #ruby
<bawNg>
I'd far prefer monkey patching Dir.remove()
benzrf|offline is now known as benzrf
mikecmpbll has joined #ruby
Justi is now known as bobert
freggles has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
crystal77 has joined #ruby
zachallett has joined #ruby
jamto11_ has quit [Ping timeout: 252 seconds]
<jhass>
shevy: don't overload your methods, if the caller has to specify the mode of operation anyhow, he can do that just well in the method name. Of course it's hard to argue without a specific case at hand
evenix has joined #ruby
<shevy>
in the method name?
<Xeago>
Puppet is pretty much written in that style
<Xeago>
where RemoveDirectory['path'] returns a resource description instead (of type RemoveDirectory < Resource
<Xeago>
)
<Xeago>
and then later when a dependency graph is set up and traveled, you call resource.execute
arianit has joined #ruby
danux has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130917154333]]
<Xeago>
Quite a common idiom when your program consists of a planning and execution phase
<shevy>
hmm
pothibo has joined #ruby
<jhass>
shevy: def strip_and_truncate; def truncate; def strip; vs. def handle_text text, options={}; if options[:strip]; if options[:truncate]; end
<jhass>
the first is to prefer IMO
sqlnoob has joined #ruby
dangerousdave has joined #ruby
monkegji_ has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
<Xeago>
isn't strip and truncate chomp?
<jhass>
shevy didn't provide an example to his question so I totally made something up
mrnugget has quit [Quit: mrnugget]
<jhass>
don't care about the operations
dangerousdave has quit [Client Quit]
<shevy>
well
<shevy>
in the latter case the second argument is a hash
<shevy>
what if you also want to call:
<shevy>
handle_text 'bla', :truncate
spider-mario has quit [Remote host closed the connection]
<jhass>
I'm saying you don't want a method that accepts that, instead you want to have truncate 'bla'
TheMoonMaster has quit [Excess Flood]
<bawNg>
I'd say handle_text :truncate, 'bla' or better yet another wrapper: def truncate(text); handle_text(:truncate, text) end
<sqlnoob>
Trying to install bundler 1.0.10. How do I specify particular version of bundler with gems?
kennym has quit [Quit: Leaving.]
<jhass>
no, truncate_and_strip is a wrapper around truncate and strip, def truncate_and_strip text; truncate strip text; end
<shevy>
jhass well in your examples you only work with tiny methods
maletor has quit [Quit: Computer has gone to sleep.]
<erobtom>
Hey, I need a small help for ruby in puppet. I need a loop through a list of hostnames but for each hostname I need to print it’s ID [ 0, 1, 2, …]. For now I have something like this:
<benzrf>
alright, i already had system ruby from my pacman
<erobtom>
<% @hostnames.each do |hostname| -%>
<mr_snowf1ake>
benzrf: tho havenwood is strongly pushing chruby, it doesn't really matter that much which one you use. they all do their job well.
<benzrf>
*pkg manager, not on arch
<erobtom>
<%= i++ %> <%= hostname %>
<mr_snowf1ake>
benzrf, don't worry about the system ruby.
<erobtom>
<% end -%>
<mr_snowf1ake>
benzrf, just leave it be
<benzrf>
erobtom: ruby does not have ++
<benzrf>
erobtom: use +=
<erobtom>
:(
Xeago has joined #ruby
toastynerd has joined #ruby
<mr_snowf1ake>
erobtom, use i += 1
<erobtom>
Do I need decalre i as 0 before the loop ?
<jhass>
error404: each_with_index do |hostname, i|
<benzrf>
erobtom: anyway the correct solution is to use each_with_index do |hostname, ItSANgo |
<benzrf>
*i not ItSANgo
dangerousdave has joined #ruby
<jhass>
er, erobtom ^, sorry error404
slopjong has joined #ruby
<mr_snowf1ake>
erobtom, as jhass said, each_with_index. sry, i didn't see you were using it as an index.
mrnugget has joined #ruby
<erobtom>
ok
<erobtom>
so it will be:
<erobtom>
<% @hostnames. each_with_index do |hostname, i| -%>
<erobtom>
<%= i %> <%= hostname %>
<erobtom>
<% end -%>
<benzrf>
sure
<benzrf>
erobtom: why not just an ol to
<benzrf>
*tho
<havenwood>
mr_snowf1ake: rbenv user?
<jhass>
benzrf: oh, you're on arch? consider my approach: chruby + (my) ruby packages from the AUR
<benzrf>
jhass: no im on unutu
<mr_snowf1ake>
havenwood: i just use rvm out of habit
<benzrf>
*ubuntu
<benzrf>
12:21 < benzrf> *pkg manager, not on arch
<benzrf>
i referred to apt as 'my pacman'
<erobtom>
Guys, thanks for you HELP !!!
<benzrf>
then realized that could sound confusing
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
* Hanmac
is on ubuntu but a bloody stupid nightly user
<havenwood>
mr_snowf1ake: RVM is nice for those not conformable with unix or if you need to install old Rubies on old systems, it has the patches and funky stuff.
chipotle has joined #ruby
<havenwood>
mr_snowf1ake: looked at RVM2 at all?
<havenwood>
conformable, lol
<havenwood>
i need more coffee
<benzrf>
i only have chruby-exec
<benzrf>
no chruby o-O
<jhass>
you did source /usr/.../chruby.sh ?
<Hanmac>
benzrf: \o i think i found an image of the Busar wearing a "you dont need to be crazy to work there but it helps"-Tshirt ;P
bawNg has quit [Ping timeout: 265 seconds]
<benzrf>
oh shit
<Elico>
I have another question.
<Elico>
I have seen in the past something like a transformer that connects to multiple backends together to allow caching. was it moneta?
<havenwood>
Hanmac: andrewvos recommended discworld too, now i've really got to read it!
<benzrf>
havenwood: god damn
<havenwood>
Hanmac: nope, not familiar but will be soon
<benzrf>
read it already jesus
weeb1e has quit [Ping timeout: 264 seconds]
<havenwood>
:)
<Hanmac>
havenwood: you need to start fast or he writes "YetAnotherBook" ;P
<benzrf>
Hanmac: 2late
<benzrf>
another one came out about a week ago
bruno- has quit [Ping timeout: 255 seconds]
jamto11_ has joined #ruby
x77686d has joined #ruby
dx7 has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 252 seconds]
<benzrf>
havenwood: read em in publishing order imo
<benzrf>
actually
kitak has quit [Remote host closed the connection]
<benzrf>
read guards guards first to get a taste for it
<benzrf>
then read in chrono order
<Hanmac>
! i think i didnt bought it yet (i buy the books twice, once in english and then again in my own language (german))
jamto11 has quit [Remote host closed the connection]
kitak has joined #ruby
toastynerd has quit [Remote host closed the connection]
<mr_snowf1ake>
havenwood: actually, i haven't really looked. you're right tho, i might be better off with something else just because i like having fairly close control over my system, and i also build a lot of the versions of ruby i have from source
AlexRussia has quit [Ping timeout: 255 seconds]
UserNameInvalid has quit [Ping timeout: 240 seconds]
<havenwood>
benzrf: looks like i've got a *lot* of reading to do...
jamto11_ has quit [Ping timeout: 252 seconds]
weeb1e has joined #ruby
<benzrf>
havenwood: there are 40 atmosx
<benzrf>
*atm
<benzrf>
havenwood: soon you will be HAPPY for that
<benzrf>
ok why is 'chruby' not a command i can use
<Hanmac>
havenwood & benzrf "and that isnt even my final form"-joke ... that linked reading guide isnt even complete ;D ... i think he wrote so many books to anoy the reading guide makers ;P
<jhass>
benzrf: because it needs to affect the environment of your shell and a process spawned from a process can't affect the environment of it's parent
<benzrf>
wut
<benzrf>
oh
<benzrf>
jhass: what do i do
<jhass>
oh, you still didn't source chruby.sh?
<benzrf>
ahuman:
<benzrf>
*ah
<jhass>
I thought you ask why you have to
<benzrf>
i failed to notice this suggestion
<benzrf>
>.>
<benzrf>
no
<jhass>
btw. do you press tab after every letter or...
<benzrf>
uhhhh
<benzrf>
maybe
<shevy>
haha
<benzrf>
im fidgety -.-
<shevy>
get a better IRC client man
<benzrf>
=[
enebo has joined #ruby
<benzrf>
chruby auto handles my binaries right
<benzrf>
i.e. chruby jruby && gem will be jruby gem
* consti
Something like this (using ActiveRecord from Rails in that case, but that's not important):Object.all.first.send(:my_accessor=, other_my_accessor).return_the_object
<consti>
Something like this (using ActiveRecord from Rails in that case, but that's not important): Object.all.first.send(:my_accessor=, other_my_accessor).return_the_object
absolutezeroff has joined #ruby
momomomomo has joined #ruby
<benzrf>
ERROR: Could not find a valid gem 'mirah' (>= 0), here is why: Found mirah (0.1.2), but was for platform java
<benzrf>
wat
tkuchiki has quit [Ping timeout: 255 seconds]
<benzrf>
my current gem IS jruby
<benzrf>
*gem binary
<Hanmac>
benzrf: so jruby and java are finally incompatible ? ;P
<benzrf>
D=
<benzrf>
ah wait
<benzrf>
i see, i was using sudo
<benzrf>
derp derp
<mr_snowf1ake>
lol
<mr_snowf1ake>
that would do it.
<mr_snowf1ake>
so you were trying to install onto system ruby?
slopjong has quit [Ping timeout: 245 seconds]
<jhass>
consti: I think you want Object#tap
<benzrf>
>tfw java takes for-fuckin-ever to start
<consti>
jhass: ah right.. I used that somewhere but forgot ;) thanks!
<jhass>
benzrf: you're on java 8 yet? they got lambdas! :D
<benzrf>
so ive heard o.O
<benzrf>
g2g tho :I
<benzrf>
bbloom:
<benzrf>
*bbl
<bbloom>
benzrf: that's the third time you've done that
framling has joined #ruby
<bbloom>
benzrf: easy on the tag completion!
benzrf is now known as benzrf|offline
<bbloom>
s/tag/tab
einarj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
heftig has quit [Quit: Quitting]
oo_ has joined #ruby
lambo has joined #ruby
Cache_Money has joined #ruby
arietis has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
r_rios has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
hfp is now known as hfp`away
jamto11 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
jespada has quit [Read error: Operation timed out]
rrios has quit [Ping timeout: 255 seconds]
UserNameInvalid has joined #ruby
<lambo>
why cant I see whats going on there ? msg me plz
<Xeago>
Hanmac: why not debian or openbsd
<lambo>
why cant I see whats going on there ? msg me plz
<crome>
lambo: we cant msg you as we don't see what you write
ktosiek has joined #ruby
<lambo>
why nobody speeks , need i do something else than the || past 3 line stuff?
arietis has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
prs has joined #ruby
fflush has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
<lambo>
^^ well I was wondering I m reading the dRuby book snipset and I got trouble with using Queue instance from DRbObject : segmentation fault when deq empty Queue or enq SizedQueue
<jhass>
provide a minimal example reproducing your problem
quatron has joined #ruby
wallerdev has joined #ruby
greggroth has joined #ruby
Justi is now known as bobert
<lambo>
q = Queue.new; DRb.start_service(uri, q) then from "client" side there = DRbObject.new_with_uri(uri); and as soon ass the queue is empty or full in case ok SizedQueue instande of locking it crash (it works fine until the caller thread is supposed to lock)
sepp2k has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
oo_ has joined #ruby
amclain has joined #ruby
<lambo>
as soon as I deq an empty remote queue or enq a full one I got a segmentation fault
peta__ has quit [Quit: peta__]
<havenwood>
lambo: what version of Ruby are you on?
<jhass>
lambo: can't reproduce on 2.1.1
keppy has quit [Ping timeout: 255 seconds]
<havenwood>
lambo: my suspicion would be it might work in 2.0.0 and 2.1.1, just not 2.1.0
timonv has quit [Remote host closed the connection]
prs has quit [Ping timeout: 260 seconds]
evenix has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
prs has joined #ruby
<jhass>
lambo: no need for query, yes I mean it works fine with my 2.1.1, inside pry even
rvraghav93 has quit [Ping timeout: 265 seconds]
<jhass>
I didn't test any of my other rubies
prs has quit [Ping timeout: 260 seconds]
TripTastic has joined #ruby
Xeago has quit [Remote host closed the connection]
pabloh has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
fflush has quit [Quit: fflush]
IceDragon has joined #ruby
wallerdev has quit [Quit: wallerdev]
jamto11 has joined #ruby
Nss has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
CaptainJet has joined #ruby
<lambo>
havenwood told me that too so its all good :)
prs has joined #ruby
nolic has quit [Remote host closed the connection]
<lambo>
anyway thanks cu
lambo has quit [Quit: leaving]
fabrice31 has joined #ruby
keppy has joined #ruby
bobert has quit []
cj3kim has joined #ruby
timonv has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
cj3kim has quit [Remote host closed the connection]
Briareos1 has joined #ruby
greggroth has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
yacks has quit [Ping timeout: 268 seconds]
x77686d has quit [Quit: x77686d]
mary5030 has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
petey has joined #ruby
mary5030 has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
mfkp has joined #ruby
justinxreese has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
jamto11_ has quit [Ping timeout: 255 seconds]
hamakn has quit [Remote host closed the connection]
vasilakisFiL has joined #ruby
hamakn has joined #ruby
s3ri0us has joined #ruby
centrx has joined #ruby
fflush has quit [Quit: fflush]
<vasilakisFiL>
hi! do you know any library in ruby that imitates the rabbitmq but with minimal requirements? I just need a queue to stack callbacks which I want them to be executed after a specific time...
<centrx>
DelayedJob?
<momomomomo>
ick dont use delayed job
<momomomomo>
:D
<s3ri0us>
sidekiq?
<jhass>
is that even still maintained?
<momomomomo>
just kidding, it doesn’t require any external dependencies,
<jhass>
delayjob that is
benzrf|offline is now known as benzrf
<jhass>
vasilakisFiL: you could just use a Thread and a Queue
<momomomomo>
s3ri0us: sidekiq is for processing jobs; it has a queue to do that, but it’s not just for queing
<s3ri0us>
sorry
<vasilakisFiL>
and how the callbacks will be called in specific time jhass? by polling ?
<jhass>
vasilakisFiL: what does "specific time" even mean?
<vasilakisFiL>
in 300 seconds for instance
sepp2k1 has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
<jhass>
are the jobs ordered, that is you'll never push a job onto the queue that should run either sooner or later than the existing ones?
<vasilakisFiL>
no they are random
<jhass>
if your callbacks are conflict free / atomic you could just spawn threads that sleep for your delay time before doing anything
Doppp has quit [Ping timeout: 255 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
<jhass>
combine that with a thread pool if you have lots
bahar has joined #ruby
bklane has quit [Quit: Leaving...]
<vasilakisFiL>
hmm yeah ok but I don't think it is very efficient
<jhass>
but if you have lots you do should seek for not homebrew solution anyway I guess
<vasilakisFiL>
rufus scheduler seems also interesting
vakymal has joined #ruby
<jhass>
what's your actual application for this?
<vasilakisFiL>
an web email server which also lets the user to send emails after some delay if they want to
sambao21 has joined #ruby
mfkp has joined #ruby
<jhass>
that sounds like an excellent job for sidekiq
<jhass>
though that requires redis
havenwood has quit []
timonv has joined #ruby
jarray52 has left #ruby [#ruby]
mfkp has quit [Ping timeout: 252 seconds]
Aquilo has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
phansch has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
<jkmcrg>
Hello. Is there any way to access an instance variable that shares a name with another variable’s contents? Like, if @james = ‘asdf’, and var_name = ‘james’, how can I access the contents of @james through var_name?
<shevy>
jkmcrg your question is hard to understand
<jkmcrg>
Alright, maybe if I show what I have tried.
<jkmcrg>
@james = ‘asdf’
<jkmcrg>
var_name = ‘james’
<j416>
jkmcrg: instance_variable_get("@#{james}")
<jkmcrg>
@(eval(var_name)) #should access ‘asdf'?
_Andres has joined #ruby
<j416>
aha, your var is var_name
<shevy>
you can obtain all these variables via Kernel.local_variables and instance_variables
<shevy>
once you have the array of both, you can return a subset through a method that gives you back all matches
<shevy>
and if there is at least one match, you can continue to obtain the content
<jkmcrg>
Woo! Thanks j416 that was it
<j416>
yw
<j416>
jkmcrg: not sure what you're doing, but you might just want to think through your solution one more time to see if you can't solve it without meta programming. It's not very clean. :)
<jkmcrg>
Maybe so, I will weigh my options.
peta_ has joined #ruby
peta__ has joined #ruby
cocotton has joined #ruby
osvico has quit [Read error: Connection reset by peer]
relix has joined #ruby
osvico has joined #ruby
<cocotton>
Hey channel! I've been sorting a hash with Hash[myhash.sort] method. But I was wondering, is there a way to select a key and its values and send them to the "end" of the hash? That way, when I'll loop over the hash, I'll get this key and its value last
Guest48629 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sdouglas has joined #ruby
peta_ has quit [Ping timeout: 265 seconds]
<shevy>
.map{|l|trap(l){$r.stop}
<shevy>
almost sinatra code
<shevy>
what is $r.stop ?
<jhass>
cocotton: you shouldn't rely rely on the order of a hash, while the docs state since 1.9 that hashes are ordered by insertion order it still feels like an implementation side effect
fabrice31 has joined #ruby
<jhass>
shevy: isn't $r assigned somewhere?
<shevy>
hmm
<shevy>
%w( rack tilt date INT TERM ).map {|l|trap(l){$r.stop}
<canton7>
yeah, you never actually require factory_girl
<toretore>
.png
<canton7>
the gemfile says what gems should be installed in order for the project to function
<canton7>
it doesn't magically include the files you need in the files that need them
<jhass>
as said, Bundler.require otoh does
zigomir has quit [Ping timeout: 255 seconds]
<jpstokes>
looks like Bundler.require works...thanks
spyderman4g63 has quit [Ping timeout: 240 seconds]
dseitz has joined #ruby
vasilakisFiL has left #ruby ["Konversation terminated!"]
teddyp1cker has joined #ruby
<jhass>
jpstokes: time to look up and understand what it does
lw has joined #ruby
<jpstokes>
well that works to get rid of the uninitialize constant but it's not finding my definitions...the doc just says to install the gem it didn't say anything about putting require statements in so I'm a bit lost...i'm guess now I need to requirement my factory files
crystal77 has quit [Quit: Computer has gone to sleep.]
<jpstokes>
well that works to get rid of the uninitialize constant but it's not finding my definitions...the doc just says to install the gem it didn't say anything about putting require statements in so I'm a bit lost...i'm guess now I need to require my factory files
coffeina has quit [Quit: Wychodzi]
<jhass>
that came through the first time
<jpstokes>
^correction
<canton7>
this is pretty elementary ruby. most people assume you know the basics
The_NetZ has joined #ruby
<The_NetZ>
hey. any way to make extconf.rb produce a debug makefile?
reset has quit [Quit: Leaving...]
<jpstokes>
All I've done so far is build simple apps and mostly use rails...now I'm trying to implement some of the gems I've used with rails in a ruby only app...sorry for my ignorances but if the instructions doesn't say to require your files then I don't know
cocotton has quit [Quit: Page closed]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<The_NetZ>
dafuq? modruby.net is japanese o.0
teddyp1cker has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
popl has joined #ruby
popl has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
dapz has joined #ruby
Nyyx has joined #ruby
CaptainJet has joined #ruby
Czupa has quit [Remote host closed the connection]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
AlexRussia has joined #ruby
cashnguns has joined #ruby
freezey has quit [Remote host closed the connection]
jamto11 has joined #ruby
vpretzel has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 268 seconds]
CaptainJet has joined #ruby
vpretzel has joined #ruby
gogiel has joined #ruby
freerobby has joined #ruby
jkmcrg has quit [Quit: jkmcrg]
freerobby has quit [Client Quit]
jwingfi has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
jwingfi has joined #ruby
sethen has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
Azure has joined #ruby
AlSquire has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
<shevy>
dafuq
<shevy>
ruby was written by a japanese dude
<centrx>
Have you been living in a cave?
<The_NetZ>
shevy: yeah, I know. matz
Azure has quit [Read error: Connection reset by peer]
<shevy>
there are many japanese with rather weak english skills, and perhaps they are also lazy so they will default to japanese docu and don't care about english much
<LadyRainicorn>
Azure has joined #ruby
timonv has quit [Remote host closed the connection]
<The_NetZ>
just find it funny; I've spoke japanese here and got scolded for it before, and yet a japanese site was linked to me when I joined the channel XD
morenoh149 has joined #ruby
<The_NetZ>
I'm having an issue requireing my built shared object; undefined symbol: Init_rect, where rect.so is the library and Rect is the class defined therein.
<The_NetZ>
any insight?
keppy has quit [Ping timeout: 265 seconds]
CaptainJet has joined #ruby
sqlnoob has quit [Quit: FOSS enthusiast]
monkegjinni has joined #ruby
itadder has joined #ruby
<dorei>
The_NetZ: try nm rect.so | grep Init_rect so as to be sure that the symbol really exists in rect.so
<The_NetZ>
dorei: will do
jackneill has quit [Quit: WeeChat 0.4.3]
<dorei>
hmm, maybe nm is not the way, also try readelf --syms rect.so | grep Init_rect
<Hanmac1>
The_NetZ: did you maybe forgot the ( extern "C" ) part?
<The_NetZ>
dorei: thankyou. you pointed me at something I had missed. I am writing in c++, so I checked rbSFML's Init_ methods; and it uses extern "C" before them :P
Hanmac1 is now known as Hanmac
mostlybadfly has joined #ruby
<The_NetZ>
I had previously changed Init_rect to Init_Rect for test purposes, and forgot to change it back after adding the extern "C" bit :P
benlieb has joined #ruby
s3ri0us has joined #ruby
<The_NetZ>
so, problem solved and extension works :D
<benlieb>
I'm trying to do this, which obviously doesn't work. Is there another option without using the ternary? :class => 'on' if is_search_for_request?
<benlieb>
I guess I'd have to supply something though, so duh
<shevy>
it distorts and distracts from the visual beauty
<shevy>
The_NetZ good! now make it into a gem
<benlieb>
that > is a paste errror
<shevy>
(1) add an EXAMPLE file or similar to show how to use your library and (2) write a .gemspec (less than 10 lines it has) and you are ready to go
<The_NetZ>
shevy: hehe, already working on the gemspec :P
alexju has quit [Remote host closed the connection]
sambao21 has joined #ruby
<shevy>
ok so you have (2) covered
<shevy>
don't forget (1)
fflush has joined #ruby
s3ri0us has quit [Ping timeout: 265 seconds]
<shevy>
benlieb problem with the ternary is that, as far as if/else conditional are concerned, the ternary solution is already pretty much the shortest way to go
noob101 has joined #ruby
<noob101>
Hello, I am a new to the programming world. I decided to become a rubyist.
<shevy>
you could try to modify your hash via methods
<shevy>
set :on if is_search_for_request?
<benlieb>
oh just looked that up, the > is an haml thing that makes the output stay on the line above
<The_NetZ>
noob101: join the club :P
<shevy>
ewwww
<shevy>
evil templates
<shevy>
noob101 haven't you been to #ruby before??
alexju has joined #ruby
jamto11_ has joined #ruby
<benzrf>
benlieb: there can only be one ben!
<benzrf>
i challenge u to a ruby due
<benzrf>
l
<shevy>
benzrf,
<shevy>
benlieb,
<shevy>
haha
<shevy>
tab completion mastery
<shevy>
benzrf please write "benevolent"
<benzrf>
benevolent
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Quit: Konversation terminated!]
<jhass>
noob101: you're close, easiest way is to fire up irb and enter the second argument to assert_equal
<jhass>
noob101: or actually to reproduce the exception and look at it
<noob101>
jhass, thank you for helping me. Now I have been working on this all day.
<jhass>
noob101: actually the error sort of tells you already: The answers which you seek:
<jhass>
<nil> expected but was <NoMethodError>.
<noob101>
jhass, yes!
dangerousdave has quit [Ping timeout: 268 seconds]
<noob101>
jhass, I put that but it says something else.
<jhass>
you put what in exactly
<noob101>
jhass, then I put in what that said then it said syntax error.
<noob101>
Ok, give me a second please.
ToTheInternet has joined #ruby
<noob101>
jhass, it said "expected to be <NoMethodError> right?
<noob101>
I put that in and got this message => "<"undefined method `some_method_nil_doesnt_know_about' for nil:NilClass"> expected to be =~ </ex/>."
<jhass>
noob101: you provide what to expect, not what's actually there
<noob101>
jhass, when I got that message I put in ex, </ex/> and /ex/.
<jhass>
noob101: the first argument to assert_equal is what to expect, the second is what's it actually is
<shevy>
<ex><girlfriend>
<noob101>
I am so confused. I am sorry jhass.
<ToTheInternet>
hi. i'm getting this passenger error from my redmine installation: http://paste2.org/GDOZwKvV anyone have an idea how to fix it?
peterhellberg has quit []
<jhass>
ToTheInternet: make sure the ruby your passenger runs under has bundler installed
supermarin has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
supermar_ has joined #ruby
supermar_ has quit [Client Quit]
skammer has joined #ruby
<ToTheInternet>
jhass: cool.. that was easy lol. now i'm getting a different error, but thanks for now hehe :)
<noob101>
Ok jhass, can you please explain to me <NoMethodError>? I actually put in that. I was told to put in a ruby class, is that correct?
Galgorth has joined #ruby
relix has joined #ruby
<jhass>
noob101: yes, in particular it's a ruby class used by ruby to tell you that you called a method that doesn't exist
<noob101>
jhass, is it Nil?
<jhass>
no
alexju has quit [Remote host closed the connection]
<noob101>
Dang it.
<jhass>
Nil doesn't exist (unless you define it)
<jhass>
nil is an object to represent something not there
<jhass>
nil.class is NilClass
sski has joined #ruby
<noob101>
jhass, right. Am I close by any chance?
<jhass>
close to what?
<The_NetZ>
jhass: its the sound of one hand clapping
<noob101>
jhass, solving the problem, putting in a correct answer.
<jhass>
<NoMethodError> was very close
<jhass>
just make sure it's actually a Ruby class and not something you copy pasted from an error message that might have additional formatting
freerobby has quit [Quit: Leaving.]
s3ri0us has joined #ruby
<noob101>
jhass, hm. NoMethodError, I will search that up on the internet. Thank you for helping me, I really appreciate it a lot. I am 16 by the way, I am trying to learn programming.
jdjd_ has joined #ruby
<jdjd_>
So, I started learning ruby a bit ago, starting last summer.
<jdjd_>
I went through a course that walked through building a gem, then am about to finish some rspec puzzles soon.
<jdjd_>
I also took some courses in college when I went back, learned java in that. But had to stop because I couldnt afford a second degree after a year.
<jdjd_>
After these puzzles, I really want something to have fun with.
<jdjd_>
I want to build stuff.
<jdjd_>
Make things.
<jdjd_>
Does anyone have any ideas of how to make programming fun?
<Elico>
is there any rpm for centos for ruby 2.1.1 ?
Naoe-Kanno has joined #ruby
<noob101>
That's sad, you couldn't afford it. If I had the money, I would of given it to you. You seem dedicated and driven.
<jdjd_>
Programming is fun, but I want stuff to build.
SHyx0rmZ has quit [Ping timeout: 265 seconds]
<jdjd_>
Well, I am considering jumping over to android stuff.
<jdjd_>
I did a simple app in college.
s3ri0us has quit [Ping timeout: 264 seconds]
<jdjd_>
And android is in Java.
<jdjd_>
But, IDK if that is a good idae.
<jdjd_>
Idk if I should stick with ruby a bit more.
<jdjd_>
Or what I should be doing.
<benzrf>
jdjd_: jruby is pretty mature afaik
<jhass>
jdjd_: do you have something you do regularly to daily? any chance to automate it?
<jhass>
or partially automate it
<jdjd_>
jhass: I work in the finance industry.
<jdjd_>
Not aware of anything I need to automate though.
<jdjd_>
Well, there is nothing I can do in work, cause security is so high.
<jdjd_>
In personal life there isn't really any thing either.
<jdjd_>
I built a new computer though 2 weeks ago, so I have a new computer that can run anything.
<jdjd_>
It might be fun to build bots with video games.
<jdjd_>
That can fly planes or other stuff.
benlieb has quit [Quit: benlieb]
<jdjd_>
Dont know how that would work though.
<jhass>
jdjd_: nothing? like a complicated excel spreadsheet you could re-implement? :P
<jhass>
another approach is to seek though open source projects you like and find things to contribute
twiceaday has quit [Ping timeout: 265 seconds]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
<jdjd_>
I have a minecraft account, haven't played it in 2-3 years though.
<jdjd_>
Is there anything I could do in that maybe?
crystal77 has quit [Quit: Computer has gone to sleep.]
twiceaday has joined #ruby
etqqkoiflwhb has joined #ruby
m_3 has joined #ruby
<jhass>
uh, maybe, I'm not into the minecraft community
<jhass>
I've seen lower semesters here built all kinds of logic gates and what not in minecraft
<jdjd_>
Where is here for you?
<jdjd_>
I am not a player of minecraft either, it was just an idea.
<jhass>
germany, my university
etqqkoiflwhb_ has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 265 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monsieurp has quit [Quit: Lost terminal]
<benzrf>
i minecraft
lolmaus has quit [Read error: Operation timed out]
monsieurp has joined #ruby
lolmaus has joined #ruby
yfeldblum has joined #ruby
quatron has quit [Read error: Connection reset by peer]
<jdjd_>
benzrf: I will change my name, one second.
<jdjd_>
Be back.
jdjd_ has quit [Quit: Page closed]
jottr has quit [Quit: WeeChat 0.4.2]
firewater has joined #ruby
<firewater>
benzrf: Ok back.
<benzrf>
sup firewater
<benzrf>
oh wait you were firewater
<firewater>
good, do you mind if I PM you?
<benzrf>
oh shit
CaptainJet has quit [Ping timeout: 245 seconds]
<benzrf>
haha
<benzrf>
go ahead
bluOxigen has quit [Ping timeout: 265 seconds]
<firewater>
yeah, lol.
CaptainJet has joined #ruby
Celm has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
ezrios has quit [Ping timeout: 240 seconds]
CaptainJet has quit [Read error: Connection reset by peer]
phansch has quit [Quit: WeeChat 0.4.2]
peta__ has quit [Quit: peta__]
CaptainJet has joined #ruby
jottr has joined #ruby
snath has quit [Ping timeout: 265 seconds]
Celm has quit [Ping timeout: 265 seconds]
Aquilo has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
bahar has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
cover_ has joined #ruby
ezrios has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
ToTheInternet has left #ruby [#ruby]
cover has quit [Ping timeout: 265 seconds]
CaptainJet has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 264 seconds]
<atmosx>
hello
<benzrf>
hello atmosx
<benzrf>
is that atmos x, or atm osx
<atmosx>
benzrf: do you mind if I pm you? lol
snath has joined #ruby
<atmosx>
atm_osx
<benzrf>
dont mind
aspires has joined #ruby
<atmosx>
well it's a FreeBSD but anway, that was the original idea
<atmosx>
I mean the client runs on a freebsd
<atmosx>
kill it
<atmosx>
benzrf: I was j/k
<atmosx>
saw the logs above
<benzrf>
=p
sski has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
jamto11 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
maroloccio has joined #ruby
CaptainJet has joined #ruby
kmfdm_ has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
bahar has quit [Ping timeout: 268 seconds]
<benzrf>
uh oh pry-remote has some other issues o.o
kitak has quit [Remote host closed the connection]
LadyRainicorn has quit [Quit: Bye]
kitak has joined #ruby
bahar has joined #ruby
sski has joined #ruby
<atmosx>
benzrf: pry-remote? whats that?
<atmosx>
benzrf: runs pry on a remote host?!
Es0teric has quit [Read error: Connection reset by peer]
<benzrf>
ish
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
Es0teric has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjhaid has joined #ruby
badhatter has quit [Ping timeout: 265 seconds]
mercwithamouth has joined #ruby
keppy has joined #ruby
nisstyre has joined #ruby
derek_c has joined #ruby
njection_ has quit []
monkegjinni has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
sski has quit [Remote host closed the connection]
<atmosx>
anyone knows what class should I use (if there's anything ready) to make a boostrap menu horizonal? list-style-type:none; doesn't work.
s3ri0us has joined #ruby
heftig has joined #ruby
spyderman4g63 has joined #ruby
freerobby has joined #ruby
freggles has quit [Remote host closed the connection]
mfkp has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
gigetoo has quit [Remote host closed the connection]
kmfdm_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
gigetoo has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
freerobby has quit [Ping timeout: 255 seconds]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
armstrjare has joined #ruby
sambao21 has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
enebo has quit [Quit: enebo]
Kryptonical has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
itadder has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
DouweM has joined #ruby
tjr9898 has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 265 seconds]
<shevy>
is it simple to use prawn to generate simple .pdf files?
yfeldblum has joined #ruby
Alina-malina has quit [Ping timeout: 265 seconds]
Alina-malina has joined #ruby
samlt has quit [Ping timeout: 265 seconds]
jason__ has quit [Remote host closed the connection]
youssefeid has quit [Remote host closed the connection]
rahult has joined #ruby
jaywastaken has joined #ruby
zachallett has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<slawrence>
Can anyone suggest a good IDE for ruby / rails? I am messing with Aptana RadRails but it seems unimpressive. I normally use IntelliJ at work along with PHPStorm. My guess is the JetBrains Ruby IDE is probably pretty good but just curious if anything else out there that is OSS might fill the void.
<benzrf>
slawrence: why do you need autocompletion
<benzrf>
this isnt java
<slawrence>
I like my tab button :)
<benzrf>
tab is for inserting tab characters
<slawrence>
not when your IDE is showing suggestions
sski has quit [Remote host closed the connection]
<benzrf>
why do u need suggestions tho
<benzrf>
slawrence: just run a pry at the same time as you code
<slawrence>
... ponders what a pry is
<benzrf>
sudo gem install pry please
<benzrf>
pry is to irb as bash is to sh
<benzrf>
use vim for writing code
<benzrf>
formatting is mostly built in, drillsdowns and syntax checking can be gotten as plugins
<benzrf>
*drilldowns
malcolmva has joined #ruby
<benzrf>
i hope you dont need drilldowns tho
firewater has quit [Quit: Page closed]
Aquilo has joined #ruby
<benzrf>
keep in mind, ruby is extremely dynamic
<benzrf>
very little can be reliably determined without running code
sdouglas has joined #ruby
<benzrf>
even something like a drilldown can be difficult to implement depending on what your code is like
<benzrf>
what if you override a method in another file?
<benzrf>
which one do you want
greggroth has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 246 seconds]
Speed has quit [Ping timeout: 265 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
Briareos1_ has quit [Remote host closed the connection]
Briareos1 has quit [Remote host closed the connection]
Chronocity has joined #ruby
Alina-malina has joined #ruby
toastynerd has joined #ruby
jason___ has joined #ruby
jamto11 has joined #ruby
enebo has joined #ruby
enebo has quit [Client Quit]
osvico has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
osvico has joined #ruby
momomomomo has joined #ruby
Photism_ has joined #ruby
Hanmac1 has joined #ruby
Photism2 has joined #ruby
tylersmith has joined #ruby
jamto11 has quit [Ping timeout: 268 seconds]
Photism has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
Chronocity has quit [Ping timeout: 268 seconds]
kwertie has quit [Ping timeout: 252 seconds]
jxport has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Photism_ has quit [Ping timeout: 265 seconds]
Doppp has joined #ruby
Doppp has quit [Changing host]
Doppp has joined #ruby
sski has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
mikecmpbll has quit [Quit: i've nodded off.]
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
TigerWolf has joined #ruby
spyderman4g63 has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
jason___ has quit [Remote host closed the connection]
x1337807x has joined #ruby
spyderman4g63 has quit [Client Quit]
kennym has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
kennym1 has quit [Ping timeout: 268 seconds]
x1337807x has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
chipotle_ has joined #ruby
freerobby has joined #ruby
chipotle has quit [Ping timeout: 265 seconds]
keppy has quit [Quit: leaving]
keppy has joined #ruby
jonaskindler has joined #ruby
jonaskindler has quit [Client Quit]
freerobby has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
jwingfi has quit [Remote host closed the connection]
jwingfi has joined #ruby
sambao21 has joined #ruby
wallerdev has quit [Quit: wallerdev]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deadlock has joined #ruby
Shidash has joined #ruby
kennym1 has joined #ruby
cashnguns has quit [Ping timeout: 264 seconds]
<chrisseaton>
I've always wondered - Ruby has inline caches, so why can't those inline caches be read and used to provide an indicator to your IDE about what type each variable is, so it can provide tab completion?
sambao21 has quit [Quit: Computer has gone to sleep.]
klaut has quit [Remote host closed the connection]
<DouweM>
How could the IDE know the type of a variable without running the entire app?
kennym has quit [Ping timeout: 265 seconds]
<DouweM>
Ruby isn't strongly typed anyway, so a variable could contain any type of object depending on numerous factors
kirun has quit [Quit: Client exiting]
kennym1 has quit [Client Quit]
fabrice31 has joined #ruby
<arubin>
DouweM: It is not statically typed.
evenix has quit [Remote host closed the connection]
<DouweM>
whoops, forgot the right term
chipotle_ has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
supermarin has joined #ruby
evenix has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
jwingfi has quit [Remote host closed the connection]
supermarin_ has joined #ruby
Musashi1 has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
jwingfi has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
lolmaus has quit [Remote host closed the connection]
<chrisseaton>
Yeah, but if you run the program, and then see what ended up in the inline caches, you can guess the types are likely to be the same the next time the program run. If this wasn't true, there wouldn't' be any point in the inline caches.
lolmaus has joined #ruby
<chrisseaton>
You would indeed have to run the whole app, I agree.
cyberarm has joined #ruby
<chrisseaton>
For the small number of cases where a call site is truly megamorphic, the IDE could tell you that.
kennym has joined #ruby
petey has joined #ruby
itadder has joined #ruby
agrinb_ has joined #ruby
bjhaid has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
siwica has quit [Ping timeout: 255 seconds]
petey has quit [Ping timeout: 265 seconds]
supermarin_ has quit [Quit: Computer has gone to sleep.]
rahult is now known as rahult_
supermarin_ has joined #ruby
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
chipotle has quit [Quit: cya]
chrisseaton has quit []
rylev has quit [Remote host closed the connection]
spicerack has joined #ruby
siwica has joined #ruby
<agrinb_>
building my first rails app and I have this question: I want to create associations. My app will have Users that will have Contacts and those Users will have Comments and Meetings for Contacts. So first I scaffold the Users and Contacts, then I add models for Meetings and Notes migrations, run rake db:migrate and now I'm going to start putting associations in. Or should I've put associations into the migrations?
<shevy>
an.rb:444:in `encode': "\xE4" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
<shevy>
hmm
<shevy>
what to do when I have such characters?
rahult_ is now known as rahult
lkba has quit [Ping timeout: 252 seconds]
Speed has joined #ruby
<jhass>
agrinb_: #RubyOnRails
chipotle has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
supermarin_ has quit [Ping timeout: 240 seconds]
<agrinb_>
also my second time in IRC, and I tried and can't join #rubyonrails
<dorei>
shevy: \xe4 in ascii is a with 2 dots above it
peta_ has joined #ruby
<jhass>
agrinb_: /msg NickServ help
dkamioka has joined #ruby
<shevy>
hmm
toretore has quit [Quit: This computer has gone to sleep]
<dorei>
shevy: maybe it aint ascii 8bit
<shevy>
yeah
<shevy>
it's some ISO encoding
<shevy>
prawn requires UTF-8 input
<shevy>
afm.rb:100:in `rescue in normalize_encoding': Arguments to text methods must be UTF-8 encoded (Prawn::Errors::IncompatibleStringEncoding)
<shevy>
hmm
<dorei>
hmm, maybe u need to force_encoding the corect encoding
<dorei>
and then try to encode into utf-8
zorak has joined #ruby
dkamioka has quit [Remote host closed the connection]
<Jamo>
which ruby version?
mostlybadfly has quit [Quit: Connection closed for inactivity]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
<Jamo>
do you mean char like this: ä
deweydb has joined #ruby
kitak has quit [Remote host closed the connection]
<Jamo>
adding
<dorei>
yeap, this is \xe4 @ ascii 8bit
<Jamo>
# coding: utf-8
kitak has joined #ruby
<Jamo>
to the file which gives this error
<deweydb>
i'm having an issue with bundler. It seems somehow i've managed to install two different versions to two different places. /usr/bin/bundle - v 1.0.15 AND /usr/local/rvm/bin/bundle - 1.6.0
predator217 has joined #ruby
hermanmunster has joined #ruby
<deweydb>
how do i get rid of the /usr/bin/bundle one?
<deweydb>
and more importantly how do i undo my mess of multiple installations ?
<Jamo>
you probably has installed it via system ruby
<jhass>
deweydb: rm. while at it get rid of your global RVM and install it as user
<deweydb>
it is possible i did that prior to installing rvm
<Jamo>
just make sure that your $PATH is set up correctly; it shoulding matter if rvm and its bundler is first
<shevy>
what is the proper way to convert into UTF-8?
<shevy>
I am trying .force_encoding('UTF-8')
<jhass>
deweydb: and stop executing stuff as root unless you know why it wouldn't work otherwise ;)
<dorei>
shevy: i thing force_encoding doesnt reencode
<shevy>
hmm
<Jamo>
twe are using that helper in our project
eynj has quit [Ping timeout: 255 seconds]
<shevy>
cool
<jhass>
shevy: dorei said the correct thing, find out your correct source encoding, force_encoding to that and encode to utf-8 afterwards
<shevy>
valid_encoding? gives me true once, and false the other time
<agrinb_>
thanks jhass
<deweydb>
jhass: how to remove rvm?
chipotle_ has joined #ruby
<deweydb>
honestly i wouldn't mind getting rid of everything and installing it correctly.
<deweydb>
i am having no end of issues.
<Jamo>
"rvm implode" or smthing like that
predator117 has quit [Ping timeout: 255 seconds]
<jhass>
deweydb: rvmsudo implode, search for traces in your bashrc's etc, rvm is pretty invasive, especially when installed a s root
DrCode has quit [Remote host closed the connection]
<deweydb>
thanks
<deweydb>
and what about all the gems and stuff that were installed?
<deweydb>
should i be torching that stuff too?
<Jamo>
what are you doinc when you are getting that encoding error?
peta_ has quit [Quit: peta_]
<Jamo>
those gems should be under rvm's folder so those will be deleted
cashnguns has joined #ruby
<Jamo>
btw, try rbenv :)
hiall has quit [Quit: hiall]
<jhass>
deweydb: if you're back to your system ruby, if the gems where installed with gem install, you can gem list to list them and sudo gem uninstall (or remove? I always forget). But if you have a correct RVM installation, you won't notice them anyhow
chipotle has quit [Ping timeout: 265 seconds]
mfkp has quit []
Lucky_Red has joined #ruby
<deweydb>
so should i try to get rid of system ruby as well?
<deweydb>
apt-get remove ruby ?
<jhass>
not necessarily
<Jamo>
I don't see any reason to delete system ruby
<postmodern>
system ruby should be your goto default ruby
<shevy>
cool
keppy has quit [Ping timeout: 265 seconds]
<shevy>
the encoding fix worked
r_rios has quit [Ping timeout: 265 seconds]
chipotle_ has quit [Quit: cya]
mxweas has joined #ruby
mxweas has quit [Client Quit]
<benzrf>
hmm
<deweydb>
ok thanks guys
sambao21 has joined #ruby
<deweydb>
hopefully that helps
<deweydb>
i guess originally i installed rvm as root because i was trying to run a gem and it was telling me i had ot be root: "bundle exec bluepill..." but when i did it as root, root couldn't find any of the bundler etc.
<Jamo>
umm install rvm as root only if you want to share your ruby installation for multiple users
DrCode has joined #ruby
<Jamo>
8there are just a few usecases for that)
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
<jhass>
the next time a gem tells you to run something as root come and ask us if you understood it correctly, it's very rare that that's really needed
itadder has quit [Remote host closed the connection]
<deweydb>
ok. well i'm about to re-install now
Azure has quit [Ping timeout: 265 seconds]
<Jamo>
that usually means that your file permissions are horribly wrong
<deweydb>
what is the best way? "\curl -sSL https://get.rvm.io | bash -s stable" ?
<jhass>
as your normal user, yes
<deweydb>
ok
YamakasY has quit [Read error: Operation timed out]
eynj has joined #ruby
<deweydb>
does it matter that my normal user is a different user than my web user? i.e. www-data ?
<deweydb>
will www-data still be able to use ruby?
cashnguns has quit [Ping timeout: 265 seconds]
<jhass>
hm, no
<Jamo>
when installing as normal user, it will install ruby to your home
<jhass>
rvm on the server is hard
<Jamo>
thus its basically available for just that one user
Photism has joined #ruby
<Jamo>
but in this case you should either install it as root
<Jamo>
or do smthing smarter :)
<Jamo>
rvm has a global install version
<jhass>
deweydb: waht do you mean with www-data running ruby? passenger?
<Jamo>
where its installed under /etc/
jottr has quit [Ping timeout: 264 seconds]
kimiamania is now known as kimiamania|BNC
jonmorehouse has joined #ruby
<deweydb>
sorry, i'm kind of a noob and not explaining myself well. I have a web project, that i run with thin server routing sockets to nginx. the nginx process is run as www-data.
blackmesa has quit [Ping timeout: 265 seconds]
Aquilo has quit [Ping timeout: 252 seconds]
<deweydb>
oh, wait, i get it. that doesn't matter.
Photism2 has quit [Ping timeout: 265 seconds]
<deweydb>
so as long as i launch thin with my user that has RVM i'm good.
<Jamo>
yep
<deweydb>
but that's where i ran into a problem, because i use bluepill to spawn thin. and bluepill wants to be run as root.