Categories
advice and tips Fun

Bought couple new pair of shoes

Reading Time: 2 minutes

(Update 01-14-2016) Asics@eBay Offers $75 Off $100 (at checkout). You can Mix and Match to reach $100 in total for your orders. Shipping is free. You can use ebates to get some cash back; you don’t have to use dealsea

(Original 01-01-2016) I used to work at a place near Laumeier Sculpture park. It has a very good trail 🙂 New year, new shoes.

Saucony Men’s Peregrine 5 Trail Running Shoe, Amazon is running a 50% off promotion today. Just ordered today (Amazon Jan 1st one day sale is over, Saucony website has sale of $82, vs. MSRP $110, $82 is compared to Amazon current price of $100). Btw, Amazon does an amazing shipping speed these days, I ordered the shoes on Jan 1st (Friday), and I got it on Jan 3rd Sunday morning. I know it’s Prime shipping (yes they reply on USPS for local delivery), but still much faster than I expected.

Saucony Men's Peregrine 5 Trailing Running Shoe

Merrell Moab Rover Waterproof, I got it when they have a $50 off Visa Checkout promo (not sure if this is still alive, but showbuy usually has some discount code). There is also a 20% off (Amex select offer) promo going on.

Merrell Moab Rover Waterproof

My take: I have timberland shoes. They are decent. But Merrell and Saucony upped one notch in their specific field: hiking for Merrell and running for Saucony. I also had Asics running shoes in the past, their build quality is just not as good.

It’s new year, and it’s time to hit trails or treadmills 🙂

Categories
advice and tips Fun

Back from first Disneyland trip

Reading Time: 3 minutes

for the kids. This is my second trip, and the first for my wife and two kids (5 and 1 year old). And we went there during its busiest time (Dec 23/24).

Some random thoughts:
1) I started to appreciate the quality, brand and customer service of Disneyland (and California Adventure) show, ride and parade. Note this is my second trip to Disneyland, the previous visit was 15 years ago, and it was a group bus tour so we had to leave at around 5 or 6pm (no time for the evening show or parade).

A small example is they have this job title of “stroller keeper”, basically there are usually a lot of strollers outside some popular rides, people come and go. The stroller keepers make sure the strollers are lined up, and the area is clean. Cannot think of any other places that have people specialized in strollers. Btw, for those who wish to rent a stroller, it’s at the park entrance (near Disneyland side), and one can pay either at the ticket counter or at the spot.

2) Scale of Southern California city: I read the hotel we stayed Hilton Anaheim is the largest hotel in southern california. And today I read from Wikipedia Anaheim has population of over 300,000, which will 6 times of Chesterfield (one of the largest suburban city in St. Louis area) if we compare two places. Not to mention Disneyland put Anaheim on the map (for that matter, maybe Los Angeles as well).

Some tips:
1) There are very little discount for 2 day tickets. I bought it form aRes, it gives about 1% off 🙂 The discount becomes more meaningful for 3 days or more tickets.

2) Stay and shuttle bus to Disneyland: some hotels offer free shuttle bus, not all. The hotel we stayed (Hilton Anaheim) does not offer hotel shuttle, but there is another bus (ART, stands for Anaheim Resorts Transit) which is fairly cheap ($5 for adult one day). Note many hotels are in walk distance (e.g., Hilton is about 25 mins’ walk). I did make a mistake by taking other hotel’s shuttle one night, and the driver graciously dropped us off near our hotel.

Breakfast: looking back I think I should probably book a place that offers free continental breakfast, e.g., SpringHills Suites). Hilton Anaheim does not have free breakfast for everyone, it appears they have it for HHonors Dimond and Gold members, I am just silver level. Note breakfast becomes important because it’s more expensive in the park, and for a lot of people, they don’t have a lot time eating well inside the park.

3) Food and meal: the food and drink inside in the park could be a bit expensive. There are workarounds, e.g., some people bring in some water or snacks. I think their official policy is no outside food or drink. But as long as people are reasonable, the staffs are the checkin desks are reasonable too.

