<volty>
that's why find the fist part crappy -- I see extending patterns over OO, over lists, over everything . Will our heroes extend the domain of their patterns further, on the register loading values & instructions?
<volty>
enough! going back on my programming without knowing that i'm using 'patterns' :)
amacgregor__ has quit [Ping timeout: 246 seconds]
elaptics is now known as elaptics`away
baroquebobcat has quit [Quit: baroquebobcat]
jonathanwallace3 has quit [Ping timeout: 260 seconds]
predator117 has joined #ruby
bamdad has quit [Quit: bamdad]
mneorr has joined #ruby
kbouwser has joined #ruby
kil0byte has quit [Remote host closed the connection]
<Flashmasterson>
i found five places in this gist where a string is placed inside of a string, but the tutorial i'm going through says there's only four https://gist.github.com/Flashmasterson/7176369
Guest73909 has joined #ruby
vlad_starkov has joined #ruby
<Flashmasterson>
aaahh nevermind, he adds that he might be lying about that
Guest73909 has quit [Changing host]
Guest73909 has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
vlad_starkov has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
verazabeida has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
tkuchiki has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
<popl>
ah, as evidenced by "ex8.rb:5: syntax error"
<popl>
it works ok in irb
mercwithamouth has joined #ruby
<popl>
is that the entire script?
<Flashmasterson1>
for the error? yeah
<popl>
did you copy and paste it or did you type it into the gist?
randomnick_ has joined #ruby
<Flashmasterson1>
copy n paste
<popl>
ah
<popl>
yeah, syntax error
<volty>
you have " after ]
<popl>
line 4
<popl>
what volty said
lfox has quit [Quit: ZZZzzz…]
atno has joined #ruby
randomnick_ has quit [Client Quit]
lkba has joined #ruby
freakazoid0223 has joined #ruby
pr0ggie has joined #ruby
sarlalian has joined #ruby
kaldrenon has joined #ruby
TheMoonMaster has quit [Excess Flood]
madhatter has quit [Ping timeout: 245 seconds]
<Flashmasterson1>
gaaaah. thank you
<volty>
and for the future: when you see syntax error look on the previous line(s) -- that determine irregularities that ruby captures on the following line(s)
<Flashmasterson1>
'learning to be more detail-oriented
Spami has joined #ruby
DanKnox_away is now known as DanKnox
<Flashmasterson1>
volty: ah, so if the error is for line5, then look at line4 closely?
jalcine is now known as jalcine_
TheMoonMaster has joined #ruby
tatsuya_o has joined #ruby
rickmasta has quit [Quit: Leaving...]
kaldrenon has quit [Ping timeout: 272 seconds]
<volty>
["one", "two", "three", "four]"] <-- ruby expects the ] and is looking for it on the following line
<volty>
so the error IS on the line 5
creeden has quit [Read error: Connection timed out]
<volty>
a trick for novices (or just too tired, or for complicated code/layout) -- introduce syntax errors yourself, intentionally, e.g. interline with ***
mercwithamouth has quit [Ping timeout: 272 seconds]
kaspergr_ has quit [Ping timeout: 245 seconds]
<volty>
ops, sorry, __END__ (instead of ***)
astrobunny has quit [Ping timeout: 272 seconds]
volty has quit [Quit: Konversation terminated!]
devoldmx3 has quit [Ping timeout: 240 seconds]
Methylated has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
jonathanwallace3 has quit [Ping timeout: 260 seconds]
thepumpkin has quit [Remote host closed the connection]
thepumpkin has joined #ruby
astrobunny has joined #ruby
<Flashmasterson1>
volt huh, that's cool
<Flashmasterson1>
voltythanks
<Flashmasterson1>
is this what eval.in is primarily used for?
thepumpkin has quit [Ping timeout: 245 seconds]
osvico has quit []
julweber_ has joined #ruby
|jemc| has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
jalcine is now known as jalcine_
madhatter has joined #ruby
osvico has joined #ruby
roadt__ has quit [Ping timeout: 245 seconds]
julweber has quit [Ping timeout: 268 seconds]
banghouse2 has quit [Read error: Connection reset by peer]
banghouse2 has quit [Read error: Connection reset by peer]
drag00n has joined #ruby
<|jemc|>
heheh
<|jemc|>
"No Experience required!"
<|jemc|>
"We guarantee you that you will earn 1500$ in your first week by simple task of 5 - 10 minute"
mneorr has joined #ruby
mfridh has quit [Read error: Connection reset by peer]
Methylated has quit [Quit: Leaving.]
unsay__ has joined #ruby
crysislinux has joined #ruby
crysislinux has left #ruby [#ruby]
unsay__ has quit [Client Quit]
starfox21 has joined #ruby
<|jemc|>
Flashmasterson1: how exactly does your output differ from what is expected? I don't follow.
Methylated has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
carif has quit [Ping timeout: 272 seconds]
<Flashmasterson1>
[jemc] it's difficult to catch because it's blank space, but my output differs in that the next prompt line is directly under the last line of output - instead of a blank line separating the two, as the tutorial displays
<|jemc|>
if you want the extra blank line at the end, put the extra puts after all the other puts's
Kabaka has quit [Ping timeout: 240 seconds]
dv_ has quit [Ping timeout: 245 seconds]
<|jemc|>
so, in the example, each text is being stored in a variable named after a cat
rcs has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<|jemc|>
but the printing to STDOUT doesn't happen until puts is called with each variable as an argument
starfox21 has quit [Quit: starfox21]
<|jemc|>
so the correct place to put the puts call with no argument for an empty line at the end is after all the other calls to puts, not after all the text assignments to the variables
tatsuya_o has quit [Ping timeout: 272 seconds]
SegFaultAX has joined #ruby
Methylated has joined #ruby
lemonsparrow has joined #ruby
KobraKao has joined #ruby
<Flashmasterson1>
ah ok, i will try again now
KhalilC has joined #ruby
<Flashmasterson1>
because before the puts' are entered, the code is just the assignment of variables
<Flashmasterson1>
problem solved, thanks
carif has joined #ruby
Azulinho has joined #ruby
DanKnox_away is now known as DanKnox
capncrunch4me has joined #ruby
Zai00 has quit [Quit: Zai00]
mklappstuhl has quit [Remote host closed the connection]
capncrunch4me has quit [Client Quit]
ngpestelos has quit [Read error: Connection reset by peer]
yourmysin has quit [Remote host closed the connection]
forced_request has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
<Flashmasterson1>
what are some good resources for checking out various escape sequences?
mostlybadfly_ is now known as mostlybadfly
<bnagy>
friendly reminder - you will begin to irritate people if you display zero ability to google
<Flashmasterson1>
everything irritates people here
gyre007 has joined #ruby
okinomo has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
mklappst_ has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
Azulinho has quit [Ping timeout: 240 seconds]
bamdad has quit [Quit: bamdad]
Soda has quit [Remote host closed the connection]
mklappst_ has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<jrobeson>
Flashmasterson1, not as much as inability to google.. which is the underlying thing that irritates people in everything before
<jrobeson>
we don't get paid enough to be personal tutors
ngpestelos has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
astrobunny has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
<heftig>
|jemc|: they're not child processes. on linux, threads and processes just share the same namespace
<heftig>
that is, they're all schedulables that have a "PID", even when they're not actually processes
|jemc| has quit [Ping timeout: 245 seconds]
<heftig>
OS X may handle it the same way
|jemc| has joined #ruby
<|jemc|>
heftig: well that explains it.
<|jemc|>
heftig: thanks
andredie` is now known as andredieb
andredieb is now known as Guest78510
<heftig>
|jemc|: you'll notice that threads get no visible directory entry in /proc, but you can still do a "cd /proc/<pid>" for a thread
<heftig>
they do have directories as /proc/<pid>/task/<tid>, though, <pid> being the actual process id
<|jemc|>
well, I thought it a poor choice that mri would spawn a child process for every thread - that's why I found it notable enough to remember.
<|jemc|>
so it's comforting to know that I was wrong
IceDragon has quit [Quit: Space~~~]
Guest78510 is now known as anredieg
mobileblue has quit [Ping timeout: 272 seconds]
mobileblue has joined #ruby
anredieg is now known as dieb_
ngpestelos has quit [Ping timeout: 265 seconds]
diegoviola has joined #ruby
<Senjai>
heftig: so wait, Each process has a main thread right, so does that mean each process can have two pids?
<Senjai>
heftig: I realize that may sound really stupid, i'm just trying to justify all these spares :/
astrobun_ has quit [Ping timeout: 272 seconds]
lnormous has joined #ruby
<|jemc|>
Senjai: if it helps, for a ruby vm with only the main thread I get two pids under the one process
<Senjai>
|jemc|: Yeah, it helps and might explain things :/
<|jemc|>
and for a ruby vm running two threads I get three pids under the one process
dieb_ is now known as andredieb
andredieb has quit [Changing host]
andredieb has joined #ruby
<|jemc|>
check your proc directory as heftig mentioned
<Senjai>
hmm..
<|jemc|>
yeah, that's interesting that /proc/{thread-pid} exists and can be read from but isn't visible under /proc
astrobunny has joined #ruby
nism-pi has quit [Read error: Operation timed out]
<|jemc|>
today I learned
endash has quit [Quit: endash]
<Senjai>
|jemc|: yeah, i get 5 processes with ps ax | grep ruby
<Senjai>
|jemc|: and cat /proc/pid/task/pid/children yields the 4 other processes that show up
<|jemc|>
well, there you go
<Senjai>
:)
<Senjai>
Think I should avoid using htop heh
wr3d has quit [Read error: Connection reset by peer]
<|jemc|>
I was interested in how rubinius handles my test case, and in case anyone cares,
mneorr has joined #ruby
<|jemc|>
there is one extra pid of 'overhead'
<|jemc|>
three pids for a rbx vm with 'one thread'
<|jemc|>
one user thread that is
<|jemc|>
and four pids for two threads
Shidash has joined #ruby
<|jemc|>
which I suppose makes sense
<Senjai>
|jemc|: how do you "run" a rubinius program? Do you still use "ruby" or is it a different command
judd7_ has joined #ruby
<|jemc|>
yeah, there are a couple other ways, but one of them is doing the same way you normally do
<|jemc|>
just the 'ruby' command points to rbx's ruby
julian-delphiki has joined #ruby
KobraKao has joined #ruby
<Senjai>
|jemc|: did you checkout ps ax | grep rbx (or ruby, whatever it is)
<|jemc|>
(I'm using rbenv to change rubies)
<Senjai>
i find it to be more active
<Senjai>
accurate*
<|jemc|>
yeah, well it shows the one process pid instead of the group of pids just as it did for you
mneorr has quit [Ping timeout: 268 seconds]
kobain has quit []
bean has quit [Ping timeout: 260 seconds]
goleldar has quit [Remote host closed the connection]
goleldar has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
lnormous has quit [Quit: Leaving]
ngpestelos has joined #ruby
wr3d has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tatsuya_o has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
dakotaben has joined #ruby
tatsuya_o has joined #ruby
goleldar has quit [Ping timeout: 272 seconds]
astrobunny has joined #ruby
tatsuya_o has quit [Ping timeout: 260 seconds]
MrPoT4tO has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
mrpot4to_ has joined #ruby
dakotaben has quit [Ping timeout: 260 seconds]
nisstyre has quit [Quit: Leaving]
kreeves has quit [Ping timeout: 272 seconds]
Methylated has quit [Quit: Leaving.]
drag00n has quit [Ping timeout: 260 seconds]
kil0byte has joined #ruby
lemonsparrow has quit [Ping timeout: 250 seconds]
bricker`LA has joined #ruby
imran_ has joined #ruby
Jetchisel has joined #ruby
imran_ is now known as iraja
pherryman has quit [Ping timeout: 252 seconds]
Liquid-- has quit [Quit: Computer has gone to sleep.]
pherryman has joined #ruby
ewnd9 has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Client Quit]
mrsolo has joined #ruby
hogeo has joined #ruby
petey_ has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
petey_ has quit [Ping timeout: 272 seconds]
Foredoomed has joined #ruby
judd7_ is now known as judd7
sevenseacat has joined #ruby
tcgden has joined #ruby
fridim_ has quit [Ping timeout: 272 seconds]
Methylated has joined #ruby
Methylated has left #ruby [#ruby]
tkuchiki has joined #ruby
kil0byte has quit [Ping timeout: 268 seconds]
tkuchiki has quit [Remote host closed the connection]
MrPoT4tO has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
MrPoT4tO has joined #ruby
pherryman has quit [Ping timeout: 245 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
mrpot4to_ has joined #ruby
elektronaut has quit [Ping timeout: 240 seconds]
mvangala_ has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
sevenseacat has quit [Quit: Leaving.]
zaychenok has quit [Ping timeout: 241 seconds]
rjhunter has joined #ruby
zaychenok has joined #ruby
nari has quit [Ping timeout: 245 seconds]
kil0byte has joined #ruby
elektronaut has joined #ruby
wr3d has quit [Remote host closed the connection]
brennanM_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
minotor has quit [Ping timeout: 272 seconds]
tatsuya_o has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
tkuchiki has joined #ruby
rhunter has joined #ruby
Al_ has quit [Quit: Al_]
rjhunter has quit [Ping timeout: 245 seconds]
rhunter has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 272 seconds]
CaptainJet has quit []
Vivekananda has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
tcgden has quit [Quit: Page closed]
pherryman has joined #ruby
thepumpkin has joined #ruby
astrobunny has quit [Ping timeout: 260 seconds]
roadt__ has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
astrobunny has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
vlad_starkov has joined #ruby
earthquake has quit [Quit: earthquake]
yacks has quit [Quit: Leaving]
chrishough has joined #ruby
hiyosi has joined #ruby
Foredoomed has quit [Remote host closed the connection]
chrishough has quit [Client Quit]
Foredoomed has joined #ruby
hiyosi has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
hiyosi has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
derebos has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
hogeo has quit [Read error: Connection reset by peer]
dhilipsiva has joined #ruby
Foredoomed has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
lxsameer has joined #ruby
Foredoomed has joined #ruby
agent_white has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
|jemc| has quit [Ping timeout: 268 seconds]
rickmasta has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
nerocrux has joined #ruby
CocoStorm has joined #ruby
<CocoStorm>
Hi, I'm trying to install rails using gem install rails and it's giving me this error: Could not find a valid gem rails (>=0), here is why: Unable to download data from https://www.rubygems.org/ etc..
astrobunny has joined #ruby
ludar has joined #ruby
mneorr has joined #ruby
ngpestelos has quit [Ping timeout: 240 seconds]
<popl>
CocoStorm: There's #rubyonrails which might offer more help. :)
<CocoStorm>
thanks popl
<jrobeson>
if a C extension is already setting a version, is there a good reason to set the version in lib/foo/version.rb ? is there anything that expects that to exist there? ever?
ludar has quit [Ping timeout: 260 seconds]
mneorr has quit [Ping timeout: 248 seconds]
WillAmes has quit [Remote host closed the connection]
kil0byte has joined #ruby
moted has quit [Ping timeout: 245 seconds]
WillAmes has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
<jrobeson>
hmm.. i thinking it'd be nice to avoid it in the C extension altogether now that i think about it..
nari has joined #ruby
skrine has joined #ruby
CocoStorm has left #ruby [#ruby]
okinomo has quit [Ping timeout: 272 seconds]
Foredoomed has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 245 seconds]
hiroyuki has joined #ruby
tatsuya_o has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
Foredoomed has joined #ruby
hobo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
roadt__ has joined #ruby
Rubyist has joined #ruby
Rubyist has quit [Remote host closed the connection]
tjad has joined #ruby
iDM|afk has joined #ruby
iDM|afk has left #ruby [#ruby]
tatsuya_o has quit [Ping timeout: 260 seconds]
Foredoomed has quit [Ping timeout: 248 seconds]
headius has joined #ruby
astrobunny has joined #ruby
tkuchiki has quit [Ping timeout: 248 seconds]
hiroyuki has joined #ruby
w4pm has joined #ruby
nerocrux has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 245 seconds]
<Senjai>
jrobeson: Really the only time would be for a gemspec. That way changing the version.rb file, will change the bundled gems version when you deploy automatically
headius has quit [Quit: headius]
Jetchisel has joined #ruby
<jrobeson>
well i realized that it'd be best to decouple the gem version from the C extension as i mentioned before you cleared your irc history likely
emdub_ has quit [Ping timeout: 245 seconds]
mrnugget has joined #ruby
emdub has joined #ruby
coderhs has joined #ruby
<jrobeson>
i had hparra add bundler support to ruby-serialport from a patch, but they were setting the VERSION constant from the C extension
<jrobeson>
so first i thought.. let's remove version.rb, but then.. wait.. that's not a good idea, because it won't necessarily be available during the gem build
<jrobeson>
so now duplicate constant errors
hobo has left #ruby [#ruby]
browndawg has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
w4pm has quit [Quit: leaving]
w4pm has joined #ruby
JMcAfreak has quit [Ping timeout: 245 seconds]
Shidash has quit [Ping timeout: 272 seconds]
kil0byte has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
fenec2 has quit [Ping timeout: 260 seconds]
astrobunny has joined #ruby
nari has quit [Ping timeout: 248 seconds]
`Chris` has joined #ruby
DaZ has quit [Ping timeout: 260 seconds]
w4pm has quit [Quit: leaving]
yfeldblum has joined #ruby
cfi30 has quit [Quit: WeeChat 0.4.2]
Foredoomed has joined #ruby
DaZ has joined #ruby
Shidash has joined #ruby
whunt has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
amacgregor has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
`Chris` has quit []
rjhunter has joined #ruby
julweber has joined #ruby
`Chris` has joined #ruby
Seich has joined #ruby
dangerousdave has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
lukec has quit [Quit: lukec]
freerobby has quit [Quit: Leaving.]
petey_ has joined #ruby
simoz has joined #ruby
petey_ has quit [Read error: Operation timed out]
bamdad has joined #ruby
skrine has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
eeriegeek has quit [Quit: Leaving.]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
mneorr has joined #ruby
joles has joined #ruby
simoz has quit [Ping timeout: 248 seconds]
nari has joined #ruby
simoz has joined #ruby
mrnugget has quit [Quit: mrnugget]
Fire-Dragon-DoL has quit [Read error: Connection reset by peer]
mneorr has quit [Ping timeout: 265 seconds]
tnk1 has joined #ruby
hogeo has joined #ruby
joles has quit [Remote host closed the connection]
kil0byte has joined #ruby
madaffari has joined #ruby
fntzr has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
Jabberish has quit [Ping timeout: 272 seconds]
zz_jrhorn424 is now known as jrhorn424
mrsolo has joined #ruby
tatsuya_o has quit [Ping timeout: 245 seconds]
veinofstars has quit [Quit: veinofstars]
nari has quit [Ping timeout: 248 seconds]
simoz has quit [Ping timeout: 272 seconds]
roadt__ has quit [Ping timeout: 240 seconds]
nari has joined #ruby
judd7 has quit [Quit: judd7]
tnk1 has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
zigomir has joined #ruby
JohnBat26 has joined #ruby
amacgregor_ has joined #ruby
thepumpkin has joined #ruby
skaflem has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Client Quit]
iraja has quit [Quit: Leaving...]
wildroman has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
kil0byte has quit [Ping timeout: 272 seconds]
Foredoomed has quit [Remote host closed the connection]
Jetchisel has joined #ruby
Foredoomed has joined #ruby
mikee has joined #ruby
postmodern has quit [Ping timeout: 268 seconds]
nextdropping has joined #ruby
wildroman has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
wildroman has joined #ruby
Foredoomed has quit [Ping timeout: 245 seconds]
wildroman has quit [Ping timeout: 245 seconds]
`Chris` has quit [Remote host closed the connection]
fntzr has quit [Ping timeout: 260 seconds]
Sammael has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
tkuchiki has joined #ruby
rjhunter has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Remote host closed the connection]
Foredoomed has joined #ruby
carraroj has joined #ruby
rjhunter has joined #ruby
brennanMKE has joined #ruby
rjhunter has quit [Remote host closed the connection]
browndawg has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
platypine has quit [Ping timeout: 248 seconds]
threesome has joined #ruby
shredding has joined #ruby
yano has joined #ruby
predator117 has joined #ruby
<shredding>
If I have a module Foo with a submodle Bar that has a class Baz - within the Foo module, do I always have to do Foo::Bar::Baz or is there a shortcut like Bar::Baz?
<shredding>
(newbie here :) )
nwertman_ has quit [Ping timeout: 252 seconds]
relix has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
fntzr has joined #ruby
<apeiros>
shredding: within Foo::Bar you can just use Baz
<bnagy>
you can include Foo
<apeiros>
outside you either have to use Foo::Bar::Baz or include Foo::Bar, then you can use just Baz
<shredding>
apeiros: Ah, and within Foo I can do Bar::Baz?
Notte has joined #ruby
<shredding>
This module syntax is really elegant.
decoponio has joined #ruby
mneorr has joined #ruby
vlad_starkov has joined #ruby
mrsolo has quit [Quit: Leaving]
<apeiros>
shredding: yes
deanrock0 has quit [Ping timeout: 264 seconds]
jalcine_ is now known as jalcine
mneorr has quit [Ping timeout: 245 seconds]
leonidlm has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
hiroyuki has quit [Read error: Connection reset by peer]
pherryman has quit [Read error: Connection reset by peer]
CocoStorm has joined #ruby
pherryman has joined #ruby
<CocoStorm>
is interactive ruby the main ide for ruby? :S
cads has quit [Ping timeout: 245 seconds]
<popl>
irb is more of a repl than an ide
<CocoStorm>
popl, so what do people develop with in ruby?
<popl>
I use vim.
<Hanmac1>
i use Gedit for small stuff and Eclipse for bigger ones
Hanmac1 is now known as Hanmac
* bnagy
points and laughs
<CocoStorm>
oh
<Hanmac>
bnagy: did you point at me? try you manage more than 200 files with references with something like vi
hiroyuki has joined #ruby
rippa has joined #ruby
<popl>
Hanmac: you are super sensitive. I think you need a hug.
<bnagy>
Hanmac: I use ST2, but I think there are vim plugins for that
<Hanmac>
isnt ST2 an mac thing? i need something that works on linux too
<bnagy>
osx win lin
Foredoomed has quit [Remote host closed the connection]
<bnagy>
plus the killer feature of Not Being Eclipse
Foredoomed has joined #ruby
tatsuya_o has joined #ruby
<Hanmac>
how many syntax langages does it support for one project? can i make an dir containing C++ files, an second xml and a third ruby?
devoldmx has joined #ruby
<bnagy>
yeah, they just get lumped together in the navigaty thing
Czupa has joined #ruby
<Hanmac>
how many projects can i open in one window? or does i need multible windows, one for each project?
postmodern has joined #ruby
boxmein has joined #ruby
boxmein has quit [Max SendQ exceeded]
zoldar has joined #ruby
<bnagy>
unlimited afaik, it just uses a folding thing
boxmein has joined #ruby
boxmein has quit [Max SendQ exceeded]
<apeiros>
things using things to do things
<bnagy>
I tend to use windows for 'main' projects, but that's just me
<apeiros>
thingtastics :)
boxmein has joined #ruby
<apeiros>
I tend to use 2 windows with ST2
<apeiros>
one with the project and a "sideboard" (with notes and stuff)
<dross>
I use IntelliJ IDEA
vlad_starkov has quit [Read error: No route to host]
Foredoomed has quit [Ping timeout: 248 seconds]
RichardBaker has joined #ruby
vlad_starkov has joined #ruby
<dross>
though I also do loads of java development, so I need an IDE which can move mountains
RichardBaker has quit [Client Quit]
<apeiros>
I thought IDEs are just supposed to count beans?
<Hanmac>
bnagy: i dont like to buy licences for only an text editor ...
tatsuya_o has quit [Ping timeout: 252 seconds]
<bnagy>
ok :)
jalcine is now known as jalcine_
<zoldar>
Hello. I'm getting setup with a simple Ruby Sinatra project and I have problem with getting test task to work correctly. I have a basic configuration of rate/testtask with pattern in Rakefile and one simple test which should fit the pattern: https://github.com/zoldar/sinatra-apartment/blob/master/Rakefile . Yet, when I run "rake", the report shows that now tests were run. What am I doing wrong here?
<Hanmac>
dross i dont like the IntelliJ shit ... i need IDEs that can support more than one langauge ... (my stuff is mostly C++ with ruby examples)
<Hanmac>
zoldar: there is an #sinatra channel with may helps you more
<dross>
Hanmac: How unfortunate you're too ignorant to read the features page of the IDEA project
<zoldar>
Hanmac: I think that it's more about rake/testtask than sinatra itself, that's why I'm asking it here, but thanks, I'll head there too
brennanMKE has joined #ruby
<dross>
IntelliJ Community Edition supports Java, Scala, Groovy, Closure and Kotlin. The Ultimate Edition supports an additional PHP, Python, Ruby and SQL(including various dialects)
<dross>
When speaking around me, I recommend reading before opening your mouth.
jibi has joined #ruby
<zoldar>
dross: are there some significant differences between rubymine and idea ultimate?
<Hanmac>
dross: when it support so many languages, why is there a need for PHPStorm and RubyMine? and like i already said, i dont want to buy for Text Editors, for sample does IDEA supports 2.0 Ruby syntax, or 1.9 or only 1.8?
brennanMKE has quit [Ping timeout: 245 seconds]
<dross>
Hanmac: use what you want. When you start earning 125-200/hr on a full time basis, the cost of IDEA isn't much.
brennanMKE has joined #ruby
ewnd9_ has joined #ruby
<bnagy>
schoolboy error! If you're earning that much per hour you should just use Notepad so everything takes way longer
Foredoomed has joined #ruby
<zoldar>
dross: so in the end, rubymine is just a bit more on the edge and has simpler ui. How about framework specific tooling? Is it only the privilege of rubymine or is it present in both?
ewnd9 has quit [Ping timeout: 272 seconds]
<dross>
zoldar: I don't have enough experience with RubyMine to say, I only use IDEA
<dross>
bnagy: heh
amacgregor_ has quit [Read error: No route to host]
amacgregor_ has joined #ruby
Tuxist has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
goganchic has joined #ruby
storehouses50 has joined #ruby
jbpros has joined #ruby
lsmola has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
julweber has joined #ruby
Notte has quit [Remote host closed the connection]
Notte has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
Notte has quit [Read error: No route to host]
Notte_ has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
tkuchiki has joined #ruby
jibi has quit [Ping timeout: 272 seconds]
adambeynon has joined #ruby
astrobunny has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
petey_ has joined #ruby
Czupa has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
spider-mario has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<atmosx>
what's the best freeware automated tool to test against a web applications (SQL Injection, XSS, CRFS, etc) ? Nessus?
sbos99 has quit [Read error: Operation timed out]
julweber has joined #ruby
thesheff17 has joined #ruby
ravster has joined #ruby
Clooth has quit [Quit: Leaving...]
pyrac has quit [Quit: pyrac]
boxmein is now known as [boxmein]
vlad_starkov has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
wildroman has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 248 seconds]
newbiehacker has joined #ruby
zigomir_ has quit [Ping timeout: 248 seconds]
Foredoomed has joined #ruby
xk_id has quit [Quit:
jbpros has joined #ruby
nomenkun has joined #ruby
Clooth has joined #ruby
newbiehacker has quit [Client Quit]
atno has joined #ruby
Foredoomed has quit [Ping timeout: 245 seconds]
Astral_ has joined #ruby
danshultz has joined #ruby
astrobunny has joined #ruby
Azulinho has joined #ruby
zul has joined #ruby
relix has joined #ruby
<zul>
Hi all I would like to do a rails app that get the facebook like count of a youtube video and store it into a mysql db, could you suggest me a good gem and a tutorial please? (I'm a newbie)
bassclef has joined #ruby
zigomir has joined #ruby
Astralum has quit [Ping timeout: 265 seconds]
<MrZYX>
better ask at #rubyonrails if you want to do a rails app ;) Though not sure why you'd need rails for that task
petey_ has joined #ruby
<atmosx>
zul: You'd better off with sinatra.
<MrZYX>
still not sure why you'd need a webapp to begin with
<atmosx>
you need just a view and a helper ... and some basic auth scheme if you need 1 user or a more complex (not rails-complex) if you need more.
<atmosx>
MrZYX: he wants other users to use it as well... (probably)
mixel has joined #ruby
zigomir_ has joined #ruby
<MrZYX>
we don't know. All we know so far is "take URL to youtube video, get view count, store count in MySQL db"
zigomir has quit [Ping timeout: 248 seconds]
DaZ has quit [Ping timeout: 248 seconds]
<atmosx>
MrZYX: true
danshultz has quit [Ping timeout: 245 seconds]
madaffari has quit [Remote host closed the connection]
Foredoomed has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
[boxmein] is now known as boxmein
rahulkmr has quit [Read error: Connection reset by peer]
petey_ has quit [Ping timeout: 245 seconds]
rahulkmr has joined #ruby
AlSquire has joined #ruby
pinyan has joined #ruby
<Hanmac>
apeiros: is there a better way for this? c11 = " -std=c++11 #{CONFIG["CC"] =~ /clang/ ? " -stdlib=libc++" : ""}"
<apeiros>
Hanmac: I don't know C++, sorry
<atmosx>
Hanmac: that's for a ruby script?
nfk has joined #ruby
<Hanmac>
yeah its for a extconf.rb
<atmosx>
the bugger that fails all the time under osx...
xk_id has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
DaZ has joined #ruby
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
sbos99 has joined #ruby
<Hanmac>
atmosx yeah ... its because of the shitty OSX that i need to spefiy that i need -stdlib=libc++ when i want -std=c++11 ... otherwise it does not work ... or do you have a different problem? ;D
iguano has joined #ruby
Vivekananda has joined #ruby
mneorr has joined #ruby
julweber has quit [Remote host closed the connection]
rahulkmr has quit [Quit: Leaving.]
rahulkmr has joined #ruby
julweber has joined #ruby
randomnick_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
iguano has quit [Client Quit]
mneorr has quit [Ping timeout: 252 seconds]
ewnd9 has joined #ruby
kil0byte has joined #ruby
pyrac has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
jonathanwallace3 has quit [Ping timeout: 272 seconds]
ubercl0ud has joined #ruby
nomenkun_ has joined #ruby
drumusician has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
Astral_ has quit [Ping timeout: 245 seconds]
wildroman has joined #ruby
Foredoomed has quit [Remote host closed the connection]
Foredoomed has joined #ruby
Naoe-Kanno has joined #ruby
jonathanwallace3 has joined #ruby
Foredoomed has quit [Remote host closed the connection]
Foredoomed has joined #ruby
SHyx0rmZ has quit [Ping timeout: 245 seconds]
timonv_ has quit [Remote host closed the connection]
Astralum has joined #ruby
timonv has joined #ruby
starfox21 has quit [Quit: starfox21]
hashpuppy has joined #ruby
pyrac has quit [Quit: pyrac]
tjaco has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
hiyosi has joined #ruby
arturro has quit [Remote host closed the connection]
tjaco has quit [Read error: Connection reset by peer]
arturro has joined #ruby
tjaco__ has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
thepumpkin has joined #ruby
arturro_ has joined #ruby
arturro has quit [Remote host closed the connection]
brennanMKE has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
Xaitec has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
atmosx has quit [Quit: Lost in trance]
lxsameer has quit [Quit: Leaving]
ixti has joined #ruby
joker_ has quit [Quit: Connection closed for inactivity]
bluOxigen has joined #ruby
rahulkmr has quit [Quit: Leaving.]
rahulkmr has joined #ruby
sambao21 has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
rahulkmr has quit [Quit: Leaving.]
rahulkmr has joined #ruby
barratt has quit [Quit: Leaving...]
sambao21 has quit [Ping timeout: 245 seconds]
_dma has joined #ruby
astrobunny has joined #ruby
jbpros has quit [Quit: jbpros]
vlad_sta_ has quit [Remote host closed the connection]
Xuerian has quit [Remote host closed the connection]
Xuerian has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
danshultz has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
rahulkmr has quit [Quit: Leaving.]
rahulkmr has joined #ruby
Monie has joined #ruby
dagnachew has joined #ruby
eeriegeek has joined #ruby
Xaitec has quit [Remote host closed the connection]
okinomo has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
mengu has quit [Quit: This computer has gone to sleep]
BizarreCake has joined #ruby
arturro_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
barratt has joined #ruby
hiyosi has joined #ruby
carraroj has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
barratt has quit [Client Quit]
_dma has quit [Remote host closed the connection]
rahulkmr has quit [Quit: Leaving.]
rahulkmr has joined #ruby
_dma has joined #ruby
zz_michael_mbp is now known as michael_mbp
Banistergalaxy has quit [Remote host closed the connection]
mneorr has joined #ruby
kreeves has joined #ruby
starfox21 has joined #ruby
freerobby has joined #ruby
p7r has joined #ruby
_dma has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
xk_id has quit [Quit:
mneorr has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
okinomo has quit [Ping timeout: 268 seconds]
timonv has joined #ruby
p7r has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vivekananda has quit [Remote host closed the connection]
roadt__ has quit [Ping timeout: 245 seconds]
julweber has quit [Ping timeout: 265 seconds]
_dma has joined #ruby
arturro has joined #ruby
<ubercl0ud>
anyone here with savon experience that could help me out?
sbos99 has quit [Ping timeout: 252 seconds]
SeySayux has quit [Ping timeout: 240 seconds]
lsmola has quit [Read error: Operation timed out]
tjaco__ has quit [Read error: Connection reset by peer]
platzhirsch has left #ruby [#ruby]
<storehouses50>
platzhirsch: 1
drumusician has joined #ruby
tjaco has joined #ruby
tjaco__ has joined #ruby
DropsOfSerenity has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
SeySayux has joined #ruby
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
lukec has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
ravster has quit [Quit: Leaving.]
Ox6abe has joined #ruby
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
brennanMKE has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
jbpros has joined #ruby
headius has joined #ruby
headius has quit [Client Quit]
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
arietis has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
rahulkmr has joined #ruby
freerobby has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
nateberkopec has joined #ruby
roadt__ has joined #ruby
<MrZYX>
apeiros: ^
jbpros has quit [Quit: jbpros]
<apeiros>
storehouses50: stop that
<MrZYX>
I don't think it's human
<apeiros>
storehouses50: kickban if I don't get a confirmation that you will stop it.
_HolyCow has joined #ruby
<apeiros>
(you've got 8min)
pyrac has joined #ruby
barratt has joined #ruby
coderhs has quit [Ping timeout: 268 seconds]
_HolyCow1 has quit [Ping timeout: 265 seconds]
rahulkmr has quit [Quit: Leaving.]
cdelo has quit [Read error: Connection reset by peer]
gemmy has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
forced_request has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
storehouses50 was kicked from #ruby by apeiros [storehouses50]
timonv has joined #ruby
mercwithamouth has quit [Ping timeout: 253 seconds]
carraroj has quit [Ping timeout: 272 seconds]
Fluidic has joined #ruby
freerobby has quit [Quit: Leaving.]
hogeo has quit [Ping timeout: 272 seconds]
goleldar has quit [Remote host closed the connection]
jbpros has joined #ruby
goleldar has joined #ruby
nkts has quit [Quit: xy]
dave_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
ixti has quit [Ping timeout: 268 seconds]
petey_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
goleldar has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
wesside has joined #ruby
jbpros has quit [Quit: jbpros]
tkuchiki has joined #ruby
nari has quit [Ping timeout: 240 seconds]
pen has joined #ruby
petey_ has quit [Ping timeout: 240 seconds]
arturro has quit [Remote host closed the connection]
arturro has joined #ruby
jrhe has joined #ruby
barratt has quit [Quit: Leaving...]
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
deanrock0 has joined #ruby
mixel has quit [Quit: mixel]
Vivekananda has joined #ruby
mixel has joined #ruby
arturro has quit [Ping timeout: 265 seconds]
<Fluidic>
I have a QA co-worker that wants to test web services. I suggested using ruby, MiniTest, and rest-client. Does anyone see this being a problem?
mneorr has joined #ruby
jibi has quit [Quit: brb]
coderhs has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
jonr22 has joined #ruby
tatsuya_o has joined #ruby
beiter has quit [Quit: beiter]
cads has quit [Read error: Operation timed out]
tatsuya_o has quit [Remote host closed the connection]
nutella has joined #ruby
nutella is now known as Guest86248
nari has joined #ruby
Fluidic has quit [Quit: Fluidic]
tkuchiki_ has quit [Remote host closed the connection]
Patchou has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
amacgregor__ is now known as amacgregor
timonv has joined #ruby
danshultz has joined #ruby
pyrac has quit [Quit: pyrac]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Davey has joined #ruby
velCzupa has joined #ruby
Czupa has quit [Read error: No route to host]
bean has joined #ruby
wallerdev has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
julian-delphiki has quit [Ping timeout: 245 seconds]
Flashmasterson has joined #ruby
tomzx_mac has joined #ruby
caitp has quit [Ping timeout: 265 seconds]
frustrum has joined #ruby
<Flashmasterson>
i did some googling on gets and chomp but am still uncertain about their application. gets (get string) refers to the nearest string above itself in the coding?
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
drumsrgr8forn8 has joined #ruby
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
carraroj has joined #ruby
nkts has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
Astral_ has joined #ruby
einarj has joined #ruby
drumsrgr8forn8 has joined #ruby
Astralum has quit [Ping timeout: 268 seconds]
thepumpkin has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
gemmy has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
rahulkmr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
supreme__ has joined #ruby
velCzupa has quit [Ping timeout: 265 seconds]
brennanMKE has joined #ruby
hiroyuki has joined #ruby
vlad_starkov has joined #ruby
jojosch has joined #ruby
Xeago has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 272 seconds]
pyrac has joined #ruby
<MrZYX>
gets reads a line from stdin (standard input)
astrobunny has quit [Read error: Connection reset by peer]
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
astrobun_ has joined #ruby
brennanMKE has quit [Ping timeout: 265 seconds]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
<shevy>
Flashmasterson yes, "get string", it's like "get user input". I usually do: user_input = gets.chomp, store input into the variable called user_input, and .chomp to remove trailing newline "\n" character
boxmein has joined #ruby
wildroman has quit [Remote host closed the connection]
<MrZYX>
chomp removes the given character from the end of string, the default being $/ which default in turn is "\n"
einarj has quit [Remote host closed the connection]
<Flashmasterson>
ok ok, there are too many things in there i don't understand yet
<MrZYX>
for example?
faulkner has quit [Ping timeout: 240 seconds]
Hamled has quit [Ping timeout: 245 seconds]
Hamled has joined #ruby
Soda has joined #ruby
Mitchellvanw has joined #ruby
rahulkmr has quit [Read error: Connection reset by peer]
faulkner has joined #ruby
<Flashmasterson>
p begin
lfox has quit [Ping timeout: 240 seconds]
<Flashmasterson>
"fob"
wildroman has quit [Ping timeout: 245 seconds]
<Flashmasterson>
rescue
<Flashmasterson>
Exception
radic_ has quit [Read error: Connection reset by peer]
<Flashmasterson>
raise e
Guest86248 has quit [Ping timeout: 245 seconds]
<MrZYX>
ignore the links
<Flashmasterson>
flush
<Flashmasterson>
ok
<MrZYX>
that's just boilerplate from the bot to work properly
Czupa has joined #ruby
<MrZYX>
just look at the input I gave and the output the bot pasted into the channel
radic has joined #ruby
gyre007 has joined #ruby
<Flashmasterson>
ok chomp literally chomps away the \n
<MrZYX>
yup
<Flashmasterson>
the new line
<Flashmasterson>
ok that's alright
gyre007 has quit [Remote host closed the connection]
pdimitrov has quit [Ping timeout: 245 seconds]
pr0ggie has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
pdimitrov has joined #ruby
pr0ggie has joined #ruby
timonv has joined #ruby
endash has joined #ruby
roadt__ has quit [Ping timeout: 265 seconds]
dagnachew has quit [Read error: Connection reset by peer]
caitp has joined #ruby
wildroman has joined #ruby
fridim_ has joined #ruby
drumsrgr8forn8 has joined #ruby
fgo has quit [Remote host closed the connection]
Foredoomed has quit []
threesome has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
freerobby has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
DaZ has quit [Read error: Operation timed out]
astrobun_ has quit [Ping timeout: 263 seconds]
yfeldblum has joined #ruby
caitp has quit [Ping timeout: 245 seconds]
nomenkun_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
lembacon has joined #ruby
lembacon has quit [Remote host closed the connection]
maroloccio has joined #ruby
rahulkmr has joined #ruby
astrobunny has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
<Flashmasterson>
MrZYX: was i right about gets' application though?
<MrZYX>
the one before I wrote what it does? ;)
Fire-Dragon-DoL has joined #ruby
<Flashmasterson>
MrZYX
<Flashmasterson>
11:50
<Flashmasterson>
gets reads a line from stdin (standard input) that's clear enough so far, but in terms of how it's applied to code. it's location and such
rahulkmr has quit [Read error: Connection reset by peer]
xk_id has joined #ruby
Emmanuel_Chanel has joined #ruby
`Chris` has joined #ruby
qr32 has joined #ruby
qr32 has left #ruby [#ruby]
mneorr has joined #ruby
<MrZYX>
well, you use it when you want the user to input something that you need to do something with, i.e. in an interactive script where a user answers questions or needs to provide a filepath etc.
<Flashmasterson>
so i'll try to make my own and see if i can use it independently
mneorr has quit [Ping timeout: 272 seconds]
<Flashmasterson>
are those () just there to play it safe?
<Flashmasterson>
so cover all OSs ?
noop has joined #ruby
jhaals has joined #ruby
<MrZYX>
no, there are some cases where what you want would be ambiguous without them
<Flashmasterson>
so it would be a good idea to use them?
<Flashmasterson>
for a noob like me i mean
<MrZYX>
like puts method1 argument1, argument2, is it puts(method1(argument1, argument2)) or puts(method1(argument1), argument2)
samfisher has joined #ruby
<MrZYX>
most people prefer to leave them of where possible
<Flashmasterson>
even in the context of chomp?
<MrZYX>
so in the example I just made up, they'd do puts method1(argument1, argument2) or puts method1(argument1), argument2 respectively
jhaals has quit [Client Quit]
<MrZYX>
in all contexts
MisutoWolf_ has joined #ruby
<Flashmasterson>
ok
<MrZYX>
try to leave them off, in many cases ruby will yell at you if it's ambiguous
<samfisher>
hello, I am starting to learn programming and I have to choose between: Perl, Ruby and Python. I find all three difficult as I have no programming experience. Any adivices/
<shevy>
noooo!
<Flashmasterson>
uh oh
sayan has joined #ruby
<shevy>
well
<shevy>
Flashmasterson, for method definitions, I would recommend to always use ()
<MrZYX>
samfisher: well, if you ask the question in #ruby, #perl and #python, what three answer would you expect? ;)
sayan has quit [Read error: Connection reset by peer]
<shevy>
Flashmasterson, for method invocations, though. if there are 0 arguments, it should be omitted. if there are arguments, I usually keep the ()
<shevy>
cat.meow vs. cat.meow()
<shevy>
people tend to not want to use cat.meow()
gyre007 has joined #ruby
<samfisher>
MrZYX: true :) do you know any good place to start ruby, right now?
<MrZYX>
tryruby.org
<shevy>
samfisher well. if you are good in any of these three, you can become good in all of them with little more effort, so basically you should just decide on one and focus on that
arturro has joined #ruby
<Flashmasterson>
shevy: thanks
<shevy>
samfisher ruby beats the other two in flexibility and elegance, and its philosophy is basically an extension of the perl philosophy
<shevy>
samfisher python probably has the most people use it though
<Flashmasterson>
MrZYX: if, in the gist i sent you, chomp is a method call to gets, then wouldn't gets be chomped? i know that sounds funny
Vivekananda has quit [Read error: Connection reset by peer]
<Flashmasterson>
because of the dot operator
<shevy>
samfisher I first learned perl, it was ok but not great. I then switched to php (!) and was more productive with it, but php as language is horrid from its design. so for me, I had to choose between ruby and python, and this interview made me decide for ruby - you should read it once too http://www.artima.com/intv/rubyP.html
MisutoWolf has quit [Ping timeout: 272 seconds]
verazabeida has joined #ruby
<shevy>
Flashmasterson .chomp is a method for strings
<MrZYX>
Flashmasterson: no, what gets returns is an instance of the class String, it returns a string so to say. chomp is then called on that return value, the string. Thus chomp is a method on String
<shevy>
Flashmasterson after a while, you will have learned those methods by heart
<shevy>
Flashmasterson on the left side you will find all methods on class String
<shevy>
I would read that list through once, even if you don't memorize it, your brain will have noticed it for the first time, which will eventually help you lateron
jhaals has joined #ruby
<Flashmasterson>
shevy: i'll keep that in, even though the definitions are hard to understand at this point in my development
<Flashmasterson>
*in mind
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
Mon_Ouie has quit [Ping timeout: 245 seconds]
jmoeller has quit []
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
derebos has quit [Remote host closed the connection]
<Flashmasterson>
shevy: the last of the chomp code is interesting. "hello".chomp("llo") #=> "he"
rahulkmr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rahulkmr has quit [Max SendQ exceeded]
fightback has joined #ruby
<Flashmasterson>
shevy: the 3rd and 4th lines are a bit confusing
<samfisher>
quit
samfisher has quit [Quit: exit error code 434]
gyre007 has quit [Ping timeout: 272 seconds]
radic has quit [Ping timeout: 245 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
sayan has joined #ruby
<MrZYX>
read the description above it again
<shevy>
Flashmasterson yes, don't worry for understanding everything, deep understanding will come later almost on its own
rahulkmr has joined #ruby
<shevy>
Flashmasterson in general you can give an argument to .chomp()
<shevy>
but if you only want to kill the trailing newline, you can omit the argument
DrCode has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caitp has joined #ruby
brennanMKE has joined #ruby
supreme__ has quit [Quit: Lost terminal]
horofox has joined #ruby
horofox has quit [Client Quit]
Bry8Star{T2 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
fightback has quit [Quit: blackbagged]
MisutoWolf_ is now known as MisutoWolf
<Flashmasterson>
shevy: ok that part is clear, and the bit about understanding everything is reassuring
gyre007 has joined #ruby
jalcine_ is now known as jalcine
ehaliewicz has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<shevy>
it will come eventually, just keep on doing, it's like climbing a hill, the first hill is harder, the more hills you climb the easier it is
astrobunny has quit [Ping timeout: 272 seconds]
<shevy>
Flashmasterson also it is best if you write code on your own as soon as possible, and as much as possible, that is a way to learn that is most effective in my opinion
Ox6abe has quit [Remote host closed the connection]
noop has quit [Read error: Connection reset by peer]
Czupa has quit [Quit: Wychodzi]
brennanMKE has quit [Ping timeout: 248 seconds]
Czupa has joined #ruby
Tamae has joined #ruby
zz_jrhorn424 is now known as jrhorn424
wildroman has quit [Remote host closed the connection]
KobraKao has joined #ruby
jalcine is now known as jalcine_
wildroman has joined #ruby
vlad_starkov has joined #ruby
<Flashmasterson>
shevy: i guess i fear all the initial mistakes i would make, even though those are bound to happen at all stages of programming/web design
kil0byte has quit [Read error: Connection reset by peer]
radic has joined #ruby
yfeldblu_ has quit [Ping timeout: 272 seconds]
<shevy>
nah, mistakes are a way to learn
<shevy>
you should just try to understand why a mistake has happened
<MrZYX>
memorization is the least effective one, especially for programming
Ox6abe_ has joined #ruby
wildroman has quit [Read error: No route to host]
wildroman has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Ox6abe has joined #ruby
* apeiros
memorized core
<apeiros>
helped
julian-delphiki has joined #ruby
jonathanwallace3 has quit [Ping timeout: 248 seconds]
bean has quit [Ping timeout: 272 seconds]
Ox6abe__ has joined #ruby
<Flashmasterson>
hmm
lfox has joined #ruby
Ox6abe_ has quit [Ping timeout: 272 seconds]
jrhorn424 is now known as zz_jrhorn424
Ox6abe has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
zylad has left #ruby [#ruby]
Ox6abe__ has quit [Ping timeout: 272 seconds]
Ox6abe has joined #ruby
nowthatsamatt has joined #ruby
dr_bob has joined #ruby
brennanMKE has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
dr_bob has left #ruby [#ruby]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
h4mz1d has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
Ox6abe has quit [Ping timeout: 265 seconds]
`Chris` has quit [Remote host closed the connection]
petey_ has joined #ruby
`Chris` has joined #ruby
fenec2 has quit [Quit: Leaving]
jonr22 has joined #ruby
petey_ has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
petey_ has joined #ruby
Flashmasterson has quit [Quit: Leaving.]
`Chris` has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
[boxmein] has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
`Chris` has joined #ruby
noopq has joined #ruby
ShellFu has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
<ShellFu>
hey all. You guys may or may not know. Im a unix admin, and not a professional programmer. Im trying to get better here, and ive done a pullreview on my code here. It says I have a lot of complex methods, and am curious if someone could help me understand a better way to break these up.
|jemc| has joined #ruby
<ShellFu>
Yes my methods work fine, but I dont want to be sloppy here. Im not sure how to address the issue as im stuck working with my limited knowledge in this area.
<ShellFu>
str2hash takes a string from the command line on the unix shell and converts to a hash. Naming files.. Yeah I need to look at more descriptive names. They are not the best right now
sparq_ has quit [Read error: Connection reset by peer]
verazabeida has quit [Remote host closed the connection]
<ShellFu>
for method parameters I see the preferred choice is an options hash?
<andrewvos>
Oh ok I see. You should use optionparser or something instead, I guess
nateberkopec has quit [Quit: Leaving...]
<ShellFu>
checking that out also
<andrewvos>
Slop is quite nice
<andrewvos>
It's a gem
ubercl0ud is now known as ubercl0ud|away
<andrewvos>
Also I see you didn't make your library a gem
<andrewvos>
Oh gotta go
<ShellFu>
np take care. Appreciate the nudge.
CaptainJet has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<Hanmac>
hm isnt optionparser or something similar in stdlib?
<canton7>
yeah
<canton7>
Trollop's a really nice option parser, and is a single file for easy inclusion in your project
<canton7>
although it doesn't do sub-commands as well as slop
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
jalcine_ is now known as jalcine
jrhe has quit [Quit: jrhe]
astrobunny has quit [Ping timeout: 272 seconds]
<ShellFu>
Im trying to understand the extract method. How does one determine what is to much or to little to put into a method? In my head these items are related and belong in the same method.
saarinen has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
Ox6abe has quit [Ping timeout: 268 seconds]
<ShellFu>
from my reading it seems its similar to dependency injection ive been reading about. Would that be accurate?
<ShellFu>
lol you guys are probably just "jesus..."
astrobunny has joined #ruby
rahulkmr has joined #ruby
Astralum has joined #ruby
jkline has joined #ruby
lfox has quit [Quit: ZZZzzz…]
jmoeller has joined #ruby
threesome has joined #ruby
mklappstuhl has joined #ruby
mark_locklear has joined #ruby
brennanMKE has joined #ruby
jkline has quit [Quit: jkline]
hiyosi has joined #ruby
jrhe has joined #ruby
Clooth has joined #ruby
frustrum has quit [Quit: WeeChat 0.4.2]
<dobry-den>
ShellFu: Nah dude, always ask questions. irc is just the idler's game.
<dobry-den>
Your question is pretty much a lifelong struggle as a programmer.
danshultz has quit [Remote host closed the connection]
jonathanwallace3 has quit [Quit: WeeChat 0.4.1]
h4mz1d has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
danshultz has joined #ruby
<dobry-den>
I think writing tests are one of the best ways to answer that question
<ShellFu>
yeah something I havent really done. Tests arent needed for ksh scripts lol
<dobry-den>
Tests immediately reveal to you when your method does too much. Because those methods suck to test
<ShellFu>
coming from unix i find that I certainly lack some best practices.
<ShellFu>
but if your shit breaks. I can help ya ;)
hiyosi has quit [Ping timeout: 272 seconds]
vlad_sta_ has joined #ruby
<dobry-den>
I'd say most people don't test. But "test" here is actually abstract. Because I'm also referring to testing your methods in the repl or whatever workflow you use to write code.
<dobry-den>
Say you write a function that gets an array of data from Redis and sorts it. Every time you need to tweak this function, you have to spin up Redis. so painful. So you realize you can write a function that you pass data into whether it's from Redis or just [1 2 3]
<shevy>
it depends on what qualifies as testing
<shevy>
I do test my code, but in a rather minimal way
<dobry-den>
shevy: yeah, testing is an overloaded term.
<ShellFu>
dobry-den, ah I see.
danshultz has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
<shevy>
or doing tests like the NASA space agency for every line of ruby code :)
<ShellFu>
Well. THey have more reason to do that than I :)
<shevy>
and more money!
Davey has joined #ruby
<dobry-den>
ShellFu: also, if you have some example code, feel free to paste it and ask for channel feedback
<dobry-den>
helping someone refactor a method is always a tempting way to procrastinate the things we're otherwise trying to do irl
<dobry-den>
unless it's too big of a mudball
mneorr has joined #ruby
<shevy>
hehe
wesside has joined #ruby
<ShellFu>
I do have example code. I ran a pullreview.com on it, and I have some overly complex methods.
wildroman has quit [Remote host closed the connection]
<shevy>
not easy to refactor
wildroman has joined #ruby
verazabeida has joined #ruby
<ShellFu>
yeah Im trying to see what I can do with it. Basically it takes a hash. Looks up a yaml file and loads that into a hash. Compares the two then merges
<shevy>
also
danshultz has joined #ruby
<shevy>
it's harder because you cram a lot of characters into a line
<shevy>
I usually try to reduce the amount of characters needed to a minimum
<dobry-den>
dunno. log(:warn, "Hello") is a common pattern
<shevy>
does he log or does he output a message
<dobry-den>
log(:arbitrary-thing, msg) is an easier api than remembering aribitrary-thing(msg)
<ShellFu>
both
ewnd9 has quit [Ping timeout: 272 seconds]
wildroman has quit [Ping timeout: 265 seconds]
<Xeago>
dobry-den: I'd make log an object onw hich I can call anything
<dobry-den>
yeah
<Xeago>
log.warn is equivalent to log(:warn…)
Mitchellvanw has joined #ruby
<Xeago>
and log.info
<ShellFu>
Xeago, ala log.<x>?
<ShellFu>
ah
KobraKao has quit [Quit: Leaving]
<dobry-den>
right
<Xeago>
and then not have to worry about it
<dobry-den>
log(:warn...), log.warn(...). same spirit
starfox21 has quit [Quit: starfox21]
<ShellFu>
That would be a style issue would it not? Functionally no different, performance wise no different
<Xeago>
disagree, you should expose an object, not a function
<Xeago>
(functions don't exist in ruby btw)
Astral_ has joined #ruby
<dobry-den>
I'd say it's a style issue
pyrac has joined #ruby
<dobry-den>
It's sort of a bikeshedding point in the scheme of things
<dobry-den>
when this #update monolith exists
arturro has quit [Remote host closed the connection]
<Xeago>
I've only seen the last 3 minutes
<Xeago>
but configuring a logger makes more sense than having separate methods for that
arturro has joined #ruby
<Xeago>
config(…), and then calling log(:level,…)
<Xeago>
or logger.configure do; …; end; logger.warn(…)
wesside has joined #ruby
Flashmasterson has joined #ruby
maz-dev has joined #ruby
maz-dev has quit [Remote host closed the connection]
<ShellFu>
Yeah update is what im working now. Trying to see how it can be restructured. Still trying to figure out where to break up functionality.
maz-dev has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
<ShellFu>
I could have classes and parameters determined in another method, but I fail to see what that would gain me.
ravster has left #ruby [#ruby]
gyre007 has quit [Remote host closed the connection]
Mitchellvanw has quit [Read error: Connection reset by peer]
<shevy>
that's the kind of bikeshedding in ruby world
<shevy>
to have 100 ways and never decide for one
<dobry-den>
ShellFu: It's hard to tell what that function actually does, but I would write a helper method that lets you pass in a map result of #find and a map of {:environment _, :classes _, :parameters _, :inherit _}
Mitchellvanw has joined #ruby
gyre007 has joined #ruby
<dobry-den>
like pretend it's update-helper
DrCode has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
<maz-dev>
Hi, I'm trying to install the bcrypt-ruby gem, but I'm getting a compilation error, https://gist.github.com/anonymous/9d63b217930a99b85525, I'm running on OSX maverick and got the build tools installed from xcode. Do you have any clue on what could be wrong?
<dobry-den>
sort of like as if @automaton.find is our Redis, here
jibi has joined #ruby
<dobry-den>
but it's hard to say since your example involves surface area that we just can't see without credentializing in your app
zeade has joined #ruby
arturro has quit [Ping timeout: 272 seconds]
<dobry-den>
ideally i'd like to be able to call update-helper({...}, {...}) to test it
<Xeago>
maz-dev: how did you install ruby?
swordsmanz has quit [Quit: swordsmanz]
<maz-dev>
Xeago: rbenv, ruby 2.0.0-p247
TomRone has quit [Ping timeout: 245 seconds]
<Xeago>
rbenv doesn't install rubies
<Xeago>
did you use ruby-build or ruby-install, or are you still using system ruby on mavericks?
gyre007 has quit [Ping timeout: 272 seconds]
Soda has quit [Read error: Connection reset by peer]
<maz-dev>
Xeago: well, yep rebenv-installer, so I don't use the version shiped with maverick
<ShellFu>
No dobry-den that is pretty accurate. I think i understand what you're saying here.
<maz-dev>
Xeago: rbenv-installer*
eka has joined #ruby
zul has quit [Quit: Ex-Chat]
swordsmanz has joined #ruby
raphaelivan has joined #ruby
TomRone has joined #ruby
arturro has joined #ruby
jojosch has quit [Quit: Verlassend]
<Xeago>
maz-dev: oyu installed using ruby-build then
dakotaben has quit [Ping timeout: 245 seconds]
kvirani_ has quit [Ping timeout: 272 seconds]
<maz-dev>
Xeago: yes, sorry, you're right, I used ruby-build.
swordsmanz has quit [Client Quit]
weirdpercent has joined #ruby
platypine has joined #ruby
Zai00 has joined #ruby
<Xeago>
I'd have expected that to come with headers
<weirdpercent>
In my .erb file I set the background-color, font, and font color. When I view it with Rails or Sinatra it's the same black on white you start out with. what am I doing wrong?
swordsmanz has joined #ruby
<apeiros>
weirdpercent: obviously something in your markup
swordsmanz has quit [Client Quit]
CaptainJet has quit []
<weirdpercent>
apeiros: nvm I think I found it. only the partial is being rendered
<apeiros>
ok, obviously something in your setup :-p
jkline has joined #ruby
CaptainJet has joined #ruby
timonv has quit [Remote host closed the connection]
maz-dev has quit []
adambeynon has joined #ruby
jbpros has joined #ruby
Notte_ has quit [Remote host closed the connection]
Notte has joined #ruby
benlieb has joined #ruby
maz-dev has joined #ruby
<shevy>
ALL MUST CODE
icedp has joined #ruby
Notte has quit [Ping timeout: 245 seconds]
Ox6abe has joined #ruby
verazabeida has quit [Remote host closed the connection]
jbpros has quit [Ping timeout: 272 seconds]
decoponyo has quit [Quit: Leaving...]
wildroman has joined #ruby
jonr22 has joined #ruby
KobraKao has joined #ruby
TomRone has quit [Ping timeout: 245 seconds]
Senjai has joined #ruby
jbpros has joined #ruby
echevemaster has quit [Quit: Leaving]
Ox6abe has quit [Ping timeout: 272 seconds]
<maz-dev>
Ok I solved the problem, it was related to the upgrade to xcode 5 and the default use of LLVM, thx for your time
jonr22 has quit [Ping timeout: 260 seconds]
Kyushu_Yakushima has joined #ruby
TomRone has joined #ruby
pinyan has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 272 seconds]
jdoles has left #ruby [#ruby]
mrsolo has joined #ruby
hiyosi has joined #ruby
jbpros has quit [Quit: jbpros]
astrobunny has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
* slash_nick
codes
einarj has joined #ruby
huttan has quit [Ping timeout: 245 seconds]
kleinerdrache has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
jrhe has quit [Quit: jrhe]
BizarreCake has quit [Remote host closed the connection]
stevenhaddox has joined #ruby
jalcine is now known as jalcine_
drumusician has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
tjaco has quit [Read error: Connection reset by peer]
tjaco__ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
pen has quit [Remote host closed the connection]
* shevy
kills
mneorr has joined #ruby
adurity has joined #ruby
<shevy>
alright... I code as well... but without enthusiasm!!!
jrhe has joined #ruby
* shevy
shakes fist
Ox6abe has joined #ruby
nism-pi has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Ping timeout: 252 seconds]
rahulkmr has quit [Ping timeout: 265 seconds]
maletor has joined #ruby
nomenkun has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
ubercl0ud|away is now known as ubercl0ud
ubercl0ud is now known as ubercl0ud|away
Ox6abe has quit [Ping timeout: 272 seconds]
mneorr has quit [Ping timeout: 272 seconds]
astrobunny has joined #ruby
s2013 has joined #ruby
Czupa has quit [Ping timeout: 252 seconds]
einarj has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
ninegrid_ has joined #ruby
starfox21 has joined #ruby
arturro has quit []
arturro has joined #ruby
petey_ has joined #ruby
Czupa has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
ninegrid has quit [Ping timeout: 260 seconds]
dflurker has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
adurity has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
`Chris` has joined #ruby
benlieb has quit [Quit: benlieb]
rahulkmr has joined #ruby
petey_ has quit [Ping timeout: 248 seconds]
mary5030 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
`Chris`_ has joined #ruby
vlad_starkov has joined #ruby
Mitchellvanw has quit [Quit: Dozing off...]
coderhs has joined #ruby
ce_afk is now known as cescalante
`Chris` has quit [Ping timeout: 272 seconds]
newbiehacker has joined #ruby
pyrac has quit [Quit: pyrac]
vlad_starkov has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
gyre007 has joined #ruby
Shidash has quit [Quit: Leaving.]
mklappstuhl has quit [Remote host closed the connection]
intuxicated has joined #ruby
Shidash has joined #ruby
s2013 has quit [Ping timeout: 272 seconds]
g0bl1n has joined #ruby
yacks has joined #ruby
dflurker has joined #ruby
ninegrid_ has quit [Ping timeout: 242 seconds]
ninegrid has joined #ruby
pyrac has joined #ruby
blueOxigen has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
`Chris` has joined #ruby
gyre007 has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
okinomo has joined #ruby
`Chris`_ has quit [Ping timeout: 252 seconds]
hiyosi has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
robustus has quit [Ping timeout: 264 seconds]
pyrac has quit [Ping timeout: 252 seconds]
rahulkmr has quit [Ping timeout: 272 seconds]
sonmohikan has joined #ruby
robustus has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
zz_jrhorn424 is now known as jrhorn424
seoNinjaWarrior has joined #ruby
jojosch has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
earthquake has joined #ruby
benlieb has joined #ruby
devoldmx3 has joined #ruby
jkline has quit [Quit: jkline]
ninegrid has quit [Ping timeout: 245 seconds]
verazabeida has joined #ruby
s2013 has joined #ruby
ninegrid has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
huttan has joined #ruby
jrhorn424 is now known as zz_jrhorn424
saarinen has quit [Quit: saarinen]
timonv has quit [Ping timeout: 245 seconds]
drumusician has joined #ruby
DropsOfSerenity has joined #ruby
slash_nick has quit [Ping timeout: 248 seconds]
DonRichie has joined #ruby
cescalante is now known as ce_afk
dr_bob has joined #ruby
cina has joined #ruby
gr33n7007h has joined #ruby
bean has joined #ruby
<gr33n7007h>
All of a sudden auto-complete has stopped working in pry with this error; Bond Error: Failed internally with 'undefined method `match' for nil:NilClass'. Please report this issue with debug on: Bond.config[:debug] = true.
sonmohikan has quit [Quit: Leaving]
<gr33n7007h>
Any ideas?
Astral__ has joined #ruby
<Xeago>
maybe run it with debug?
Tearan has joined #ruby
jalcine_ is now known as jalcine
julian-delphiki has quit [Ping timeout: 272 seconds]
leonidlm has joined #ruby
forced_request has quit [Remote host closed the connection]
<gr33n7007h>
How?
danshultz has quit [Remote host closed the connection]
lizzinn has joined #ruby
vlad_starkov has joined #ruby
danshultz has joined #ruby
drumusician has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
Astral_ has quit [Ping timeout: 245 seconds]
Mitchellvanw has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
danshultz has quit [Ping timeout: 245 seconds]
weirdpercent has quit [Quit: Leaving]
ph8 has quit [Max SendQ exceeded]
huttan has quit [Ping timeout: 272 seconds]
goleldar has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julian-delphiki has joined #ruby
jalcine is now known as jalcine_
ph8 has joined #ruby
wildroman has quit [Remote host closed the connection]
dakotaben has joined #ruby
mneorr has joined #ruby
Ox6abe has joined #ruby
bean has quit [Ping timeout: 252 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
coderhs has quit [Ping timeout: 260 seconds]
amacgregor has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
jojosch has quit [Quit: Verlassend]
freezey has joined #ruby
swordsmanz has joined #ruby
freezey has quit [Client Quit]
Mitchellvanw has quit [Ping timeout: 245 seconds]
zarubin has joined #ruby
Astral__ has quit [Ping timeout: 260 seconds]
mneorr has quit [Ping timeout: 248 seconds]
Ox6abe has quit [Ping timeout: 265 seconds]
einarj has joined #ruby
kevinykchan has joined #ruby
vlad_starkov has joined #ruby
wesside has joined #ruby
ninegrid has quit [Ping timeout: 268 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
jrhe has quit [Quit: jrhe]
dangerousdave has joined #ruby
ninegrid has joined #ruby
Zai00 has quit [Quit: Zai00]
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
jrhe has joined #ruby
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
lizzinn has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Remote host closed the connection]
huttan has joined #ruby
wildroman has joined #ruby
nwertman_ has joined #ruby
wildroman has quit [Remote host closed the connection]
DropsOfSerenity has joined #ruby
jmoeller has quit []
wildroman has joined #ruby
srji has quit [Ping timeout: 264 seconds]
jbpros has joined #ruby
lizzinn has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
swordsmanz has quit [Quit: swordsmanz]
drumusician has joined #ruby
swordsmanz has joined #ruby
gyre007 has joined #ruby
lukec has quit [Quit: lukec]
julian-delphiki has quit [Quit: Leaving]
bean has joined #ruby
<shevy>
I notice python has Cython ... does ruby have anything like that?
Astralum has joined #ruby
skaflem has quit [Quit: Leaving]
nomadic_ has quit [Ping timeout: 245 seconds]
srji has joined #ruby
julweber has joined #ruby
KobraKao has quit [Read error: Connection reset by peer]
bean__ has joined #ruby
intuxicated has quit [Quit: Leaving]
swordsmanz has quit [Quit: swordsmanz]
gyre007 has quit [Ping timeout: 272 seconds]
coderhs has joined #ruby
havenwood has quit [Remote host closed the connection]
bean has quit [Ping timeout: 245 seconds]
arturro has quit []
jbpros has quit [Ping timeout: 272 seconds]
jonr22 has joined #ruby
g0bl1n has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
Mitchellvanw has joined #ruby
nomadic has joined #ruby
saarinen has quit [Client Quit]
julian-delphiki has joined #ruby
julian-delphiki has quit [Changing host]
julian-delphiki has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
coderhs has quit [Ping timeout: 240 seconds]
<|jemc|>
I'm not familiar with the fullness of Cython's featureset but Ruby's c extension environment already makes writing c extensions for Ruby simpler and DRYer than in Python (without Cython)
<|jemc|>
There's also the rice project which attempts to hide even more of the details for c++ extensions
mixel has quit [Quit: mixel]
jbpros has joined #ruby
<|jemc|>
it looks nifty, but I haven't used it
bean__ has quit [Ping timeout: 252 seconds]
<shevy>
hmmm %w() makes an array with strings, is there a way to do this with symbols?
<shevy>
thanks |jemc|
<MrZYX>
%i
kleinerdrache has quit [Quit: Ex-Chat]
<MrZYX>
>= 2.0
Flashmasterson has quit [Ping timeout: 265 seconds]
dr_bob1 has joined #ruby
havenwood has joined #ruby
pherryman_ has joined #ruby
pdimitrov has quit [Ping timeout: 245 seconds]
dr_bob has quit [Ping timeout: 265 seconds]
dbruns has joined #ruby
pherryman has quit [Read error: Connection reset by peer]
pdimitrov has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
ph8 has quit [Excess Flood]
Flashmasterson has joined #ruby
pr0ggie has quit [Ping timeout: 303 seconds]
DonRichie has quit [Write error: Connection reset by peer]
mark_locklear has quit [Ping timeout: 252 seconds]
burgess has joined #ruby
ph8 has quit [Ping timeout: 245 seconds]
jbpros has quit [Read error: Connection reset by peer]
raphaelivan has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
petey_ has quit [Ping timeout: 246 seconds]
<xperement>
Xeago, MrZYX, thanks
Shidash has quit [Ping timeout: 246 seconds]
jeer_ has quit [Ping timeout: 272 seconds]
kofno has joined #ruby
<samfisher>
now that page changed and I get wrong results. can anyone pls explain html.xpath('//*[@id="wrapper"]/div/div[1]/div[2]/div[5]').first.content ?
<samfisher>
too much /divs and i got lost
blackmesa has quit [Quit: WeeChat 0.4.2]
whunt has quit [Ping timeout: 272 seconds]
whunt has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
jeer_ has joined #ruby
ph8 has joined #ruby
nomenkun has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
spike|spiegel has quit [Ping timeout: 272 seconds]
clocKwize has quit [Ping timeout: 272 seconds]
ninegrid has quit [Ping timeout: 245 seconds]
clocKwize has joined #ruby
ninegrid has joined #ruby
spike|spiegel has joined #ruby
ph8 has quit [Max SendQ exceeded]
dweeb_ has joined #ruby
Mitchellvanw has joined #ruby
ph8 has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
Mitchellvanw has quit [Client Quit]
ph8 has quit [Max SendQ exceeded]
Notte has quit [Remote host closed the connection]
Notte has joined #ruby
ubercl0ud|away has left #ruby ["fdisk -l"]
Shidash has joined #ruby
alexim has quit [Quit: sleep]
nateberkopec has quit [Quit: Leaving...]
lessless has quit [Remote host closed the connection]
rvchangue has joined #ruby
aspires has joined #ruby
Notte has quit [Ping timeout: 260 seconds]
Czupa has quit [Remote host closed the connection]
petey_ has joined #ruby
Ox6abe has quit [Ping timeout: 253 seconds]
platypine has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
lizzinn has joined #ruby
mary5030 has joined #ruby
wildroman has quit [Remote host closed the connection]
ixti has joined #ruby
wildroman has joined #ruby
kevinykchan has joined #ruby
dbruns has quit [Quit: dbruns]
brennanMKE has joined #ruby
baroquebobcat has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
Sauvin has joined #ruby
lessless has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Jabberish has joined #ruby
ph8 has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
`Chris` has joined #ruby
p7r has joined #ruby
yfeldblum has joined #ruby
brtdv has quit []
capicue has joined #ruby
drumusician has quit [Ping timeout: 248 seconds]
Shidash has quit [Quit: Leaving.]
brtdv has joined #ruby
brennanMKE has quit [Ping timeout: 268 seconds]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
Shidash has joined #ruby
Flashmasterson has joined #ruby
tjaco has joined #ruby
drumusician has joined #ruby
cpruitt has quit [Quit: cpruitt]
lizzinn has quit [Quit: leaving]
kevinykchan has quit [Quit: Computer has gone to sleep.]
jrhe has joined #ruby
colonolGron has joined #ruby
p7r has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey_ has quit [Remote host closed the connection]
petey_ has joined #ruby
p7r has joined #ruby
claymore has quit [Quit: Leaving]
freezey has joined #ruby
freezey has quit [Read error: Connection reset by peer]
p7r has quit [Client Quit]
Mon_Ouie has joined #ruby
freezey has joined #ruby
burgess has quit [Quit: ^zzz]
aspires has quit [Quit: sudo making a sandwich]
blischalk has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
petey_ has quit [Ping timeout: 272 seconds]
elektronaut has quit [Ping timeout: 245 seconds]
leonidlm has quit [Ping timeout: 268 seconds]
nateberkopec has joined #ruby
Jetchisel has joined #ruby
anderson has quit [Ping timeout: 240 seconds]
verazabeida has quit [Remote host closed the connection]
mneorr has joined #ruby
anderson has joined #ruby
elektronaut has joined #ruby
tjaco__ has joined #ruby
ludar has joined #ruby
boxmein has joined #ruby
einarj has quit [Remote host closed the connection]
tjaco__ has quit [Client Quit]
germanstudent has quit [Quit: raus]
atmosx has joined #ruby
tjaco__ has joined #ruby
tjaco has quit [Ping timeout: 245 seconds]
drumusician has quit [Ping timeout: 245 seconds]
tjaco__ has quit [Client Quit]
freezey has quit [Remote host closed the connection]
Tuxist_ has quit [Read error: Connection reset by peer]
sepp2k1 has joined #ruby
kitak has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
nateberkopec has joined #ruby
dbRenaud has joined #ruby
Azulinho has quit [Ping timeout: 265 seconds]
kirun has quit [Quit: Client exiting]
mfridh has joined #ruby
ninegrid has quit [Ping timeout: 245 seconds]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
s2013 has quit [Quit: Leaving]
ninegrid has joined #ruby
s2013 has joined #ruby
pr0ggie has quit [Ping timeout: 245 seconds]
MattB2 has joined #ruby
robert_ has quit [Ping timeout: 252 seconds]
Senjai has quit [Ping timeout: 240 seconds]
pr0ggie has joined #ruby
pdimitrov has quit [Ping timeout: 272 seconds]
<MattB2>
Are Rails questions allowed here please?
pdimitrov has joined #ruby
<popl>
MattB2: you might find more help in #rubyonrails
<volty>
allowed but not answered
<|jemc|>
heh
<MattB2>
@volty :))
<volty>
:)
dweeb_ has quit [Quit: Computer has gone to sleep.]
<MattB2>
Thanks pool, I'll try there...
Lamech has quit [Ping timeout: 252 seconds]
<MattB2>
(pool)
iamjarvo has joined #ruby
<MattB2>
Ach, autocorrect!
zarubin has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
MattB2 has left #ruby [#ruby]
Vivekananda_ has quit [Ping timeout: 252 seconds]
ewokchewy has joined #ruby
MattB2 has joined #ruby
freerobby has joined #ruby
<MattB2>
getting some auth message on #ror, so I'll try my chances here.
roadt__ has joined #ruby
<MattB2>
Anyone know why the defat en.eym localisation would not be loaded?
<|jemc|>
did you register your nick with freenode?
<MattB2>
I have no other translations, and that file is default
<popl>
MattB2: did you read the message you got?
robert_ has joined #ruby
brain_shim has quit [Ping timeout: 260 seconds]
<s2013>
MattB2, you need to register and authenticate your nick
<|jemc|>
/msg Nickserv help
<popl>
yes, that's what it says in the message
<popl>
someone's not following directions. ;)
<popl>
that's a paddlin'
<MattB2>
But in the consume I18n.t :hello returns "translation missing: en.hello'
<MattB2>
'aint got no time of 'dat!
<MattB2>
'fo
<popl>
MattB2: I don't know a damned thing about rails
<MattB2>
Anyone else?
MrZYX is now known as MrZYX|off
<popl>
MattB2: the people who do are in #rubyonrails
<|jemc|>
heh, then the people of ruby on rails don't have time to answer your question
<MattB2>
This should work out of the box...
<MattB2>
Figures.
<|jemc|>
yeah, I also never use rails
<MattB2>
Oh well, thanks anyway.
<popl>
well, if your reluctance to read the one-line message you get from trying to join #rubyonrails is any sign, I would suggest you go over whatever tutorial you were following again to make sure you hadn't overlooked any steps.
Hganavak has joined #ruby
<MattB2>
No tutorial needed - it's a default!
<MattB2>
But it's broken...
<MattB2>
For no good reason
<s2013>
MattB2, what question do you have
<MattB2>
What one line message?
<s2013>
oh
<popl>
did you read the directions?
<|jemc|>
file a bug report with the relevant package if it's broken
<popl>
16:20 < MattB2> getting some auth message on #ror, so I'll try my chances here.
<popl>
that one
<MattB2>
@s2013 - why might rails not be loading en.yml?
`Chris` has quit [Remote host closed the connection]
<popl>
it happens :P
VTLob has quit [Quit: VTLob]
<dec>
newbie here... where/how can I learn about function/method prototyping? I've got a method defined with two parameters, but when I call it with two empty strings as parameters I get an 'undefined method' and would like to understand why.
Flashmasterson has quit [Ping timeout: 248 seconds]
brain_shim has joined #ruby
`Chris` has joined #ruby
<|jemc|>
dec: put your code and output in a gist or pastebin for us to look at
aggregatebot has joined #ruby
Nilium has quit [Ping timeout: 272 seconds]
pen has joined #ruby
<|jemc|>
also, because ruby resolves methods at runtime, the notion of prototyping like in C doesn't exist - methods have one point of definition, not a prototype followed by a definition
mrsolo has quit [Quit: This computer has gone to sleep]
<popl>
|jemc|++ # useful
timonv has quit [Ping timeout: 272 seconds]
<shevy>
dec in ruby, whatever method is defined last "wins"
apeiros has quit [Remote host closed the connection]
<shevy>
>> def foo; puts 'hi from foo'; foo;end; def foo; puts 'hi from bar'; end; foo
<|jemc|>
yeah, I only brought up the awkwardness of the term in ruby because if I hadn't been working on a c extension right now, I probably wouldn't have understood what you meant by that
<|jemc|>
c is fresh in my mind at the moment
<popl>
dec: do you have some code you can paste to a gist?
<dec>
popl: yep; will do now.
Nilium has joined #ruby
<|jemc|>
dec: in ruby, you can't have multiple definitions of a method in the same scope
<shevy>
dec that's a quite old tutorial. in general, if you want to pass in as many arguments as you want to, you can do this:
<shevy>
def foo(i*); p i; end
<shevy>
>> def foo(i*); p i; end; foo(); foo('1','a','b','c')
<eval-in>
shevy => undefined local variable or method `__caller__' for main:Object (NameError) ... (https://eval.in/57916)
_maes_ has joined #ruby
pen has quit [Remote host closed the connection]
pr0ggie has quit [Ping timeout: 246 seconds]
pr0ggie has joined #ruby
pdimitrov has quit [Ping timeout: 272 seconds]
tatsuya_o has joined #ruby
iamjarvo has quit [Remote host closed the connection]
dreamchaser has joined #ruby
Soda has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
Deele has quit [Quit: User excited]
iamjarvo has joined #ruby
mary5030 has joined #ruby
<dec>
OK, so I tried to reduce my issue to a simple testcase for a gist ... but ran into other issues so I'm going to rethink my problem.
kofno has quit [Ping timeout: 260 seconds]
`Chris` has joined #ruby
<popl>
word
<|jemc|>
dec: if you were passing the wrong number of arguments you would be getting an ArgumentError
<|jemc|>
if it's telling you the method is undefined, you're calling the method on an object which isn't the same object on which you defined the method
jibi has quit [Quit: .]
tatsuya_o has quit [Ping timeout: 272 seconds]
<|jemc|>
common issue for a newcomer might be trying to call an instance method on the class instead of an instance of the class
iamjarvo has quit [Ping timeout: 246 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
<volty>
<dec> newbie here... .... 'undefined method' .... but ran into other issues ....
<dec>
yeah, I was reading the test output wrong - I'd assumed a number of tests were passing when indeed they were failing.
freerobby has quit [Quit: Leaving.]
<dec>
hence my issue is actually somewhere completely else.
Mr_Wharfsnort has joined #ruby
<volty>
too many issues and too much teaching -- on unknown
kofno has joined #ruby
mrsolo has joined #ruby
<dec>
I'm not sure what you're trying to say, volty.
<|jemc|>
he was reprimanding me for overloading you with info
<volty>
nooo :)
<dreamchaser>
question about ruby, if i do bundle install --path vendor, does all the packages i installed only available in ruby source code? but not available on commandline? i specified berksfile in Gemfile, but berks command doesn't work at all
<volty>
you were overloading yourself with kindness :)
jonathanwallace has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
WickedAtMelb has joined #ruby
nisstyre has quit [Quit: Leaving]
<dec>
OK, dropping back to basics... can I define a module and then use it within the same file?