Text to Speech in Mac

4 Comments

Sometime, we are lazy to read article and we just want to listen. OK. Mac have this function, text to speech. Oh! amazing. Copy & Paste in App! No!! just select the text and press shortcut key. And then you will hear. How nice!
More

Add new PATH in $PATH

No Comments

MySQL from MAMP can’t run from terminal. You need to add mysql bin path in $PATH. From terminal you can do with export PATH like following

$ export PATH=/Applications/MAMP/Library/bin/:/opt/local/bin:/opt/local/sbin:$PATH

but it’s only for 1 time. You close the terminal and open again. It will lost. For permanently, you need to add in profile file.

How to

open terminal

$cd ~

$open -a TextEdit .profile

More

Show Hidden File

1 Comment

In Mac Finder, don’t have show hidden. If we want to see hidden for some reason (eg: .htaccess for web development), we can make it easily.

1. Open the Terminal
2. TYPE in terminal

$defaults write com.apple.finder AppleShowAllFiles TRUE
$killall Finder

If you don’t want to see hidden file, just change TRUE to the FALSE.