DWORD ip = 3408138412
输入ip和255“相与”:
3408138412 And 255 =172;
输入ip右移8位,再和255“相与”:
3408138412 Rsh 8 And 255 = 16;
输入ip右移16位,再和255“相与”:
3408138412 Rsh 16 And 255 = 36;
输入ip右移24位,再和2...
分类:
其他好文 时间:
2014-07-22 23:05:13
阅读次数:
442
整理自统计之都论坛
方法一 使用strsplit函数
a <- "aggcacggaaaaacgggaataacggaggaggacttggcacggcattacacggagg"
b <- strsplit(as.character(a),"ag")
length(b[[1]]) - 1 ##子字符串"ag"的出现个数
方法二 使用正则式函数
a <- "aggcacgg...
分类:
其他好文 时间:
2014-07-22 23:02:52
阅读次数:
288
[ 问题: ]
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.
[...
分类:
其他好文 时间:
2014-07-22 23:01:35
阅读次数:
331
在AWS里用Elastic Map Reduce 开一个Cluster然后登陆master node并编译以下程序:import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
...
分类:
其他好文 时间:
2014-07-22 23:01:32
阅读次数:
405
1 //桶排序思想 2 //假如要排序的是数字是 2 4 5 5 5 8 8 9 1 1 3
#include 4 #define length 10 5 int main() 6 { 7 //数组元素值全部初始化为0 8 int
array[length]={0}; 9 ...
分类:
其他好文 时间:
2014-05-01 22:19:46
阅读次数:
342
题目: Given a string S, find the longest palindromic
substring in S. You may assume that the maximum length of S is 1000, and there
exists one unique lo...
分类:
其他好文 时间:
2014-05-01 20:07:13
阅读次数:
429
女人如花花芬芳自古英雄谁人当女人如酒酒飘香醉倒多少男儿郎难得三国周瑜将唯与小乔流水长一代君王唐明皇迷恋玉环如痴狂女人香 花芬芳男儿郎 谁人当女人香 流水长君莫让
女人伤多少红颜葬春光多少佳人空彷徨多少爱恨两茫茫多少孤零的鸳鸯女人香中有坚强经得起岁月风霜走过多少世间沧桑唯留下女人香
分类:
其他好文 时间:
2014-05-01 19:40:45
阅读次数:
269
/**js Unicode编码转换*/vardecToHex =function(str)
{varres=[];for(vari=0;i < str.length;i++)
res[i]=("00"+str.charCodeAt(i).toString(16)).slice(-4);return"...
分类:
Web程序 时间:
2014-05-01 19:36:51
阅读次数:
427
很多时候我都是用qq群或者word来管理图文的todo和bug。但是这样又脱离了项目管理工具本身的功能体系。于是我们就打算在我们的协作平台上实现可直接粘贴图片的todo和bug管理功能,再配上qq的桌面截图功能,想象就让人用着舒畅。...
分类:
其他好文 时间:
2014-04-30 22:34:39
阅读次数:
266