Categories
iPhone app

2016 year end review

Reading Time: 2 minutes

This is the beginning of the 2017, and it’s also the customary review season for me. This weekend is a bit interesting as we got freezing rain on Friday (and I had to work from home on that day), also due to the fact about a month ago we had freezing rain on a Friday afternoon , the rush hour traffic just blew up. This time no one was taking the chance, from weatherman, to MODOT, to the city/county officials, to the business. Friday was pretty much closed, or work from home for many. It’s Monday (MLK day) today, looking back Friday is also the only bad weather day we had in this weekend: due to the low temperature the road is frozen in some cases, which made driving or walking a bit dangerous. But the situation was not as bad as in 16-Dec-2016. On that afternoon/evening, I heard two friends got into car accidents, and my neighbor who works for the same employer (normally 30 mins drive) as me, spent 5 hours on road.

Weather forecasting/treating road/on-call pager support
Sometime I felt this weather forecasting/MODOT treating the road is a bit like the on call pager duty I do. Both do not have a scientific or definite answer beforehand, but if one misses it, bad things can happen, system went down or people stuck in traffic. On the other hand, if one cried wolf and in the end the wolf did not come, people would second guess you.

I feel I became much more confident on my day job as this is also my 1st complete year (after 7 months I put in year 2015), mainly because I feel familiar with the things there, both technical and non-technical. At the same time, I feel the faster growth of both girls (now 6.5 and 2.5 years old respectively), and the time I spent with them is both precious and sometimes could be tense. I think ideally an indie like work/life may work out better (maybe a few years down the road).

I do understand this is not easy, and I saw some indies are working hard on this aspect, but just like most small business in the US are not making tons of money, most indie software devs are doing similar. So better have a bank account loaded before going solo 🙂

Is there too much emphasis on coding?
Launch code, hour of code, girls who code, girls in tech, etc. Interestingly enough my wife who is not a techie, decided to take the LC101 course from LaunchCode at local community college. Note St. Louis is where the LaunchCode started. She is pretty into git these days. I think from the diversity point of view, getting girls/women into coding/tech world is very exciting and in the long run will benefit the industry and society.

We signed up too many classes for Serenity
Serenity has 5 extra curriculum activities (note we did not count the after-school Chess or computer club class here): they are Children’s choir, ballet, piano, skating, and drawing. This is a bit too much.

Last but not least, I took the review idea initially from theSunsFinancialDiary and Kirby Turner (whitepeak software)

Categories
iPhone app

Apple Watch 2 first impression

Reading Time: 2 minutes

(Update 31-Jan-2019) I used the Apple watch for 2+ years now. Did have a replacement in Sept 2017 as the old watch just did not work (not charging, not responding). It’s a Nike version but the warranty is still honored by Apple. I brought it to local Apple store and was able to receive a replacement (not sure whether it’s new or refurbished) in a few days. I haven’t had major issues since then. Keep finger crossed and knock on the woods 🙂

(Original 08-Jan-2017) I decided to get Apple Watch last week and I have used it for a few days. The main reason for using Apple Watch was for consolidation. I have two iPhones (one work, one personal) and I have used two wearable devices recently: the Fitbit (from Charge to Charge HR), and the Martian Notifier. Both are good, but either has some weakness. The Fitbit Charge broke shortly after using for a year, they were nice to send me a refurb Charge HR as replacement. The issue with HR is there is a electro-magnet related pain induced by wearing that non-stop, also the battery lasts about 2 days from 5 days 6 months ago. So with Fitbit, I have used their app since Jan 2014, and their device June 2015, liked both their app and websites. But not their devices in terms of build quality and ergonomics.

Martian Notifier was good. Not much complaints. The reason I got it for work was due to the need I don’t want to miss work-related text messages (on-call pagers). It did its job. But I like to have a combined text message notifier and fitbit tracker. Apple Watch seemed fit this bill (no pun intended). I was fairly impressed by its build quality. And the apps for the most part. A few things I can recall:

1) During initial setup, I was a bit confused by the standard “unlock” message, finally I figure out I need to lock the iPhone, unlock it so that the apple watch will also be unlocked.

2) The Sleep tracking. It seems we are going back to the good old jawbone way “push a button before sleep”, “push another button after wakeup”. I did not realize this is not given thinking this is a $369+ device. I am already spoiled by Fitbit seamless sleep tracking. Since my Fitbit Charge is not totally broke, I think may use it combined with the “Sleep++” app.

3) The need of at least iPhone 6 for Apple Pay still applies here. Thought about pairing the watch with my own 5s and found the Apple Pay is not supported. I think this is one downside from Apple: they tend to support newer devices for more iPhone sales.

Categories
iPhone app

Source code control

Reading Time: < 1 minute

Or version control. My wife is taking a class at launchcode and she just started learn git, one of the most popular source code control systems. Git has a steep learn curve, in my opinion, but it’s getting popular, widely used and I think that’s the reason they picked it. But I think that could also be a frustration point as I saw some BAs (business analyst) really hated git when it was introduced at my former employer (mercy). It was a switch from SVN to git. For people never worked in software world, version control is also sometimes under appreciated. Although most people can understand the basic concept. Because if we use .001, or .old, .new etc, things can easily get out of control even for one person. I had my first hand experience when I was a grad student doing some coding for FEA software. Sometimes the operating cost of source control is quite high, I recall when I was with ugs, in the earlier days of perforce deployment, it took hours to refresh local repository. And once I did the dumb thing, I kicked off this hours long process twice, had to call my teammate in cypress (right next to Anaheim, the happiest place on the earth, at least for kids), for help. In some places, mostly small shops, I saw people not using source code control. Note I used the word people, not developers, because I believe developers use source control. Two main benefits of source control: 1) back up so that the cat does not eat the code; 2) time machine: we can go back to the good version or release version, so that we have a benchmark in which certain feature used to work 🙂

Categories
Featured

Remembering my middle school teacher 周国夫老师

Reading Time: < 1 minute

今晚在高中群里突然听到我的初中班主任数学老师,省劳动模范周国夫老师三年前已去世。下面的博客中有周老师的照片(著名的数学老师周国夫老师)。

我83年9月初中开始到镇海中学住宿读书,一个月回一次家。从某种意义上讲,周老师就是我们这些住宿生的父亲。我也受到周老师很多影响,尤其是学习(自学)方法和态度方面。他的数学课布置很多讲义(作业),他会讲解一些题,但主要是要自学。记得我们初一自学初二内容,以此类推。他有时又很大方,比如说数学课以后是英语考试,他说你们看英语吧。刚到镇中不久,有一次我发烧,有点严重,他和一些同学带我上医院,忙前忙后。想起来,就像现在我对我的小孩一样。

这里有一个关于周老师的简短介绍(2025-7-1: 这篇文章好像没有了)。

Categories
iPhone app

Macbook Pro Rentina late 2012 model battery cannot charge

Reading Time: < 1 minute

(01-31-2019 Update) So I got 2 more years out of the MacBook after the fix. Actually last year (March 2018) I made another mistake, I leaked water (water bottle leak) to the MacBook when I put it in a sports duffel. So had to go to Apple store to get it fixed again (I think it cost 200 or something).

(31-Dec-2016 Original)I had this issue on my 3.5 year old MacBook a few months ago. Googled and did the SMC reset as suggested in this article. Worked for a while but before Christmas the problem returned, and the SMC reset trick is no longer working. The symptom is it no longer charge after exhausting the battery. So I brought it to the local Apple store.

Last time (shortly before I bought this macbook), I had an issue with the work macbook air, and I brought it in Apple store. The fix was cheaper, about $230.xx something like that. At the time the symptom was I saw some spark at the MagSafe plug, and after that I could no longer charge. Maybe just a replacement of the MagSafe board at the time. This time they had to also replace the logic board. The cost is about $511. It took about a week (5 working days) to fix, I recall last time it was slightly faster. It could be due to the holiday (Christmas) season. I am still happy it got fixed though, as I did not back up all the data on the Macbook. Now I will be more careful.

A new (old gen) Macbook air probably costs starting $700 to $800 at this time, for comparison purpose.

Categories
iPhone app

Vagrant, Consul

Reading Time: < 1 minute

(Update 07-08-2018) Noticed this nice write up of hashicorp by redmonk.

(Original Oct 2016) The following is mostly notes for myself, when I followed the Consul get started guide (by Hashi corp).

Pre-requisite: vagrant
How I created a Vagrant instance on mac (or be more precise, Vagrant Cluster (github)). Note I installed the Virtual Box, and created the vagrantfile (the file is from the github as shown above) under a separate folder. In the folder where I have the vagrantfile, just type “vagrant up”, that brings up the vagrant (linux virtual) servers. This is a more convenient way compared to launch them from the Virual Box GUI (btw, the default user name and password are vagrant / vagrant, refer to the official Vagrant doc, go to “Default User Settings”).

Shutdown: I found neither “vagrant shutdown” nor “vagrant destroy” works for me. The only way worked is the GUI of the VirtualBox (show running instance, close the window, it will prompt).

Here is another slightly more advanced tutorial for Vagrant set up, in the end it mentioned how to set up Ph.P., Postgres etc.

I am interested in the Vault also. Since I am not familiar with Docker, I think this time around I would just do the Vault GSG on Vagrant or on Mac (last time around I was attempting to run before I can walk). I am interested in the security aspects of Vault.

An unrelated topic, also interesting to me, is the real time notification.

Categories
Fun iOS iPhone app

Fitbit is losing momentum

Reading Time: < 1 minute

Why I am saying that?

I am the only active person among my “Fitbit friends”. So I assume it could means a few things:
1) All my friends stopped wearing Fitbit;
2) All my friends did not sync (or their Fitbit could not sync, which I admit is a real problem for Fitbit);
3) All my friends got Apple watch (or something nicer, good for them 🙂

IMG_5651

The stock (NYSE:FIT) has been absolutely horrible YTD, or to be more exact since its IPO about 15 months ago. I am glad my trades worked out this year though 🙂

FIT_trades

I am speculating one reason is Apple Watch is taking off. Although I tried to stay away from that $300+ “need to be charged daily, always on” gadget, it seems it’s the inevitable with the so called “series 2”. I feel the nike+ version with the swimming is the way to go. Now if I could offload a few items on ebay to make the $300 bucks…

Categories
advice and tips Fun kids Uncategorized

Transition to first grade

Reading Time: < 1 minute

Serenity started 1st grade this fall. Same school. I have some ideas on first grade, mostly around the homework, “more serious school” vs. the kindergarten which has more play time. I learned from fellow parents last year when they talked about it after MFS (I volunteered there).

Seeing is believing. Serenity now has been in 1st grade for over a month. Some impressions:
1) More work, either schoolwork or the work we gave her.

2) More seriousness, definitely, she got a tardy slip (her first) because we were late in the morning, we were probably late for 2 or 3 minutes (but still late, no excuse here), as I saw we were the only car in the car pool lane which is the only time like this.

3) More pressure, or expectations, besides on time, they were expected to listen more carefully when the teacher talks, and follow directions quickly, etc.

Those are my initial impressions, after a bit over a month school.

Categories
Fun

What kind of person I like my daughters to become

Reading Time: < 1 minute

1) Confident, independent (not blindly follow other or influenced by others opinion), strong (not easily quit, grit, or perseverance) ;

2) Empathy, humility, know how to wear other people’s shoes and feel other people’s pain (同情心);

3) 不卑不亢(english translation? It seems bullet 1 covers this too. List it here as this is my father taught me, likely from his own life experience.);

4) Grounded, down to earth. Don’t take self too seriously, have a sense of humor. 平易近人, 幽默感。

Categories
iPhone app Software development Technology

How to root T-mobile Samsung Galaxy S3 SGH-T999

Reading Time: 2 minutes

Did my first root of Android phone. I had two Android phones before, but I never rooted it. This time I had a need for root to add the Chinese language to a Samsung Galaxy S3. The specific model is T-mobile SGH-T999 (shown in the Download or Recovery mode, but the model number on the settings says AT&T model number, which caused some issue for me later down the road).

The main reason for doing this is to add Chinese language support. It looks like by reading the article we can only get it work by rooting. I also looked at another article on the language support that suggested both MoreLocale2 and Language Enabler. Tried MoreLocale2 first but it seems needing root. So I started looked at the root tutorial. Because of the “wrong” model number, initially I thought this is an at&t device (model number at&t samsung galaxy s3 i9300, and here is an tutorial for that). Note the two tutorials are similar (t-mobile root tutorial here), the main difference is the at&t one is more verbose, and it has a link to the mod5 file for the at&t model. The odin program did not work for me initially because I was using the latter mod5 file (mismatch between hardware and mod5).

After that mistake the device was stuck in the Download mode (link to get into the Download mode), and could not reboot. I googled I have to download a Samsung software to get it restored. There were other hiccup too, one being the device cannot connect to my Windows 7 laptop (a bit old HP elite book), even after I install the driver. Had to reboot to make sure they connect. Back to topic, I was able to root after I switched to the mod5 file for t-mobile device. And it worked like a charm. After that I installed the rootCheck and SuperSu app from the Play store.

After the root, reboot I installed the Language Enabler app by Wanam from Google Play store (again refer to the language article above).

Final impression: the Samsung s3 is a relatively old device by today’s standard, but it works as a basic smartphone and adding the Chinese language to it, in my specific case, could potentially save an iPhone purchase (SE starts at about $400 in the states). It just takes some work to get it work, from enabling the developer mode/USB debugging on the device, to the odin software root.

Happy rooting 🙂