I use the Elicpse IDE to develope the ansdroid app.Sometime encounter the messy code in the Elicpse One solve method is that to fix the Ecicpse's enCoding setting: click "Windows->Preferences->General->Content Type",in the right tab,mak…
      We always use Windows Server 2008 R2 English operation system. And it doesn't have any problem. But nowadays, we encounter a messy code problem in that operation system.       The problem occurred in a software reporting tools. What were worse,…
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''<h1 style="text-align: center;">php实现 字符串分割</h' at line 1 一.总结 一句话总结:我本来都是直接打开sql复制里面的内…
It's very strange that I found the messy code.I 've never seen this before. this is the java code: /** * list * * @throws UnsupportedEncodingException */ @RequestMapping(value = "/list", method = RequestMethod.GET) public String list(Long adminI…
Case:同样的代码,本地开发环境(local is Chinese Simplify)可以成功运行,但是放到Windows Server 2008 R2(Local is United State) 上,同样的代码失败了.最后跑到server上用vs2012 获取最新代码发现所有的中文都是乱码. Solution1:只该代码,其它设置不变(server 上的是设置不是我们这些小兵想动就可以动的).我写了两个方法. public bool CompareChineseString(string…
<PRE class=html name="code">spring 自动装配 default-autowire="byName/byType"         一.spring 自动装配 default-autowire="byName"      byName,按变量名称,与id名称一样,若不一样,就报错.      <?xml version="1.0" encoding="UTF-8&quo…
升级系统和XCode后.在IOS8上编译之前的项目会报例如以下错误: Undefined symbols for architecture x86_64: "_opendir$INODE64", referenced from: _OPENSSL_DIR_read in libcocos2dx iOS.a(o_dir.o) "_readdir$INODE64", referenced from: _OPENSSL_DIR_read in libcocos2dx iO…
5.1 "无继承"情况下的对象构造 考虑以下这个程序片段: 1 Point global; 2 3 Point foobar() 4 { 5 Point local; 6 Point *heap = new Point; 7 *heap = local; 8 // ... stuff ... 9 delete heap; 10 return local; 11 } L1,L5,L6表现出三种不同的对象产生方式:global内存配置,local内存配置和heap内存配置.L7把一个 cl…
STL是C++重要的组件之一,大学时看过<STL源码剖析>这本书,这几天复习了一下,总结出以下LZ认为比较重要的知识点,内容有点略多 :) 1.STL概述 STL提供六大组件,彼此可以组合套用: 容器(Containers):各种数据结构,如:vector.list.deque.set.map.用来存放数据.从实现的角度来看,STL容器是一种class template. 算法(algorithms):各种常用算法,如:sort.search.copy.erase.从实现的角度来看,STL算法…
前段时间触控公布cocos2dx-3.0,在升级之后试过之后,在最初的不习惯之后,感觉比之前的好用了不少,在下之前一直是用xCode模板创建,这回算是一口气升到顶了. 之后再一次编程时须要用到SimapleAudioEngine,而之后调试的时候在iPhone上全然没问题,可是在Android真机上调试时,却提示"SimpleAudioEngine.h" not found,在网上查了下,应该是库没有导入,可是因为我对eclipse了解不多,并且import入的时候也有莫名其妙的错误,…