Posts filed under 'OSX Tip'

I was having an idea of writing a program that would scan iTunes playlist and remove dead tracks (the items in playlist that does not actually link to a file) from my iTunes playlist and probably publish it as another donationware. But, someone has already done a great job on it. Here is the link to Remove Dead Tracks 1.1. It is a donationware. So, if you like it, please consider making a donation for him…
Continue Reading July 16th, 2005

Here is a neat trick for getting rid of duplicate songs in iTunes. Sometime we import the same song twice and making it appear on iTunes library more than once. That can be annoying sometime. So, here is the trick(see picture below), go to edit and click on Show Duplicate Songs and you will be shown the list of songs that has its duplicates. Now you can delete the extra with no searching
.
July 11th, 2005

Today, I spent almost the whole day trying to find how to set environmental variable via a shell script I wrote. I found that there is no way to set an environmental variable via shell script. Let me explain to you what I did(note $ stands for shell prompt)
The normal way you would set an environmental variable is to do
$export HELLO_WORLD=hohohohohohoho
then echo will give you
$echo $HELLO_WORLD
hohohohohohoho
From what given above it’s very tempting that writing the script include the export command and executing it would work..
Continue Reading July 8th, 2005

I was very frusturated when I found that when I ssh (or use Xemacs or emacs on my machine) the apple’s so called delete key that’s in the position of backspace key of most of the world keyboard acted like a delete key in normal sense not like a backspace*. That is the backspace key(apple label it as delete key) does that job of delete key instead of backspace key. To fix this problem, go to Terminal.app Window Settings and go to keyboard section. You’ll find a little checkbox says “Delete key sends backspace” check that and you are good to go.
*in my iBook
Continue Reading July 8th, 2005

This is a neat trick to get your compiler(not your program) run faster. I haven’t tried this but it seems very logical to do so
To understand this toungue twister trick, First we need to understand what a comiler is. A compiler is basically a program that translate your programming language in to binary code that your machine can understand. But, it’d be bland if that’s the only thing compiler does to your program. A smart compiler, gcc for example, optimize you code as well. How does it optimize you code? Take this bad code for example…
Continue Reading July 7th, 2005

You are working on Terminal and you want to shutdown or restart the computer? Just Type
sudo shutdown -h now
for shutdown or
sudo shutdown -r now
to restart
July 5th, 2005

It’s quite a chore to make a histogram. It comes to me many time that I have to make a histogram for a list of numbers. I had to rewrite the program everytime. But, this time I’ll just write a good one and publish it so that other people(including me) won’t have to do this chore again. Without saying much…
Continue Reading July 4th, 2005

After iChat was upgraded to iChat AV3.0, iChat now has ability to use jabber protocol. Jabber Protocol is a great thing since, first of all, it’s open source. And, it’s has a nifty feature called jabber transport which allow you to talk to any any network you like. For example you can use MSN in iChat. Yahoo, AIM, ICQ also is supported by jabber transport. However, as of now it’s impossible to use iChat to setup this feature alone. However, Micheal Rivera wrote this nice tutorial for how to do that…
Continue Reading July 4th, 2005

Xmgrace is a great 2d plotting tool for X windows. However, download the source and compiling it won’t work since it’s missing a package called motif. Here is a workaround.
Continue Reading July 4th, 2005
The blue in the Terminal.app is too dark? Or you don’t like the red or even you are color blinded to red and you want to change red to something you is visible to you. The solution is here.
Continue Reading July 3rd, 2005
Previous Posts