mysql执行update报错update library set status=true where 1=1 Error Code: 1175. You are using safe update mode and you tried to update a table without a WHE...
分类:
数据库 时间:
2014-11-16 18:36:44
阅读次数:
381
android存取数据方式:文件、SharedPreferences、SQLite 数据库、Content provider
文件流:
使用java IO流对文件进行读写操作,文件权限默认。
指定文件权限写入:mode:文件权限MODE_PRIVATE的文件是应用程序私有的,MODE_WORLD_READABLE则所有应用程序都可以访问的, MODE_WORLD_WRITEABL...
分类:
移动开发 时间:
2014-11-16 10:45:25
阅读次数:
215
1. inputprint "What's your first name?"first_name = gets.chomp chomp will delete "\n" from the stringhttp://www.ruby-doc.org/docs/Tutorial/part_02/us....
分类:
其他好文 时间:
2014-11-16 07:06:55
阅读次数:
211
创建SharedPreferences对象:SharedPreferences sharedPreferences = context.getSharedPreferences("userInfo", MODE_PRIVATE); Editor editor = sharedPreferences....
分类:
移动开发 时间:
2014-11-16 00:27:58
阅读次数:
326
有些手机以及平板中有一种访客模式,打开访客模式,我们将无法拖动Launcher上的图标,也无法打开adb
主要操作就是在打开开关的地方执行如下操作
GuestModeUtil guestModeUtil = GuestModeUtil.getInstance(getActivity());
guestModeUtil.save(pin);// 保存PIN码
SystemProperties...
分类:
其他好文 时间:
2014-11-15 08:55:44
阅读次数:
236
1:百科 上帝模式,,即"God Mode”,或称为“完全控制面板”。是Windows 7系统中隐藏的一个简单的文件夹窗口,但包含了几乎所有Win 7系统的设置,如控制面板的功能、界面个性化、辅助功能选项等方方面面的控制设置,只需通过这一个窗口就能实现所有的操控,而不必再去为调整一个小小的系统设置....
分类:
其他好文 时间:
2014-11-14 22:35:19
阅读次数:
216
1.各列参数说明:
1.1.Def.Mode: 表示开机后gpio模块初始化后的模式,每个GPIO pin最多有7种模式,MODE0总是为GPIO mode。
GPIO在系统初始化后的mode是由Def.Mode这一栏决定的。
1.2.M0--M7:M0-M1-M3-M4-M5-M6-M7各个GPIO的可选的模式。
如果勾选了M0-M7中的某些项,则会生成类似 #d...
分类:
移动开发 时间:
2014-11-14 21:16:11
阅读次数:
319
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.这个题应该就是求子串的问题,改进的方法是kmp算法。...
分类:
其他好文 时间:
2014-11-14 19:36:52
阅读次数:
254
Part 1、块状链表。定位插入删除数组O(1)O(n)O(n)链表O(n)O(1)O(1)对于线性表的以上常见操作来说,数组和链表都无法有效地解决。但是,若我们将链表的每个节点存成一个数组,使得链表里每个节点的数据拼接起来就是原先的线性表中的内容(即块状链表),并且数组的大小合适的话,以上的操作都...
分类:
其他好文 时间:
2014-11-14 08:07:03
阅读次数:
234
iOS Drawing ConceptsHigh-quality graphics are an important part of your app’s user interface. Providing high-quality graphics not only makes your app ...
分类:
移动开发 时间:
2014-11-13 22:25:27
阅读次数:
522