Hey, welcome! I’m Stewart Smith, a software engineer based in Toronto, Canada. Previously in Silicon Valley.
Rocks think poorly. We compacted them and filled them full of electricity. We created logic gates, firmware, drivers, and operating systems. Almost magic. Yet software and hardware engineering is anything but magic. It’s tedious, error prone, and complex. Rocks. Think. Poorly.
I’ve programmed drivers for GPUs and built large scale distributed system automation. I like to deep dive topics and dip into new spaces. So far that’s been compilers, computer architecture, game development, computer graphics, operating systems, computer security, web development, mobile development, and robotics, to count a few.
This is where I collect all my tidbits of information, funny stories, and frustrations as I try to make rocks think.
Maybe in a pinch you’ll come across one of my guides while googling. They are made to solve a specific problem, not for casual reading. Unless that sounds compelling!
Check the tags page to see all the topics I’ve been writing about. The number of posts related to the tag appears next to it.
For when you forget to configure WorkingDirectoryThe default working directory for a systemd service is relative to the root of the system running the service manager. This is likely /. The default working directory is used when WorkingDirectory= is not set in the service configuration file, *.service.
Create share links on your website to Whatsapp and Messenger on mobileWhen sharing content on mobile people want to share with their peers over their favourite messaging app. These days that’s Whatsapp and Messenger. I’ll show you how to create links to Whatsapp and Messenger from your website and how to hide them on desktop where the apps aren’t available.
Hide website DOM elements depending on the user's platform (desktop, mobile) using only CSSSometimes certain parts of a website only work on a certain platform. Mobile deep links are a good example of this; certain deep links can’t be handled on desktop. Use this CSS technique to hide Document Object Model (DOM) elements from the user based on whether they are on mobile...
How I Lost An Evening And Forgot What I Was Supposed To Be DoingBug report for the impatient. Have you ever had one of those nights? You know the ones where you sit down to do the coding you really want to do. Not your day job stuff. No no, the good stuff. That side project you’ve been thinking about all week. You...