#dev | Logs for 2017-05-18
« return
[01:34:24] <Bytram> Xyem: TheMightyBuzzard: nice teamwork figuring out the fractional donation bug! As for other outstanding issues, there is one that comes to mind: after making the payment, the end date shown on the subscribe page is not [always] updated. :/
[01:37:39] <Bytram> *currently* see (on dev): "User "Xyem" subscription ends 2031-05-14 UTC. "
[01:39:41] <Bytram> buy youself a sub for, say, 30 days using bitcoin. I've seen it process the request and when it repaints the Subscription page, there is a (IIUC) race condition with inetd(?) and when the system completes processing the subscription, it may (or may not) update the Subscription end date. :(
[01:54:54] <TheMightyBuzzard> honestly, i'm not sure that's a fixable bug. lemme look.
[01:56:48] <TheMightyBuzzard> no, that's a MAJOR bug to fix.
[01:56:56] <Bytram> I'd think one could, pre-subscribing, capture the sub-end-date, do the subscription, and spin with a 1(?? or site var) sec wait per try until it changes, or 10(?? maybe sitevar) iterations.
[01:57:05] <TheMightyBuzzard> would have to rewrite getCurrentUser
[01:58:00] <TheMightyBuzzard> it's only sort of a race, as soon as the callback is made to us but before the new info is inserted the values getCurrentUser will return are fixed.
[01:59:12] <Bytram> hey... sorry to hear about your cold. that's NO fun. at all!
[01:59:12] * Bytram is pretty knackered atm... sees the words, but not really registering -- sorry!
[01:59:59] <TheMightyBuzzard> saying everything in $user is fixed at the instant any call is made to any page. cannot be updated easily until the next page load.
[02:00:00] <Bytram> hope you can get a good night's sleep -- that should help... that, and a big bowl of extra spicy hot-n-sour soup! (Serves to clense *my* sinuses!)
[02:00:53] <TheMightyBuzzard> yeah, gonna give it a go here in a few minutes.
[02:00:59] <Bytram> hmmm, what's that thing you can put in a web page that makes it refresh after some delay?
[02:01:15] <TheMightyBuzzard> it's the same reason you get one page of the same theme after changing themes.
[02:01:15] <Bytram> in the <head>
[02:01:48] <Bytram> yeah.. that one REALLY bugs me! Should auto refresh so as I can see the change.
[02:02:33] <TheMightyBuzzard> hrm... tell ya what we could do...
[02:02:36] <Bytram> well, 'should' --> I would really appreciate seeing the change take effect without my having to remember to manually reload the page... why can't YOU make that happen -- computers DO automation, right?
[02:02:55] <Bytram> ^^ that's my thinking when I see the theme not upadte immediately
[02:04:06] <TheMightyBuzzard> we could do a getUser("whatever-the-sub-date-name-is")
[02:04:26] <Bytram> hmm, for BC, could we have a template call there which, in turn, does a direct call to the DB? It's not like this is gonna happen all that often, right?
[02:04:42] <TheMightyBuzzard> see above
[02:04:46] * Bytram perks up... that soubds promising
[02:04:48] <Bytram> *sounds
[02:05:23] <TheMightyBuzzard> yeah, remind me when my head ain't stopped up and i'll take care of it.
[02:05:33] <TheMightyBuzzard> maybe themes as well
[02:05:36] <Bytram> nod nod
[02:05:38] <Bytram> much obliged!
[02:05:53] <TheMightyBuzzard> but i'm not gonna put much effort into themes if it looks like it's gonna take a while.
[02:05:53] <Bytram> and... seems like Xyem has been helping out already... yay!
[02:05:56] <Bytram> Xyem++
[02:05:56] <Bender> karma - xyem: 1
[02:06:14] <TheMightyBuzzard> ya, he hunted down my bug from when we first started accepting stripe.
[02:06:24] * Bytram keeps seeing "Xylem" as in the non Phloem stuff that makes up a tree trunk
[02:06:44] * Bytram say it in the #editorial/#dev backscroll
[02:06:52] <Bytram> *saw
[02:06:52] <TheMightyBuzzard> you too?
[02:07:06] <Bytram> no, I *saw* the discussion
[02:07:14] <TheMightyBuzzard> no i meant xylem
[02:07:19] <Bytram> oh, the name, you mean?
[02:07:24] <TheMightyBuzzard> we are nerds
[02:07:29] <Bytram> yep... every. single. time!
[02:07:56] * Bytram learned to identify about 2 dozen species of trees by the time he became a teenager
[02:08:24] <TheMightyBuzzard> pffft, i did that just by being a country boy
[02:08:44] <Bytram> pine (white, red, pitch, jack), oak (white, red, black), maple ...
[02:09:26] <TheMightyBuzzard> oak is tricky. lot of em are very similar. specially live oak.
[02:09:27] <Bytram> was fascinated at how something could grow so tall and still hold together... and what part was alive and like that... very curious
[02:09:41] <Bytram> so, really took to the xylem / phloem thing
[02:10:09] <Bytram> we's got Black, red, and white oak... they are really easy to tell apart.
[02:10:17] <TheMightyBuzzard> i just learned it in science class and like soooo many useless things never forgot it
[02:10:18] <Bytram> with leaves
[02:10:23] <Bytram> much harder by just the bark
[02:10:31] <Bytram> nod nod
[02:10:41] <Bytram> time to do my dishes :/
[02:10:50] <TheMightyBuzzard> you have my pity
[02:10:58] <Bytram> enjoyed chatting with ya... and really do hope you heal up quick.
[02:11:05] <Bytram> allergies--
[02:11:05] <Bender> karma - allergies: -1
[02:11:13] <Bytram> oh.
[02:11:30] <Bytram> oh! *there* you are!
[02:11:34] <Bytram> afk biab
[02:11:55] -!- charon_ has quit [Quit: hiding from Bytram's wrath]
[04:54:35] <chromas> TheMightyBuzzard: just put in a little js ;)
[08:25:08] <Xyem> Bytram: "what's that thing you can put in a web page that makes it refresh after some delay?" .. annoying?
[10:14:19] <TheMightyBuzzard> Xyem, truth
[10:20:52] <Xyem> Morning TMB, how're you feeling today?
[10:21:15] <TheMightyBuzzard> like shit but i have coffee so things are looking up
[10:52:33] <Xyem> Any plans for today?
[11:01:22] <TheMightyBuzzard> trying to figure out that bug Bytram mentioned
[11:04:20] <TheMightyBuzzard> think i found it but i'm not up to debugging it
[11:09:14] <TheMightyBuzzard> it's pulling subscriber_until from $user_edit which was set to $user which came from getCurrentUser whose value is fixed at the beginning instant of any request.
[11:10:06] <TheMightyBuzzard> so i changed $user_edit to equal getUser($user->{uid}) to get a fresh copy
[11:11:28] <TheMightyBuzzard> yep, that squared it away
[11:15:37] <TheMightyBuzzard> here's the diff: https://github.com
[11:15:39] <upstart> ^ 03Should print the proper date for updated subs now by TheMightyBuzzard · Pull Request #392 · SoylentNews/rehash · GitHub
[12:04:18] <Bytram> !woop
[12:04:18] <Bender> woop woop woop (\/) (;,,;) (\/)
[12:04:22] <Bytram> TheMightyBuzzard++
[12:04:22] <Bender> karma - themightybuzzard: 12
[12:08:03] <TheMightyBuzzard> oi, Bytram, go change yer theme on dev
[12:08:39] <Bytram> really?
[12:08:42] <Bytram> !Woop
[12:08:46] * Bytram goes to look
[12:09:35] <TheMightyBuzzard> easiest to do it with a redirect but it works
[12:11:12] <Bytram> Indeed, it DOES!!!!!
[12:11:14] <Bytram> YAY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[12:12:45] <TheMightyBuzzard> now debug that beastie cause i KNOW there's a bug in it
[12:13:37] <Bytram> which beastie? the site theme or the subs refresh?
[12:14:09] <TheMightyBuzzard> site theme.
[12:14:16] <Bytram> k
[12:14:19] <TheMightyBuzzard> like try editing someone else's theme or such
[12:14:27] <TheMightyBuzzard> smoke break
[12:14:27] <TheMightyBuzzard> nicotine++
[12:14:27] <Bender> karma - nicotine: 5
[12:14:48] <Bytram> Ewww, /me made the mistake of selecting the 'Vomit' theme.... blech!
[12:18:16] <Bytram> TheMightyBuzzard: think I found something.... <title> - DevSN User </title> IOW does not put the user's nick in the preference's title
[12:19:22] <Bytram> maybe not, same thing happens on prod.
[12:20:09] <Bytram> and same thing happens on staff server, too. :/
[12:46:53] <Bytram> I've never messed with anyone else's theme on the site.. is a bit challenging to be two users at once... though if I used different browsers, I suppose...
[12:49:38] <Bytram> From what I've seen, the change to themes on dev works fine on one's own preferences, and is a darn sight better than what it used to be. If there is an issue with us changing the theme for another user, that's a corner case atm that we can know about and work around for the time being (I assume a page refresh cleans things up, right?)
[12:50:33] <Bytram> so, in sum, is MUCH better for the user... downside affects only staff, and IIUC there is a workaround for us -- page refresh (is that correct???).
[12:51:11] <Bytram> Is so much better than what we had, I say push it out to prod for now and we can worry about impact on staff at a later time.
[12:52:12] <Bytram> TheMightyBuzzard: ^^^ assuming page refresh fixes whatever wonkiness changing another user's theme causes, I say let's run with your theme patch!
[12:54:49] <FatPhil> So "academia" has finally sunk to this level? http://miar.ub.edu
[12:54:52] <upstart> ^ 03M@N@GEMENT - 1286-4692 | MIAR 2017 live. Information Matrix for the Analysis of Journals
[12:55:31] <FatPhil> and yes, that 10-character sequence of letters and symbold is actually the journal's name, sheeesh
[13:02:05] * Bytram wonders what they use for an email address? :P
[13:02:25] <Bytram> or, maybe that's the point? No bad news ==> must be good!
[13:29:01] <Xyem> I don't intend to right now, this is more for the future, but what is the approach to adding in new dependencies?
[13:29:37] <Xyem> For example, is it to be generally avoided? Should I get agreement before starting work that might involve it etc?
[14:02:47] <TheMightyBuzzard> Xyem, compelling reason should be necessary. if we can roll our own that's lighter on resources without a major undertaking it's preferred.
[14:03:23] <TheMightyBuzzard> mostly because we almost never update our dependencies
[14:04:04] <TheMightyBuzzard> but also because a general library takes a lot more system resources than a specific one.
[14:14:35] <Xyem> Of course. It's unlikely I would replace a current module with a slower one :)
[14:15:11] <Xyem> I'm currently working on a game engine, so I'm pretty mindful about performance right now!
[14:15:34] <Xyem> Partly why I removed the sprintf completely..
[14:18:58] <TheMightyBuzzard> nod nod. shoulda been. not sure what i was thinking at the time.
[14:19:26] <Xyem> It's more obvious what it is doing when it is included.
[14:22:20] <TheMightyBuzzard> nah, it was just me trying to outsmart myself i think.
[14:22:27] <Xyem> Heh, fair enough.
[14:29:20] <TheMightyBuzzard> okay, think i got that squared away. theme changes are instant now and admins get redirected back to the person they were editing's profile instead of to their own.
[14:32:39] <TheMightyBuzzard> erg. technically working correctly but i didn't clean out the leftover cruft. unused variables and such.
[14:32:59] <TheMightyBuzzard> will later. need some nicotine then a nap now.
[14:37:44] <Xyem> That reminds me. Should the "Subscribe Here" link on dev point to prod? :)
[14:52:11] <TheMightyBuzzard> Xyem, technically no but Bytram uses dev keep a backup of prod's site info bar
[14:52:38] <TheMightyBuzzard> that's from an in-db text field rather than part of the code doing that.
[14:53:48] <Xyem> Ah I see
[14:54:20] <Xyem> So $constants->{real_rootdir} is held in the database?
[14:55:55] <TheMightyBuzzard> yeah, in the `vars` table
[14:56:18] <TheMightyBuzzard> if that's how it's set it could be set wrong on dev
[14:57:27] <TheMightyBuzzard> no, that's not how it's set
[14:57:40] <TheMightyBuzzard> <p style="font-size:120%"><b>Support us: <a href="//soylentnews.org/subscribe.pl">Subscribe Here</a></b></p>
[14:59:38] <TheMightyBuzzard> admin bar->CONFIG->Blocks->Static and Color Blocks->site_news->Edit Block
[15:00:04] <Xyem> http://codepad.org
[15:00:05] <upstart> ^ 03Plain Text code- 3 lines - codepad
[15:00:06] <TheMightyBuzzard> that whole block there is held in the db
[15:00:28] <TheMightyBuzzard> oh, different location
[15:01:01] <Xyem> Ah, I see.
[15:01:12] <TheMightyBuzzard> for me that page points to dev
[15:01:18] <TheMightyBuzzard> https://dev.soylentnews.org
[15:01:20] <upstart> ^ 03Dev.SN: About
[15:01:23] <Xyem> "Site News" is from the database, "Gift a Subscription" links properly.
[15:01:53] <TheMightyBuzzard> yup
[15:02:06] <Xyem> It's wrong in the "Site News" area, under the funding.
[15:02:42] <TheMightyBuzzard> yeah, Bytram uses dev's site news block to back up prod's on account of he's accidentally buggered it up before and wants a backup now.
[15:03:00] <Xyem> Fair enough.
[15:03:52] <TheMightyBuzzard> don't hurt to ask though. some of em will be quirks that we have a reason for and some will be bugs.
[15:04:54] <TheMightyBuzzard> wish pj would get him some unbusy. this update's been being sat on for like 3 weeks now.
[15:05:17] <TheMightyBuzzard> gonna grab that nap now. back later
[15:05:36] <Xyem> As long as you don't bite my head off for asking, I will ask about anything I see that I think is wrong.
[15:07:07] <Xyem> Sleep well.
[15:07:25] <Bytram> Xyem: Please do! Ask away! From what I've seen, you have a good eye for edge cases and I very much appreciate having someone else on board who can take a QA/test eye to things!
[15:08:07] <Bytram> As for the site news block... that's my bad. Updating that block on prod is, ummm, risky. No simple way to back up and undo if/when I make a mistake. :(
[15:08:36] <Bytram> at one point, I prolly just copied prod to dev to test it out to make sure I didn't leave a tag handing or something and completely forgot that it would make no sense on dev.
[15:09:02] <Xyem> Finally, someone who appreciates my "but in this $incredibly_unlikely_to_happen situation, it does $wrong_thing, therefore your solution isn't acceptable"-ness!
[15:10:01] <Bytram> You'll get little argument from me!
[15:10:08] <Xyem> At least, for now :)
[15:10:38] <Bytram> I can be convinced to be pragmatic, at times, but I've made/seen enough mistakes to know that "it will never happen", umm, never happens!
[15:10:49] <Bytram> ;)
[15:11:31] <Xyem> Same. I don't mind doing not-perfect thing if I can't think of something better.
[15:13:00] <Bytram> But, and that's a BIG but, be sure as hell to document the corner cases that are not being covered!
[15:13:13] <Bytram> MAKE BUGS STAND OUT!
[15:13:55] * Xyem nods
[15:13:57] <Xyem> Fine by me.
[15:13:57] <TheMightyBuzzard> oh, Bytram, have a look at changing other folks' themes now. doesn't send you back to the same page but does send you to their info page at least.
[15:14:20] <TheMightyBuzzard> i figure that's good enough for us. we can spare a click now and then.
[15:14:48] <Xyem> I think naps are meant to last for more than 8 minutes, TMB.
[15:15:04] <TheMightyBuzzard> had a smoke first then wandered by the computer en route
[15:15:27] <Bytram> TheMightyBuzzard: okay for me to play with your theme on dev?
[15:15:41] <TheMightyBuzzard> man, break whatever ya like.
[15:15:59] <Bytram> kthx
[15:16:02] <TheMightyBuzzard> i was making ncommander lurve him some pwnies
[15:16:28] <Bytram> you has spaces in your nick, right?
[15:16:33] <TheMightyBuzzard> yar
[15:16:57] <Xyem> Bytram: What about the "Site News" box makes it difficult to back up?
[15:16:57] <TheMightyBuzzard> can use spaces, can use pluses, can use %20s. all work.
[15:17:04] <Bytram> looks like you haz site default atm, correct?
[15:17:09] <TheMightyBuzzard> roger
[15:17:12] <Bytram> nod nod
[15:17:12] <Bytram> k
[15:17:29] <Bytram> go big or go home... here somes some vomit
[15:18:06] <TheMightyBuzzard> Xyem, nothing especially. he could keep it in a text file just fine but it's more convenient to not leave the browser window i guess.
[15:18:46] <Bytram> Xyem: not so much to back up, but to apply on dev to see if works correctly.... if it's okay on dev, then push to prod.
[15:18:54] <Bytram> TheMightyBuzzard: you haz vomit on dev?
[15:19:13] <TheMightyBuzzard> ya. i kinda regret making that theme now.
[15:19:48] <Bytram> as well you should -- that is an absolutely NASTY theme -- I love it, in a strange sort of way... can you top THIS?
[15:19:59] <Bytram> I puts back for ya
[15:20:07] <Bytram> clicky
[15:20:20] <TheMightyBuzzard> cheers. really am gonna go lay down now. i'll check back in post-snooze.
[15:20:31] <Bytram> cheers! many MANY thanks!!
[15:21:23] <Bytram> Xyem: the other thing with the site news block is that there IS a preview button, but when used it assumes it has the entire width of my monitor to play with, which is very much different from the width of the div in which it would ordinarily be presented.
[15:21:45] <Bytram> IOW, looks nothing like it would look when rolled out -- not terribly useful.
[15:22:03] <Bytram> practicing on dev, much less mental manipulation to figure out if it displays correctly.
[15:23:09] <Xyem> Do you not use the responsive layout tool? You can probably make a preset that is the correct width, at least.
[15:23:59] <Bytram> can't say that I do. My browser of choice is Pale Moon
[15:24:43] <Bytram> sadly, I'm a bit behind the curve when it comes to testing small/touch UIs
[15:24:56] <Xyem> Ah, not sure if it is present in that.
[15:25:13] <Xyem> Being lazy, I'd probably just make my browser the right width :)
[15:25:48] <Bytram> otoh, I can do some pretty neat stuff between wget, curl, and an occasional saving of a page or three which get fed through scripts (primarily windows batch / awk / sed )
[15:26:06] <Xyem> As in, make a shortcut which toggles between float/resize and unfloat.
[15:26:11] * Bytram could really use a separate *nux box
[15:26:30] <Bytram> nope, do not have
[15:27:10] <Xyem> I don't have a separate *nix box.. I just have virtual machines for everything (metal only hosts VMs).
[15:27:41] <Xyem> Well, I technically do, because I have a laptop..
[15:29:38] * Bytram runs a core 2 duo lappy he was donated... much better than my old box, but I had some problems with a VM in the past and much prefer to keep separate things separate
[15:32:16] <Xyem> My laptop is a C2D too!
[15:33:03] <Xyem> Having separate things separate is *exactly* why I have VMs.
[15:35:31] <Xyem> They are each for fairly specific things. I have 11 of them running at the moment.
[15:35:42] <Xyem> Not something to do on a C2D, I'll give you that! :)
[15:35:57] <Bytram> I'm talking not-so-much process separation, but more like physical seperation -- sep proc / monitor / mouse / kbd... helps my mental separation model
[15:36:02] <Bytram> *separation
[15:36:09] <Xyem> Fair enough :)
[15:36:39] <Xyem> I don't think 11 of each would be.. easily navigatable though..
[15:36:52] <Xyem> Not all on the same desk anyway.
[15:37:32] <Bytram> at one place I worked, I had three separate systems aligned side-by-side; (a) was for creating input data, (b) was for running against the system-under-test, and (c) was for gathering and analyzing the output from (b)
[15:37:45] <Xyem> Niiiice.
[15:38:20] <Bytram> nice? yes, and warm... had 3 21" 1600x1200 CRTs
[15:38:40] <Bytram> never mind separate systems to drive each of 'em
[15:38:58] <Bytram> oh, and a 4th box for administrivia (emails and the like)
[15:39:16] <Bytram> break time... afk, biab
[20:51:49] -!- Xyem has quit [Changing host]
[20:51:49] -!- Xyem [Xyem!~Xyem@Soylent/Staff/Developer/Xyem] has joined #dev
[20:52:20] -!- mode/#dev [+v Xyem] by Hera