4) Rides suitable for the young kids: there are many rides that are suitable for young kids. We did not do the famous rides such as California Screamin’, Soarin’ over California, “Splash Mountain”, “Indiana Jones”, “Star War Tours”, “HyperSpace Mountain”.

(Update 01-01-2016) Came across this article about Disneyland on Yahoo travel. Talking about the stress brought to parents in Disneyland, I recall one evening at California Adventure, I was so tired and by accident my stroller bumped into another stroller (and a lady was feeding a baby), and she was very upset. Not to mention, with all the travel, junk food, we all got sick after coming back from the trip. I think parents (grown-ups) really need to take a deep breath, and put things in perspective, not trying to complete all the rides, just try to relax and have a good time. In one sense, this is a bit like buffet, one really does not need to get stuffed (to get money worth), and then feel really comfortable. But human psychology usually does not work this way.

Categories
advice and tips Fun

Christmas thoughts: gift giving

Reading Time: 2 minutes

It’s that time of the year again: a lot of shopping or sales, more online than offline, givings in kids school and at work place, bells outside local Schnucks, gift cards, Christmas trees and decrorations, happy holidays or merry Christmas, red cups or white cups. I know I know I won’t go there. 

Gift giving is always fun, as I get older (hopefully wiser too 🙂 I appreciate more giving than receiving. Actually I barely receive anything 🙂 That is fine. I have pretty much what I need. I have a Toyota Camry, that’s sufficient. Although I want a BMW. See I am applying my daughter’s school lesson here 🙂 

One interesting thing I noticed the other day is at my daughter’s school, they are doing a socks drive for the homeless. And they put an art work saying “donate socks for the poor”. I know I know that’s a poor choice of word, the right word should be “less fortunate”. But I will let go this one, kids have good intentions and they are still learning 🙂

Another interesting thing is sometimes people strongly hinted for gifts. That’s ok as long as someone does a good job, or I feel not forced to give. I remember one time (not holiday season) a teenager asked for money outside Schnucks, I have one dollar, and she asked for more 🙁 

I realized tip or gift is a meaningful amount of people’s income in Christmas season more than 10 years ago. A coworker told me how much he gave tips to bartender he usually goes to. A former gymnastics teacher told me about all the gift cards he received and the feeling of being appreciated. That’s the good dynamics I like to see when giving gifts. 

Gift cards seems getting popular these days. It does give more flexibility for recipient to avoid gift receipt, hassle of return to store etc. My problem with the gift card is it’s hard to track them, or locate them. Like today, I was going to use my target e-gift card. It took me 10, 15 mins to locate the URL on iPhone. It’s under the menu button of the mobile website. I also have a google docs to put in my unused gift cards. $10 dominos, $15 buffalo chicken wing. A lot of effort. I also flag the email message that contains the card. I wish eventual I can have it in one place. Maybe it’s an iPhone or Apple Watch app idea? Let’s see 🙂

Merry Christmas (or happy holidays) everyone! 

Categories
advice and tips finance

Booked air ticket to China using United miles and Chase UR points: some tips

Reading Time: 3 minutes

I used the UA miles for my own ticket, it’s not UA saver economy all the way, but I felt it’s ok. The full ticket price was about $1100, and I spent 115000 miles (80k + 35k). Since I was short for about 1200 miles, initially I was worried shell out $75 for those miles, but my Chase Ultimate Rewards (UR) points came to rescue, I did 2000 miles transfer, and it completed the transfer instantly.

Some tips looking for mileage ticket
Initially I thought all the tickets were out as I searched a few months ago, and could not find any for the date I wanted. This time when I search, it showed me the ticket was available for Tuesday instead of Saturday. Since I also need to buy tickets for my wife/kid, I checked the ticket price on Expedia too (United website was not always working). And I found a ticket/schedule could work in both cases. The only downside is the start time was a bit early (5am), but it’s still manageable. So I did all 3 purchase in a hurry, and by doing that I left out the “lap child” my younger daughter.

Buy award ticket for the right person
Today when I tried to add her, since I only have an award ticket, I could not. And probably due to I bought my wife’s ticket via Expedia, it took almost 2 hours to add my younger daughter. So lesson learned here, next time I should use award ticket for my older daughter. Another reason is the miles accumulated will be more meaningful for me instead of her (I could accumulate miles by flying the China round trip). But anyway, I am going to get Frequent Flyer number for my older daughter, since she is starting travel with us. Actually next week we are travelling to Disneyland, so she will earn some miles in Southwest.

Chase Sapphire with Ultimate Rewards
BTW, if you are interested in getting Chase UR points, it has 50,000 points promotion as of now. I’d appreciate if you could use my referral. More details below.

INVITE FRIENDS TO EXPERIENCE CHASE SAPPHIRE PREFERRED® …
RECEIVE 5,000 BONUS POINTS

FOR EACH FRIEND
who gets and uses the card, up to 50,000 bonus points
Let your friends experience the exceptional rewards and service you enjoy by recommending Sapphire Preferred. They’ll get a welcome offer.

Here’s how it works:
1. INVITE YOUR FRIENDS.
You can invite as many friends as you want by February 5, 2016.1
2. SHARE THE REWARDS.
Each friend will receive an offer for 50,000 bonus points after they spend $4,000 on purchases in the first 3 months from account opening.
3. REWARD YOURSELF.
Receive up to 50,000 bonus points. You’ll get 5,000 bonus points for each friend – up to ten friends – who gets and uses their card.

Here is the ultimate plug from me, if you use my referral and I receive 5,000 points, I will split the bonus with you, via a $25 Amazon GC or other GC of your choice (email delivery only). Sent email to minjie.xu@gmail.com to get started.

Categories
Software development Technology

Got some tech toys for my daughter 

Reading Time: 2 minutes

I thought this problem for a while. Sometimes I heard people complained companies like Lego discriminate: their toys are more for boys than girls, so Lego came up this Lego friends series which is geared more toward girl, as they ranges from bakeries, beach house, to rain forest rescue, and they have a lot girl figures. 

I think I fell into this trap too. I think some of the tech toys can be helpful and stimulate my daughter’s interest on STEM, but I did not follow through. She is 5 and will be 6 in a few months. So recently I did something different, I bought a quad copter (while she cannot play it, it could stimulate her interest), and the snap circuits 100. I can still sense her natural tendency is still social science, as I saw that’s her favorite in brain pop Jr. But I will give it some time and hopefully she will fall in love with IXL too 🙂

Note: brain pop jr. And IXL are 2 kids education websites. 

Another related topic is the “hour of code” initiative, I feel the awareness of coding or programming is reach all time high in school these days. Still remember my first computer program in basic language, when I was in middle school (about 13 or 14). Of course now we have so much wonderful material and resources such as Kahn academy, raspberry pi etc. It’s much more fun and hopefully can be integrated into science and math curriculum as well. Personally I think that’s more fun than standardized tests. Don’t get me wrong, I think fundamental training is still important, but creative work or education are also important. This takes time and effort, I am hoping more stakeholders (educators and parents) can buy into this in the future 🙂

Refer to Scott Hanselman’s blog post “The 2015 Christmas List of Best STEM Toys for your little nerds and nerdettes” here. Btw, I also got the Snap Circuit SC-300 for my nieces (10 and 8 years old).

Categories
Fun kids

Timing

Reading Time: < 1 minute

Serenity has 2 birthday party invitation today. Because we already agreed going to the first one, we cannot back out although serenity told us she wanted going to the second. She even says she likes gymnastics now. When did that happen? Last I recall I had to drag her to the gymnastics class, not literally, but her fear on the beam was real. 

Things change as time goes though. That fear on gymnastics was 2 years ago. She may have overcome this now. Another example is I saw from kids math test. I volunteered at this program called math facts scholars. One thing I noticed, is 1st grade kid usually does the addition/ subtraction more proficient than kindtergardeners. It’s not across board, as I saw some K kids do very well too. But I can sense as kids progress in school, they just feel more confident on math and numbers. Again timing is important. Sometimes I was thinking is it worth to make K kids struggle while if we wait 6 month or 1 year, she/he will do it with ease? How about learning piano? Or ice skate? Or swim? I am just thinking out loud. 

Categories
Software development

Docker and Vault: a preliminary tutorial

Reading Time: < 1 minute

(Update 01-22-2019) Managing your Database Secrets with Vault

Manage Your MySQL Database Credentials with Vault

Last but not least, the GSG for Vault (I recall I went through once last time, on my Mac).

(Original 11-19-2015) We most likely heard about Docker, the ultimate container. Recently I followed the GSG on the official website to get a feel for it. Vault is a open source project supported by Hashi Corp (famous for Vagrant, Consul, and other open source projects). I came across this docker vault image created by kintoandar (Joel Bastos) via his blog post Vault: PKI Made Easy. Since I was new to both technologies (I did followed the docker GSG on my Mac), Joel’s blog is a bit advanced for me, here are some of the steps I did to make the basic vault commands work.

I will update this blog post as I follow along the offical Vault GSG and Joel’s blog post.

Start the docker terminal, click the docker.app on Mac, it should lanuch the terminal.


docker pull kintoandar/hashicorp-vault

docker run -d -p 8300:8300 kintoandar/hashicorp-vault

docker help

Minjies-MacBook-Pro:sandbox minjiexu$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c8b183b9e0ed kintoandar/hashicorp-vault “/bin/vault server -c” About an hour ago Up About an hour 0.0.0.0:8300->8300/tcp admiring_jang

Minjies-MacBook-Pro:sandbox minjiexu$ docker logs c8b183b9e0ed (this is the container_id above)

Minjies-MacBook-Pro:sandbox minjiexu$ docker inspect c8b183b9e0ed

Minjies-MacBook-Pro:sandbox minjiexu$ docker exec c8b183b9e0ed vault status -address http://172.17.0.2:8300 (one line)

Sealed: false
Key Shares: 1
Key Threshold: 1
Unseal Progress: 0

High-Availability Enabled: false

Categories
advice and tips

Move WordPress from Share Hosting to DigitalOcean

Reading Time: 4 minutes

(Original 11-12-2015)
I decided to give cloud server another try, after my failed attempt to move WordPress from shared hosting to Amazon AWS last year. This time I go with DigitalOcean as I heard good things from my friend Don (who made this cool makeyourcase site and api).

Decision choosing Apache or Nginx
I chose Nginx over Apache due to 2 reasons:
1) I had fairly bad experience running Apache web server on Amazon tc2 micro instance last year. It was fighting for resources with MySQL server;
2) I saw Nginx getting popular recently. And it must have its own strength (performance, scale better). Did read Apache vs Nginx: Practical Considerations.

