10.6.04
Well, no new problems, anyway. Although what I thought would be a very short day (thanks to the extra hours put in yesterday) wasn’t. Fortunately there are only so many hours in each day, so sooner or later they all come to an end.
The vacation is getting very close now — I can already feel it!
9.6.04
I think a disturbing trend is developing as my vacation draws closer:
Yesterday as soon as I had left the office our OC-3 to London goes down. I do not even make it to Grand Central Terminal before my cell phone rings.
Today after market close one of the core switch blades develops bad ports. Adam and I just finished installing the replacement, and I’m on the train home.
I’m afraid to think of what’s in store for tomorrow…
(A very tired commuter signing off.)
6.6.04
I’ve created a couple of small patches to improve how WordPress works with Markdown:
markdown-balancetags.diff
The balanceTags
function was preventing the Markdown autotags feature from working by thinking <http://server/page
> is actually some sorf of an http
tag. I didn’t want to completely disable balanceTags
, so I added code to pass through http
, https
and ftp
“tags” untouched.
markdown-first.diff
The wptexturize
function must be called after Markdown to avoid unwanted “texturizing” of preformatted and code blocks. The fix was easy once I learned that filters have priorities. The default priority is 10, so I modified markdown.php
to install itself at priority 8.
I’m beginning to think I should import WordPress to my local CVS repository.
Earlier this week all files mirrored from ISC were suddenly deleted by the Funet FTP mirror. The GW FTP mirror of BIND (and BIND 9) is a bit more conservative, so it only reported the fact that all files appear to have been deleted from the ISC server.
I finally had some time today to look into it, and I guess ISC upgraded their FTP server software (or configuration). It now ignores the -R
flag in directory listings (for recursive listing of all subdirectories). I “fixed” the problem by instructing the mirror software to iterate through all directories individually. It’s painful, but there is no other option (no /ls-lRat
file on the server).
The mirror at Funet has already retrieved the deleted files again, so we are in good shape on that front.
Storing links in a database is an excellent idea. Storing links in multiple databases is not. To avoid having links all over the place to manage, I wrote wp-links.php
for accessing the links
table in the WordPress database. The idea is to be able to get lists of links as a “standalone” feature on pages that are not using WordPress, while still being able to manage the links through WordPress as well as use the links on the journal pages.
(more…)
4.6.04
While I was stuck waiting for car service without Internet access, I couldn’t help but wonder how much it would cost to have it on my cell phone plan. I’ve probably fallen behind in understanding all the options.
I think I have GSM data on my plan, but I don’t think a 9600 bps connection would make me happy with a web browser. I’d also need to have dialup with my ISP — a service which I’ve chosen not to have since everyone I know has broadband Internet access (with the baffling exception of my brother).
GPRS to the rescue? I think that would be a fine idea. It only presents a couple of dilemmas: I think I’d need a new phone and a new laptop. I don’t think my phone can do GPRS, and other than unsightly wires and dongles, the only option for getting the bits from the phone to my laptop would be infrared (no bluetooth). And do I still need a separate ISP as well?
I guess I don’t drive enough. Every person I talked to at the New Country Audi Service was wondering why I’m bringing in the car as it has under 5,000 miles on it. But the service manual says “every 10,000 miles or 1 year”, and I wish to keep the warranty in good standing.
However, I will make every effort to drive more during the next 12 months! :-D
I should also make the service reservation in 11 months instead of waiting a full year. This way I may actually get a loaner car from New Country instead of going through the hassle of a rental car. Their reimbursement works well, though, and a rental is better than nothing, if you’d rather go somewhere than wait.
I thought I’d wait today, so I brought my trusty laptop with me. I was really hoping to find a friendly WLAN for waiting customers as well, but no such luck. They have a couple of cubicles, though, with power outlets, so you can be productive while you wait (or write for a blog — your choice).
2.6.04
I’m often way behind on my personal email, and many messages can go completely unanswered. When I get home from work in the evenings, I’m just not “in the mood” for writing email: there are all sorts of household chores that need to be taken care of, or I’ve just arrived home so late there is nothing else to do but sleep.
I’ve thought about portable before, but haven’t come up with any solutions yet that I could implement right away without having some concerns on feasibility in the long term. (more…)
31.5.04
Last night I upgraded the mail transport software to Postfix 2.1.1 and added a couple of new filtering rules from Jim Seymour’s list of ideas.
I now require that mail with freemail sender addresses arrive from freemail peer addresses (e.g. mail from “foo@yahoo.com” is only accepted from a *.yahoo.com peer). This has already blocked lots of mail from e.g. *.netikka.fi and *.surfer.at from machines that HELO
with things like “msn.com” and use *@yahoo.com sender addresses.
I also added a check for bad MX records. I’m now blocking domains with MX records pointing to any private or reserved networks (i.e. that cannot be used for public connectivity):
0.0.0.0/8 REJECT Domain MX in broadcast network
10.0.0.0/8 REJECT Domain MX in RFC-1918 private network
127.0.0.0/8 REJECT Domain MX in loopback network
169.254.0.0/16 REJECT Domain MX in link local network
172.16.0.0/12 REJECT Domain MX in RFC-1918 private network
192.0.2.0/24 REJECT Domain MX in TEST-NET network
192.168.0.0/16 REJECT Domain MX in RFC-1918 private network
224.0.0.0/4 REJECT Domain MX in class D multicast network
240.0.0.0/5 REJECT Domain MX in class E reserved network
248.0.0.0/5 REJECT Domain MX in IANA reserved network
I thought I’d see results from this rule right away, but nothing yet…
Update (6/4/2004): It looks like not that many spammers are using “bad” IP’s for their MX hosts. However, there are a few hits, and this prevents unnecessary bounces to the local postmaster, so I’m certainly keeping these rules.
30.5.04
Christos implemented statvfs on NetBSD (see his proposal when he was planning the work). I just upgraded to 2.0F and found out that rdist6 (a.k.a. freerdist, whatever you wanna call it) no longer compiles, as it expects to use statfs instead.
I use rdist6 to distribute centrally mastered files around on my systems, so I was too impatient to wait for an “official” fix, so I patched something together in pkgsrc to make rdist6 work again.