12 Oct 2018, 03:57

mens group
03:57 Friday 12 October 2018 JST

毎週火曜日男の人たちとの集まりがあります。

メンバーは男の人。円になっていすに座ります。

毎週サークルの初めに一人一人自分の気持ちを話します。それでみんなはグループになります。それをチェックインと言います。

二周目は先週約束したことが守れたかどうかを教えあいます。

約束が守れなくてもかまいませんが、なぜ守れなかったのかを説明せつめいします。

三周目は一人一人自分の本音ほんねを語ります。

アドバイスをするのではなく、ただjust聞いて、その人の悩みをうけとめます。

四周目の話は一周目のように、今の気持ちを再度さいど話します。そして、サークルは終わりになります。

11 Oct 2018, 20:45

moe joe
20:45 Thursday 11 October 2018 JST

モージョー。今週また日本語の時間やってなかった。勉強しなかった。

私の色々なプロジェクトは多すぎる。 でもどうしよう?やめたくないけど全部できない。

ただいま、バスで妻と帰ります。

早いじゃんバスが。  

昨日エクステンシブ・リーディングについて生徒に話ました。 それで子どもの英語の本を読んであげて、 みんなはほとんど分かりましたけど30分の1の言葉が分かりませんでした。

マイレベルの日本語を読みたいけどまだ完璧なレベルを見つけてない。

モージョーけど日本語の勉強を頑張ろう。

11 Oct 2018, 13:41

to do today
13:41 Thursday 11 October 2018 JST
  1. contact BH about MKP local site
  2. write MT3 entry
  3. go to SCC
  4. update Redmine for AB work done recently
  5. teach at SCC
  6. go to Akihabara
  7. teach in Akihabara
  8. go home
  9. eat
  10. Japanese homework
  11. Japanese lesson
  12. check emails from TY
  13. update MT3 site to have latest video on top page

11 Oct 2018, 13:38

too busy for me
13:38 Thursday 11 October 2018 JST

I did MT3 livestream today, but have not made time to add an episode.

I attended online men’s circle this morning, but was distracted with emails.

Kevin’s website is throwing memory errors, probably because old version of site needs upgrading. I contacted his provider about getting it upgraded.

I am on the train headed to SCC, but forgot to bring my tea cup so I probably have to use a paper cup (or go without tea).

10 Oct 2018, 18:29

working at work
18:29 Wednesday 10 October 2018 JST

No students in my lesson today so I am glad I brought my computer so I can do some work for AB. I am continuing with the Modernization of my Legacy PHP application based on the book described at http://mlaphp.com

Modernize Your Legacy PHP Application
Get your code under control
in a series of small, specific steps.

by Paul M. Jones

In addition to simplifying the code, it has given me a refresher on what I wrote!

09 Oct 2018, 23:25

productent
23:25 Tuesday 09 October 2018 JST

Today wasn’t as productive as I had planned, but I got some good stuff done.

4:30am meeting with Boysen, and should have a landing page for The Men’s Work soon.

8:00am IL lesson in which we talked about Tsukiji and 2020 Olympics http://the-japan-news.com/news/article/0004879769

came home to work on MT3, but ended up just sleeping

7:00pm Tokyo Men’s Circle https://tokyo.mypowercircle.org/

8:06pm someone killed themselves in Seijogakuenmae (a station along my train line)

9:30pm though trains were slow, got to ride from Yoyogi Uehara with Lin. In Yoyogi-Koen, we waited until the next train arrived, terminated, and had everyone come over to our train so we could go to Yoyogi Uehara.

11:30pm wrote this entry after arriving home and taking a shower.

07 Oct 2018, 07:10

learning PHP
07:10 Sunday 07 October 2018 JST

I have started going through Modernizing Legacy Applications in PHP for AB website, and now the database is loaded via an autoloader.

<?php

/**
 * This file is part of "Modernizing Legacy Applications in PHP".
 *
 * @copyright 2014-2016 Paul M. Jones <pmjones88@gmail.com>
 * @license http://opensource.org/licenses/bsd-license.php BSD
 */

/**
 * Autoloads classes.
 *
 */

namespace Mlaphp;

