j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
solars has joined #ruby-lang
ledestin has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
mkaesz has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
<womble>
Well, I'm glad you narrowed it down.
mnilsson_ has quit [Ping timeout: 246 seconds]
mnilsson has quit [Ping timeout: 246 seconds]
djellemah_ has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
lytol has joined #ruby-lang
Iskarlar has joined #ruby-lang
lytol has quit [Ping timeout: 245 seconds]
mnilsson has joined #ruby-lang
mnilsson_ has joined #ruby-lang
piotrj has joined #ruby-lang
riffraff has joined #ruby-lang
futilegames has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
arBmind has joined #ruby-lang
<apeiros_>
I sometimes wonder whether people go to their car shop and ask "anybody got experience with cars? I got some problems with them."
arBmind has quit [Quit: Leaving.]
yfeldblu_ has quit [Ping timeout: 265 seconds]
nertzy has quit [Ping timeout: 245 seconds]
Integralist has joined #ruby-lang
yxejamir has joined #ruby-lang
mnilsson_ has quit [Quit: leaving]
mnilsson has quit [Quit: leaving]
yfeldblum has joined #ruby-lang
kohgpat has joined #ruby-lang
mnilsson has joined #ruby-lang
strixd has joined #ruby-lang
nertzy has joined #ruby-lang
gwendall has joined #ruby-lang
dsaint-pierre has quit [Remote host closed the connection]
AlexAltea has quit [Ping timeout: 255 seconds]
chinmay_dd has joined #ruby-lang
mikecmpbll has joined #ruby-lang
kohgpat has quit [Quit: leaving]
<fusillicode>
apeiros_: sry for the vagueness I was trying to approach the topic from a broader perspective
havenwood has quit [Remote host closed the connection]
<fusillicode>
if you have some experience with the gem I can explain further :)
elia has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<apeiros_>
fusillicode: I don't have. but I can tell you that this is not how you get help. you increase your chances significantly by asking real questions instead of this meta question.
<fusillicode>
apeiros_: ty for the hint
tkuchiki has quit [Ping timeout: 245 seconds]
<fusillicode>
apeiros_: let me try again :)
<fusillicode>
I have tree classes. A parent, a children and a grandchildren
<fusillicode>
The parent (that is actually a grandparent) includes the Virtuous.model
marr has joined #ruby-lang
caseydriscoll has quit [Read error: Connection reset by peer]
caseydriscoll has joined #ruby-lang
<fusillicode>
when I instantiate the grandchildren the children doesn't get the an attribute set up
<fusillicode>
I mean...it's Nil
Asher has joined #ruby-lang
<fusillicode>
nil
terpo has joined #ruby-lang
JaReAx has joined #ruby-lang
timanema has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
kyb3r_ has quit [Read error: Connection reset by peer]
timanema has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
<fusillicode>
the attribute is only defined in the context of that class
<fusillicode>
i.e. children
michael_mbp has joined #ruby-lang
elia has joined #ruby-lang
<fusillicode>
elia: :)
<elia>
hey fusillicode come va col mac? (lol)
<fusillicode>
elia: ce l'ha massimo ;)
<fusillicode>
elia: per adesso tengo il mio, fare il setup mi avrebbe perso troppo tempo
<elia>
heheh, sisi, lo sapevo
<fusillicode>
elia: lol...btw sono in una situazione brutta con la tesi
<fusillicode>
elia: capisco cmq probabilmente sono io che non so come usarla in maniera corretta
<elia>
allora puoi dare un occhio ad ActiveModel::Model (virtus non l'ho mai usato)
<elia>
mah… ROM, virtus & co sono un mega yak shaving
<fusillicode>
elia: ok
Voker57 has joined #ruby-lang
<fusillicode>
elia: allora quick question: ActiveModel::Model mi permetterebbe di definire degli attributi di default per PORO e poterli customizzare via initialize passando un hash?
martinbmadsen has quit [Ping timeout: 250 seconds]
<fusillicode>
elia: btw credo che convenga spostarci nella stanza it
<elia>
ouch, lol pensavo di essere li
ur5us has joined #ruby-lang
terpo has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby-lang
Newbie0086 has quit [Quit: 离开]
tunaCanBruh has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
terpo has joined #ruby-lang
auzty has quit [Quit: Leaving]
auzty has joined #ruby-lang
auzty has quit [Max SendQ exceeded]
Xzanron has quit [Ping timeout: 256 seconds]
hendranata_ has quit [Ping timeout: 240 seconds]
stamina has joined #ruby-lang
intinig has joined #ruby-lang
pepperbreath1 has joined #ruby-lang
bruno- has joined #ruby-lang
pepperbreath has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
bruno- has quit [Ping timeout: 256 seconds]
ndrst_ is now known as ndrst
Vivex_ has quit [Read error: Connection reset by peer]
ArchRogem has joined #ruby-lang
dRbiG has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
dRbiG has joined #ruby-lang
<yorickpeterse>
baguette
tkuchiki has joined #ruby-lang
ledestin has quit [Quit: ledestin]
stamina has quit [Quit: WeeChat 1.1.1]
timanema has joined #ruby-lang
yxejamir has quit [Ping timeout: 250 seconds]
elia has quit [Quit: Computer has gone to sleep.]
Integralist has quit [Ping timeout: 244 seconds]
chinmay_dd has quit [Quit: Connection closed for inactivity]
timanema has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
lytol has joined #ruby-lang
elia has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
ldnunes has joined #ruby-lang
allomov has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
piotrj has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 272 seconds]
Integralist has joined #ruby-lang
Vivex has joined #ruby-lang
intinig has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 256 seconds]
intinig has joined #ruby-lang
skade has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
intinig has quit [Ping timeout: 245 seconds]
piotrj has joined #ruby-lang
yfeldblum has joined #ruby-lang
godzillaenlacasa has joined #ruby-lang
ur5us has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
ur5us has quit [Ping timeout: 245 seconds]
allomov has joined #ruby-lang
intinig has joined #ruby-lang
bruno- has joined #ruby-lang
godzillaenlacasa has quit [Quit: Computer has gone to sleep.]
stardiviner has joined #ruby-lang
charliesome has quit [Quit: zzz]
bruno- has quit [Ping timeout: 255 seconds]
j4cknewt has joined #ruby-lang
charliesome has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
caseydriscoll has joined #ruby-lang
taylorrf has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
gwendall has quit [Remote host closed the connection]
taylorrf has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby-lang
seank_ has quit [Ping timeout: 256 seconds]
seank_ has joined #ruby-lang
shinnya has joined #ruby-lang
taylorrf has joined #ruby-lang
gwendall has joined #ruby-lang
b_hoffman has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
Mon_Ouie has quit [Ping timeout: 255 seconds]
oleo has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
yxejamir has joined #ruby-lang
fusillicode has quit [Ping timeout: 256 seconds]
stef204 has joined #ruby-lang
lytol has joined #ruby-lang
Integralist has quit [Ping timeout: 245 seconds]
rikkipitt has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
lytol has quit [Ping timeout: 265 seconds]
oleo has quit [Quit: Verlassend]
elia has quit [Quit: Computer has gone to sleep.]
piotrj has joined #ruby-lang
agarie has joined #ruby-lang
piotrj has quit [Ping timeout: 264 seconds]
heftig has quit [Remote host closed the connection]
timanema has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
heftig has joined #ruby-lang
yfeldblum has quit [Ping timeout: 256 seconds]
timanema has quit [Ping timeout: 256 seconds]
tunaCanBruh has quit [Ping timeout: 272 seconds]
Respek has joined #ruby-lang
fusillicode has joined #ruby-lang
enebo has joined #ruby-lang
enebo has quit [Client Quit]
sarkyniin has joined #ruby-lang
elia has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
fujimura has joined #ruby-lang
Integralist has joined #ruby-lang
timanema has joined #ruby-lang
sankaber has joined #ruby-lang
AugustoCesar1 has joined #ruby-lang
AugustoCesar1 has quit [Client Quit]
AugustoCesar has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
timanema has quit [Client Quit]
vondruch has quit [Quit: Ex-Chat]
terpo has quit []
Bwild has quit [Ping timeout: 264 seconds]
AKASkip has quit [Ping timeout: 255 seconds]
fujimura has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
simi has joined #ruby-lang
tcopeland has quit [Quit: Leaving.]
oleo has joined #ruby-lang
charliesome has quit [Quit: zzz]
centrx has joined #ruby-lang
enebo has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby-lang
tenderlove has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 272 seconds]
gwendall has joined #ruby-lang
<yorickpeterse>
def is_number?(value)
<yorickpeterse>
value.to_i.to_s == value
<yorickpeterse>
end
<yorickpeterse>
lol
sgambino has joined #ruby-lang
lytol has joined #ruby-lang
Respek_ has joined #ruby-lang
Respek has quit [Read error: Connection reset by peer]
<darix>
yorickpeterse: seems legit
lytol has quit [Ping timeout: 256 seconds]
slawrence00 has joined #ruby-lang
sgambino has quit [Remote host closed the connection]
malconis has joined #ruby-lang
taylorrf has quit []
tkuchiki has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Ping timeout: 246 seconds]
fujimura has joined #ruby-lang
tcopeland has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
oleo is now known as Guest59545
oleo__ has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
Lewix has quit [Client Quit]
nathanstitt has joined #ruby-lang
Guest59545 has quit [Ping timeout: 265 seconds]
jds has joined #ruby-lang
tkuchiki has joined #ruby-lang
<yorickpeterse>
Yeah, it's some solid piece of engineering
<yorickpeterse>
of course it has full test coverage too
<yorickpeterse>
and of course it also handles floating points
ayonkhan has joined #ruby-lang
ayonkhan has quit [Client Quit]
tunaCanBruh has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
Zionmaster has joined #ruby-lang
SuMo_D has joined #ruby-lang
agarie has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 245 seconds]
oleo__ has quit [Quit: Verlassend]
ottlikg has quit [Ping timeout: 245 seconds]
Zionmaster has quit [Remote host closed the connection]
Zionmaster has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby-lang
Respek_ has quit [Read error: Connection reset by peer]
godzillaenlacasa has joined #ruby-lang
mattyohe has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
momomomomo has joined #ruby-lang
Zionmaster has quit [Ping timeout: 250 seconds]
Integralist has quit [Ping timeout: 255 seconds]
arBmind has joined #ruby-lang
nifoc has quit [Remote host closed the connection]
nifoc has joined #ruby-lang
SuMo_D has quit [Ping timeout: 272 seconds]
malconis has quit [Ping timeout: 265 seconds]
Integralist has joined #ruby-lang
stardiviner has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
malconis has joined #ruby-lang
nifoc has quit [Remote host closed the connection]
nifoc has joined #ruby-lang
arBmind has quit [Ping timeout: 256 seconds]
solars has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 264 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
vipaca has joined #ruby-lang
setanta_ has joined #ruby-lang
oleo has joined #ruby-lang
rippa has joined #ruby-lang
lytol has joined #ruby-lang
SuMo_D has joined #ruby-lang
fujimura has quit []
|jemc| has joined #ruby-lang
skade has joined #ruby-lang
fujimura has joined #ruby-lang
allomov has quit [Remote host closed the connection]
zz_olivierrr is now known as olivierrr
j4cknewt has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tcopeland has quit [Ping timeout: 246 seconds]
micmus has joined #ruby-lang
agarie has joined #ruby-lang
cornerma1 has joined #ruby-lang
roamingdog has quit []
riotjones has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby-lang
hahuang65 has joined #ruby-lang
fusillicode has quit [Ping timeout: 265 seconds]
AKASkip has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
<darix>
yorickpeterse: the code isnt that bad btw ... it just looks "WTF"
<darix>
it does the whole jazz without raising an exception
<apeiros_>
darix: IMO a misnomer
<apeiros_>
it only allows integers, not all numbers
<darix>
apeiros_: question is ... how would you solve he problem in a more nice manner?
<darix>
apeiros_: method name aside. let's focus on the body first
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
<apeiros_>
darix: so phrase the problem as "how do I test whether a string is a valid number in base 10", yes?
<apeiros_>
s/number/integer/
<jtperreault>
i was curious about this too. perhaps is_a? or something similar
<apeiros_>
s/number/positive integer/
<darix>
apeiros_: "and if the the value of the number is the whole string or just a subset"
allomov has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 252 seconds]
tenderlove has quit [Quit: Leaving...]
tenderlove has joined #ruby-lang
Miphix has quit [Ping timeout: 265 seconds]
fusillicode has quit [Ping timeout: 256 seconds]
dellavg_ has quit [Ping timeout: 264 seconds]
j4cknewt has joined #ruby-lang
tvon has quit [Quit: Lost terminal]
roamingdog has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby-lang
tvon has joined #ruby-lang
sgambino has joined #ruby-lang
tvon has quit [Client Quit]
solars has joined #ruby-lang
<joevandyk>
CSV.open says it accepts an IO object. But: require 'stringio'; require 'csv'; CSV.open(StringIO.new('foo, goo')) # TypeError: no implicit conversion of StringIO into String
<joevandyk>
whereas CSV.open(File.open(..)) works just fine
ruby-lang099 has joined #ruby-lang
<ruby-lang099>
Ruby noob here...
<joevandyk>
oh shit, CSV.open is for writing a csv i think
<apeiros_>
joevandyk: not all things which accept an IO also accept a StringIO
yfeldblum has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
<ruby-lang099>
hey guys, howcome when I have <%= yield %> placed inside my <body>...</body>... it causes a block of white strip across the screen.... any idea how to solve this? I want the index page to be on TOP of the background image. not clearning out
<apeiros_>
but you can use CSV with strings directly
AugustoCesar has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
AugustoCesar has joined #ruby-lang
<ruby-lang099>
I've been closely following CSS/HTML instructions, but it seems like I may be doing something wrong with Ruby?
anotherguy has joined #ruby-lang
<anotherguy>
..
<anotherguy>
has anyone here complete the rails tutorial using rspec?
mikey320b has joined #ruby-lang
<havenwood>
anotherguy: Just a heads up, #RubyOnRails is a better place for Rails-related questions.
momomomomo has quit [Ping timeout: 252 seconds]
<anotherguy>
thank you
momomomomo has joined #ruby-lang
<havenwood>
ruby-lang099: Are you running into a particular problem? Or just a general feeling?
allomov has joined #ruby-lang
<havenwood>
ruby-lang099: The former two are markup languages so it's not surprising that a general purpose programming language would be more difficult to tackle.
sahglie has left #ruby-lang ["ERC Version 5.3 (IRC client for Emacs)"]
<havenwood>
ruby-lang099: Maybe you just need more time doing Ruby. Things tend to start making sense as you keep going with it. Persevere!
ruby-lang099 has quit [Ping timeout: 246 seconds]
anotherguy is now known as HEGEMON
momomomomo has quit [Quit: momomomomo]
HEGEMON is now known as THEHEGEMON
THEHEGEMON is now known as HEGEMON
HEGEMON is now known as THEHEGEMON
Voker57 has quit [Ping timeout: 245 seconds]
simi has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 255 seconds]
martinbmadsen has joined #ruby-lang
momomomomo has joined #ruby-lang
THEHEGEMON is now known as HEGEMONIC
HEGEMONIC is now known as HEGEMONY
HEGEMONY has left #ruby-lang [#ruby-lang]
mkaesz has quit [Quit: Leaving...]
asd_ has joined #ruby-lang
<asd_>
ls
asd_ has left #ruby-lang [#ruby-lang]
therealtesseract has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 265 seconds]
iamninja has joined #ruby-lang
agarie has quit []
tvon has joined #ruby-lang
enkristoffer has quit [Read error: Connection reset by peer]
j4cknewt has quit [Read error: Connection reset by peer]
enkristoffer has joined #ruby-lang
j4cknewt has joined #ruby-lang
schlapppy has quit [Ping timeout: 246 seconds]
martinbmadsen has quit [Ping timeout: 250 seconds]
slawrence00 has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
enkristoffer has quit [Ping timeout: 264 seconds]
symm- has joined #ruby-lang
enkristoffer has joined #ruby-lang
gwendall has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
gwendall has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 246 seconds]
simi has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
Steve_Jobs has quit [Quit: WeeChat 0.4.2]
Steve_Jobs has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby-lang
yfeldblum has joined #ruby-lang
momomomomo has joined #ruby-lang
duderonomy has joined #ruby-lang
b_hoffman has joined #ruby-lang
b0rgBart has joined #ruby-lang
michael_mbp has quit [Excess Flood]
rikkipitt has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
allomov has quit [Remote host closed the connection]
michael_mbp has joined #ruby-lang
j4cknewt has quit [Ping timeout: 272 seconds]
j4cknewt has joined #ruby-lang
j4cknewt_ has quit [Read error: Connection reset by peer]
simi has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mattyohe has joined #ruby-lang
havenwood has quit [Ping timeout: 256 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
sgambino has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
fusillicode has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
lytol has joined #ruby-lang
arBmind has joined #ruby-lang
ghostpl_ has joined #ruby-lang
b_hoffman has quit [Ping timeout: 272 seconds]
pragmatism has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
b_hoffman has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
<t4nk061>
is there a way to find out, where the sql query is run from?
<womble>
That's a question somewhat lacking in relevant context.
chinmay_dd has quit [Quit: Connection closed for inactivity]
<wallerdev>
lol
<wallerdev>
i love that q
robbyoconnor has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
<t4nk061>
well, i have activeadmin, and it does a query: 'SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "users" LIMIT 30 OFFSET 0) subquery_for_count' on users page
<t4nk061>
why? what is the purpose of this query. why is it doubled?
oddmunds has quit [Remote host closed the connection]
robbyoconnor has quit [Quit: Konversation terminated!]
nedp has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
musl has joined #ruby-lang
setanta_ has quit [Quit: Leaving]
rikkipit_ has joined #ruby-lang
momomomomo has joined #ruby-lang
sarkyniin has joined #ruby-lang
SuMo_D has joined #ruby-lang
rikkipitt has quit [Ping timeout: 250 seconds]
j4cknewt_ has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
<jhass>
well, that's stuff that happens when you do query generation
<jhass>
nothing an optimizer worth that name shouldn't handle though
konr has quit [Quit: Connection closed for inactivity]
skade has joined #ruby-lang
lytol has quit [Remote host closed the connection]
tvon has quit [Quit: leaving]
<t4nk061>
ok, thx
nathanstitt has quit [Quit: I growing sleepy]
b_hoffman has quit [Quit: b_hoffman]
Zionmaster has joined #ruby-lang
roamingdog has joined #ruby-lang
lytol has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
b_hoffman has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
FRodrigues has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
<FRodrigues>
hello
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
elia has joined #ruby-lang
<jhass>
FRodrigues: if you have any question, just ask ;)
AugustoCesar has quit [Remote host closed the connection]
<FRodrigues>
I wanted to know good books to learn ruby
<FRodrigues>
for an intermediate programmer
gwendall has joined #ruby-lang
ledestin has joined #ruby-lang
<havenwood>
FRodrigues: The Ruby Programming Language or The Well-Grounded Rubyist, Second Edition are good books.
<weaksauce>
FRodrigues do you know the syntax of ruby at all?
<weaksauce>
eloquent ruby is awesome if you know a little ruby
<FRodrigues>
no
<FRodrigues>
I know java python c c++
<weaksauce>
those two books that havenwood suggested are good books for ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
<FRodrigues>
Is there many differences between version 1.9 and 2.2?
<FRodrigues>
Are*
solars has joined #ruby-lang
<postmodern>
should IPAddr ignore %lo0 identifiers on BSD IPs?
j4cknewt has quit [Read error: Connection reset by peer]
frank_o has joined #ruby-lang
Hrendalf has quit [Read error: Connection reset by peer]
<havenwood>
postmodern: hrm, based on this it appears they've made it legit to have a `%` followed by any ascii chars you want for zone identifier other than a `]` or another `%`: https://tools.ietf.org/html/rfc6874
roamingdog has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
nathanstitt has joined #ruby-lang
<frank_o>
Right now I'm using `sleep`, but sometimes the commands take longer time to finish, so often I end up with multiple commands being run simultaneously which almost crashes my VPS.
<frank_o>
Cool!
<frank_o>
What do we have here :-)
fujimura has quit [Remote host closed the connection]
duderonomy has joined #ruby-lang
momomomomo_ has joined #ruby-lang
wallerdev has joined #ruby-lang
Iskarlar has joined #ruby-lang
duderonomy has quit [Read error: No route to host]
<jhass>
frank_o: those answers look like even worse workarounds than Process.wait
<frank_o>
hehe :)
<jhass>
make your command not fork
<frank_o>
jhass: Any pointers where to look / what to look for?
<jhass>
most sane programs that do fork have a flag to prevent it
<frank_o>
like is this something I can do in ruby or must is it more of a node thing
<frank_o>
aah
<frank_o>
yeah that makes sense!
<frank_o>
thanks jhass =)
<headius>
yorickpeterse: saw that MeltService...it could be about half that many lines, given what it does
<frank_o>
jhass: Wait, when I run the program manually it does not fork. I reckon it's different inside rake / system though?
<headius>
the MeltDown class is unnecessary since it has no state
enebo has quit [Quit: enebo]
<jhass>
frank_o: shouldn't be
<Soviet_Jesus>
Hello!
<jhass>
frank_o: if it indeed does not fork the only thing that could cause your description would be that you run rake in multitask mode
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
t4nk061 has quit [Ping timeout: 246 seconds]
<Soviet_Jesus>
Is there any way to define a function that takes in a number of arguments, and then pass the function with no arguments into another one for it to use? I probably didn't articulate that well, so I made this: https://gist.github.com/SuperSovietJesus/7d57610194c18d8f05a8
<jhass>
Soviet_Jesus: use a block
<jhass>
if yield line and call it like create_purged_copy {|line| lawyer?(line) }
lytol has joined #ruby-lang
<Soviet_Jesus>
so if I wanted to do the doctor is that how I wouldn't have to rewrite the source and dest blocks?
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
yeah
<Soviet_Jesus>
basically I want the arguments to the copy creator to be the testing function and some way of accessing the source and dest files
momomomomo_ has joined #ruby-lang
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
<Soviet_Jesus>
or i suppose just the source, I'll be creating the destination one I think
<jhass>
use a block
<frank_o>
jhass: Will look into it, thanks
<Soviet_Jesus>
but lawyer? is hard coded in your example, or am I not reading that right?
rikkipit_ has quit [Quit: Leaving...]
<jhass>
probably the later, create_purged_copy {|line| doctor?(line) }