Remote Syslog on Ubuntu for Zywall USG-50

Fire up Linux. I used Ubuntu, but Debian should be similar. Ubuntu comes stock with rsyslogd. It's almost ready to go, except that it doesn't have ports open to accept rsyslog messages.

TPCalc for Android

A while back, I made a little program called TPCalc to do one of my favorite mundane activities, which is to determine the best price for toilet paper at

LastPass and Yubikey

LastPass is a password management add-on for web browsers and mobile phones.

Creating Email Messages with Clickable Links that Add Events to Your Calendar

This is a research node to find out the best ways to create email messages that contain event information, so that the user can easily create a calendar item.

The stock advice is to use .ics files, yet I don't see many event publishers using .ics files. Instead, I see people using well-formatted text, which gets automatically linked by email clients. I'll look at both methods.

ICS

Courier IMAP and POP3D Certificate Chains in PEM files

It wasn't entirely clear to me how to deal with these low-cost SSL certificates like the Comodo Positive CA SSL certificate. They come to you with several CRT files.

Good Passwords and Site Trust

Enforcing strong passwords is a good policy, because it increases users trust in your site. I think the same applies to 2-factor authentication.

NTFS File Permissions Rabitthole

I've avoided NTFS file permissions for the better part of two decades. First off, I'm not an enterprise admin, and secondly, it seemed like every network I came across had virtually no permissions. Unix, which has a primitive permission system, was usually more "locked down" in most cases.

Lately, though, there have been some mean malware in the wild, including one that encrypts your data, and then charges a ransom to decrypt it. Imagine that getting into your file servers. Yikes.

One corrective is to use those file permissions to protect your files from changes.

Rewriting Code

There is no great writing, only great rewriting. - Justice Brandeis

I'm not much of a Python coder, but I'm learning to be a pretty good Python re-coder.

Button to Scroll to Top of the Page

Mobile websites all seem to have this button, which appears when you've scrolled down a bit. The button scrolls you back to the top of the page, where most of the menus reside.

Upgrading to a Larger Hard Disk, using Windows Software RAID 1 (Mirroring)

Technically, you can't extend a mirrored volume, but you can break the mirror and extend it. Then, you can re-build the mirror.

Here's how to upgrade to a larger disk, using mirroring to copy the data over. I'm going to assume you want to go from a single disk to two larger disks: a spare disk is cheaper than dealing with hours of disk recovery in the event of a crash, no matter how rare crashes are.

Start by making a full backup of your disk to an external drive.

Install one new disk and making a mirror onto it.

A Long Explanation of Character Encodings and UTF-8 and the IMC Software

This was posted as a correction to a note I made about some character encoding errors that appeared on the LA Indymedia website. It's poorly written. If you need me to edit and clarify, send an email to johnk@riceball.com.

It's ISO 8859, not 8890.

DnsMasq DHCP Options and some Yukon PXE Headaches: ignoring DHCP option 66.

Below this list is a story about a PXE boot problem I had with the Yukon PXE firmware.

Known DHCP options:
1 netmask
2 time-offset
3 router
6 dns-server
7 log-server

Using strings to create functions

One of the less-used features is the Function() object, which can turn a string of Javascript code into a function. This is an example of how it can be useful.

Discover the IP Address of a Cisco Aironet 1200 Series on Linux without IPSU

I got an Aironet 1200 and didn't have the serial cable, so I tried to use IPSU to find the IP address. I ran it in a VM, bridged the ethernet interface, and it failed.

Syndicate content