Some tips and tricks
1) Need to fix the extension for php in nginx setting. Follow this instruction will help, for php the key is the location setting below:

location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

2) I found again I could not update the plugins after the move, found again this is due to file permission problem. After I grant the correct file permission to wp-content folder, it appears update plugin fine (kebo twitter plugin). Actually the initial problem was the twitter feed was not showing, which leads me to the plugin update. In the process I also changed the twitter feed.

3) A related problem is I went to this maintenance page, after I started updating a bunch of plugins. It appears stopped at the “related post” plugin.

Briefly unavailable for scheduled maintenance. Check back in a minute.

The fix was to delete the .maintenance file in the website root folder (refer to this thread at wordpress site)

Useful links
WordPress
How To Install WordPress with Nginx on Ubuntu 14.04

How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 14.04

Virtual host
How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 14.04 LTS

Host name (DNS)
How To Set Up a Host Name with DigitalOcean

Migrate
How To Migrate WordPress from Shared Hosting to a Cloud Server with Zero Downtime

Ubuntu initial setup
Initial Server Setup with Ubuntu 14.04

Additional Recommended Steps for New Ubuntu 14.04 Servers (think security 🙂

How To Add Swap on Ubuntu 12.04

In general, I think those articles/tutorials above made the job of newbie’s much easier. For me personally I have some UNIX/Linux/Mac experience (and concept), but I’ve never done system admin job full time. Those instructions made my life much easier.

Overall impression 
I spent about total 3 hours to spin up the Linux server, MySQL and nginx web servers, install and set up WordPress, and move site from shared hosting to droplet. The next step is to see the reliability of this setup, if everything is ok, I plan to move stlplace.com to here.

(Update 12-02-2015)
Started working on moving stlplace.com from shared hosting to droplet. That site is about 10 times bigger because it has my 10 years blogs. Encountered a few problems shown below. Was able to overcome so far. It’s up and running and let’s see if the droplet will hold up 🙂

1) Moving of mysql database: from my past experience, direct export via phpmysqladmin won’t work. I tried command line approach again. Note I tried the .gz file format as well, but it failed during import (may due to my data problem in the old mysql db). But regular .sql importing worked.

