Articles

Web Stuff

Mac/Apple keyboard shortcuts, hot keys, tips and tricks

I've put together a cheat sheet of some of my most-used keyboard shortcuts and hot keys. I use the crap out of these, and I can say they really save me chunks of time every day.

Ubercart stock, inventory control, out-of-stock products in cart

I spent a good chunk of time trying to find the best solution for controlling inventory on an Übercart I've been developing for a client.

The biggest issue is that by default Übercart doesn't stop customers from purchasing out-of-stock products.

Compress or aggregate your CSS in Drupal

You can speed up your drupal load times a bit if you compress or aggregate your css files. Drupal can do this for you!

Simply visit Admin > Site Configuration > Performance and enable Aggregate and Compress CSS files. Submit the page and check out the results. All of those @import() calls will be condensed and you'll notice just one css is loaded.

Build a simple SSI PHP-based template for your website

For simple websites it's handy to separate elements that are shared across pages, such as your header and footer.

Clear DNS Cache on Mac OS X Leopard

You can clear the DNS cache on Mac OS X Leopard in the Terminal application.

Open a terminal window and type:

beer$ dscacheutil -flushcache

That's it. If it didn't work, then your network server probably needs its cache cleared, or the DNS just hasn't propagated yet.

Developing for multiple roles with Drupal in one browser

Often when developing Drupal, you'll have multiple roles that you'll need to test. Generally, I'll be logged in on one browser as admin. I'll have another browser open for another role.

So I go in and make a change as admin, then visit the other browser to see how the change affects the other role.

When to use Tools?: Markdown versus Textile

Markdown vs Textile... this is a tough one. I use both pretty regularly, and each has its perks and weaknesses.

When to Use Markdown

I usually choose Markdown over Textile when I'm:

  • Jotting down general notes
  • Drafting client proposals
  • Reformatting HTML content

Markdown is much easier to read during editing, even without converting the document to HTML.

Adding Google Analytics into a Large Number of Static HTML Pages with Perl

If you've ever dealt with Dreamweaver based templates, then you'll know all it really does it insert static blocks of code wherever the template/library item tags are located. Dreamweaver does a pretty good job at this, but once sites grow to over 1000 files, it's a bit more complicated and time consuming to modify every page easily...

Images: Embedded vs. CSS Background Images

There's a line between embedding images in HTML and applying the image as a background image via CSS. I often see them used incorrectly.

It all comes back to semantic markup. Semantic refers to meaningful, logically arranged (X)HTML markup. The content on a webpage should be in semantic markup. It should be readable with or without stylesheets, or in a plain text browser.

Music Stuff

Crappy guitars make for some of the best sound!

When I started learning how to play guitar, I was using a Stella, which is a Harmony brand guitar. These guitars are cheap and kind of crappy, but I gotta say, I love them like no other guitar!

I learned all the basics on a crappy Stella. This one went through shear hell. She'd been dropped at least a hundred-thousand times. She also went on long road trip with me, in the trunk.

The importance of heart in music

Lately I've been hearing lots of trendy music. There's been an uproar of popularizing indie rock. Get that? Indie rock is now mainstream. They've even got their own music video station. MTVU I think, or something like that. Those that know me know very well that I don't watch that shit.

How to become a superstar rockstar band

I've played in a good number of bands. I've written at least a few hundred songs. I've recorded several bands for income. I've spent thousands of hours recording music in my own small studio. I've played all the instruments and all the parts.

I'm not sure how many of you are out there, but your dreams of being a rockstar band are pretty much pointless.

Complaints about Computer Based Electronic Music

I started playing guitar when I was about 10 years old. I didn't start actually writing songs and getting creative with it until I was about 13 or 14 years old. Teaming up with a good friend, I started writing songs, playing other instruments including bass, drums, and keys, among others.

Beer Stuff

Whats the main difference between a Lager and an Ale?

What's the main difference? Well, it's actually quite simple.

Yeast ferments beer. Some yeast likes to float at the top; other yeast likes to sit at the bottom. This is pretty much the main difference, with the exception of the temperature of the brew.

Ales

Ale yeast is a top fermenting yeast, so it sits at the top of the brew while it does its job.