Archive for March, 2007

Install MySQL5 on Mac OSX With Darwin Port

Tuesday, March 13th, 2007

Before installing MySQL5, please be sure you have Darwin Port installed on your OS X. If yes, let’s start to roll now… Fire up your terminal and type

port variants mysql5

You will see variants support for mysql5 installation.

mysql5 has the variants:
darwin_8
server

Next, is the time to start install MySQL5 with Darwin Port.

sudo port -v install mysql5 +server

After MySQL is installed, is time to configure and make MySQL start and running. First you have to init mysql data db with this command

sudo /opt/local/lib/mysql5/bin/mysql_install_db –user=mysql

Before starting mysql, copy my.cnf file to /opt/local/etc folder

cp /opt/local/share/mysql5/mysql/my-small.cnf /opt/local/etc/my.cnf

To start mysql,

sudo /opt/local/share/mysql5/mysql/mysql.server start

mysql.server is default start up script. You can copy it to /bin for your convenient to start/stop MySQL daemon anytime. For the first time, please make your MySQL username: root with password by this command.

mysqladmin5 -uroot password ‘your-passwd-here’

TextMate: Creating New Project in Shell Instantly

Tuesday, March 13th, 2007

Been using TextMate recently, really loving it like hell. There is a best part of TextMate that you can create a New Project instantly from your www folder. But first and foremost you got to create symlink to /bin.

To create a symlink, do this

sudo ln -s /Applications/TextMate.app/Contents/Resources/mate /bin/mate

After you have created the symlink, change directory to your www folder for example

cd /opt/local/apache/htdocs/myproject

And run the command mate .

mate .

Congrat, new project has been created with Text Mate, just save it with shortcut key Ctrl + Command + S

Replaced Discoloration MacBook Casing

Monday, March 12th, 2007

Update 13 March 2007 23:43

Well well well… disappointment disappointment, the cover case started to turn into yellowish. It seem like replace new case doesn’t solve my Macbook Discoloration problem. Very very very disappointed with the MacBook I got, I should get the Black MacBook if I know the problem still haven’t resolve until now.

How many time do I have to replace the damn cover?

I went to replace my MacBook discoloration case today. Let’s see how long would it last this time. :D

Update:
Well, it seem the replaced casing is different with the case I got out of the box. The surface is smoother and it seem to solve discoloration issue. I shouldn’t make early judgment, let see what happen until next week.

It seem like it also improve the heat on the surface of the cover, now is less heat compare with last time.

But I am wonder why I got the defect unit at the first place?

Memory Control?

Monday, March 12th, 2007

Flickr Uploader used a lot of my memory, anybody know is there any way to limit memory usage for certain process?

Wordpress SVN was Hacked

Tuesday, March 6th, 2007

Wordpress SVN was hacked, if you upgraded to Wordpress 2.1.1 for the past few days, please upgrade to 2.1.2 immediately, hackers/crackers might gained access to your blog/server by now.

Message from Photo Matt

Long story short: If you downloaded WordPress 2.1.1 within the past 3-4 days, your files may include a security exploit that was added by a cracker, and you should upgrade all of your files to 2.1.2 immediately.

Longer explanation: This morning we received a note to our security mailing address about unusual and highly exploitable code in WordPress. The issue was investigated, and it appeared that the 2.1.1 download had been modified from its original code. We took the website down immediately to investigate what happened.