JavaScript is a very important part of the web, and there are many framework and library to make the development process simpler. React and Angular are two names that you probably hear the most within the development circle. In this article, I’m going to do a simple comparison table...
Blog
Switch Expressions in Java 12
Java is a wonderful language, but it’s syntax tends to be a bit too verbose sometimes. It is good to see that in Java 12, the new Switch Expressions will now use pattern matching to provide simpler coding standards. Below is a simple example to illustrate the differences: In...
Alexa in your car?
Voice assistance devices are quite handy and can provide a pleasant hand-free experience in places where your hands are occupied. So I was quite interested when I heard Amazon announcing the new Echo Auto, basically promise to bring Alexa into your car 🚗. Here is a link to the...
Need to turn lights on earlier if it is cloudy.
After implementing the turn lights on 20 minutes before sunset automation in hass.io, I was quite happy to see our evening lights come on and off automatically each night. But we encountered a few cloudy days in the past week, and it troubles me that the house gets too...
Turn Lights On 20 Minutes Before Sunset!
Our home automation project is going along very nicely. We have a few TP-Link smart plugs installed around the house, and have been using their Kasa app for a while. One thing we really like is being able to set automation to turn light on and off. You can...
Z-Wave vs Zigbee
Home automation is quite popular now in most household and it is common to see retailers dedicate quite a lot of display space to them. I was in a local Best Buy store recently, and was delighted to find a few aisles of home automation products on display and...
Secure Remote Admin Access with Duck DNS
Now that you have Hass.io running happily on your Raspberry Pi, the next thing in your mind is probably how to access the admin console remotely from the internet, so that you can control your smart home even when you are away from home. One elegant and free solution...
Access Configuration Files with Samba
Hass.io is the latest all-in-one installation for Home Assistant. It is the simplest way to set up Home Assistant on a Raspberry Pi. You can now manage your Hass.io with a web console. Once you have Hass.io setup and running on the Pi, you will find that one of...
To Cloud or Not to Cloud?
It is a cloudy morning today, but we are not talking about the weather. Cloud services are quite popular now and are available quite abundantly and down-to-earth. There are many discussion in the corporate world regarding availability, reliability, and security for enterprise level type of cloud services. But how...
Rectangles – Intersection Study
Have you ever walk into a job interview, and were asked to design a program to find if 2 rectangles intersect with each other or not? This apparently is a common “technical” question in a job interview. I do agree that it is an interesting question to evaluate your...