上一页 1 ··· 7 8 9 10 11
摘要: 1.建立密码文件:# htpasswd -c /usr/local/apache2/conf/htpasswd.users adminNew password: 123456Re-type new password: 123456#接下按提示来输入密码 我这里例如可以是 123456#上边就建立了用户名和密码用户名:admin密 码:1234562.在修改配置文件在虚拟主机中加入:<VirtualHost *:80> Options -Indexes FollowSymLinks ServerAdmin xxx@126.com DocumentRoot "/var/www 阅读全文
posted @ 2012-01-16 15:17 令狐葱★ 阅读(1992) 评论(0) 推荐(0) 编辑
摘要: http://www.gotapi.com/语言:英语简介:HTML,CSS,XPATH,XSL,JAVASCRIPT等API的查询网站。http://www.w3schools.com/语言:英语简介:W3C制定的标准诸如XML,HTML,XSL等等的在线学习教程。http://www.xml.org.cn/语言:中文简介:可以说是XML的中国官方网吧。W3C标准的翻译组织与XML系列技术交流社区.http://www.connectionstrings.com/语言:英语简介:这里几乎收集了所有的数据库连接字符(connectionstring)了。http://www.itpub.net 阅读全文
posted @ 2009-12-08 14:35 令狐葱★ 阅读(237) 评论(1) 推荐(1) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1functionisValidMail(sText){2varreMail=/^(?:[a-z\d]+[_\-\+\.]?)*[a-z\d]+@(?:([a-z\d]+\-?)*[a-z\d]+\.)+([a-z]{2,})+$/i;3alert(reMail.test(sText))4}5 阅读全文
posted @ 2009-12-06 19:18 令狐葱★ 阅读(186) 评论(0) 推荐(0) 编辑
摘要: cssninjas是一个商业网站,本身就是做网页设计的,因此站点本身也设计的想当不错。使用到的jQuery插件有: * jQuery UI 1.6RC2 [Slider + Datepicker]* sIFR v2.0.7看代码:Code From cssninjas.comCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1/**//*2*Scripts3*4*/5varEngine={6//externallinks7externalLin 阅读全文
posted @ 2009-03-30 20:17 令狐葱★ 阅读(1610) 评论(0) 推荐(0) 编辑
摘要: b22bb5b71/**//**********************************2题目:波兰式计算器3/*以下是几个标准的表达式:45*2+-355*(2+-3)65+((-4*-5)+(((5+(6-2))*7+((4+2)*(3-1))))7与之等价的波兰表达式为8+*52-39*5+2-310+5+*-4-5+*+5-627*+42-311112Author:Linghuco... 阅读全文
posted @ 2007-04-29 21:15 令狐葱★ 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: //C++ 中的可变参数使用#include <stdio.h>#include <stdarg.h>intOpenFileArray(FILE***array,char*mode,char*filename,...){ char*pName=NULL; intnrFiles=0; intarrayIndex=0; if(filename==NULL){ return0; } //在参数表中创建一个索引使用的typedef va_listlistIndex; //在参数表中初始化第一个参数索引的宏 va_start(listIndex,filename); do{ .. 阅读全文
posted @ 2007-01-14 16:14 令狐葱★ 阅读(834) 评论(0) 推荐(0) 编辑
摘要: #include <iostream.h>structA{ chara;longb;charc;longd;};structB{ chara;charc;longb;longd;};#pragma pack(push, 1)structC{ chara;longb;charc;longd;};#pragma pack(pop)structD{ char*a;char*b;};//使用比特域的结构structBitField{ unsigneda1:11; //long 1 unsigneda2:11; unsignedb1:10; unsigneda3:11; //long 2.. 阅读全文
posted @ 2007-01-13 14:56 令狐葱★ 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 在这本书的最后一章提到算法的陷阱的时候举了几个例子,记下两个。1. 循环计数的覆盖如果把1加到数值为255的字节上,该字节就会变为0。unsignedchari;for(i=0;i<256;i++){ cout<<"test"<<(int)i<<endl;}这就会出现一个死循环了,因为255之后再加一就又为0了。2. 数组和继承的混用#include <iostream.h>classAverageJoe{public: longid;};classJetSet:publicAverageJoe{public: long 阅读全文
posted @ 2007-01-12 20:29 令狐葱★ 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 在VC++ 6.0 中使用_beginthread 和 _endthread 的时候,出现如下错误:error C2065: '_beginthread' : undeclared identifiererror C2065: '_endthread' : undeclared identifier解决方案:debug状态:settings->C/C++->Project Options中加入/MDdrelease状态:settings->C/C++->Project Options中加入/MD如果还不行,可以修改以下选项:project 阅读全文
posted @ 2007-01-12 11:26 令狐葱★ 阅读(1319) 评论(1) 推荐(0) 编辑
摘要: Windows Live Writer最新版支持很多blog系统,当然包括google的blogger。不过设置的时候偶遇到一点点麻烦,居然在Windows Live Writer帮助里没找到解决方案,后来总算试出来了,呵呵在此列出设置blogger 和博客园(cnblogs)的方法:1. 设置Blogger首先填写blog地址、用户名、密码,无甚可说,然后在“Type of weblog that you are using”中选择“blogger”,最让人难以捉摸的是下面的“Remote posting URL foryour weblog”,其实只要你把自己blogger最下面的Post 阅读全文
posted @ 2007-01-04 20:08 令狐葱★ 阅读(484) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11