Takle has quit [Read error: Connection reset by peer]
<shevy>
they are language constructs, keywords I suppose
Takle has joined #ruby
sski has joined #ruby
<noob101>
so puts is a keyword?
<shevy>
noob101, here are the list of keywords in ruby: study them, memorize them, it's just like 20 words to keep in mind http://ruby-doc.org/docs/keywords/1.9/
<n_blownapart>
http://pastie.org/9245495 hi I'm looking at a math problem in ruby and have questions re: the reference naming here and generally.
Beoran_ has quit [Ping timeout: 276 seconds]
Martxel has quit [Ping timeout: 252 seconds]
<n_blownapart>
dingus_khan: nice moniker! from one world ruler to another...
jamto11 has joined #ruby
rm_ has quit [Read error: No route to host]
<dingus_khan>
n_blownapart: i take it you caught the reference?
dexter_ has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
<n_blownapart>
well, it seems like a pleasantly self-mocking ref: to Genghas dingus_khan
rm_ has joined #ruby
<noob101>
shevy. Sigggh....I need your...help again.
jamto11 has quit [Ping timeout: 260 seconds]
<noob101>
shevy Please don't get angry at me for not doing this correct. I really tried to do as you said but it's not working.
<noob101>
shevy, would you please help me or if you don't want to then you can tell me no.
<noob101>
Can anyone please help me? This is my error, check out the last error in the terminal and that's the error. http://oi59.tinypic.com/2uigkgj.jpg
dingus_khan has quit [Remote host closed the connection]
<n_blownapart>
noob101: I think #to_i is your problem.
Beoran_ has joined #ruby
rankine has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
<pontiki>
please use an actual code paster. i can't even read that
<noob101>
Ok.
rankine has quit [Client Quit]
<pontiki>
not all of us are young
qwyeth has quit [Ping timeout: 255 seconds]
<n_blownapart>
noob101: is that a pipe there on line 454 ?
<pontiki>
oh gods <3 <3 <3 david gilmore
<pontiki>
oops
<pontiki>
ww
gorpon has quit [Ping timeout: 240 seconds]
<noob101>
n_blownapart: give me a second please sir
<n_blownapart>
pontiki: what is your reference to david gilmore? love him..
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<n_blownapart>
noob101: I'm a noob too, but that is either a pipe or your editor marks the line where the error occurred .
pwh has quit []
<shevy>
noob101 you did not do anything I told you to do
rm_ has quit [Remote host closed the connection]
<noob101>
Back
<noob101>
n_blownapart: There are no pipes
rm_ has joined #ruby
dontwork has quit [Remote host closed the connection]
<noob101>
shevy: I did
<noob101>
shevy: I swear
<n_blownapart>
noob101: shevy is a hard taskMaster
<shevy>
noob101 you uploaded an image
<noob101>
shevy: but where the error is, the line is an expression.
<shevy>
noob101 in that image I see no occurance of pp
<noob101>
No shevy
<noob101>
That was the old pic
<noob101>
Can you show me an example on how to use pp please. :(
<noob101>
I did pp user_cards
<RubyPanther>
Images are only allowed if you're teaching something, it is hand drawn, and decorated. Otherwise you need text.
<noob101>
shevy: I appreciate all the side advice but I came here to solve this nil error. Now if I solve it and my program runs properly then I will be willing to add the extra stuff
brunops has quit [Quit: leaving]
yacks has joined #ruby
hgl has quit [Ping timeout: 265 seconds]
<noob101>
shevy: However for now, I would definitely like to fix the problem. So continuing, I did add pp deck and it printed out the deck.
<noob101>
shevy: How is that suppose to help me with the nil error
<noob101>
shevy: Just asking
near77 has quit [Quit: Page closed]
dexter_ has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
<shevy>
on the line where nil shows up
<shevy>
simply add .to_s
<shevy>
to the object that is nil
<noob101>
Really?
<shevy>
yeah
<noob101>
Ok, I will, thanks.
brunops has joined #ruby
<shevy>
but the program has more problems
<noob101>
I don't know what object is nil but yeah I will. Let me check my terminal again.
<shevy>
the line error will tell you
<shevy>
there can only be a finite number of possibilities on that line
<benzrf>
noob101: i think u mean, which VARIABLE is nil
<noob101>
But remember it says undefined method '+'
davedev24_ has quit [Ping timeout: 240 seconds]
<benzrf>
only 1 object is nil
<shevy>
noob101 nah
<noob101>
for nil:NilClass
<shevy>
noob101 one of the two objects between + is nil; simply add .to_s
<noob101>
Ok np
dontwork has joined #ruby
<noob101>
Add .to_s to both variables?
<shevy>
sure
<noob101>
or onlu one shevy
<noob101>
oh ok great
<shevy>
but only if you need strings
<shevy>
you store weird stuff
<shevy>
["Diamonds", "Ace", 1, 11]
<ponga>
shevy: "you store weird stuff" sound very suspicious
<shevy>
that one has even 4 entries
<shevy>
ponga yeah ... his main array can have... two entries.. three... or four ...
<ponga>
or five...
<shevy>
this inconsistency would kill me mentally
<ponga>
suspicious..
nszceta has quit []
<shevy>
["Clubs", "King", 10],
<shevy>
["Spades", "Jack", 10],
<shevy>
noob101 can this be correct
alxgnon has joined #ruby
<shevy>
I thought king and jack have different values
decoponio has joined #ruby
<pontiki>
depends on the game
<pontiki>
they still have different ranks, tho
<shevy>
strip poker
<pontiki>
cool
<noob101>
shevy: Yes sir
<pontiki>
then ranks are what you use
<noob101>
shevy: I am getting upset, more freaking errors.
<pontiki>
poker doesn't have values
<noob101>
I put .to_s more errors
<shevy>
noob101 can a king be equal to jack
rm_ has quit [Ping timeout: 265 seconds]
<noob101>
shevy: numerically yes. Jack and Kings are worth 10.
<shevy>
noob101 see, make everything right as soon as possible, and lateron you won't have errors
<shevy>
huh
<noob101>
shevy I have error
<noob101>
UUUUUUGH! >:(((
<shevy>
what error
<shevy>
mouse-in-pants error?
<pontiki>
stop answering
<shevy>
building on fire?
<pontiki>
they'll never figure out how to debug something if you keep giving all the answers
dontwork has quit [Ping timeout: 252 seconds]
decoponyo has quit [Ping timeout: 252 seconds]
KLVTZ has joined #ruby
<shevy>
he is on a good way
<shevy>
soon enough he will be so angry that he will start from scratch
davedev24_ has joined #ruby
decoponyo has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noob101>
Error after adding .to_s -> <filename>:460:in '<main>': undefined method 'to_s=' for nil:NilClass (NoMethodError)
decoponyo has quit [Remote host closed the connection]
<noob101>
no I don't want to start from scratch, I will kill myself if I have to.
<shevy>
what can you see in that error noob101
<noob101>
shevy, I have no idea I tried and tried.
<shevy>
yeah but you can read it
<shevy>
what does it tell you
sputnik13 has joined #ruby
<noob101>
It says nil, nil means nothing. How is there nothing when card_one is a freaking rand element from the deck array
<noob101>
I am confused
<shevy>
no that is not what that error says
<shevy>
can you read the error for us
hgl has joined #ruby
<noob101>
Ok I will
decoponio has quit [Ping timeout: 240 seconds]
<noob101>
undefined method
<shevy>
good
<noob101>
undefined method means....
<shevy>
and what is the name
kireevco has quit [Ping timeout: 265 seconds]
<noob101>
the name of the method?
<shevy>
yes
<noob101>
'.to_s='
<shevy>
yes
b1205 has quit [Ping timeout: 255 seconds]
<shevy>
so you tried to invoke a method with that name on a nil object
<noob101>
a nil object means its an object with a value of nothing right?
<shevy>
which won't work
<shevy>
a nil object is not useful for much at all, except for when you wish to query whether an object is nil or not
<shevy>
in your case you must have a line that is like:
<shevy>
x.to_s = y
<shevy>
so remove the .to_s anyway; then figure out why x is nil
<shevy>
well
<noob101>
so the object that I am trying to add to user_cards has a value of nothing correct?
<shevy>
if it was an assignment then the object on the right hand side must have been nil
klaut has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
djbkd has joined #ruby
mijicd has quit [Remote host closed the connection]
Ishiro has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
gruz0[russia] has quit [Quit: Leaving]
sheperson has quit [Read error: No route to host]
djbkd has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
Kricir has quit [Remote host closed the connection]
narendraj has joined #ruby
kaleido has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
atmosx has joined #ruby
Loaft has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Shidash has quit [Ping timeout: 264 seconds]
fantasticsid has joined #ruby
doev has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 240 seconds]
doev has joined #ruby
doev has quit [Remote host closed the connection]
klaut has joined #ruby
tvw has joined #ruby
mijicd has joined #ruby
doev has joined #ruby
donpepp has joined #ruby
jongilbraith has joined #ruby
andrewlio has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
jongilbraith has quit [Client Quit]
claymore has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
yeticry_ has quit [Read error: Connection reset by peer]
jezen has joined #ruby
yeticry has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dontwork has joined #ruby
dangerousdave has joined #ruby
steveeJ has joined #ruby
dontwork has quit [Ping timeout: 260 seconds]
donpepp has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
jamto11 has joined #ruby
<steveeJ>
hello there, i'm trying to deploy omnigollum (https://github.com/arr2036/omnigollum) with unicorn and nginx within a user's rvm environment. i'm not familar with ruby applications n'or do i speak ruby. i'm having a hard time understanding the basic structure my setup is supposed to have. my biggest confusion are the config.r{u,b} files. do i need both still?
frosgy has joined #ruby
yubrew has joined #ruby
donpepp has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
frogssgy has quit [Ping timeout: 240 seconds]
Martxel has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
nfk has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
doev has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
obs has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Wessie_442 has joined #ruby
Martxel has quit [Ping timeout: 252 seconds]
brunops has quit [Ping timeout: 240 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
Wessie_442 has quit [Quit: Bye]
donpepp has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 276 seconds]
lkba has quit [Ping timeout: 276 seconds]
lyanchih has quit [Quit: lyanchih]
jhass|off is now known as jhass
VTLob has joined #ruby
rampert has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
daixtr has joined #ruby
<daixtr>
what's ruby's equivalent to perl's CPAN ?
akemrir has quit [Quit: WeeChat 0.4.3]
maroloccio has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
rm_ has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
daixtr has quit [Quit: leaving]
xcv has joined #ruby
<apeiros>
hurray for goldfish attentionspan…
claymore has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
steveeJ has quit [Ping timeout: 252 seconds]
ponga has quit []
teddyp1cker has joined #ruby
einarj has joined #ruby
parus has joined #ruby
Solnse has joined #ruby
cgj has joined #ruby
<cgj>
join nodejs
sheperson has joined #ruby
_srid has joined #ruby
JPascal has joined #ruby
brunops has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
Trynemjoel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_srid has quit [Remote host closed the connection]
steveeJ has joined #ruby
brunops has quit [Ping timeout: 245 seconds]
Hanmac1 has quit [Ping timeout: 245 seconds]
klaut has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dontwork has joined #ruby
dangerousdave has joined #ruby
Eyess has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
Eyes has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
SHyx0rmZ has joined #ruby
Eyes is now known as Eyess
yubrew has joined #ruby
xcv has quit [Ping timeout: 240 seconds]
Solnse has quit [Ping timeout: 276 seconds]
dontwork has quit [Ping timeout: 255 seconds]
SHyx0rmZ has quit [Ping timeout: 265 seconds]
moritzs has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
xcv has joined #ruby
agjacome has quit [Quit: leaving]
Xeago has joined #ruby
klaut has quit [Remote host closed the connection]
<steveeJ>
still very confused about ruby application deployment. i have omnigollum setup which i can run using "gollum --config config.rb" inside the omnigollum directory. however, i can't get unicorn to load that application
<apeiros>
mostlybadfly: means there's no game.rb in any of the directories listed in $LOAD_PATH (and neither in any installed gem)
timfoo has joined #ruby
<apeiros>
note that . is not in $LOAD_PATH.
Takle has quit [Remote host closed the connection]
<mostlybadfly>
hmm ok
havenwood has quit [Remote host closed the connection]
Loaft has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
jezen has quit [Remote host closed the connection]
hermanmu_ has quit [Remote host closed the connection]
hermanmunster has joined #ruby
hermanmunster has quit [Read error: Connection reset by peer]
Takle has joined #ruby
hermanmunster has joined #ruby
<mostlybadfly>
apeiros: would it be best to add it there?
<mostlybadfly>
i see if i add the exact path from my home directory that it works
Loaft has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
dawkirst has joined #ruby
lkba has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
einarj has quit [Ping timeout: 252 seconds]
banister has joined #ruby
blacksails has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
havenwood has joined #ruby
DaniG2k has quit [Ping timeout: 265 seconds]
jezen has joined #ruby
d0lph1n98 has left #ruby [#ruby]
Trynemjoel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
chrisseaton has quit []
fgo has joined #ruby
thomasxie has joined #ruby
obs has quit [Remote host closed the connection]
klaut has joined #ruby
mehlah has joined #ruby
SilverKey has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
<jhass>
mostlybadfly: you could also start your game with ruby -Ilib main.rb or even ruby -I. main.rb if you have no folder structure
anaeem1_ has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
tessi has quit [Ping timeout: 265 seconds]
rm_ has joined #ruby
timonv has joined #ruby
jezen has quit []
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
eldina_ has joined #ruby
lxsameer has quit [Quit: Leaving]
rm_ has quit [Ping timeout: 260 seconds]
Guest12930 has quit [Quit: Guest12930]
einarj has joined #ruby
yacks has quit [Ping timeout: 276 seconds]
GriffinHeart has joined #ruby
RaptorJesus has quit [Ping timeout: 272 seconds]
tessi has joined #ruby
yubrew has joined #ruby
Baked has joined #ruby
Lo^08 has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
Loaft has quit [Read error: Connection reset by peer]
Lo^08 is now known as Loaft
Baked has quit [Read error: Connection reset by peer]
sheperson has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
sheperson has joined #ruby
fgo has quit [Remote host closed the connection]
<mostlybadfly>
ah ok thanks jhass
rOOb has quit [Ping timeout: 252 seconds]
jackneill has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
ponga has joined #ruby
linuxnewb2 has quit [Quit: Leaving]
timonv has quit [Ping timeout: 264 seconds]
SilverKey has quit [Quit: Halted.]
sheperson has quit [Ping timeout: 255 seconds]
sheperson has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
freerobby has joined #ruby
alem0lars has joined #ruby
sheperson has quit [Client Quit]
AlterDim has joined #ruby
yfeldblum has joined #ruby
xcv_ has joined #ruby
jamto11 has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
xcv has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 252 seconds]
ringarin has quit [Quit: Leaving]
claymore has joined #ruby
ra4king1 has joined #ruby
virtualsue has joined #ruby
NukePuppy has joined #ruby
ra4king has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
gorpon has joined #ruby
doodlehaus has joined #ruby
Doppp has quit [Ping timeout: 264 seconds]
thomasxie has quit [Quit: Leaving.]
pavelz has quit [Quit: leaving]
bmurt has joined #ruby
mary5030 has joined #ruby
bmurt has quit [Client Quit]
_808chris has joined #ruby
fayimora has quit [Quit: Connection closed for inactivity]
<_808chris>
Mornin, I'm running minitest via rake and I can get the tests to run but at the end Rake is producing some errors. I've copied the errors to a paste here http://pastebin.com/vb1Jm2eb
bmurt has joined #ruby
fgo has joined #ruby
rm_ has joined #ruby
thomasxie has joined #ruby
<_808chris>
I'm just not sure what the problem is
fgo has quit [Client Quit]
<_808chris>
My rake task has this inside files = File.expand_path(File.dirname(__FILE__) + '/spec/**/*_spec.rb'); test.test_files = FileList[files]
yubrew has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
Deele has quit [Quit: User excited]
yacks has joined #ruby
t0rc has joined #ruby
NukePuppy has quit [Ping timeout: 252 seconds]
naw has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
bahar has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
frem_ has joined #ruby
Rickmasta has quit [Ping timeout: 276 seconds]
mary5030 has quit [Remote host closed the connection]
<_808chris>
ok nvm, looks like this is what is supposed to happen when test fail
absolutezeroff has joined #ruby
r0ok has quit [Ping timeout: 276 seconds]
JoeGaudet has joined #ruby
frem_ has quit [Ping timeout: 260 seconds]
doodlehaus has quit [Remote host closed the connection]
doodlehaus has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
sambao21 has joined #ruby
SCommette has joined #ruby
doodlehaus has joined #ruby
SCommette has quit [Client Quit]
obs has joined #ruby
wm3|away has joined #ruby
lyanchih_ has joined #ruby
yfeldblum has joined #ruby
Rickmasta has joined #ruby
bthesorceror has joined #ruby
bthesorceror has quit [Remote host closed the connection]
chris123456789 has joined #ruby
bthesorceror has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
eldina_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
thomasxie has quit [Quit: Leaving.]
momomomomo has joined #ruby
pontiki has joined #ruby
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
mikesplain has joined #ruby
ari-_-e has quit [Ping timeout: 252 seconds]
<pontiki>
hi
ari-_-e has joined #ruby
Takle has joined #ruby
<shevy>
hey pontiki
mikesplain has quit [Ping timeout: 245 seconds]
maximski has quit []
Hanmac1 has joined #ruby
timonv has joined #ruby
JoeGaudet has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 252 seconds]
bmurt has quit []
djbkd has joined #ruby
<pontiki>
hello
carraroj has joined #ruby
kaleido has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
Hanmac has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
t0rc has left #ruby ["WeeChat 0.4.3"]
<momomomomo>
hello
GriffinHeart has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
kilk_ has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 260 seconds]
shevy has quit [Ping timeout: 276 seconds]
yubrew has joined #ruby
kilk_ has joined #ruby
chrisseaton has joined #ruby
anaeem1_ has joined #ruby
dangerou_ has joined #ruby
rm_ has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
iamayam has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
Hawk554 has joined #ruby
kaspergrubbe has joined #ruby
nszceta has joined #ruby
einarj has joined #ruby
Soda has quit [Remote host closed the connection]
kaspergr_ has quit [Ping timeout: 252 seconds]
Hawk554 has left #ruby [#ruby]
sski has joined #ruby
klaut has joined #ruby
chris123456789 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qwyeth has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
yakko_ has quit [Ping timeout: 252 seconds]
einarj has quit [Ping timeout: 240 seconds]
tensor has joined #ruby
obs has quit [Remote host closed the connection]
vo_id has joined #ruby
Eyess has quit [Quit: Leaving]
Solnse has quit [Remote host closed the connection]
Eyes has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Hanmac1 has joined #ruby
yfeldblum has joined #ruby
wm3|away has quit [Ping timeout: 265 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
lethe has quit [Remote host closed the connection]
mikemac has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
arrubin has joined #ruby
<shevy>
I think my computer is dying
djbkd has joined #ruby
vlad_starkov has joined #ruby
Baked has joined #ruby
<tobiasvl>
RIP
yubrew has quit [Ping timeout: 255 seconds]
<shevy>
:(
<havenwood>
shevy: uh oh
Shidash has joined #ruby
Loaft has quit [Ping timeout: 245 seconds]
<shevy>
at first I thought it was a faulty HDD but even after replacing the HDD several times, it can't all be failing at the same time, something must be weird with the machine itself
<pontiki>
power supply?
djbkd has quit [Ping timeout: 252 seconds]
<pontiki>
if several things fail at once, and discs fail repetedly, i'd look into replacing the power supply
<shevy>
hmm
krz has quit [Quit: WeeChat 0.4.3]
<pontiki>
is this a desktop machine?
Kricir has joined #ruby
byteoverfl0w has quit [Remote host closed the connection]
<shevy>
yeah
<shevy>
my main machine here
<shevy>
I have a laptop but it's small and crappy
aneong has joined #ruby
josemota has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 265 seconds]
klaut has quit [Remote host closed the connection]
dseitz has joined #ruby
<shevy>
cool
<shevy>
I am digging through old stuff right now
anaeem1_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
<shevy>
apparently I started my main .sh file about 10 years ago
<Hanmac>
havenwood: "These people are so... flat." .... for some reason i didnt get the reference
<shevy>
flatworld!
<havenwood>
Hanmac: the green spiky skinned girl said to green spiky skinned guy as they morphed
jimbauds has joined #ruby
<Hanmac>
ahh ok ;P you said "green spiky" because "cacti" would be rassist, ne? ;P
DaniG2k has quit [Ping timeout: 252 seconds]
__class__ has quit [Read error: Connection reset by peer]
james_d_h has joined #ruby
sski has joined #ruby
yfeldblum has joined #ruby
AlterDim has quit [Quit: leaving]
lkba has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
apollo_cmd has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
wallerdev has joined #ruby
__class__ has joined #ruby
lyanchih has joined #ruby
lyanchih_ has quit [Ping timeout: 252 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
sambao21 has joined #ruby
atmosx has joined #ruby
RaptorJesus has joined #ruby
kireevco has joined #ruby
aneong has left #ruby [#ruby]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
sski has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
Hanmac1 has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
xcv_ has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
Royalb15 has joined #ruby
angusiguess has joined #ruby
ascarter has joined #ruby
chipotle has joined #ruby
apollo_cmd has quit [Remote host closed the connection]
chrisramon has joined #ruby
agjacome has joined #ruby
IceDragon_ has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
havenn has joined #ruby
ponga has quit []
IcyDragon has quit [Ping timeout: 255 seconds]
GeorgesLeYeti has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
Baked has quit [Ping timeout: 260 seconds]
<jhass>
hi
Kricir has quit [Remote host closed the connection]
<GeorgesLeYeti>
I want to replace into a string every double space by a single space. If i make gsub(' ', ' ') it works but if i have triple space i'll still having a double
<GeorgesLeYeti>
(sry for my english)
<jhass>
do you have activesupport in your project?
<DouweM>
right. so what you actually want is to replace any number of consecutive spaces by a single space? notice the difference between "any number" and "two" ;)
<jhass>
GeorgesLeYeti: Have a look at String#squeeze
<GeorgesLeYeti>
jhass: no ty i'll take a look
Kricir has joined #ruby
GriffinHeart has joined #ruby
<GeorgesLeYeti>
havenn: ty too
Grundell has joined #ruby
<Grundell>
Hello
x1337807x has joined #ruby
<Grundell>
So im planing to create a subscription site and since this is going to be my first real rails project i was wondering if there is a foundation to start from ?
brunops has quit [Changing host]
brunops has joined #ruby
IceDragon_ has quit [Ping timeout: 276 seconds]
<jhass>
Grundell: for rails support please join #rubyonrails
<Grundell>
OK thanks
Royixc has joined #ruby
Royixc has quit [Max SendQ exceeded]
GriffinHeart has quit [Ping timeout: 252 seconds]
<Grundell>
jhass: Get error 477 that i cant join channle since im not identified with the services.
<Grundell>
How to o get identified with the services
<Grundell>
?
<jhass>
you need to be registered, as the message says, check /msg NickServ help
synfin_ has quit [Quit: leaving]
lethe has joined #ruby
<shevy>
Grundell you can register; for instance /msg nickserv identify YOUR_PASSWORD_WILL_THEN_GO_HERE
Lutece has quit [Ping timeout: 272 seconds]
<shevy>
I mean, identify after register
rkazak has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<thecodethinker>
Hey, I'm trying to write a little extension with rice but I can't figure out how to use have_library to check if a function exists within a class.
frem has joined #ruby
<thecodethinker>
Does anyone here know how to do that?
virtualsue has quit [Ping timeout: 252 seconds]
IceDragon_ has joined #ruby
Atttwww has joined #ruby
freerobby has quit [Quit: Leaving.]
amargherio has quit [Read error: Connection reset by peer]
drizz_ has quit [Quit: Reconnecting]
drizz has joined #ruby
_808chris has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Lucky__ has joined #ruby
luckyruby has joined #ruby
yfeldblum has joined #ruby
Lucky__ has quit [Client Quit]
ra4king1 is now known as ra4king
thecodethinker has quit [Ping timeout: 255 seconds]
Doppp has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
freerobby has joined #ruby
tacos1de has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
tacos1de has joined #ruby
EatMulti has joined #ruby
EatMulti has quit [Client Quit]
yfeldblum has quit [Ping timeout: 240 seconds]
dayepa has quit [Ping timeout: 276 seconds]
<shevy>
have_library('foo') # -lfoo
<shevy>
if have_library("ole32") and have_library("oleaut32")
<jhass>
(he's gone)
<shevy>
awwwww
ziyadb has joined #ruby
<atmosx>
How can I display the arguments of a hash that are not nil? Is there any quick way?
<atmosx>
I wonder how update works in Rails hm
Lucky__ has joined #ruby
<toertore>
you mean values?
bmurt has quit []
<jhass>
.values.compact.size ?
<atmosx>
yes
<toertore>
various enumerable methods should help with that
<atmosx>
I know, I could iterate and check, but I wonder if there was any faster/other way
<jhass>
.values.compact.size
<atmosx>
jhass: talking to me?!
<jhass>
sure
<atmosx>
ah k
<atmosx>
:D
Kricir has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 276 seconds]
sleepee has joined #ruby
coderhs has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Vivekananda has joined #ruby
jemendja has joined #ruby
mr_snowf1ake has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
jemendja has quit [Quit: leaving]
sigurding has joined #ruby
m8 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<Morrolan>
For your use case I'd just go with Hash#merge
<atmosx>
Morrolan: I didn' even knew a method calledmerge existed might be exactly what I need
<Morrolan>
:)
<shevy>
mostlybadfly if you have to check against several input then sure, big case menu is likely a way to go about it
<Morrolan>
h1.merge(h2) will update h1 with the contents of h2. Optionally you can supply a block, to determine what to do in case of duplicates, I believe.
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
bthesorceror has quit [Remote host closed the connection]
amclain has joined #ruby
bthesorceror has joined #ruby
<glen>
RubyPanther: look again, the glob expanded by shell is in the paste, all is ASCII, and if you look again the paste you see it fails under ASCII (C) locale as well. and as i already said, the code is stright from ruby-2.0 release tarball, so the code must be accurate!
<RubyPanther>
glen: ^ re-read what I said
<frosgy>
Quick question: what is the name for the %w(str str str), or %r, %q, etc thing in Ruby? Does it have one?
synfin has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
<glen>
RubyPanther: so you're saying OFFICIAL code is invalid?
qwyeth has joined #ruby
charliesome has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
<RubyPanther>
glen: What did I say has the problem? Put my words inside quotes and repeat back to me where I said the problem is
<noob101>
What does it mean when it says `'<main>'`
<RubyPanther>
noob101: It means you're not using OOP
<noob101>
RubyPanther: What is OOP?
<RubyPanther>
noob101: google
danshultz has joined #ruby
<noob101>
Can someone please tell me what OOP is?
danshult_ has quit [Read error: Connection reset by peer]
r0ok has joined #ruby
<shevy>
noob101 don't be so dumb, do you know what it stands for
<noob101>
It has three letters, words? I don't know.
<frosgy>
jhass: cheers for that, making it a lot easier to look up
<noob101>
Object oriented programming, I searched it up.
<jhass>
frosgy: there are search engines not ignoring special characters, like symbolhound.com
<shevy>
yes
mary5030 has quit [Read error: Connection reset by peer]
<shevy>
3 characters, 3 words
<noob101>
But I still don't understand how me not using OOP will solve my bug. What am I suppose to do when I see `'<main>'1
chipotle has quit [Quit: cya]
<shevy>
that depends on your program
<noob101>
`'<main>'`*
<shevy>
the way you code is by avoiding objects right now
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
so you throw everything into main
mary5030 has joined #ruby
wm3|away has joined #ruby
<shevy>
imagine if everyone is doing that
<shevy>
class Foo
<shevy>
what happens if someone else also has the same name?
<noob101>
Don't know.
<shevy>
and btw
<shevy>
`'<main>'`*
<shevy>
is never the full error name
<shevy>
so you omit information
<noob101>
I know but I am asking what it means and stuff.
<RubyPanther>
noob101: main is the entry point. It means you didn't go anywhere, you're still running your code in the very top container. Your code is homeless. But you should only see something like <main> when you're seeing an error.
<shevy>
that's a cool sentence
<shevy>
Your code is homeless.
<noob101>
I have an error.
<shevy>
you did not state the error
eka has joined #ruby
setra has quit [Ping timeout: 252 seconds]
kilk_ has joined #ruby
<RubyPanther>
so if you see 'wrong number of arguments (0 for 2) in <main>' you can read that as, 'your homeless code couldn't afford to run the method' time to get out on the corner with a sign
reactormonk has quit [Ping timeout: 260 seconds]
jhulten has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
rasta-man has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
<shevy>
hmm someone reminds me why I am using $stdout.flush in this old script here...
alem0lars has quit [Quit: alem0lars]
Solnse has quit [Ping timeout: 240 seconds]
kilk_ has left #ruby [#ruby]
kilk_ has joined #ruby
kilk_ has left #ruby [#ruby]
kilk_ has joined #ruby
<noob101>
RubyPanther: Ah ok.
jack_rabbit has joined #ruby
<noob101>
RubyPanther: this is my error: <filename>:<line number>:in '<main>': undefined method 'to_i=' for 1:Fixnum (NoMethodError)
<shevy>
isn't that the same you had yesterday
<noob101>
I don't know.
dawkirst has quit [Remote host closed the connection]
<noob101>
but the thing about this is that the line number shows that there is an error on an else statement
<wu_>
i'm still confused as to why i'd want rails. have been since 2005. hasn't stopped their runaway success
<uTosTan>
Ah, alright. Thanks
<luckyruby>
RubyPanther: nori/nokogiri is what's creating the hash
<wu_>
if those Github usage-charts are accurate, Ruby will be forgotten in a few years anyways as everyone goes pure JS
<luckyruby>
input is an xml message that nori converts to a hash.
teddyp1c_ has quit [Ping timeout: 264 seconds]
wm3|away has quit [Ping timeout: 252 seconds]
<Morrolan>
luckyruby: Deeply nested XML responses? Sounds as if you had to work with SOAP. :o
<RubyPanther>
luckyruby: scaping is icky, so you might be doing okay, but jhass had the "right" answer
anaeem1 has joined #ruby
<RubyPanther>
scraping
rm_ has quit [Ping timeout: 264 seconds]
<luckyruby>
not scraping, Morrolan is spot on.
<luckyruby>
mean to be a soap api but I couldn't get wash_out to work properly so I'm rewriting it as an xml over https webservice.
<luckyruby>
s/mean/meant
<jhass>
which parts exactly are optional? first level? second level? all of it?
dawkirst has quit [Ping timeout: 240 seconds]
heftig has quit [Quit: Quitting]
<luckyruby>
jhass: iata
<luckyruby>
which is like 6 levels deep
<RubyPanther>
in the end it is less work to just instantiate objects that know about their default values, usually you can share most of the code anyways
<jhass>
that's not what I mean
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<jhass>
is request["POS"] always present? request["POS"]["Source"]? etc.
<JokesOnYou77>
I'm learning rails with railstutorial.org and part of the tutorial is a gem freeze: $ gem update --system 2.1.9 Is that something that I can/should undo later? If so, how?
qwyeth has quit [Remote host closed the connection]
b1205 has quit [Ping timeout: 240 seconds]
Doppp has joined #ruby
except has joined #ruby
heftig has joined #ruby
danshultz has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Remote host closed the connection]
<Hanmac>
JokesOnYou77: #rubyonrails
nitr has joined #ruby
qwyeth has joined #ruby
<shevy>
JokesOnYou77 if you wish to update all gems sure
<shevy>
I dont think you can undo it
<shevy>
I would copy all the .gem files
<JokesOnYou77>
shevy, Is the change system wide or jsut for the project that I'm in? Is there a way to get bask to whatever the default is?
<shevy>
additionally all .gem files are cached in $SITE_DIR_PREFIX/lib/ruby/gems/2.1.0/cache/
<JokesOnYou77>
I'm only concerned because it's a system setting that I'm likely to forget about I'm I have no doubt will cause conflicts with future projects :/
<crucify_me>
con in the code is consecutive primes I assume run_kmc
doodlehaus has joined #ruby
<crucify_me>
cons *
<run_kmc>
Yeah. is this a project euler question?
<crucify_me>
yeah run_kmc is that alright?
<run_kmc>
yeah, just wondered. the question is written in that style. Let me look at this for about 60 seconds
doodlehaus has quit [Client Quit]
<crucify_me>
it's ruby modified by a member here run_kmc thanks.
timonv has joined #ruby
IceDragon_ is now known as IceDragon
<crucify_me>
its not my code I am trying to kill two birds with one stone by learning this stuff ^
NukePuppy has quit [Ping timeout: 252 seconds]
kireevco has quit [Client Quit]
Nitr is now known as Nitr_
yubrew has joined #ruby
<run_kmc>
crucify_me: yeah, line 9 creates an array that is a portion of the primes array called cons
Nitr_ is now known as nitr_aka_anty
<run_kmc>
then line 10 adds those all together
timonv has quit [Ping timeout: 264 seconds]
chrisseaton has joined #ruby
<crucify_me>
so first run_kmc , why is the block run 10 times. Is that known beforehand because of the numbers being used, or squareRoots or something?
mary5030 has joined #ruby
KLVTZ has quit [Ping timeout: 255 seconds]
amargherio has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
<run_kmc>
That, I'm not sure about. seems like it might be arbitrary. This ruby works, but it doesn't seem really idiomatic.
luckyruby has quit [Quit: Leaving...]
<crucify_me>
run_kmc: dang well line 14, end while sum < 1000000 looked funny. ^
claymore has joined #ruby
<run_kmc>
crucify_me: yeah, that one sticks out
mary5030 has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 252 seconds]
moritzschaefer has joined #ruby
<crucify_me>
but it is an interesting problem to me. how does that simple accumulator math find the consecutive flush of prime numbers with that range ?
<crucify_me>
run_kmc:
moritzschaefer has quit [Max SendQ exceeded]
moritzschaefer has joined #ruby
dawkirst has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
bthesorceror has joined #ruby
<bmurt>
how are ya'll handling a bundle exec command via cron?
jheg_ has quit [Ping timeout: 252 seconds]
<shevy>
with prayers
<run_kmc>
crucify_me: it is interesting.
phutchins has quit [Ping timeout: 276 seconds]
bthesorceror has quit [Ping timeout: 240 seconds]
<crucify_me>
run_kmc: thanks a lot . I took an interest in cryptography without knowing much about programming so my work is cut out.
<run_kmc>
crucify_me: anytime, maybe I'll be of more use next time. =)