想成为Android的杰出开发工程师,不懂得Android的设计规则怎么可以,Android4.0问世后谷歌公司为Android程序员规范了一系列的设计原则,不要再盲目的模仿IOS的设计了,因为Android 就是Android ,不一样的烟火。...
分类:
移动开发 时间:
2014-05-10 02:16:06
阅读次数:
337
SafeHandle最大的意义是封装一个托管资源且本身会执行.NET中的资源释放模式(所谓的Dispose
Pattern),这样,开发者在使用非托管资源时,不可以不需要执行繁琐的资源释放模式,而直接使用SafeHandle就可以了,另外SafeHandle继承自CriticalFinalizerO...
分类:
其他好文 时间:
2014-05-10 01:40:42
阅读次数:
326
[Architecture Pattern]
Repository实作查询功能范例下载范例程序代码:点此下载问题情景在系统的BLL与DAL之间,加入Repository
Pattern的设计,能够切割BLL与DAL之间的相依性,并且提供系统抽换DAL的能力。但在软件开发的过程中,套用Reposito...
分类:
其他好文 时间:
2014-05-09 19:02:19
阅读次数:
294
1 String pattern = "\\{[^\\}]+\\}"; 2 // 创建
Pattern 对象 3 Pattern r = Pattern.compile(pattern); 4 5 String str = "您好...
分类:
编程语言 时间:
2014-05-09 16:29:49
阅读次数:
380
Django is a high-level Python Web framework
that encourages rapid development and clean, pragmatic design.Model: The
application dataView: which data ...
分类:
移动开发 时间:
2014-05-07 20:02:08
阅读次数:
453
1、 对^与$的理解通常我们会通过类似Matcher matcher =
Pattern.compile(regex).matcher(string);的代码去拿到一个Matcher对象。这种情况下regex中的^与$匹配的是整个待匹配串string的开头与结尾。而要使^与$去匹配每一行的开始与结尾...
分类:
编程语言 时间:
2014-05-07 09:03:01
阅读次数:
343
【题目】
原文:
1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables are fine. An
extra copy of...
分类:
其他好文 时间:
2014-05-07 08:48:12
阅读次数:
372
想成为Android的杰出开发工程师,不懂得Android的设计规则怎么可以,Android4.0问世后谷歌公司为Android程序员规范了一系列的设计原则,不要再盲目的模仿IOS的设计了,因为Android 就是Android ,不一样的烟火。...
分类:
移动开发 时间:
2014-05-07 08:28:03
阅读次数:
362
LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value
(will always be posi...
分类:
其他好文 时间:
2014-05-07 07:16:21
阅读次数:
316
前言今天研究了一下tomcat上web.xml配置文件中url-pattern的问题。这个问题其实毕业前就困扰着我,当时忙于找工作。
找到工作之后一直忙,也就没时间顾虑这个问题了。 说到底还是自己懒了,没花时间来研究。今天看了tomcat的部分源码 了解了这个url-pattern的机制。
下面让我...
分类:
Web程序 时间:
2014-05-06 13:15:33
阅读次数:
494