无压缩jpeg压缩无损二元包装仅JPEG压缩时有效平化类型(指定字符串中存储什么类型的数据)NoneJPEGPACKEDBINARYQualityImageImageandversioninformationreferencetoimage字节长度17501127549175013...
分类:
其他好文 时间:
2014-12-26 20:14:24
阅读次数:
486
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ...
分类:
其他好文 时间:
2014-12-26 20:14:20
阅读次数:
156
DataTable 导出Excel 之 NPOI
NPOI 强大的地方就是Excel里面90%功能,都能实现。坑爹的是需要引用5个DLL 官方例子:
static void Main(string[] args) { IWorkbook workbook = new XSSFWorkbook(); ...
分类:
其他好文 时间:
2014-12-26 20:07:47
阅读次数:
369
1.jdk的位数:String jdkBit = System.getProperty("sun.arch.data.model");System.out.println(jdkBit);2.系统位数, 如下语句打印: x86System.out.println(System.getProperty...
分类:
其他好文 时间:
2014-12-26 20:07:31
阅读次数:
135
1.当外部类的成员变量不是类型名称、静态或枚举数时 内部类无法直接使用该成员变量如:class YLBASE{public: enum enum_futures_model{continueTwelve = 0,oneFiveNine = 1}; string m; /******...
分类:
编程语言 时间:
2014-12-26 20:04:54
阅读次数:
198
建造者模式(生产器模式):
定义:将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示
角色组成:
Director导演
Product产品类
Builder抽象建造者
ConcretwBuilder具体建造者
//product产品类
public class Phone {
private String name;
private St...
分类:
其他好文 时间:
2014-12-26 18:43:20
阅读次数:
234
如果有这个的xsd, group内嵌choice的结构: 使用svcutil 生成后的结果是:public class CreateType{ int NameID string Name}因为是choice 类型,这个结果显然不能表示choice的特点,bug?解决问题:生成前,使用xsl...
分类:
其他好文 时间:
2014-12-26 18:33:11
阅读次数:
183
public static DataTable ToDataTable(this DataGridView dataGridView, string tableName = null) { DataGridView dgv = dataGridVi...
private string aaaa(DataTable dt) { JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer(); javaScriptSe...
分类:
Web程序 时间:
2014-12-26 18:31:04
阅读次数:
142
(defn kj [x] (letfn [(f [x y] (format "%d*%d=%d" x y (* x y))) (g [c] (clojure.string/join " " (map #(f % (count c)) c))) (t [] (map #(range...
分类:
其他好文 时间:
2014-12-26 18:30:10
阅读次数:
182