<input type=”text” autocomplete=”off” />
How to configure host table on Window?
Host file is location at “C:\Windows\System32\drivers\etc\hosts”.
How to get a link for apple’s stores?
Link Maker: http://itunes.apple.com/linkmaker/
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
Enable activeX in Windows 8’s metro IE 10
在 metro IE 中,啟用 ActiveX 有兩種方法。
1. HTTP Header
X-UA-Compatible: requiresActiveX=true
2. META Tag
<meta http-equiv=”X-UA-Compatible” content=”requiresActiveX=true” />
來源:http://blogs.msdn.com/b/ie/archive/2012/01/31/web-sites-and-a-plug-in-free-web.aspx
SkyDrive test
Word
PHP Session – 一次只能建一個連線
有個需求想用 PHP 來驗證身份,再傳出檔案,
不過遇到一個問題,
若是用 PHP 的 Session 函數 來使用 Session,
會發生同一個Session ID ,同時只能抓一個檔案,
也就是說要同時抓兩個的話,
第二個就要等第一個抓完,連線才會通,
所以目前只好自己寫個簡單的 Session 來解決這個問題。