| Subcribe via RSS

Recursively delete file or folder from sub-directory

March 21st, 2010 | No Comments | Posted in Mac OSX, Ubuntu

I used an example from deleting all .svn from sub-directory.

1
rm -rf `find . -type d -name .svn`

Airline guide: legroom and entertainment

March 11th, 2010 | No Comments | Posted in Knowledges

Found this article and it is very useful for frequent flyers.

Reference: http://www.telegraph.co.uk/travel/columnists/7406578/Airline-guide-legroom-and-entertainment.html

Tutorial : Move WordPress blog to new domain or location

March 5th, 2010 | No Comments | Posted in Knowledges

I was going to move my wordpress blog. How the hell I’m supposed to do. Is that gonna affect me so much.
Unfortunately, yes, because WordPress uses absolute path to access each page, that means if the URL changes everything will be affected. Apart from re-configure wp-config.php and move everything to the new location. Database needs to be changed as well.

I have found this code from http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/

Just bang those three sqls into your wordpress sql. It works like magic!.

1
UPDATE wp_options SET option_value = REPLACE(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
1
UPDATE wp_posts SET guid = REPLACE(guid, 'http://www.old-domain.com','http://www.new-domain.com');
1
UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

That should do it.

If you need more information. Please visit http://codex.wordpress.org/Moving_WordPress

Tutorial : Copy multiple Photoshop layers into a new document without flattening

March 3rd, 2010 | No Comments | Posted in Knowledges

If you’re working on a multi-layer document in Photoshop and you want to copy a portion of the image into a new document, there’s no need to flatten the image first. You can easily do it by making a selection around the area you want to copy and select Edit>Copy Merged from the menu, or hit Command + Shift + C. This will copy all the artwork inside the selection area, regardless of what layer it is on. Then you can paste it into another Photoshop document. Just be aware that when you paste the artwork, it will be a flattened piece of artwork.

Reference: http://www.thegraphicmac.com/copy-multiple-photoshop-layers-new-document-without-flattening

Tags:

Tutorial : How to select a layer from a document in photoshop

March 3rd, 2010 | No Comments | Posted in Knowledges

I know this is a stupid but as I’m a Photoshop beginner. As I’m working on someone else document. There are loads of layers in a document and I’m see a document in front of me, but I don’t know which layer should I be looking at.

There is a way in Mac.
Just go on the document use Option+Command+Right Click and boom!

Reference: http://www.elated.com/articles/selecting-layers-in-photoshop/

Tags: