My hobby recently has been making website scale better on phones, but I ran into a problem on several of them: The viewport meta tag assumes that a website either has a fixed width or that it scales to any possible width. I investigated several solutions and eventually settled on an (apparently) novel one: Check the screen size, and if it's too small, add a new meta tag with a fixed viewport. I also wrote a JavaScript polyfill that lets me just set a min-width
in the viewport tag.
Monitoring servers with Monit
This machine runs a lot of services and I don't use all of them. After breaking several of them and not noticing (again), I decided to finally set up service monitoring. After some research, Monit was relatively easy to set up and seems to meet my needs. I figured other people might want some examples of how to use it, so this post describes how to set it up and you can see my config file at the end.
Getting patches into open source projects
There's an open source project you want to use, but it's missing a feature you need, or has a bug you need fixed. You can implement it yourself, but you want to make sure the patch will be accepted by the project's maintainers. This guide will explain how best to minimize wasted effort and improve the chances of your code being accepted.
systemd user services are amazing
In the last few days, I've needed to set up several long-running services and I just wanted to take a minute to talk about how helpful systemd's user services have been.
The things I wanted to run are:
- A Node.js server which is started with
npm run
- A Node …
How to disable Wi-Fi Direct on the Roku 2
If you want to disable Wi-Fi Direct on the Roku 2, follow these steps:
- Go to home
- Settings
- System
- Advanced system settings
- Device connect
- Disable Device connect
If you're monitoring local networks, you should see the Roku network disappear. On my network, the Roku network was hidden, but I was …