Posts filed under 'OSX Tip'

Remove iTunes Dead Tracks with ease.


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 Add comment July 16th, 2005

Get Rid of iTunes Duplicate Songs


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 :) .

2 comments July 11th, 2005

Shell Script setting environmental variable hassle


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 Add comment July 8th, 2005

Delete/Backspace problem in Terminal.app


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 Add comment July 8th, 2005

Compiling the Compiler with the Compiler you just Compiled


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 Add comment July 7th, 2005

Shutdown OS X from command line


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

Add comment July 5th, 2005

Histogram made easy for command line freak


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 Add comment July 4th, 2005

Setting up Jabber Transport in iChat


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 1 comment July 4th, 2005

Install xmgrace on OS X


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 Add comment July 4th, 2005

Fix ANSI color problem in Terminal.app

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 1 comment July 3rd, 2005

Previous Posts


Calendar

November 2008
M T W T F S S
« Oct    
 12
3456789
10111213141516
17181920212223
24252627282930

Posts by Month

Posts by Category