The Crowd Has Spoken

Democracy has entered into an interesting experiment. The frustrated irrational populace of the United States of America influenced by a temperamental candidate, Donald Trump,  have their say tonight and will have their say for four years. Republican (may or may not be Trump’s) agenda will rule the day. One thing is for sure volatility and more surprises are on the horizon now. Unfortunately this is not just a US affair, as last night’s election result will impact the whole world.

The unrestricted consumption of free flowing information of any kind from ubiquitous media, universally accessible by a temperamental and frustrated crowd is a really bad formula. This gives the saying, “The Wisdom of the Crowd”, a whole new interpretation. Perhaps in hindsight this is the most optimal solution, but it is certainly not immediately evident.

I am thinking more and more that perhaps a meritocratic autocracy, China being the closest, is a better system for the common soul, may or may not be for the extreme rich or the poor. Of course no system is perfect, so we’ll have to be patient with the evolutionary development here.

It does raise the question whether Hong Kong’s pursuit of universal suffrage is a rational one or not. Perhaps what the people of Hong Kong have now is better than a democratic system driven by divisive popularity, independence movements and the like. Something to consider.

Obama was right. The sun did rise up today, but this inevitable event is largely unrelated to our collective well being. This is a movie that many of us would like to avoid watching, but we must now soldier through, and see what the elected wisdom has installed for all of us.

Updated 2016-11-10: Removed reference of Hitler being elected, because Hitler was not elected, but appointed upon the death of Paul Von Hindenburg who was elected.

Thank you Gigabyte and Western Digital

This morning I upgraded my media server. The server was running on a seven years old motherboard, Gigabyte GA-M61PME-S2P, and an AMD Athlon II X2 245 processor. The hard drive is the oldest, a Western Digital WDC WD800JB-00JJ 80GB hard drive that was released back in 2007. This makes the drive 9 years old! At the time of this update, all systems were nominal and operating without issues. Running Ubuntu 16.04.1 LTS (Xenial Xerus), next to my iMac, it was the lowest maintenance box I’ve ever put together.

The real reason for the upgrade is for me to reduce the power footprint of a box that is effectively running 7×24. Even when it was idling, the old components where clocking in at 100+ W of power usage.

I decided to replace the motherboard and cpu with an ASRock AM1H-ITX and a system on a chip AMD Athlon 5350 APU. I was able to get the system down to 55W. I also replaced the old WD800JB with a Seagate BarraCuda 7200.10 ST3500630AS 500GB hard drive, along with the existing 4 WD Green EZRX hard drives. A total of 5 traditional mechanical hard drives. Along with new Kingston HyperX Fury Black 8GB memory, this entire upgrade cost less than $220 CAD with taxes included.

I want to shoutout to Clonezilla. What an amazing job they did in creating a super simple piece of software to clone drives and partitions. Of course Linux is just so wonderful to work with. After changing the CPU and Motherboard, the original Ubuntu installation boot up and run without any major issues. The only wrinkle I had was the ethernet port that came with the new motherboard had a new logical name (enp3s0 vs eth0). Luckily, I know how to fix that. My LVM volume assembled without a hitch. Everything is now running fine with the new hardware and configuration.

My next step in the coming months is to shop for a 500GB SSD. Perhaps I can find one during Cyber Monday or Black Friday sales. This should further reduce my power footprint and also increase my performance.

Student Affirmation

img_0080During the school’s BBQ evening, one of my son’s teacher introduced us to their class morning ritual. A recital of an affirmation. I thought the affirmation was
wonderful and really serves as a reminder to all the kids that we can all equally be part of something great. All we need to do is try and give it our best.

The teacher got hold of me and had a great idea of putting a montage of a video having different kids from the same class speaking parts of the affirmation. I thought this was a great idea. The idea intrigued me so much that I drafted my two boys and put an experimental video together.

The creation of the video was much easier than I thought. The whole process took about 15 minutes of taping, followed by about 30 minutes of editing with iMovie. The result was also better than I expected. The entire production was from my iPhone 7 and my iMac.

