Hadoop中有一套Writable实现可以满足大部分需求,但是在有些情况下,我们需要根据自己的需要构造一个新的实现,有了定制的Writable,我们就可以完全控制二进制表示和排序顺序。为了演示如何新建一个定制的writable类型,我们需要写一个表示一对字符串的实现:blic class Text...
分类:
其他好文 时间:
2015-03-12 20:43:41
阅读次数:
186
哇哦!cJson很小巧很厉害哦!/* Parser core - when encountering text, process appropriately. */static const char *parse_value(cJSON *item,const char *value){ if...
分类:
Web程序 时间:
2015-03-12 20:43:15
阅读次数:
180
写在前面最近公司在搞浏览器兼容的事情,所有浏览器兼容的问题不得不一个人包了。下面来说一下今天遇到的一个问题吧大家都知道IE下面如果要获得剪贴板里面的信息的话,代码应该如下所示 window.clipboardData.getData("Text")可是在chrome下面就行不通了,chrome下面没...
分类:
其他好文 时间:
2015-03-12 18:36:12
阅读次数:
507
CSSStyleSheet对象 表示某种类型的样式表CSSStyleRule对象 样式表中的每条规则获得文档中的所有样式表document.styleSheetsCSSStyleSheet对象属性type text/cssdisabled 表示样式表是否应用于当前文档。应用/禁用,false/tru...
分类:
其他好文 时间:
2015-03-12 18:33:04
阅读次数:
135
日期工具类DateHelper一个工具类,可以得到指定月份的天数,可以得到以前或以后多少天、周、月、年的日期等。代码如下:import android.annotation.SuppressLint;
import android.text.TextUtils;import java.text.ParseException;
import java.text.SimpleDateFormat;
im...
分类:
移动开发 时间:
2015-03-12 17:21:46
阅读次数:
244
using System;using System.Data;using System.Configuration;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Linq;u...
分类:
数据库 时间:
2015-03-12 16:52:30
阅读次数:
188
using System;using System.Collections.Generic;using System.Linq;using System.Text;//导命名空间using System.Data;using MySql.Data.MySqlClient;using System.C...
分类:
数据库 时间:
2015-03-12 16:48:40
阅读次数:
135
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><me..
分类:
其他好文 时间:
2015-03-12 15:22:44
阅读次数:
110
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication1 { class A { //调用到这个构造函数时:x=1,y=0 public...
分类:
其他好文 时间:
2015-03-12 15:01:54
阅读次数:
100
import java.math.BigDecimal;import java.text.DecimalFormat;import java.text.NumberFormat;public class format { double f = 111231.5585; public vo...
分类:
编程语言 时间:
2015-03-12 14:48:27
阅读次数:
173