Memory Control?

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

Disappointed with 5 Day Used Yellow Discoloration Macbook in Malaysia

Suppose to be happy after I bought Apple MacBook. But it turned up very very sad yet disappointed with my 5 Days old Macbook. The palm rest surface and common keyboard keys and touch pad areas have spotted yellow discoloration. Seriously, am very sad with the brand new Apple’s Macbook right now. IF I have known the problem earlier which is quiet critical and serious, I would have just buy the Black Color Macbook.

I’ve been using it for only 5 days and now it will be sending back to change the case, not swapping a new unit. So far for the informations I gathered from Forums. Most of the users having the yellow discoloration issue after 3-4 months, but mine is only 5 days. May be I am extreme user compare with others.

Just my luck… Fellow Malaysian, take my advice, please don’t buy Macbook at the moment unless you are planing to buy a Black Macbook.

The yellow discoloration will make you sadder and sadder everyday, especially when you open up your Macbook in the early morning!

Apple Defects: White MacBook Palmrest Stains on 5 Day old MacBook in Malaysia

Install X11 On Mac OSX

By default, X11 is not installed on Mac OSX. In order get most of X11 open source working, you got to configure X11 on your lovely Mac. Configuration X11 on Mac is pretty simple and straight forward.

Step 1: Insert your Mac Installation CD
Step 2: Browse the CD and select Optional Installs
Step 3: In the installation tree, select Application > X11
Step 4: Finish the step and installation begin.

To verify X11 is installed on your Mac, open up Application > Utilities, and you should see X11 inside.

Have fun with Mac

exim: rejected EHLO, syntactically invalid argument

If you email having problem with rejected EHLO or HELO, caused by syntactically invalid argument(s).

  • Possible the hostname contains underscore(_).
  • This is not standard practice, having _ for your domain
  • for example takizo_mail.takizo.com
  • Most of the mail server rejected hostname with underscore.
  • Possibility is a Windows Admin

Error message shows in exim’s log;

2007-01-31 09:13:21 rejected EHLO from [123.123.123.123]: syntactically invalid argument(s): stupid_proxy.windowsadmin.com.my
2007-01-31 09:13:21 rejected HELO from [123.123.123.123]: syntactically invalid argument(s): stupid_proxy.windowsadmin.com.my

Solutions: Add this line in exim configuration main section;

helo_allow_chars = _

Now your exim should be working and receive email from the l33t! hostname. _hell_.lamer.com

useful unix command: xargs

In our mailserver, we backup every incoming email and keep it for a week. Sometime, it’s PITA when you want to purge the old email. For example;

[takizo@rooney backup]# rm -rf S0118*
-bash: /bin/rm: Argument list too long

when come to rm large amount of files, or editing, or rename, xargs is … very useful, no more PITA.

[takizo@rooney backup]# find . -name ‘S0118*’ | xargs rm

that’s it, so my friend, don’t do rm S011800*, S011802*, S011803*, S011804*, S011823 …. It’s wasting your time :D

update 20080721 : for file name with spaces with it use “find . -iname ‘S0118*’ -print0 | xargs -0 rm”.