Web: Facebook Share Button

Filed in web 3 Comments

I was looking for the official facebook share button generator, but cannot seems to find it on their website. That’s because facebook no long want to support the share button, in order to make wider usage of the like button. I personally prefers the Share button, and here’s why!

How “Share” appear on feed:

How “Like” appear of feed:

quite clearly, facebook share get more space and attention on your feed.

a good documentation on how to implement Facebook share can still be found from google cache, which is still supported by Facebook.
I have ScreenGrab! the page, in case the cache get cleared, and you can download the png file below:

Let me include the source code for share button with counter here too:

Facebook Share Button with Above Counter

<a name="fb_share" type="box_count" href="http://www.facebook.com/sharer.php" share_url="http://howtogetitworking.com/">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

Facebook Share Button with Inline Counter

<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php" share_url="http://howtogetitworking.com/">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

replace the variable inside the share_url attribute with a specify URL you may want to share, otherwise the share url will be of the page where you placed the button at.
the available type attributes are: button_count | box_count | button | icon_link | icon. of which only button_count and box_count will render the share counter.

, , , ,

Web: Creating favicon

Filed in Photoshop Leave a comment

It’s becoming a hassle to google and find out how to create favicon because i hardly do so.
Yup so two good links to how to create your own favicon.

Favicon using photoshop | Photoshop CS5 (Updated: Jan 2011)
ICO (Windows Icon) file format plugin for Photoshop


Mac: Merging Folder Content

Filed in mac Leave a comment

Mac OS X do not merge folder content when folder of same name is copied from one location to another.
The terminal command will overwrite the sub-folder content of the destination folder if there are sub-folder of the same file name. Sounds a bit confusing, but if you try copying folders with files & folder inside, you should get the idea.

mv /src_folder/ /destination_folder/

Unknowingly, Mac OS actually have a command for you to merge folder content.

ditto /src_folder/ /destination_folder/

Find out more about ditto from Mac OS X Reference Library

, , ,

CS5: There are no destinations for Code Navigator to show for this selection.

Filed in mac 2 Comments

This is driving me nuts! and i can’t seems to find any solution on google or adobe detailing this problem.

Using CS5 Dreamweaver, and out of a suddenly, with no exact indication of means to always replicate this problem, on mouse click on code, this dialog box will always appear, which no means to turn it off. the problem go alway only after i restart mac, restarting dreamweaver don’t help. i can’t seems to find the corresponding process in activity monitor which may help.
If anyone encounter such problem, and know a fix for it, will greatly appreciate sharing this, so that i can update this article for the good of everyone!

cs5 (dreamweaver and other product) maybe feature packed, if not for dreamweaver’s autocompleter, i may very well be going back to mx or cs3. all other feature’s don’t really appeal to me.

UPDATE: Thanks to MyWebsiteSpot.com from MyWebsietSpot.com who posted the comment in this post sharing why this happened! Just saved my day!! So wonder why i cannot find this any were else on google!

“Its a conflict between Things and Adobe products, it also effects PS somehow. If you use the Ctr+Alt+Space shortcut it starts the conflict. Reboot and when you use the program called “Things” try and refrain from that quick entry shortcut until Adobe and Things comes up with a conflict fix. They are aware of it.”

UPDATE 2: I have confirmed this issue is caused by using “Show and Autofill” shortcut from Things, in fact, it may actually cause the whole range of Adobe CS5 products to become cranky! Photoshop cannot find it configuration file, etc etc. Adam Taylor from MyWebsietSpot.com pointed out a Adobe forum thread discussing this issue, and from there, you can find a adobe support ticket which ridiculously says that we need to wait for Apple to release a fix.

Few of the other issues noted from the ticket page:

  • The warning, “Delete the Adobe Photoshop Settings file?” appears when you open Photoshop.
  • The startup screen reads White Rabbit, instead of Photoshop CS5, and looks different.
  • Tools behave as if the Shift or Option keys are pressed.
  • Your cursor remains the plug sign (+).

, , , ,

Mac OS X: Purging Inactive Memory

Filed in mac Leave a comment

Warning: Although this command should be generally safe, please make sure you have quit all your application and nothing important is running before trying this.

If inactive memory seems to be something that bothers you, use the following command in Terminal to purge it:


it’s surprising that simple, but totally at your own risk.

Source: Using purge to free inactive memory on Mac OS X

, , , , ,

Command Line: Recursive Deleting .svn folders

Filed in unix Leave a comment

once in a while, you completely mess up your checkout folder or your svn repo is in a terrible mess or conflicts unable to be resolved, and folder unable to be unlocked. so you will most likely need to delete all the .svn folders and start over again. so here’s the command line to do so.

cd /path/to/folder/
rm -rf `find . -type d -name .svn`

Snow Leopard: PHP & PostgreSQL

Filed in mac | php | postgresql Leave a comment

Got this need to install PostgreSQL on my Mac OS X, Gnegg did a good guide on how to do so.

that should be all. the last part about php.ini may depends on which php.ini is been loaded, so do note.

CS3: Could not use the move tool because the target channel is hidden

Filed in Photoshop | software 19 Comments

ok, so i was in CS3 half way, when i get this error message while trying to move a layer.

Could not use the move tool because the target channel is hidden.

I must have pressed something or clicked somewhere accidentally.
A quick google search, and i found a reference site, which solve the problem.

Solution: Hit key “Q”. This will toogle to edit in either “Quick Mask Mode” or “Standard Mode”.
I guess most of us work in the “Standard Mode”.

Here’s the difference in your “Tools” palette when in different mode. note the rectangular icon with a circle inside.

Editing in Standard ModeEditing in Quick Mask Mode

HELP: Cannot Use Move Tool Because…

, , , ,

Mac: Measuring Wireless Signal Strengths

Filed in mac | software | wireless Leave a comment

Very interesting article i found here, about Optimising wireless reception from a distance, using the following command in Terminal:

while x=1; do /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep CtlRSSI; sleep 0.5; done

it returns a value in dBm, the wireless radio signal strength.

Quick Look: Mac OS X Mail

Filed in mac | software Leave a comment

It is pretty tiring to have to wait for Microsoft Office to open just to have a quicklook at attachments in Mail. Equally tiring to have to drag the cursor to the attachment, highlight the icon and hit spacebar to quicklook the attachment.

Here’s the shortcut key: Cmd+Y

Shall have knew about this sooner!