Benjamin Lu

everyday is cool

The Good I Can Do Today

And let us not be weary in well doing: for in due season we shall reap, if we faint not. — Galatians 6:9 (KJV) There’s a point in helping someone learn something when the explanation that made perfect sense to me just isn’t getting through. If I’m showing a friend … Continue reading →

Putting a Small Website Under Version Control

Before trying a redesign, it helps to be able to answer two questions. What did I change, and how do I get the old version back? A version-control system gives you a place to record both answers. For a retro exercise, use a local Subversion repository and a tiny site … Continue reading →

The Words I Leave with Someone

Let no corrupt communication proceed out of your mouth, but that which is good to the use of edifying, that it may minister grace unto the hearers. — Ephesians 4:29 (KJV) When someone asks me to look at something they made, my eye goes straight to whatever I’d fix. Picture … Continue reading →

Build a Contact Form That Keeps Your Input

An error message is easier to act on when the form still contains what you typed. You can test that with a small local PHP form containing an email field and a message field. On submit, validate the email and check that the message is present. If either check fails, … Continue reading →

Changing the Design Without Changing the HTML

A shared stylesheet becomes more interesting when you try swapping it out altogether. Make a short HTML page with a heading, a navigation list, and an article. Keep a copy of the markup and use it for both versions of the design. In the first stylesheet, put the links on … Continue reading →

Keeping Blog Comments Readable

A comment section can make a blog feel like a conversation. It also creates a decision about what happens between someone clicking Submit and their words appearing on the page. Use a local test blog to try two paths. Submit a comment as a new visitor and check whether it … Continue reading →

Room for Tomorrow

Take therefore no thought for the morrow: for the morrow shall take thought for the things of itself. — Matthew 6:34 (KJV, excerpt) There are evenings when I sit down to finish one thing and end up thinking through the whole next day. I can be looking at the same … Continue reading →

Permalinks That Survive a Redesign

The first time you change a site’s address structure, it’s tempting to judge the result by the new menu. An old link from somebody’s blog or feed is a better test. That link still points to the address you published originally. Make a tiny URL inventory before changing a local … Continue reading →

A Backup Before a Blog Upgrade

An upgrade is easier to think through when you know what you would restore if the site stopped working. With a WordPress blog, that means keeping both the database and the files. Posts and settings live in the database. The files include your uploads, themes, plugins, and configuration. Try a … Continue reading →

2005: Looking Back

Written retrospectively for the 2005 archive. The 2005 posts revisit a time when a small site could start with a folder of pages and grow into something that needed templates, a database, and a place to publish updates. I can see how each extra piece answered a question the previous … Continue reading →