//#pragma comment(linker,
"/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#include#include#incl...
分类:
其他好文 时间:
2014-05-08 19:28:34
阅读次数:
277
安装XDebug后自动开启PHP Stack Trace,导致服务器PHP
error日志暴满,甚至高达1G
分类:
Web程序 时间:
2014-05-08 00:43:36
阅读次数:
482
很早写的,最近别人问过一次,贴出来吧。#!/bin/bash
#
source/etc/profile&>/dev/null
basedir=$(cd`dirname$0`;pwd)
nowmonth=`date+%m`
nowday=`date+%d`
email="$basedir/email/sendemail.sh"
functionGaiMiMa(){
user="$1"
passwd=$(/usr/bin/mkpasswd-l20-d5-c2-C..
分类:
其他好文 时间:
2014-05-07 22:26:08
阅读次数:
951
Entity framework在验证未通过的时候默认不会抛出详细异常,这给我们debug带来很大的困难,不过我们可以手动捕获,见代码:
private int Update(Employee entity)
{
string error = string.Empty;
using (NorthwindEntities ctx = ...
分类:
其他好文 时间:
2014-05-07 21:50:21
阅读次数:
302
数组
C++ 不支持数组的抽象 abstraction 也不支持对整个数组的操作我们有时会希望对整个数组进行操作例如把一个数组赋值给另外一个数组对两个数组进行相等比较或者想知道数组的大小 size 例如给出两个数组我们不能用赋值操作符把一个数组拷贝到另一个中去。
int array0[ 10 ], array1[ 10 ];
array0 = array1; // error
数组类型本...
分类:
编程语言 时间:
2014-05-07 21:38:43
阅读次数:
487
update 表1 set 表1.A=表2.A from 表2where表1.B=表2.B
分类:
数据库 时间:
2014-05-07 21:19:42
阅读次数:
425
gsettings reset org.gnome.desktop.wm.preferences
theme默认gnomegsettings set org.gnome.desktop.interface clock-show-date
true顶部面板显示日期gsettings set org.g...
分类:
其他好文 时间:
2014-05-07 21:06:13
阅读次数:
401
使用libcurl源码编译不过的问题
setup_once.h(274) : error C2628: '' followed by 'bool' is illegal (did you forget a ';'?)...
分类:
其他好文 时间:
2014-05-07 15:37:56
阅读次数:
383
1.date
date "+%y/%m%d %h/%m/%s %j"...
分类:
系统相关 时间:
2014-05-07 15:08:14
阅读次数:
350
一、日志文件
1、错误日志:Error Log
内容:MyQL Server 运行过程中所有较为严重的警告和错误信息,以及MySQL Server 每次启动和关闭的详细信息。
路径:默认存放位置在数据目录下
名称:默认文件名以hostname.err 命名
修改:“--log-error[=file_name]”,修改其存放目录和文件名
扩展:FLUSH LOGS...
分类:
数据库 时间:
2014-05-07 15:06:24
阅读次数:
509