原生Js封装的动画类 - dtdxrk - 博客园
算法用的是Tween类,需要研究的参考这篇文章:
http://www.cnblogs.com/cloudgamer/archive/2009/01/06/Tween.html
网页里常用的动画 放大缩小 位置移动 透明度改变
ssh - Invalid users trying to log in to my server - Information Security Stack Exchange
It is very common. Many botnets try to spread that way, so this is a wide scale mindless attack. Mitigation measures include:
- Use passwords with high entropy which are very unlikely to be brute-forced.
- Disable SSH login for
root
. - Use an "unlikely" user name, which botnets will not use.
- Disable password-based authentication altogether.
- Run the SSH server on another port than 22.
- Use fail2ban to reject attackers' IP automatically or slow them down.
- Allow SSH connections only from a whitelist of IP (beware not to lock yourself out if your home IP is nominally dynamic !).
Most of these measures are about keeping your log files small; even when the brute force does not succeed, the thousands of log entries are a problem since they can hide actual targeted attacks. A bit of security through obscurity (such as the unlikely user name and the port change) works marvels against mindless attackers: yeah, security through obscurity is bad and wrong and so on, but sometimes it works and you will not get fried by a vengeful deity if you use it sensibly.
A high entropy password will be effective against intelligent attackers, though, and can only be recommended in all situations.
IE下iframe显示空白 - 木子丰咪咕晶 - 开源中国社区
在使用tab标签页动态添加iframe内容的标签页,IE9,IE10下在切换标签页时会出现含有iframe或frameset的页面显示为空白问题,升级到IE11最新版本问题解决,另外,如果不是动态的添加tab页,而采用静态的tab页里包含iframe也不会有在切换tab页面空白的问题;而且不管怎么样其他的浏览器都不会有该问题。这个问题应该是IE的bug。
IE8下iframe显示正常,IE9下却是空白
这个问题搞了几天了(根本原因也不清楚,反正与IE的兼容问题离不开)总之就觉得IE越来越垃圾了;
中间的坎坷就不说了,直接说出解决问题的方法吧:
页面加上如下头信息:
1 |
< meta http-equiv = "X-UA-Compatible" content = "IE=EmulateIE8" /> |
IE 的文档兼容模式(X-UA-Compatible),指定浏览器以哪个版本来渲染页面,content可以是IE=5/IE=6/IE=7/IE=8/IE=9/IE=edge/chrome=1