Blog

Fix Facebook Chat Error 500 in Windows Mobile 7.5 (Mango)

I picked up the HTC Trophy this week running Windows Mobile 7.5 aka Mango. Unfortunately, if you do not sync and setup your accounts in the right order the Facebook Chat integration will not work.

Get a Taxonomy Term by Name & Vocabulary in Drupal 6

While developing a site with a master taxonomy driving the navigation, I found a need to return taxonomy data specific to the master taxonomy. Unfortunately, Drupal 6 does not have a native function to do so.

Remove Orphaned Actions from Drupal 6 & 7

I first noticed this issue when using Drush to enable a module. Drupal core will present a warning displaying something along the lines of:

orphaned actions (comment_publish) exist in the actions table. Remove orphaned actions

The answer wasn't readily Googled, but after some quick digging I found 2 solutions.

Method 1

Login as user 1 aka 'admin' and visit: http://yourwebsite.com/admin/settings/actions/orphan.

Increasing Productivity in a Windows Development Enviornment

I sit in from of my PC a lot, and I know I'm not alone in this. I really think that to many people take for granted the extra clicks, actions and time they waste to perform mundane tasks when they could be utilizing that for their deliverables and profitable work. Over the years, I've tried my best to optimize my desktop to skip these things as much as possible. Keyboard shortcuts and 3rd party applications can do wonders to making your life better, and I'd like to share just some of the things I've found that do just that.

Count Number of Rows in a Table using Jquery

This is a quick snippet of how to effectively count the number of rows within a table. There are actually two approaches to take, depending on the markup of the table.

Using a HTML4 style table

$('#tableID tr').length;

Using a XHTML style table

$('#tableID >tbody >tr').length;

When testing this, you can place this code in an alert() or a console.debug() if your using Firebug.

Mass Delete Nodes By Content Type

Using this method, you can easily mass delete nodes from your site by content type. Also, feel free to modify the SQL for your own purposes.

To use this code, you will need a custom module. As a best practice, I always create a site module for instances just like this. Within your module folder, create a 'module_name.install' file and place the following code within it.

Tunneling Steam through SOCKS and SSH

This post is imported from my old blog

The other day at work, I thought I would see how steam run on my work computer. Well, my ports were all blocked by the network except the normal 80, 22, 21 etc. I then thought maybe I could simply tunnel my traffic through my SSH connection

Before we get anywhere, you NEED access to some kind of SSH. I have DD-WRT running on my home router which gives you the ability to login via SSH, I won’t get into that. You can google how to setup an SSH session. Also you will need admin access on the machine your trying to run steam on.

No sound/crackling in Bioshock FIXED!

This post is imported from my old blog

So I got Bioshock today to try on on my new PC and after installing and after the intro movie, the gameplay starts and I have no sound! After a quick google search I found that this has been and is still a common problem for many players. After a bit more sleuthing I found my fix...

To start off I have a Creative X-Fi 7.1 sound card with the latest 5.10.0.19 drivers (patched) so I knew it wasn't outdated. About 200 forum posts later with various fixes I found the perfect combo that got my sound working, and also no more crackling!

Export Views to Code with a Custom Module

As a starting point for my new blog, I'll walk you step by step on how to export your views to code. Before we begin though, I bet your first question is:

Why?

Views are stored in the database and therefore can not be put into revision control. Like much of the Drupal system, the meat-and-potatoes of your website are stored in the database, and Views are no exception. If you should ever need to make a change to a view, you have nothing to roll back to, at least not without restoring a database backup, which is just silly.

First Post

This is one of those boring and completely pointless first posts.
Its here merely for the goal of providing something on the site until I think of something REALLY amazing and cool to blog about.
Until that time, enjoy this post and the stupid-simple design.