x

Archive for the 'tips to share' Category

Upgrading WordPress to 2.1.2

After procrastinating for a short while, I decided to slowly upgrade all my WordPress 2.0 blogs to the 2.1 series.

Although there are problems, gotchas and even downgrade reported, it really isn’t so frightening.

On the WordPress site there are some excellent documentation on upgrading. Be sure to read them first.

After reading them, I had worked out a few steps that is differ from the instruction which I’m sharing here. (Be sure you understand what you are doing if you want to try following them.)

If you have a few blogs, try it out first on the less trafficed blog.

I decided not to Delete the old WordPress files. Over time I had added many files and folders to my WordPress folder. Isolating what to delete and what to keep is too time consuming. Instead I just overwrite with all the files from the 2.1.2 download.

Note that this will not work if you had make changes directly to WordPress files. In most case, stay clear of editing core files.

Next I do a compare with unix diff command. If you are on a Windows platform you might want to try WinMerge.

diff -rq wordpress/ www/

There isn’t too much difference so I copy out all the differences and make it into a list of command.

cd wp-includes
rm wp-l10n.php
rm template-functions-post.php
rm template-functions-links.php
rm template-functions-general.php
rm template-functions-category.php
rm template-functions-author.php
rm pluggable-functions.php
rm links.php
rm functions-post.php
rm functions-formatting.php
rm functions-compat.php
rm feed-functions.php
comment-functions.php
rm js/dbx-key.js
rm js/tinymce/plugins/autosave/langs/cs.js
rm js/tinymce/plugins/autosave/langs/sv.js
rm js/tinymce/plugins/inlinepopups/editor_plugin_src.js
rm js/tinymce/plugins/inlinepopups/readme.txt
rm js/tinymce/themes/advanced/editor_template_src.js
cd ../wp-admin
rm edit-form-ajax-cat.php
rm execute-pings.php
rm inline-uploading.php
rm link-categories.php
rm list-manipulation.js
rm list-manipulation.php

Basically everything should be working up to this point. Click around and see if everything is working.

Next is to activate the plugins. Depending what plugins and the number of plugins you used, this can be a more problematic and time consuming part of the upgrade. I will follow up with another post on this.

Test out the site for a few days before moving on to your next blog.

Oh, and of course I’m going to update the AdAdvantage K2 scheme to work with 2.1.

Quick sort using Google SpreadSheet

Today, I was doing a post on filtering low paying Adsense ads. There was a list of sites and I wanted to sort them.

One of my notebook RAM burnt-out in the hot summer a few weeks ago and it was left with 256 mb. A few applications was already open on my desktop already so I was very apprehensive of opening up OpenOffice Calc.

Then a quick flash and I thought of Google Spreadsheet. What a quick way to do sorting!

Using google spreadsheet for sorting

WordPress shortcuts I did not know.

Today I took a little time to explore around WordPress and found 2 little links so useful that I could not imagine how much time I had wasted without them!

Respective, go to the Add Link and Write Post page in the admin. Go right to the bottom of the page. You will see 2 links like the following.

link this press it

The instructions are very clear so I will just summerise,

  • click+drag the links to the bookmarks
  • go to a page that you want to link ot blog about
  • click on the booked link
  • presto!

Try it!

This experience just goes to show that we have to take some time to sharpen our saw and not keep sawing with a blunt saw.

Using phpAdsNew to serve Ads

phpAdsNewI had been experimenting with phpAdsNew for while to serve ads. Although there are still may functions I have not discover, the basic functions are powerful enough to provide numerous control over the ads I’m serving.

Here’s an introduction of how to use phpAdsNew to serve your Ads (such as Adsense) and some ideas of how I’m using it.

Continue reading ‘Using phpAdsNew to serve Ads’

Read a well researched article. For a change

Tired of your usual blog read? Try Benjamin Edelman’s website for a refreshing change.

If you are more impressed by fact than fantasy, then you will be impressed by what you read. Compared the usual blog rant supported by half-baked facts, Benjamin Edelman pieces are all well researched and succinctly presented.

A PhD candidate at Harvard University, his interest covers online advertising, click fraud, spywares. Stuffs of much interest to many of us.

Take for example the latest piece, authored with SiteAdvisor, tells us how unsafe all those search engine ads are. Think twice, triple before clicking on a google ads. Then again, it spells bad news for AdSense publishers.

SiteAdvisor study - Google Results, by Individual Keyword

I am a Weekend Blogger

(Actually, he is the real weekendblogger, I just blog on weekend.)

One thing I had learnt from maintaining a few blogs is that time is never available when you need to write a post.

When you have not blogged for a few days and felt you need to put in an entry, you have no time.
When you have time and wanted to write a post, you think, “I just did this morning, save it for another day“.

9rules consider consistency as an important trait of a good blog. Some think that daily blogging is a bad idea. To me a regularly updated blog feels flesh and shows effort.

One method that I found effective is to just write when I have the time and save then as draft. So in the weekend when I have a little more time, I write as many entries as I can. Some complete, some partial. These serve as my ammo when I need to get a post out.

Is scheduled post a good idea? Should blog post be instantaneously published?

Migrating from Serendipity to WordPress

Looking to import your Serendipity blog to WordPress?

You are out of luck. So far I had searched and found nothing. Three questions over the years in WordPress support forum met with no answer.

After holding back for a few months, I decided to hack things together and get my Serendipity blog entries into WordPress.

Before you try, make backup. You milage may varies.

Continue reading ‘Migrating from Serendipity to WordPress’

Upgrading K2 with WinMerge

If you are not a software developer you might not have heard of the term code merging or tools like WinMerge.

In this post, you can see how I use Winmerge to merge my changes with the K2 svn and keep it in sync with the lastest development.

I want to share this because some people asked me about my AdAdvantage scheme update. Unfortunately I do not have the time to follow each svn update, but you could use this tip to help yourself. This is especially useful if the lastest version fix a bug in the version you are using.

Continue reading ‘Upgrading K2 with WinMerge’