Features
Make asynchronous HTTP requests, handle responses in anonymous callbacksHTTP requests happen outside the UI threadRequests use a threadpool to cap concurrent resource usageGET/POST params ...
分类:
移动开发 时间:
2014-05-26 04:08:22
阅读次数:
330
目的:使用表驱动法,替换复杂的if/else和switch/case语句。说明:JS
等其他语言也都支持的.表驱动发示例:http://blog.csdn.net/zhouyulu/article/details/6860907参考资料1.
《代码大全》(第2版)中文版,第18章 表驱动法。
分类:
编程语言 时间:
2014-05-26 00:55:26
阅读次数:
758
package com.examp.use_SQLite.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import andr...
分类:
移动开发 时间:
2014-05-25 21:29:20
阅读次数:
258
Problem Description
Some days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big number with it.
But I also don't want to use...
分类:
其他好文 时间:
2014-05-25 16:39:53
阅读次数:
266
Problem Description
Some days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big number with it.
But I also don't want to use...
分类:
其他好文 时间:
2014-05-25 16:32:49
阅读次数:
214
【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
分类:
其他好文 时间:
2014-05-25 07:39:05
阅读次数:
256
在雅各布森用例分析方法和科伯恩用例分析方法中其实都没有“业务规则”的属性,在科伯恩方法中有个相近的属性是约束条件。但是业界使用中常常会给用例加上这个属性,这是为什么呢?为什么两位大师没有加上,是大师们疏忽了?而为什么不少人加上了呢?
从时间和传播上很容易推断,业务规则的来源是传统的需求规格说明书。在传统的需求规格说明书中,整理提炼业务规则或称业务逻辑是其中核心的分析产物。受到传统需求规格说明书的...
分类:
其他好文 时间:
2014-05-25 07:22:45
阅读次数:
1809
The Leak of the Memory in C++
In this chaper I will introduce a new smart pointer which is scoped_ptr;
It likes auto_ptr but better. When peopel use auto_ptr, sometimes they forget
that auto_...
分类:
编程语言 时间:
2014-05-25 07:03:10
阅读次数:
373
题目
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
解答...
分类:
其他好文 时间:
2014-05-25 00:37:34
阅读次数:
284
/*
* 这里我是利用分析java内存模型的方法来猜想javascript的内存模型,
* 由于没有看到国内有关于分析javascript的书籍,但是可以借鉴java的
* 内存模型结构来帮助理解javascript的内存模型中的原型机制,下面先
* 给出一个简单的原型例子
* */
"use strict";
function PrototypeModel(name,author...
分类:
编程语言 时间:
2014-05-24 17:18:39
阅读次数:
322