Top articles
-
Jackson serialization unexpected field
Jackson 在转换JSON的时候,有时候会有unrecognized field,原因是因为在Object Class 中加入了一个method来判断这个Object是否空。 在serialization的时候, Jackson发现一个新的attribute “NOTEMPTY” public boolean isNotEmpty() { return NullCheckUtil.isValueNotEmpty(unit) || NullCheckUtil.isValueNotEmpty(qualifier)...
-
UI framework
Mail from team mate : Just wanted to share something with you. In case you have some interest in UI development. Here below a I list of UI frameworks/tools that I am using for personal projects and which I believe represent (together) a very strong set-up...
-
5 个学习SQL的网站
1. http://sqlzoo.net/ 2. https://lagunita.stanford.edu/courses/DB/SQL/SelfPaced/courseware/ch-sql/seq-vid-introduction_to_sql/ 3.https://www.khanacademy.org/computing/computer-programming/sql 4.http://sqlbolt.com/ 5.http://www.essentialsql.com/ ref:h...
-
Using C++ library in C code
extern “C” can help you to call c fonction from c++, and also it can help you do the reverse. But as we know c++ has class which we cannot use in c, so we have to do some wrapper to help us. 1. //code in add.cxx 2. #include "add.h" 3. int sample::method()...
-
vetor list 区别
vector和数组类似,它拥有一段连续的内存空间,并且起始地址不变,因此它能非常好的支持随机存取(即使用[]操作符访问其中的元素),但由于它的内存空间是连续的,所以在中间进行插入和删除会造成内存块的拷贝(复杂度是O(n)),另外,当该数组后的内存空间不够时,需要重新申请一块足够大的内存并进行内存的拷贝。这些都大大影响了vector的效率。 list是由数据结构中的双向链表实现的,因此它的内存空间可以是不连续的。因此只能通过指针来进行数据的访问,这个特点使得它的随机存取变的非常没有效率,需要遍历中间的元素,搜索复杂度O(n),因此它没有提供[]操作符的重载。但由于链表的特点,它可以以很好的效率支持任意地方的删除和插入。...
-
convert TCHAR * to char *
Windows Data Types for Strings (Windows) : int wstrlen(_TCHAR * wstr) { int l_idx = 0; while (((char*)wstr)[l_idx] != 0) l_idx += 2; return l_idx; } char *wstrdup(_TCHAR *wSrc) { int l_idx = 0; int l_len = wstrlen(wSrc); char *l_nstr = (char *)malloc(l_len);...
-
Nosql基础比较
严禁转载,使用请注明出处:http://alex2012-c.j.overblog.com/ 毕业项目是为Steria做的,这里有一个自己当初研究了一些NoSQL的比较
-
Iterator 遍历问题
实例CODE : 结果如下 : Original contents of al: FlightA FlightB FlightC FlightD Modified contents of al: FlightA+ FlightB+ FlightC+ FlightD+ Modified list backwards: FlightD+ FlightC+ FlightB+ FlightA+
-
French caracter in HTML
Pour représenter les caractères accentués et des symboles comme les délimiteurs de balises, il faut utiliser des entités spéciales. Par exemple : à : à é : é ñ: ñ ô: ô Ä: Ä Ê: Ê &: & È: È
-
convert int to char
int a = 125; int b[50]; sprintf (b‚ "%d"‚ a); /* b contient la chaine "125"‚ et on concactene "oui". */ strcat (b‚ "oui"); printf ("%s\n"‚ b); ATTENTION : the first parameter of the fonction sprintf should be char[]