小东博客

CSS3动画:YouTube的红色激光进度条

<html> <head> <title>Red laser bar loading progess demo</title> <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script> <script type='text/javascript'> $({property: 0}).animate({property: 100}, { duration: 3000, step: function() { var percentage = Math.round(this.property); $('#progress').css('width', percentage+"%"); if(percentage == 100) { ...

使用VPS 架设Http代理服务器

测试环境是Centos 6 x86   第一步 yum install squid 安装squid。   第二步 编辑/etc/squid/squid.conf   将http_access deny all 中deny 改为allow http_port后面的是端口号,默认为3128。可改可不改。   第三部 编辑 完成后 service squid restart  即可 大功告成了。   原创文章,转载请注明出处。

使用Linux VPS(Centos)搭建公共DNS解析服务器

linux安装dnsmasq搭建dns公共解析服务器   安装环境Centos 6 x86   首先,我们需要安装dnsmasq。安装指令如下: yum install dnsmasq 下面我们就需要配置DNSMASQ了,配置文件一般位于路径/etc/dnsmasq.conf。基本上配置文件内容如下所示: # /etc/dnsmasq.conf # Set up your local domain here domain=raspberry.local resolv-file=/etc/resolv.dnsmasq min-port=4096 server=8.8.8.8 server=8.8.4.4 # Max cache size dnsmasq can give us, and we want all of it! cache-size=10000 # Below are settings for ...