Archive for 'Computers'

The Importance of Backing Up Your Site

Working for a fairly large webhost, I often see people who got “hacked”, and their websites destroyed.  I often laugh, because people don’t often get “hacked”, but often simply have their password guessed, which gives the “hacker” full access to your site, account, and files.

98% of the time, that’s the case.  Given, there’s always the chance that someone got root access to your server, and really did “hack” you, but that’s very rare in today’s day and age.

So, I often laugh, until it happened to me back mid-June.  I noticed I couldn’t load the stats pages for any of the sites in my hosting account (of which there are quite a few), so I contacted my host.

Their response was “The page won’t load because it’s 0kb”, a file size of zero? That stats package has worked for years on some of my domains, I thought that was odd.

So I uploaded a new version, and went on about my business.

Hours later, I realized I should go through FTP, and look for other files that had been modified recently.  Sure enough, every index.html and index.php file, in every domain, in every subdirectory had been modified.

The “hacker” (read: bored kid in some random European country) added some code to all my pages that was supposed to redirect a visitor to a spam site.  Luckily, he did it wrong, and none of my visitors were affected.

Needless to say, I was bullshit.  I spent a few hours going through, and removing all of the code, by hand.  I got annoyed, and finally asked one of the guys who works for me, for help.  He wrote me a nifty little bash script that I could run.  Luckily, my host gives me SSH access, and I managed to run it against my entire account, and clean out the rest of the modified files, without issue.

The reason I got hacked? Simple. I had a stupid, easily guessable password.  Exactly what I laugh at our customers for.

So, I panicked.  I went in, and first changed my hosting and FTP passwords.  I then thought about how to change my MySQL password.

The problem with that is complex, but follow me.  If I change the password on the MySQL server, my sites will go down, until I update them one at a time.

If I change my password in the sites, they’ll go down until I change it on the server.  Follow?

So I opted to create a new MySQL user, with a new password all together.  I then (using the same find and replace code from earlier) updated my username in all my scripts, then my password, and voila, back up and running.

I then began thinking about how to protect myself, should this (or something worse) happen again.  I looked for scripts that I could run on the web server, to backup my sites and databases, but couldn’t find anything that would work.  I then stumbled upon HandyBackup, which runs on my computer at home.

It simply connects to your account via FTP, and downloads all of your files to your computer.  This is great, assuming you’ve got storage space to keep all those backups around.  If you upgrade, you can also have it burn to DVD automatically, but that’s costly, and not very effective.

So, each night of the week, I have the application connect, and download all of my changed files.  On Saturday night at midnight, it connects and downloads all of the files (changed, or not).  So, at worst, I’m a week out from a complete restore of files.  And any file that’s changed, I’m only 24 hours (at most) out from a clean working version.

It takes up quite a bit of space, because I host a lot of sites, however I think it’s worth it.  It’s also helpful for when you accidentally break some code on a page, and didn’t think to save a copy right then.  You just jump to your backup, and voila.

If you run any website that you “make money” from, or that “is my business!!”, you should take it upon yourself to do the backups, and not rely on your host to do it.  While most hosts do it anyway, some charge you to do the restore. (My company doesn’t, but the company I host with, does.)  You know what they say, if you want something done right, do it yourself.

WordPress 2.6

WordPress 2.6 was released last night/this morning, and is a big improvement. There’s some great new features, and some security patches that were done.

I went through this morning, and upgraded all my WordPress installs, which is always a fun (yet daunting) task.

I began repurposing the old media tower last night, into a home web-server. Not that I plan on using it, but just because I want to see if I can do it, from the ground up.

Trying to run Fedora 9 as my OS, having a bit of trouble with DNS and internal routing though. Going to work on that this weekend.  Am also planning on trying Ubuntu as my server OS, as well.  I like Fedora, but apparently Ubuntu’s all the rage right now.

Moving from iTunes to Windows Media

I thought it would be easy, and quick to leave iTunes.  I just wanted to break up, and start my new relationship with Windows Media Player/Center.  Why? Easy.

When we moved into our new place, there was no room in the living room for the “Media PC”, to be hooked up to the stereo anymore.  (We used to stream iTunes from it to the surround sound, and out other PCs).  So, I looked for a smaller PC, and determined it wasn’t worth it.

I then remembered that the XBox360 streams music from Windows.  Unfortunately, the 360, and iTunes don’t like each other, at all.

So, I made the decision to convert all of my music to Windows Media player, which sounded like it’d be easy.  They’re just music files, right?  Not so much.

See iTunes creates their own propriatary filetype (AAC, or M4P), when you rip a CD through them, which I’ve done with hundreds of gigs of music.  That creates a problem, as Windows Media can’t play/read AAC or M4P files.

So I had two options: 1) Re-rip hundreds of CDs, which took months to rip in my spare time, or 2) convert the music.

I opted for the music conversion, and found a program called “Protected Music Converter”, which boasts that it can “quickly and easily convert music files to mp3″. I thought “Great, it’s exactly what I need!”

