journal
all all entries rss SoML excited dreams runes YRUU ultimate KTRU skate sleepy nihongo
Rob is 20,118 days old today.
prev day next day printable version

Entries this day: state-of-my-life-address worlds-funniest-hotfix-version-hotfix

state of my life address

  1. I noticed the sound of today's date (March Fourth) is a command

(March Forth)

  1. I'm still in the middle of updating AB's backend site according to

MLAPHP. It has helped enormously with my confidence in making updates to the site. Like OMG the book has paid for itself countless times.

  1. Recently I got phan/phan installed on a local virtual machine and

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.

  1. I've kinda stalled in moving Bold Life Brotherhood Tokyo forward.

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.

  1. One thing to do would be stop playing Best Fiends. It's a dang
  2. good game in terms of gameplay and dopamine hits, and wow what a
    time sink.  I am up to level 165.
    
  3. I am on track for 36 workshops in 2020. I have done 6 so far in 2

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.

  1. I just wrote to Giselle and Yuna to see if they wanna do another

workshop together.

  1. Weird I just spoke Japanese with a western-looking woman working at

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.

  1. Recently Lin has been wanting to buy a 2015 Forester. I prefer to

save money and pay cash for it but she wants to get it sooner and use credit.

  1. I spoke with Clio from AirBnB who gave me some great ideas for

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.

  1. Dang my computer just dropped from like 40% battery to 0%. I was
  2. not watching carefully but it just went to sleep and woke up with
    0% after I plugged it in.
    
  3. That reminds me, I am in the market for a new computer. I am
  4. thinking of getting a desktop to be my primary machine and clear
    this one of non-critical stuff.
    
  5. All schools have closed in Japan for what I am calling Virus
  6. 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.
    
  7. Our cat Jennie is apparently 8 years old. Lin has relaxed a bit
  8. about her being outside after dark.
    
  9. I am continuing this on 11 March 2020
  10. I do not have any plans to travel this year. Now that the
  11. 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.
    
  12. I mean, take a look at this beautiful
  13. [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?
    
  14. We had a great walking meditation on March 7th, and I was telling
  15. 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!
    
  16. I am up to level 188 in Best Fiends. Man eff this neverending
  17. addictive game.
    
  18. I am up to page 70 or so in my Japanese study via KUMON. Oh, I
  19. 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!
    
  20. AB is going pretty well; I have gotten rid of all the
  21. 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.
    
  22. I have also been using Codeception to run acceptance tests on the
  23. 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.
    
  24. OMG but that reminds me, just before starting 6 hours of work at
  25. 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.
    
  26. Jennie has not used the bridge I made for her from the balcony to
  27. Lin's window.  I wonder if she ever will.
    
  28. Yesterday while working on Marble Track 3, I installed two
  29. "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.
    
  30. Noborito next and just ran out of things to write. Nice timing.
  31. Oh, during the walking meditation I noted how often I am mindful
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
  • when populating prev/next ids in TABLE `search_queries_backend_ids`, just remember we have to
  • account for maintaining list offsets while editing the very list we are on.
  •  * 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,
    
  • but hopefully this explains the problem with short wingspans
  •  *
     * 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 @@
 

That is all.

permalink
prev day next day