Archive for Dev category:

Moving a WP install from svn to git

December 30th, 2010

I’ve been using subversion (svn) for a few years for a variety of projects. It’s a solid system, and great if you want to basically have an easy backup of every change. However, I heard a lot about git and gave it a try and after the initial “this makes NO sense” stage — where [...]

Remember Me Session system in PHP

December 10th, 2010

Here’s how I implemented a session/login system for a web site I run: First, these are load balanced servers, using two web servers, 2 slave databases and a master database. The session writes go to the master and the reads from the slaves.  If you have problems with that, reading from the master might be [...]

When to comment code

February 21st, 2010

If you are a developer, you don’t speak one language,  you speak at least two.  If you already speak several spoken languages, like French, English, Spanish, Russian, or Canadian, then you add to it “programming”. What I’m saying is that you don’t need to comment all of your code.  Big concepts perhaps, variable names and [...]

Create your own tr.im

October 8th, 2009

Update: an easy WordPress-based shortening solution here. URL Shorteners can be really useful. Before twitter came along, the main reason for using a site like http://tinyurl.com was to be able to take a long url that wrapped in an email or newsgroup post and shorten it to allow for a better, cleaner view. Sometimes the [...]

How to Create Secure Passwords you’ll never forget

September 18th, 2009

A really long but not complicated password is better than a short complex one. This is a pretty good password: 3*w#loWQ@ But this one is too: A8-9*iA8-9*iA8-9*iA8-9*iA8-9*i Not as complex, but a LOT longer, which is a key.  Remember that.  Repetition can help make a password more secure.  The cracker program doesn’t know how long [...]

« newer articlesmore articles »