havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.1, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
<John_Ivan> weaksauce, success!
<John_Ivan> sigh. finally. got a list of what I'm missing.
<John_Ivan> about 157 movies
<weaksauce> good stuff man
<John_Ivan> weaksauce, now to write an indexer xD
<John_Ivan> which actually sorts my movies in their own directories with their titles curated
<John_Ivan> but there's time for that next week
<John_Ivan> I am so happy atm and I think I deserve a break
<weaksauce> solid
ur5us has quit [Ping timeout: 240 seconds]
<John_Ivan> weaksauce, 4246 movies are in my collection
<John_Ivan> :>
hellstabber has quit [Quit: Textual IRC Client: www.textualapp.com]
donofrio has joined #ruby
freeworld has quit [Ping timeout: 246 seconds]
donofrio has quit [Ping timeout: 260 seconds]
gr33n7007h has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
roadie has joined #ruby
favadi has joined #ruby
agrosant has joined #ruby
favadi has quit [Client Quit]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
John_Ivan has quit [Ping timeout: 260 seconds]
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
Rounin has quit [Ping timeout: 260 seconds]
work has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
o|||||o has quit [Ping timeout: 256 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
<mooff> the DATA feature feels quite elegant, i just wish it worked across files out of the box
work has quit [Quit: Connection closed for inactivity]
favadi has joined #ruby
howdoi has joined #ruby
davidw has quit [Ping timeout: 260 seconds]
reset has quit [Quit: reset]
favadi has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
ur5us has joined #ruby
donofrio has joined #ruby
gproto23 has joined #ruby
_ht has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
oxfuxxx has joined #ruby
infinityfye has joined #ruby
favadi has joined #ruby
favadi has quit [Client Quit]
dionysus69 has quit [Ping timeout: 272 seconds]
artemon has quit [Quit: You have been kicked for being idle]
Tempesta has quit [Read error: Connection reset by peer]
favadi has joined #ruby
liam1 has quit [Quit: WeeChat 3.4.1]
freeworld has joined #ruby
Tempesta has joined #ruby
Rounin has joined #ruby
jpn has quit [Quit: leaving]
gproto23 has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 240 seconds]
gproto23 has joined #ruby
crundar has joined #ruby
favadi has quit [Ping timeout: 260 seconds]
seifeslimene has joined #ruby
donofrio has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
crundar has quit [Quit: Client closed]
seifeslimene has quit [Quit: Client closed]
seifeslimene has joined #ruby
seifeslimene has quit [Write error: Broken pipe]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
seifeslimene has joined #ruby
o|||||o has joined #ruby
davidw has joined #ruby
ssh073 has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
John_Ivan has joined #ruby
infinity_fye has joined #ruby
infinityfye has quit [Killed (NickServ (GHOST command used by infinity_fye))]
infinityfye_ has joined #ruby
infinityfye_ is now known as infinityfye
infinity_fye has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
jpn has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
o|||||o has quit [Ping timeout: 260 seconds]
reset has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
donofrio has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
donofrio has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
some14u has joined #ruby
infinityfye has quit [Ping timeout: 260 seconds]
oxfuxxx has quit [Ping timeout: 256 seconds]
infinityfye has joined #ruby
infinityfye has quit [Client Quit]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
markong has joined #ruby
oxfuxxx has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
roadie has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
markong has quit [Ping timeout: 246 seconds]
gproto23 has quit [Remote host closed the connection]
oxfuxxx has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
oxfuxxx has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
davidw has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
some14u has quit [Read error: Connection reset by peer]
some14u has joined #ruby
oxfuxxx has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
oxfuxxx has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
oxfuxxx has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
moldorcoder7 has quit [Quit: %bye mirc%]
moldorcoder7 has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has joined #ruby
vvn has joined #ruby
<vvn> hi developers -- who able to provide a one-liner which create a 64K blob file full of ones (0xff)?
<vvn> who's* able
<vvn> i.e. a ruby equivalent to memset
jpn has quit [Ping timeout: 246 seconds]
<leah2> File.write "ones", "\xff"*64*1024
<mooff> :: File.open('blob', 'w+') { |f| 64.times { f << "\xFF" * 1024 } }; File.stat('blob').size
<ruby-eval> => 65536
hololeap has quit [Remote host closed the connection]
<vvn> two nice approaches
hololeap has joined #ruby
<weaksauce> huh neat 3.2 has regex timeouts
o|||||o has joined #ruby
<mooff> neat
fef has joined #ruby
fef has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
gproto23 has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
hololeap has quit [Ping timeout: 240 seconds]
_ht has quit [Remote host closed the connection]
hololeap has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest8043 has joined #ruby
<Guest8043> hello i have a doubt on merge sort algo in ruby
<Guest8043> def merge_sort(unsorted_array)
<Guest8043>  if unsorted_array.length <=1
<Guest8043>    return unsorted_array
<Guest8043>  else
<Guest8043>   mid=unsorted_array.length/2
<Guest8043>     firsthalf=merge_sort(unsorted_array.slice(1..mid))
<Guest8043>   sechalf=merge_sort(unsorted_array.slice(mid+1..unsorted_array.length))
<Guest8043>    merge(firsthalf,sechalf)
<Guest8043>  end
<Guest8043> end
<Guest8043> def merge(left,right)
<Guest8043>  sorted_array=[]
<Guest8043>  while !left.empty? && !right.empty?
<Guest8043>   if left[0] < right[0]
<Guest8043>    sorted_array.push(left.shift)
<Guest8043>   else
<Guest8043>    sorted_array.push(right.shift)
<Guest8043>   end
<weaksauce> Guest8043 it's a good idea to share anything over 3 lines in a pastebin
<weaksauce> gist.github.com or hatebin.io or the like
<Guest8043> sorry next time :)
<weaksauce> hastebin.com i mean
<mooff> hatebin! oh god!
<weaksauce> hah
<weaksauce> i swear it used to be hastebin.io but that doesn't work anymore
<weaksauce> oh well
rawley has joined #ruby
<Guest8043> can u guys now tell me wat mistake i made
Guest8043 is now known as brad
brad is now known as braqd4648
braqd4648 has quit [Quit: Client closed]
bharath46 has joined #ruby
<bharath46> https://hatebin.com/kdsrbgfoot can anyone solve this issue
<weaksauce> maybe look at those debugging prints to see where it's going wrong
<bharath46> okay
dionysus69 has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
markong has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
bharath46 has quit [Ping timeout: 250 seconds]
John_Ivan has quit [Ping timeout: 260 seconds]
gproto23 has quit [Remote host closed the connection]
dstein64- has joined #ruby
o|||||o has quit [Ping timeout: 260 seconds]
dstein64 has quit [Ping timeout: 240 seconds]
dstein64- is now known as dstein64
roadie has joined #ruby
teclator has joined #ruby
<ox1eef> yeah the regexp timeout is an interesting addition. Regexp.new(..., timeout: x) was my preferred interface, not really digging the global Regexp.timeout=
<weaksauce> i could see it being nice globally for a website to some sane value to avoid what happened to stack overflow
<ox1eef> im not tuned into what happened to stack overflow, but indeed it could act as a fail-safe mechanism.
roadie has quit [Ping timeout: 260 seconds]
ssh073 has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
<mooff> i did wrap some regex matching in a timeout just a few days ago
<mooff> used for non-IO tasks, can it really be so bad? https://github.com/awfulcooking/iirc/blob/main/examples/sed.rb
davidw has joined #ruby
<mooff> i would like to see safe timeouts some day if they really are never safe now
<weaksauce> ox1eef they had a bad outage because of a whitespace related regex ddos
roadie has joined #ruby
freeworld has quit [Ping timeout: 246 seconds]
roadie has quit [Ping timeout: 260 seconds]
<ox1eef> mooff: i mean, theyre correct but at the same time ive seen most complaints about Timeout.timeout from jvm thread purists.
<ox1eef> it works fine for a lot of cases
<ox1eef> thanks weaksauce
Guest38i has joined #ruby
o|||||o has joined #ruby
roadie has joined #ruby
eddof13 has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
o|||||o has quit [Ping timeout: 260 seconds]
John_Ivan has joined #ruby
Guest38i has quit [Quit: Client closed]