Category: Tips
TIP: How to sync your entire Sublime Text project over to your dev server with a single keystroke
If you do all of your web coding on your laptop, but don’t run a local PHP stack, you may be searching for a quick way to sync your files over to your dev server. Well, my friends, look no further than rsync. Not only is it fast and secure, but you can actually set […]
PHP TIP: A quick, non-RegEx way of replacing an IMG tag’s SRC= attribute
It’s often useful to be able to swap out the src= attribute of an HTML IMG tag without losing any of the other attributes. Here’s a quick, non-regex way of doing this. It uses the PHP DOM API to create a tiny HTML document, then saves the XML for just the IMG element. function replace_img_src($original_img_tag, […]
TIP: How to Play a Sound Whenever You Commit to Git
Writing code alone at home can be an isolating experience. There you are, day in day out, quietly making magic with your mind (sarcasm, obv.) only to silently commit the fruits of your labor into the void of your source control repository, appreciated by no one. If only a crowd of children could be retained […]
TIP: Turn WordPress Page Titles On or Off Using Custom Fields
Most WordPress themes display page titles for every page. This is usually what one wants, but sometimes it’s useful to be able to easily turn off WordPress page titles for individual pages but still keep them on by default. This is easy to do with custom fields. For simplicity’s sake, I am going to base […]
How to Relay your Git Commit Messages to Twitter in 16 Easy Steps
A while back I started using Twitter as a micro-journaling platform. I created a private Twitter account, and every few hours as I worked on code, I would jot down a private tweet to myself about what it was that I was doing. This private Twitter stream was then archived using Momento App for iPhone. […]
How and Why I Switched Away From Doit.im
Why This evening, I migrated away from doit.im. I had been using it for over a year and liked it quite a bit, but increasingly I found myself reverting to a TaskPaper-formatted text file for my daily tasks, which defeated the purpose of having all of my big stuff in Doit.im. Ultimately, I’m looking for a […]
How To Find (and Delete) Silent Audio Files
The Problem If you’re anything like me, you have a ton of audio files on your hard drive. When I’m working on music (or an audio synthesis project), I will export out songs that I’m working on in one piece of software in order to import them into another. I keep the intermediary tracks in […]
TIP: Cubase SX 3: Getting TubeBooster to work in Windows 7 64-bit
I spent most of my day yesterday getting my new music recording PC set up (my new PC is a Mac Mini i5 2.3 Ghz running Windows 7 64-bit). After installing Cubase SX 3.1.1 on my PC, and installing all my most essential VST plugins, I discovered that the song that I have been working […]
TIP: How to do disk image backups in Ubuntu Linux 10.04
So, I just installed Ubuntu Linux 10.04 on my trusty Toshiba Portege 3480CT8. (Yes, it works beautifully as a lightweight LAMP server.) One of the first things I set out to do was make a disk image of my new server, so that if something goes awry, I can restore things later on. Here’s what […]
TIP: Installing Ruby on Rails on Mac OS X 10.6.8
1. Install XCODE 4. This is actually trickier than it seems. You have to: a) download XCode; b) run the .dmg. c) quit iTunes, then go into Activity Monitor and force quit on anything iTunes related (iTunesHelper as well); d) go into the Applications folder and find the “Install XCode†app, and run that. (Yes, […]