http://blog.wu-boy.com/2012/03/jquery-different-form-stoppropagation-with-stopimmediatepropaga
tion/
前者只會防止目前 Dom Tree 的上一層事件,後者則是會防止全部 Dom Tree 事件
2013年10月19日 星期六
2013年10月17日 星期四
Googlebot如何去抓AJAX網頁
https://developers.google.com/webmasters/ajax-crawling/
www.example.com/ajax.html#!key=value
會轉成以下網址再去爬網頁
www.example.com/ajax.html?_escaped_fragment_=key=value
可以使用Google模擬器驗證是否有效
www.example.com/ajax.html#!key=value
會轉成以下網址再去爬網頁
www.example.com/ajax.html?_escaped_fragment_=key=value
可以使用Google模擬器驗證是否有效
2013年10月16日 星期三
window.onhashchange事件
IE >= 8
Firefox >= 3.6
Opera >= 10.6
Safari>=5
jQuery hashchange event:
如果舊式瀏覽器不支援可以使用
http://benalman.com/projects/jquery-hashchange-plugin/
ref:
http://caniuse.com/hashchange
keyword:
hashchange supported browsers
Firefox >= 3.6
Opera >= 10.6
Safari>=5
jQuery hashchange event:
如果舊式瀏覽器不支援可以使用
http://benalman.com/projects/jquery-hashchange-plugin/
ref:
http://caniuse.com/hashchange
keyword:
hashchange supported browsers
2013年10月12日 星期六
Server Core環境開放遠端桌面
netsh firewall set portopening tcp 3389 "Remote Desktop"
cscript C:\Windows\System32\Scregedit.wsf /ar 0
p.s. 允許連入:0 禁止連入:1
ref:
http://technet.microsoft.com/zh-tw/library/jj574205.aspx
cscript C:\Windows\System32\Scregedit.wsf /ar 0
p.s. 允許連入:0 禁止連入:1
ref:
http://technet.microsoft.com/zh-tw/library/jj574205.aspx
Windows指令確認防火牆狀態
C:\Users\Rex>netsh firewall show opmode
Domain profile configuration:
-------------------------------------------------------------------
Operational mode = Enable
Exception mode = Enable
Standard profile configuration (current):
-------------------------------------------------------------------
Operational mode = Enable
Exception mode = Enable
IMPORTANT: Command executed successfully.
However, "netsh firewall" is deprecated;
use "netsh advfirewall firewall" instead.
For more information on using "netsh advfirewall firewall" commands
instead of "netsh firewall", see KB article 947709
at http://go.microsoft.com/fwlink/?linkid=121488 .
C:\Users\Rex>
Domain profile configuration:
-------------------------------------------------------------------
Operational mode = Enable
Exception mode = Enable
Standard profile configuration (current):
-------------------------------------------------------------------
Operational mode = Enable
Exception mode = Enable
IMPORTANT: Command executed successfully.
However, "netsh firewall" is deprecated;
use "netsh advfirewall firewall" instead.
For more information on using "netsh advfirewall firewall" commands
instead of "netsh firewall", see KB article 947709
at http://go.microsoft.com/fwlink/?linkid=121488 .
C:\Users\Rex>
2013年10月10日 星期四
RDP 5.2的加密方式
http://wiki.wireshark.org/RDP
RDP 5.2
- All levels use RSA RC4 encryption
- Client Compatible - protects data sent from client to server
- dynamically determines maximum supported key strength
- High - protects data sent from client to server and data sent from server to client
- 128-bit
- clients that do not support 128-bit will not be able to connect
訂閱:
文章 (Atom)