Android 提供了多种存储数据的方法,其中最简单的是使用Shared Preferences. Shared Preferences 可以存储 Key/value 对,Shared Preferences 支持存取 boolean, float ,long ,integer, string ,最...
分类:
移动开发 时间:
2015-03-02 12:44:46
阅读次数:
150
1.查看快捷键定义的地方 Window->Preferences->General->Keys。
2.更改启动页 在AndroidManifest.xml第一个activity标签项中 android:name=".ResultDemoActivity" ResultDemoActivity改为你想要第一启动的activity。
3.取消对“块注释的格式化” Windows->...
分类:
移动开发 时间:
2015-03-02 09:30:40
阅读次数:
148
linux下应用无故反应异常,登陆服务器查看发现:-bash-4.1$jps
JavaHotSpot(TM)64-BitServerVMwarning:Insufficientspaceforsharedmemoryfile:
/tmp/hsperfdata_kf01/4830
Tryusingthe-Djava.io.tmpdir=optiontoselectanalternatetemplocation.
4830Jps-bash-4.1$df-h
文件系统..
分类:
其他好文 时间:
2015-03-01 22:30:02
阅读次数:
211
#include class Test : public boost::enable_shared_from_this{ // ......};boost::shared_ptr tt(new Test);上面定义的Test类派生自boost::enable_shared_from_this,获取....
分类:
其他好文 时间:
2015-03-01 20:57:32
阅读次数:
161
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Ncis the number of distinct common numbers shared by the two...
分类:
其他好文 时间:
2015-03-01 18:21:51
阅读次数:
181
C++ 智能指针
flyfish 2015-3-1
使用原始指针进行显示内存管理在性能上有优势,但容易出错。诸如 野指针,重复释放,内容泄露等。
C++为了在编程语言上支持更好的内存管理机制,C++98提供了auto_ptr,因为auto_ptr的缺点在C++11中被废弃,C++11提供了
unique_ptr,shared_ptr,weak_ptr等智能指针在自动回收堆分配的内存,智能指...
分类:
编程语言 时间:
2015-03-01 17:09:47
阅读次数:
253
cursor: pin S
OTN 解释如下:
cursor: pin SA session waits on this event when it wants to update a shared mutex pin and another session is currently in the process of updating a shared mutex pin f...
分类:
其他好文 时间:
2015-02-28 21:42:53
阅读次数:
147
//更改代码行距打开C:\Users\{yourname}\AppData\Roaming\NetBeans\7.3.1\config\Editors\Preferences,用文本编辑器打开org-netbeans-modules-editor-settings-CustomPreferences...
分类:
其他好文 时间:
2015-02-28 18:11:14
阅读次数:
133
eclipse更改java版本的几个地方 项目右键->Properties->Java Compiler 选择相应的版本 项目右键->Properties->Project Facets -> Java?选择相应的版本 Window -> Preferences->Java -> Compiler?选择相应的版本...
分类:
编程语言 时间:
2015-02-28 16:48:34
阅读次数:
312
free -m total used free shared buffers cachedMem: 7760 1572 6187 0 9 101-/+ buffers/cache: 1461 6298Swap: 511 ...
分类:
其他好文 时间:
2015-02-28 15:55:58
阅读次数:
258