动态IP的机器做服务器本来就不是什么好的选择,但是有时候也没有办法,手里只有这样的机器,应该怎样解决。这里提供几种解决方案:
如果动态IP的租期非常长,还好,可以基本上别关机,只是偶尔重启一下,IP应该保得住。但是还是建议给服务器一个域名,以防IP万一变化了,使用户连不上服务器。只要一个静态的域名即可,非常偶尔的IP变了就改一下指向就好了。
(more…)
Blog
-
动态IP主机做服务器解决方案
-
FTP错误代码详解!
转自:未知
110 Restart marker reply. In this case, the text is exact and not leftto the particular implementation; it must read: MARK yyyy = mmmm whereyyyy is User-process data stream marker, and mmmm server’s equivalentmarker (note the spaces between markers and “=”.
重新启动标志回应。这种情况下,信息是精确的并且不用特别的处理;可以这样看:标记 yyyy = mmm 中 yyyy是 用户进程数据流标记,mmmm是服务器端相应的标记(注意在标记和等号间的空格)
———————————–
(more…) -
如何避免由于编译器差别带来的错误
转自http://acm.cist.bnu.edu.cn
1、判题系统使用的是G++编译器,和普通使用的TC,VC都有所不同,建议大家使用Dev C++作为IDE,或者用TC和VC写代码,提交前使用Dev C++编译,预防编译错误。
提交C语言代码最好使用G++,G++兼容C和C++。C的代码可以用GCC也可用G++提交,而C++的代码不能够用GCC提交,只能用G++。
(more…) -
FCKEditor: The server didn't send back a proper XML response解决方法
The server didn’t send back a proper XML response. Please contact your system administrator.
XML request error: OK (200)所有配置均正确,而会有上面这样的错误。是因为不支持浏览中文文件名导致,解决方法: (more…)
-
poj_1009(TLE&MLE)
/* //ACM Poj 1009 //File: 1009.cpp //Author: Kangzj //Mail: Kangzj@mail.bnu.edu.cn //Date: April 29, 2009 */ #include
#include #include #include -
poj_1008
/* //ACM Poj 1008 //File: 1008.cpp //Author: Kangzj //Mail: Kangzj@mail.bnu.edu.cn //Date: April 29, 2009 */ #include
#include using namespace std; struct TYD { int Dnum; string Dname; }; int main() { string TkDays[20]={"imix","ik","akbal","kan","chicchan","cimi","manik","lamat","muluk","ok","chuen","eb","ben","ix","mem","cib","caban","eznab","canac","ahau"}; string HbMons[19]={"pop","no","zip","zotz","tzec","xul","yoxkin","mol","chen","yax","zac","ceh","mac","kankin","muan","pax","koyab","cumhu"}; ostringstream buff; TYD Tday; int i,j,n; int Hyear,Hday, Tyear; string Hdaystr, Hmonth; int days,Tdays; cin>>n; buff< >Hdaystr>>Hmonth>>Hyear; Hdaystr=Hdaystr.substr(0,Hdaystr.size()-1); if (Hdaystr.size()==2) { Hday=(Hdaystr[0]-'0')*10+(Hdaystr[1]-'0'); }else { Hday=(Hdaystr[0]-'0'); } if(Hmonth=="uayet") { j=18; } else { for(j=0;j<18;j++) { if(Hmonth==HbMons[j]) { break; } } } days=Hyear*365+j*20+Hday; Tyear=days/260; Tdays=days%260;//注意边界! Tday.Dname=TkDays[Tdays%20]; Tday.Dnum=Tdays%13+1; buff< -
poj_1007
/* //ACM Poj 1007 //File: 1007.cpp //Author: Kangzj //Mail: Kangzj@mail.bnu.edu.cn //Date: April 28, 2009 */ #include
#include using namespace std; struct revNum { int rvNums; int order; }; int getReverseNum(string DNA, int n) { int *count=new int[n]; int all=0,i; for (i=0;i =0;i--) { for(int j=0;j>n>>m; string *DNA=new string[m]; int count=0,temp,i; revNum *rvNum=new revNum[m]; for(i=0;i >DNA[i]; temp=getReverseNum(DNA[i],n); //插入排序 if(count==0) { rvNum[0].rvNums=temp; rvNum[0].order=i; count++; } else { int j,flag=0; for(j=0;j j;k--) { rvNum[k]=rvNum[k-1]; } rvNum[j].rvNums=temp; rvNum[j].order=i; count++; flag=1; break; } }//for(int j=0;j -
poj_1005
/* //ACM Poj 1005 //File: 1005.cpp //Author: Kangzj //Mail: Kangzj@mail.bnu.edu.cn //Date: April 28, 2009 */ #include
#include
