自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 Executors.newSingleThreadScheduledExecutor【持续更新】

工作中遇到的问题: 【问题现象】: 使用 ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(); scheduler.scheduleWithFixedDelay(new Runnable() { public void run() { ...

2011-12-25 00:04:08 615

原创 chrome编译-初稿

CHROME相关 下载 1. 帮助页面:http://dev.chromium.org/developers/how-tos/get-the-code 2. 下载chrome专用源码管理工具depot_tools: http://dev.chromium.org/developers/how-tos/install-depot-tools 3. 解压depot_tools.zip到任意位...

2011-08-11 22:32:50 107

原创 windows c thread

[code="c"] /* cpp_demo.cpp MSDN帮助手册:http://msdn.microsoft.com/zh-cn/library/ms235302(v=VS.80).aspx 只是针对CRT(C RunTime)的 _beginthread 和 _beginthreadex 函数创建多线程 MFC和WIN32 Api创建的线程,请参考其他: 运行时需...

2011-08-10 22:40:23 120

原创 linux c thread

[code="c"]#include #include #include #include #include //编译命令:g++ -g -o multithread multithread-2.c -lpthread const char *FILE_PATH="/root/test"; const int file_size[]={512,1024,46900}; ...

2011-08-07 22:42:24 148

原创 linux shell 随机大小文件,指定个数

[code="shell"] #!/bin/sh #单线程操作,速度比较蛮 file_path=/root/test file_size=(512 1024 3456) file_radio=(30 40 30) function random() { min=$1 max=$2 num=`date +%s%N` ((value=$num%($max-$min)+...

2011-08-07 17:48:48 224

原创 电子书收藏

我的电子书收藏。。。 java类关系继承图 http://www.falkhausen.de/en/diagram/download.html

2011-08-07 14:41:21 98

linux mysql api c/c++

[code="c++"] /* vim /etc/vimrc--始具体情况而定 vim 显示行号、c语言高亮、自动缩进等 set nu set cindent set autoindent syntax on 编译前提: 环境:os RH5_x86_64,mysql5 使用rpm包安装好了mysql,如果其他环境请自行设置编译命令; 编译命令: g++ $(mys...

2011-08-04 23:52:58 97

原创 python的文件操作

[code="python"] import os import sys class LineCount: def getTime(): return sys.version def listAllFiles(name): if name=="": return "file name can not be em...

2011-07-30 22:59:55 71

原创 python的sqlite操作

[code="python"] #a demo for coding python with sqlite3 import sqlite3 #如果在某些版本中,需要添加以下代码,才能操作成功; #from _sqlite3 import * conn=sqlite3.connect("e:\python.db") print(type(conn)) #conn.text_factor...

2011-07-30 22:58:24 265

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除