Author: Ali Jani

How to measure and display battery level on micro-controller Arduino projects

Many micro-controller projects use lithium ion (li-ion) batteries and we needs a simple way to display the state of charge (SoC) which is how much battery we have left. This is typically displayed on the screen as a partially filled battery icon and optionally a percentage indicator next to it. There are however several challenges […]

Risk dice roller

Here is a simple mobile app I helped my son write. He is a big Risk fan and this seemed like a great way for him to get introduced to android development. Risk Dice Roller app is designed to replace dice needed for the original risk board game. It automates the rolling process and keeps […]

document.getElementById in asp.net with Master Pages

Using JavaScript to locate controls in ASP.net pages that are linked to master pages can be tricky.  This is because the ASP.net reassigns control IDs dynamically and the names change. A simple solution is to use asp.net inline Tags. For Example: Instead for using: document.getElementById(“Label1″) try using: document.getElementById(“<%=Label1.ClientID%>”)

Scroll to top