amelierosalyn

Skip navigation

All posts tagged with "Tips and Tricks"

Using one drive to backup Mac and PC

A few people have asked how I use one drive to backup both my Mac (using Time Machine) and my PC (using Windows Backup), so I thought I'd document it in case it's useful to anyone. There might be other guides on how to do this, but here's how I did it - it's fairly easy if you're familiar with partitioning, formatting and generally messing around with drive management. If you're like me and have both a PC and Mac, backing them both up to the same drive can be very convenient (though make sure you do backup elsewhere too, one drive for everything means if that drive dies, you've lost two computers' backups!). There are other backup options than the aforementioned defaults included with the OS, but I find they work well enough for me so I'm happy to use them :) Please also note that this is how I did this, and it is not the only way (or perhaps even the best way - I don't claim to be an expert at these things).

View full entry »

Reverting to Safari 3 from Safari 4 on Mac OS X 10.5

Did you make the same mistake I did, and update to Safari 4 when it was offered as a Software Update, then found some things didn't work any more, or you just plain don't like Safari 4? If so, here's how to revert back to Safari 3.2.3 on Mac OS X Leopard.

  1. Remove your existing Safari installation. Drag /Applications/Safari.app to the Trash, and rename the ~/Library/Safari folder (where ~ is your home folder, e.g. /Users/your-username) to something else (you're essentially making a backup here). It is important that you empty the Trash after doing this, as I found my 'new' Safari copied itself to my Trash folder.
  2. Rename ~/Library/Preferences/com.apple.Safari.plist and ~/Library/Preferences/com.apple.Safari.RSS.plist (if you have it - I didn't, but then I wasn't subscribed to any feeds) to something else (backups again - these files contain your bookmarks and RSS feeds so if you don't want to lose them, don't skip this step)
  3. Edit /System/Library/Frameworks/WebKit.framework/Resources/Info.plist and replace all instances of the number 5530 with 5525. Please note: you may need to modify the file's permissions in order to be able to edit it. This can be done by right-clicking it, selecting Get Info, and modifying the permissions at the bottom - you need to give your username read and write access.
  4. Download Safari 3.2.3 and install it (you will be asked to reboot afterwards)
  5. Hey presto, you have Safari 3 again! Replace the files from step 2 (you may need to remove the new files created by Safari 3). Some people have said this doesn't seem to work for them, and if it doesn't for you or screws up your Safari, you might need to open the files and add your bookmarks back in manually... It seems there might be an inconsistency in the XML but I haven't looked into it in too much detail.

There you go, just thought I would share :P

Instructions for Tiger (Mac OS X 10.4)

Edit: I have been asked for instructions for Mac OS X 10.4 (Tiger) - unfortunately, I don't have access to that version, but I'm told the instructions do work, except that the following modifications are to be made:

How to change your WordPress username

Sick of using the name 'admin' to login to your WP installation? Have a user with the login 'PiNkbUnNiEz!1" but want to change it without that user losing all their posts/creating a new account etc.? Tried to do it but found the field disabled in your WP admin panel?
Here is what you need to do.

  1. Before you do anything, backup your database. If you don't know how to do this, ask at the WP forums or Google it - there are some plugins that will do this for you if you don't have access to things like phpMyAdmin (a MySQL tool which can be used to backup your database - Jem has a tutorial on this which may be useful)

  2. Paste this into a file. Name it anything you like, as long as it has a .php extension:

    <?php
    $existing_username = 'admin';
    $new_username = 'MY_NEW_USERNAME';

    // —————

    if (!file_exists('wp-config.php')) exit('Could not find wp-config.php, please make sure you place this file in the same directory as all your WP files.');

    require 'wp-config.php';

    $link = @mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
    if (!$link) exit('Could not connect to MySQL');
    mysql_select_db(DB_NAME, $link) or exit('Could not connect to MySQL');

    if (mysql_query('UPDATE `' . $table_prefix . "users` SET `user_login` = '" . mysql_real_escape_string($new_username, $link) . "' WHERE `user_login` = '" . mysql_real_escape_string($existing_username, $link) . "' LIMIT 1", $link)) echo 'Username updated, your username is now ' . $new_username . '.';
    else echo 'Could not update your username. MySQL said: ' . mysql_error($link);

    mysql_close($link);
    ?>

    Change the first two lines (excluding the one that says '<?php', obviously :P ) to your existing username (probably admin) and your new desired username. Save the file, then upload it to your WordPress directory. Make sure this file is in the same place as wp-config.php.

  3. Go to the file in your browser, e.g. yoursite/wordpress/the-file.php and voilà! :D