- 浏览: 177788 次
- 性别:
- 来自: 南京
-
最新评论
-
chuqingq:
补充一个讨论的链接:http://www.cppblog.co ...
epoll的ET和LT两种模式对比及注意事项 -
ahat1195:
勍
勍 .
erlang性能统计 -
chuqingq:
linux不需要
解决EADDRINUSE方法之一:修改操作系统设置 -
langzhe:
对于linux 电脑需要重启吗?
解决EADDRINUSE方法之一:修改操作系统设置 -
jigloo:
erlang-mbcs http://code.google. ...
erlang中字符编码转换
文章列表
功能说明:
erlang中对各种语言的编码支持不足,此代码是使用erlang驱动了著名的iconv编码库来对字符进行编码转换处理。
文件说明:
iconv_erl.c和iconv.h
是erlang字符编码模块的driver,作用是对iconv进行封装。编译后生成iconv_erl.dll,供iconv.erl使用。
iconv_makefile.win32
windows上编译iconv_erl.dll的makefile。
iconv.erl
对erlang字符编码模块driver iconv_erl.dll进行封装,用户通过iconv.erl进行字符编码转换。
...
对于Windows:
TcpTimedWait.reg:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpTimedWaitDelay"=dword:0000001e
"MaxUserPort"=dword:0000ffff
对于Linux:
文件/proc/sys/net/ipv4/tcp_fin_timeout 中保存了TIME_WAIT ...
C++书单(转载)
来自: 海若 (南京)
创建时间: 2007-06-18 16:11:33
发信人: vendeur (我不是JS), 信区: CPlusPlus
标 题: C++书单
发信站: BBS 水木清华站 (Thu Dec 18 03:10:24 2003)
一些同学问我,如何学好C++,我没 ...
bsdiff and bspatch
Description: generate/apply a patch between two binary files
bsdiff and bspatch are tools for building and applying patches to binary files.
By using suffix sorting (specifically, Larsson and Sadakane's qsufsort) and
taking advantage of how executable files change, bsdiff ...
1、函数指针
声明:
int f( int );
int (*pf)( int ) = &f;
使用:
int ans;
ans = f( 25 );
ans = (*pf)( 25 );
ans = pf( 25 );
2、转移表
声明:
double add( double, double );
double sub( double, double );
double mul( double, double );
double div( double, double );
...
double ( *oper_func[] ) ( d ...
Ctrl+E,D ----格式化全部代码 Ctrl+E,F ----格式化选中的代码 CTRL + SHIFT + B生成解决方案 CTRL + F7
生成编译 CTRL + O 打开文件 CTRL + SHIFT + O打开项目 CTRL + SHIFT + C显示类视图窗口 F4 显示属性窗口
SHIFT + F4显示项目属性窗口 CTRL + SH
Ctrl+E,D ----格式化全部代码
Ctrl+E,F ----格式化选中的代码
CTRL + SHIFT + B生成解决方案
CTRL + F7 生成编译
CTRL + O 打开文件
...
hash 实现
- 博客分类:
- lang/c&c++
组成:
0、hash值类型
1、函数:比较、映射、分配、回收
2、桶:下一个桶的指针和本桶的hash值
3、信息(hash info)
4、哈希(Hash):包括容量大小,使用大小,桶指针,哈希函数
接口:
new、delete
init 分配桶空间
get_info(返回hash info)、table_sz
get、put、erase、remove
foreach
merge
开源查询推荐系统源代码阅读笔记
http://d.download.csdn.net/down/1056257/WUTAOWUTAO
// 根据index更新token_info(int token_id, int value),图中可能token_max会变化,size不变或者加8,
// 保证TokenInfo再增加2*sizeof(int),足够新增一个token信息
int update_token_info(int* token_info, int size, int index, int* token_max)
{
int times = 0;
...
http://www.erlang.org/white_paper.html
第一部分,遗留问题:
1、process,
2、message passing,
bang -> erts_send_message 分配了一个ErlMessage 放在进程中的msg_inq(ErlMessageInQueue)中;
3、error detection primitives(monitor),
4、recover nodes,
5、soft real-time(incremental garbage collection),
6、hot code upgrade,
7、 ...
open.taobao.com
1、安装apache(使用installer)
domain和网址可以随便填(localhost);
custom设置安装路径,
在httpd.conf中设置Listen(监听端口)为8080;
右键状态栏的图标,open apache monitor,start;
启动服务,登陆成功显示It works。
注:
DocumentRoot 网站根目录
DirectoryIndex 目录索引,也就是在仅指定目录的情况下,默认显示的文件名
修改后需重启服务。
2、安装php
下载installer安装包;
(在 ...
Efficiency Guide:
http://www.erlang.org/doc/efficiency_guide/part_frame.html
!!!!!!
Process
etop:start()/config()/dump()
Profiling:fprof/timer:tc()/statistic()
PAE
如何从32位线性地址映射到36位物理地址??
The 64 GB of RAM are split into 224 distinct page frames, and the physical address field of Page Table entries has been expanded from 20 to 24 bits. Because a PAE Page Table entry must include the 12 flag bits (described in the earlier section "Regular Paging&quo ...
补旧的一篇。。。
debian + fluxbox
使用netinst安装,后修改sources.list:
deb http://security...已有
deb-src http://security...已有
deb ftp://ftp.tw.debian.org/debian/ main contrib non-free 新加
网络(安装时没设置):
/etc/network/interfaces中添加
auto lo eth0
iface lo inet loopback
iface eth0 inet static
...