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

Entries this day: akiko cadence inbox-zeroed look-in-the-mirror technical-debt

akiko

22:47 Wednesday 28 June 2017 JST

Wow so great to be back in touch with Akiko!

I met her in EV back back in the day, and lost touch after I quit working there and got busy etc etc, but today in the middle of getting to Inbox Zero (I am cleaned out back to 2012 I think), I wrote to her and she wrote back!

AND she says she is interested in teaching me Japanese, which I believe I am more interested now than I was then.

AND AND she lives close to us!

permalink

cadence

18:49 Wednesday 28 June 2017 JST

Third lesson today was good; some of the students seemed to really enjoy the cadence practice we did, focusing on matching the natural native-speed rhythm of my speech. Finally I have found something that kinda gets their attention. Mental note duly noted.

Maybe I will try it with my next class, but I kinda doubt it will have the same effect.

permalink

inbox zeroed

23:04 Wednesday 28 June 2017 JST

Inbox Zero Activated.

I just use Stars to mark emails I want to process later.

Inbox started to go to hell while I was in Thailand and I never got back to zero until now.

permalink

look in the mirror

23:13 Wednesday 28 June 2017 JST

I have often bitched about my wife not being able to speak English well,

but I just found some of her old emails, and I must admit she is getting better.

This is from 2011

are u be in shibuya after art something?
i just about to leave so i was wondering,
let me know!

I hope my new awareness will help me stop bitching as much.

permalink

technical debt

10:40 Wednesday 28 June 2017 JST

The old code was this:

$search_id = uniqid(UserAuthentication::getUserId());

Now it is this.

switch ($report_id) {
    case '2':       // I have no idea how to fix this one
    case '5':       // contact edit page knows nothing of V2-style indices
    case '9':       // contact edit page knows nothing of V2-style indices
    case '10':      // uses `u` in query.  See SELECT * FROM `defined_reports` WHERE `dr_id` = 10
    case '11':      // uses `t` in query
    case '13':      // can probably fix if remove `u` from `query` SELECT * FROM `defined_reports` WHERE `dr_id` = 13
    case '16':      // can probably fix if remove `u` from `query`
    case '17':      // can probably fix if remove `u` from `query`
    case '18':      // can probably fix if remove `u` from `query
    case '19':      // can probably fix if remove `u` from `query
        $search_id_version = 1;
        $search_id = uniqid(UserAuthentication::currentUserId());
        break;
    default:
        $search_id_version = 2;
        $search_id = "v2-" . uniqid(UserAuthentication::currentUserId());
        $search_id_existed = 0;
        break;

}

I am actually pretty glad I put it in code instead of the DB because now at least I have notes regarding why each one is here, and I have a sense of where to start looking to fix them.

I guess I can do this:

switch ($report_id) {
    case '2':       // I have no idea how to fix this one
    case '5':       // contact edit page knows nothing of V2-style indices
    case '9':       // contact edit page knows nothing of V2-style indices
    case '10':      // uses `u` in query.  See SELECT * FROM `defined_reports` WHERE `dr_id` = 10
    case '11':      // uses `t` in query
    case '13':      // can probably fix if remove `u` from `query` SELECT * FROM `defined_reports` WHERE `dr_id` = 13
    case '16':      // can probably fix if remove `u` from `query`
    case '17':      // can probably fix if remove `u` from `query`
    case '18':      // can probably fix if remove `u` from `query
    case '19':      // can probably fix if remove `u` from `query
        $search_id_version = 1;
        break;
    default:
        $search_id_version = 2;
        break;

}

$search_id = "v" . $search_id . "-" . uniqid(UserAuthentication::currentUserId());
$search_id_existed = 0;

Because the version tester just looks for "v(%d)+-" at the beginning, so old style uniqids like 115952d2ee60c79 and v1-115952d2ee60c79 will respond as type 1 ids.

.........

But I think really I am just losing my mojo for programming.

permalink