Changing Domains

Tuesday night I set about purchasing a new domain name for the blog, firstly it was tough simply finding one that could serve the purpose. .com domains that actually mean anything are starting to be in very short supply and even though many interesting companies have come up with words that at the time didn’t mean anything, a blog is suited to words that make sense from day 1.

After choosing my domain and delegating the name servers (surprisingly fast nowadays) I was able to start the difficult task of moving an establishing blog to a new domain while the previous one was still running.

To move a WordPress blog, you must have the contents of the site’s folder (ie public_html) and saved sql file, once you’ve done that, upload the wordpress files to the new site, upload the sql files to the new database and change the details in wp-config.php file, once you’ve done that you must change the domain listed in the sql table wp_options from your old one to your new one. Then run this sql command:

UPDATE wp_posts SET guid = REPLACE (guid, 'http://exampleoldsiteurl.com', 'http://examplenewsiteurl.com');

This is assuming you have the default names for wp_posts and guid, change the first url to your old domain, change the second url to your new domain.

This was fairly straight forward, however it seems that every link in every post and page’s links are hard coded with the url of the old domain, so I went through using a similar command to the previous one to change every instance in every post to the new address

There were also some references to the absolute address for the site, which changed completely, they didn’t seem to be causing problems, but I changed them just to be sure.

Once I had done that the site was active, I just needed to change a few minor things and it was almost ready.

