Update 2010-03-28: MySpaceTools.ws is no longer available, due to MySpace blocking my server from accessing it.
Edit: This has been moved to MySpaceTools.ws. Please email errors [-at-] myspacetools.ws for support, do not comment here.
Based on a blog entry I read about backing up your profile, I decided to try and write a script that would grab your entire friend list so you can have a local copy of it. It was kinda hard to do, but I've managed to write a relatively simple script that will grab your entire friends list, and display it on the one page. It does so by grabbing each page in the "View All Friends" section, and essentially merges them all together. What you end up with is one page that contains your entire friends list.
Take a look at [broken link removed] for the script so far. Note that it will currently not work on private profiles (although I'm working on a fix for that). For now, if you have a private profile, you must temporarily set your profile to public in order to export the friends list.
You can easily save the page it generates (via File ? Save As...) and keep it as a local copy of your friends list. Yes, I know how it displays its output is kinda ugly at the moment, but I'm a coder, not a designer :P
Hope it's useful for someone. :)
I originally posted this to the MySpace Forums, but thought I should also post it here
Yesterday, I had a hard drive die on me :(. It was a 160 GB Seagate Barracuda, and was less than a year old. It started with strange error messages late last night. I went to the server, reset it (need to power it off - It wouldn't shutdown cleanly), and now it won't boot. When I try to boot the system, I can hear the drive head hitting against the side of the drive, which makes me think there is a problem internally with the drive...
I'm looking into recovery options, though I think it will be way too expensive for my needs. If it is too expensive, I'll just have to cut my losses and move on. A lot of my development work was on this server (it was my backup PC as well). Whilst I have local copies of stuff, a lot of it is slightly old. It's kinda depressing to have something like this happen, so I'm not really in a good mood at the moment :(
Update: About two weeks after the hard drive "failed", I tried it again. It was working, but made a strange sound. I quickly copied all the data off of it, and disconnected it. I was able to get a copy of all the most important data. So, it's not so bad... This story has a happy ending :D
May 1 02:28:08 blue sshd: Failed password for root from ::ffff:220.127.116.11 port 56057 ssh2
May 1 07:28:08 blue sshd: Failed password for root from ::ffff:18.104.22.168 port 56057 ssh2
May 1 02:28:11 blue sshd: Failed password for root from ::ffff:22.214.171.124 port 56436 ssh2
May 1 07:28:11 blue sshd: Failed password for root from ::ffff:126.96.36.199 port 56436 ssh2
May 1 02:28:13 blue sshd: Failed password for root from ::ffff:188.8.131.52 port 56591 ssh2
Just thought it was funny :P
(oh yeah, and I will report it to them!)
Some of the features annouced so far include (quoted from the post linked above):
Database abstraction - with support for PostgreSQL and SQLite planned alongside that of MySQL.
Automatic installation of packages into themes other than just the default.
Email templates to simplify customization of forum emails.
Moderation center including post, topic and attachment moderation - to allow approving of user content before it is made public.
User warning system.
Additional group functionally including group moderators and requestable/free assignable groups.
WYSIWYG editor to provide an intuitive user interface to those users not familiar with BBC.
Permission improvements such as group inheritance and permission profiles to further reduce the complexity of the permissions system.
File based caching for a performance increase on all forums regardless of whether an accelerator is installed.
Mail queuing system to stagger the sending of emails to improve performance on large forums.
Advanced signature settings to allow the administrator of a forum to more tightly control the contents of users signatures.
Personal messaging improvements including ability to automatically sort incoming messages and a variety of display options.
Improved upgrade script with better timeout protection and simpler user interface.
Custom profile fields to enable administrators to add additional member fields from the administration center.
This release is going to be awesome. I've been trying out a few alpha versions of it, and it looks amazing. Note that it will still be a while before a public beta, as there's still some bugs to work out.
I recently discovered that John Howard (the Prime Minister of Australia) has a MySpace account at http://www.myspace.com/johnwinstonhoward. What I found funny is that he has 5980 "friends", including George W. Bush and Peter Costello :P
This tutorial will show you how to set up a serial console on a Linux system, and connect to it via a null modem cable. This is quite useful if your Linux server is in a headless configuration (no keyboard or monitor), as it allows you to easily get a console on the system if there are any problems with it (especially network problems, when SSH is not available). In the end, the GRUB menu will appear over the serial link, as will the bootup messages (output when booting the system). I'm using Debian Etch on the server and Ubuntu Edgy on my client, although this should work on any Linux distribution.
The other day, I was looking for an easy way to restore a MySQL dump (or backup, whatever you like to call it) in PHP. I've previously used a segment of the code from PHP MySQL Backup V 2.2 for this, but it didn't seem to support FULLTEXT indicies that well. So, I searched around, but couldn't find anything. I even asked on the PHP IRC channel, and they suggested to use shell_exec to call mysql (unfortunately, I've disabled shell_exec for security reasons). Looking closer, I noticed that this was actually quite easy to do.