code logs -> 2018 -> Wed, 21 Mar 2018< code.20180320.log - code.20180322.log >
--- Log opened Wed Mar 21 00:00:54 2018
00:45 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
00:45 mode/#code [+o himi] by ChanServ
01:41 macdjord|slep [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
01:41 mode/#code [+o macdjord|slep] by ChanServ
01:44 mac [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
01:45 Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds]
01:49 Tamber [tamber@furryhelix.co.uk] has joined #code
01:49 mode/#code [+o Tamber] by ChanServ
03:00 macdjord|slep is now known as macdjord
03:27 Kindamoody|afk is now known as Kindamoody[zZz]
03:40
<@iospace>
https://pi-hole.net/ have URL
04:12 Derakon is now known as Derakon[AFK]
04:15 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
04:15 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:44
<@iospace>
Either way, I'm planning on turning this thing into a quassel core so
05:24 Vornlicious [Vorn@Nightstar-is8ijm.sub-174-211-1.myvzw.com] has joined #code
05:26 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
05:26 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
05:27 celticminstrel [celticminst@Nightstar-gil1m1.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
05:36
< Vornlicious>
Misread as weasel core
05:45
<&McMartin>
~= A FINE BRACE OF WEASELS =~
06:18 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
06:18 mode/#code [+qo Vornicus Vornicus] by ChanServ
06:21 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [Ping timeout: 121 seconds]
06:23 Vornotron [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
06:23 mode/#code [+qo Vornotron Vornotron] by ChanServ
06:23 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
06:34 Vornotron [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
06:40 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
06:40 mode/#code [+qo Vornicus Vornicus] by ChanServ
07:21 Degi [Degi@Nightstar-3o7vdp.dyn.telefonica.de] has joined #code
08:11 Degi_ [Degi@Nightstar-suju15.dyn.telefonica.de] has joined #code
08:14 Degi [Degi@Nightstar-3o7vdp.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
08:36 Degi_ [Degi@Nightstar-suju15.dyn.telefonica.de] has quit [Connection closed]
09:11 Vorntastic [Vorn@Nightstar-66cv56.sub-97-46-130.myvzw.com] has joined #code
09:13 Pandevornium [Vorn@Nightstar-is8ijm.sub-174-211-1.myvzw.com] has joined #code
09:14 Vornlicious [Vorn@Nightstar-is8ijm.sub-174-211-1.myvzw.com] has quit [Ping timeout: 121 seconds]
09:17 Vorntastic [Vorn@Nightstar-66cv56.sub-97-46-130.myvzw.com] has quit [Ping timeout: 121 seconds]
11:33 Kindamoody[zZz] is now known as Kindamoody
12:03 Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds]
12:05 Tamber [tamber@furryhelix.co.uk] has joined #code
12:05 mode/#code [+o Tamber] by ChanServ
12:29 Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds]
12:32 Tamber [tamber@furryhelix.co.uk] has joined #code
12:32 mode/#code [+o Tamber] by ChanServ
13:02 Degi [Degi@Nightstar-suju15.dyn.telefonica.de] has joined #code
14:47 Kindamoody is now known as Kindamoody|afk
15:11 mac [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
15:11 mode/#code [+o mac] by ChanServ
15:14 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
15:29 Degi [Degi@Nightstar-suju15.dyn.telefonica.de] has quit [Connection closed]
16:55 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
18:18 * gnolam adds an e-mail address validator, feels slightly dirty.
18:23
<&ToxicFrog>
gnolam: plz get in the hell
18:23
< Emmy>
why
18:25
<&ToxicFrog>
Emmy: was that directed at me or at gnolam
18:28
<@gnolam>
It was somewhat under protest.
18:29
<@gnolam>
But it is just (.+@.+)* though.
18:38
<&ToxicFrog>
So it matches both "" and "a@bc@d"?
18:40 Kindamoody|afk is now known as Kindamoody
18:40
<&[R]>
So it does
18:41
<@gnolam>
Yep.
18:42
<&[R]>
printf '\na@b@c\n' | egrep '(.+@.+)*'
18:43
<@gnolam>
Basically, it's only intended to divine if the user actually intended to fill in an e-mail address or not.
18:44
<@gnolam>
If they don't want to fill in one, that's fine. If they want to fill one in and it's slightly wonky, fine. But apparently, people have a tendency to fill in their phone numbers in that field instead.
19:07 Kizor [moryok@Nightstar-e0a4sm.utu.fi] has quit [Ping timeout: 121 seconds]
19:07 Kizor [moryok@Nightstar-e0a4sm.utu.fi] has joined #code
19:07
<&ToxicFrog>
Why not just '.+@.+' then?
19:14 Pandevornium [Vorn@Nightstar-is8ijm.sub-174-211-1.myvzw.com] has quit [[NS] Quit: Bye]
19:14 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
19:17
<&[R]>
Except that fails at the stated purpose...
19:17
<&[R]>
Since 555-555-1234 totally maches that regex
19:17
<&ToxicFrog>
[R]: no it doesn't.
19:17
<&[R]>
TF's version doesn't
19:18
<@gnolam>
ToxicFrog: that doesn't let people leave it blank.
19:18
<&ToxicFrog>
It doesn't match gnolam's either.
19:18
<&ToxicFrog>
gnolam: aah. (.+@.+)? makes the intent clearer in that case, IMO
19:18
<&[R]>
$ printf '555-555-1234\n' | egrep '(.+@.+)*'
19:18
<&[R]>
555-555-1234
19:19
<&ToxicFrog>
[R]: I see the problem. You are reading matches as "contains". I am writing it as "conforms to".
19:20
<&[R]>
$ printf '\na@b@c\n555-555-1234\n' | egrep '.+@.+|^\s*$' # this meets the requirements AFAICT
19:20
<&ToxicFrog>
555-555-1234 is not a valid string in the language described by /(.+@.+)*/, but contains the substring "", which is, so grep will find it
19:20
<&ToxicFrog>
(try `egrep -o`)
19:21
<&[R]>
Right, but my invocation is how most regex libraries will handle it
19:22
<&[R]>
IE: it's effectively a non-filter, as nothing won't match it.
19:24
<&[R]>
> r = /.+@.+|^\s*$/; ['', 'a@b@c', '555-555-1234'].filter((s) => { return r.test(s) })
19:24
<&[R]>
[ '', 'a@b@c' ]
19:24
<&[R]>
> r = /(.+@.+)*/; ['', 'a@b@c', '555-555-1234'].filter((s) => { return r.test(s) })
19:24
<&[R]>
[ '', 'a@b@c', '555-555-1234' ]
19:25
<&[R]>
^ Like so
19:50 Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
20:42
<@abudhabi>
Is there a Chrome extension that lets you extract URLs matching a regexp?
20:42 Degi [Degi@Nightstar-suju15.dyn.telefonica.de] has joined #code
20:43
<@abudhabi>
I mean, links.
20:50
<@abudhabi>
Nevermind, found one.
21:07
<&[R]>
You could do it with the JS console...
21:10
<&[R]>
Array.from(document.getElementsByTagName('a').filter((a) => { return /^http/.test(a.href) }).map((a) => { return a.href }) // Lists only http URLs, the .map() part makes it so it returns an array of the URLs instead of the DOM nodes.
21:11
<&[R]>
I missed an extra closing ) after 'a'
21:20 Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
22:52 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
23:12 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
23:12 mode/#code [+o macdjord] by ChanServ
23:15 mac [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
23:28 Degi [Degi@Nightstar-suju15.dyn.telefonica.de] has quit [Connection closed]
23:29 Alek [Alek@Nightstar-7or629.il.comcast.net] has quit [Ping timeout: 121 seconds]
23:33 Alek [Alek@Nightstar-7or629.il.comcast.net] has joined #code
23:33 mode/#code [+o Alek] by ChanServ
23:57 Derakon[AFK] is now known as Derakon
--- Log closed Thu Mar 22 00:00:55 2018
code logs -> 2018 -> Wed, 21 Mar 2018< code.20180320.log - code.20180322.log >

[ Latest log file ]