adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
gggpkm has joined #ruby
markong has quit [Ping timeout: 245 seconds]
mrkz_c has joined #ruby
roshanavand has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
taupiqueur has quit [Ping timeout: 252 seconds]
roshanavand has quit [Remote host closed the connection]
factor has quit [Read error: Connection reset by peer]
Rounin has quit [Ping timeout: 252 seconds]
Tempesta has quit [Ping timeout: 250 seconds]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
darkstardevx has quit [Quit: Leaving]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
darkstardevx has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Oxfuxxx has quit [Quit: leaving]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
lad has joined #ruby
Oxfuxxx has joined #ruby
sharkee has joined #ruby
mrkz_c has quit [Ping timeout: 245 seconds]
keinbock has quit [Ping timeout: 252 seconds]
joenoon has quit [Ping timeout: 252 seconds]
gggpkm has quit [Remote host closed the connection]
mrkz_c has joined #ruby
joenoon has joined #ruby
ur5us has joined #ruby
ur5us has quit [Client Quit]
keinbock has joined #ruby
slothby has quit [Quit: brb ... maybe]
slothby has joined #ruby
Oxfuxxx has quit [Quit: leaving]
sharkee has quit [Remote host closed the connection]
jpw has joined #ruby
jetchisel has quit [Ping timeout: 265 seconds]
jetchisel has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.3]
freeworld has joined #ruby
lad has quit [Ping timeout: 245 seconds]
mrkz_c has quit [Quit: Connection closed for inactivity]
finsternis has quit [Ping timeout: 265 seconds]
_ht has joined #ruby
<sagax> hi all!
<sagax> how to make class-method for better view when puts/print class instance?
<sagax> i forget how to do it's
<leftylink> wow I don't know how to do it with a class method. I only know how to do it with the instance method to_s
<sagax> hm, yes, i think it's to_s
<sagax> thanks
<leftylink> but you asked for a class method so I haven't answered your question correctly
<sagax> english not native for me, sorry, sometime i can't write with more wrongs
<sagax> xD
<sagax> yes, i doing many wrong, :(
<sagax> `to_s` do what i want, thanks
<leftylink> cool, then, you are welcome
<sagax> you can read a thoughs on remote xD
taupiqueur has joined #ruby
sharkee has joined #ruby
Oxfuxxx has joined #ruby
Tempesta has joined #ruby
markong has joined #ruby
shark_BAX has joined #ruby
shark_BAX has quit [Read error: Connection reset by peer]
sharkee has quit [Ping timeout: 245 seconds]
sharkee has joined #ruby
sharkee has quit [Read error: Connection reset by peer]
sharkee has joined #ruby
Oxfuxxx has quit [Ping timeout: 265 seconds]
Oxfuxxx has joined #ruby
taupiqueur has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
nyuszika7h has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
shark_KVV has joined #ruby
taupiqueur has joined #ruby
sharkee has quit [Ping timeout: 245 seconds]
Oxfuxxx has quit [Ping timeout: 260 seconds]
Oxfuxxx has joined #ruby
taupiqueur has quit [Read error: Connection reset by peer]
taupiqueur has joined #ruby
taupiqueur has quit [Remote host closed the connection]
nyuszika7h has joined #ruby
pvalena has left #ruby [#ruby]
shark_KVV has quit [Ping timeout: 245 seconds]
sharkee has joined #ruby
Oxfuxxx has quit [Ping timeout: 252 seconds]
Oxfuxxx has joined #ruby
taupiqueur has joined #ruby
Rounin has joined #ruby
hololeap has quit [Remote host closed the connection]
tkonto has joined #ruby
hololeap has joined #ruby
taupiqueur has quit [Ping timeout: 245 seconds]
slightlypandaish has joined #ruby
<nakilon> heh, looks like sometimes ruby can't halt on exception if the exception was around the object with too large .inspect
<nakilon> simply a graph with 10 vertices stored as recursive structs makes it hang
<nakilon> https://dpaste.org/Fqi4/slim -- replace 3 with 10 to see it
tkonto has quit [Quit: tkonto]
taupiqueur has joined #ruby
aesthetikx has quit [Ping timeout: 245 seconds]
aesthetikx has joined #ruby
taupiqueur has quit [Ping timeout: 252 seconds]
taupiqueur has joined #ruby
taupiqueur has quit [Ping timeout: 252 seconds]
finsternis has joined #ruby
lad has joined #ruby
taupiqueur has joined #ruby
shark_VIT has joined #ruby
Oxfuxxx_ has joined #ruby
sharkee has quit [Ping timeout: 252 seconds]
BrianWGray has quit [Ping timeout: 245 seconds]
Oxfuxxx has quit [Ping timeout: 265 seconds]
sharkee has joined #ruby
Oxfuxxx has joined #ruby
shark_VIT has quit [Ping timeout: 245 seconds]
Oxfuxxx_ has quit [Ping timeout: 245 seconds]
tkonto has joined #ruby
markong has quit [Ping timeout: 245 seconds]
adam12 has quit [Quit: Ping timeout (120 seconds)]
adam12 has joined #ruby
forvelin has quit [Quit: No Ping reply in 180 seconds.]
forvelin has joined #ruby
phenom_ has joined #ruby
Bitflux has joined #ruby
phenom has quit [Quit: See ya! Wouldn't want to blah blah..]
Byteflux has quit [Quit: ZNC - https://znc.in]
hansolo has quit [Ping timeout: 245 seconds]
VoidNoir0 has quit [Quit: Ping timeout (120 seconds)]
jetchisel has quit [Ping timeout: 245 seconds]
hansolo has joined #ruby
jetchisel has joined #ruby
slightlypandaish has quit [Ping timeout: 256 seconds]
lad has quit [Ping timeout: 245 seconds]
tkonto has quit [Quit: tkonto]
jetchisel has quit [Ping timeout: 252 seconds]
_ht has quit [Remote host closed the connection]
jetchisel has joined #ruby
slightlypandaish has joined #ruby
jpw has quit [Remote host closed the connection]
sharkee has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Ping timeout: 245 seconds]
<weaksauce> nakilon what kind of algorithm have you been working on?
slightlypandaish has quit [Quit: Client closed]
markong has joined #ruby
asio_ has quit [Ping timeout: 252 seconds]
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #ruby
jmcgnh has quit [Ping timeout: 246 seconds]
Synthead has joined #ruby
<Synthead> I'm trying to match words with regex. Vim's regex can do \<word\>, and only match the specfiic word. For example, in "that thats thatthat", it'll only match the first "that". Is there something similar in ruby?
<weaksauce> generally \b would suffice
<weaksauce> but yeah ruby has a pretty full powered regex engine with all the bells and whistles that you could ever really want
<Synthead> so \bword\b instead? :)
roadie has joined #ruby
<weaksauce> yep
<weaksauce> it's a good idea to scan through the character classes available to know what's possible at least once even if you never use them
<weaksauce> it's a ton of them
<Synthead> awesome
<Synthead> thanks so much!
<weaksauce> np
<nakilon> weaksauce shortest path through all the vertices
<weaksauce> TSP?
<nakilon> not a loop
jmcgnh has joined #ruby
<weaksauce> oh so something like the floyd-warshall algo
<nakilon> idk
<nakilon> I do my wheel )
<weaksauce> all pairs shortest path algorithm is the class
<weaksauce> of algorithms
lad has joined #ruby
<weaksauce> i'd be surprised if you could get it working like that... the FW algo is a dynamic programming one
<weaksauce> and is O(|V|^3)
<Rounin> "Shortest path through all the vertices"... That sounds very travelling salesman
<nakilon> I had an idea but now when I implemented it it gets stuck ( https://i.imgur.com/3vN4ywG.png -- it was supposed to grow and resolve the 3-star cases by shaking them and blacklisting on each shake
<nakilon> maybe backtracking would help but I so much don't want any recursion
nmollerup has joined #ruby
<nakilon> ok so when it's stuck I unblacklist the oldest edge that is involved until it's not stuck
<nakilon> seems working, ran 50 times on 10 vertices graph
<nakilon> heh, on 100 vertices it takes from 1 sec to 20
<nakilon> and hangs (
<nakilon> ah, not hangs, took 35 sec
perrierjouet has quit [Quit: WeeChat 3.3]
<nakilon> now I want to export to gif
perrierjouet has joined #ruby
markong has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
freeworld has quit [Ping timeout: 245 seconds]