12 2014 档案

摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceWyfClass{publicclasstools{//////得到本周第一天(以星期天为第一天)/////////publi... 阅读全文
posted @ 2014-12-23 22:57 大漠银狐 阅读(1528) 评论(0) 推荐(0)
摘要:各種日期時間計算//改變日期formatstring startStr = start.ToString("yyyy-MM-dd HH:mm:ss");DateTime dt = Convert.ToDateTime(startStr);//轉回DateTimeP.S format 大小寫意義不同:... 阅读全文
posted @ 2014-12-23 22:47 大漠银狐 阅读(315) 评论(0) 推荐(0)
摘要:wgethttp://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-6.8.3-noinstall.zipunzip mysql-connector-net-6.8.3-noinstall.zip# Rename File... 阅读全文
posted @ 2014-12-18 20:27 大漠银狐 阅读(390) 评论(0) 推荐(0)
摘要:近日适逢某平方节日,Google国外网站陆续出现被墙的状况,想必大家都是知道的。其实本人一直在使用SSH的Socket代理功能爬梯子,效果还是不错的,加上学校有原生IPv6支持,就算不走代理一般也能上各大网站。唯独有一点,不论是浏览器还是操作系统,DNS均使用了UDP协议,而UDP显然是无法走Soc... 阅读全文
posted @ 2014-12-14 15:34 大漠银狐 阅读(3783) 评论(0) 推荐(0)
摘要:那,自从国内技术出现了DNS污染问题呢,时常导致很多国外网站访问不正常,所以通过参考一些博客所属避免DNS污染的方法,决定搭建一个Ubuntu JeOS下的DNS缓存服务器,该服务器利用TCP方式获取IP解析,这样就可以避免DNS污染问题了。首先,进入root权限:sudo –i然后输入用户名对应的... 阅读全文
posted @ 2014-12-14 15:32 大漠银狐 阅读(1384) 评论(0) 推荐(0)
摘要:1. Configure network with a static ip address$sudo nano /etc/network/interfacesauto eth0iface eth0 inet staticaddress 192.168.0.35gateway 192.168.0.1n... 阅读全文
posted @ 2014-12-12 13:11 大漠银狐 阅读(891) 评论(0) 推荐(0)