Skip to content


FeedBurner + Google search cache = Instant Blog Back Up

Recently, I’ve had a problem with a blog that I manage. Due to a server issue, the database was totally screwed up. It was weird. The first thing I noticed is that the posts for the last five (5) or so days were gone. I thought that some absent minded tech had inadvertently restored a previous backup.

Then I noticed that not only posts were gone, but some settings reverted back to their original values. Upon closer inspection, I realized that certain entries in certain tables in the database were deleted. Hmmph, who knows what the problem was. So I figure that it should be a simple enough task to get a backup from my web host. I was wrong about that, very wrong.

Now let me first state that I was also wrong in not maintaining my own database backups. There is absolutely no excuse for this, so I take full blame for my problem. If I had a database back up, I wouldn’t have been in the situation that I’m in right now. Anyway, moving on. After over 4 days of moving back and forth with tech support, they were able to supply me with their earliest backup, which was dated the day after my database meltdown. So I was screwed, or was I?

Posted in Blog, MySQL.


10 Most Successful Web 2.0 Startups

Web 2.0 has been really spreading like wildfire the past few years, but there area few sites that have really taken total advantage of it and used it to the fullest. Here’s the big list of 10:

  1. MySpace
  2. YouTube
  3. FaceBook
  4. Wikipedia
  5. Bebo
  6. Digg
  7. Flickr
  8. Netvibes
  9. Del.icio.us
  10. Meebo

The first 4 aren’t a big surprise. These are the big contenders in the game right now. I thought Digg and Flickr would have a higher ranking though. What does surprise me is Meebo in at number 10. It’s great to see a new start up gaining ground so fast.

Source: 10 Most Successful Web 2.0 Startups To Date - rev2.org

Posted in General.


Weebly Editor - Web 2.0 WYSIWYG Editor

Weebly has finally launched, well again. What is Weebly? It’s online website creation using the latest and greatest of web 2.0. It’s a WYSIWYG editor, but so much more. You can choose to host you website at Weebly, where you will get a sub-domain, or you can host at your own domain. For the latter option you will need to change the CNAME records of your domain name so that they point to whaterver.weebly.com.

Weebly

Everything is done in a drag and drop interface: pictures, text, headings, even page titles. It reminds me of Google’s website creator just a bit.

One interesting thing that I’ve seen is the way you can preview different designs or themes. As soon as you hover over the theme the entire page changes to show you how it would look.

Check out Weebly if you’re not into all this nitty gritty web stuff.

Posted in Ajax.


Reader Input: What PHP Framework Do You Use?

There are a bunch of PHP frameworks, too many if you ask me. I’ve tinkered around with CakePHP, Zend Framework, and Code Igniter. I’m curious to know what you guys have been using and what you find quick and easy.

What do you look for in a PHP Framework?

What Do You Look for in a PHP Framework?

  • Quick and Easy (56.0%, 14 Votes)
  • Less Code Needed (16.0%, 4 Votes)
  • Small Learning Curve (16.0%, 4 Votes)
  • Small Footprint (12.0%, 3 Votes)

Total Voters: 25

Loading ... Loading ...

Posted in PHP.


Samsung t509 vs. BlackBerry Pearl - No Contest

I’ve finally received my cell phone from T-Mobile. It’s the Samsung t509, or as I like to call it, the silver plum. My contract was up and I was in search of a new phone. T-Mobile usually doesn’t have a very good selection of phones, so my choices were the Samsung and the every stylish BlackBerry Pearl (the black one of course). Although I am deeply in love with this phone, my budget dictated the former choice.

But back on to perfection. I’m not usually a fan of smartphones. In the increasing era of small, slick, thin phones it seems that smartphones are going in the opposite direction. They are big, fat, and clunky. They make perfect PDAs I guess, but I hate nothing more that to see someone lifting a fat BlackBerry up to their ears and making a phone call. And the way it sits on that belt clip reminds me of those huge Texas style belt buckles that everyone seems to fancy these days. The BlackBerry is fat, the SDA is huge and the MDA is morbidly obese in my opinion.

Posted in Sponsored Post.


Moving Wordpress To A Different Domain

No, I’m not moving, not yet anyway. But Lava is. She scored a domain name which describes her blog so perfectly, that she couldn’t help but nab it up: HowISaveMoney.net. Now what are the odds that this domain would still be lying around?

Lava finally made the big step and “moved into her own place“. Moving domains is always such a hassle, but there are a few things that make the process a little bit easier. I was the Administrator during this move and I must say it was a little bit involved, but I think I got it done.

The Domain

The domain was purchase at 1and1.com. Why not NetSolutions, Yahoo, GoDaddy? Because they all have great promotional deals but then it’s upward of $8 to renew every year. 1and1 has a nice flat rate of $5.99 every year.

