--- Log opened Thu Nov 03 00:00:08 2016 |
--- Day changed Thu Nov 03 2016 |
00:00 | | Derakon[AFK] is now known as Derakon |
03:22 | | macdjord|wurk is now known as macdjord |
03:37 | | Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [[NS] Quit: Quit] |
04:09 | | Derakon is now known as Derakon[AFK] |
04:20 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
05:40 | | catadruid [catalyst@Nightstar-ndh62u.dab.02.net] has joined #code |
05:42 | | catadroid [catalyst@Nightstar-u6p.tcr.132.82.IP] has quit [Ping timeout: 121 seconds] |
06:18 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
06:18 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
06:24 | | Kindamoody[zZz] is now known as Kindamoody |
06:37 | | celticminstrel is now known as celmin|sleep |
06:49 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
06:50 | | catadruid is now known as catadroid |
08:47 | | Kindamoody is now known as Kindamoody|afk |
08:49 | | catadroid [catalyst@Nightstar-ndh62u.dab.02.net] has quit [[NS] Quit: Bye] |
09:24 | | gizmore|2 [kvirc@Nightstar-7q77dv.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds] |
09:24 | | gizmore|2 [kvirc@Nightstar-hposii.dip0.t-ipconnect.de] has joined #code |
10:52 | <@TheWatcher> | Argh. The side of my left thumb is touchsore >.< |
10:52 | <@TheWatcher> | This is making typing challenging! |
10:55 | <@Tamber> | I imagine it would be. :( |
10:57 | | catadroid [catalyst@Nightstar-ndh62u.dab.02.net] has joined #code |
10:59 | <@abudhabi> | Have you tried rebooting it? |
11:00 | <@TheWatcher> | How exactly would someone reboot a thumb? |
11:00 | | * Tamber gets a hammer... |
11:03 | <@abudhabi> | Hm. |
11:03 | <@abudhabi> | How does one enable commenting on wordpress posts? |
11:04 | <@abudhabi> | (I'm not sure the theme has this functionality, but I'd like to check if I failed to check some box somewhere.) |
11:04 | <@abudhabi> | The posts have a link to self with a #respond anchor, but that leads nowhere. |
11:05 | <@simon_> | abudhabi, I'd assume that the actual enabling happens somewhere in the back-end that isn't covered by a theme (unless by a back-end theme). |
11:06 | <@simon_> | abudhabi, it does sound likely that the theme simply forgot to add a comment box. you could find out by switching to the default theme and see if it pops up? |
11:06 | <@simon_> | s/theme/theme author/ |
11:14 | <@abudhabi> | I'll ask their support. |
11:49 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
11:49 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
12:10 | | catadruid [catalyst@Nightstar-vgevsv.dab.02.net] has joined #code |
12:12 | | catadroid [catalyst@Nightstar-ndh62u.dab.02.net] has quit [Ping timeout: 121 seconds] |
12:42 | | catadruid is now known as catadroid |
12:55 | | Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has joined #code |
12:55 | | mode/#code [+o Emmy-werk] by ChanServ |
12:58 | <@simon_> | isn't it confusing that 'x = x && y;' is not semantically equivalent to 'x &= y;'? the latter isn't short-circuiting. |
12:59 | <@simon_> | ... in C#. |
12:59 | <@simon_> | I'm guessing this isn't unique to C#. |
13:00 | < catadroid> | Surely the first is logical and the second bitwise? |
13:01 | < catadroid> | I'm not sure if C# does bitwise operations |
13:01 | | Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
13:02 | <@simon_> | ahhh. |
13:03 | <@simon_> | of course. that was silly. yeah, you're right. |
13:03 | <@simon_> | so it does. and it incidentally overloads to bools, but then it's eager. |
13:15 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed] |
13:19 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
13:19 | | mode/#code [+ao VirusJTG VirusJTG] by ChanServ |
13:20 | <@Tarinaky> | x = x && y looks so wrong/smelly to me... |
13:21 | <@Tarinaky> | if (x) x = y; is clearer I think? Style-wise. Although that /does/ have short-circuiting. |
13:23 | <@simon_> | those would be equivalent. |
13:23 | <@simon_> | or rather |
13:23 | <@simon_> | if (x) |
13:23 | <@simon_> | { |
13:23 | <@simon_> | x = y; |
13:23 | <@simon_> | } |
13:23 | <@simon_> | if I am to enforce the local style guidelines. :) |
13:24 | <@simon_> | I'd write 'if (x) { x = y; }' and it'd probably be quite readable. sometimes style guidelines are just stupid. |
13:34 | | * Tarinaky waves hands - pseudocode |
13:36 | | Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has joined #code |
13:36 | | mode/#code [+o Emmy-werk] by ChanServ |
14:09 | | gizmore|2 [kvirc@Nightstar-hposii.dip0.t-ipconnect.de] has quit [[NS] Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/] |
14:31 | | gizmore [kvirc@Nightstar-hposii.dip0.t-ipconnect.de] has joined #code |
14:32 | | Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
14:44 | | macdjord is now known as macdjord|wurk |
15:16 | | Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has joined #code |
15:51 | | Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
16:30 | | celmin|sleep is now known as celticminstrel |
18:23 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
18:40 | | catadruid [catalyst@Nightstar-296.bmi.132.82.IP] has joined #code |
18:43 | | catadroid [catalyst@Nightstar-vgevsv.dab.02.net] has quit [Ping timeout: 121 seconds] |
18:51 | | catadruid [catalyst@Nightstar-296.bmi.132.82.IP] has quit [[NS] Quit: Bye] |
21:43 | | gizmore [kvirc@Nightstar-hposii.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds] |
21:44 | <@gnolam> | https://twitter.com/th3j35t3r/status/794176751211544576 |
21:44 | | gizmore [kvirc@Nightstar-r1a67j.dip0.t-ipconnect.de] has joined #code |
23:00 | | * TheWatcher eyes this email from co-worker asking if I have a "reliable regex for validating email addresses", ponders going full http://stackoverflow.com/a/1732454/1479999 on him |
23:00 | <&McMartin> | Email hates the livin |
23:00 | <&McMartin> | g |
23:02 | <@celticminstrel> | TheWatcher: Pretty sure email addresses are significantly simpler than HTML. |
23:04 | <@TheWatcher> | celticminstrel: interesting thing. Here is the RFC 822 regex: http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html |
23:05 | <@TheWatcher> | RFC822 doesn't actually include some of the really fun parts that come later in 2822, 5321 and 5322 |
23:05 | <@Tamber> | Well, that's certainly something. |
23:06 | <@Tamber> | Something /hideous/, but it's something. |
23:06 | <@Tamber> | (So the advice of "validate it by sending an email to it" seems to be the most reasonable one, mmh?) |
23:06 | <@TheWatcher> | In particular, comment folding white space, and the ability to switch character encodings on the fly mean that you're basically fucked if you want an actually RFC compliant regex |
23:06 | <@celticminstrel> | So the grammar is at ยง6.1... |
23:07 | <@celticminstrel> | It does look surprisingly complex... |
23:07 | <@celticminstrel> | I'm actually confused on the syntax used to specify the grammar in the first place/ |
23:08 | <@celticminstrel> | At least one symbol is undefined... |
23:08 | <@celticminstrel> | Hmm, is the "name <address>" syntax considered part of that then? |
23:09 | <@TheWatcher> | It'll be defined elsehwere in 822, or possibly 733 |
23:09 | <@celticminstrel> | I get the impression that what most people think of as an email address is just what this is calling "route". |
23:09 | <@celticminstrel> | Or possibly "route-addr". |
23:10 | <@celticminstrel> | Maybe "addr-spec". |
23:10 | <@celticminstrel> | Why is their Kleene star a prefix operator... |
23:11 | <@celticminstrel> | Anyway, if you're only interested in the semantically important part of the address, ie the bit between <>, it looks like it's parseable by regex... unless "atom" has a bizarrely complex definition. |
23:11 | <@celticminstrel> | Or "domain-literal". |
23:12 | < ToxicFrog> | I have some bad news for you |
23:13 | <@TheWatcher> | You're looking at 822. That's obsolete. |
23:13 | <@celticminstrel> | Oh. |
23:14 | <@TheWatcher> | (And was actually just about on the very edge of the point where the email specs descended into utter and complete madness) |
23:15 | <@celticminstrel> | 2822 is even worse on defining symbols. I'm sure they're defined somewhere, but the only way to figure out where is probably Cmd+F. |
23:16 | <@celticminstrel> | If I just look at addr-spec it looks maybe regexable, but the chance of some of those symbols being overly complex seems high. |
23:19 | < ToxicFrog> | Do not attempt textual validation of email addresses. You will make your users sad. |
23:21 | <@celticminstrel> | I kinda doubt most users would get more complicated than user.name@example.com. |
23:21 | <@TheWatcher> | celticminstrel: I feel I should probably link you this. It's 40 minutes, and actually covers more than just email addresses, but it does include some wonderful examples of the utter insanity that the spec allows: https://www.youtube.com/watch?v=JENdgiAPD6c |
23:22 | <@celticminstrel> | Admittedly it's probably not good to rely on that for validation, but if the goal is to auto-link email addresses, it should be sufficient. |
23:22 | <@TheWatcher> | It's not, he's trying to find out whether the user has entered a valid email address, so. |
23:22 | <@celticminstrel> | I wonder if there's a way to add that to "watch later" without actually loading the page. |
23:23 | <@TheWatcher> | Not last I checked. |
23:31 | < ToxicFrog> | celticminstrel: ha ha ha ha ha ha ha ha ha |
23:31 | < ToxicFrog> | celticminstrel: for starters, "username+foo@domain" and "username-foo@domain" are both relatively common and both commonly rejected by garbage email validators |
23:32 | <@celticminstrel> | ...how to I make sed only match whole words. |
23:32 | < ToxicFrog> | For email addresses inside a LAN the domain may be an unqualified name or even absent entirely; this isn't a problem for systems intended to accept publically deliverable addresses but is something that general purpose email software needs to cope with |
23:33 | | * celticminstrel notes that accepting + and - in the address is a trivial change to a regex. |
23:34 | <@celticminstrel> | Do I need to use [[:<:]] and [[:>:]]? |
23:35 | < ToxicFrog> | Right, but the fact that it's a change you need to make in the first place is a problem, and that's just one example of the many, many things that don't match the "user.name@domain.tld" format expected by naiive and terrible email validators but which are nonetheless entirely valid email addresses |
23:35 | < ToxicFrog> | And if someone tries to sign up to your site and it rejects their email address with + in it odds are they aren't going to send you an email saying "your validator is broken", they're going to not use your site |
23:44 | | Kindamoody|afk is now known as Kindamoody |
23:47 | | Netsplit Deepthought.Nightstar.Net <-> Golgafrincham.Nightstar.Net quits: catalyst, gizmore, @Syloq, @crystalclaw, @Reiver |
23:47 | | Netsplit Deepthought.Nightstar.Net <-> Golgafrincham.Nightstar.Net quits: @Attilla, @Namegduf, @abudhabi, @gnolam, ricer, @^Xires, @Pi, ToxicFrog |
23:47 | | Netsplit Deepthought.Nightstar.Net <-> Kakrafoon.Nightstar.Net quits: @Derakon[AFK], @Vornicus, @VirusJTG, @celticminstrel, @Tarinaky, @Ogredude, @Azash, @macdjord|wurk, @jerith, @[R], (+1 more, use /NETSPLIT to show all of them) |
23:47 | | Netsplit over, joins: &Reiver, ToxicFrog, @Syloq, @gnolam, catalyst, @Namegduf, @crystalclaw, @Attilla, @abudhabi, ricer (+3 more) |
23:47 | | JustBob [justbob@Nightstar.Customer.Dissatisfaction.Administrator] has quit [Ping timeout: 121 seconds] |
23:48 | | Netsplit over, joins: Ogredude, VirusJTG, Azash, celticminstrel |
23:48 | | JustLurk [justbob@ServerAdministrator.Nightstar.Net] has joined #code |
23:48 | | Netsplit over, joins: jerith, Vornicus, [R], jeroud, macdjord|wurk, Tarinaky |
23:48 | | KiMo|autorejoin [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has joined #code |
23:48 | | Netsplit over, joins: &Derakon[AFK] |
23:48 | | ServerMode/#code [+ooaooaoooqoaoaoao Ogredude Azash VirusJTG VirusJTG celticminstrel jerith jerith Tarinaky macdjord|wurk Vornicus Vornicus [R] [R] jeroud jeroud Derakon[AFK] Derakon[AFK]] by *.Nightstar.Net |
23:50 | | Kindamoody [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has quit [Ping timeout: 121 seconds] |
23:52 | | Derakon[AFK] is now known as Derakon |
--- Log closed Fri Nov 04 00:00:14 2016 |