在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误:nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid"解决办法:$ sudo nginx -c /usr/local...
分类:
其他好文 时间:
2015-02-11 12:17:45
阅读次数:
211
1 /**Parses string formatted as YYYY-MM-DD to a Date object. 2 * If the supplied string does not match the format, an 3 * invalid Date (value NaN...
分类:
其他好文 时间:
2015-02-10 18:30:17
阅读次数:
154
调试及发布程序时,经常需要将一些信息输出保存,这里写了一个自己的日志记录类,记录信息更方便了。需要的话还可以进行更多的扩展,比如记录异常信息等。using System;
using System.IO;
namespace WindowsFormsApplication1
{
public static class LogerHelper
{
#region ...
1 #region 获得6位优惠码 zhy 2 public static string CreatePromoCode(string code) 3 { 4 if (code == "") 5 { 6 r...
1 #region 异步测试 2 //委托 3 public delegate void PrintDelegate(string s); 4 [WebMethod] 5 public string yibu() 6 ...
分类:
Web程序 时间:
2015-02-09 17:59:44
阅读次数:
143
1 #region 跨平台加解密(c# 安卓 IOS) 2 3 // public static string sKey = "12345678"; 4 5 // /// 6 7 // /// 解密 8 9 //...
分类:
移动开发 时间:
2015-02-09 17:49:42
阅读次数:
190
今天开机时出现如下对话框. 解决办法 sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update 参考: http://ubuntuforums.org/archive/index.php/t-1981033.html...
分类:
系统相关 时间:
2015-02-09 14:20:50
阅读次数:
190
#region 反序列化 /// /// 反序列化
/// /// 类型
/// XML字符串
/// public static object Deserialize(Type type, string xml)
{ try { using (StringReader sr = new Strin...
分类:
其他好文 时间:
2015-02-08 18:09:23
阅读次数:
220
Invalid project description我想打开SVN 的代码 ,别让我拷到别的地方,怎么破?
分类:
系统相关 时间:
2015-02-07 14:32:54
阅读次数:
185
检查dll是否已经注册检查是否已经注册的代码为: #region Is dll register public bool IsDllRegistered() { bool reg=true; RegistryKey rk=Registry.ClassesRoot....