Install Tex on CentOS linux

Actually it’s pretty easy with Yum group install, a lot of people didn’t even notice this

There you go! run “tex” or “latex” in the shell and it’s up and running.

Sometimes you also need dvipng to compile Tex into PNGs

Something about yum groups

if you want to see what packages is in this group, you can run:

If you want to see what other Package groups in yum, you can run

 

Renaming files with case change in a Git Repository

Changing the filename with case change only using the unix command “mv” will not be detected in Git.

The general advice is using the git sub-command “git mv” to rename files, when I type this I saw the below error

It looks like the Mac file system is not case-sensitive, hence the error. The workaround is that, rename the file twice

No complain from Git! Enjoy!

Gunnar glasses for programmers

Recently got my Gunnar Optiks Intercept Advanced Gaming Glasses, this is an entry level Gunnar glasses for gammers. The reason of this purchase is that my eyes are constantly very dry and tired due to long hours using the computer (coding and gaming :p ). I’ve heard that these two yellow-tinted pieces of glass can help relieve the eye strain for gammers and professional computer users, so I gave it a shot Continue reading “Gunnar glasses for programmers”

Why Developers like OSX

It’s *nix and THE most advanced one

Programmers need to use a lot of command line tools on daily basis like ssh, curl, build tools etc. There’s nothing like a bash shell in *nix systems(Unix, Linux. OSX is Unix-based), basically you’re left to choose between OSX and thousands of distros of Linux. (You may use CYGWin in Windows but i think it’s terrible) In my opinion, most Linux distros are still not very user-friendly (Ubuntu is probably the best you can find), OSX provides a pleasant-to-use GUI while preserving the greatness of the command-line environment. Out of the box it has everything a modern OS should have, this saves you the time needed to configure the development environment and focus on the job you need to do.

It’s elegant

OSX is beautifully designed, slick and always Continue reading “Why Developers like OSX”

PHP “Invalid library” error related to ‘mcrypt.so’

While I was compiling PHP from source to install the latest PHP version 5.5.4 on the OSX (10.7.5 Lion). (BTW, try not to do this at home because this can be a tedious process! )

I got the following error:

PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) ‘mcrypt.so’ in Unknown on line 0

My php.ini is from previous version, and it is located at /etc/php.ini Continue reading “PHP “Invalid library” error related to ‘mcrypt.so’”

Compiling git from source on CentOS

Prerequisite

You need the Perl libraries in order to compile git, you also need the “gettext” package if you encounter the “msgfmt” error

Download

Go to this page to select the latest git, and download it

https://code.google.com/p/git-core/downloads/list

Installation Steps

There will be an error Continue reading “Compiling git from source on CentOS”