journal
all ![]() | Rob is 20,118 days old today. |
Feb 2020 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Apr 2020 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2019 jan feb mar apr may jun jul aug sep oct nov dec
2021 jan feb mar apr may jun jul aug sep oct nov dec |< << more >> >| |
Entries this day: state-of-my-life-address worlds-funniest-hotfix-version-hotfix state of my life address
(March Forth)
MLAPHP. It has helped enormously with my confidence in making updates to the site. Like OMG the book has paid for itself countless times.
have been doing static code analysis as well. It found hundreds(?) of critical errors, all of which I have fixed, some of which were long-lasting bugs that simply hadn't been triggered.
Sometimes I am just not sure what to do. Well I mean I know I need to post stuff and such, but I don't know what to post that seems meaningful.
good game in terms of gameplay and dopamine hits, and wow what a time sink. I am up to level 165. months. Two more are scheduled in March (walking meditation in Shinjujku Park and Your Art Matters); I need to schedule something for the end of March.
workshop together.
the convenience store. She didn't switch to English so I didn't either. Not sure if it's just me, but if we had switched to English, it would have felt like a wall had been lowered. I don't think it is just because my Japanese ain't all that great.
save money and pay cash for it but she wants to get it sooner and use credit.
getting my AirBnB Experience started, including lowering the price at first, adding more pictures, and adding more dates. I started thinking about it though, and it's like I don't really want to do this; nevermind. I am tempted to just delete the whole thing.
not watching carefully but it just went to sleep and woke up with 0% after I plugged it in. thinking of getting a desktop to be my primary machine and clear this one of non-critical stuff. Month. I hope it does not last for a month more but apparently there may be an announcement made by Prime Minister Abe next week that everything is gonna be shut down. about her being outside after dark. coronavirus has been nearly described as a pandemic, with Italy locked down and masks unavailable everywhere, I am kinda glad I have no plans to get messed up, but for real I think this pandemic is being overhyped. It's just a flu bug and has far fewer deaths than tuberculosis (but more deaths than terrorism, so that's something). It has been challenging for me to keep from blabbing to all my students how it's a coverup of some variety but I just don't know what yet. [Information is Beautiful page on COVID-19](https://informationisbeautiful.net/visualizations/covid-19-coronavirus-infographic-datapack/). It ain't shit compared to lots of deadlier things. Just like "terror" was hyped on the media we are seeing the same thing in media this time. Why? my students about it today. Chinatsu looked up full bloom this year and it's apparently scheduled for March 22nd. So I will schedule another walking meditation on 21 March. That can be my third workshop in March! addictive game. forgot to mention that I signed up for KUMON in 渋沢 because Sanae who we met in 直島 teaches there and is able to teach Japanese. Fair enough; sounds fun! SEVERITY_CRITICAL errors in the backend thanks to phan/phan. Just today I installed phan/phan on the frontend as well because I had to do a fix to the site and might as well get started with static analysis. Last night is the night I was late for MKP men's circle (which is fine because "we have all the king we need") because we *got a bounce* from an email we sent. Turns out some yahoo used a fake email address and it bounced. I hardcoded a fix to keep that address from being used and today I firmed it up by creating a table and a class to read it. Anyway that was all on the frontend. website itself. I have 178 tests with 869 assertions on the backend. On the frontend are 13 tests with 42 assertions. This is all thanks to Paul Jones MLAPHP book. It has helped me so much get this code sorted out. I definitely feel more confident making changes and updates. JB today, I pushed a code change without doing the associated DB change because all the DB updates are done manually. Thank goodness I tested and noticed before anyone else. Gotta deploy DB updates automagically eventually. Lin's window. I wonder if she ever will. "maglevs" which are steel rods from our old "Shoot The Moon" game which I got from Dad a couple years ago. The rods are perfect for sliding magnets along which allows smooth lifting of characters over the set to let them fly various places. It's great having the maglevs firmly placed *and* able to rotate like arms on turntables. Super happy with this improvement in the MT3 set. during normal life. Not having to sit down to meditate, but trying to be mindful as often as possible has helped a lot.permalink worlds funniest hotfix version hotfix After making some optimizations, We discovered a weird problem with prev/next buttons on AB's site. I realized what the problem was and remembered I had already put a bandaid on it before but forgot about it when I made the optimizations. I wrote the following note above the function I had to fix. /** * populateIDsIfDNE * * Hey future smart person * Before you decide to optimize by lowering PREFERENCE_WINGSPAN_PREV_NEXT, thinking it will reduce the time
* Similar to the comment in commit 695aacfd96df0dbc1ff82af924c8e399249d656a * We have an offset problem for any given search if we get to the last id in TABLE `search_queries_backend_ids` * * Here are the steps that cause a problem: * * * load list of units to check https://ab/en/system/units/?outofdate=1 * * view a unit in the list (at which time the prev/next units are saved in TABLE `search_queries_backend_ids`) * * save the unit as checked (whereby it will not show up in original search) * * (optional) click next and edit next unit * * (optional) click next and do not edit next unit * * LET の be the number of units edited during this process * * click next until we get to last offset (at end of PREFERENCE_WINGSPAN_PREV_NEXT) * * this triggers a reload of unit ids (during which any checked units will not be found because they no longer need to be checked) * * let ォ be $offset_of_current at that time * * Now in TABLE `search_queries_backend_ids`, the new first unit was the のth unit in the original list * * click [next unit] on unit edit page (goes to offset = PREFERENCE_WINGSPAN_PREV_NEXT in TABLE `search_queries_backend_ids`) * * discover units were skipped. How many? Let's see.. オ+の! * * The オ の variable values might not be defined or used exactly as outlined above, * * Good luck, * Rob * March 4th, 2020 * */ After hotfixing the above problem, I got an email while running tests on AB PHP Notice: Constant SITE_VERSION already defined in /var/www/ab/versions/2020-03-03-2223/prepend.php on line 3 Wait, what? I had to issue the following world's funniest hotfix version hotfix diff --git a/prepend.php b/prepend.php index 530e1ab9..13f25731 100644 --- a/prepend.php +++ b/prepend.php @@ -1,6 +1,5 @@ |