Link Maker: http://itunes.apple.com/linkmaker/
Monthly Archives: 10 月 2012
How to add a facebook like button to wordpress?
1. Generate your custom like button and get script.
http://developers.facebook.com/docs/reference/plugins/like/
2. Modify your wordpress theme file.
e.g. /wp-content/themes/theme-name/content-single.php
Find “</header>” and insert FB script before it.
<iframe src=”//www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&send=false&layout=standard&width=450&show_faces=false&action=like&colorscheme=dark&font=verdana&height=35&appId=233086249908″ scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:450px; height:35px;” allowTransparency=”true”></iframe>
Replace href value to “<?php the_permalink(); ?>”.
Note: Test on WordPress 3.4.2.
How to detect if metro UI of IE 10?
if (window.__IE_DEVTOOLBAR_CONSOLE_COMMAND_LINE) {
// In IE 10 Standard UI
}
else {
// In IE 10 Metro UI
}
How to mount a samba share?
mount -t smbfs -o “user=account,password=password” host:/path /target/path
How to log in cvs with another account?
export CVSROOT=:pserver:account@host:/cvs_path
cvs login