class Autoloader
{
    public function load($class)
    {
        // strip off any leading namespace separator from PHP 5.3
        $class = ltrim($class, '\\');

        // the eventual file path
        $subpath = '';

        // is there a PHP 5.3 namespace separator?
        $pos = strrpos($class, '\\');
        if ($pos !== false) {
            // convert namespace separators to directory separators
            $ns = substr($class, 0, $pos);
            $subpath = str_replace('\\', DIRECTORY_SEPARATOR, $ns)
                     . DIRECTORY_SEPARATOR;
            // remove the namespace portion from the final class name portion
            $class = substr($class, $pos + 1);
        }

        // convert underscores in the class name to directory separators
        $subpath .= str_replace('_', DIRECTORY_SEPARATOR, $class);

        // the path to our central class directory location
        $dir = dirname(__DIR__);

        // prefix with the central directory location and suffix with .php,
        // then require it.
        $file = $dir . DIRECTORY_SEPARATOR . $subpath . '.php';
        require $file;
    }
}

I had to tweak the file path for the database file from

classes/database/class.database.php

to

classes/Database/Database.php

And add namespace Database to it, but now it is loaded via the autoloader script above in alllll the places it is needed. Overall, I removed 75 lines of require_once('class.database.php')

05 Oct 2018, 19:53

met with Paul about The Men's Work
19:53 Friday 05 October 2018 JST

Exciting MKP Tokyo news!

I sent this to my online Integration Group.

I just got confirmation: I will be co-facilitating a 3-week online
MKP introduction called The Men's Work https://mkpusa.org/themenswork/
with Paul Newell, who is currently co-facilitating it in the US.

On Fridays, 7pm - 8:30pm (Japan time), November 3rd, 10th, and
17th, we will do this online training for men in Tokyo.

Once we run this 3 week series of meetings a couple of times, I
will create a new men's circle in Gotanda (Tokyo) on Fridays for
men who are interested.  Once those Gotanda men have sat in circle
for a few months, I will do a Mission Statement workshop with
them.

Once we have two circles humming along, I plan to invite an MKP
man from overseas to Japan to teach facilitation skills to men who
are interested.  My want is to get more and more circles started
in Japan so we can create a groundswell movement to have enough
energy to do NWTAs here in Japan.

05 Oct 2018, 12:11

more plans for work
12:11 Friday 05 October 2018 JST
I am glad the lesson worked well for you; I hope everyone else
enjoyed it!

Thank you for the notes and letting me know it went well.  Unless
there are any big problems, let's continue this style.  I think in
Part 1 we should just have one question, or have everyone choose
one question, like Zumi nearly did.  Next week I will ask you to
think of the question, so please think about one to ask.

After we answer your question in Part 1 next week, I will ask for
a volunteer to prepare a question for the following week.

See you soon!

授業がよかったから 良かったです。みんなも 好きだったら嬉しいです。 ノートをスキャンしてくれてありがとう。そして授業がよかったって教えてくれてありがとう。

問題がなかったら、このまま 続けましょう。授業のパート1で 一つだけの質問がいいです。それかズミさんみたいに みんなが一つの質問を選びましょう。

来週、質問をよろしくお願いします。

まゆみさんの質問を聞きたいです。

聞きたい質問を 考えてください

またね授業がよかたからよかったです。

みんなも好きだったら

05 Oct 2018, 08:27

refactor
08:27 Friday 05 October 2018 JST

I found a solution to all my work woes.

I just had an interesting thought about my computer job, which I
brought up in the meeting on Monday.  My website client is AB.

It is likely that I can find a company that can do the work I am
doing for less money, but it's not possible to secretly act as a
middle man and keep the money due to how payments are done now.

The value for me overall is to reduce the load of this job, which
taxes me physically and emotionally.

Value for AB is to have a real company (Engine Yard) doing the
tedious work I've been doing, and therefore if I die, AB isn't
fucked by losing all their server/website knowledge.

I'll have to do some research, but I can probably still do the fun
part of the job and leave the annoying part to Engine Yard.

Yay! Why didn’t I think of this before? I heard of them ages ago at an iOS meeting. If they can handle the server stuff, that would make my life sooo much easier.

So I looked up their website https://www.engineyard.com/

2018 oct 05 engine yard does ruby

Ruby????

Aw man!

I need someone to deal with PHP!

A couple days later, I found that someone is me.

I found Modernizing Legacy Applications in PHP shows how to go from spaghetti to modern framework including unit tests, without any downtime.

My code is not as bad as the code in the examples, which includes MySQL and HTML and CSS in the same file, but I definitely suffer from lack of tests, so rely on crossing my fingers and praying each time I deploy.


While writing this entry, I found I can wrap my app in Ruby Hooks to deploy it https://www.engineyard.com/blog/deploying-php-applications-on-engine-yard-a-how-to

https://web.archive.org/web/20181004234913/https://www.engineyard.com/blog/deploying-php-applications-on-engine-yard-a-how-to

I will clean up the code first, then see what’s up with outsourcing the server side.

Remindme! 2 years