I started running it at 9PM last night.  It’s not 9:15AM, over 12 hours later, and it’s only converted 457 tracks. That’s only .63 tracks per minute.  At this rate, it might have been faster to re-rip them.

It’s gonna be a long weekend. Good thing the software’s automated, and making the mp3s on its own.  Once it’s done, I just need to copy them over to my new terrabyte hard drive that I bought to house the music collection last week. (Bringing my total storage capacity to just over 8 terrabytes. I’ve got an obsession.)

Will update with a final “it took this long” post when it’s done.

Wireless N Rocks

We finally made the jump from Wireless G to Wireless N yesterday, and I’m glad we did.

My D-Link (DI-524) did it’s job for quite a few years, but it was time to get the “latest and the greatest” at home.  The new laptop I got for work had Wireless N built in, so I used it as an excuse to get the new networking gear for home, to utilize it.  That, and I broke the wireless adaptor on our media center Saturday night.

So, we trekked over to Best Buy, and picked up a Linksys WRT600N, (2) Linksys WRT600U, and a 1TB Western Digital MyBook external hard drive.

I remember when I set up the D-link. It was my first experience in setting up a wireless network, and I had to literally fight with My X-box 360, and Tivos (all three of them) to get them on the network.  I feared that the Linksys would be the same thing.

Luckily, Linksys is friggen amazing, and was beyond easy to use.

I’ll admit, at first, it was annoying that the installer software for your PC that they give you, isn’t 64-bit compatable.  That threw me for a loop, but I worked around it.

I had the router up (which looks awesomely like a robot, and Christine’s dubbed it the ‘command center’) and my PC connected to it, in about 10 minutes, including unpacking it.

Christine’s laptop, my laptop, and the media center were on the network about 20 minutes later.  The three Tivos, PlayStation 3, Wii, and X-box 360 joined the network about 45 minutes later.

Not one device got the dreaded “can’t connect” error, which was super-awesome compared to my experience with the D-link router.

So the best part of Wireless N, specifically the WRT600N router?  Two different bands.  2.4 Ghz, and 5.0 Ghz.  So, any device using your network can be assigned to a different band, for “less interference”.  I set all the PCs up using the 5.0 Ghz band, and the other electronics on the 2.4Ghz.

The wireless PCs in the house now get 270 mbps.  On the old G router, 54 mbps was the cap.  So, assuming that I can really get 270 mbps, that’s five times faster.  And forget the wired connection through gigabit ports.  I love it.

The other benefit of this new router, is that there’s a USB port right in the back, where my new terabyte external drive is connected.   So any PC on the network can get to the files, and store/share from it.  Amazing.

Linksys, also, has better communcation between different operating systems.  With the D-link, my Vista machine couldn’t talk to any of the three XP machines we’ve got, and vise versa.  They couldn’t share a printer either.  Linksys doesn’t care.  I can connect to any machine in the house now, as well as share the printer without having to do anything out of the ordinary.  That alone was worth the price of the new router.  It was such a pain to have to have Christine email me a file that she needed me to review, or a photo to resize, etc.  Now she can just dump them to a shared drive, and I can grab it from there.

The wireless networking of the 1TB drive is also nice.  Knowing that I can store all the digital photos I take with my new camera (Digital Rebel XTi, Canon rules) without worrying about running out of space, or bogging my PC down, is awesome.  Burning photos to DVD is great, but keeping them readily accessible is priceless.

Response to my previous post

After my previous post on Best Buy’s inability to know anything, I received an e-mail from Robert Stephens.  Who’s that, you wonder?  I thought the same thing.  The e-mail was titled “The Geek Squad”, nothing more, nothing less.

So I opened it, and decided to see if it was someone else who had a negative experience with “The Geek Squad”.  Turns out, Robert Stephens is the guy who founded the squad back in 1994.  Based on my traffic logs, he must have had a Google alert type alarm set up for negative things about his team.  Within 12 hours of posting, I’d already had an email back, completely without solicitation.

My original post was merely a warning that should always be careful when making a purchase.  Not everyone knows everything.  I wasn’t looking to bad mouth the Geek Squad or get any type of freebies out of the deal.

Robert asked me if the 64-bit version was working, or if I wanted him to comp me a copy of the software.  I thanked him, and let him know I was all set, and that I was up and running.

Nice guy.

Coincidentally, I just got my delivery of the 8 gigs of PC-5300 DDR2 that I ordered two days ago, and installed it. 64-bit Vista is now just as fast, if not faster than 32-bit.  I ran the Windows Performance test through Vista, and got the same score (a 5.8).  I’m guessing the PC-6400 I wanted to buy (but was out of stock) would have pushed me up to the 5.9 mark.  Oh well. I’m happy, for now.

My fight with Vista, and Best Buy’s inability to know anything.

I decided to finally take the plunge, and upgrade to Vista 64-bit just before Christine and I left for our honeymoon.  I figured it would be a simple reinstall of Vista, with the 64-bit version, easy enough.

