#dev | Logs for 2016-09-29

« return
[00:32:12] <TheMightyBuzzard> Bytram, you answered it well enough for me. If he's finding sites that accurately figure out his timezone, they know way more voodoo than i do.
[00:37:58] <chromas> Maybe GeoIP
[00:39:37] <TheMightyBuzzard> which is shit.
[00:40:26] <TheMightyBuzzard> vpns and proxies aside, where your the lookup table thinks your ip is from can be radically different than where it's actually from.
[00:44:21] <chromas> well then login and set your timezone!
[00:44:29] * chromas doesn't remember if that's even an option
[00:44:58] <chromas> Maybe some js to look at the local clock and set a cookie
[00:46:44] <TheMightyBuzzard> screw dat
[00:47:20] <TheMightyBuzzard> i ain't puttin no js on the page without a compelling reason
[00:49:28] <chromas> April 1 is a compelling reason
[00:49:39] <chromas> Put in some animated bubbles and stuff
[00:49:58] <TheMightyBuzzard> Bytram, we do adjust for dst though
[00:50:49] <TheMightyBuzzard> personally, i really despise working with time/date data.
[03:13:34] <NCommander> I think there's a JS API got getting the current timezone
[03:13:37] <NCommander> ^- TheMightyBuzzard Bytram
[03:13:55] <NCommander> TheMightyBuzzard, I'm not object to having JS on the site as long as functionality isn't heavily impacted if its MIA
[03:21:47] <chromas> Blasphemy!
[03:22:15] <cmn32480> HERESY!!!!!
[03:22:26] <cmn32480> the site needs to be rewritten TOTALLY in JS...
[03:22:44] <TheMightyBuzzard> #smake cmn32480
[03:22:44] * MrPlow smakes cmn32480 upside the head with a cane toad
[03:23:31] <cmn32480> and if they have it blocked... they should get a static page that says "This site only functions with buggy, exploit ridden JavaScript. Like it or GTFO!
[03:24:13] * cmn32480 was in IRC withdrawal the last 3 days
[03:24:35] * TheMightyBuzzard was fishing
[03:24:43] * cmn32480 is jealous
[03:24:48] <cmn32480> you catch anything?
[03:24:53] <cmn32480> other then a suntan?
[03:25:09] <TheMightyBuzzard> a few. nothin worth bragging over though.
[03:26:03] <cmn32480> a bad day fishing....
[03:26:14] <cmn32480> beats pretty much everythgin else
[03:26:31] <TheMightyBuzzard> cept boobs
[03:26:46] <cmn32480> they woudl be included in "pretty much"
[03:27:52] <TheMightyBuzzard> NCommander, I object to having it on the site unless it really brings something useful to the table. Then I object to it because it means people not using it are 2nd class citizens in functionality.
[05:13:33] <mecctro> JS GIF creation, amiright?
[11:28:13] <Bytram> TheMightyBuzzard: I saw your reply to the DST question (on the site and here) -- appreciate the follow up very much, and glad to know I wasn't too far off with my assessment, too!
[11:28:33] <Bytram> and yes, IP geo location is far from a sure thing!
[11:29:07] <Bytram> as for the site figuring out DST automatically, how does it handle things like certain states / regions in the US not observing DST?
[11:31:39] <TheMightyBuzzard> it's cool like that but you can even turn off dst switching if you like.
[11:32:11] <Bytram> so it kinda becomes a manual automatic DST then? ;)
[11:32:41] <TheMightyBuzzard> more or less. automatic unless you want to drive stick.
[11:33:51] <Bytram> a car analogy? How quaint! And apropos!!
[11:33:54] <Bytram> TheMightyBuzzard++
[11:33:54] <Bender> karma - themightybuzzard: 3
[11:55:08] <Bytram> TheMightyBuzzard: so how'd you fix: <p> <a...>
[11:55:20] <Bytram> IOW, should Imake up a list of all the pairings that I've found troublesome?
[11:56:09] <TheMightyBuzzard> s/<p> <a/<p><a/ig;
[11:56:16] <Bytram> LOL
[11:56:36] <TheMightyBuzzard> it's hacky but meh
[11:56:41] <Bytram> and the <a...> <em> did you also include the closing side?
[11:56:49] <Bytram> </em> </a>
[11:56:54] <TheMightyBuzzard> i can't be arsed to dig deep enough to find out why <a> tags are being fookers
[11:56:57] <TheMightyBuzzard> yar
[11:57:03] <Bytram> noice!
[11:57:15] <TheMightyBuzzard> cept i think i used </i>
[11:57:35] * Bytram mostly uses <em> instead of <i>
[11:57:53] <TheMightyBuzzard> oh, no, i told it no spaces as the last character of an <a> tag period.
[11:58:20] <TheMightyBuzzard> so it'll work for i/b/em/strong
[11:58:35] <TheMightyBuzzard> and everything else
[11:58:36] <Bytram> s/\b*<\/a>/</a>/g
[11:58:55] <Bytram> \b is all the different kinds of blanks, right?
[11:58:56] <TheMightyBuzzard> s/>\s+<\/a/><\/a/ig;
[11:59:06] <Bytram> ahh, /s *space* got it
[11:59:10] <TheMightyBuzzard> nope, word boundry
[11:59:21] <Bytram> hmmm
[11:59:31] <TheMightyBuzzard> \b is handy but it's not a space necessarily
[12:00:04] <Bytram> well, we want to make sure that all whitespace gets purged... ala: [[:blank:]]
[12:00:34] <Bytram> that covers 'spce", "tab", and others? maybe formfeed? not sure...
[12:00:36] * Bytram goes to look
[12:00:57] <TheMightyBuzzard> \s covers all whitespace, including nbsp and the like
[12:00:58] <Bytram> bah
[12:01:01] <Bytram> [[:space:]]
[12:01:14] <Bytram> Space characters (such as space, tab, and formfeed, to name a few).
[12:01:22] <Bytram> according to gawk user guid
[12:04:48] <Bytram> https://en.wikipedia.org
[12:04:49] <aqu4>  ^ "3Regular expression - Wikipedia, the free encyclopedia"
[12:06:26] <Bytram> heh, there's both [[:blank:]] AND [[:space:]]
[12:06:35] <Bytram> [[:blank:]] == [ \t]
[12:07:02] <Bytram> [[:space:]] == [ \t\r\n\v\f]
[12:13:35] <TheMightyBuzzard> ya, \s is so much more useful
[12:13:51] <TheMightyBuzzard> least in recent perl versions
[12:19:03] <Bytram> agreed. from that chart at wikipedia, it appears that \s == [[:space:]]
[12:20:19] <TheMightyBuzzard> oh it so doesn't.
[12:20:51] <Bytram> huh?
[12:20:52] <TheMightyBuzzard> it includes a lot of unicode space-like characters
[12:21:06] <Bytram> oh, yeah... that was just the ASCII representation.
[12:21:13] <TheMightyBuzzard> ahh, nod nod
[12:21:15] <Bytram> I stand (sit) corrected.
[12:21:40] <Bytram> how could I ever forget Unicode?
[12:21:49] * Bytram shudders and goes for more coffee
[12:21:52] <Bytram> coffee++
[12:21:52] <Bender> karma - coffee: 5
[12:21:53] <TheMightyBuzzard> i sit comfortably. folks have good computer chairs.
[12:22:00] <Bytram> lol
[17:41:08] zz_janrinok is now known as janrinok
[19:14:19] janrinok is now known as zz_janrinok
[23:26:35] <mecctro> TheMightBuzzard, let me know if that 1-liner worked.