java中用于解释json的主流工具有org.json、json-lib与gson,本文介绍org.json的应用。 官方文档: http://www.json.org/java/ http://developer.android.com/reference/org/json/package-sum ...
分类:
Web程序 时间:
2016-04-13 18:40:04
阅读次数:
248
EntityFramework - Migrations 對項目進行EF的數據庫升級操作。分爲開發環境與部署環境。上的操作總結。 引用: Command說明https://coding.abel.nu/2012/03/ef-migrations-command-reference/ 開發環境 項目引 ...
分类:
其他好文 时间:
2016-04-13 13:01:18
阅读次数:
142
要保证线程安全、要保证高效。
这是一个跟芯片架构、编译器都相关的工作。
剖析boost::detail::shared_ptr的计数实现机制:
// shared_ptr中的引用计数成员属性pn
boost::detail::shared_count pn; // reference counter// shared_count中的pi成员属性
sp_counted_base * pi_;//...
分类:
其他好文 时间:
2016-04-12 17:34:35
阅读次数:
141
一直搞不清楚这两个有什么区别。刚才特意查了一下帖子。 Integer.parseInt 返回的是 primitive int Integer.valueOf 返回的是 Integer Object Reference: http://stackoverflow.com/questions/73550 ...
分类:
其他好文 时间:
2016-04-12 01:43:01
阅读次数:
154
IntroductionName Server架构分层管理机制分层查询机制Name Server之间的Master-Slave架构DDNS底层协议配置文件/etc/hosts/etc/resov.conf相关命令nslookuphostdig总结DNS安全问题Reference Introducti... ...
分类:
其他好文 时间:
2016-04-11 22:23:12
阅读次数:
244
n*m的矩阵W是水 .是地问有多少池塘池塘的定义是:W通过 八个 方向连接成的一片算作是一个池塘样例输入中,有左上、左下、右侧三片连接在一起的W因而样例输出给出了3个池塘的答案 ...
分类:
其他好文 时间:
2016-04-11 20:51:45
阅读次数:
175
LeetCode338.CountingBitsGivenanonnegativeintegernumbernum.Foreverynumbersiintherange0≤i≤numcalculatethenumberof1‘sintheirbinaryrepresentationandreturnthemasanarray.Example:Fornum=5youshouldreturn[0,1,1,2,1,2].Followup:Itisveryeasytocomeupwithasolutionwith..
分类:
其他好文 时间:
2016-04-11 18:57:10
阅读次数:
123
linux下權限管理詳解chown命令:改變文件擁有者(屬主)格式:chown[選項]用戶名文件(可多個文件一起修改)選項:-R表示遞歸,目錄及其子目錄下所有文件--reference=/path表示以此文件屬主進行參考舉例說明:將test.txt文件所屬主改為willow擁有者chownwillow/tmp/test.txt將dir?.
分类:
系统相关 时间:
2016-04-11 15:52:40
阅读次数:
289
Question: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representa ...
分类:
其他好文 时间:
2016-04-11 11:45:26
阅读次数:
142
题目链接 题意:给定长度为n(n <= 1000)的只含小写字母的字符串,问字符串子串不重叠出现最少两次的不同子串个数; input: aaaa ababcabb aaaaaa # output 2 3 3 思路:套用后缀数组求解出sa数组和height数组,之后枚举后缀的公共前缀长度i,由于不能重 ...
分类:
编程语言 时间:
2016-04-10 23:58:53
阅读次数:
610