I went through the daunting task of backing up everything on my machine, luckily I’ve got a spare media server kicking around with some extra space on it.  So files are backed up, I head to Best Buy to get the 64-bit version.  Sounds simple, eh?

First, let me clarify why I’m upgrading.  1) My processor is 64-bit, why not utilize it? 2) I want more RAM, 3 gigs is barely enough to run Vista, forget any other programs. Despite what Dell tells you, 1 or 2 gigs of RAM is not enough to run Vista comfortably.  In my stock install of Vista Home Premium, I idled at a gig and a half.  (though the 64-bit is much worse at just over 2 gigs idle now, but that’s another story.)

So, I go to Best Buy, and grab the Home Premium Vista “Upgrade” disk, and proceed to the computer department.  After 45 minutes of waiting, I gave up and approached the “Geek Squad”.  After conversing with four of them over half an hour, they all assured me that upgrading from Home Premium to Home Premium 64 would be no problem.  Great! I paid my $99.99 and off I went.

I got home to find out that the upgrade doesn’t come with the 64-bit version.  A few click throughs to Microsoft, and I purchased the 64-bit DVD for a mere $9.95. No biggie, they said 5-7 weeks for shipment.  I was a bit mad. Luckily it only took 4 days to get to me.

So that Thursday (the day before my wedding, mind you), I began the install.  Come to find out, that you can’t ever upgrade from 32-bit to 64-bit.  You have to buy the full version and do a clean install.  Fine, no worries.  I go back to Best Buy, and grab a full version of Vista Home Premium for $239.99.  I confirm with not only a “computer salesman” but the “supervisor” of the computer department that the “full version” has the 64-bit version enclosed on the DVD, and that I should have no problem.  That, of course, is after the “supervisor” tried to get me to buy the “Ultimate” version.  When he couldn’t tell me what features were different that warranted $160 more in price, I told him I was all set with the Home Premium version.

I get home and begin my install.  I open the package, and pull out the tray.  Big surprise, on the disc, clearly printed “This disc contains only 32-bit software”. Best Buy? Wrong?! You don’t say.

Luckily, I had already ordered the 64-bit DVD.  So I hoped (and prayed), that they don’t tie the disc to a serial number (which I had to provide from my “upgrade” disc when I ordered the 64-bit DVD.)  Luckily, they don’t.  I dropped in the 64-bit DVD and began the install.  Worked like a charm, once I gave it the serial number from my “full” version of Home Premium.  So, I now have a wasted $99.99 version of the “Upgrade” which is more or less useless, as I doubt I’ll upgrade any of my other machines at this time.  Not that there’s anything wrong with Vista, I just think I’ll leave well enough alone, for now.

As for 64-bit, so far, no issues. All my hardware works (including my new Canon Digital Rebel XTI), my software’s all working, with the exception of a few small relatively unimportant applications that I can live without, for now).  My only complaint is that everything’s much slower (go figure), and Vista idles using more RAM (just over two gigs, with nothing but Thunderbird open.)

I placed an order today for 8 gigs of PC-5300 DDR2, which will hopefully help with things.  Right now, I’ve got 3 gigs, and it’s just not cutting it.  I was holding otu for PC-6300, but it’s out of stock at Crucial, and I don’t feel like waiting.  I’ll update after the RAM gets here, and see how much of a difference that makes.

That’s all for now.  If you want to check out some shots taken with the new digital camera Christine bought me, the honeymoon photos are up at Our Website, I scaled them down from 10.1 megapixels to about 4 or so, to speed up page loads.  I’ve got the originals saved.  If you want to see them in all their 10.1 megapixel glory, shoot me an email and I’ll send them along.

A Month later?

Wow, a lot’s happened in the last month.  Where to start, where to start?

  • MovieSnobs is doing great.  We set a new record for unique visitors per day last month (average), and are already on par this month to beat that record.  Christine’s been kicking ass, spending a lot of time working on content.
  • We started a few new websites, including a “corporate” site, for ourselves.
  • I went to Canada for work. (PEI, and Nova Scotia)
  • I went to Phoenix for work. (It’s hot there, don’t go. Trust me)
  • I finally got the new computer up to 100% working.  Even with all its quirks, I still like Vista.  It’s aesthetically pleasing, and once you get used to it, it’s fine.

I’ll be spending the next few weeks/months working on the various TopFive related things that are on my plate, including a redesign for MovieSnobs, a design for TVSnobs (one of the new sites), a design for TopFiveInc.net (another new site), helping our friend Trish learn how to use her new site, and writing articles and reviews for MovieSnobs.

I picked up a copy of The Prestige over the weekend, the book, not the movie. So far, the book’s more interesting and confusing than the movie.  Of course, we all know how much I loved the movie, however, I’m starting to think I like the book more, and I’m only half way through.  Will post again, once I’m done.  Hopefully the end holds out, and isn’t a disappointment.