使用Xcode SVN 出现问题The operation couldn’t be completed. (NSURLErrorDomain error -1012.)解决方法:打开终端 然后输入如下命令svn ls xxxx(xxx是你SVN Server的地址)这里询问你是否允许这个地址的访问,...
分类:
其他好文 时间:
2014-07-02 13:59:06
阅读次数:
416
错误信息:
Error
Cannot display data
The data cannot be displayed: there is no viewpoint application for the data
错误出现情景:
在对程序做Hardware Event-based Sampling Analysis 0分析时,出现上述错误。
错误解决方法:
删...
分类:
其他好文 时间:
2014-07-02 09:02:56
阅读次数:
337
需要实现在打印 WARN, ERROR, CRITICAL的log时显示函数/方法名和行号,在INFO级不显示
import logging
def AltCustomFormatter(logging.Formatter):
def __init__(self, fmt=None, datefmt=None):
super(AltCustomFormatter, self).__ini...
分类:
编程语言 时间:
2014-07-02 08:44:51
阅读次数:
432
给某个菜单项添加一个事件处理程序:
1. void CMainFrame::OnTest()
2. {
3. MessageBox("you clicked Menu item.");
4. // TODO: 在此添加命令处理程序代码
5. }
编译时报告如下错误:e...
分类:
其他好文 时间:
2014-07-02 08:28:40
阅读次数:
222
今天碰到一个比较坑爹的问题,在centos上用yum安装编译环境,运行:
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
结果导致编译cocos2d-x出现错误:
cc1plus: error: unrecognized command line option "-std=c++11"...
分类:
其他好文 时间:
2014-07-02 08:23:01
阅读次数:
290
题目:用两个栈实现一个队列。队列的声明如下:请实现它的两个函数appendTail和deleteHead,分别完成在队列尾部插入结点和在队列头部删除结点的功能。
分析:
队列的特点是“先进先出”,而栈的特点是“先进后出”。要用两个栈来实现队列。用图分析如下:
程序代码如下:
#include
#include
#include
#ifndef ERROR
#define E...
分类:
其他好文 时间:
2014-07-02 08:00:24
阅读次数:
247
当我更新完android L proview之后我的打包出问题了,报错/${zipalign}" error=2, No such file or directory
排查了一下午才知道 最近的ant/build.xml文件中丢失了一行代码
第二行代码丢失。直接恢复或者直接用老版本的build.xml文件就OK!fuck!...
分类:
移动开发 时间:
2014-07-02 07:51:32
阅读次数:
289
ERROR 1665 (HY000): Cannot executestatement: impossible to write to binary log since BINLOG_FORMAT = STATEMENTand at least one table uses a storage engine limited to row-based logging.InnoDB is limited to row-logging when transaction isolation level is REA...
分类:
数据库 时间:
2014-07-02 07:46:46
阅读次数:
322
错误信息及出现情景:
在export环境变量LD_PRELOAD=$XTERN_ROOT/dync_hook/interpose.so后,再运行amplxe-gui,出现上述错误。新增的动态链接库对VTune的libstdc++.so.6提出了高版本的要求。VTune 2013 updated 17的libstdc++.so.6版本为libstdc++.so.6.0.12,如果运行以下命令:
...
分类:
编程语言 时间:
2014-07-02 07:11:42
阅读次数:
339
postfix_编译时make:***[xsasl_cyrus_server.o]Error1make:***[update]
//如果编译出错,检查出错情况,一般是有包忘了装,要不是参数路径错误;
【注释】:
xsasl_cyrus_server.c:598:error:‘SASL_OK‘undeclared(firstuseinthisfunction)
xsasl_cyrus_server.c:600:warning:fo..
分类:
其他好文 时间:
2014-07-02 06:24:31
阅读次数:
1272