OSX – Perl CPAN Initialization

In order to install perl modules via CPAN, CPAN needs to be configured on OS X via the following command:

% sudo CPAN

within the cpan shell:

cpan> o conf prerequisites_policy follow
cpan> o conf make /usr/bin/make
cpan> o conf commit

> sudo port selfupdate
> sudo CPAN
cpan> upgrade CPAN
cpan> install Bundle::CPAN
cpan> upgrade
cpan> install YAML
cpan> install Text::xSV

http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/

 

 

MacPorts – MustHave

Web Site: http://www.macports.org

OS X is an UNIX OS.  The Aqua GUI is nice an all but in order to get the full potential of OS X, you should know how to work with the Terminal(xterm) and scripts.  Other free *NIXes have developed a nice package system and it is MacPorts that does package managements on OS X.

Requirement:
You need Apple Xcode Development Tools.  Get it from AppStore(Link):
AppleStore-Xcode

It is free!!!  After it is installed, you need to accept Xcode EULA by either running xcode or entering the following command in the Terminal:

% xcodebuild -license

Go to Applications then double click on the Xcode so it gets installed on the system.

Xcode-Welcome

Now the Command Line Tools needs to be installed.  Go to Xcode->Preferences->Downloads:

Xcode-Pref-Downloads

Click on the “Install” button next the the Command Line Tools.

 

Now, MacPorts can be installed via .pkg/.dmg and the links are:
Mountain Lion: https://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.8-MountainLion.pkg
Lion: https://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.7-Lion.pkg
Snow Leopard: https://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.6-SnowLeopard.pkg
Leopard: https://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.5-Leopard.dmg

After downloading the .pkg/.dmg, simply double-click on it to get it installed.

Self update: in a Terminal type the following:

% sudo port -v selfupdate

 

 

Ripping CD and Converting to FLAC

I want to store my CD collections in digital format and, of course, I want them in FLAC format!!!  Here is what I use to do that.

I use Fast CD Ripper and Mp3tag applications.

The CDDB info that Fast CD Ripper gets from the internet often(if not always) not enough so once all of the tracks are ripped into FLAC format, I run Mp3tag on them and fix the name of the files and the MP3tag in them.

 

Fast CD Ripper

Fast CD Ripper

Mp3tag

Mp3tag

Screen Capture

For windows:

Darn “Print Screen” button does not work all the time and most of the time, I have to use Paint application and cut out the portion of the screen shot that I want… What a waste of time!  I did a 0.5 sec search and find the following two applications:

http://www.wisdom-soft.com/products/screenhunter_free.htm

http://screencapturer.com/

 

For now, I am sticking with Wisdom-soft ScreenHunter 6.0 Pro

 

For OSx:

OSx it is much easier and it actually works…

To capture the entire desktop: press Command-Shift-3. The screen shot will be automatically saved as a PNG file on your desktop.

To copy the entire desktop: press Command-Control-Shift-3. The screen shot will be placed on your clipboard for you to paste into another program.

To capture a portion of the desktop: press Command-Shift-4. A cross-hair cursor will appear and you can click and drag to select the area you wish to capture. When you release the mouse button, the screen shot will be automatically saved as a PNG file on your desktop. (The file is saved as PDF in Mac OS 10.3 and earlier.)

To capture a specific application window: press Command-Shift-4, then press the Spacebar. The cursor will change to a camera, and you can move it around the screen. As you move the cursor over an application window, the window will be highlighted. The entire window does not need to be visible for you to capture it. When you have the cursor over a window you want to capture, just click the mouse button and the screen shot will be saved as a PNG file on your desktop. (The file is saved as PDF in Mac OS 10.3 and earlier.)

Add Control to the two shortcuts above to place the screen shot on the clipboard instead of saving it to the desktop.

(source http://graphicssoft.about.com/od/screencapturemac/ht/macscreenshot.htm)