Since we didn’t remember the statements, I am certain the viewer will notice that we are reading from a cheat sheet. We needed the cue sheet to be higher so that we look like we are looking at the camera. I’m sure the version with the students will be much better. Let me know what you think!

Basement Transition from Halogen to LED

I love Amazon Prime. You’ll see why later.

Old halogen light with screw on base
Old halogen light with screw on base

Our basement were filled with these old Halogen MR16 pot lights that each took up 50W each! I had ten of them, so this ends up to be half a kWh. This means at an average rate of $0.13 / kWh, I’m burning about a quarter every two hours. This may not seem much in the beginning, but it adds up. I’ll let you do the math for a month and a year.

I went to Amazon and found an LED equivalent called PAR16, and found them at Can Lighting Inc. They had a package of ten, so I ordered them. With Amazon Prime, they arrived the day after, which was yesterday, with free shipping.

Now instead of 50W each they are only burning 6W each, 12% of the original cost.

I also learned that the number after MR or PAR is the width of bulb in 1/8 of an inch, so 16 is 2 inches or approximately 50 cm. The screw on base is called E26, instead of the small two prongs called Gu10. Very confusing!

AI & Our Future Generations

When I came into the workforce in the early 90’s, any career connected to the computer was hot. The Internet was at its infancy. Any two or more (often just two) computers connected was called a network, which was a huge deal. Believe it or not email was the killer app. The World Wide Web was not invented yet, and when it came into the scene, finding a photo on a web page was a big deal.

My young and arrogant mind was extremely happy with myself, since I was all ready to take on the world with an engineering degree specializing in computers. It was a fearless time. We called the shots, not the employers. Our salaries increase astronomically, often with accompanying perks. We could do no wrong, because we were in demand.

I remember reading an article about our company’s solution. The solution was installed at a food and beverage manufacturer, who recently announced a significant layoff caused by the application of our software. Our customer was happy, because we saved them a tremendous amount of costs. I thought that anyone who picked a career in a job involving repetitive tasks will be in trouble. Cashiers, banking tellers, and warehouse pickers are a few that comes to mind.

We were all too eager to implement algorithms and solutions to turn repeatable tasks into optimal applications running on computers. We as a profession were clear and present danger to people’s livelihood who were dependent on honest jobs that are replaceable by robotics, advance supply chains, automated warehouses, or just simply better data visibility and communication. On reflection, I was / am part of a group that is undermining the economic value of a human being in a capitalist economy. People that are displaced are forced to upgrade and migrate their skills to other areas that are still in demand.

With artificial intelligence (AI) and machine learning coming into the consumer and business market in a big way, I am led to believe that the next set of jobs, jobs requiring judgement and decision making are now potentially replaceable by AI technology. Even software developer jobs may be under threat, when you have technologies like Viv that fulfills a human vocal request by manufacturing a custom program. I fear that replacement of traditional professions like lawyers and doctors are not too far away when IBM Watson can now perform medical diagnosis. How will these displaced professionals upgrade their skills?

In today’s news, one can frequently find mentions of self driving cars. How they are on the cusp of mass market availability and adoption. Companies like Tesla, Apple, and Uber are all either actively implementing production quality solutions or developing them. Imagine all the UPS, Fedex, freight truck and taxi drivers that will be displaced. The disruption does not stop there. If the technology is as successful as advocates tout it to be, then accident rates will drop. The transition from human to driverless solutions can translate to a large decline in automotive body shop business, and potential insurance revenue impact.

You can make arguments that displaced drivers will find other types of work, but I fear that under the current, exponential improvement of AI technology, the total some of human demand in the economy will continue to diminish, because AI will be so good that you will be hard pressed to find a job that AI cannot perform. So whenever you have an over supply of humans and a dwindling demand of their usability, you get erosion of the economic value of human beings.

So what’s wrong with this picture? Is it not good that AI capable machines pamper us and do all the hard work and thinking?

