- 博客(21)
- 资源 (10)
- 收藏
- 关注
原创 [OAuth]OAuth2学习笔记
本文根据http://tools.ietf.org/html/draft-ietf-oauth-v2-23 编写 1.介绍 先明确用例中的角色 受保护的资源 :比如163相册的上的一副照片 资源拥有者 : 本文的作者 第三方 :老婆大
2012-03-02 12:29:33
2676
原创 [python-sqlite] 问题"conn.cursor()"
问题 : "conn.cursor()" ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 5084 and this is thread id 4820解决方式:
2012-02-24 12:18:57
2960
转载 [Python-pattern design] Factory method pattern
[转载]: http://whilefalse.net/2009/10/21/factory-pattern-python-__new__/Python中Factory method的使用借鉴class Winter(object): def display(self): print 'Winter'class Summer(object): def
2012-02-22 11:09:26
606
原创 [项目-文件同步][database-sqlite]文件同步表设计
# 注意以下表名及列名创建时将转换为大写字母 # DLL必须以;分割# 可使用#进行单行注释#为了避免强制退出时来不及删除同步文件,在脚本中先进行了删除表和索引的处理DROP TABLE IF EXISTS zsync_root;DROP TABLE IF EXISTS zsync_filter;DROP TABLE IF EXISTS zsync_status;DROP INDE
2012-02-21 17:29:26
545
原创 [python] utf-8专题
1.代码中指定字符集 规范:http://www.python.org/dev/peps/pep-0263/ 示例:[转载] # coding= #!/usr/bin/python # -*- coding: -*- #!/usr/bin/python # vim: set fileencoding= :
2012-02-20 15:34:01
303
原创 [项目-文件同步]图标覆盖
1.问题一 1.1简介:实现win32过程同步中 同步完成图标覆盖的功能。 1.2实现方式:利用实现采用COM组件实现win32 shell extend 的接口 1.3出现的问题:可以根据接口IsMemberOf(LPCWSTR, DWORD)来进行是否进行图标覆盖 1.4分析问题: 1.4.1 需要根据同步根目录来判断是否需要加载图标覆盖
2012-02-20 14:33:44
399
转载 [Beginning Visual C++ 2008]to get rid of space in a string
from Ivor Horton [Beginning Visual C++ 2008]#includeusing std::cout;using std::endl;void eatspaces(char* str);int main(){ char ch[] ="12 * 2.3 - 3.4+ 5.6"; eatspaces(ch); cout << ch <<en
2012-02-16 10:10:37
366
原创 替换数组中最小数字
public static double[] lowest(double array[],double number){ if (array == null || array.length == 0) return null; int j =0 ; for(int i=0;i<array.length;i++){ if(array[j]>array[i]) j=i;
2012-02-15 14:52:05
303
转载 [Beginning Visual C++2008 ] 替换数组中最小的数
原文 Ivor Horton [Beginning Visual C++2008 ] #include#includeusing std::cout;using std::endl;using std::setw;double& lowest(double values[],int count);int main(){ double array[] = {3.0,10
2012-02-15 14:22:02
426
原创 计算字串出现关键字次数和所在位置
import java.util.Iterator;import java.util.List;import java.util.ArrayList;public class CalStringOccurrence { public static int calOccurences(final String input,final String searchWord){ in
2012-02-14 14:43:16
303
原创 calculate primes
public class Primes { public static void cal(int max){ if (max<=4){ max =4; } long primes[] = new long[max]; boolean found = true ;// indicate when the prime number found int count =
2012-02-14 11:29:07
718
转载 [Beginning Visual C++2008 ] calculate primes
from [Beginning Visual C++2008 ] #include#includeusing std::cout;using std::cin;using std::endl;using std::setw;int main(){ long* pprime = 0; //initialize long point; long max = 4; //
2012-02-14 11:14:50
331
原创 Microsoft Visual Studio 2010 hotkey
1.Create a new project [ Ctrl+Shift+N ]2.Solution Properties Manager [ Alt+F7 ] 3.Build solution [ F7]4.Running Program [ Ctrl+F5 ]
2012-02-08 15:36:54
282
原创 使用Python实现win32下IconOverlay开发
目标:在现有Python客户端中实现文件夹和文件图标覆盖[Icon Overlay]适用范围: win32 系统 , python2.6构思:第一阶段:学习Window Icon Overlay实现概念直观了解[转载] How to overlay an icon over existing shell objects in 3 easy steps 阐述原理
2012-02-02 16:01:54
1396
原创 win32 XP regedit
1.启动项 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
2012-01-31 08:55:21
227
原创 doc文档保护
小技巧:window word文档保护软件版本:Microsoft office word 2003方法: 打开已经存在或者新建文档 选择 工具-->文档保护-->编辑限制-->选择填写窗体
2012-01-30 10:52:17
239
转载 set up Android development environment and python
文章出处:Head First Python 作者:Paul Barry1.Download software development kit (SDK) http://developer.android.com/sdk/index.html 2.Configure the SDK and amulator 2.1 Add an Android platform
2012-01-30 09:57:51
390
高效的两轮远程文件快速同步算法
2015-02-04
软件需求说明书编写规范
2015-02-04
Window高级编程第五版[英文]
2012-02-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人