Twitter Bootstrap Review

Twitter Bootstrap, which was renamed to simply Bootstrap, is am amazing tool for web developers. It is now my favorite way to get a new site going. As a developer, I feel it is powerful and flexible, but not bloated. It is just the right tools for almost any project. Check out their official website here. It comes in a very light and simple package that includes:

Google Analytics Event Tracking in Drupal 7 (Hooks & OnClick)

Event tracking with Google Analytics has pretty much become a standard on all new sites. Google provides ample documentation on using the analytics, but the tricky part is getting it to integrate the way you want with Drupal. The Drupal Google Analytics module offers basic functionality out of the box. It can track page hits, specific user roles, offsite links, and download clicks. It also supports custom variables using tokens.

Chrome Extensions for Web Developers

There are many 'Top X useful extensions for web developer' posts out there. The problem I have with them is that they recommend multiple modules that do the same thing. For example, the 'web developer' and 'pendule' modules both offer a color picker tool, so I don't really see the need for another special extension just for color picking. Same with browser resizing, why would I want 3 extensions installed for that? Also, everyone should already have a method of taking screenshots (full or partial.) Even Windows comes with a basic snipping tool that does a perfect job.

16 Recommended Drupal Modules

These 16 recommended Drupal modules are not all recommended for every project, but they among the more useful modules out there. Many of them are useful only for site developers.

Admin Menu - An improved admin toolbar with drop down menus.

Backup Migrate - A must have for importing/exporting Drupal databases. Conveniently omits the data from the cache tables. Admins can schedule regular backups on a timed basis.

CakePHP vs Drupal

There are many PHP frameworks out there, but 2 of my personal favorites are Drupal and CakePHP. WordPress is another popular in the world, and I have done many projects with it. I will say that WordPress has great documentation and a clean API, but it is rather limited in its capabilties. CakePHP and Drupal have proven to be flexible, scalable, and perfect for certain uses. The bottom line in this debate is that both are great, and both serve their purposes. Between CakePHP and Drupal, I feel a project of any size can be accomplished. 

Create Script from Bash History

The script program (bsdutils) will output the whole terminal output to a file. This can be helpful for logging and creating scripts out of history.

The approach here is to output the command history to a file and then manipulate the file a bit to get what we want.

history 3 >

This will output the last 3 commands to Note that the actual history command will become the most recent event in history, and will be output in the file. This can be edited out manually or using this command:

Bash Shortcut Keys

Sometimes when working we don't always have a fully featured keyboard. Whether using a small portable bluetooth keyboard, old software, or you just want to be a command line ninja, these shortcuts are very important to know to increase productivity and to work through technical limitations on keyboards.

Useful Linux Bash Shell Aliases

Typing long commands over and over gets old. Use bash aliases to make your life easier and impress your peers. Add these to your .bashrc and/or .bash_profile. Personally I use only one and symlink them together. These are just some examples of how you can use alias. Anytime you find yourself repeating lengthy commands think about creating an alias. Optionally, if it's a long command you are only going to be using for a short period, be sure to use history tools like ! and !? to quickly repeat previous commands.