The host remained the same, since this particular hosts allows up to 10 domains pointing to it. All the files are simply dumped in a different sub folder. I both love and hate the idea of one consolidated host. It’s easier to manage: one login one set of administration and maintenance, cheaper than several different hosts. But if one sight goes down, they all go down. If a hacker gets into one, he damn well gets into all of them. The load on all of the sites is still very small and way under the allotted bandwidth limit. Most of them are blogs using Wordpress and we all know what a small physical footprint Wordpress leaves behind. If any one site seems to out grow things little family what it turns 18 or something, it will definitely be kicked out of the nest onto it’s on hosting package.

Copy Files

Now this should be the simple part. You copy everything into the folder that is going to house your new blog. There are a few minor changes that you might need to make. Depending on your previous setup you may need to edit the .htaccess file and change the RewriteBase option. But I do think that Wordpress will configure it for you when you set up your permalink stuff.

One change that is necessary is editing your wp_config.php file. If you’re changing databases, you need to make the changes here. If you’re not changing databases you still need to make the changes to the table prefix. I forgot to mention that we still need to keep the old database active (details to come later).

Posted in Blog, MySQL, PHP.

Tagged with , , , .


Importing Large MySQL Databases - When phpMyAdmin Let’s You Down - Get BigDump

phpMyAdmin

phpMyAdmin is a beautiful tool. It let’s you administer a MySQL Database without all the messy commands. Also, some host don’t even allow you access to those messy commands. So, once again, it’s a beautiful tool. You can pull up a window and run individual SQL commands on the database or you can run an entire SQL script. It’s really great. There is a wonderful export tool that allows you to back up your Database as plain text SQL file or a file in GZip format. I have seen exported files get up to 10 MB compressed, which is over 100 MB decompressed, given that it’s just a plain text file.

Importing MySQL Database

But one thing that is lacking is a proper import procedure. Currently, you can import a database by pasting the SQL statements in a form and clicking submit, or by uploading an SQL file through your browser. Now that’s all well and good, but there are some problems with this method. The main problem is with timeouts. Of these there are two kinds, there are browser timeouts and server timeouts. The second problem is file size. Another limit, which you don’t often read about, is the phpMyAdmin configuration limit.

Browser TimeOuts

Browsers have a limited time that they can be busy waiting for response from the server and when doing a database import this is exactly what is happening. Your browser does a little work of uploading the file. After that it’s up to the server. So while your browser says it’s busy it really isn’t. It’s just waiting for the PHP script (phpMyAdmin) to get back to it and say it’s done. With large databases, this can take a time.

There are a couple ways to get around this. In Firefox you can go to about:config and look for the setting that deals with the browser timeouts. Honestly, I even forget what the exact property is. If you use Internet Explorer (well maybe you need to be punished) you’re out of luck, because as far as I know (which is not much about IE) I think you need to go into registry to do this. If you’re browser times out, it simply stops and kills the connection. With no active connection there script on the server comes to a halt.

Server PHP Script TimeOuts

Now let’s say you’ve gotten over the problem of the browser timeout. Good for you. Now you’re hit with something you may not have control over. A lot of shared hosts don’t allow you to modify their PHP configuration settings, for good reason. And a lot of servers have very fixed limits on the length of time that a script can run for. If this is less than what you’re file needs to run, then you’re once again out of luck. There is no work around for this though, sorry.

File Size Limit

Servers have a fixed limit with respect of the size of file that can be uploaded through the browser. Back in the day, it was stuck at 2 MB. Right now, I’ve seen them maxing out at about 8 MB on average. So what do you do if your export file is 10.5 MB? You’re out of luck, that’s what. Now why don’t they modify their export utility to break files up into multiple sizes that can be handled through import? well, it’s too much work. It’s not their problem, get a better server I guess. Once again, you’re out of luck.

phpMyAdmin Limit

phpMyAdmin has a limit in their configuration file that limits the actual number of SQL commands that can be executed. It’s that simply. If your database goes beyond this, then once again, you’re out of luck.

Well not really. You could install your own version of phpMyAdmin on the server and configure it as you like. If this works for you, great. But if your problem is also one of those mentioned above, then again, you’re out of luck.

What Are Your Options?

Posted in MySQL, PHP.


Very Fancy Menus - CSS And JavaScript

Saw this and I was amazed:

fancy_menu.gif

All done with CSS And JavaScript. The implementation is also brilliantly simple. And it all fits in 1.5KB. What’s to lose?

By the way, you can’t tell by the image, but the image under that travel menu; it moves with the mouse hover. Check it out: Facny Menu.

Posted in CSS, JavaScript.