我们知道,Apache可以通过在httpd.conf里添加命令进行配置虚拟主机,但是,如果我们有N个域名,每个域名又有N个子域名,如果说每个根域名一个配置文件该多好啊,也许有人说是异想天开,但是,没有异想,就不会天...

在使用IE8直接下载文件时,有时候会出现下载进度一直不动的情况,排除了服务器或本机网络的问题,但又忘记了下载地址,可以用以下方法找回下载地址: 点击下载窗口底部SmartScreen中的“报告不安全的下载”,这个...

#include #include #include #include #define IN #define OUT //比较周数,成功返回0-6的数,错误返回7 //p代表周数,取周数前3个字母,如Mon代表周1,以此类推 //改动周几不影响返回的时间值,可以通过改动...

10-11学年秋九年级期中考试成绩 11、13 考号 姓名 语文 数学 英语 政治 物理 化学 历史 总分 名次 9101 刘朦 102 120 91 51 61.6 44 39 508.6 1 9309 王思长 98 118 93 50 59.5 42 48 508.5 2 9211 王宁 102 105...

0

Linux下gcc中用c连接mysql

Posted in C at 九月 13th, 2011 / No Comments »

代码: #include "stdio.h" #include "stdlib.h" #include "mysql.h" #define HOST "127.0.0.1" #define USER "root" #define PASSWORD "654321" #define DB "test" main() {     MYSQL mysql;     MYSQ...

0

git 恢复单个文件

Posted in git at 九月 6th, 2011 / No Comments »

如果你只是要恢复一个文件(修复未提交文件中的错误),如”hello.rb”, 你就要使用 git checkout $ git checkout -- hello.rb http://www.gagahappy.com/git-checkout-file/

Overview You can fairly easily today create an attractive web page using (X)HTML and CSS, but the moment you throw a Java applet into the mix you are asking for trouble. There is a jarring disconne...

Minimize HTTP Requests tag: content 80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scr...

一些朋友的T400机器在机器休眠后就无法正常恢复过来,只能通过长按电源键关机重启。针对这一类似的情况,介绍给大家一些解决方法。 方法 1: ThinkPad在BIOS里有SATA模式的设置ACHI和兼容模式,而之前的习惯是为了...

0

Amazon EC2 中使用 Ubuntu桌面

Posted in Linux at 八月 16th, 2011 / No Comments »

创建实例并选择系统镜像(AMI) 登陆AWS Management Consloe,切换到Amazon EC2,左上角有个Region,可以选择你要建立的实例位于哪里。有美国东岸、西岸、欧洲、新加坡,根据自己需要选择,我选的是新加坡的。选定后...