After i reboot my OS X, i find that i couldn’t start the MySQL server and it throws the following error:
hatuey:5.6.19 yingkityuen$ mysql.server start
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/hatuey.local.pid).
Go to the above folder and delete the mysql error log which is ended with .err. In my case, i executed the following command:
hatuey:5.6.19 yingkityuen$ rm /usr/local/var/mysql/hatuey.local.err
Where hatuey is my Mac machine name.
This should fix the problem.
Reference: Mahdi Yusuf – MySQL ‘The server quit without updating PID file’
In Linux, i always do
For Mac OS X:
sudo lsof -i -P | grep -i "listen"
Reference: List open ports on your machine (Mac OS X)
LibreOffice supports PDF conversion. What you need to do is to open the document in LibreOffice and click the Export as PDF… option under the file menu list. It’s good and simple to convert a single document but quite tedious if you have more files.
For batch conversion, we need to make use of the LibreOffice command in terminal.
1. Go to the directory which contains the source files.
2. Execute the following command to convert ALL files which ends with .odt into .pdf.
soffice --invisible --nologo --convert-to pdf *.odt
Continue reading LibreOffice – Batch convert files to PDF
Finally i get the Windows 7 installed on the Mac Mini.
Then i tried to do the same for the MacBook but i couldn’t find the usb drive on the boot menu. After asking Google, it is found that for those Mac machines which are equipped with the super drive (dvd drive), they cannot be booted by external devices. I try to install the rEFIt boot manager but it still doesn’t work.
Finally i have to use the Boot Camp to install the Windows 7, but i have to find a DVD Windows 7 installer. Anyway, the Boot Camp is really cool and all drivers are automatically installed.
Recently i have tried to install Windows 7 in a Mac Mini and a MacBook. I have a Window 7 installer in a bootable usb. Just keep pressing the option key on startup and you could select the boot device in the boot menu. It works fine for the Mac Mini and the Windows 7 is installed without any problem.
But after the installation, i found that many drivers are missing. Finally i found a blog post written by Chris F Carroll. You can find all the details about getting the drivers from the Boot Camp package in that post so I am not going to repeat it here.
By default Finder would not show hidden files. Use the following commands to change this setting.
- defaults write com.apple.finder AppleShowAllFiles TRUE
- killall Finder
Continue reading Mac – Show Hidden Files in Finder
Recently need to work with Amazon S3 and i want to use the s3cmd command line client.
s3cmd : command line S3 client
But it requires encryption program which i can’t find in my Mac machine. Luckily i found a very detail installation guide.
HOWTO: Build GnuPG on OS X Continue reading Mac – GnuPG Installation
Prior to the topic about the SSH keypair, i would like to let u know that the BeansTag module is already submitted to drupal.org and now undergoing the approval process. BeansTag is a light-weight and user friendly SEO tool which help you setting the meta attributes as well as page title. It is also multilingual supported. Visit the BeansTag project page to get more ideas or even try it with your Drupal 7.
Before i could start working with the Git repository hosted in drupal.org, i have to create a SSH keypair and add it in my Drupal account profile. Actually i have done the similar task before but that is for Windows. For your reference, you can refer to the following post.
Continue reading Mac – Generate SSH Keypair
I am working on a new Drupal 7 module which is called BeansTag and hopefully it could be submitted to drupal.org soon. But before i could submit it, i have to make the Git work in my Mac OSX.
Here are the steps for Git installation in Mac OSX Continue reading Mac – Git installation on OSX
If you get the following message when you connecting to a server through SSH, most likely the server side has changed authorization key.
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Continue reading Mac/Linux – SSH Host Key Verification Failed