00:11
<
John_Ivan >
weaksauce, success!
00:11
<
John_Ivan >
sigh. finally. got a list of what I'm missing.
00:11
<
John_Ivan >
about 157 movies
00:11
<
weaksauce >
good stuff man
00:13
<
John_Ivan >
weaksauce, now to write an indexer xD
00:13
<
John_Ivan >
which actually sorts my movies in their own directories with their titles curated
00:14
<
John_Ivan >
but there's time for that next week
00:14
<
John_Ivan >
I am so happy atm and I think I deserve a break
00:16
ur5us has quit [Ping timeout: 240 seconds]
00:17
<
John_Ivan >
weaksauce, 4246 movies are in my collection
00:38
donofrio has joined #ruby
00:46
freeworld has quit [Ping timeout: 246 seconds]
00:53
donofrio has quit [Ping timeout: 260 seconds]
01:05
gr33n7007h has quit [Ping timeout: 260 seconds]
01:07
gr33n7007h has joined #ruby
01:14
roadie has joined #ruby
02:09
favadi has joined #ruby
02:10
agrosant has joined #ruby
02:13
favadi has quit [Client Quit]
02:18
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:18
some14u has joined #ruby
02:39
John_Ivan has quit [Ping timeout: 260 seconds]
02:42
Tempesta has quit [Read error: Connection reset by peer]
02:42
Tempesta has joined #ruby
02:42
Tempesta has quit [Changing host]
02:42
Tempesta has joined #ruby
02:48
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:58
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
03:00
hololeap has quit [Remote host closed the connection]
03:01
hololeap has joined #ruby
03:25
Rounin has quit [Ping timeout: 260 seconds]
03:26
work has joined #ruby
03:40
donofrio has joined #ruby
03:46
donofrio has quit [Ping timeout: 272 seconds]
03:51
o|||||o has quit [Ping timeout: 256 seconds]
05:45
Thanzex has quit [Read error: Connection reset by peer]
05:45
Thanzex has joined #ruby
05:50
<
mooff >
the DATA feature feels quite elegant, i just wish it worked across files out of the box
05:51
work has quit [Quit: Connection closed for inactivity]
06:02
favadi has joined #ruby
06:02
howdoi has joined #ruby
06:06
davidw has quit [Ping timeout: 260 seconds]
06:12
reset has quit [Quit: reset]
06:57
favadi has quit [Ping timeout: 260 seconds]
07:12
dionysus69 has joined #ruby
07:24
ur5us has joined #ruby
07:40
donofrio has joined #ruby
07:40
gproto23 has joined #ruby
07:45
_ht has joined #ruby
07:48
donofrio has quit [Ping timeout: 260 seconds]
08:14
howdoi has quit [Quit: Connection closed for inactivity]
08:30
oxfuxxx has joined #ruby
08:36
infinityfye has joined #ruby
08:39
favadi has joined #ruby
08:40
favadi has quit [Client Quit]
08:51
dionysus69 has quit [Ping timeout: 272 seconds]
09:00
artemon has quit [Quit: You have been kicked for being idle]
09:00
Tempesta has quit [Read error: Connection reset by peer]
09:06
favadi has joined #ruby
09:20
liam1 has quit [Quit: WeeChat 3.4.1]
09:37
freeworld has joined #ruby
09:48
Tempesta has joined #ruby
09:55
Rounin has joined #ruby
10:10
jpn has quit [Quit: leaving]
10:24
gproto23 has quit [Ping timeout: 246 seconds]
10:26
ur5us has quit [Ping timeout: 240 seconds]
10:35
gproto23 has joined #ruby
10:57
crundar has joined #ruby
11:11
favadi has quit [Ping timeout: 260 seconds]
12:23
seifeslimene has joined #ruby
12:55
donofrio has joined #ruby
12:57
oxfuxxx has quit [Ping timeout: 246 seconds]
13:01
oxfuxxx has joined #ruby
13:07
oxfuxxx has quit [Ping timeout: 246 seconds]
13:13
crundar has quit [Quit: Client closed]
13:13
seifeslimene has quit [Quit: Client closed]
13:15
seifeslimene has joined #ruby
13:16
seifeslimene has quit [Write error: Broken pipe]
13:17
oxfuxxx has joined #ruby
13:23
oxfuxxx has quit [Ping timeout: 246 seconds]
13:27
oxfuxxx has joined #ruby
13:27
oxfuxxx has quit [Client Quit]
13:31
seifeslimene has joined #ruby
13:43
o|||||o has joined #ruby
14:09
davidw has joined #ruby
14:09
ssh073 has quit [Ping timeout: 240 seconds]
14:13
roadie has joined #ruby
14:21
donofrio has quit [Remote host closed the connection]
14:21
donofrio has joined #ruby
14:25
John_Ivan has joined #ruby
14:54
infinity_fye has joined #ruby
14:55
infinityfye has quit [Killed (NickServ (GHOST command used by infinity_fye))]
14:56
infinityfye_ has joined #ruby
14:57
infinityfye_ is now known as infinityfye
14:59
infinity_fye has quit [Ping timeout: 260 seconds]
15:07
oxfuxxx has joined #ruby
15:08
donofrio has quit [Ping timeout: 272 seconds]
15:15
oxfuxxx has quit [Ping timeout: 272 seconds]
15:15
oxfuxxx has joined #ruby
15:20
jpn has joined #ruby
15:23
oxfuxxx has quit [Ping timeout: 260 seconds]
15:25
oxfuxxx has joined #ruby
15:26
o|||||o has quit [Ping timeout: 260 seconds]
15:27
reset has joined #ruby
15:32
oxfuxxx has quit [Ping timeout: 260 seconds]
15:34
oxfuxxx has joined #ruby
15:37
donofrio has joined #ruby
15:44
oxfuxxx has quit [Ping timeout: 272 seconds]
15:45
oxfuxxx has joined #ruby
15:52
oxfuxxx has quit [Ping timeout: 256 seconds]
15:56
donofrio has quit [Ping timeout: 272 seconds]
15:56
oxfuxxx has joined #ruby
16:04
oxfuxxx has quit [Ping timeout: 246 seconds]
16:07
oxfuxxx has joined #ruby
16:08
some14u has joined #ruby
16:13
infinityfye has quit [Ping timeout: 260 seconds]
16:13
oxfuxxx has quit [Ping timeout: 256 seconds]
16:14
infinityfye has joined #ruby
16:16
infinityfye has quit [Client Quit]
16:18
oxfuxxx has joined #ruby
16:25
oxfuxxx has quit [Ping timeout: 272 seconds]
16:28
oxfuxxx has joined #ruby
16:35
oxfuxxx has quit [Ping timeout: 260 seconds]
16:36
markong has joined #ruby
16:39
oxfuxxx has joined #ruby
16:43
roadie has quit [Ping timeout: 240 seconds]
16:46
oxfuxxx has quit [Ping timeout: 256 seconds]
16:50
oxfuxxx has joined #ruby
16:52
roadie has joined #ruby
16:57
oxfuxxx has quit [Ping timeout: 260 seconds]
17:00
oxfuxxx has joined #ruby
17:06
oxfuxxx has quit [Ping timeout: 246 seconds]
17:09
oxfuxxx has joined #ruby
17:14
oxfuxxx has quit [Ping timeout: 272 seconds]
17:16
oxfuxxx has joined #ruby
17:20
markong has quit [Ping timeout: 246 seconds]
17:21
gproto23 has quit [Remote host closed the connection]
17:21
oxfuxxx has quit [Ping timeout: 260 seconds]
17:22
oxfuxxx has joined #ruby
17:28
jpn has quit [Ping timeout: 246 seconds]
17:29
oxfuxxx has quit [Ping timeout: 240 seconds]
17:33
oxfuxxx has joined #ruby
17:42
oxfuxxx has quit [Ping timeout: 260 seconds]
17:44
oxfuxxx has joined #ruby
17:46
davidw has quit [Ping timeout: 246 seconds]
17:47
jpn has joined #ruby
17:49
oxfuxxx has quit [Ping timeout: 256 seconds]
17:57
some14u has quit [Read error: Connection reset by peer]
17:57
some14u has joined #ruby
17:58
oxfuxxx has joined #ruby
17:59
jpn has quit [Ping timeout: 256 seconds]
18:04
oxfuxxx has quit [Ping timeout: 260 seconds]
18:06
jpn has joined #ruby
18:08
oxfuxxx has joined #ruby
18:09
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:09
some14u has joined #ruby
18:10
some14u has quit [Client Quit]
18:15
some14u has joined #ruby
18:22
jpn has quit [Ping timeout: 260 seconds]
18:23
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:25
some14u has joined #ruby
18:28
moldorcoder7 has quit [Quit: %bye mirc%]
18:32
moldorcoder7 has joined #ruby
18:34
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:39
jpn has joined #ruby
18:44
vvn has joined #ruby
18:46
<
vvn >
hi developers -- who able to provide a one-liner which create a 64K blob file full of ones (0xff)?
18:46
<
vvn >
i.e. a ruby equivalent to memset
18:47
jpn has quit [Ping timeout: 246 seconds]
19:00
<
leah2 >
File.write "ones", "\xff"*64*1024
19:00
<
mooff >
:: File.open('blob', 'w+') { |f| 64.times { f << "\xFF" * 1024 } }; File.stat('blob').size
19:00
<
ruby-eval >
=> 65536
19:02
hololeap has quit [Remote host closed the connection]
19:02
<
vvn >
two nice approaches
19:03
hololeap has joined #ruby
19:06
<
weaksauce >
huh neat 3.2 has regex timeouts
19:14
o|||||o has joined #ruby
19:17
fef has joined #ruby
19:30
fef has quit [Ping timeout: 240 seconds]
19:36
dionysus69 has joined #ruby
19:55
gproto23 has joined #ruby
19:57
oxfuxxx has quit [Ping timeout: 256 seconds]
20:00
hololeap has quit [Ping timeout: 240 seconds]
20:05
_ht has quit [Remote host closed the connection]
20:09
hololeap has joined #ruby
20:14
some14u has joined #ruby
20:18
some14u has quit [Client Quit]
20:24
some14u has joined #ruby
20:29
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:39
Guest8043 has joined #ruby
20:39
<
Guest8043 >
hello i have a doubt on merge sort algo in ruby
20:40
<
Guest8043 >
def merge_sort(unsorted_array)
20:40
<
Guest8043 >
if unsorted_array.length <=1
20:40
<
Guest8043 >
return unsorted_array
20:40
<
Guest8043 >
mid=unsorted_array.length/2
20:40
<
Guest8043 >
firsthalf=merge_sort(unsorted_array.slice(1..mid))
20:40
<
Guest8043 >
sechalf=merge_sort(unsorted_array.slice(mid+1..unsorted_array.length))
20:40
<
Guest8043 >
merge(firsthalf,sechalf)
20:40
<
Guest8043 >
def merge(left,right)
20:40
<
Guest8043 >
sorted_array=[]
20:40
<
Guest8043 >
while !left.empty? && !right.empty?
20:40
<
Guest8043 >
if left[0] < right[0]
20:40
<
Guest8043 >
sorted_array.push(left.shift)
20:40
<
Guest8043 >
sorted_array.push(right.shift)
20:41
<
weaksauce >
Guest8043 it's a good idea to share anything over 3 lines in a pastebin
20:41
<
weaksauce >
gist.github.com or hatebin.io or the like
20:41
<
Guest8043 >
sorry next time :)
20:41
<
weaksauce >
hastebin.com i mean
20:42
<
mooff >
hatebin! oh god!
20:43
<
weaksauce >
i swear it used to be hastebin.io but that doesn't work anymore
20:43
<
weaksauce >
oh well
20:43
rawley has joined #ruby
20:45
<
Guest8043 >
can u guys now tell me wat mistake i made
20:46
Guest8043 is now known as brad
20:46
brad is now known as braqd4648
20:51
braqd4648 has quit [Quit: Client closed]
20:55
bharath46 has joined #ruby
20:57
<
weaksauce >
maybe look at those debugging prints to see where it's going wrong
21:09
dionysus69 has quit [Ping timeout: 256 seconds]
21:10
ur5us has joined #ruby
21:14
markong has joined #ruby
21:15
roadie has quit [Ping timeout: 260 seconds]
21:29
bharath46 has quit [Ping timeout: 250 seconds]
21:33
John_Ivan has quit [Ping timeout: 260 seconds]
21:34
gproto23 has quit [Remote host closed the connection]
21:35
dstein64- has joined #ruby
21:35
o|||||o has quit [Ping timeout: 260 seconds]
21:37
dstein64 has quit [Ping timeout: 240 seconds]
21:37
dstein64- is now known as dstein64
21:41
roadie has joined #ruby
21:45
teclator has joined #ruby
21:51
<
ox1eef >
yeah the regexp timeout is an interesting addition. Regexp.new(..., timeout: x) was my preferred interface, not really digging the global Regexp.timeout=
21:54
<
weaksauce >
i could see it being nice globally for a website to some sane value to avoid what happened to stack overflow
21:55
<
ox1eef >
im not tuned into what happened to stack overflow, but indeed it could act as a fail-safe mechanism.
21:59
roadie has quit [Ping timeout: 260 seconds]
22:03
ssh073 has joined #ruby
22:21
foxxx0 has quit [Quit: foxxx0]
22:24
foxxx0 has joined #ruby
22:25
<
mooff >
i did wrap some regex matching in a timeout just a few days ago
22:27
davidw has joined #ruby
22:28
<
mooff >
i would like to see safe timeouts some day if they really are never safe now
22:28
<
weaksauce >
ox1eef they had a bad outage because of a whitespace related regex ddos
22:40
roadie has joined #ruby
22:45
freeworld has quit [Ping timeout: 246 seconds]
22:45
roadie has quit [Ping timeout: 260 seconds]
22:57
<
ox1eef >
mooff: i mean, theyre correct but at the same time ive seen most complaints about Timeout.timeout from jvm thread purists.
22:58
<
ox1eef >
it works fine for a lot of cases
22:58
<
ox1eef >
thanks weaksauce
23:01
Guest38i has joined #ruby
23:27
o|||||o has joined #ruby
23:29
roadie has joined #ruby
23:32
eddof13 has joined #ruby
23:37
roadie has quit [Ping timeout: 240 seconds]
23:48
o|||||o has quit [Ping timeout: 260 seconds]
23:55
John_Ivan has joined #ruby
23:58
Guest38i has quit [Quit: Client closed]