two ways here I provide:+ use openSSH command line on git bash(such as msysgit bash) + ls -al ~/.ssh + ssh-keygen -t rsa -C "phpgcs@qq.com" + e...
1.decode函数(小版本的casewhen)selectdecode(pd.discount_id,null,‘‘,‘购买‘||pd.product_count||‘个,‘||pd.product_discount_rate||‘折优惠‘)asdiscountfromb2b_productdrightjoinb2b_product_hotphond.product_id=ph.product_idleftjoinb2b_dictionaryaond.RRO_MARQUE=a...
分类:
数据库 时间:
2014-07-13 15:18:14
阅读次数:
360
Java NIO -- the New Input/Output API package-- was introduced with J2SE 1.4 in 2002. Java NIO's purpose was to improve the programming of I/O-intensiv...
分类:
编程语言 时间:
2014-07-13 08:25:24
阅读次数:
243
Just like normal variables, pointers can be declared constant. There are two different ways that pointers and const can be intermixed, and they are very easy to mix up.
To declare a const pointer, ...
分类:
其他好文 时间:
2014-07-12 21:20:23
阅读次数:
165
ajax是无法直接传送对象或者数组,有些人自己处理的话,可以把数据按照自己的标准连接成一个字符串,然后到后端处理,但是数据的不确定性,导致有可能会出错,而且麻烦
其实有开源的包,可以直接解释成json字符串,来传送到后端的
all=JSON.stringify(all_addr);
后端php处理很简单
json_decode($_POST['all'])
...
分类:
其他好文 时间:
2014-07-12 18:39:12
阅读次数:
200
def getMyDatalist(): #id这个key key = str(u'id').decode('utf-8') #存储旧数据的id列表 old_ids = [] #存储新微博的列表 extr_wb = [] #从MongoDB上获取的数据 ...
分类:
数据库 时间:
2014-07-12 08:45:31
阅读次数:
294
Tiling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7461
Accepted: 3645
Description
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?
...
分类:
其他好文 时间:
2014-07-10 20:04:45
阅读次数:
184
在Java中,String.getBytes(String decode)方法会根据指定的decode编码返回某字符串在该编码下的byte数组表示,如byte[] b_gbk = "中".getBytes("GBK");byte[] b_utf8 = "中".getBytes("UTF-8");by...
分类:
其他好文 时间:
2014-07-09 17:23:34
阅读次数:
189
Tiling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7454
Accepted: 3640
Description
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?
...
分类:
其他好文 时间:
2014-07-09 09:40:34
阅读次数:
249
Tiling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7452
Accepted: 3639
Description
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?...
分类:
其他好文 时间:
2014-07-09 09:31:22
阅读次数:
204