Archive for category Computers
Dynamic DNS with 1&1
What I want in a domain:
- Domain name for web site
- “Vanity” e-mail address
1&1 was the cheapest domain registration service I could find ($5.99/year, including private registration). The web is rife with complaints about their customer service (most notably, attempting to cancel an account), but I don’t plan to give up my domain, and I don’t use any of their services. I haven’t been a customer for that long, either. Buyer beware.
Their most basic service package includes web and e-mail hosting. I don’t care about the web hosting because I want to run the web site at home. Running a web site at home is simple enough. These instructions are specific for 1&1, but the concepts are applicable to any DNS provider.
Option #1: Configure the 1&1 domain to have its DNS delegated to FreeDNS or some other dynamic DNS provider. There are a few free dynamic DNS services listed at FreeDNS.com that will provide DNS for domains and subdomains. These services generally require some kind of client to be run at home that periodically updates their servers with a new IP address whenever it changes.
I’ve used both afraid.org and No-IP with my 1&1 domain; they both work fine. FreeDNS is very fully-featured, but the flexibility means it is necessarily slightly more complex to set up.
Once you’ve delegated away DNS for your domain, you can have vanity e-mail by setting up your DNS service to resolve your domain’s MX record to your home mail server; you use your ISP’s SMTP server to send e-mail, and you directly receive your e-mail on your home mail server.
The problem with such a 1&1 setup is that delegating away DNS for your domain also means foregoing the included e-mail hosting service. This bothered me. My web site is not really critical; in fact, its connectivity is completely dependent on my home ISP. However, I really don’t want my e-mail to bounce should my mail server be disconnected. So we move on to:
Option #2: Configure the 1&1 domain to be managed by 1&1′s DNS servers (default configuration). However, instead of hosting the domain’s web site with them, statically configure the domain name to resolve to your ISP-assigned dynamic IP address. Leave e-mail for the domain to be managed by 1&1. This is a supported configuration, and we now have reliably-hosted e-mail that we can retrieve with POP or IMAP.
However, there is now the task of making sure your changing IP address stays up to date in 1&1′s DNS service. 1&1 does not provide explicit support for dynamic DNS (e.g., no convenient update URLs like FreeDNS, and no background daemon like No-IP).
I used LiveHTTPHeaders to capture a trace of HTTP and HTTPS traffic while I manually navigated the 1&1 control panel. Armed with a trace of such network traffic, I wrote an automated client to masquerade as a web browser to automatically update the IP address associated with a 1&1 domain:
- Every 15 minutes or so, figure out your ISP-assigned IP address. This will most likely have to be a custom screen-scraper for your home router’s web interface (I’m not cool enough to run a Linux or FreeBSD router/firewall). Compare the current IP address with what was obtained last time. If it is the same, do nothing. If it has changed:
- Update 1&1 with the new IP address, using this
update1and1perl script; the script depends onlibwww-curl-perland needs to be customized with a 1&1 customer ID and password.
You may want to look into dedicated hosting. If you aren’t familiar with hosting on a dedicated server there are many articles you can read.
Workrave Statistics
I’m paranoid about RSI, so I use Workrave during the workday to remind me to take breaks away from the computer keyboard. I’ve configured it for a 30-second break every 7 minutes, and a 7-minute break every 53 minutes. Everyone has to choose what’s right for them; these values work for me.
One interesting thing about this program is that it keeps track of your keyboarding and mousing activity; you can see these statistics in some of the UI controls. I wrote a script to extract the historial statistics and graph the number of keystrokes over time, just to see how “productive” (as measured by keystrokes) I’ve been over the past two years:

