Mia has quit [Read error: Connection reset by peer]
CpuID has joined #ruby
<bl4ckdu5t>
if n.is_a? Integer . How do I check if it is nota integer without using unless?
adriancb has quit [Remote host closed the connection]
<shevy>
if ! n.is_a? Integer
commmmodo has quit [Ping timeout: 244 seconds]
<eam>
all these symbols
ta has joined #ruby
Stoge88 has joined #ruby
bmichelsen has joined #ruby
commmmodo has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
<bl4ckdu5t>
ok thanks shevy
<shevy>
\o/
ghr has joined #ruby
Sawbones has joined #ruby
diegoviola has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
ta has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
Photism has quit [Quit: Leaving]
Photism has joined #ruby
parabolize has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<jhass>
what's wrong with unless?
Musashi007 has quit [Quit: Musashi007]
<shevy>
it's so long
<zenspider>
yeah. just use unless
kiyote23 has quit [Remote host closed the connection]
Hijiri has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
SCHAAP137 has joined #ruby
charliesome has joined #ruby
kiyote23 has joined #ruby
bigmac_ has joined #ruby
kiyote23 has quit [Remote host closed the connection]
Shazaum has quit [Quit: This computer has gone to sleep]
gregf has quit [Quit: WeeChat 1.0.1]
ezio has quit [Ping timeout: 245 seconds]
lbrf has joined #ruby
AlbertoCG has joined #ruby
<olivier_bK>
how to install refinerycms-authentication i 've run bundle install but after ?
tjbiddle has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
kaspertidemann has quit []
lbrf has quit [Ping timeout: 240 seconds]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
louism2wash has quit [Quit: This computer has gone to sleep]
kiyote23 has joined #ruby
nfk has quit [Quit: yawn]
bo has joined #ruby
<bo>
hi i was kind of dropped off with this rails site so excuse my question for its lack of information, i am unable to change any of the information in the template files, ie i delete the contact page and it still stays even after restarting the rails server, i see that the webserver is serving the dist folder is there some generate command i am missing after altering the files
reinaldob has joined #ruby
arturhoo has joined #ruby
siso has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
spastorino has joined #ruby
arescorpio has joined #ruby
<waxjar>
bo: you'll probably get better answers on #rubyonrails (registration with nickserv is required)
<bo>
thanks buddy
gtc has joined #ruby
bo has left #ruby ["Leaving"]
Sawbones has quit [Remote host closed the connection]
ramfjord has joined #ruby
karmatr0n has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
arturhoo has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
dh64 has quit [Quit: Konversation terminated!]
iamcalledrob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Sawbones has joined #ruby
louism2wash has joined #ruby
zacts has quit [Ping timeout: 272 seconds]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
oo_ has joined #ruby
iamcalledrob has quit [Client Quit]
jenrzzz has joined #ruby
aspires has quit [Ping timeout: 244 seconds]
devoldmx33 has quit [Ping timeout: 252 seconds]
CpuID has joined #ruby
Rollabunna has joined #ruby
arturhoo has joined #ruby
diegoviola has quit [Ping timeout: 258 seconds]
louism2wash has quit [Quit: This computer has gone to sleep]
diegoviola has joined #ruby
Sawbones has joined #ruby
Rollabunna has quit [Ping timeout: 258 seconds]
n3phos has quit [Remote host closed the connection]
tlarevo has joined #ruby
bklane has quit [Remote host closed the connection]
wildharvest has quit [Quit: Connection closed for inactivity]
procat has joined #ruby
bklane has joined #ruby
marr has quit [Ping timeout: 258 seconds]
BadQuanta has joined #ruby
commmmodo_ has joined #ruby
Channel6 has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Mia has joined #ruby
djbkd has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
commmmodo has quit [Ping timeout: 264 seconds]
commmmodo_ is now known as commmmodo
procat has quit [Ping timeout: 244 seconds]
jimbach has quit [Remote host closed the connection]
bricker`work has quit [Quit: leaving]
rshetty has joined #ruby
tokik has joined #ruby
rshetty has quit [Remote host closed the connection]
jamgood9_ has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
jaequery has quit [Read error: Connection reset by peer]
Hijiri has quit [Ping timeout: 252 seconds]
tjohnson has joined #ruby
vergeman has left #ruby ["Leaving"]
baweaver has quit [Remote host closed the connection]
BigRonnieRon has joined #ruby
ender3rd has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
gigetoo has quit [Ping timeout: 252 seconds]
ender3rd is now known as prometheus6
centrx has joined #ruby
jaequery has joined #ruby
Shazaum has joined #ruby
AlexRussia has joined #ruby
Galas has quit [Quit: Leaving...]
prometheus6 has quit [Client Quit]
jamgood96 has quit [Ping timeout: 252 seconds]
bkolden has quit [Quit: Leaving]
elastik has joined #ruby
rj46 has quit [Quit: Konversation terminated!]
jamgood9_ has quit [Ping timeout: 250 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
arturhoo has quit [Quit: arturhoo]
mary5030 has joined #ruby
lucyinthesky has joined #ruby
tkuchiki has joined #ruby
njs126 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<mbff>
Hello! I am working with youtube_it and it works on my laptop but not on a vps
<mbff>
parser.rb:10:in `rescue in initialize': 403 (OpenURI::HTTPError)
Deele has quit [Ping timeout: 260 seconds]
<mbff>
why would openURI not work on a vps
commmmodo has quit [Ping timeout: 258 seconds]
siso_ has joined #ruby
siso has quit [Ping timeout: 272 seconds]
lbrf has quit [Ping timeout: 250 seconds]
wsmoak has quit [Quit: wsmoak]
kiyote23 has quit [Remote host closed the connection]
<wallerdev>
403 is forbidden
<wallerdev>
so maybe your program is being blocked or not logged in or something
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
siso_ has quit [Read error: Connection reset by peer]
cantonic has quit [Ping timeout: 244 seconds]
siso has joined #ruby
diegovio1 is now known as diegoviola
jimmyy has quit [Ping timeout: 256 seconds]
kiyote23 has joined #ruby
kiyote23 has quit [Remote host closed the connection]
elastik has joined #ruby
kiyote23 has joined #ruby
iamcalledrob has joined #ruby
mrmargolis has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
robustus has quit [Ping timeout: 255 seconds]
davedev2_ has quit [Ping timeout: 272 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Shazaum has quit [Quit: This computer has gone to sleep]
BadQuanta has quit [Quit: Leaving.]
robustus has joined #ruby
davedev24_ has joined #ruby
j_mcnally has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
chipotle_ has joined #ruby
ezio has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
it0a has joined #ruby
elastik has quit [Ping timeout: 252 seconds]
rshetty has quit [Remote host closed the connection]
stunder has quit [Quit: Screw you guys I'm going home]
aarkerio has quit [Quit: Verlassend]
djdarkbeat has joined #ruby
josephndenton has joined #ruby
cantonic has joined #ruby
renderful has joined #ruby
gigetoo has joined #ruby
karmatr0n has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
kenneth__ has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
cloaked1 has quit [Ping timeout: 258 seconds]
mbff has quit [Quit: Leaving]
_sjs has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has joined #ruby
godd2 has quit [Ping timeout: 245 seconds]
Aswebb_ has joined #ruby
adriancb has joined #ruby
Aswebb_ has quit [Ping timeout: 260 seconds]
diegovio1 has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
diegovio1 is now known as diegovio1a
mgberlin has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
boombadaroomba has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jcp has joined #ruby
jimmyy has quit [Max SendQ exceeded]
ghr has joined #ruby
boombadaroomba has quit [Ping timeout: 252 seconds]
CrazyM4n has quit [Quit: brb]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
gregf has joined #ruby
<jcp>
So I just discovered something interesting while perusing str.c: "foo\n\n\n".chomp = "foo\n\n", but "foo\n\n\n".chomp('') = "foo". Anyone know if this is intentional?
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
mikepack has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 244 seconds]
<shevy>
jcp hmm strange
<shevy>
I would have assumed .chomp('') to make no modification there
econerd4ever has quit [Remote host closed the connection]
<jcp>
Exactly
jimmyy has quit [Max SendQ exceeded]
BadQuanta has joined #ruby
<shevy>
"If $/ has not been changed from the default Ruby record separator, then chomp also removes carriage return characters (that is it will remove \n, \r, and \r\n)."
<jcp>
So I'm wondering if it's a bug in the documentation or a bug in the implementation
<shevy>
well the behaviour is documented so it is not a bug by definition
ghr has quit [Ping timeout: 252 seconds]
jimmyy has joined #ruby
<jcp>
Waitwhat
rshetty has joined #ruby
<shevy>
I guess you pass in the new Separator to use jcp
<jcp>
Right, and that makes sense
<jcp>
Hm, hang on
jimmyy has quit [Max SendQ exceeded]
<shevy>
but I am confused
<shevy>
'' is another separator than is "\n" right?
<jcp>
Right
<shevy>
so it was changed, hence the string should not be modified, as specified in the documentation, or?
jimmyy has joined #ruby
<jcp>
Right, and I also tried changing $/ directly and it still stripped them off
jimmyy has quit [Max SendQ exceeded]
olivier_bK has quit [Ping timeout: 260 seconds]
<shevy>
ok so the default of $/ is "\n" # tested in irb
<jcp>
So whichever way you read the documentation ("If the variable $/ hasn't been changed" vs "If you pass something other than $/"), the implementation doesn't match up with the documentation
<shevy>
doesn't matter how many things depend on it - either it is a bug, or it is no bug, or the documentation is unclear
<shevy>
we can't let bugs bitrot away
* jcp
agrees
mynameisbrian has joined #ruby
amclain has joined #ruby
hamakn has joined #ruby
<jcp>
I'm hoping it's a bug - I'm trying to implement String#lchomp, and that's a good chunk of the complexity gone right there
zz_jrhorn424 is now known as jrhorn424
patrick99e99 has quit [Ping timeout: 250 seconds]
<shevy>
aha
<mynameisbrian>
hey guys, I want to build a chat server in ruby. so like those "live chat" things you see on websites for customer service. can any of you point me in the right direction, what kind of networking api I can look into?
<shevy>
you could just do a .reverse, .chomp, and a .reverse though
comm64 has quit [Ping timeout: 265 seconds]
arrubin has joined #ruby
rshetty has quit [Remote host closed the connection]
DarthGandalf has joined #ruby
<jcp>
I know :-P
comm64 has joined #ruby
mgberlin has quit [Remote host closed the connection]
<jcp>
(Or a sub(/\A.../, ''), which is what I've been doing. It just seems a rather glaring omission)
<waxjar>
at least it does not remove them if you change $/, and than use #chomp without arguments :P
lbrf has joined #ruby
<jcp>
waxjar: Yep. Thank goodness for some semblence of sanity :-)
<waxjar>
*then
djdarkbeat has quit [Ping timeout: 244 seconds]
djdarkbeat has joined #ruby
YourKicks has joined #ruby
<waxjar>
i wonder what's so special about the empty string
tlarevo has quit [Remote host closed the connection]
econerd4ever has joined #ruby
vinleod has quit [Client Quit]
klmlfl has joined #ruby
tlarevo has joined #ruby
alyosha has quit [Remote host closed the connection]
lnormous has joined #ruby
rkalfane has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
econerd4ever has quit [Read error: Connection reset by peer]
procat has joined #ruby
cantonic has quit [Quit: cantonic]
econerd4ever has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
<jcp>
HA
<jcp>
HAHA
<jcp>
It's a holdout!
baweaver has quit [Remote host closed the connection]
<jcp>
...no, I take that back
AlbertoCG has quit [Ping timeout: 258 seconds]
* jcp
stops trying to overthink this and goes to do something else
procat has quit [Ping timeout: 255 seconds]
__shab has joined #ruby
krz has joined #ruby
Rollabunna has joined #ruby
evanjs has joined #ruby
frem_ is now known as frem
Rollabunna has quit [Ping timeout: 258 seconds]
Techguy305 has joined #ruby
kiyote23 has quit [Remote host closed the connection]
doev has quit [Ping timeout: 260 seconds]
lampd1 has quit []
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
doev has joined #ruby
iamjarvo has joined #ruby
kiyote23 has joined #ruby
zB0hs has joined #ruby
zB0hs has quit [Client Quit]
iamjarvo has quit [Client Quit]
rkalfane has quit [Read error: Connection reset by peer]
econerd4ever has joined #ruby
rkalfane has joined #ruby
klmlfl has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
henesy has quit [Ping timeout: 260 seconds]
lampd1 has joined #ruby
econerd4ever has joined #ruby
akaiiro has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
tyll has joined #ruby
reset has quit [Quit: Leaving...]
diegovio1 has joined #ruby
TgMts has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 255 seconds]
tyll_ has quit [Ping timeout: 250 seconds]
techsethi has joined #ruby
arrubin has quit []
jenrzzz has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
f00dMonsta has joined #ruby
StephenA1 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<f00dMonsta>
ok... why is bundler failing randomly when I try to do "bundler install"? Error: "Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=unknown state: certificate verify failed"
ghr has joined #ruby
<f00dMonsta>
and by randomly, I mean it fails at a random gem when attempting to install
Sawbones has joined #ruby
<f00dMonsta>
it could be the first gem, or somewhere in the middle, or the last one...
mgberlin has joined #ruby
<f00dMonsta>
I've already tried "gem update --system" to no avail
<f00dMonsta>
no effect*
josephndenton has quit [Ping timeout: 244 seconds]
jimbach has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0.1]
<f00dMonsta>
anyone?
yetanotherdave has quit [Ping timeout: 245 seconds]
akaiiro has quit [Ping timeout: 250 seconds]
oo_ has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 272 seconds]
<jhass>
are you on latest bundler and rubygems?
mynameisbrian has left #ruby ["Leaving"]
Areessel1 has quit [Ping timeout: 240 seconds]
<jhass>
iirc they're rolling out a new cert and rubygems got it included in a recent release
micah has left #ruby [#ruby]
ohaibbq has joined #ruby
adriancb has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
webdev413 has joined #ruby
wjimenez5271 has joined #ruby
YourKicks has quit [Quit: Leaving]
kish has quit [Read error: Connection reset by peer]
ajaiswal has joined #ruby
kish has joined #ruby
jimbach has joined #ruby
havenwood has joined #ruby
konsolebox has joined #ruby
StephenA1 has quit [Quit: StephenA1]
n008f4g_ has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
diegovio1 is now known as diegoviola
josephndenton has joined #ruby
lbrf has joined #ruby
Sawbones has quit [Remote host closed the connection]
__shab has quit [Quit: Ex-Chat]
iamcalledrob has quit [Quit: (null)]
Sawbones has joined #ruby
lbrf has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
oo_ has joined #ruby
Sawbones has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
iml has quit [Quit: sleep]
Sawbones has joined #ruby
dts|pokeball has joined #ruby
djbkd has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
lnormous has quit [Ping timeout: 245 seconds]
radic has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
radic has joined #ruby
henesy has joined #ruby
SpikeMaster has joined #ruby
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
siso has quit [Ping timeout: 272 seconds]
siso has joined #ruby
jaequery has joined #ruby
tlarevo has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
arup_r has joined #ruby
icarus has quit [Remote host closed the connection]
StephenA1 has joined #ruby
<webdev413>
When I run ' rails generate' I get the error 'Your Ruby version is 2.0.0, but your Gemfile specified 2.1.5' ruby - v reports ruby 2.1.5p273 Can someone help me fix this?
wjimenez5271 has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
zhigang1992 has joined #ruby
bigmac__ has joined #ruby
djbkd has joined #ruby
wjimenez5271 has joined #ruby
<StephenA1>
Hey. I am trying to get the following to work: http://pastebin.com/Xd3UNLbT. Using the CubeSensor API. Its OAuth 1.0a. But i keep getting a 401 Unauthorized from the API. Here are the APi docs. Not much there: https://my.cubesensors.com/docs
<StephenA1>
Any ideas what i could be doing wrong to get the 401 unauthorized?
rshetty has joined #ruby
linojon has quit [Quit: linojon]
lbrf has joined #ruby
renderful has joined #ruby
<fernandolopez>
webdev413: run the following command: whereis ruby
<fernandolopez>
to know which version of ruby your system is using as default
cloaked1 has joined #ruby
bigmac_ has quit [Ping timeout: 245 seconds]
rshetty has quit [Remote host closed the connection]
amclain_ has joined #ruby
SegFaultAX has quit [Ping timeout: 258 seconds]
Aswebb_ has quit [Ping timeout: 260 seconds]
rshetty has joined #ruby
amclain has quit [Ping timeout: 258 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 258 seconds]
<StephenA1>
anyone familar with Oauth 1.0a?
wjimenez5271 has quit [Remote host closed the connection]
linojon has joined #ruby
SegFaultAX has joined #ruby
reset has joined #ruby
cloaked1 has quit [Ping timeout: 260 seconds]
<webdev413>
@fernandolopez whereis ruby -> /usr/bin/ruby so that is the system ruby? ( this is my third reply. I dont see them)
<webdev413>
now I see my reply
gsd has joined #ruby
<fernandolopez>
webdev413: /usr/bin/ruby -v
<fernandolopez>
would be 2.0.0?
chipotle_ has quit [Quit: cheerio]
digdeep has joined #ruby
red_horned_rihno has joined #ruby
hgl- has joined #ruby
<fernandolopez>
how you installed ruby 2.1.5?
<fernandolopez>
via some package manager or something like rbenv?
Sawbones has quit [Remote host closed the connection]
<webdev413>
fernandolopez /usr/bin/ruby -v -> 2.0.0 Yes I am trying to use rbenv!
reset has quit [Client Quit]
<fernandolopez>
did you run?: rbenv global 2.1.5p273
linojon_ has joined #ruby
linojon has quit [Ping timeout: 264 seconds]
linojon_ is now known as linojon
tjohnson has quit [Quit: Connection closed for inactivity]
StephenA1 has quit [Quit: StephenA1]
<webdev413>
$ rbenv global -> 2.1.5 I did not add the p273 on the end
kish has quit [Changing host]
kish has joined #ruby
CrazyM4n has joined #ruby
hgl has quit [Ping timeout: 252 seconds]
hgl- is now known as hgl
<fernandolopez>
webdev413: thats ok
<fernandolopez>
webdev413: did you run rbenv local in the directory of the project?
cibs has quit [Quit: leaving]
<fernandolopez>
that can override the global
amclain_ is now known as amclain
zhigang1992 has quit [Ping timeout: 265 seconds]
<webdev413>
rbenv local -> 2.1.5 rbenv shell -> 2.1.5
<webdev413>
i previously used rvm and think I uninstalled it correcty
<fernandolopez>
webdev413: rbenv local and rbenv shell are not necessary if you have the global set
<fernandolopez>
but should not cause any problem
<fernandolopez>
check your .bashrc file
<fernandolopez>
and .profile (or .bash_profile)
_mtr has quit [Ping timeout: 272 seconds]
<fernandolopez>
and verify if you removed rvm there and if you have the configuration for rbenv
<webdev413>
yes I ran rbenv rehash ... i just ran bundle install and get an error about nokogiri. I have a link to stack that is supposed to address this new issue
Avahey has quit [Quit: Connection closed for inactivity]
procat has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
_1_jose has joined #ruby
uber_hulk has joined #ruby
arup_r has joined #ruby
cloaked1 has joined #ruby
chipotle has quit [Quit: cheerio]
lemur has joined #ruby
oo_ has joined #ruby
arescorpio has quit [Excess Flood]
<_1_jose>
hola ruby
<lbrf>
_1 o/
arup_r has quit [Client Quit]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
procat has quit [Ping timeout: 244 seconds]
_1_jose has quit [Excess Flood]
red_horned_rihno has quit [Ping timeout: 244 seconds]
bigmac__ has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
cloaked1 has quit [Ping timeout: 256 seconds]
redjack1964 has quit [Read error: Connection reset by peer]
<webdev413>
fernandolopez Thank you for helping. I will look at this with fresh eyes in the morning
<webdev413>
goodnight
<fernandolopez>
goodnight
MasterPiece has joined #ruby
webdev413 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gsd has quit [Read error: Connection reset by peer]
gsd has joined #ruby
beneggett has joined #ruby
Techguy305 has quit [Ping timeout: 272 seconds]
jimbach has quit [Remote host closed the connection]
mjuszczak has joined #ruby
lw has joined #ruby
kyb3r_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
uber_hulk has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 258 seconds]
techsethi has joined #ruby
Rollabunna has joined #ruby
AlbertoCG has joined #ruby
chrishough has joined #ruby
uber_hulk has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
rshetty has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
djbkd has quit [Quit: My people need me...]
adriancb has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 258 seconds]
jimbach has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
tlarevo has joined #ruby
lemur has quit [Read error: Connection reset by peer]
kiyote23 has quit [Ping timeout: 260 seconds]
lemur has joined #ruby
Musashi007 has joined #ruby
jimbach has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
rurban_ has joined #ruby
arturhoo has quit [Quit: arturhoo]
rurban_ has left #ruby [#ruby]
tgandrews has quit [Quit: This computer has gone to sleep]
ldnunes has joined #ruby
spastorino has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tokik has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
sk87 has joined #ruby
quarcu has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
User458764 has joined #ruby
tgandrews has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
terlar has quit [Read error: No route to host]
_5kg has quit [Ping timeout: 258 seconds]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
Rollabunna has joined #ruby
arup_r has joined #ruby
lbrf has joined #ruby
Musashi007 has quit [Quit: Musashi007]
mengu has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
terlar has joined #ruby
ycodr has quit [Remote host closed the connection]
arturhoo has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
<rvbt>
apeiros
ycodr has joined #ruby
rvbt has quit [Quit: leaving]
lbrf has quit [Ping timeout: 250 seconds]
msgodf has joined #ruby
Spami has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
quimrsto_ has joined #ruby
echooo has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
echooo1 has quit [Ping timeout: 250 seconds]
hamakn has joined #ruby
quimrstorres has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
StoneCypher has joined #ruby
CpuID has joined #ruby
charliesome has joined #ruby
User458764 has quit [Ping timeout: 264 seconds]
josephndenton has quit [Ping timeout: 250 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
frem has quit [Quit: Connection closed for inactivity]
bjornar has joined #ruby
timonv_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
StoneCypher has quit [Ping timeout: 272 seconds]
dmst has joined #ruby
cloaked1 has joined #ruby
Rollabunna has joined #ruby
shock_one has quit []
charliesome has quit [Ping timeout: 245 seconds]
alex88 has quit [Ping timeout: 265 seconds]
<shevy>
hehe
timonv_ has joined #ruby
Sharker has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
shock_one has joined #ruby
charliesome has joined #ruby
cloaked1 has quit [Ping timeout: 245 seconds]
dc has quit [Remote host closed the connection]
Sharker has quit [Quit: WeeChat 0.4.2]
Aswebb_ has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
Takle has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Morkel_ has joined #ruby
Aswebb_ has joined #ruby
Xeago has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
Morkel_ is now known as Morkel
timonv_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
ajaiswal has quit [Quit: Leaving]
shock_one has quit []
bmichelsen has joined #ruby
charliesome has joined #ruby
anarang has quit [Ping timeout: 244 seconds]
blackjid_ has joined #ruby
_5kg has joined #ruby
shock_one has joined #ruby
alex88 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
anarang has joined #ruby
fabrice31 has quit [Remote host closed the connection]
livathin_ has joined #ruby
tkuchiki has joined #ruby
dc has joined #ruby
livathinos has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
DLSteve has quit [Ping timeout: 255 seconds]
ta has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
Shazaum has joined #ruby
DLSteve has joined #ruby
Sharker has joined #ruby
jenrzzz has joined #ruby
<mostlybadfly>
what is the diff between this channel and #ruby-lang?
quimrsto_ has quit [Remote host closed the connection]
<canton7>
not much in practice tbh. this one's a big bigger
karmatr0n has quit [Remote host closed the connection]
<shevy>
mostlybadfly #ruby-lang is the official one
Shazaum has quit [Changing host]
Shazaum has joined #ruby
sk87 has joined #ruby
procat has joined #ruby
<shevy>
mostlybadfly I think #ruby-lang was "created" because #ruby was registered first, then the registrar vanished for a while or so and the others who then went on to register #ruby-lang did not want to wait
rshetty has quit [Read error: Connection reset by peer]
<mostlybadfly>
so this is like the "officiall unofficial" channel :)
jenrzzz has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
csfrancis has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
procat has quit [Ping timeout: 272 seconds]
dc has quit [Ping timeout: 260 seconds]
Apocalypse has quit [Ping timeout: 245 seconds]
tgandrews has quit [Quit: This computer has gone to sleep]
lkba has joined #ruby
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
AlbertoCG has joined #ruby
fertapric has joined #ruby
mooru has joined #ruby
sigurding has quit [Quit: sigurding]
livathin_ has quit [Remote host closed the connection]
_5kg has quit [Ping timeout: 244 seconds]
lbrf has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
workmad3_ has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
qba73 has quit []
fernandolopez has joined #ruby
shock_one has quit []
workmad3_ is now known as workmad3
giuseppesolinas has joined #ruby
<certainty>
hmm do you guys happen to have statistics about the ruby versions in use today?
alex88 has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
<certainty>
i'm particularily interested in how much ruby 1.8.7 is still in use
lbrf has quit [Ping timeout: 256 seconds]
lucyinthesky has joined #ruby
lucyinthesky is now known as Guest51001
dblessing has joined #ruby
_mtr has joined #ruby
Musashi007 has quit [Quit: Musashi007]
decoponio has joined #ruby
timonv_ has joined #ruby
apeiros_ has joined #ruby
perturbation has joined #ruby
rshetty has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
NeuroProc has quit [Ping timeout: 240 seconds]
lucianosousa has joined #ruby
<certainty>
apart from tiobe
blz37 has joined #ruby
wsmoak has joined #ruby
_mtr has quit [Ping timeout: 255 seconds]
doev has quit [Quit: Verlassend]
alex88 has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
VictorBjelkholm has joined #ruby
mengu has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 258 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
GeorgesLeYeti has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
krz has joined #ruby
jimbach has joined #ruby
Guest51001 has quit [Read error: No route to host]
greenbagels_ has joined #ruby
cloaked1 has joined #ruby
cloaked1 has joined #ruby
fgo has joined #ruby
User458764 has joined #ruby
tgandrews has joined #ruby
brahmadpk has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
quimrstorres has joined #ruby
greenbagels has quit [Ping timeout: 240 seconds]
jimbach has quit [Ping timeout: 258 seconds]
alex88 has quit [Remote host closed the connection]
crazydiamond has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
cloaked1 has quit [Ping timeout: 244 seconds]
byprdct has quit [Read error: Connection reset by peer]
<axilla>
probably a pretty small percentage i;d hope
_Andres has quit [Quit: jazz]
Apocalypse has joined #ruby
Rene has left #ruby [#ruby]
sigurding has joined #ruby
<shevy>
mostlybadfly yeah; it's also where most people will join, because it is consistent with other channels - #perl #python #ruby
Olivertynes is now known as OliverTynes
lampd1 has joined #ruby
<shevy>
certainty I have no statistics but I only use ruby 2.1.5 these days. I could only switch because tenderlove made a syck gem, so I can keep on using invalid yaml files
<certainty>
shevy: alright
<shevy>
psych is more standards compliant and dies with a screaming fire if you feed it invalid yaml files
tgandrews has quit [Quit: This computer has gone to sleep]
knutmithut has joined #ruby
Xeago has quit [Remote host closed the connection]
procat has joined #ruby
AFKGeek has joined #ruby
yalue has joined #ruby
chinmay_dd has quit [Quit: Leaving]
yfeldblum has joined #ruby
tgandrews has joined #ruby
sevenseacat has joined #ruby
timonv_ has quit [Remote host closed the connection]
procat has quit [Ping timeout: 252 seconds]
nanSTA has joined #ruby
ndrei has joined #ruby
<nanSTA>
Hello, I am trying to write an object that is created in my program to a database.rb file. When i read the file it turns into a string. My goal is to read the file with an object in it. and set it as a variable. Im want to read/write objects to a database.rb file and use it as my database. Any ideas?
silkfox has joined #ruby
JokerDoom has joined #ruby
timonv_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
foooobear has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_5kg has joined #ruby
_JokerDoom has quit [Ping timeout: 264 seconds]
rkalfane has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
Alina-malina has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
triple_b has joined #ruby
adriancb has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
einarj_ has joined #ruby
einarj has quit [Read error: Connection reset by peer]
natrano has joined #ruby
arturhoo has quit [Ping timeout: 260 seconds]
natrano has quit [Client Quit]
<shevy>
Let's say you guys want to pad a file with 20 ' ' characters on the left side.
arturhoo has joined #ruby
<shevy>
For each line. Now, the solution in Ruby is probably pretty straightforward - File.readlines, then a .map
einarj_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<shevy>
But here is my question - do you really write that code in each project where you use it? Do you write this into standalone .rb files? (For similar small-actions too.)
_5kg has joined #ruby
renderful has joined #ruby
anaeem1 has joined #ruby
ta has quit [Remote host closed the connection]
josephndenton has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sprihodko has joined #ruby
Timgauthier is now known as timgauthier_away
blz37 has quit [Quit: Leaving]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
supergeek has joined #ruby
jherbst has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
lbrf has joined #ruby
St_Marx has quit [Quit: WeeChat 1.0.1]
Spami has joined #ruby
josephndenton has quit [Ping timeout: 250 seconds]
tlarevo_ has quit [Remote host closed the connection]
<nanSTA>
shevy: I would write this standalone as a parse function then use it in other files.
blz37 has joined #ruby
rkalfane has joined #ruby
anaeem1 has quit [Remote host closed the connection]
weems|mac has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
supergeek has quit [Quit: Goodbye, cruel world.]
lbrf has quit [Ping timeout: 244 seconds]
jimbach has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
<jmaister>
Is it possible to get an unescaped string from StringIO? That is è instead of è etc
Apocalypse has joined #ruby
eichenwald has joined #ruby
allcentury has joined #ruby
<lessless>
jmaister, at what point? it gives the same result with SRP::Verifier.new(2048).generate_userauth(3333, 1112221)
Linell_ has joined #ruby
<jmaister>
wat?
n008f4g_ has joined #ruby
<lessless>
soory =)
ramfjord has quit [Ping timeout: 244 seconds]
<nanSTA>
Does anyone know why i get "{\"tom\":\"#<CreditCardProcessing:0x007fd40c11d6d0>\"}" when i use to_json on an array #<CreditCardProcessing:0x007fd40c11d6d0 @luhn_check=true, @name="Tom", @limit=1000, @balance=0>.
<nanSTA>
Where are all my values going????
<nanSTA>
object*
anaeem1 has quit [Remote host closed the connection]
versatiletech has joined #ruby
cloaked1 has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
testin has joined #ruby
yfeldblum has joined #ruby
Alina-malina has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sou|cutter>
nanSTA: you have to define the serialization. There's all sorts of libraries to help with it, such as 'oj'
rbennacer has joined #ruby
VictorBjelkholm has joined #ruby
rbennacer has quit [Remote host closed the connection]
<waxjar>
I'd use one of the stdlib's libraries that do databasy things instead of rolling my own json magic
<waxjar>
or just sqlite, why not
tesaf has joined #ruby
rbennacer has joined #ruby
akaiiro has joined #ruby
<gregf_>
nanSTA: oh, you need to convert that object to JSON :/. prolly write a module called Serializer : module Serializer { def to_json;end to_csv;end }
<nanSTA>
waxjar: i wrote a class, and it uses objects in memory. How can I use sqlite without having to rewrite my whole class? thats why i stopped with sqlite seemed like too much work for such a simple class
Xeago has joined #ruby
<waxjar>
Marshal.dump maybe
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<jmaister>
You can retain the database in memory too, if you like
<nanSTA>
jmaister: I am using STDIN input through command line. So it doesnt work
Aswebb_ has quit [Remote host closed the connection]
lbrf has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
Azure has quit [Read error: Connection reset by peer]
cvtsx has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
Kricir has joined #ruby
whoisjake has joined #ruby
Azure has joined #ruby
nanSTA has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
postmodern has quit [Quit: Leaving]
coderhs has quit [Client Quit]
<Pupeno>
Is there a better way to deterministically select a value from an array based on another value other than array.sample(random: Random.new(other_value))? I'm generating some test data and I want it to deterministic but variable.
Hijiri has quit [Ping timeout: 258 seconds]
Freelusion has joined #ruby
mengu has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
Aswebb_ has joined #ruby
<canton7>
Pupeno, can you shuffle the array based on a random generated seeded with a constant value, then pick successive items from it?
rdark_ has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7>
that is slightly different behaviour, but may be what you're after
<Pupeno>
canton7: not really, it's not a loop that creates a bunch of users but users get created on demand from very different places.
drksvnt has joined #ruby
Freelusion has quit [Client Quit]
<Pupeno>
canton7: well, it's doable, but it would require global variables and it would also be an ugly hack. Currently I'm going: first_name { |u| SampleDataGenerator::FIRST_NAMES.sample(random: Random.send(*[:new, u.email.try(:hash)].compact)) }
Hanmac has joined #ruby
Megtastique has joined #ruby
<Pupeno>
Which doesn't work anyway.
rdark has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<Pupeno>
Oh... it doesn't work because the hash of a string is not that deterministically.
apxm has joined #ruby
s00pcan has joined #ruby
adriancb has joined #ruby
<workmad3>
Pupeno: the default hash algorithm is based off a random seed value nowadays, due to an exploit made possible by having predictable hash values
hemanth has joined #ruby
apxm has quit [Client Quit]
apxm has joined #ruby
apxm has quit [Max SendQ exceeded]
<kAworu>
workmad3: any link on the exploit ?
apxm has joined #ruby
nrsk has joined #ruby
<kAworu>
workmad3: i fail to understand how it could lead to an exploit actually.
josephnd1nton has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
<shevy>
wow
<shevy>
like a small bear
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3>
shevy: or a giant hamster
<workmad3>
shevy: it's the largest rodent ;)
<avril14th>
Hello, is there a way to have string.split returning both matched strings and text between the matched strings. For instance "keyboard".split /y/ => ["ke","y","board"] ?
<workmad3>
(or a fish, if you're catholic..>)
lbrf has quit [Quit: Be back later ...]
<shevy>
lol
<shevy>
a fish with fur??
<workmad3>
shevy: they like to spend a lot of time in water? :)
<workmad3>
shevy: and live in naturally swampy areas
lbrf has joined #ruby
<shevy>
ok don't go off dating one workmad3
<shevy>
in the movie "The Holy Grail" they built a castle on a swamp
<workmad3>
shevy: and catholic missionaries trying to convert natives that ate capybara reported back that any converts would die of starvation during lent, if they couldn't find something in the area that was possible to classify as an acceptable food
nanSTA has joined #ruby
<shevy>
when you are hungry you eat anything
<workmad3>
shevy: and so capybara got classified as fish...
elastik has quit [Ping timeout: 260 seconds]
<shevy>
even a wombat
<shevy>
lol
sambao21 has quit [Quit: Computer has gone to sleep.]
koderok has joined #ruby
<claf>
I was going to make a dating app
<shevy>
for wombats?
<claf>
but, how do I include wombats!
<workmad3>
shevy: I guess it's something like catholics aren't allowed to eat meat during lent, or something equally stupid :)
<shevy>
workmad3 ah yeah... some people like to follow rules
<jhass>
claf: not how, just do it!
ycodr has quit [Remote host closed the connection]
<workmad3>
claf: well, first you need a 10 year research project investigating two things - 1) the dating habits of wombats and 2) how to communicate with wombats
ycodr has joined #ruby
jobewan has joined #ruby
<workmad3>
claf: after which you need to train up wombat marketers
sambao21 has joined #ruby
<workmad3>
shevy: yeah, plenty of crazy people in the world, especially back in olden times :P
<claf>
ensuring theres no anti-wombital behaviour is another problem
crazydiamond has quit [Remote host closed the connection]
<shevy>
what behaviour classifies as anti-wombital?
koderok has quit [Client Quit]
<claf>
Yeah, that keeps me busy!
<workmad3>
shevy: I'd probably start with people shooting and eating them
<workmad3>
shevy: and, if the rest of the animal kingdom is anything to go by, there's probably a lot of rape going on in wombat 'society'
lbrf has quit [Ping timeout: 245 seconds]
studiotate has quit [Quit: Computer has gone to sleep.]
<workmad3>
those hot little penguins, all dressed up in their fancy dinner outfits
<shevy>
lol
<shevy>
dinner outfit
Urocyon is now known as sfiggins
ebbflowgo has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<workmad3>
crud, I just thought of an awful parody for the John Lewis ad in the UK this year...
axl_ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
it just ends with the kid getting a seal toy instead of a penguin 'girlfriend' and cuts to a scene of the penguin in the shower and a seal shadow...
mesamoo has joined #ruby
devoldmx33 has quit [Ping timeout: 244 seconds]
dreinull has quit [Remote host closed the connection]
snath has joined #ruby
kwd has quit [Quit: kwd]
surs has quit [Quit: Lost terminal]
dreinull has joined #ruby
bal has quit [Quit: bal]
iamjarvo has joined #ruby
momomomomo has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
iamjarvo has joined #ruby
Rodya_ has joined #ruby
yfeldblum has joined #ruby
sambao21 has joined #ruby
apeiros_ has joined #ruby
karmatr0n has quit [Remote host closed the connection]
iamjarvo has quit [Client Quit]
charliesome has quit [Quit: zzz]
fgo has quit [Ping timeout: 244 seconds]
Ridley5 has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
stunder has joined #ruby
karmatr0n has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
zzz_Ridley has joined #ruby
n1lo has joined #ruby
zzz_Ridley is now known as Ridley5
Hijiri has joined #ruby
rkalfane has joined #ruby
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
User458764 has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
gsd has joined #ruby
xymbol has joined #ruby
Ankhers has joined #ruby
User458764 has joined #ruby
karmatr0n has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
elastik has joined #ruby
<nanSTA>
Why is it that when I run ruby filename.rb < file.txt it concatenates all my strings correctly in file.txt, but when i run echo "Add Tom 4111111111111111 $1000" | ruby run_program it cuts off the '$' and the '1' ???
<nanSTA>
cuts off the dollar sign
cloaked1 has quit [Quit: rebooting]
<jhass>
nanSTA: because that's how shells work
<jhass>
$1 is a shell variable
kiyote23 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<nanSTA>
jhass: ahh, i thought so
<jhass>
try in your shell: foo='world'; echo "Hello $foo"
yekta has joined #ruby
studiotate has joined #ruby
StoneCypher has joined #ruby
<claf>
or just bar='\$100'; echo "I made $bar today"
hamakn has quit [Remote host closed the connection]
<jhass>
you don't need to escape in single quotes
Rollabunna has quit [Remote host closed the connection]
hamakn has joined #ruby
<claf>
and thats what it was about!
Ankhers has quit [Ping timeout: 250 seconds]
<nanSTA>
is there anyway i can run Add Tom 4111111111111111 $1000 without having to add a \ before $1000
<nanSTA>
it worked though
<jhass>
use single quotes
<nanSTA>
ah
<nanSTA>
i love you guys
mikepack has joined #ruby
DLSteve has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeroa has joined #ruby
st0mar has quit [Ping timeout: 250 seconds]
lw has joined #ruby
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
ycodr has quit [Remote host closed the connection]
Ankhers has joined #ruby
st0mar has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
ycodr has joined #ruby
_mtr has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
uber has quit [Ping timeout: 264 seconds]
william3 has quit [Remote host closed the connection]
diegoviola has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
fabrice31 has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
karmatr0n has joined #ruby
aganov has quit [Quit: Leaving]
sambao21 has joined #ruby
TTilus has joined #ruby
* xxneolithicxx
group hug
_mtr has quit [Ping timeout: 245 seconds]
cloaked1_ has joined #ruby
sambao21 has quit [Client Quit]
chrishough has joined #ruby
momomomomo has quit [Read error: Connection reset by peer]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
<Rodya_>
[ubuntu 14.04] i've just dl'ed, make'd, and make installed' ruby 2.1.5 on my machine, yet when i run 'ruby -v' i still get
axilla has quit [Ping timeout: 255 seconds]
<Rodya_>
ruby1.9, how do i change to this new version?
<rand0mbits>
is there a way to leave a message for an offline user here?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
Rodya_: Please mention in both channels if you cross-post.
josephndenton has quit [Quit: leaving]
josephndenton has joined #ruby
mrnugget has joined #ruby
<shevy>
rand0mbits I think so, through Freenode/Q operator... something ... /msg ... command command ... I forgot
<havenwood>
Rodya_: If you want to switch Rubies, chruby. If you just want to set it to the one you built, adjust your PATH so /usr/local/bin is ahead of /usr/bin.
<workmad3>
rand0mbits: fair warning - notifications of memos come up in the status window, so if the user isn't aware that the memo service exists and doesn't look at the status screen, the memo could be there for a very long time ;)
<xxneolithicxx>
Rodya_: sudo update-alternatives --get-selections, ruby is one of them it will let you add another and switch it to be default
TTilus has quit [Ping timeout: 258 seconds]
<havenwood>
xxneolithicxx: He's not switching between package manager Rubies though, he built one himself.
kiyote23 has quit [Remote host closed the connection]
<havenwood>
He/She*
<rand0mbits>
workmad3: ha, yeah, not ideal. do you know if centrx shows up here often enough?
<shevy>
usually he is here at around central european evening time
<workmad3>
rand0mbits: pretty sure he's around reasonably often
sigurding has quit [Quit: sigurding]
<rand0mbits>
ah, cool. i owe him a referral bonus :)
louism2wash has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
_sjs has quit [Ping timeout: 252 seconds]
<workmad3>
rand0mbits: hehe :) just looked at my memo list... I have a grand total of 4, one of them is from 2011, and another is a memo from memoserv, telling me that someone has read a memo I sent... ;)
<workmad3>
hmm... referral bonus
<workmad3>
I could... pass it on to him...
xymbol has joined #ruby
mjuszczak has joined #ruby
<rand0mbits>
i guess it's on the clients to implement some sort of memoserv integration
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tgandrews has quit [Quit: This computer has gone to sleep]
Kricir has quit [Remote host closed the connection]
hamakn has joined #ruby
giuseppesolinas has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
kiyote23 has quit [Ping timeout: 264 seconds]
mloveless has joined #ruby
troulouliou_dev has joined #ruby
Spami has joined #ruby
adriancb has quit [Remote host closed the connection]
kamilc__ has joined #ruby
procat has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
Spami has quit [Client Quit]
rbennacer has joined #ruby
ndrei has joined #ruby
Spami has joined #ruby
rbennacer has quit [Remote host closed the connection]
Vile` has joined #ruby
x1337807x has joined #ruby
wallerdev has joined #ruby
freerobby has joined #ruby
momomomomo has quit [Quit: momomomomo]
ezio has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
momomomomo has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
ta has joined #ruby
VictorBjelkholm has quit [Remote host closed the connection]
nclbr has joined #ruby
tvon has quit [Remote host closed the connection]
adriancb has joined #ruby
timonv_ has joined #ruby
ghr has joined #ruby
Synthead has joined #ruby
nclbr has quit [Remote host closed the connection]
_mtr has joined #ruby
_maes_ has joined #ruby
pu22l3r has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hobodave has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 245 seconds]
wolf4ood has quit [Quit: (null)]
djbkd has joined #ruby
_mtr has quit [Ping timeout: 245 seconds]
hiall has joined #ruby
keen__________ has joined #ruby
sailias has joined #ruby
cloaked1_ has quit [Ping timeout: 244 seconds]
dotemacs has quit [Quit: Connection closed for inactivity]
keen_________ has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
momomomomo has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
cloaked1 has joined #ruby
momomomomo has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
psy_ has quit [Quit: Leaving]
MITA85 has joined #ruby
<MITA85>
hello people!
blz37 has quit [Ping timeout: 258 seconds]
iamjarvo has joined #ruby
Synthead has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
<havenwood>
hello fellow great apes!
workmad3 has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
x1337807x has quit [Client Quit]
ta has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
ixti has joined #ruby
x1337807x has joined #ruby
andikr has quit [Remote host closed the connection]
_mtr has joined #ruby
psy_ has joined #ruby
ndrei has quit [Quit: Lost terminal]
<godd2>
I am pretty great
Synthead has joined #ruby
Aswebb__ has joined #ruby
<MITA85>
what, godd2?
<havenwood>
MITA85: Hominidae
<godd2>
Hominid ayy, lmao
lampd1_ has joined #ruby
samuel02 has joined #ruby
<MITA85>
Hominidae? I'm new here, pls explain... :)
fgo has quit [Ping timeout: 258 seconds]
<godd2>
MITA85 it's a zoology reference
prasselpikachu has quit [Ping timeout: 244 seconds]
<MITA85>
ah :) it's a side effect :)
prasselpikachu has joined #ruby
ta has joined #ruby
<havenwood>
MITA85: i was just personally musing on what all would be included in 'people' as far AI, aliens or future evolved animals. so instead of people i greeted the Hominidae more specifically. great ape. great.
Crazy_Atheist has joined #ruby
<MITA85>
I often get intesting stuff as side effects in coding infos ;)
<psycho_one>
But what if I don't want to print all key-value pairs? How can I print just values of key2, key4 and key5?
Asher has quit [Read error: Connection reset by peer]
cjim_ has joined #ruby
<fmcgeough>
someone that I’m working with is using Windows. I never use Windows (Linux/Centos/OS X only) .. he’s running into issues installling gems. read server certificate B: certificate verify failed. is there some good Ruby windows guide I can point him to?
lw has joined #ruby
cjim has quit [Read error: Connection reset by peer]
<jhass>
psycho_one: for 3-4 options I would consider just listing them out
<_1_ayan>
hi
lw has joined #ruby
<jhass>
psycho_one: puts "foo => #{hash['foo']}"
yetanotherdave has joined #ruby
tlarevo has quit [Ping timeout: 264 seconds]
tercenya has quit []
<rj46>
hello, today after update something bad happened , /home/user/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/jekyll-2.5.2/lib/jekyll/convertible.rb:112: stack level too deep (SystemStackError)
fgo has joined #ruby
<jhass>
psycho_one: for more options I'd make an array and iterate through that: %w(key1 key2 key3 key4).each do |key| puts "#{key} => #{hash[key]}"
<finisherr>
oh, the code is being executed on the host
sambao21 has quit [Quit: Computer has gone to sleep.]
arietis has joined #ruby
mjuszczak has joined #ruby
<finisherr>
It’s okay. I can provide a script outside of the Vagrantfile that can handle the SSH tunnels
<finisherr>
just would have been cool to have it right in there
chipotle has joined #ruby
neoxquick has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
sambao21 has joined #ruby
fgo has joined #ruby
kl has joined #ruby
<kl>
is it possible to use a Struct without having public setters?
<kl>
i.e. I'd just like the attributes to be attr_readers
whoisjake has joined #ruby
lw has quit [Read error: Connection reset by peer]
<xybre>
Anything is possible, not everything is advantageous though.
lw has joined #ruby
<kl>
xybre: would you care to bring that philosophy to some practical relevance
tristanp has joined #ruby
<pipework>
kl: Why not just undefine the methods?
Timgauthier has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
rpag has joined #ruby
<kl>
pipework: how so?
<xybre>
kl: There's lots of ways to do it, I'm jsut not sure which will be the best for your use case.
<jhass>
kl: you can do something like private *members.map {|m| "#{m}=" }
<pipework>
kl: One might think the answer would be in the documentation.
fgo has quit [Ping timeout: 245 seconds]
sambao21 has quit [Ping timeout: 244 seconds]
jlast has joined #ruby
nobitanobi has joined #ruby
brahmadpk has joined #ruby
<kl>
pipework: yeah yeah undef_method, but I was thinking more practically with Struct
<pipework>
kl: I don't know what you mean
<kl>
i.e. best approach of doing that while optimising for minimum necessary code bloat
hashpuppy has quit [Ping timeout: 244 seconds]
mjuszczak has quit []
<kl>
jhass: wouldn't that just return a list of strings to a void context? 0_o
nanSTA has quit [Ping timeout: 258 seconds]
<jhass>
it would what? pretty sure the answer is no
<jhass>
private is a method call
<jhass>
takes parameters
<kl>
xybre: the use case is as generic as they come, downgrading all Struct attributes to only be readable, not writable
rshetty has joined #ruby
Shazaum has quit [Quit: This computer has gone to sleep]
<kl>
jhass: oh. I never saw it like that!
zB0hs has quit [Ping timeout: 256 seconds]
tobacco_joe has quit []
arietis has quit [Ping timeout: 250 seconds]
<kl>
jhass: ah, that's a pretty nice approach. Thanks!
Mothore has joined #ruby
<jhass>
don't forget #[]=
<kl>
Always nice to get a proper response amidst all the power-tripping RTFMers :)
<pipework>
Yeah, jhass is pretty awesome if you ever have homework!
Gadgetoid has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
mrsolo has joined #ruby
<kl>
pipework: ha, thankfully I'm well past that
cjim_ has quit [Read error: Connection reset by peer]
cjim_ has joined #ruby
<AlbertoCG>
It's the firs time I use bundle install at the Gemfile path. Is it normal for it to take so long?
<jhass>
yes
<xybre>
AlbertoCG: for an existing app? yeah
rshetty has quit [Ping timeout: 240 seconds]
<AlbertoCG>
Do I have to do this for every app? I did it because it was saying something about jquery-rails not found
<xybre>
kl: context is everything, and while that is a solution, you're not really gaining anything over just using a class.
<jhass>
probably
<wallerdev>
itll be faster for other apps if you already have the gem downloaded
sambao21 has joined #ruby
<jhass>
xybre: well, you gain the constructor
theotherstupidgu has joined #ruby
n008f4g_ has joined #ruby
<AlbertoCG>
So even if I used gem install jquery-rails it would've taken long?
<jhass>
AlbertoCG: you can speed it up a little with the --jobs parameter, see bundle help install
<jhass>
AlbertoCG: also if it's on production use --deployment
yourabi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<AlbertoCG>
jhass, I'm just starting with Rails; the bundle install has taken about 15 mins
<jhass>
it's faster if everything declared in the lock is found
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
<jhass>
if the lock is not in the repo or the deps changed, the dependency resolution has to run again, which takes time
<wallerdev>
yeah it wouldve taken just as long to get all the requirements with gem install
<pipework>
Especially if you fetch in parallel.
<AlbertoCG>
So if I'm using this project as a tutorial it is better to keep modifying the files instead of making new projects for testing
mjuszczak has quit [Client Quit]
xymbol_ has quit [Quit: Be back later ...]
shredding has joined #ruby
<wallerdev>
if you dont change the gemfile between projects then bundle install wont take more than a few seconds
<pipework>
AlbertoCG: Only until you've downloaded all the gems you're going to want to download, but dependency resolution takes some time the first time. You could just copy the Gemfile and Gemfile.lock over to new projects.
<AlbertoCG>
pipework, Oh, thank you. If the first Gemfile I install has many packages probably won't have too many issues for my next projects (Just that this one will take long)
<pipework>
AlbertoCG: Sounds like a plan.
Ankhers has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
alex88 has quit []
timonv_ has joined #ruby
momomomomo has quit [Client Quit]
allcentury has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
rkday has joined #ruby
<zacts>
yo ruby hackers
axl_ has quit [Quit: axl_]
adriancb has quit [Remote host closed the connection]
Smujo_ has joined #ruby
<chipotle>
yo zacts
drager has quit [Remote host closed the connection]
Smujo has quit [Ping timeout: 260 seconds]
<theotherstupidgu>
yo ruby hackers
sambao21 has quit [Quit: Computer has gone to sleep.]
Spami has quit [Quit: This computer has gone to sleep]
* jhass
suddenly understands the yo app
rodfersou has quit [Quit: leaving]
<xybre>
yo @ u
cjim_ has quit [Read error: Connection reset by peer]
<jhass>
didn't realize that's all the communication some people are capable of, apparently
cjim_ has joined #ruby
<shevy>
yo
chrisseaton_ has quit []
allcentury has joined #ruby
chrisseaton_ has joined #ruby
chrisseaton_ is now known as chrisseaton
<zacts>
what's wrong with yo?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zacts>
I see what's wrong with 'u'
MITA85 has quit [Ping timeout: 244 seconds]
<zacts>
but not yo
lucyinthesky has joined #ruby
<havenwood>
sup
<rpag>
yo
frem_ has joined #ruby
axl_ has joined #ruby
<zacts>
let me get thru a few ch of the well grounded rubyist
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xybre>
yo: as a greeting, 1859, but the word is attested as a sailor's or huntsman's utterance since early 15c. Modern popularity dates from World War II (when, it is said, it was a common response at roll calls)
<claf>
I tweet my yo's so its easier to screencap em to instag
* claf
see me rolling...
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ehc has quit [Quit: Connection closed for inactivity]
<shevy>
yo claf
ta has quit [Remote host closed the connection]
x1337807x has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
<claf>
waitasec, I gotta export that to my facebook stream via a irssi perl script
rkday has quit [Ping timeout: 256 seconds]
ragingcake_ has quit [Quit: ragingcake_]
mjuszczak has joined #ruby
adriancb has joined #ruby
arietis has quit [Ping timeout: 256 seconds]
theotherstupidgu has quit [Remote host closed the connection]
blackmesa has joined #ruby
Megtastique has joined #ruby
rbennace_ has joined #ruby
arietis has joined #ruby
nfk has quit [Quit: yawn]
djbkd has quit [Remote host closed the connection]
arietis has quit [Client Quit]
atomi has quit [Ping timeout: 272 seconds]
Musashi007 has joined #ruby
kish has quit [Quit: leaving]
axl_ has quit [Read error: Connection reset by peer]
yourabi has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
josephnd1nton has joined #ruby
ldnunes has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
Calmoto1 has joined #ruby
baweaver has quit [Remote host closed the connection]
<godd2>
if I add "gemspec" to my Gemfile, does that mean if I don't have to specify gems in my Gemfile if their in the gemspec?
kith has quit [Remote host closed the connection]
kith has joined #ruby
nclbr_ has joined #ruby
<jhass>
yes
Ankhers has joined #ruby
Calmoto has quit [Ping timeout: 258 seconds]
lw has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
mleone has joined #ruby
lw has joined #ruby
josephnd1nton has quit [Ping timeout: 265 seconds]
axl_ has joined #ruby
fgo has joined #ruby
diego_ar has quit [Remote host closed the connection]
mengu has joined #ruby
momomomomo has joined #ruby
nclbr has quit [Ping timeout: 258 seconds]
nfk has joined #ruby
_mtr has joined #ruby
rkalfane has joined #ruby
<AlbertoCG>
Installing gems manually worked better than using builder install
elaptics is now known as elaptics`away
<AlbertoCG>
bundle install*
diego_ar has joined #ruby
mjuszczak has quit []
psycho_one has quit []
fgo has quit [Ping timeout: 264 seconds]
atomi has joined #ruby
lampd1_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
momomomomo has quit [Ping timeout: 264 seconds]
rkday has joined #ruby
arup_r1 has quit [Quit: Leaving.]
diego_ar has quit [Remote host closed the connection]
<godd2>
awesome thank you
diego_ar has joined #ruby
<godd2>
they're*
lampd1_ has quit [Ping timeout: 250 seconds]
momomomomo has joined #ruby
Spami has joined #ruby
maletor_ has joined #ruby
econerd4ever has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 255 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
rismoney1 has quit [Ping timeout: 245 seconds]
<rand0mbits>
what do folks like, chruby, rbenv, or rvm?
<shevy>
AlbertoCG \o/
<shevy>
rand0mbits the good old source; wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.bz2
<rand0mbits>
shevy: why?
<godd2>
sehvy hates learning new things
mahlon_ is now known as mahlon
<rand0mbits>
lol
<havenwood>
rand0mbits: i usually use chruby. if i need to build an old ruby on and old system i use rvm.
kith has quit [Remote host closed the connection]
rkalfane has joined #ruby
kith has joined #ruby
<shevy>
rand0mbits because it's by far the simplest way to get ruby running. you don't have to learn any extra command-specific instruction
<rand0mbits>
do people switch ruby versions often? why?
<havenwood>
rand0mbits: if you want to switch between Rubies, chruby is a great way to go. if you don't need to switch Rubies, you don't need a Ruby switcher.
sambao21 has quit [Ping timeout: 250 seconds]
<havenwood>
rand0mbits: some people switch rubies often, often on dev machines
sailias has left #ruby [#ruby]
sailias has joined #ruby
<havenwood>
rand0mbits: on servers, Rubies are rarely switched and Ruby version switchers aren't required
kith has quit [Remote host closed the connection]
<rand0mbits>
ah, that's making more sense now
synergyz has joined #ruby
kith has joined #ruby
<havenwood>
rand0mbits: if you're say working on an MRI project, but also have Rubinius and JRuby ones. or to switch to be on the exact same version as production for a given project.
kith has quit [Remote host closed the connection]
kith has joined #ruby
<rand0mbits>
how would one switch without a ruby switcher?
<havenwood>
rand0mbits: chruby is a very simple way to switch between Rubies. you can switch to a package manager ruby, or one you build yourself, or the ruby-install ones are picked up by default.
<brixen>
rand0mbits: something like update_alternatives on debian
<brixen>
rand0mbits: but support for more than one instance of some thing (eg like more than one python or ruby) is pretty rare
<havenwood>
rand0mbits: there are OS-specific tools sometimes, depends on the OS/distro. or you can manually set environment variables, etc.
cjim_ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
<brixen>
many plugs for the simplicity and utility of chruby
<brixen>
but don't deploy it in production (or any switcher, for that matter)
<rand0mbits>
why's it not a good idea to deploy switchers in production?
<brixen>
the actual environment for your app can vary
<brixen>
which is not a good thing
<brixen>
unless you enjoy debugging
Spami has quit [Quit: This computer has gone to sleep]
Aswebb_ has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
axl_ has quit [Quit: axl_]
djdarkbeat has quit [Read error: Connection reset by peer]
djdarkbeat has joined #ruby
conniemj has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
BTRRY has joined #ruby
arturhoo has quit [Quit: arturhoo]
BTRE has quit [Disconnected by services]
BTRRY is now known as BTRE
Jackneill has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
<havenwood>
rand0mbits: you can build to /usr/local so it's already in front of your PATH (typically, or you can make it so if not) or better yet hopefully have a nice shiny package to install :)
<rand0mbits>
no package, running on debian...
<rand0mbits>
haven't played with linux for a number of years now, so slowly soaking it in
econerd4ever has joined #ruby
diegovio1 has joined #ruby
diegoviola is now known as Guest95927
diegovio1 is now known as diegoviola
djbkd has joined #ruby
ezio has joined #ruby
Guest95927 has quit [Ping timeout: 252 seconds]
sirene has quit [Remote host closed the connection]
Spami has joined #ruby
sanguisdex has quit [Quit: Leaving.]
ramfjord has joined #ruby
Spami has quit [Remote host closed the connection]
momomomomo__ has joined #ruby
rbennace_ has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 258 seconds]
momomomomo__ is now known as momomomomo
freerobby has quit [Quit: Leaving.]
aspires has joined #ruby
sanguisdex has joined #ruby
freerobby has joined #ruby
kiyote23_ has joined #ruby
rbennace_ has joined #ruby
rbennace_ has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
AlexRussia has quit [Client Quit]
stunder has quit [Remote host closed the connection]
<atmosx>
hello
russt has joined #ruby
wallerdev has joined #ruby
AlexRussia has joined #ruby
Morkel has quit [Quit: Morkel]
jenrzzz has quit [Ping timeout: 250 seconds]
aspires has quit []
sambao21 has quit [Client Quit]
jenrzzz has joined #ruby
graydot has joined #ruby
conniemj has quit [Read error: Connection reset by peer]
conniemj_ has joined #ruby
<havenwood>
rand0mbits: i think an up to date debian should have a ruby1.9.1-full (Ruby 1.9.3) at least
spyderma_ has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
<rand0mbits>
yeah, it does. i figure i want something newer
<shevy>
debian still has no 2.x?
lw has quit [Quit: s]
<pipework>
Why would you want a second release in a rolling release system?
<AlbertoCG>
I'm on Ubuntu, Ruby 1.9.3p484
x1337807x has joined #ruby
<AlbertoCG>
Which are the specs a web host should meet for me to use Ruby on Rails on it?
<shevy>
this makes me sad
<atmosx>
shevy: no, but installing ruby from source in debian is trivial. Also for serves works way better than RVM... Especially if you're going to run services based on ruby.
poguez has quit [Quit: Connection closed for inactivity]
jdj_dk has quit [Remote host closed the connection]
<atmosx>
AlbertoCG: rails + MySQL + Nginx I assume?
<atmosx>
or apache?
<pipework>
Or you can use ruby-install, which is nice.
<pipework>
Or you can use packaged rubies.
<pipework>
(not the distro repo rubies, they tend to be less than up to date)
<havenwood>
rand0mbits: to install latest ruby to /usr/local with ruby-install it'd just be: ruby-install --system ruby 2.1.5
rbennace_ has quit [Remote host closed the connection]
konsolebox has joined #ruby
kotk_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
aclearman037 has quit [Quit: I'm out!]
paulfm has quit [Quit: Goodbye]
chipotle has quit [Quit: cheerio]
kotk has quit [Ping timeout: 250 seconds]
sea_local has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gauke has quit [Quit: gauke]
samuel02 has quit [Remote host closed the connection]
nclbr_ has quit [Quit: Leaving...]
danman has quit [Quit: danman]
josephnd1nton has joined #ruby
BigRonnieRon has joined #ruby
<XxionxX>
Hello, I am learning ruby and I heard this was a good place to ask questions. I am trying to make a simple game and I don't understand something that the gosu library is doing. This is my code: https://gist.github.com/XxionxX/a552f11990191ef830be and I don't understand how the Player class is stripping the background color from my starship. I didn't specify a color for it to strip and it seems to be doing it automatically. What is going on
_mtr has quit [Ping timeout: 250 seconds]
matled- has joined #ruby
cjk101010 has quit [Ping timeout: 240 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
rpag has quit [Ping timeout: 264 seconds]
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
arup_r has quit [Ping timeout: 264 seconds]
dfinninger has quit []
josephnd1nton has quit [Ping timeout: 240 seconds]
cjk101010 has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
xymbol_ has joined #ruby
Sid05 has joined #ruby
Dopagod has quit [Read error: Connection reset by peer]
dredozubov has joined #ruby
rismoney1 has quit [Ping timeout: 250 seconds]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xymbol_ has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
silkfox has quit [Ping timeout: 245 seconds]
mjuszczak has quit []
chrishough has joined #ruby
Megtastique has quit []
n008f4g_ has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
_JokerDoom has joined #ruby
hiyosi has joined #ruby
hiall has joined #ruby
ptrrr has joined #ruby
tesaf has quit [Quit: Lost terminal]
lucyinthesky has joined #ruby
AndChat| has joined #ruby
fgo has joined #ruby
freerobby has quit [Quit: Leaving.]
ragingcake has quit [Quit: ragingcake]
louism2wash has quit [Quit: This computer has gone to sleep]
JokerDoom has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
louism2wash has joined #ruby
boombadaroomba has joined #ruby
momomomomo__ has joined #ruby
lampd1_ has joined #ruby
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo__ is now known as momomomomo
mjuszczak has quit []
<timmmaaaayyy>
how can i gsub everything after the last
<timmmaaaayyy>
let me try that again.....how can i gsub everything after the last / in a url?
ragingcake has quit [Client Quit]
lampd1_ has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Quit: Lost terminal]
<timmmaaaayyy>
im using this to get the filename from the URL: full_filename = http_url.gsub(/.*\//, "") ...... now i can't figure out how to get the other half of the URL
Takle has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
econerd4ever has quit [Remote host closed the connection]
<timmmaaaayyy>
i'm looking at that....it does seem like that might be the "proper" way to do it
spyderman4g63 has quit [Ping timeout: 255 seconds]
<timmmaaaayyy>
its more fun to be a hack though :)
geiltalasdair has joined #ruby
<timmmaaaayyy>
if i did something like : pre_filename_url = http_url.split("/").last how can i tell it i want everything before the split instead of after the split?
arturhoo has joined #ruby
silkfox has joined #ruby
gr33n7007h has joined #ruby
jerius has quit []
blizzy has quit [Ping timeout: 255 seconds]
<go|dfish>
timmmaaaayyy: well, the hack way would be: http_url.match(/(.*\/)(.*)/)