最近要用到Django,换成mysql出现了以下问题:The database backend does not accept 0 as a value for AutoField解决方法:cd 到对应的目录sed -i.old 's|\(ForeignKey.*\)default=0|\1defa...
分类:
数据库 时间:
2014-08-08 11:51:35
阅读次数:
1491
create() ->mnesia:create_table(?ID_TABLE, [{disc_copies, [node()]}, {attributes, record_info(fields, unique_id)}]),Fun = fun(Old) ->#game_server_data{...
分类:
数据库 时间:
2014-08-07 21:43:30
阅读次数:
241
最近玩儿python玩上瘾了,突然想念c语言,所以,休闲下:解法一:如果没有对申请外部空间有所限制,那就先试试这个喽:1 void invert_str1(char *old_str, char *new_str)2 {3 int i = strlen(old_str)-1;4 in...
分类:
其他好文 时间:
2014-08-06 18:12:01
阅读次数:
206
convertView 在API中的解释是The old view to reuse, if possible, 第一次getView时还没有convertView,这时你便创建了一个新的view,下次getView时就有这个“旧的”convertView了 setTag的作用才是把查找的view....
分类:
其他好文 时间:
2014-08-05 18:56:19
阅读次数:
205
Problem DescriptionThere is an old country and the king fell in love with a devil. The devil always asks the king to do some crazy things. Although th...
分类:
其他好文 时间:
2014-08-04 17:32:07
阅读次数:
290
JS 对象:var person = { firstname : "Bill", lastname : "Gates", age : 56};var person = new Object();person.firstname = "Bill";person.lastname = ...
分类:
Web程序 时间:
2014-08-03 23:12:56
阅读次数:
314
for...in 循环主要用于数组,也可用于对象。for (var index in myArray) { document.write(myArray[index]);}var person = { firstname : "Bill", lastname : "Gates", ...
分类:
其他好文 时间:
2014-08-03 22:48:56
阅读次数:
134
由于重装了Win8.1,在C盘会生成window.old的文件夹。本来想删除的,却出现文件名太长无法删除。那就改名呗,右键选择文件,我去,只有打开和发送选项,连属性选项都没有。当然打开和发送功能也不能正常使用。 那就...
由于应用程序的升级,往往伴随着数据库的升级,数据库升级一般设计表的增加与删除,表添加删除字段,数据的备份等操作。1.数据库升级 我们都通过继承SQLiteOpenHelper类,实现对数据库的操作和版本升级等。版本升级有关方法onUpgrade(SQLiteDatabase db, int old....
分类:
移动开发 时间:
2014-08-02 18:07:23
阅读次数:
271
Problem Description
There is an old country and the king fell in love with a devil. The devil always asks the king to do some crazy things. Although the king used to be wise and beloved by his peop...
分类:
其他好文 时间:
2014-08-01 20:00:22
阅读次数:
287