workrave-dump extracts the statistics from the workrave historical statistics file. Run it like so:
% workrave-dump > workrave.out
gnuplot-workrave reads in the workrave.out file generated above (the filename is fixed) and generates a PNG graph like the one shown above. Run it like so:
% gnuplot-workrave
These scripts are distributed with the Workrave source as contrib/plot.
Other Unofficial Workrave Scripts and Links
- Gary Benson at inauspicious.org has a Python-based workrave stats-dumper: wrstats.py.
- Barry Irwin at lair.moria.org has graphed his own workrave activity: Workrave Statistics.
Taxes
This year I settled on TaxACT. The price is right, it’s a quick 10MB download (an easily electronically-archiveable size when compared to a multimedia-laden CD), and the software interface is perfect (for me). There is kind of a text-based interview (no multimedia mini-lectures like with TurboTax), but really, all any tax software can do is ask you to perform basic data entry of various numbers from various forms, and then go figure out how to put those numbers together.
I’m pleased to say that TaxACT saved us some money :). I had changed jobs mid-year, which meant I had two employers withholding social-security taxes. However, since social security tax withholdings are not coordinated between these two employers, one can end up paying too much social security tax. This is known as “excess social security and tier 1 RRTA tax withheld”, in form 1040 line 67, which you get back as a refund. Cha-ching.
My odyssey through tax software:
- In 1996, I filed my taxes for the first time, using TurboTax. I think it came on a single 3.5″ floppy disk. Life was simple back then.
- For 2000, I switched to Kiplinger’s TaxCut (now H&R Block TaxCut), partly for the sake of experimentation, but mostly because it came with a rebate for an effectively free upgrade to the latest version of Microsoft Money, which I had been using using 1993. I remember it working well enough, but not liking it that much compared to TurboTax. It was rather unfriendly going back to parts of the tax return that had already been covered by the initial interview. When I did revisit something to make a correction, I remember feeling rather uncomfortably unsure whether or not the software had re-done all the resulting cascading computations based on my changes. But it would be unfair to give TaxCut today a negative review based on my 6-year old fuzzily-negative impressions.
- For 2001, I switched back to TurboTax. I think this was the year of the big hoo-ha surrounding Intuit, TurboTax, and the introduction of the surreptitiously installed and not-so-surreptitiously un-installed “Cedilla” DRM (anti-piracy) software. TurboTax came on a CD, and a ton of multi-media videos that wouldn’t play on my old slow laptop. Aside from Cedilla, it worked well enough. It also integrated pretty well with Quicken. (In what can be a complete discussion of its own, I had switched away from Microsoft Money to Quicken this same year. But let’s stick to taxes.)
- For 2004, we paid an accountant to do our return. The accountant was selected based on glowing recommendations from my wife’s co-workers. This was a very terrible experience for me. There were numerous errors in the return (which the accountant acknowledged and corrected) ranging from misplaced decimal points and mis-reading various forms (irritating, but honest human mistakes, I suppose), to a final exasperated “well, tell me what you want me to enter for this line of the form and I’ll enter it”. Please, lady, have some professionalism! She should have simply told me she couldn’t do my return and that I should find someone else, rather than hang on to my business (which was rapidly become less and less worth her while, and making me more and more angry). To her credit, when she mailed us our copy of the prepared return, she also included an unsolicited partial refund. She probably does a fine job for my wife’s co-workers; all this means is that everyone’s tax situation is different, which means that everyone will have a different ideal accountant.
Having lost all confidence in the accountant after the first error (discovered by my own paranoid cursory examination of the return), I had done my return myself by hand (which had uncovered the subsequent errors). This was an extremely painful but rewarding exercise. As can be expected, it was extremely painful. However, it was also extremely rewarding because by the time I had finished setting up my tax forms in my spreadsheets, I could see exactly how every number affected the outcome of my taxes, in a manner far more transparent than any tax software I’ve ever used. By plugging in different numbers in different fields, I could play with various “what-if” scenarios to help minimize tax consequences. How much more (or less) could I have donated to charity? Should I have splurged more on the home-office expenses for itemized deductions? How much stock can I sell? And so on. And ultimately, I felt better. It’s my money; why should I completely trust someone else to take care of it?
- For 2005 (this year), I simply copied my spreadsheet work from last year. I also purchased some tax software to double-check my results, and for the e-filing functionality. It’s really stupid. Rather than openly publish the technical interfaces for e-filing, the IRS restricts e-filing to some small list of approved software, which you of course have to pay for. More tax dollars at work: the e-filing taxpayer saves the government money, but often ends up paying more than filing by mail. Aside from the excess social security tax withheld, my spreadsheet agreed with TaxACT, so we’re either both right or both wrong.
Hello, world.
I guess I shouldn’t be surprised. After putting my website online, the first visitor arrived within 5 minutes, browsing for an unpatched IIS server:
... "GET / HTTP/1.0" 302 319 "-" "-"
... "SEARCH /\x90\xc9\xc9\xc9\xc9\xc9\xc9\xc9..." 414 378 "-" "-"
and
... [error] ... request failed: URI too long (longer than 8190)
... [error] ... File does not exist: /home/rtsai/web/_vti_bin
For now, all I really have is a photo gallery:
The photo gallery software is a heavily-stripped-down and slightly-modified version of QuickyPix.
Recent Comments