How To

Fun with blur

There are all sorts of blurring effects you can create, either when you take photos (when they can be intentional or not — but hey, sometimes they’re happy accidents) or after the fact, in processing. When you press the shutter, you can create movement blur or zoom blur. Or you can take a perfectly normal photo and blur it in Photoshop, which can also make it look amazing. Here are a few examples.

This one’s rotational blur, done by slightly overexposing to get a longer shutter time and rotating the camera on the X axis (the line of the long corridor).

This one’s zoom blur, which is where you pull the zoom in or out really fast while pressing the shutter. Zoom blur is fun!

This one’s what I call directional blur (I don’t know the official name for it, if there is one). Move the camera forward while the shutter button is pressed.

And finally, this blur is done in Photoshop. It’s a movement blur to make it seem as if the wall shadows are growing.

Have fun!

Standard
How To

Why I fixed my wheelbarrow instead of chucking it to the scrap heap

This video explains why I chose to fix my wheelbarrow instead of throwing it away. (It has to do with conserving resources and reducing waste.)

Its inner chamber couldn’t be patched after too many punctures, and when I went to Home Depot and Lowe’s, I discovered I couldn’t buy a new inner chamber, because they’re no longer stocked. I’d have had to buy an entire new wheel and tire assembly, for almost the same price as a new wheelbarrow. What I did instead was to buy a new tubeless tire, which is made of solid rubber and never needs replacing, thus saving my wheelbarrow from the scrap heap and eliminating the need for new wheels in the future.

Standard
How To

My bed frame comes to life in Latvia

Armands Podoļskis, a reader from Latvia who saw my bed frame article and watched the videos where I showed how I made it, wrote to me recently:

I would like to thank you very much for your videos of how to make bed frame. They were very useful. I used them to make bed myself. I’m from Latvia, EU country. This is great that you can share something valuable and others can use it in the other side of the world 🙂

You’re welcome Armands, I’m glad I could help!

With his permission, here are a couple of photos of his bed frame.

If you’d like to make a bed like this one, feel free to do so. Read through my original article and watch the two videos I posted in it as well. (Just don’t ask me for the plans and exact dimensions of every part, because I lost them during some renovation work.) It’s easy, inexpensive, a lot of fun and you’ll end up with a very sturdy bed!

Standard
How To, Video Log

The cat house – part 9

More than two years after publishing parts 1-8, here’s the final installment in this series, which recaps the features of the cat house I’ve designed and built and describes some improvements that I’ve made to my original design, after testing it through two winters.

We now have four cats (Sasha, Zuzu, Tira and Bubu), as opposed to the original two kittens (Mitzi and Trixie) which you saw in the other videos. Mitzi and Trixie now live with my grandmother in Maramures.

So, what improvements have I made?

  • Installed shingles on the roof
  • Built an upper level so the cats can really stretch out while they’re inside
  • Re-did the wall through which the cats enter the house
  • Drilled some aeration holes in the walls
  • Removed a pet door which I’d installed at the entrance, for the same reason I drilled the aeration holes, which is to introduce enough air flow in the house and eliminate the moisture that used to gather on the inside walls
  • Built an add-on lobby which creates an ante-room on the porch and becomes useful during cold weather

Hope you enjoy this final video and it inspires you to build a nice cat house or dog house for your pets!

Here are the other eight videos in the series:

Standard
How To

How to avoid nightmares when upgrading your Drupal install

I had some real “fun” today (about a full day’s worth) after upgrading one of my Drupal installs from 7.7 to 7.8. The whole site went awry: the template no longer showed, I was only getting text, I kept getting either 404 or 500 errors when clicking on links, and nothing I did seemed to make it better. Even restoring from a backup yielded the same garbled pages. It’s fixed now and working perfectly (well, not perfectly, because some modules are still in beta and there will always be some errors, but it’s working as expected, let’s put it that way).

If you’re only here because your site is garbled after an upgrade, let me save you some time. There are two reasons (I know of ) for it:

  1. You have Clean URLs enabled and your .htaccess file got replaced. That means the RewriteBase rule is now commented out. Don’t bother to turn off Clean URLs, there’s no need to do that. Uncomment it, refresh your site and links should be working properly.
  2. If your theme is now messed up and you only see text, plus you can’t navigate around your site, you have your site cache and compression turned on, don’t you? Yeah you do, and now the new version of Drupal doesn’t know how to read the cache files, because it didn’t write them. So do yourself a favor and turn the cache files off. You’ll have to use the “dirty” URLs if you can’t navigate to the admin panel, so instead of example.com/admin you’ll need to type example.com/?q=admin, and so on and so forth. Disable the compression and the cache, and delete all the cache files. Presto-change-o, your site now looks normal again!

So, what can you do to avoid having the same crappy day I did? Let’s take it by the numbers, shall we?

1. Put your site in maintenance mode.

2. Always, always back up your site and your database before doing a core upgrade.

I would recommend doing a backup even before upgrading modules. Don’t rely on backup modules. Do the backups manually, and just so you won’t panic when something goes wrong, test your backup method by restoring from it to a separate install, to make sure you’re doing the right things. This is especially important for database backups, where it’s REALLY important for you to be able to restore from a downloaded SQL file.

Before doing the core upgrade, do a full backup of the entire site, not just the sites folder. And just to make it easier for you to restore the sites folder afterward, do a separate backup of that folder, and of the .htaccess file at the root level of your drupal install. And back up the database, that’s really important! If you do this right, you’ll only need to use the database backup.

3. Turn off all site caching and compression and clear the site cache. This is really important! If you don’t do this, it’s quite likely that your site will be just as garbled as mine after the core upgrade.

4. Create a new site folder on your server, because you’re going to do a brand new install of Drupal (whatever the latest version is). Inside that folder, wget the latest drupal tar.gz file and untar it.

Okay, now comes the fun part.

5. Delete the sites folder in the new Drupal install and copy over your old sites folder.

6. Make sure any changes done to your .htaccess and robots.txt file are reflected in their counterparts in the new Drupal install. Or, it’s quite likely that the old thing that you need to change in the .htaccess file is to uncomment the Rewrite Base line. Find it and uncomment it.

If you don’t uncomment this line and you have Clean URLs enabled, your site will either give you 404 or 500 errors when you try to access the admin interface or alias URLs, so this is quite an important step!

7. Restore your database from the SQL backup. That is, create a new database on your server and through the web interface or through SSH, restore your database backup to it, to get an exact copy of your live Drupal database.

8. Now run the database update script. Browse over to your Drupal install + /update.php and run it to make sure the database upgrade is also completed.

9. Now you have some choices to make. Once you do this, you have two working installs of Drupal: the old, reliable install, which you’ve been using, and the new install, which should be working, but who knows what bugs there might be in the code, that you’ll only discover as you begin working with it.

So now you have two choices: you can either map your domain to the new directory or rename the old directory then rename the new directory to match the old. In other words, you’ll want your domain to point to the new Drupal install. Or, you have the luxury of saying “Forget this new version for now!” and keep using your old Drupal install, until they work out all the bugs (that’ll be the day…)

That’s it! Pat yourself on the back. This should have taken about 15 minutes or less, not a whole day…

I hope this has been helpful!

Standard