Menu Shortcuts in Linux Mint 12

Looking for the menu "right-click" manager from Ubuntu?
Just install alacarte:
sudo apt-get install alacarte

More details here.

Installing the W3C CSS Validator in Ubuntu / Mint

You will need a JDK setup on your system; I've outlined how to do that here.

If you don't already have them, install Ant and CVS:
sudo apt-get install ant
sudo apt-get install cvs

Download the source of the CSS Validator with CVS (this may take a few minutes):
cd ~/
mkdir w3c_css_validator
cd w3c_css_validator

Install Oracle Java JDK 7 in Ubuntu / Mint 12

The JDK can be downloaded by visiting the Oracle website and agreeing to a slew of licensing terms:
http://www.oracle.com/technetwork/java/javase/downloads

These directions are of the 32bit variety, but the same should work for 64bit systems; just swap i386 for amd64 where applicable.

Once downloaded, extract everything to /usr/lib/jvm/:
cd ~/Downloads/
tar xvf jdk-7u3-linux-i586.tar.gz
sudo mv ./jdk1.7.0_03/ /usr/lib/jvm/jdk1.7.0_03

Install Google Chrome in Linux Mint 12

  1. Add a public key for dl-ssl.google.com:
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
  2. Add the Chrome download site to your list of APT sources:
    sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
  3. Refresh APT with the changes made above and install Google Chrome:
    sudo apt-get update && sudo apt-get install google-chrome-stable

NTP Setup in Mint 12

Insall the Date & Time app:
sudo apt-get install system-config-date
Create a cron task:
sudo nano /etc/cron.hourly/ntpdate
Add the lines below in the file:
#!/bin/bash
ntpdate ntp.ubuntu.com time.nist.gov
Make the file executable:
sudo chmod 755 /etc/cron.hourly/ntpdate
This will update time hourly from ‘ntp.ubuntu.com’ and ‘time.nist.gov’.

RSS Text-to-Speech in OS X

I've been in need of exercise lately, but I always feel a little guilty when I break away from all the things I need to be keeping up on. In attempt to accomplish both at the same time, I've written a little script to pull down my RSS feeds and dump them into an mp3 file that I can throw on my audio player.

To use the script, you will need to install the xml rss perl module using the command below:
sudo cpan XML::RSS

Beyond Compare as a Diff and Merge tool with Git

One of the first real points of frustration a developer encounters with Git is the initial unresolved merge conflict. Beyond Compare is an excellent file comparison utility and can be configured with Git as a merge and diff tool.
To setup diff on Linux, create a short wrapper script to pass the parameters in the correct order:
vi ~/git-diff-wrapper
#!/bin/sh
# diff is called by git with 7 parameters:
# path old-file old-hex old-mode new-file new-hex new-mode

Tags:

Facebook RSS

You'll notice that there is no link tag specifying the rss location in the source of a Facebook page.  RSS links are however availble using the page ID of the content.

To obtain the page ID, right click on the like icon and copy the link.

How Does US Foriegn Debt Compare to other Countries?

The chart below shows nations with the highest foreign liabilities as a percentage of GDP above that of the United States.

Setting up a Multi-Site Drupal 7 Dev Environment on Ubuntu / Mint

Configuring a box for Drupal development, testing server configurations and PHP debugging.

Tags:

Subscribe to Charles Toepfer RSS