`
文章列表
http://www.rubyist.net/~slagell/ruby/
questions: http://www.erlang.org/course/exercises.html   my answers: %Simple sequential programs   %1. temp_f2c(F) -> 5*(F-32) div 9.   temp_c2f(C)  -> 9*C div 5 + 32. %2. temp_convert({c,X})  -> {f, temp_c2f(X)}; temp_convert({f,X})  -> {c, temp_f2c(X)}. %3. mathStu ...

好玩的erlang

入门   OTP Design Principles User's Guide, 中文   http://erlang.gamecore.cn/   http://learnyousomeerlang.com/content   敲命令支持tab提示, 这个不错   一个问题: 进程Pa中新建进程Pb,link,Pa直接退出,Pb收不到退出消息,  但Pa延迟一段时间退出,则pb可以接受到退出消息。可能是因为Pb还没来得及执行process_flag     start() -> Pa = self(), Pb = spawn(?MODULE, loop, ...
http://viralpatel.net/blogs/2010/07/generate-dynamic-web-project-maven-eclipse-wtp.html http://viralpatel.net/blogs/2010/11/spring3-mvc-hibernate-maven-tutorial-eclipse-example.html   安装M2Eclipse插件:在Helios上安装失败请参考这里 安装m2eclipse-extras   新建maven工程: File-->New-->Project,  选Maven-->Maven ...
1. 安装nexus   2.修改maven配置setting.xml, 增加nexus仓库(假设nexus的地址是http://192.168.2.5/nexus),之后maven会先去nexus仓库找artifact   <profile>         <id>dev</id>         <repositories>              <repository>                  <id>nexus</id>                  <url& ...
读文件尾的两个字节, 代码如下:   #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> //#include <unistd.h> #include <fcntl.h> #define MSG_ERR printf #define S_OK 0 #define S_FAILED 1 int main( ...

java代理

    博客分类:
  • java
    import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; public class DynamicProxy implements InvocationHandler{ private Object object; public Object bind(Object object){ this.object = object; ...
http://thrift.apache.org/   下载thrift-0.6.0 安装看README 需java,要下载ant,加入到path     /*  * Licensed to the Apache Software Foundation (ASF) under one  * or more contributor license agreements. See the NOTICE file  * distributed with this work for additional information  * regarding copyright owne ...
1.数据模型图 http://www.ibm.com/developerworks/cn/opensource/os-cn-cassandra/ 看那个keyspace图1 http://wiki.apache.org/cassandra/DataModel   2. Hector client example   package test.cassandra; import java.util.Arrays; import me.prettyprint.cassandra.serializers.StringSerializer; import me.prettypr ...
  javascript: http://mootools.net/ http://dojotoolkit.org/ http://jquery.com/ http://jquerymobile.com/ closure: http://code.google.com/intl/zh-CN/closure/   java: google-guice: http://code.google.com/docreader/#p=google-guice
http://www.blogjava.net/Even/archive/2006/08/31/66805.html http://happyman-bruce.blogbus.com/logs/1729369.html ldd `which sshd` | grep libwrap # 确认sshd是否支持TCP Wrapper,输出类似:libwrap.so.0 => /lib/libwrap.so.0 (0x00bd1000)  

oracle

orace的隔离级别 

mysql

1. Too many connections 官方解释http://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html Increasing open-files-limit may be necessary   2. MySQL中的事务隔离级别   3. http://www.mysqlperformanceblog.com/2006/07/17/show-innodb-status-walk-through/   skip-name-resolve禁用DNS解析
1.ulimit -SHn 51200   2.修改/etc/sysctl.conf net.ipv4.tcp_fin_timeout = 30net.ipv4.tcp_keepalive_time = 300net.ipv4.tcp_syncookies = 1net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_tw_recycle = 1net.ipv4.ip_local_port_range = 5000    65000 使配置立即生效 /sbin/sysctl -p   3.     通过 ulimit 改善系统性能 http:// ...
测试nginx的FastDFS分布式存储模块
Global site tag (gtag.js) - Google Analytics