Friends

I have connected with my friends using WordPress and the Friends plugin. This means I can share private posts with just my friends while keeping my data under control. If you also have a WordPress site with the friends plugin, you can send me a friend request. If not, get your own WordPress now, install […]

Biking Favourite

A couple mountain biking videos for you today. Well, sort of.

Kris Holm is a unicyclist who used to ride some pretty gnarly trails (yes, on the unicycle). You can see some of this on youtube. Looks like he has gotten more into more of a trials/street form of riding.

NAUCC 2010 from Max Schulze on Vimeo.

The next video is sort of a promo for a Contour video camera. I love this vid though. It just gets me stoked to go out and ride. Mike Kinrade is know for his big mountain riding style and it shows here. Looks like he was just out having a great time with his buddies which is my favourite reason to go mountain biking.

Cron Errors

I’m having a strange problem on some of my Drupal sites. Hourly a cron job runs to rebuild caches and do regular maintenance. This is something every Drupal site needs.

Some time in the last 6 months I was finding that cron would get stuck and not complete in the hour. Another would get started and block. Eventually my webhost stopped spawning processes for my user which lead to weird errors on my web page (page not found errors).

I was logged in as me, not the uber administrator when I started messing about. I cleared the cache tables, including the cache_menu table. I was planning on rebuilding the cache table, then the menu system. I was logged in with the wrong account, and I couldn’t remember the administrator account. Since I had thrown out the menu system, I couldn’t navigate to the lost password page.

I had royally messed up my site.

I fixed it by going into the DB and copying the known password from one user to that of the administrator account. I logged in as administrator, ran cron.php manually, then hit up the page to rebuild the menu system.

So far so good. The next day I ran into this tip: How to reset the password of user 1. A little DB query action to set the administrator account password.

I am still having the weird cron blocking issue though. Every couple days I just log in to my web host and kill the running processes and then everything runs fine for a bit. Bandaid solution that is labour intensive.

I can’t figure out how to debug cron issues in drupal though. I’ve read some tips that running update.php can reset things, but that didn’t work for me. I’ve read this page that suggest modifying core files to add more logging about which module is running cron. I think that will be my next step.

Lusting List

I’ve done a bit of window shopping as of late. I’m holding off on new purchases for a bit while I am looking for a job. That and I don’t like wasting money. Unfortunately lusting over items is hard. Very hard.

On boxing day I went into a Chapters and spied several books that I would love to read if I had the free cash and the free time.

Front End Drupal

Cracking Drupal

Regular Expression Cookbook

WPF In Action

Yesterday I was in Munro’s and spotted a couple more books that looked interesting:

From Camera to Computer

Googled: The End of the World as We Know It

Yesterday I was also in Lens and Shutter perusing.

I fell in love with the Gary Fong flash diffuser sets until I saw how big they were. Huge. I then looked at some other diffuser options. I ended up finding the diffuser I wanted at a reasonable price, but they didn’t have the one I needed for the Canon 430EX.

I also spied a wonderful new camera bag. The Crumpler $7 Million Home. Looks awesome, and I think it would hold my gear more comfortably than the current bag I have.

What’s the point of typing all this up? To remember for later. If when I have a job and I have some spare cash I still think I want these items, I now have it recorded what they were.

Mistake Effect

A couple nights ago I did some maintenance here on muddylaces. I fixed a mistake I made a long, long time ago. When I first created this drupal site the first account I created was for gfox. I hadn’t read the best practices guide, so I didn’t understand that this was a bad thing.

Changing this in the database proved daunting and fraught with danger. While I was reading the Using Drupal book I discovered the views bulk operations module.

This module provided the ability to change the owner of a node. A light bulb went off and I quickly realized what needed to be done.

I set up a view to see all nodes (content) on my site. I then configured the view to allow bulk editing, and chose the “Change the author of a post (node_assign_owner_action)” operation. I tested this a bunch before enabling this view. The main issue I found was that I couldn’t target content for a specific userid. Instead I targeted content for the currently logged in user.

I then created a new_gfox account, and then when I was logged in as my first account started using the view to assign the content to my new account. A few minutes later I was done.

It was pretty easy to do this once I had the missing piece of the Views Bulk Operations. After the assigning was all done I renamed my first account, then renamed my new account.

The only unfortunate side effect was that the notification or subscription module went berserk with all the changes and sent out a ton of email to people who were subscribed. Woops, should have disabled that for a few minutes.