2) The permanent links stopped working, after looking at the php setting for nginx, file (folder) permission, finally I was able to compare this with uudaddy.com, and found I miss this line for /etc/nginx/sites-available/stlplace.com :
try_files $uri $uri/ /index.php?q=$uri&$args;

After adding this line, the permanent links worked.

The remaining task is to make Chinese characters show properly. I encountered this problem last time when moving it to Amazon AWS. Luckily I found this life saver from wordpress.org (I kind of sensed it as I read from the old wp-config.php, I something much simpler, it does not have the following 2 lines):
======
Not encoding – collation.
In the newer version of WP the config file has two new lines:

define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);
If it is an upgrade, delete those two lines!
======

Last but not least, I found I could not update the plugin again after installation. After much try and error, trying to emualte uudaddy.com setup (which works), I found this article on digitalOcean about setup wordpress FTP user/keys for update. I followed along and was able to made it work as desired.

(Update 12-03-2015) I also moved a small wordpress site (happymandarin) from shared hosting to droplet. The one obstacle here was I manually changed the ‘siteurl’ and ‘home’ of wp_options table from happymandarin.stlplace.com (this is a legacy of shared hosting feature) to www.stlplace.com/happymandarin. Btw, this is my wife’s site.

(Update: sometime in the early part of 2019, likely between Apr to June) I updated the ubuntu from 14 to 16, in the process I also upgraded the PhP version. Had to do a small fix (change) to make sure the php continues to work on nginx side.

