<mojca>
the problem is that by using system libraries, rails will stop working at first occasion
dvinciguerra__ has joined #ruby
smckee has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
nando293921 has joined #ruby
davedev24 has quit []
smckee has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
<mojca>
for example when someone decides to upgrade libxml2 2.9.2 to 2.9.3
hahuang65 has quit [Ping timeout: 244 seconds]
<mojca>
(even if that someone happens to be me at the end)
paradisaeidae has joined #ruby
<darix>
mojca: because of ~> 1.6.0 in rails-dom-testing
<darix>
which doesnt allow prereleases it seems
johnmilton has quit [Ping timeout: 260 seconds]
<darix>
mojca: if someone upgrades libxml2 to 2.9.3 what happens is: nokogiri will continue to work and "complain" that it was linked against 2.9.2 but running against 2.9.3
<darix>
then you just reinstall nokogiri against 2.9.3 if you want to get rid of the warning
<darix>
and all is good again
<darix>
on the other hand you have the advantage if you fix the system libxml copy for a security update ... your nokogiri is also fixed.
dvinciguerra__ has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
ixti has quit [Read error: Connection reset by peer]
<mojca>
but on the other hand if I accidentally uninstall libxml2, my rails installation will be broken
RegulationD has joined #ruby
<mojca>
I don't know how to test the scenario though because even if I uninstall libxml2 and then do simple rails commands, nothing strange happens
<mojca>
but talking about security updates in rails is a bit problematic anyway
devbug has quit [Quit: ZZZzzz…]
jenrzzz has quit [Read error: Connection reset by peer]
nullwarp has joined #ruby
<mojca>
we have an ancient app written with rails 2.3 or something; nobody is willing to invest time learning how to port it to the latest version; and we'll be stuck with that ancient rails "forever"; long after any security updates come in
ramfjord has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
stannard has quit [Ping timeout: 252 seconds]
dstarh has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
mtkd has joined #ruby
johnmilton has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
edwinvdgraaf has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
fumihiro has joined #ruby
GG has quit [Quit: Real eyes realize real lies....]
HouseMD has joined #ruby
pawnbox has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
karioleez has joined #ruby
jdawgaz has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
fumihiro has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 264 seconds]
aibot has quit [Remote host closed the connection]
rake_db_migrate has joined #ruby
aibot has joined #ruby
mtkd has quit [Ping timeout: 252 seconds]
diego2 has joined #ruby
karioleez has quit [Ping timeout: 250 seconds]
x77686d has joined #ruby
pawnbox has quit [Remote host closed the connection]
mtkd has joined #ruby
rake_db_migrate has quit [Remote host closed the connection]
rake_db_migrate has joined #ruby
mojca has quit [Quit: mojca]
diegoviola has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
pifon has joined #ruby
jackjackdripper1 has joined #ruby
fumihiro has joined #ruby
fed is now known as federal
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Ping timeout: 276 seconds]
mojca has joined #ruby
chipotle has joined #ruby
vale_tudo has quit [Ping timeout: 246 seconds]
<havenwood>
modin: They started statically linking nokogiri by default afaik but you can still dynamically link. There's an alternative (X|H)TML parser called Oga that doesn't have these issues at all. Neither helps you with a Rails 2.3 app.
<mojca>
havenwood: thank you; in realy I have no clue how/where/when to use nokogiri, it's just that one cannot install rails as long as nokogiri installation is broken; I hope that version 1.6.8 gets released soon
devbug has quit [Quit: ZZZzzz…]
pawnbox has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox_ has joined #ruby
shmuli has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 268 seconds]
IrishGringo has joined #ruby
tmtwd has joined #ruby
sudoubuntu has joined #ruby
sudoubuntu has quit [Client Quit]
ta_ has quit [Ping timeout: 240 seconds]
<shevy>
the joy of building a castle made of sand, on sand
rake_db_migrate has quit [Remote host closed the connection]
<havenwood>
shevy: your sand is actually past end-of-life, it is deprecated sand
sudoubuntu has joined #ruby
benlieb has joined #ruby
<shevy>
it definitely is not getting any better!
Digpig has joined #ruby
chipotle has quit [Quit: cheerio]
sudoubuntu has quit [Client Quit]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Cohedrin>
havenwood, I saw that, but I've already wrapped the entire loop in a begin rescue
<Cohedrin>
where I rescue exception
tmtwd has quit [Ping timeout: 244 seconds]
<Cohedrin>
so it shouldn't be bubbling up enough for that to catch it
ericlee has quit [Ping timeout: 250 seconds]
<havenwood>
Cohedrin: Any errors with that ^ set up front?
<Cohedrin>
with the rescue block?
<Cohedrin>
or abort on exception?
<havenwood>
the latter
<Cohedrin>
I haven't set that as of yet
<Cohedrin>
I've no idea where the exception comes from, I only know the app is crashing due to the thread executing stoppign
diego4 has quit [Quit: WeeChat 1.4]
<Cohedrin>
like I said though, the rescue block should be stopping the exception before it gets to that point though
<Cohedrin>
unless I'm misunderstanding something
<havenwood>
Cohedrin: Try abort_on_exception and see what it reveals if anything?
howdoi has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
karmatr0n has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
stevenxl has quit [Ping timeout: 260 seconds]
<Cohedrin>
sounds like a plan
freerobby has quit [Quit: Leaving.]
sudoubuntu has joined #ruby
brent_ has joined #ruby
hk238 has joined #ruby
qhp has quit [Quit: Leaving]
karioleez has joined #ruby
qhp has joined #ruby
huyderman has quit [Ping timeout: 260 seconds]
karioleez has quit [Remote host closed the connection]
karioleez has joined #ruby
Chagel has quit [Remote host closed the connection]
huyderman has joined #ruby
duckpuppy has joined #ruby
tmtwd has joined #ruby
PedramT has joined #ruby
<Cohedrin>
Is there any other reason a thread would stop execution other than it encountered an unhandled expection?
noService has joined #ruby
<Cohedrin>
maybe garbage collection or something similar?
chouhoulis has joined #ruby
InfinityBear has quit [Remote host closed the connection]
karmatr0n has joined #ruby
smckee has joined #ruby
Chagel has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
stevenxl has joined #ruby
stevenxl has joined #ruby
PedramT has quit [Ping timeout: 244 seconds]
jdawgaz has joined #ruby
benlieb has quit [Quit: benlieb]
PedramT has joined #ruby
smckee has quit [Ping timeout: 244 seconds]
hxegon has quit [Quit: BRB]
stevenxl has quit [Ping timeout: 268 seconds]
youch has quit [Ping timeout: 244 seconds]
huyderman has quit [Ping timeout: 260 seconds]
elifoster has quit [Ping timeout: 276 seconds]
shmuli has joined #ruby
PedramT has quit [Ping timeout: 264 seconds]
huyderman has joined #ruby
zast has quit [Remote host closed the connection]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
rippa has joined #ruby
Musashi007 has joined #ruby
benlieb has joined #ruby
diegoaguilar has joined #ruby
<RickHull>
Cohedrin: check Thread.abort_on_execution or similar
<Cohedrin>
Already got that
<Cohedrin>
doesn't seem to be the case
<Cohedrin>
thread just stopping :(
merida has joined #ruby
edwinvdgraaf has joined #ruby
mistermocha has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 246 seconds]
statelesscode has joined #ruby
Devalo has joined #ruby
stevenxl has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
youch has joined #ruby
cpup has quit [Ping timeout: 246 seconds]
cpup has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<RickHull>
Cohedrin: oh, the other one is Thread.raise_on_exception
<RickHull>
or similar
<RickHull>
that's probably it
Rickmasta has quit [Ping timeout: 268 seconds]
<Cohedrin>
RickHull, hmm, I'll look into it
<Cohedrin>
thanks
<RickHull>
abort_on_execution, heh -- that can't possibly be it xD
<RickHull>
abort_on_failure or abort_on_exception maybe
Rickmasta has joined #ruby
<RickHull>
i think you need raise_on_exception
stevenxl has quit [Ping timeout: 248 seconds]
agit0 has quit [Quit: zzzZZZ….]
ta_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Chagel has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
lxsameer has joined #ruby
r0b3rt has quit [Ping timeout: 240 seconds]
josephan has joined #ruby
<josephan>
Hello! I am creating a poker simulator. I have a "Ranking" class that is responsible for determining the rank given an array of cards. My question is should I make the initialize method of that class return the "rank" attribute instead of the instance of the class?
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
<RickHull>
the initialize method doesn't have control over its return value
<RickHull>
it will always return an instance of the class
diegoaguilar has quit [Remote host closed the connection]
blt has joined #ruby
<RickHull>
it wouldn't make much sense otherwise. you'd expect String.new to give you a String object
ericn81 has quit [Ping timeout: 252 seconds]
<josephan>
Ah right. Thanks that actually helps a lot. I know where to add the logic now.
BSaboia has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 276 seconds]
stardiviner has quit [Ping timeout: 252 seconds]
stevenxl has joined #ruby
barajasfab has quit [Ping timeout: 260 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Inside has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
blackmesa has joined #ruby
stevenxl has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
darkf has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
josephan has quit [Ping timeout: 250 seconds]
skade has joined #ruby
goglosh has quit [Quit: good night]
BtcBen has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
rubie has quit [Remote host closed the connection]
astrobunny has joined #ruby
Devalo has quit [Remote host closed the connection]
stevenxl has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Chagel has joined #ruby
devbug has quit [Quit: ZZZzzz…]
mtkd has quit [Ping timeout: 248 seconds]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
tmtwd has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
devbug has joined #ruby
nerium has joined #ruby
Chagel_ has joined #ruby
diegoviola has joined #ruby
Chagel has quit [Ping timeout: 244 seconds]
benlieb has joined #ruby
RickHull has left #ruby [#ruby]
tmtwd has joined #ruby
Yzguy has quit [Quit: Cya]
nerium has quit [Ping timeout: 260 seconds]
smckee has joined #ruby
crameth has joined #ruby
Cohedrin has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has joined #ruby
jt__ has quit [Remote host closed the connection]
sekrit has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
fumihiro has quit [Ping timeout: 248 seconds]
tmtwd has quit [Ping timeout: 260 seconds]
karioleez has quit [Remote host closed the connection]
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
karioleez has joined #ruby
josephan has joined #ruby
ericlee has joined #ruby
amclain has quit [Quit: Leaving]
Musashi007 has joined #ruby
polysics has quit [Ping timeout: 244 seconds]
sekrit has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
elifoster has joined #ruby
aganov has joined #ruby
yfeldblum has joined #ruby
Phanes- has quit [Ping timeout: 252 seconds]
nanoz has joined #ruby
karioleez has quit [Remote host closed the connection]
Musashi007 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
GnuYawk has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
dfinninger has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
postmodern has quit [Quit: Leaving]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scepticulous has joined #ruby
Phanes has quit [Excess Flood]
sudoubuntu has joined #ruby
moeabdol4 has joined #ruby
nanoz has quit [Changing host]
nanoz has joined #ruby
tmtwd has joined #ruby
polysics has joined #ruby
Phanes has joined #ruby
Phanes has joined #ruby
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
nodejunkie has joined #ruby
krz has joined #ruby
blackmesa has joined #ruby
IrishGringo has quit [Ping timeout: 248 seconds]
aufi has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
crameth has quit [Quit: crameth]
Wolland has quit []
krz has quit [Read error: Connection reset by peer]
Phanes has quit [Ping timeout: 248 seconds]
krz has joined #ruby
mtkd has joined #ruby
josephan has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
deadlock has joined #ruby
polysics has quit []
hxegon has quit [Quit: BRB]
skade has joined #ruby
stardiviner has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
crameth has joined #ruby
duckpuppy has joined #ruby
abyx has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
karioleez has joined #ruby
merida has quit [Ping timeout: 240 seconds]
Miron has quit [Ping timeout: 248 seconds]
crameth has quit [Client Quit]
skade has joined #ruby
merida has joined #ruby
duckpuppy has quit [Ping timeout: 268 seconds]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
e4xit has quit [Quit: Right I'm out!]
last_staff has joined #ruby
vale_tudo has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
andikr has joined #ruby
ssiris has quit [Quit: End of Line]
karmatr0n has joined #ruby
Macaveli has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tmtwd has quit [Ping timeout: 248 seconds]
Chagel has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 244 seconds]
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
smckee has quit [Remote host closed the connection]
dede has joined #ruby
CausaMortis has joined #ruby
huyderman has quit [Ping timeout: 244 seconds]
Chagel has joined #ruby
tvw has joined #ruby
arescorpio has quit [Remote host closed the connection]
vale_tudo has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
agit0 has joined #ruby
djbkd has joined #ruby
djbkd has quit [Client Quit]
abyx has quit [Quit: This computer has gone to sleep]
tmtwd has joined #ruby
HouseMD is now known as GitGud
ur5us has quit [Remote host closed the connection]
statelesscode has quit [Quit: statelesscode]
firstdayonthejob has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
ta_ has joined #ruby
solars has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigkevmcd has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
mark3 has joined #ruby
the_drow_ has joined #ruby
nando293921 has quit [Ping timeout: 246 seconds]
NightMonkey has quit [Ping timeout: 252 seconds]
elifoster has quit [Ping timeout: 248 seconds]
abyx has joined #ruby
youch has quit [Ping timeout: 244 seconds]
dn` has joined #ruby
stardiviner has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
GitGud has quit [Quit: Real eyes realize real lies....]
HouseMD has joined #ruby
Macaveli has joined #ruby
biberu has joined #ruby
symm- has joined #ruby
deadlock has quit [Quit: Saindo]
HouseMD is now known as GG
GG has quit [Client Quit]
HouseMD has joined #ruby
solars has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
edwinvdgraaf has joined #ruby
hahuang61 has joined #ruby
anisha has joined #ruby
Luna_Moonfang has quit [Ping timeout: 264 seconds]
DoubleMalt has joined #ruby
_blizzy_ has joined #ruby
SCHAAP137 has joined #ruby
aupadhye has joined #ruby
huyderman has joined #ruby
HouseMD is now known as GG
jero_ has joined #ruby
codecop has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
mojca has quit [Quit: mojca]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
stardiviner has joined #ruby
terlar has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
yfeldblu_ has quit [Ping timeout: 252 seconds]
niko has joined #ruby
Couch has joined #ruby
lightheaded has joined #ruby
fumihiro has joined #ruby
shmuli has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
antgel has joined #ruby
shmuli has joined #ruby
bry4n has quit [Ping timeout: 250 seconds]
Luna_Moonfang has joined #ruby
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
madgen has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
bluOxigen_ has joined #ruby
fumihiro has quit [Ping timeout: 244 seconds]
paatalaBhairavi has joined #ruby
smckee has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
abyx has quit [Quit: This computer has gone to sleep]
shredding has joined #ruby
nanoz has quit [Quit: <3]
Es0teric has joined #ruby
Beast has quit [Quit: Leaving]
jt__ has joined #ruby
smckee has quit [Ping timeout: 268 seconds]
aeterne has quit [Read error: Connection reset by peer]
Es0teric has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Ping timeout: 276 seconds]
paatalaBhairavi has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
ferr has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
<al2o3-cr>
What a grim morning :( (another a day, another dollar)
mojca has joined #ruby
mikecmpbll has joined #ruby
<adaedra>
Hello
symm- has quit [Ping timeout: 248 seconds]
pifon1 has joined #ruby
pifon has quit [Ping timeout: 244 seconds]
merida has quit [Remote host closed the connection]
NightMonkey has joined #ruby
dionysus69 has joined #ruby
plonk has joined #ruby
plonk has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cbliard has joined #ruby
plonk has quit [Read error: Connection reset by peer]
<cbliard>
Hi there, I just had a ruby 2.3.0 segfault with "Stack consistency error (sp: 547, bp: 598)". What do sp and bp mean?
plonk_ has joined #ruby
plonk_ has quit [Changing host]
plonk_ has joined #ruby
plonk_ has joined #ruby
plonk_ has quit [Changing host]
plonk_ has joined #ruby
plonk_ has quit [Read error: Connection reset by peer]
NightMonkey has quit [Ping timeout: 252 seconds]
plonk_ has joined #ruby
plonk_ has quit [Changing host]
plonk_ has joined #ruby
terlar has joined #ruby
plonk_ has quit [Read error: Connection reset by peer]
jjh has joined #ruby
jjh has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
jt__ has quit [Remote host closed the connection]
plonk has joined #ruby
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
madgen has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
moeabdol has joined #ruby
the_drow_ has quit [Quit: This computer has gone to sleep]
<Ox0dea>
cbliard: `sp` is the stack pointer, `bp` the base pointer, both in reference to the current control frame.
NightMonkey has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
Ropeney has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solars has joined #ruby
<cbliard>
Ox0dea: thanks
<Ox0dea>
cbliard: Sure thing. If you're able to reliably reproduce the error, considering posting the details to https://bugs.ruby-lang.org/issues/
<Ox0dea>
*consider posting
marr has joined #ruby
Rickmasta has joined #ruby
<cbliard>
I'm trying, but it desperatly fails only on production :(
<cbliard>
at random times
<Ox0dea>
Yay, Heisenbugs.
<cbliard>
yeah
moeabdol4 has quit [Ping timeout: 276 seconds]
noService has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
mikecmpbll has joined #ruby
Chagel has quit [Remote host closed the connection]
<cbliard>
which fails on some versions of ruby (including 2.3.0) but not others (including 2.2.3)
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
<Ox0dea>
You're rescuing SystemStackError?
Chagel has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
<cbliard>
Yes, at last resort
<cbliard>
that's bad?
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
jaruga__ has joined #ruby
<cbliard>
We are interpreting a custom dsl language which can call itself, and we rescue from SystemStackError, meaning there were some unhandled recursion errors somewhere
<Ox0dea>
Probably handle those instead?
jaruga__ has quit [Client Quit]
<cbliard>
Indeed, we limited the call depth to 100, but we still see segfaults
plonk has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
<cbliard>
Is it bad practice to rescue from SystemStackError?
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
<Ox0dea>
If your language is sufficiently simple, it wouldn't be egregiously difficult to check the call graph for cycles.
<apeiros>
!fixon plonk
<apeiros>
!fixcon plonk
<cbliard>
You are probably right
<Ox0dea>
At any rate, it's certainly a bug, but Nobu saying "I have no idea" is terrifying.
<cbliard>
who is Nobu?
moeabdol1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
<Ox0dea>
I'm seeing slightly interesting behavior on my machine. The snippet in #10290 sporadically segfaults for lambdas and dynamically defined methods. For `def foo; foo; end`, no segfaults, even if it was introduced with #eval.
moeabdol has quit [Ping timeout: 276 seconds]
duckpuppy has quit [Ping timeout: 248 seconds]
noService has quit [Ping timeout: 246 seconds]
mtkd has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ocbtec has joined #ruby
mtkd has joined #ruby
<cbliard>
I'm really not familiar with low-level ruby. I observe the same: #10290 sporadically segfaults
nobitanobi has joined #ruby
<cbliard>
SystemStackError on 25-30% of the time. for i in `seq 1 100` ; do ruby test.rb 2>&1 ; done | grep -c SystemStackError
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
evie_hammond has quit [Quit: WeeChat 1.4]
<cbliard>
Ox0dea: anyway, we will add a guard to prevent this from happening. Thank you for your help!
toretore has joined #ruby
benlieb has quit [Quit: benlieb]
<Ox0dea>
cbliard: Sure thing.
mrgrieves has joined #ruby
karmatr0n has joined #ruby
agit0 has joined #ruby
jt__ has quit [Remote host closed the connection]
smckee has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
m8 has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
jgrevich has quit [Ping timeout: 264 seconds]
m8 has quit [Max SendQ exceeded]
blackmesa has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
evie_hammond has joined #ruby
mrgrieves has quit [Ping timeout: 250 seconds]
dbugger has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shredding has quit [Ping timeout: 248 seconds]
DoubleMalt has quit [Ping timeout: 276 seconds]
<dbugger>
Hi fellas. I am experimenting with "class instance variables" and I was wondering, why does this not work? http://hastebin.com/uwuvumevaw.ruby
merida has joined #ruby
baweaver has joined #ruby
pawnbox has quit [Remote host closed the connection]
<jokke>
but really weird that the patch won't work
blackgoat has joined #ruby
merida__ has joined #ruby
merida__ has quit [Read error: Connection reset by peer]
ujjain has joined #ruby
ujjain has joined #ruby
<Ox0dea>
You're sure you need 2.0?
merida__ has joined #ruby
<jokke>
yeah unfortuntely
<jokke>
*unfortunately
shmuli has quit [Remote host closed the connection]
dANOKELOFF has joined #ruby
ur5us has quit [Remote host closed the connection]
shmuli has joined #ruby
merida has quit [Ping timeout: 246 seconds]
gard has quit [Ping timeout: 248 seconds]
merida_ has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 268 seconds]
karmatr0n has joined #ruby
mdw has joined #ruby
bkxd has joined #ruby
<Ox0dea>
Probably easiest to just ruby-install without the patch, let it configure, let it fail on SSL_v3, then go into the source directory, manually apply the patch (minus the ChangeLog diff), then `make install`.
karmatr0n has quit [Ping timeout: 276 seconds]
ta_ has quit [Remote host closed the connection]
<Ox0dea>
Can confirm that that works, at least.
dvinciguerra__ has joined #ruby
<Ox0dea>
That'd be `patch -p1 < 801e1f.diff` from within src/ruby-2.0.0-p647/, in case you weren't sure.
bkxd has quit [Ping timeout: 268 seconds]
ta_ has joined #ruby
stardiviner has quit [Ping timeout: 246 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
Azure has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shmuli has quit [Remote host closed the connection]
marsjaninzmarsa has quit [Ping timeout: 244 seconds]
Marsjan is now known as marsjaninzmarsa
marsjaninzmarsa has quit [Max SendQ exceeded]
duckpuppy has quit [Ping timeout: 260 seconds]
marsjaninzmarsa has joined #ruby
Napear has joined #ruby
GodFather has quit [Remote host closed the connection]
dANOKELOFF has quit [Remote host closed the connection]
mrgrieves has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: last_staff]
hays_ has quit [Ping timeout: 250 seconds]
IrishGringo has joined #ruby
GodFather has joined #ruby
GnuYawk has quit [Ping timeout: 260 seconds]
<Napear>
I am trying to create a simple TCP client, but the client is hanging on the first TCPSocket.gets call (server is using TCPServer.puts to send the line)... any thoughts?
c0x has joined #ruby
<Napear>
If I netcat into the server it works fine... and if I use the same client method to contact a webserver it works fine... but the two won't talk to each other without hanging
solars has quit [Quit: WeeChat 0.4.2]
johnmilton has joined #ruby
c0x has quit [Client Quit]
mrgrieves has joined #ruby
hanmac has quit [Ping timeout: 248 seconds]
terlar has joined #ruby
tildes has quit [Remote host closed the connection]
madgen has joined #ruby
solars has joined #ruby
s2013 has joined #ruby
domaldel has joined #ruby
dANOKELOFF has joined #ruby
stannard has joined #ruby
duncannz has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
merida has quit [Ping timeout: 276 seconds]
merida has joined #ruby
bry4n has quit [Ping timeout: 246 seconds]
merida_ has quit [Ping timeout: 244 seconds]
platzhirsch has quit [Quit: Leaving.]
smckee has joined #ruby
ta_ has joined #ruby
gnufied has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
krz has quit [Ping timeout: 264 seconds]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
sepp2k has joined #ruby
smckee has quit [Ping timeout: 250 seconds]
noobplayer97 has joined #ruby
codecop has quit [Remote host closed the connection]
merida has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
merida has joined #ruby
aupadhye has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
karmatr0n has joined #ruby
swills has quit [Ping timeout: 244 seconds]
noobplayer97 has quit [Ping timeout: 260 seconds]
GG has quit [Quit: Real eyes realize real lies....]
Swey_Hey has quit [Quit: Leaving]
terlar has quit [Quit: WeeChat 1.4]
terlar has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
dstarh has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
mojca has quit [Ping timeout: 248 seconds]
aegis3121 has joined #ruby
merida_ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.4]
merida has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
statelesscode has joined #ruby
theery has joined #ruby
pawnbox has joined #ruby
andywojo has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<djellemah>
Napear: maybe flush on the server side, or a series of getc on the client side. That might help find where it's not working the way you expect it to.
devbug has quit [Quit: ZZZzzz…]
sudoubuntu has joined #ruby
devbug has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
bkxd has joined #ruby
malconis has joined #ruby
nobitanobi has quit [Remote host closed the connection]
malconis has quit [Remote host closed the connection]
godzillaenlacasa has joined #ruby
binaryplease1 has joined #ruby
rake_db_migrate has joined #ruby
malconis has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
cdg has joined #ruby
_stu_ has joined #ruby
dANOKELOFF has quit []
nobitanobi has joined #ruby
rake_db_migrate has quit [Ping timeout: 246 seconds]
myntcake has quit [Ping timeout: 240 seconds]
snoobydoo has joined #ruby
chipotle has quit [Quit: cheerio]
<snoobydoo>
How do i pick last n elements from an array? Eg: [3,4] in [1,2,3,4]
binaryplease1 is now known as binaryplease
<SebastianThorn>
snoobydoo: .last
<havenwood>
snoobydoo: last(2)
rykou has joined #ruby
<snoobydoo>
havenwood: Thanks :D
<rykou>
hello
Fredrich010 has quit [Read error: Connection reset by peer]
idletask has quit [Ping timeout: 260 seconds]
merida_ has quit [Remote host closed the connection]
<havenwood>
rykou: hi
Fredrich010 has joined #ruby
<rykou>
:)
mikecmpbll has joined #ruby
M__ has joined #ruby
barajasfab has joined #ruby
ekinmur has joined #ruby
madgen has joined #ruby
saneax is now known as saneax_AFK
rake_db_migrate has joined #ruby
<rykou>
I might have bit of a newbie question, but is there a good way to make a module that I can require from anywhere on my system without using require_relative?
pawnbox has quit [Remote host closed the connection]
tildes has joined #ruby
rake_db_migrate has quit [Remote host closed the connection]
rake_db_migrate has joined #ruby
pawnbox has joined #ruby
<havenwood>
rykou: You can always add a shebang and put it in a dir in your PATH. A nice way is to build and install a gem.
<havenwood>
rykou: Oh, right require anywhere. Yeah, a gem.
Rickmasta has quit [Ping timeout: 250 seconds]
M__ has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
krz has joined #ruby
<rykou>
havenwood: okay, im going to check if I can get that working.
madgen has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
darkxploit has quit [Ping timeout: 240 seconds]
jhill has quit [Remote host closed the connection]
jcp has quit [Remote host closed the connection]
braderhart has quit [Remote host closed the connection]
darkf has quit [Quit: Leaving]
NightMonkey has joined #ruby
dgncn has quit [Excess Flood]
jhill has joined #ruby
ta_ has quit [Remote host closed the connection]
jcp has joined #ruby
ChiefAlexander has joined #ruby
braderhart has joined #ruby
joonty has joined #ruby
andywojo has joined #ruby
dgncn has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
kies has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
fumihiro has quit [Remote host closed the connection]
kfpratt has joined #ruby
<rykou>
havenwood: Thank you, worked out how I wanted!
<havenwood>
rykou: nice
duckpuppy has joined #ruby
idletask has joined #ruby
<rykou>
Haven't done that much with ruby yet so still learning about cool stuff like that :)
darkxploit has joined #ruby
smckee has joined #ruby
skade has joined #ruby
reddd has joined #ruby
noService has quit [Ping timeout: 246 seconds]
smckee has quit [Ping timeout: 268 seconds]
<ferr>
@load.status == ('billed' || 'billed_pending') how would I make this comparison work in a single line
<akahn>
right. I'm trying to decide whether it's worth checking if the key is in the hash first, in a case where most cases will be misses.
Pupp3tm4st3r has joined #ruby
mistermocha has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.3 Beta Build (2016/04/06) 32 Bit]
s2013 has joined #ruby
Tempesta has joined #ruby
swills has joined #ruby
<apeiros>
if you don't have falsy values, or your code would become unclear, then it's usually not worth it
St1gma has joined #ruby
iamvery has quit [Ping timeout: 244 seconds]
s2013 has quit [Client Quit]
skade has quit [Quit: Computer has gone to sleep.]
<apeiros>
and if you want a default value, you can skip it entirely and either use .fetch(key, default)/.fetch(key) { default } if your hash can contain falsy values, or `hash[key] || default` if it doesn't.
<akahn>
yeah. thanks, apeiros
Rickmasta has joined #ruby
noService has joined #ruby
<akahn>
I will skip key? and just use []
jpfuentes2 has joined #ruby
brt has quit [Quit: peace]
cdg has quit [Remote host closed the connection]
inukshuk_ has joined #ruby
<apeiros>
if you still feel insecure, you can always gist your code and ask for a review here ;-)
iamvery has joined #ruby
<apeiros>
s/insecure/unsure/
inukshuk_ has quit [Client Quit]
ekinmur has joined #ruby
skweek has joined #ruby
JesseH has quit [Quit: Leaving]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
s2013 has joined #ruby
joaquins has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
skade has joined #ruby
B1n4r10 has joined #ruby
<joaquins>
Hi, this code '%10.9f' % Time.now.to_f always show me time in milisecond not in nanosec, why?
futilegames has joined #ruby
<joaquins>
like 1459950661.870000
<apeiros>
it actually shows you time in seconds, not milliseconds
<apeiros>
and "why" - because that's how Time#to_f is specified
Macaveli has joined #ruby
<joaquins>
but if you specify '%10.9f' it must show u in nanosec
ChiefAlexander has quit [Remote host closed the connection]
<jhass>
the answer to your question, keeping the same level of abstraction ;)
r0b3rt has joined #ruby
<w0jtas>
maybe i will put proper names :) i want to install inst-jobs , which try to install activesupport 5.0.0beta3 which complain that i need ruby2.2
<w0jtas>
so i want inst-jobs but it should install activesupport 4.2.6 ( which met >3.2) version requirement and it won't complain about ruby 2.2
<adaedra>
which explains everything you need to know
barajasfab has quit [Ping timeout: 244 seconds]
<Hoffman>
adaedra: so how would I know to get to your link, from my link
<rahc>
apeiros: there's something up with your bot; that page doesn't seem to document Kernel.require
<shevy>
oh rubygems 2.6.3 is out
<adaedra>
rahc: my apologizes for the bot; it's still being worked on and has some issues
stunder has joined #ruby
<shevy>
it just needs some love
<adaedra>
apeiros: i'm not sure it's a problem of preference to the core docs here — even if this is still not fixed currently.
Prominent has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 252 seconds]
<Hoffman>
adaedra: still not seeing the connection
joonty has quit [Ping timeout: 260 seconds]
tonini has quit [Quit: Connection closed for inactivity]
<adaedra>
Hoffman: Kernel#open from openuri, which you found, overrides Kernel#open from core, which refers to IO.new for flags.
<adaedra>
The link in the doc could be a bit better, I admit.
goglosh has joined #ruby
cbliard has quit [Quit: Leaving]
<Hoffman>
adaedra: I see. so looking at openuri's Kernel#open, is there an indicator that it overrides core's Kernel#open?
<adaedra>
But `ri Kernel#open` should have resolved this.
<Hoffman>
just trying to figure out how to RTFM properly
<shevy>
hehe
<adaedra>
Hoffman: mainly knowledge that Kernel is a core class, and the tiny info provided by "Otherwise, the original #open is called."
<Hoffman>
adaedra: first part makes sense
<shevy>
module!
HouseMD is now known as GG
<adaedra>
right, module
<Hoffman>
as for the second, "the original #open" links to open-uri's Kernel#open
<Hoffman>
:d
<adaedra>
yeah, link is not right.
* Hoffman
reads how to contribute to docs
<shevy>
Hoffman do you know understand it :-)
<adaedra>
But given how it's generated, I don't think it's easily fixable.
stantona has joined #ruby
<shevy>
erm *now
<Hoffman>
shevy: yes, thanks, and thanks to adaedra
<shevy>
adaedra gets karma points!
* adaedra
baps `derpy for not providing the most useful information
colegatron has joined #ruby
<apeiros>
&cookie
bkxd has joined #ruby
<shevy>
Hoffman btw ruby core teams reads https://bugs.ruby-lang.org/projects/ruby-trunk - if you really want to, you can file there, and perhaps prefix the title with [Doc] or [Documentation] or something like that
<Hoffman>
thanks
n008f4g_ has quit [Ping timeout: 264 seconds]
snoobydoo has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
<adaedra>
Hoffman: but my remark was not really on the link, more on the hint that this `open` is an override
Eiam_ has joined #ruby
n008f4g_ has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
PedramT has joined #ruby
djbkd has joined #ruby
VeryBewitching has joined #ruby
<VeryBewitching>
o/
blackmesa has quit [Ping timeout: 276 seconds]
madgen has quit [Ping timeout: 246 seconds]
<shevy>
witchcraft time has begun again
colegatron has quit [Quit: Leaving]
rake_db__ has quit [Remote host closed the connection]
Snowy has quit [Quit: ragequit]
terlar has quit [Ping timeout: 264 seconds]
TakG has joined #ruby
madgen has joined #ruby
ramfjord has joined #ruby
nfk has joined #ruby
crime has joined #ruby
haylon has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
smathy has joined #ruby
<crime>
does anyone know how 'git commit' opens up $EDITOR with a temp file? I'd like to accomplish that with ruby, but I haven't had much luck with google-fu. I want to open a temp file in the user's preferred editor, and then receive that file as a File object in the program. any tips on where I should start reading?
n1colas has quit [Quit: WeeChat 1.4]
<crime>
I really only need the contents of the file, after they are done, I guess
<crime>
so it's actually writing a file, reading it, deleting it?
<Papierkorb>
crime: 'tempfile' could be an instance of ::Tempfile, require 'tempfile' to use it (part of the ruby stdlib)
n1colas has joined #ruby
<crime>
oh, didn't even know that. that's handy
<VeryBewitching>
shevy: It's always witchcraft time somewhere in the world. :D
SCHAAP137 has joined #ruby
rake_db_migrate has joined #ruby
bodgix has left #ruby [#ruby]
mtkd has quit [Ping timeout: 244 seconds]
PedramT has quit [Remote host closed the connection]
blackmesa has joined #ruby
bodgix has joined #ruby
<Papierkorb>
crime: Oh and of course check if $EDITOR is actually set beforehand. Else, you could fall back to a sensible default like 'vi' as last resort. vi is installed on every linux system I know of. That includes even OpenWrt (Routers).
lsmola has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
<crime>
good call, that would
<Papierkorb>
No idea if 'vi' is commonly distributed on other UNIXes though
<crime>
would
<crime>
would've got me yelled at
<crime>
sorry, keyboard troubles apparently
ascarter has joined #ruby
<shevy>
the cat
mtkd has joined #ruby
davedev24 has joined #ruby
<apeiros>
Papierkorb: I expected to read 'ed' as a sensible default ;-)
PedramT has joined #ruby
rake_db_migrate has quit [Ping timeout: 248 seconds]
karioleez has joined #ruby
ascarter has quit [Max SendQ exceeded]
OTORelic has joined #ruby
lxsameer has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<crime>
but that's not working, complains about system receiving nil for String
al2o3-cr has joined #ruby
<lianj>
crime: editor env not set
n008f4g_ has quit [Ping timeout: 250 seconds]
<crime>
'env editor' on my machine brings up nano
Zai00 has quit [Quit: Zai00]
<workmad3>
how about `echo $EDITOR`
smckee has quit [Ping timeout: 260 seconds]
<crime>
I just confirmed that system('nano', blah blah) works
<workmad3>
(seeing as env vars are case-sensitive and all)
gregf has quit [Quit: WeeChat 1.4]
<crime>
oh
skislak has quit [Ping timeout: 252 seconds]
mark3 has quit [Remote host closed the connection]
<crime>
that was it, working now. sorry bout that
<workmad3>
heh
gregf has joined #ruby
<crime>
thanks :) yeah I was sitting there like 'env editor' works just fine, so weird
<crime>
forgot to turn my brain on
citrusfizz has joined #ruby
jmorgado has joined #ruby
<workmad3>
crime: also, `env editor` will run the command `editor` after setting up an environment, iirc... so not indicative of environment variables either :)
<workmad3>
crime: so it sounds like you've symlinked editor to nano at some point too
senayar has quit []
benlieb has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
tvw has quit []
Xeago has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
stantona has quit [Ping timeout: 268 seconds]
baweaver has quit [Remote host closed the connection]
Eiam_ has joined #ruby
mrgrieves has quit [Ping timeout: 250 seconds]
saneax is now known as saneax_AFK
Eiam_ has quit [Client Quit]
dfockler has joined #ruby
vuashhhh has quit [Ping timeout: 244 seconds]
shinnya has joined #ruby
bluOxigen_ has joined #ruby
Zai00 has joined #ruby
_stu_ has quit [Ping timeout: 244 seconds]
_stu_ has joined #ruby
platzhirsch has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
fedexo has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 248 seconds]
vuashhhh has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
SHyx0rmZ has quit [Remote host closed the connection]
skweek has joined #ruby
<shevy>
it was the cat!!!
davedev24 has joined #ruby
<shevy>
is tempfile in-memory btw or will there be a file created? I am asking e. g. like when the filesystem may be unavailable
PedramT has quit [Remote host closed the connection]
ChiefAlexander has quit [Remote host closed the connection]
<citrusfizz>
quick and dirty question, i have an if statement that looks like this next if mystring !~ /critical/ && mystring !~ /warning/ is there a way to combine that into one check?
PedramT has joined #ruby
<citrusfizz>
or is that the best way?
Musashi007 has joined #ruby
Couch has quit [Ping timeout: 244 seconds]
synthroid has quit [Remote host closed the connection]
<shevy>
you could probably check for both in the regex, perhaps via the |
<citrusfizz>
i'm trying to find the least costly way to break my main loop if either of those words don't exist in the string i was thinking of using regex, but i guess i'd have to benchmark a couple different ways.
<citrusfizz>
include took 1978.7119440000001 milliseconds
<citrusfizz>
match took 4390.0242929999995 milliseconds
<citrusfizz>
=~ took 4661.655326 milliseconds
karapetyan has quit [Remote host closed the connection]
<apeiros>
that sounds wrong. =~ should be faster than match.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
baweaver has quit [Ping timeout: 250 seconds]
<citrusfizz>
i pasted my code if you wanna check it, i probably screwed something up
<apeiros>
try using benchmark/ips
herberzt has joined #ruby
<apeiros>
real time isn't what you should measure to begin with
<apeiros>
but the difference is surprisingly large.
Musashi007 has quit [Quit: Musashi007]
<herberzt>
quick Q. If i have a model called auctions and that has a has_may relationship is there a way to do something like auction.items.any.active? that will return true if active is true for any of auction.items?
PedramT has quit [Remote host closed the connection]
<herberzt>
many relationship to item
<apeiros>
?rails herberzt
<ruby[bot]>
herberzt: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<herberzt>
yes
Rickmasta has quit [Ping timeout: 244 seconds]
OTORelic has quit [Quit: WeeChat 1.4]
GG has quit [Quit: Real eyes realize real lies....]
mrgrieves has quit [Ping timeout: 276 seconds]
GG has joined #ruby
snoobydoo has joined #ruby
tax has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
mojca has joined #ruby
weemsledeux has joined #ruby
badleaf has quit [Ping timeout: 248 seconds]
smckee has joined #ruby
baweaver has joined #ruby
smckee has quit [Read error: Connection reset by peer]
smckee has joined #ruby
gard has quit [Remote host closed the connection]
PedramT has joined #ruby
smckee has quit [Remote host closed the connection]
smckee has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
wzy has quit [Quit: Leaving]
malconis has quit [Remote host closed the connection]
nartes has joined #ruby
smckee has quit [Remote host closed the connection]
malconis has joined #ruby
kariolee_ has joined #ruby
vuashhhh has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has joined #ruby
<rob_>
i think im misunderstanding modules and the meta clas
<rob_>
s
mjuszczak has joined #ruby
<jhack>
Anyone know how I can use react-native-fs to read a file I’ve taken, I’m testing it out on my android device but getting a “Error: File does not exist”, but if I try it on my emulator, it’d work
duckpuppy has quit [Ping timeout: 276 seconds]
<apeiros>
jhack: wrong channel?
<jhack>
MyLogger.logger ?
<jhack>
yeah wrong chanel
<jhack>
woopsie
<apeiros>
rob_: you can't
<apeiros>
rob_: you have to define those methods as instance methods
<apeiros>
extend will add those as class method to Test
herberzt has quit [Client Quit]
dmr8 has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dmr8 has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rob_>
apeiros: can i adjust either class to make it work? sorry for being vague but do you know what i mean?
<apeiros>
rob_: I already told you how to adjust it
mdw has quit [Ping timeout: 264 seconds]
sdothum has joined #ruby
<rob_>
so i have to move the methods into the Test module?
<apeiros>
no. that's not what I said.
<apeiros>
all you have to do is change them from class to instance methods.
mdw has joined #ruby
evidex has quit [Remote host closed the connection]
<rob_>
if i do that i still get no such method error