Firstly I redirected beejay.perthmatrix.com/* to www.techgremlin.com/*, this is to ensure that anywhere that I haven’t updated my address and anywhere that has a link to beejay.perthmatrix.com is still able to access the area requested as the server automatically redirects, for example if you go to http://beejay.perthmatrix.com/2008/09/17/the-digital-downloads-delusion/ you’ll find that you have just arrived at https://www.techgremlin.com/2008/09/17/the-digital-downloads-delusion/ without having to update the link, it also works for image links.

If you are running cpanel this is quite easy, on the redirection page add your old address to the first field and add your new domain to the field underneath titled ‘redirect to’ and check the box labelled wild card redirect, then click add.

This also helps me as my site works well for it’s SEO abilities and considering I don’t know what I’m doing in that area half the time. Allowing the old domain to stay open, while redirecting people who have found the old site through a search engine allows the new domain time to be indexed by the same search engines.

WordPress.com accounts are tricky, it seems that if you create a username for use with the WordPress Stats Plugin for a site, it is linked to it forever, further more you can’t add any more, so I instead created a new account for this domain.

Getting the most out of your internet connection

In the age of broadband connections of varying types and speeds there are many that are not running to their full potential, time after time there are users that have not experienced true broadband speeds because something is not functioning correctly or optimised properly. This guide will guide anybody through the correct and incorrect ways to make sure your broadband connection is working at it’s peak. It is focused on Australian ADSL/2+ connections but can be used elsewhere in most cases.

Continue reading Getting the most out of your internet connection

Google Chrome Beta Review

When Google Chrome came out I instantly downloaded and installed it to see what the big deal was. Here is an optimistic look at Google Chrome, past the possible security issues with the browser and the general distrust of Google around the internet at the moment.

Performance
The performance of Google Chrome is amazing. I didn’t think there would be much improvement in day to day browsing, but the speed increase from using Internet Explorer and Firefox is quite noticable. The other noticable speed increase from these browsers is in the speed that Google Chrome can open and close, on my PC the browser window opens instantly and is able to be used in a few seconds, Firefox depending on what plugins you have install, what theme you are using, at the quickest you normally can’t get it under 3-5 seconds unless you are doing some major tweaking. Google Gears integration also helps on websites that are compatible with it, such as the WordPress Admin section.

Stability
There were many reports of Google Chrome crashing when It was first released, I never experienced anything like that, in fact I have only ever experienced 1 crash and it appeared to be caused by a specific website that I had never been to before and had no interest in going to again. However, I do experience problems with Google Chrome suddenly losing the ability to produce sound, it happens with YouTube the most often and usually occurs when I have many tabs open.

Compatibility
This is not quite a strong side of this browser yet, flash is supported and works great, however Java support is flaky to say the least. Java 1.6 Update 7, the latest stable version of the Java Runtime Environment is not compatible with Google Chrome yet, however Java 1.6 Update 10, currently in Beta is apparently compatible, however I have had no luck with it on my PC, it stops Java applets running in any browser when it is installed, this may be due to a previous (working) installation of Update 10 being removed a few months ago, however I have had no success with the version that worked previously. Other users of Update 10 have also experienced a wide range of problems specific to Google Chrome, so although the latest Beta of the runtime environment is listed as compatible the chances of getting it to run correctly aren’t too good yet.

Obviously your favourite FireFox plug-ins are not compatible with Google Chrome Chrome Plugins seems promising in the future and has some good information so far. Theme support appears to be built into Google Chrome but not much has been done in that area yet.

As far is website compatibility goes Google Chrome has no major issues, I have rarely come across a website that cannot display properly in this browser.

Features
Google Chrome has many features that interest me, the One Unified Box (Address Bar) is very handy, normally I’d have to choose which box was active before I started typing, this was annoying when I started typing somewhere and had to move it to the right area, the lack of recently typed URLs is annoying, but that can be accessed from the New tab page, this lists the most common websites that you have visited and is used to access the history list, the list is set out well and the readability is great.

I have not yet used the application shortcuts, but they seem fairly simple to use. The dynamic tabs are fun to use, they allow you to drag a tab out of the window to create a new window with the current tab’s contents. A common feature starting to come out in browsers now is the ability to hide your history, cookies etc for a session, Chrome’s Incognito Mode is very similar to other types of this feature.

Google Chrome also warns about malware and phishing websites, I haven’t ran across this yet. The downloads bar is a little annoying and it took a bit of a look through the settings to get it to not forget the folder I last downloaded to.  The settings importer was automatic at the end of the installation, but can also be invoked from the menu as well, it worked flawlessly for me, cookies and favourites were imported exactly as they were in FireFox.

Look & Feel
Google Chrome looks and feels very polished, in Vista the glass border is familiar to those that use Internet Explorer, the tabs are in an interesting place, apart from having to remember that they are not in the standard spot I really didn’t notice anything good or bad about them being at the top. The bookmarks are fairly hidden when you first start using Chrome and I had to add the Bookmarks bar so that I remembered how to get to my imported Bookmarks, they are listed under Other Bookmarks and don’t appear to be accessible unless you always show the bookmarks bar.

As I stated in the compatability section I have not had many issues with page rendering, also I have not experienced any rendering issues with the browser itself, the UI is smooth and gets familiar fast.

Conclusion
As I touched on at the start, this is probably not the browser for you if you are paranoid or have any distrust of Google, also If you don’t have a good virus scanner installed and/or you blindly allow executables to run you may be put off by the possible security flaw regarding launching executables.

Google Chrome is a polished browser that is fast and works great, it has no plugins that I am aware of yet and that stops most adopting it as their default browser, but if you’re not worried about that the speed and features certainly helps productivity while browsing. I use Google Chrome for most of my browsing, however if I feel like doing some stumbling or need to use Java I will run FireFox.

WordPress 2.6.1 and 2.6.2 are out

A little late on the news here but I have upgraded to 2.6.2. Grab it here. View their blogs here for 2.6.1 and here for 2.6.2.

Both upgrades are not too necessary, but don’t break anything if you do intend to get them, it’s always good to check to see if you really need any upgrades anyway, just in case something does break.

2.6.1:
The admin styling has been improved for people with right-to-left writing languages.
A gettext pug with certain PHP configurations was fixed.
Fixed a few issues with permalinks for IIS hosted blogs.
Image insertion problems for IE users using ‘Press This’ were fixed.
Small performance improvements with blogs that have many plugins in the admin section.
There’s over 60 more, check them out here.

2.6.2:
The main fix in this one is due to a vulnerability in MySQL that can allow someone to reset passwords on websites (WordPress based websites included) and reset passwords provided they have an open registration system.
There’s a few more fixes, check them out here.

Firefox crashes, WordPress flash uploader and new host

Firefox has locked up again

Firefox has crashed again, I can always tell because It’s closed, in fact I probably closed it an hour ago, but it’s been slowly sitting there in the background hoping I won’t notice it, it does this occasionally when I close it, sometimes after I have used it for some time, sometimes when I only have it open for a short time, it doesn’t seem to matter, it just does it, further more I haven’t found anybody with a similar problem, except some sources that insist it might be the plugins causing it.

The WordPress flash based picture uploader has been giving me grief ever since I changed hosting providers recently, HTTP error was all I was given when trying to upload a file, using the browser based uploader worked fine so I used that instead, but it got annoying for me so I did a bit of googling and found out that the reason it wasn’t working is because on some providers you must have this directive in your .htaccess file:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

Now flashed based uploading works fine.

UPDATE: James at The Theme Blog has experienced a similar error and has posted another workaround here, if this doesn’t work out try that one.

I have been a member of Aussiehost for over 6 months now, however this site has stayed specifically on Servage up until a few days ago when I realised this website is a little slow on Servage for my liking, the latency is shocking. The changeover was seamless and I’m very happy with the performance so far.

Update for Servage Referral Widget etc

Last night after over an hour of coding I was able to finish version 1.2, the new version is able to count how many times a user clicks the link, then report it in the Widget control panel. I might make an option later to report it under the widget, or in the Dashboard.

Google Analytics is quite a handy tool to see who reads my site and for what purpose, the Webmaster Tools is also great, however I am noticing the search ranking isn’t very accurate for some reason.

In other news I went out half way through writing this entry, the slimline sets of Mythbusters seasons appear to be slowly coming out, I got my copy of Season 1 today.

I also just bought the spamannoys.me domain, mainly for e-mail of course.

WordPress/Servage spam IP filtering

I have Akismet set up to keep spam out as well as keeping all comments for moderation, I initially decided to do some IP blocks seeming as there would be a few that would constantly send spam.

The only problem was that as WordPress only use

$_SERVER['REMOTE_ADDR']

to determine a user’s IP address which as most people who know PHP know it is a bad idea because it doesn’t take into account proxies etc. In my case it was actually giving Servage’s own IP for every result which wasn’t of much use unless I wanted to block comments/trackbacks altogether.

As there’s no documentation that I could find about where WordPress actually contains the code to find the IP and Google wasn’t much help I had to look manually.

I eventually found it in comments.php in the wp-includes directory.

$commentdata['comment_author_IP'] = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );

First to add in the neccessary code a variable must be created, change the above code to this:

$commentdata['comment_author_IP'] = preg_replace( '/[^0-9a-fA-F:., ]/', '',$bp_IP );

Then add the required code above that stating:

$bp_IP = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

This allows the correct IP to be shown in most cases, most of the thanks must go to Jason for this.

Update: This piece of code also works in WordPress 2.6x.

Google Suggest/Trends, theme editing, FileZilla issue

http://www.google.com/webhp?complete=1&hl=en
This is now my homepage, it is extremely handy, plus it’s slightly less bloated than the default Firefox search page, trends http://www.google.com/trends is quite interesting to have a look at as well.

Thanks to http://www.blogohblog.com/, http://www.dyers.org/blog/archives/2008/05/21/how-to-add-avatars-to-your-wordpress-25-theme/ and Jason I was able to fix some issues I was having with the Gravatar section of the theme which is by default not supported, the code at first didn’t work I figure because it was incorrectly detecting the WordPress version as something less than 2.5 however there was a </div> that had no starting tag which caused the theme style to get messed up also, after fixing those the Gravatars work fine now.

I have been experiencing a ‘DDE execute request failed’ error in FileZilla 3 when choosing to view/edit files regardless of the fact that it does appear to view/edit the file perfectly fine, there doesn’t appear to be any information that I can find about it when searching around.
I managed to stop it appearing by setting a default text editor, choosing ‘Always use default editor’ and unchecking ‘Inherit system’s file-type associations’, must be a Vista/FileZilla/TextPad/UAC thing.

I received my Windows Vista upgrade advisor shirt not long ago, it’s very well made but I don’t think I’ll be wearing it anywhere anytime soon.

I just found out what a post slug is…