Assuming that we continue to function in a market based society, my immediate concern is, how does the next generation make their income when their economic value is eroded to the point where there may not be any jobs left. Well, I suppose there are jobs that involve creativity and innovation, such as artists, and musicians. From another hopeful perspective, this may resolve itself since providers, even if they are machine run, must find matching buyers with enough spending power to buy their products and services.

My second concern is, as a species, how do we continue to excel in our own knowledge and achievements, when AI can solve most of our problems. You can probably find some evidence of this today, with the usage of Google and other specialized search engines. I am not sure that the current education system are raising deep thinkers complemented by these new AI based tools, or more academically hampered ones because of the same tools.

Lastly, there is the Matrix or Terminator scenario, but the difference is that it may not be a violent take over. It could be a slow transition, as we welcome these technologies as new found creature comforts. A gradual displacement of our economic worth and values, until we are all powerless with our machine overlords. Or if you believe in Ray Kurzweil’s singularity, we can be in a symbiotic, and harmonious relationship with the AI machines.

Please tell me that my fear for our future generations are unfounded.

 

Linux OpenVPN and IP Routes

There are certain background tasks that I perform with my iMac that requires VPN services. In the interest of saving some electricity, my goal is to have my iMac goto sleep and idle at a lower power consumption state, than what has been in the past. Let’s just say that our main iMac is on at all times, because it served as our media server for our collection of viewable devices such as iPads, Apple TV’s, etc.

This blog post is just a self account of my activities and is not a detail tutorial containing command line examples of how to accomplish this. Sorry you’ll have to go else where for that.

I managed to move all these services to my Linux box running Ubuntu Server 16.04.1 LTS. The Linux server was acting as my Network Attached Storage (NAS) server, while my iMac was running all the application services that I use around the house, which includes:

  • Plex Media Server
  • Minecraft Server for the Kids
  • Apache Server for certain web applications that the kids use
  • Other services that require VPN connectivity back to the office and else where

I needed to move all of the above services from my iMac to my Linux server so that my iMac can effectively goto sleep and save me some power. I managed to move all the non-VPN services first and saved the VPN services for later.

To my surprise, it was really easy installing OpenVPN. When I connect to the office, I found out that I could not get to the other services, because the return traffic was rerouted through the VPN tunnel. I needed a way to configure the Linux Server to route certain IP traffic from services originating from my Linux Server to bypass the VPN tunnel interface. This is when I learned everything about iproute2, and iptables. As it turned out, I did not have to use iptables.

However I did spend a good portion of my Sunday afternoon to read up on these utilities, and after several iterations I finally got the configurations working. It was a combination of creating a new ip routing table with default routes targeting the physical interface instead of the tunnelling interface, and an ip rule to configure certain traffic to use the routing table. Now my iMac can goto sleep when it is not being used by us, saving us electricity!

iPhone 7 Manual Camera

Good morning! I woke up before the sun rise and was staring at my bedroom window when I suddenly became curious to how my phone’s camera will perform under these super low light condition.

I downloaded the Manual Camera app from the App Store, and adjusted the ISO, focus, white balance, and shutter speed, took the shot of my bedroom window. I wanted a balance of properly exposed picture but not too grainy. I then shot a picture with the standard camera app which is in full auto. 

Top is full auto and the bottom is with the Manual app

The auto version seemed over processed while the manual version looked more realistic in comparison to the real lighting condition at the time (prior to sunrise). The color of the sky in the manual version is also more true to reality. If you have a chance, play with the Manual app.

This is also the first post that I produced entirely on my iPhone while still in bed. Amazing what you can do with your smartphone these days!

A Lack of Fall Colours at Kortright

Yesterday’s weather was so clear and sunny. We decided to spend Thanksgiving day to hunt for fall leaves. Our first stop was at the Kortright Centre. The centre had many trails and the guide suggested the best trail to view the most colours. Luckily it was a short trail, less than 3 kilometres. My eldest son, Jason, is just recovering from a flu, and we can tell from his body language that he was simply too tired to do anything too exhausting.

