Code

Note: WhatsApp url scheme

Note to self. Start chat with phone number whatsapp://send?phone=1234 Prefill the text field whatsapp://send?phone=1234&text=Hello%20world These links may not work when the user is using the desktop app. To resolve this WA allows the use of their web proxy, which is basically a bit of javascript doing some checks and then Read more…

By Franklin, ago
Code

Cannot allocate memory – Fix for login error

Do you see this message on every login to your Ubuntu system? "Could not load list of meta packages: [Errno 12] Cannot allocate memory". The error indicates there was not enough RAM available to complete the task. Here I explain where the message comes from and how to get rid of it.

By Franklin, ago
Code

Blocking vs non-blocking timers in Arduino and Particle

When coding for Arduino you may wish to run certain code once every N milliseconds. For a very simple program like blinking a LED with a 2 seconds interval using the delay() function will be sufficient. But what about multiple bits of code where each require a different interval? Using delay() they will slow each other down, significantly disrupting your program. The solution is the meassure the last time the code parts were executed.

By Franklin, ago