这次可以和看了很不爽的sharedpreferences 说再见了。用法太恶心了。保存屁大点数据还用 commit 。
吐槽结束,上代码
LocalStorage.javaimport java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.i...
分类:
移动开发 时间:
2015-04-24 09:21:15
阅读次数:
156
一、问题起源 在MySQL的官方文档中有明确的说明不支持嵌套事务: [sql]?view plaincopy Transactions?cannot?be?nested.?This?is?a?consequence?of?the?implicit?commit?performed?for?any?curre...
分类:
数据库 时间:
2015-04-23 16:00:56
阅读次数:
155
一、问题起源
在MySQL的官方文档中有明确的说明不支持嵌套事务:
1. Transactions cannot be nested. This is a consequence of the implicit commit performed for any current transaction when you issue a START TRANSACTION statement or...
分类:
数据库 时间:
2015-04-23 15:49:47
阅读次数:
179
git initgit statusgit add readme.txtgit add --all Adds all new or modified filesgit commit -m"message"git add '*.txt' Add all txt file in the who...
分类:
其他好文 时间:
2015-04-23 15:19:36
阅读次数:
122
1.Git 配置使用Git的第一件事就是设置你的名字和email,这些就是你在提交commit时的签名。git config --global user.name "you name"git config --global user.email "youemail@email.com"2.Clon....
分类:
其他好文 时间:
2015-04-23 01:57:19
阅读次数:
139
git里面实现撤销commit这个据我目前所知,有至少4个途径可以做到1、git reset2、git revert3、git rm –cached4、git checkout这个可以参考这个https://www.atlassian.com/git/tutorials/resetting-chec...
分类:
其他好文 时间:
2015-04-22 20:33:04
阅读次数:
189
*初始化git仓库,使用git init命令*添加文件到git仓库分两步:1、使用git add filename ;可分多次使用,添加多个文件到暂存区2、使用git commit -m “说明” ;完成提交到分支*查看工作区状态,使用git status 命令;如果提示有修改可使用git diff...
分类:
系统相关 时间:
2015-04-21 21:59:24
阅读次数:
238
fromhttp://blog.csdn.net/jake9602/article/details/18414841在android 中存储数据时经常用SharedPreference, 并且在提交数据时一直用的是Editor的commit方法, 今天无意了看到了系统用了apply,看了方法的介绍,...
分类:
移动开发 时间:
2015-04-21 20:21:17
阅读次数:
175
commit: d577db99873cbf04b8e17b78f17ec8f3a27eca30 Date: Fri Apr 10 23:45:36 2015 -0700 ##0.命令行和依赖的基础知识 ### Synopsis ``` Perform a rolling update of the given ReplicationController. Replac...
分类:
Web程序 时间:
2015-04-20 17:10:48
阅读次数:
273
版本控制对于团队合作显得尤为重要,那么如何在iOS开发中进行版本控制呢?在今天的博客中将会介绍如何在MAC下配置SVN服务器,如何导入我们的工程,如何在Xcode中进行工程的checkOut和Commit. 一、配置SVN服务器 1、创建Svn服务工作路径同时新建我们的App工程,入下图所示...
分类:
移动开发 时间:
2015-04-20 10:52:26
阅读次数:
148