Archive for the ‘configuration’ Category

Disabling Skype and other application that run on startup

Saturday, February 28th, 2009

Here’s another post that will be a short one for mac OS X. The best way to control what will run on startup is to go to System Preferences -> Accounts Pick the user you want to modify the startup list for and choose the “Login Items” tab. You should see something like this:

Account Login Items

Account Login Items

At this point just pick the application you want to stop running on startup and click on the “-” sign to remove it from the list.

Using Java 1.6 (java 6) on Mac OSX (Edit: For Development Only)

Thursday, October 16th, 2008

Recently we’ve started using some packages in java that require us to use Java 1.6 (sometimes refered to as Java 6. Which one is it java, 1.6 or 6? We’re at war, pick a side!). If you have Mac OSX leopard then you should have both 1.5 and 1.6 installed on the system but by default 1.5 is used.

To check which version is being used when you log in, open up terminal and type:

java -version
You should see something like:

java version “1.5.0_16″
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

To switch this to use 1.6 instead, you need to add the following to your .bashrc:

alias java=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/

Remember to either exit your terminal and start a new session or just run the command:

source ~/.bashrc

for the changes to take effect.

Macbook Mac OS X Trackpad Settings

Saturday, July 28th, 2007

In the Mac world, what PC users call the touchpad mouse is called the trackpad. When I first got this macbook, I started playing around with some of the settings. Here is a screen shot of my current settings:

Trackpad settings
I think two finger scroll is the best solution I’ve seen on using the trackpad to scroll. On PCs, scrolling is usually done by moving your finger up or down on the right side of the touchpad. Having the right side devoted to scrolling basically narrows the touchpad’s surface area.Under the option of two finger scroll you’ll notice you can enable the horizontal scrolling and zooming while holding down the control key. You can read more about zooming here.

The clicking and dragging feature is pretty common among PCs as well. You can basically double click on the trackpad while holding down your finger on the second click and dragging it to move objects or select an area of the screen.

My other favorite feature that’s missing from PCs is the two finger “right” click. If you enable the “Tap trackpad using two fingers for secondary clicks”, then you can, as the name suggests, tap with two fingers to act as the right click.

With the scrolling, two finger right click and dragging in place, you basically never need to use the big button under the trackpad with your thumb at all. This helps your hand lie at a neutral position at all times.

Turn on syntax highlighting in VI on Macbook

Friday, June 15th, 2007

If you installed the developer tools on macbook as I did the moment I started it up, you should have VI on your system. I’m used to the syntax highlighting in VI but macs don’t have that enabled by default. You could just run the command:

:syntax onÂ

And immediately you’ll have syntax highlighting. The issue with this method though is that once you quit VI and open a new file, there will be no syntax highlighting and you will need to run the command again.

To have highlighting always enabled, just create or edit the file $HOME/.vimrc and add the following line to it:

:syntax on

Open a new file in VI to test and you should see your code in color.