havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview3: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 245 seconds]
leitz has quit [Quit: Leaving]
Technodrome has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
dogweather has quit [Quit: dogweather]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
mokha has quit [Remote host closed the connection]
dogweather has joined #ruby
ur5us has joined #ruby
cthulchu has joined #ruby
Disavowed has joined #ruby
Disavowed has left #ruby [#ruby]
jtdowney has quit [Quit: Bye]
jtdowney has joined #ruby
turbo_choo has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
gix has quit [Ping timeout: 246 seconds]
skx86 has joined #ruby
ropeney has joined #ruby
ropeney_ has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
lucasb has quit [Quit: Connection closed for inactivity]
im0nde has joined #ruby
svankmajer has joined #ruby
im0nde_ has quit [Ping timeout: 276 seconds]
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
davidw has quit [Ping timeout: 250 seconds]
etupat has quit [Read error: Connection reset by peer]
etupat has joined #ruby
bambanx has joined #ruby
svankmajer has quit [Ping timeout: 268 seconds]
sarink has joined #ruby
fphilipe_ has joined #ruby
chalkmonster has joined #ruby
gigetoo has quit [Ping timeout: 268 seconds]
fphilipe_ has quit [Ping timeout: 246 seconds]
wallace_mu has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
wildtrees has quit [Quit: Leaving]
etupat has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
gigetoo has joined #ruby
sarink has joined #ruby
orbyt_ has joined #ruby
itarato has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
AJA4350 has quit [Quit: AJA4350]
moonshine_ has joined #ruby
moonshine_ is now known as manush67
svankmajer has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
itarato has quit [Ping timeout: 246 seconds]
krawchyk has quit [Quit: krawchyk]
svankmajer has quit [Ping timeout: 250 seconds]
svankmajer has joined #ruby
chalkmonster has quit [Ping timeout: 248 seconds]
cthu| has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
jenrzzz has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
cthu| has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
gigetoo has quit [Ping timeout: 248 seconds]
wallace_mu has quit [Remote host closed the connection]
svankmajer has quit [Ping timeout: 265 seconds]
Esa_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
ropeney has quit [Quit: ZNC 1.7.4 - https://znc.in]
groks has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
erikh has quit [Ping timeout: 246 seconds]
sarink has joined #ruby
erikh has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
Inline has quit [Quit: Leaving]
DTZUZO has quit [Ping timeout: 246 seconds]
DTZUZO has joined #ruby
sarink has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 265 seconds]
gigetoo has joined #ruby
sarink has joined #ruby
cthulchu has joined #ruby
jenrzzz has joined #ruby
sarink has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
bambanx has quit [Quit: Leaving]
segy has quit [Ping timeout: 252 seconds]
segy has joined #ruby
sauvin has joined #ruby
segy has quit [Ping timeout: 246 seconds]
segy has joined #ruby
ur5us has joined #ruby
schne1der has joined #ruby
conta has joined #ruby
sarink has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
sarink has quit [Ping timeout: 250 seconds]
sergioro has quit [Quit: leaving]
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
dionysus69 has joined #ruby
infinityfye has joined #ruby
duderonomy has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 250 seconds]
turbo_choo has quit [Ping timeout: 248 seconds]
sarink has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
manush67 has quit [Ping timeout: 250 seconds]
conta has quit [Quit: conta]
etupat has joined #ruby
andikr has joined #ruby
sauvin has quit [Ping timeout: 248 seconds]
sauvin has joined #ruby
ropeney_ has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Ai9zO5AP has joined #ruby
i9zO5AP has quit [Ping timeout: 246 seconds]
akemrir has joined #ruby
moonshine_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moonshine_ has quit [Client Quit]
conta has joined #ruby
ropeney has joined #ruby
ropeney_ has joined #ruby
turbo_choo has joined #ruby
etupat has quit [Remote host closed the connection]
schne1der has joined #ruby
etupat has joined #ruby
cthulchu_ has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
turbo_choo has quit [Ping timeout: 268 seconds]
william1 has joined #ruby
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
cthulchu has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 248 seconds]
conta has quit [Quit: conta]
moonshine_ has joined #ruby
fphilipe_ has joined #ruby
suukim has joined #ruby
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
cthulchu has joined #ruby
cthulchu_ has quit [Ping timeout: 250 seconds]
RiPuk has joined #ruby
RiPuk_ has quit [Read error: Connection reset by peer]
cthulchu has quit [Read error: Connection reset by peer]
cthulchu has joined #ruby
gearnode1 has joined #ruby
mistym- has joined #ruby
apt-get_ has joined #ruby
Skarlso5 has joined #ruby
gorsuch_ has joined #ruby
insolentworm has joined #ruby
redlegion1 has joined #ruby
Nilium_ has joined #ruby
jrhorn424_ has joined #ruby
Milos_ has joined #ruby
d0liver_ has joined #ruby
jnix_ has joined #ruby
jtdowney_ has joined #ruby
lipoqil_ has joined #ruby
podman_ has joined #ruby
jhill_ has joined #ruby
linuus_ has joined #ruby
afisher_ has joined #ruby
unCork has joined #ruby
timeless_ has joined #ruby
chihhsin_ has joined #ruby
tjbp_ has joined #ruby
Argorok_ has joined #ruby
teclator_ has joined #ruby
Kuukunen- has joined #ruby
nibbo_ has joined #ruby
lucas_ has joined #ruby
claw_ has joined #ruby
creat_ has joined #ruby
mkroman_ has joined #ruby
wallyduchamp has joined #ruby
crova has joined #ruby
CalimeroTeknik_ has joined #ruby
sauvin has quit [Ping timeout: 250 seconds]
marens_ has joined #ruby
marens_ has joined #ruby
marens_ has quit [Changing host]
turbo_choo has joined #ruby
mpp_ has joined #ruby
arooni_team_b has joined #ruby
gremax_ has joined #ruby
miah_ has joined #ruby
balo_ has joined #ruby
NL3limin4t0r has joined #ruby
adam12_ has joined #ruby
snapcase_ has joined #ruby
gigetoo_ has joined #ruby
havenwood_ has joined #ruby
genpaku_ has joined #ruby
chalkmonster has joined #ruby
cpt_yossarian has joined #ruby
cpt_yossarian has quit [Changing host]
cpt_yossarian has joined #ruby
csaunders_ has joined #ruby
Scientz has joined #ruby
universal has joined #ruby
dinfuehr_ has joined #ruby
_Caerus has joined #ruby
Spitfire_ has joined #ruby
Spitfire_ has joined #ruby
Spitfire_ has quit [Changing host]
dan64- has joined #ruby
psmolen_ has joined #ruby
bougyman_ has joined #ruby
mkaito- has joined #ruby
NODE has quit [Quit: changing servers]
bodqhrohro has joined #ruby
agrecascino_ has joined #ruby
nemesit|znc_ has joined #ruby
Ca1us has joined #ruby
gbristol_ has joined #ruby
Ca1us has quit [Changing host]
Ca1us has joined #ruby
c0san0stra_ has joined #ruby
gigetoo has quit [*.net *.split]
jtdowney has quit [*.net *.split]
dan64 has quit [*.net *.split]
jcalla has quit [*.net *.split]
linuus has quit [*.net *.split]
JasonO has quit [*.net *.split]
dinfuehr has quit [*.net *.split]
agrecascino has quit [*.net *.split]
Arahael has quit [*.net *.split]
CalimeroTeknik has quit [*.net *.split]
nullheroes has quit [*.net *.split]
marens has quit [*.net *.split]
rapha has quit [*.net *.split]
chihhsin has quit [*.net *.split]
GodFather has quit [*.net *.split]
arekushi has quit [*.net *.split]
NL3limin4t0r_afk has quit [*.net *.split]
woodruffw has quit [*.net *.split]
gearnode has quit [*.net *.split]
Milos has quit [*.net *.split]
teclator has quit [*.net *.split]
kashike has quit [*.net *.split]
nibbo has quit [*.net *.split]
arooni has quit [*.net *.split]
Caerus has quit [*.net *.split]
csaunders has quit [*.net *.split]
Skarlso has quit [*.net *.split]
redlegion has quit [*.net *.split]
jhill has quit [*.net *.split]
jnix has quit [*.net *.split]
creat has quit [*.net *.split]
havenwood has quit [*.net *.split]
apt-get has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
aloy has quit [*.net *.split]
xtsee has quit [*.net *.split]
kreantos has quit [*.net *.split]
zululee_ has quit [*.net *.split]
bodqhrohro_ has quit [*.net *.split]
shenghi has quit [*.net *.split]
Cork has quit [*.net *.split]
universa1 has quit [*.net *.split]
c0san0stra has quit [*.net *.split]
adam12 has quit [*.net *.split]
gremax has quit [*.net *.split]
podman has quit [*.net *.split]
timeless has quit [*.net *.split]
mistym has quit [*.net *.split]
jtperreault has quit [*.net *.split]
G has quit [*.net *.split]
psmolen has quit [*.net *.split]
claw has quit [*.net *.split]
thebetra- has quit [*.net *.split]
genpaku has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
d0liver has quit [*.net *.split]
mpp has quit [*.net *.split]
tjbp has quit [*.net *.split]
gbristol has quit [*.net *.split]
mjacob has quit [*.net *.split]
bougyman has quit [*.net *.split]
mkroman has quit [*.net *.split]
Caius has quit [*.net *.split]
balo has quit [*.net *.split]
lucas has quit [*.net *.split]
Spitfire has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
gorsuch has quit [*.net *.split]
jrhorn424 has quit [*.net *.split]
afisher has quit [*.net *.split]
Scient has quit [*.net *.split]
eldritch has quit [*.net *.split]
snapcase has quit [*.net *.split]
cjohnson has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
miah has quit [*.net *.split]
Nilium has quit [*.net *.split]
Raboo has quit [*.net *.split]
lipoqil has quit [*.net *.split]
mjacob_ has joined #ruby
G_ has joined #ruby
mkaito_ has quit [*.net *.split]
Argorok has quit [*.net *.split]
havenwood_ is now known as havenwood
mkroman_ is now known as mkroman
agrecascino_ is now known as agrecascino
Nilium_ is now known as Nilium
gigetoo_ is now known as gigetoo
unCork is now known as Cork
genpaku_ is now known as genpaku
havenwood has quit [Changing host]
havenwood has joined #ruby
gorsuch_ is now known as gorsuch
d0liver_ is now known as d0liver
jrhorn424_ is now known as jrhorn424
cjohnson_ has joined #ruby
podman_ is now known as podman
jtdowney_ is now known as jtdowney
Scientz is now known as Scient
lipoqil_ is now known as lipoqil
zululee_ has joined #ruby
afisher_ is now known as afisher
PaulePanter has joined #ruby
timeless_ is now known as timeless
jnix_ is now known as jnix
Argorok_ is now known as Argorok
jhill_ is now known as jhill
teclator_ is now known as teclator
c0san0stra_ is now known as c0san0stra
JasonO- has joined #ruby
mniip has quit [Ping timeout: 608 seconds]
eldritch has joined #ruby
NODE has joined #ruby
Fire-Dragon-DoL has joined #ruby
cthulchu_ has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
cthu| has joined #ruby
shenghi has joined #ruby
Raboo has joined #ruby
cthulchu has quit [Ping timeout: 248 seconds]
GodFather has joined #ruby
mniip has joined #ruby
NODE has quit [Client Quit]
rapha has joined #ruby
JoL1hAHN has joined #ruby
aloy has joined #ruby
kreantos has joined #ruby
jcalla has joined #ruby
Arahael has joined #ruby
kashike has joined #ruby
jtperreault has joined #ruby
xtsee has joined #ruby
NODE has joined #ruby
cthulchu_ has quit [Ping timeout: 248 seconds]
conta has joined #ruby
crova has quit [Ping timeout: 268 seconds]
crova has joined #ruby
CalimeroTeknik_ has quit [Ping timeout: 268 seconds]
KeyJoo has joined #ruby
ur5us has joined #ruby
cthulchu_ has joined #ruby
etupat has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.7]
cthu| has quit [Ping timeout: 248 seconds]
gearnode1 is now known as gearnode
ropeney_ has quit [Ping timeout: 248 seconds]
TomyLobo has joined #ruby
ropeney has quit [Ping timeout: 248 seconds]
CalimeroTeknik has joined #ruby
cthulchu has joined #ruby
infinityfye_ has joined #ruby
cthulchu_ has quit [Ping timeout: 248 seconds]
infinityfye has quit [Ping timeout: 250 seconds]
Skarlso5 is now known as skarlso
skarlso is now known as Skarlso
conta has quit [Quit: conta]
yann-kaelig has joined #ruby
Technodrome has joined #ruby
groks is now known as xorl
ur5us has quit [Ping timeout: 248 seconds]
infinityfye_ has quit [Quit: Leaving]
infinityfye_ has joined #ruby
infinityfye_ has quit [Client Quit]
infinityfye_ has joined #ruby
infinityfye_ is now known as infinityfye
<rapha> morning!
<rapha> why does `/^(?<num>.)(?<lines>.)(?<x>.)(?<y>.)/ =~ 'blah'` work just fine, but this does not:
chalkmonster has joined #ruby
<rapha> &>> rgx = /^(?<num>.)(?<lines>.)(?<x>.)(?<y>.)/ ; str = 'blah' ; rgx =~ str ; puts num
<rubydoc> stderr: -e:4:in `<main>': undefined local variable or method `num' for main:Object (NameError)... check link for more (https://carc.in/#/r/87lc)
ro9erwilco has joined #ruby
sauvin has joined #ruby
crova has quit [Ping timeout: 245 seconds]
crova has joined #ruby
<rapha> so little love for stored regular expressions :-(
* rapha looks at /usr/bin/ruby with a sad and accusatory face
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ropeney has joined #ruby
ropeney_ has joined #ruby
NODE has quit [Quit: changing servers]
Technodrome has joined #ruby
NODE has joined #ruby
suukim has quit [Ping timeout: 248 seconds]
crova has quit [Ping timeout: 248 seconds]
crova has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
mike32 has joined #ruby
mike32 has left #ruby [#ruby]
NODE has quit [Client Quit]
NODE has joined #ruby
TCZ has joined #ruby
RiPuk_ has joined #ruby
RiPuk has quit [Ping timeout: 248 seconds]
bougyman_ has quit [Ping timeout: 250 seconds]
suukim has joined #ruby
devney has quit [Ping timeout: 246 seconds]
crova has quit [Ping timeout: 246 seconds]
crova has joined #ruby
TCZ has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
TCZ has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
conta has joined #ruby
bougyman has joined #ruby
sarink has joined #ruby
moonshine_ has quit [Quit: Leaving]
TCZ has quit [Quit: Bye Bye]
TCZ has joined #ruby
bougyman has quit [Ping timeout: 246 seconds]
sarink has quit [Ping timeout: 252 seconds]
conta1 has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 268 seconds]
infinityfye_ has joined #ruby
bvdw has joined #ruby
conta has joined #ruby
devney has joined #ruby
bougyman has joined #ruby
infinityfye has quit [Ping timeout: 246 seconds]
TCZ has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
conta1 has quit [Ping timeout: 265 seconds]
crova has quit [Ping timeout: 246 seconds]
TomyLobo has quit [Quit: Leaving]
cgfbee has joined #ruby
TCZ has quit [Quit: Bye Bye]
TCZ has joined #ruby
romanblanco has quit [Ping timeout: 246 seconds]
ellcs has quit [Remote host closed the connection]
ellcs has joined #ruby
DarthGandalf has quit [Ping timeout: 250 seconds]
DarthGandalf has joined #ruby
ro9erwilco has quit [Remote host closed the connection]
conta has quit [Ping timeout: 265 seconds]
TCZ has quit [Quit: Bye Bye]
TCZ has joined #ruby
TCZ has quit [Client Quit]
cthulchu has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
cthulchu has joined #ruby
cthulchu_ has joined #ruby
TCZ has quit [Client Quit]
TCZ has joined #ruby
TCZ has quit [Client Quit]
TCZ has joined #ruby
ivette has joined #ruby
<ivette> hi everybody
cthulchu has quit [Ping timeout: 248 seconds]
ivette has quit [Remote host closed the connection]
<TCZ> hi
TCZ has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
dviola has joined #ruby
svankmajer has joined #ruby
svankmajer has quit [Ping timeout: 265 seconds]
TCZ has quit [Quit: Bye Bye]
TCZ has joined #ruby
TCZ has quit [Client Quit]
balo_ is now known as balo
nickdopdop has joined #ruby
drincruz has joined #ruby
cthulchu has joined #ruby
nickdopdop has left #ruby [#ruby]
AJA4350 has joined #ruby
cthulchu_ has quit [Ping timeout: 248 seconds]
cthulchu has quit [Read error: Connection reset by peer]
svankmajer has joined #ruby
cthulchu has joined #ruby
svankmajer has quit [Ping timeout: 248 seconds]
crova has joined #ruby
ooheitooh has joined #ruby
andikr has quit [Remote host closed the connection]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
dionysus70 is now known as dionysus69
infinityfye has joined #ruby
infinityfye has quit [Client Quit]
infinityfye_ has quit [Ping timeout: 245 seconds]
schne1der has quit [Ping timeout: 268 seconds]
svankmajer has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
cthulchu_ has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
ropeney has quit [Read error: Connection reset by peer]
ropeney_ has quit [Ping timeout: 246 seconds]
ropeney has joined #ruby
ropeney_ has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
crova has quit [Ping timeout: 268 seconds]
crova has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 268 seconds]
vondruch_ is now known as vondruch
wallace_mu has joined #ruby
jacksoow has joined #ruby
crova has quit [Ping timeout: 248 seconds]
crova has joined #ruby
lucasb has joined #ruby
romanblanco has joined #ruby
crova has quit [Ping timeout: 252 seconds]
davidw has joined #ruby
davidw has joined #ruby
schne1der has joined #ruby
crova has joined #ruby
wallace_mu has quit [Remote host closed the connection]
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
howdoi has joined #ruby
akemrir has quit [Quit: WeeChat 2.6]
crova has quit [Read error: Connection reset by peer]
chalkmonster has joined #ruby
adam12_ is now known as adam12
adam12 is now known as Guest95748
Guest95748 is now known as adam12
akemrir has joined #ruby
crova has joined #ruby
sarink has joined #ruby
akemrir has quit [Quit: WeeChat 2.6]
akemrir has joined #ruby
svankmajer has quit [Quit: leaving]
crova has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 246 seconds]
Inline has joined #ruby
wallace_mu has joined #ruby
Esa_ has joined #ruby
dviola has quit [Ping timeout: 252 seconds]
teclator has quit [Ping timeout: 248 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
Tikku has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
Tikku has quit [Quit: Leaving]
teclator has joined #ruby
ropeney has quit [Quit: ZNC 1.7.4 - https://znc.in]
ropeney_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
ropeney has joined #ruby
ropeney_ has joined #ruby
arekushi has joined #ruby
<akem__> Hi, is there a way to do something like 0.upto(10.0).step(0.1){ ... } ? so that it would iterate 0.1 per 0.1. I'm looking if there is some effective syntax for that. The best way to write that kind of code.
<akem__> I know i can do it with a separate argument and changing the loop count, but i though there might a better syntax in the ruby world.
<akem__> Ha ok, found it, it just X.step() ! great!
sarink has quit [Remote host closed the connection]
<akem__> Is that normal that i got precision issues with that code:
<ruby[bot]> akem__: as I told you already, please use https://gist.github.com
sarink has joined #ruby
<akem__> I tought maybe it would round to the precision defined in the step, lets say i write "0.1" it will round to 1 number after the dot. Which it does apparently, but not all the time, that is very strange?
<akem__> I guess, i'll have to use .round(x) all the time then.
drincruz has quit [Ping timeout: 265 seconds]
Esa_ has quit []
akemrir has quit [Quit: WeeChat 2.6]
<adam12> I guess it depends on what you're doing with the value.
<akem__> Hm.
<akem__> Sometimes i end up with things like "43.00000000000001".
<akem__> Anyway, i'll just round systematicly.
DTZUZO has quit [Ping timeout: 268 seconds]
yann-kaelig has quit [Quit: yann-kaelig]
DTZUZO has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-rc1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
davidw has quit [Ping timeout: 265 seconds]
romanblanco has quit [Ping timeout: 248 seconds]
romanblanco has joined #ruby
<akem__> If you just step 0.1 you got so precision errors thingy, without actually doing nothing with the numbers, so i wonder what is goind on.
<akem__> What is the incremental method used that can output 7.6000000000000005 instead of 7.6 when we just have a step(10, 0.1){}.
sarink has quit [Remote host closed the connection]
<akem__> -so+some
sarink has joined #ruby
cthulchu_ has quit [Ping timeout: 248 seconds]
<adam12> akem__: Adding floating point numbers has this risk. It's no different than why you don't use floating points for currency calculations.
cpt_yossarian has quit [Ping timeout: 248 seconds]
sarink has quit [Ping timeout: 252 seconds]
<akem__> adam12, Where did you see they don't use floating point for currency? AFAIK when i go shopping the ticket is using floating rounded at 2.
<adam12> akem__: You can use BigDecimal here if it's important. But you might see those same floating point errors if you convert back to float.
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
<akem__> adam12, simple calculator never output numbers like that if you just do "X + 0.1", i can understand on division or other calculus.
<adam12> akem__: It might look like a floating point since it has a decimal place but it doesn't necessarily mean it's represented as a float.
<adam12> &>> require "bigdecimal"; BigDecimal("1").step(BigDecimal("3"), BigDecimal("0.1")).map(&:to_f)
<rubydoc> # => [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0] (https://carc.in/#/r/87qh)
romanblanco has quit [Ping timeout: 245 seconds]
drincruz has joined #ruby
<akem__> rubydoc, Ok! Thanks for the info :)
<akem__> I'm just reading the BigDecimal doc.
william1 has quit [Ping timeout: 248 seconds]
william1 has joined #ruby
reyfi9e has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
<erikh> IEEE floats are worth reading about too
bvdw has joined #ruby
crova has joined #ruby
<havenwood> Enumerator.produce(1.0) { |float| Float Rational(float) + 1/10r }.first 10 #=> [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9]
<havenwood> &>> 1r.step(by: 1/10r).first(10).map(&:to_f)
<rubydoc> # => [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9] (https://carc.in/#/r/87qi)
<skywalker> dumb question: i have this gem A that requires gem B. but gem B is composed by a couple of files, and a .rb and a .jar that go inside /usr/share/ruby/vendor_ruby. the issue: gem A can't find gem B, because it is looking for a "complete gem" with a structure under /usr/local/share/gems/gems/. is this a normal issue?
sergioro has joined #ruby
<skywalker> gem B is actually rubygem-facter, installed through a rpm
<erikh> likely, the rpm is installing into the site path not the gems path
<erikh> gem activation may miss it if it does that
<erikh> try installing facter with the gem tool; see you get somewhere that way
<skywalker> it does work if i install it through gem install
etupat has joined #ruby
<skywalker> but, here in the company that is not suggested (i kind of understand - not duplicate gems all over the server)
<skywalker> is there a workaround for this issue?
<akem__> That's strange havenwood, when i test it there on 2.5.1: https://gist.github.com/akem3210/f5b54860c885fca4e4fbd4d5cb306ee4
<akem__> havenwood, And for the first one i got:<main>': undefined method `produce' for Enumerator:Class (NoMethodError)
<skywalker> i manually created a /usr/share/gems/specifications/facter-3.9.6.gemspec, and that "fixed" the issue
<havenwood> akem__: I see the same on 2.5 and earlier. Weird.
<havenwood> akem: Enumerator.produce is a 2.7 feature, so it's not out yet.
<skywalker> but doesn't sound like a good approach. i wonder if i can use any variable in the gem env to make a better workaround
<akem__> havenwood, Ha ok. Thx.
romanblanco has joined #ruby
ropeney- has joined #ruby
ropeney has quit [Ping timeout: 252 seconds]
jmcgnh has quit [Ping timeout: 265 seconds]
jmcgnh has joined #ruby
<skywalker> so, this "gem B" is located by LOAD_PATH, but is not in GEM_PATH, cause it is just a .rb and a .jar. gem A is trying to locate it with a if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then.
<skywalker> is there a way to move or create a symlink in a way that gem B will pass that gem A's check/locate?
<skywalker> ^that check is in gem A's gemspec
KeyJoo has quit [Quit: KeyJoo]
dionysus69 has joined #ruby
dkmueller has joined #ruby
cthulchu_ has joined #ruby
davispuh has joined #ruby
akem__ has quit [Quit: Leaving]
akemhp has joined #ruby
davidw has joined #ruby
Eiam_ is now known as Eiam
dionysus69 has quit [Ping timeout: 268 seconds]
crova has quit [Read error: No route to host]
jacksoow has quit [Quit: Saindo...]
turbo_choo has quit [Ping timeout: 265 seconds]
turbo_choo has joined #ruby
jacksoow has joined #ruby
william1 has quit [Ping timeout: 248 seconds]
gbristol_ is now known as gbristol
jinie has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
william1 has joined #ruby
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
romanblanco has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
duderonomy has joined #ruby
cjohnson_ is now known as cjohnson
MrCrackPotBob has quit [Quit: Leaving]
wildtrees has joined #ruby
rippa has joined #ruby
gix has joined #ruby
etupat has quit [Remote host closed the connection]
suukim has quit [Quit: Konversation terminated!]
william1 has quit [Ping timeout: 248 seconds]
william1 has joined #ruby
sameerynho has joined #ruby
romanblanco has joined #ruby
sarink has joined #ruby
etupat has joined #ruby
etupat has quit [Ping timeout: 250 seconds]
ropeney- has quit [Quit: ZNC 1.7.4 - https://znc.in]
ropeney_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
ropeney has joined #ruby
ropeney_ has joined #ruby
etupat has joined #ruby
akemhp has quit [Quit: Leaving]
romanblanco has quit [Ping timeout: 248 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink_ has joined #ruby
crova has joined #ruby
crova has quit [Client Quit]
sarink has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
Technodrome has joined #ruby
TCZ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Fernando-Basso has joined #ruby
william1 has quit [Ping timeout: 252 seconds]
sarink_ has quit [Remote host closed the connection]
sarink has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
william1 has joined #ruby
canurabus has joined #ruby
<canurabus> Hi all. I am looking for a good description of what "#" in a string does. Could someone point me to documentation as I don't really understand what's going on when I use it
<canurabus> When I try to use that operator to convert a hash to a string, I get a bunch of backslashes added to the output...
canurabus has quit [Quit: Leaving]
dkmueller has quit [Quit: WeeChat 2.3]
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
sarink has quit [Remote host closed the connection]
etupat has quit [Ping timeout: 245 seconds]
sarink has joined #ruby
TCZ has quit [Quit: Bye Bye]
<leftylink> ok don't stay to hear the answer, thats fine too
akemhp has joined #ruby
akemhp_ has joined #ruby
akemhp_ has quit [Remote host closed the connection]
sarink has quit [Ping timeout: 268 seconds]
sarink has joined #ruby
romanblanco has joined #ruby
phenom has quit [Ping timeout: 250 seconds]
TCZ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
<adam12> The new Rails test runner looks great. I just wish it wasn't so intwined with Rails.
jenrzzz has quit [Ping timeout: 248 seconds]
ropeney has quit [Ping timeout: 252 seconds]
ropeney_ has quit [Ping timeout: 268 seconds]
etupat has joined #ruby
etupat has quit [Ping timeout: 248 seconds]
bambanx has joined #ruby
etupat has joined #ruby
nfsnobody has quit [Ping timeout: 264 seconds]
phenom has joined #ruby
skx86 has joined #ruby
dviola has joined #ruby
dviola has left #ruby [#ruby]
gavlee has quit []
miah_ is now known as miah
romanblanco has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
itarato has joined #ruby
schne1der has quit [Ping timeout: 248 seconds]
nfsnobody has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
romanblanco has joined #ruby
houhoulis has joined #ruby
mostlybadfly has joined #ruby
itarato has quit [Ping timeout: 268 seconds]
vondruch has quit [Ping timeout: 265 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
Nicmavr has joined #ruby
wallace_mu has quit [Ping timeout: 265 seconds]
william1 has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Ping timeout: 246 seconds]
william1 has joined #ruby
DTZUZO has joined #ruby
mikecmpbll has joined #ruby
felixdacat has joined #ruby
DaRock has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Mia has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
gdonald has quit [Quit: leaving]
CalimeroTeknik has quit [Ping timeout: 245 seconds]
gdonald has joined #ruby
CalimeroTeknik has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
GodFather has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
d^sh_ has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Bye Bye]
apt-get_ has left #ruby ["Leaving"]
ellcs has quit [Ping timeout: 245 seconds]
etupat has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
howdoi has joined #ruby
william1 has quit [Ping timeout: 246 seconds]
cthulchu_ has quit [Ping timeout: 265 seconds]
etupat has joined #ruby