jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
grokify has joined #ruby
skuntee4 has joined #ruby
gonix has joined #ruby
grokify has quit [Ping timeout: 264 seconds]
<sam113101> I figured it out
Al2O3 has quit [Ping timeout: 246 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
grokify has joined #ruby
Al2O3 has joined #ruby
John_Ivan has quit [Ping timeout: 264 seconds]
grokify has quit [Ping timeout: 250 seconds]
jetchisel has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 246 seconds]
Rounin has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
gonix has quit [*.net *.split]
c10l has quit [*.net *.split]
plujon has quit [*.net *.split]
sagax has quit [*.net *.split]
jhawthorn has quit [*.net *.split]
joto has quit [*.net *.split]
bougyman has quit [*.net *.split]
Guest9768 has quit [*.net *.split]
darkstardevx has quit [*.net *.split]
helveticamono has quit [*.net *.split]
matoro has quit [*.net *.split]
phenom has quit [*.net *.split]
rhe has quit [*.net *.split]
Byteflux has quit [*.net *.split]
skuntee4 has quit [*.net *.split]
entropie has quit [*.net *.split]
Ca1us has quit [*.net *.split]
AstrallyForged has quit [*.net *.split]
benjaminwil has quit [*.net *.split]
Sophira has quit [*.net *.split]
scottg489 has quit [*.net *.split]
fcser has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
moo has quit [*.net *.split]
plujon has joined #ruby
matoro has joined #ruby
Guest9768 has joined #ruby
entropie has joined #ruby
grokify has joined #ruby
matoro has joined #ruby
matoro has quit [Changing host]
fcser has joined #ruby
Caius has joined #ruby
rhe has joined #ruby
moo has joined #ruby
c10l has joined #ruby
helveticamono has joined #ruby
EdwardIII has joined #ruby
jhawthorn has joined #ruby
AstrallyForged has joined #ruby
bougyman has joined #ruby
Byteflux has joined #ruby
phenom has joined #ruby
benjaminwil has joined #ruby
scottg489 has joined #ruby
Sophira has joined #ruby
grokify has quit [Remote host closed the connection]
Sankalp has quit [Ping timeout: 246 seconds]
grokify has joined #ruby
Sankalp has joined #ruby
hansolo has quit [Ping timeout: 248 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
hansolo has joined #ruby
drainpipe has joined #ruby
grokify has quit [Remote host closed the connection]
drainpipe has quit [Ping timeout: 248 seconds]
nirvdrum has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
<sam113101> so what's an enumerator vs enumerable
<leftylink> Enumerable, the module, is meant to be included. Enumerable, the class, is meant to be created
<leftylink> wtf
grokify has joined #ruby
<leftylink> why did I rite the same thing twice
<leftylink> Enumerable, the module, is meant to be included. Enumerator, the class, is meant to be created
nirvdrum has quit [Quit: nirvdrum]
<sam113101> which one do I want?
drainpipe has joined #ruby
ur5us has joined #ruby
<AstrallyForged> How do I add a precise value to a timestamp?
<AstrallyForged> I'm a little confused about Time vs DateTime
<AstrallyForged> I need to be able to add exact numbers of milliseconds to a timestamp (repeatedly), and render them in ISO 8601
<AstrallyForged> as far as I've been able to find, one can only be offset by whole days
Guimauve has joined #ruby
<AstrallyForged> the other one can be offset by seconds, but for milliseconds you have to use floats…and then it's not precise because floats
<AstrallyForged> …and get the current time. Current time, exact arithmetic, and ISO 8601 formatting
<leftylink> pandabot rb [t = Time.now, t + 1/1000r]
<pandabot> [2022-10-16 03:13:53.245417944 +0000, 2022-10-16 03:13:53.246417944 +0000] - https://carc.in/#/r/dw2u
<leftylink> okay so based on that I'm going to disagree with the staetment "you have to use floats"
<AstrallyForged> That's not a float?
<AstrallyForged> Oh, Ruby has rational primitives.
<AstrallyForged> so /that's/ why the default print looks weird like that, okay
<AstrallyForged> Looks like it works if I use rationals instead. Thanks!
<sam113101> I want to add a .combination function to Hash, do I need an Enumerator? I mean each is already defined on Hash
grokify has quit [Remote host closed the connection]
<leftylink> well if I were the one doing it I wouldn't want to have to try to write an implementation of combination, so I'd make use of Array#combination
<sam113101> yeah but it's going to be different
<sam113101> values will be arrays and the combination will be among all of those arrays
<sam113101> one item from first array, one item from second array, etc.
<leftylink> tjat
<leftylink> that's cartesian product from Array#product, not combination, then
grokify has joined #ruby
<AstrallyForged> Awesome, just changed the floats to rationals, and the imprecision is fixed. And the other things can stay the way they are. Thank you~ ^.^
<sam113101> sigh let me check
<sam113101> I think it's just what I need
<sam113101> funnily enough I remember being bothered that it wasn't like array.sum, but not truly understanding what it was doing
grokify has quit [Ping timeout: 250 seconds]
<sam113101> /home/sam/code/euler/ruby/problem61.rb: failed to allocate memory (NoMemoryError)
<sam113101> oh boy
<sam113101> what am I doing wrong lol
<sam113101> I'm not that tight on ram
grokify has joined #ruby
<sam113101> weird
moldorcoder7 has quit [Ping timeout: 268 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
plujon has quit [Remote host closed the connection]
drainpipe has quit [Ping timeout: 268 seconds]
Sheilong has quit []
grokify has joined #ruby
Vonter has quit [Quit: WeeChat 3.7]
grokify has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
Guimauve has quit [Quit: Client closed]
aeris has quit [Remote host closed the connection]
grokify has joined #ruby
aeris has joined #ruby
ua_ has quit [Ping timeout: 250 seconds]
grokify has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 264 seconds]
ua_ has joined #ruby
croot has quit [Quit: ZZZzzz…]
D_A_N has quit [Quit: leaving]
D_A_N has joined #ruby
cartdrige has joined #ruby
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
aeris has joined #ruby
D_A_N has quit [Quit: leaving]
croot has joined #ruby
<svdasein> Hi folks. I've been working on a site to help make it easier to find gems. I'm still working on it, but I could use a few users. http://gemdex.org
<pavelz> = неат
<pavelz> neat
croot has quit [Quit: ZZZzzz…]
<svdasein> I'm hoping to do a better job than bestgems.org
croot has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp has joined #ruby
grokify has joined #ruby
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 264 seconds]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
ur5us has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
_ht has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
croot has quit [Quit: ZZZzzz…]
Guest42 has joined #ruby
Guest42 has quit [Client Quit]
___nick___ has joined #ruby
crux73 has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
eoli3n has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<eoli3n> Hi, i'm trying to build a jekyll site locally with bundle and ruby3
toshiba__ has joined #ruby
___nick___ has joined #ruby
<eoli3n> is there any kind of linter which could help ? (like shellcheck)
<eoli3n> i'm not a ruby dev
cartdrige has joined #ruby
___nick___ has quit [Client Quit]
crux73 has quit [Ping timeout: 268 seconds]
<eoli3n> let's try to understand how to run it manually to debug
___nick___ has joined #ruby
gonix has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 250 seconds]
<leftylink> you would perhaps be better served by also printing e.backtrace, instead of just e.message
<leftylink> if you only print e.message, you won't know what line of code is causing the problems
Tomte has joined #ruby
<eoli3n> leftylink: i'm sorry, i don't print anything, this is not my script :)
<eoli3n> but lets check
<eoli3n> firstly i'm trying to install ruby2.7.5 with rbenv to be sure that the problem occurs only on ruby3
<eoli3n> it works well with ruby2.7
Tomte has quit [Read error: Connection reset by peer]
gonix has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
reset has quit [Quit: reset]
szkl has joined #ruby
croot has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
croot has quit [Quit: Textual]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
moldorcoder7 has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 264 seconds]
z4kz has joined #ruby
nirvdrum has joined #ruby
John_Ivan has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
kjetilho has joined #ruby
<kjetilho> hey - is it possible to make binding.eval raise an exception when evaluating an unknown instance variable? e.g., binding.eval('@x') - it returns nil, but binding.eval('x') raises NameError
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
joto has joined #ruby
some14u has joined #ruby
<svdasein> here's a new site that helps you find gems for your projects http://gemdex.org
nirvdrum has quit [Quit: nirvdrum]
jetchisel has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
D_A_N has joined #ruby
<joto> svdasein cool
<svdasein> joto thanks
gonix has joined #ruby
some14u has joined #ruby
huiko has joined #ruby
gonix has quit [Ping timeout: 264 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 248 seconds]
huiko has quit [Ping timeout: 264 seconds]
<staff420> Here's a little fun app where people can upload music: http://45.76.124.236:3000/ - https://github.com/basicfeatures/recordlabel
<staff420> People have uploaded a *lot* of weird stuff there :lol:
<staff420> Suggestions welcome! Currently trying to add https://github.com/krists/id3tag
<svdasein> heh staff420 that is fun
dionysus69 has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
<staff420> Thanks svdasein :)
grokify has quit [Ping timeout: 264 seconds]
some14u has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grokify has joined #ruby
conrad has joined #ruby
conrad has quit [Client Quit]
Tron has joined #ruby
eoli3n has left #ruby [#ruby]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 264 seconds]
Guimauve has joined #ruby
<leftylink> yeah when trying to receive help in this channel, evading responsibility is not really a recommended strategy.
<leftylink> neither is willful ignorance, for that matter
perrierjouet has quit [Quit: WeeChat 3.7]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
Laplace has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 250 seconds]
iphorde has joined #ruby
wand has quit [Ping timeout: 258 seconds]
wand has joined #ruby
Guest3717 has joined #ruby
some14u has joined #ruby
iphorde has quit [Quit: Leaving]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest3717 has quit [Quit: Client closed]
grokify has joined #ruby
Tron has quit [Quit: Leaving]
grokify has quit [Ping timeout: 246 seconds]
grokify has joined #ruby
cartdrige has joined #ruby
crux73 has joined #ruby
cartdrige has quit [Ping timeout: 264 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 264 seconds]
some14u has joined #ruby
jpn has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
reset has joined #ruby
grokify has joined #ruby
jpn has joined #ruby
mdemo has quit [Quit: The Lounge - https://thelounge.github.io]
grokify has quit [Ping timeout: 250 seconds]
_ht has quit [Quit: _ht]
jpn has quit [Ping timeout: 264 seconds]
___nick___ has quit [Ping timeout: 264 seconds]
croot has joined #ruby
cartdrige has joined #ruby
crux73 has quit [Ping timeout: 260 seconds]
crux73 has joined #ruby
cartdrige has quit [Ping timeout: 250 seconds]
perrierjouet has joined #ruby
jpn has joined #ruby
sachot has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
r3m is now known as pascalp
pascalp is now known as r3m
jpn has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
jpn has joined #ruby
cartdrige has joined #ruby
toshiba__ has joined #ruby
crux73 has quit [Ping timeout: 260 seconds]
cartdrige has quit [Ping timeout: 248 seconds]
crux73 has joined #ruby
toshiba__ has quit [Ping timeout: 252 seconds]
cartdrige has joined #ruby
crux73 has quit [Ping timeout: 268 seconds]
toshiba__ has joined #ruby
crux73 has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
toshiba__ has quit [Ping timeout: 246 seconds]
toshiba__ has joined #ruby
crux73 has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
crux73 has joined #ruby
toshiba__ has quit [Ping timeout: 264 seconds]
cartdrige has quit [Ping timeout: 264 seconds]
jpn has quit [Ping timeout: 248 seconds]
grokify has joined #ruby
toshiba__ has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
crux73 has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.7]
dionysus69 has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 264 seconds]
crux73 has joined #ruby
crux73 has quit [Read error: Connection reset by peer]
toshiba__ has quit [Ping timeout: 248 seconds]
cartdrige has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crux73 has joined #ruby
crux73 has quit [Remote host closed the connection]
crux73 has joined #ruby
cartdrige has quit [Ping timeout: 264 seconds]
some14u has joined #ruby
croot has quit [Quit: Textual]
Guimauve has quit [Quit: Client closed]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grokify has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
grokify has quit [Remote host closed the connection]
cartdrige has joined #ruby
crux73 has quit [Ping timeout: 264 seconds]
crux73 has joined #ruby
some14u has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
desnudopenguino has quit [Ping timeout: 264 seconds]
desnudopenguino has joined #ruby
grokify has quit [Remote host closed the connection]
wand has quit [Ping timeout: 258 seconds]
toshiba__ has joined #ruby
Laplace has quit [Quit: Connection closed for inactivity]
crux73 has quit [Ping timeout: 260 seconds]