(Update 03-14-2020 Pi Day) I moved the uudaddy.com wordpress site under stlplace.com/uudaddy. There was some small technical challenges, but the steps are similar to the one above. I also found out the wordpress update (one click update) prompt me to the annoying ftp credentials. It seems the digital ocean article above (2013) no longer works. I changed the folder ownership from wp-user:wp-user to www-data:www-data, as well as adding this line define(‘FTP_METHOD’, ‘direct’ ); to wp-config.php , now the one click update seems to work. Not sure if it will have any other issues for example, upload a picture in wordpress etc. I will update as time goes.

Btw, the reason I moved uudaddy.com (not renewing the domain) is mainly for consolidation. The godaddy.com asks for $18 for domain per year. It seems to me it’s a bit overpriced. My stlplace.com domain expires in 2022. That’s the only dependency I have for godaddy. For some tech people, it seems Godaddy does not have high reputation.

Also, how to get free ssl cert.

Categories
iPhone app

Notifications

Reading Time: 4 minutes(Update 11-19-2015) It appears Facebook started to spam me. It sent an email saying I got a new message, which is not true. It actually sent not just one, but two messages. Also this is the second week of my pager duty. This afternoon Gas Buddy sent me an alert, and it got to my Martian Notifier. The gas price went up at least 20 cents, useful notifications, but not timingly because I don’t want it confused with the real page (text message or SMS).

