Nano Editor Move the Cursor with Mouse

You Need to Enable the Mouse Support while in a Document hitting the Keys:

Cmd+M or Alt+M

PHP phpinfo() Download the File Instead to Open on Unix-like

If you already have on httpd.conf File:

AddType application/x-httpd-php .php

And still when you Load on Browser the File Containing the Directive phpinfo() you Get a File Download.

You Need to Change Permissions, Enabling the File Execution Permission...

On Unix-like Platforms from Terminal:

sudo chmod +x phpInfo.php

Mac OSX Set/Change System Wide Path

Originally the System Wide Path is Defined by the File /etc/paths.

The Booting Path Chain is Made like that:

/etc/profile CALL /usr/libexec/path_helper CALL /etc/paths

So if you want to change the Order or the Content of your System Wide Path you have to Edit the /etc/paths File!

Mac "configure: error: C compiler cannot create executables" CFLAGS 10.6 10.7

  1. Check if you have the Right Version of with gcc:

    ls /usr/local/bin | grep gcc

    If in the Output you have gcc-4.2 you have the Righ Tool.

  2. This Error can Come from the fact you have inserted in CFLAGS, CCFLAGS and CXXFLAGS Parameters some Unsupported Architecture.

    Example you have a Mac Intel and you Asked by CFLAGS+CCFLAGS+CXXFLAGS the generation of PPC Code with:

Howto Clean and Repeat ./configure make Command Building on Terminal

The "./configure" Command does Not Write anything, so you do Not need Clean anything!

Instead the "make" Command Write his Build Stuff, so to Repeat "make" Cleaning Existing Files you will need to perform instead:

make clean

Installing MySQL 5.5.20 from Source on Mac OS X 10.5 Leopard, 10.6 Snow Leopard and 10.7 Lion

-Prerequisites

Become the SuperUser:

sudo su

Install cmake (Need MacPorts):

port install cmake

Set the Path to bison:

PATH=$PATH:$(dirname $(which bison))

-Pre-installation

If do Not already Exists make:

mkdir ~/src

Access Target Path:

Command to Recursively Set User and Group Ownership Linux, Mac and Unix

You Access your Main Directory:

cd directoryToSet

To Recursively Set User Ownership on Directory and Contained Subdirectories:

chown -R userName .

To Recursively Set Group Ownership on Directory and Contained Subdirectories:

chirp -R groupName .

Howto Extract Numeric/Numbers Substring from Alphanumeric String

From Terminal you can use Perl to Extract the Numeric Part from an Alphanumeric String with:

echo 'yourAlphaNumeric888String' | perl -wlne 'print $1 if/(\d+)/'

So in this case you will got an output of:

888

Howto Check if Mac Architecture is 32 or 64 bit

Open a Terminal Window and look at the Output of Command:

uname -a

Mac XCode 4 Installation PopUp Alert Message Block/Stop

The Easiest Way Overcome this Block that is Asking you to Shut Down some Applications is to Use the Activity Monitor.

Applications >> Utilities >> Activity Monitor

On the Top-Right of GUI you find a Filter Search Box, look for "alert".

Then you will Find 1 or 2 Alert Process.

Select and Kill the Process involved with:

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer