Uncategorized

NFTs are Pandora’s Box

I was recently exposed to the idea of Non-Fungible Tokens (NFTs) through Twitter. I’ve struggled to wrap my head around them ever since. What does it mean that people are willing to pay millions to own a Tweet or JPEG? How does that sentence make any sense? And why do the concept of NFTs reliably …

NFTs are Pandora’s Box Read More »

There And Back Again on Code Comments

It’s interesting how learning is sometimes like travel. At the end of the journey, you end up back where you started, only with a broadened perspective. Trivial example: code comments. As a new programmer, I commented my code extensively. This was probably to compensate for my difficulties in reading code. It also allowed me to …

There And Back Again on Code Comments Read More »

How to Display Selected WordPress Posts in a Sidebar (no plugins or HTML)

To show a specific selection of your posts in the sidebar, contrary to what some top-ranking search results will tell you, you don’t need to install yet another spammy WP plugin or write any HTML. All you need is the standard Text widget. Here’s how to add your own “selected posts” section. Steps: Go to …

How to Display Selected WordPress Posts in a Sidebar (no plugins or HTML) Read More »

Publishing your node service with DNS-SD/mDNS from an Alpine Linux docker container

Multicast DNS service discovery, aka. Zeroconf or Bonjour, is a useful means of making your node app (e.g. multiplayer game or IoT project) easily discoverable to clients on the same local network. The node_mdns module worked out-of-the-box on my Mac. Unfortunately things weren’t as straightforward on a node-alpine docker container running on Raspberry Pi Zero, …

Publishing your node service with DNS-SD/mDNS from an Alpine Linux docker container Read More »

Lungs are example of redundancy in nature

Beyond DRY – Why Redundancy Makes Your Code More Robust and Less Fragile

Anti-Fragile by Nassim Nicholas Taleb is a goldmine of practical ideas for software developers, despite it not being a software development book. Redundancy is one example of such an idea that is explored. Taleb explains how having some redundancy reduces fragility, and means we don’t need to predict the future so well. Think of food …

Beyond DRY – Why Redundancy Makes Your Code More Robust and Less Fragile Read More »

10 Tips for Exploring Foreign Cities

  Last month I was fortunate enough to spend two weeks traveling around southern China including Hainan, Guangzhou, Macau and Hong Kong. It was an awesome trip; I would particularly recommend stopping by Hong Kong for a few days to check it out if you get the chance. It’s an amazing, vibrant city. At some …

10 Tips for Exploring Foreign Cities Read More »

MySQL + ODBC + Python

How to connect Python programs to a MySQL database using ODBC on Ubuntu 10.04 LTS (Lucid) This guide assumes you already have a MySQL server set up somewhere Install needed packages: sudo apt-get install unixodbc unixodbc-dev python-dev libmyodbc (libmyodbc is the MySQL driver for ODBC) Get current version of pyodbc: If you have python-setuptools installed: …

MySQL + ODBC + Python Read More »