(Original 10-19-2015) Just survived first week of pager duty (on-call): two sleep deprived nights, and some tense times. On the first night, around 2 am in the morning, the phone rang (paging text message came). Good thing is after validation it seems nothing horrible happened. I tried to go back to sleep, but I could not. One thing I was worried is what if I slept through the page SMS (text message) from the phone. Made sure the ring volume is maximized. I did think about a smartwatch or a wristband (Fitbit like) before starting page duty. Was debating between Apple Watch (about $400) and Fitbit Surge (about $250). Note I already have Fitbit Charge, and I don’t want to have another addictive device like iPhone (Apple Watch), plus the cost associated with it. So I did a little google and found this Martian Notifier Watch. And I ordered it via Amazon immediately when I could not feel asleep. It arrived on Wednesday and I made it work quickly: basically I updated its firmware to the latest via MacBook.

Then I saw something interesting happened: it vibrates not only when a message arrives; but also when I started driving to work or drive my daughter to ice rink/COCA, and when I complete an Apple pay transaction. Of course I know the notification is from iPhone and I went ahead and turned them off yesterday. So today is basically quite because I handed off pager duty this morning, and I turned off the two main notifications on iPhone. The first one is interesting, because it will say how long it takes to work or some other places. So apparently Apple is collecting some information about my behavior (where I go for work, what’s my weekend routine look like). One can say iPhone get a bit smarter (artificial intelligence), or put it another way, Apple is getting sneaky with iOS 9.

Back to the main topic, how much notifications do I really want? I recall when I got my first Blackberry, and have gmail installed on it. I was still excited about the device and the red flash comes with a notification (e.g., a meeting is starting in 5 minutes). So I turned on the email notification. Quickly I found this is excessive, because it will flash very often. So I turned it off. Similar goes to the badge (phone, iOS) notification comes with the Slack app. Once I got distracted, when I got home, I paid attention to that Slack notification, and I left my one year old daughter in the car for a minute and two.

We are living in a post smartphone, smart watch/wrist band world. We increasingly pay attention to the notifications from those devices, while at the same time, potentially ignore other important notifications from real people, both at workplace and home. Attention span becomes shorter and shorter at workplace too, with the instant messaging and the “high importance” emails. On one hand they are notifications, on the other hand they are distractors. Ultimately it’s up to us to decide what is truly important. Get the spam call from telemarketer who notify us “you win a lottery” or “do you want a home security system”, or just turn off all the non-sense.

(Update 11-08-2015) Some friends suggested mi band (or mi 2 band), which is much cheaper (about $16), and it also has those notifications capability. I have not tried and am not sure about the reliability of those. I noticed on my Fitbit Charge, after a while (app or firmware update), and previously paired notifications between my Fire Phone and Charge needs to be re-done. In this sense I feel good about the Martian Notifier, because so far (3 weeks in) I haven’t seen a problem.

Martian Notifier smart watch

Also I looked a bit more into the iOS notifications. Note all the Martian notifier notifications are supported by the master device, in my case iPhone 6. I mentioned earlier iOS seems guessed my routines and intentions well both in weekdays and weekends. For example, we stopped by Starbucks at Olivette on Sunday afternoon when we done with ballet class at coca (u city). The Martian notifier aka iPhone will say 8 minutes to Olivette as soon as I start the car at coca. Similar for the ice skate classes on Saturday. I think I will leave it on on none pager duty days, because I don’t want it to be confused with work related pager. 

Read also About Notifications on iPhone, iPad, and iPod touch (by Apple)

Categories
Business iPhone app

Why Wal-Mart is losing to Amazon

Reading Time: 2 minutesJust look at this smart watch on Amazon. Can you believe one can get a smartwatch that basically has the functions of a $100+ pebble watch, and sell for $12.80 at Amazon? We know stuff at Wal-Mart are made in China. How about this watch? I bet it’s made in China too, not only that, maybe sold by a Chinese person (or company) too. This is amazing, thinking about the king of global logistics/trade Wal-Mart increasingly lose out to Amazon, for that matter, that person may bought this from Alibaba (Taobao) in China.

LEMFO Bluetooth Smart Watch

On a personal level, I felt I go to Wal-Mart less, because I have other alternatives, Aldi, Targets are good ones. Costco is a more expensive choice. I do sometimes shop at WalMart.com, and pick up at store. The free shipping is nice, but the wait at their counter to pick up things is not. Amazon got rid of that hassle.