We all took some beautiful photos with our iPhones. I got a chance to really test out my new iPhone 7 camera, and the pictures turned out really good. Both in the  shadows and against the sun.

It looks like we were too early. We decided to head more North to the York Regional Forest Trails, and to our dismay, it looks like we need to give the trees another week to really show their fall colours. Here is a picture of Jason standing alone on the trail.

Viewing fall leaves.

 

School Cross Country Event

Yesterday my wimg_0003ife and I attended a local school cross country event. Students from grade four to eight competed in a running race for approximately two kilometers. The competed distance varied depending on their grades. Many parents showed up to cheer the students on. With them came the endless displays of smartphones and cameras to record the event.

I suppose we were no different as we were there to cheer on our niece, who is attending grade seven here. Coming from China, attending a school with new and different customs and language is extremely difficult for her, so we were delighted to know that she chose to participate in the annual cross country event. She displayed ample courage trying to fit in, in our foreign land and culture. She started out quite strong. Although she fell behind the main group, her competitive attitude shined through with a sprint to the finish line.

img_0005All the students should be commended for their efforts and the display of good sportsmanship at this year’s event. At the finish
line, I see many students taking this competition extremely seriously, and others who gave it their all to finish. Bravo to all those who participated. Let’s not forget our energetic pace bunny who must have ridden more than 40 km around the trails to ensure a fun and safe event for the students. Three cheers for the pace bunny!

The camaraderie of the teachers from the different schools were also great to watch. There is a sense of caring and of course coaching being offered to the students for such events. I think they have all done a wonderful job in organizing this event.

Last but not least, we also must not forget the student volunteers who helped with the organization of the event.

Looking forward to seeing all of you guys next year and hopefully, I can cajole one of my sons to join next time.

The Journey 

During the fall of 2008 after a colonoscopy examination, I was diagnosed with colorectal cancer. The surgeon who performed the colonoscopy advised surgery. In January of 2009, I underwent laparoscopic colon resection surgery. It was an interesting holiday season since at the time my mom was also diagnosed with stomachache cancer and also went under the knife. Don’t worry this is not a depressing story, as both of us have recovered fully. On September 27, 2016, my oncologist at Sunnybrook told me that I was cured.

I will spare you the gory details of numerous medical procedures, but suffice it to say that it was a journey. Not one through hell but a mental and physical trek filled with enlightenments. The experience has taught me the true value of family and friends. In addition to the special support from my immediate family, the accommodation from my employer and heartfelt support from my coworkers were all critically important through the recovery period of first the surgery and then chemo-radio therapy. I am also grateful for our Canadian healthcare system, and the people making it all work. The operation performed at the old Humber River Hospital and the FOLFOX chemo drug was offered as standard care by OHIP, and the treatment and monitoring services that I received at Sunnybrook was second to none.

This experience has also provided me an important perspective. Everything pales in comparison to the value of life. It also taught me that your life is not solely yours, and you have an important responsibility to your spouse, kids, parents, and others who have an emotional investment in you. This journey showed me how lucky I was surrounded by caring family and friends. My recovery from cancer has fueled me with tremendous willpower and courage. The ordeal is now an anchor of hope and comparison when I am confronted with emotional hardships or difficult situations at work. All things both physical and mental are now simply easier.

I use my new found willpower to ride my bike further than my pre-cancer days. I have more energy at work. I am more tempered when it comes to emotional issues. I hope to be more caring and understanding to others who may be going through similar hardships. So cancer to me is a blessing in disguise, it has forced me on a journey which molded me into a better person around the people that I love and value.

“The more the body suffers, the more the spirit flowers.”

— from “St. Simeon Stylites, a fifth-century ascetic who lived for decades atop a pillar in the Syrian desert” an Excerpt From: Roy F. Baumeister. “Willpower.” Penguin Group USA, Inc.