我想升级下代码
svn checkout 下来 发现 svn 没有webdav
于是 我重装了 最新的 neon
应然不行后 我重新编译 svn
然后 发现 svn 和 最新的 neon不兼容
我又开始降级 neon
然后发现 还需要sqlite
于是 ……
最后 居然还要用到bdb
经典的 卓有成效 那本书中的例子
我现在 还在等着 make 呢
Read More我想升级下代码
svn checkout 下来 发现 svn 没有webdav
于是 我重装了 最新的 neon
应然不行后 我重新编译 svn
然后 发现 svn 和 最新的 neon不兼容
我又开始降级 neon
然后发现 还需要sqlite
于是 ……
最后 居然还要用到bdb
经典的 卓有成效 那本书中的例子
我现在 还在等着 make 呢
Read Morecat 和 tac这样 搞笑的 linux 命令组合 很经典
但是少了一个 打乱顺序输出的命令
回忆 PHP 中的 shuffle 在 ubuntu 下 用tab 找了找
man shuf
果然 发现了这个东西
不过 在centos 上居然没有…… 本来说是 coreutils 中的一个成员
Yum更新也没发现
直接scp 到 centos上发现可用
哈哈 好东西
Read More可以使用 apt-get firefox-3.5 直接安装
问题是 他依赖 3.0 并且默认命令 firefox 启动的是3.0
$ which firefox 之后发现 仅仅能是个 符号链接
把它连到 which firefox-3.5 就可以了…
Read MoreThere are primarily two clients used with PHP. One is the older, more widespread pecl/memcache and the other is the newer, less used, more feature rich pecl/memcached.
Both support the basics such as multiple servers, setting vaules, getting values, increment, decrement and getting stats.
Here are some more advanced features and information.
| pecl/memcache | pecl/memcached | |
|---|---|---|
| First Release Date | 2004-06-08 | 2009-01-29 (beta) |
| Actively Developed? | Yes | Yes |
| External Dependency | None | libmemcached |
| Features | ||
| Automatic Key Fixup1 | Yes | No |
| Append/Prepend | No | Yes |
| Automatic Serialzation2 | Yes | Yes |
| Binary Protocol | No | Optional |
| CAS | No | Yes |
| Compression | Yes | Yes |
| Communication Timeout | Connect Only | Various Options |
| Consistent Hashing | Yes | Yes |
| Delayed Get | No | Yes |
| Multi-Get | Yes | Yes |
| Session Support | Yes | Yes |
| Set/Get to a specific server | No | Yes |
| Stores Numerics | Converted to Strings | Yes |
对于一些热爱wow的人来说
这个真是太晚了
虽然 不是Wlk 至少收费可以 过滤一下 不和谐的人
我已经半年没有登录Wow了 想念那些战友
我是一个 不成熟的人 在wow中才学会与人相处
感谢wow 祝愿wowcn早日 于国际接轨
更希望祖国也能
Read Morehello.cpp
#include <iostream>
#include “lib.h”
using namespace std;
int main(int argc, char ** argv){
Helloworld * h = new Helloworld();
h->test();
cout<<”just done”<<endl;
return 0;
}
lib.cpp
#include <iostream>
#include “lib.h”
using namespace std;
void Helloworld::test(){
cout<<”Helloworld”<<endl;
}
lib.h
class Helloworld{
public:
void test();
};
Makefile
hello: hello.cpp lib.o
g++ lib.o hello.cpp -o hello
lib.o: lib.cpp lib.h
g++ -c lib.cpp
这样就进入linux c/cc 的世界了
Read More6月5日 从 美丽的 GDD回来
感觉自己很牛B 的样子 衣服上印了一个 大大的 UP
背了一个 Google送的书包
后边有个人 把我背上的字念了出来 ……
然后呢 他居然尾行我下地铁
请教我关于 微博客 代码的事情
我一听就是他 一定不懂 代码 就随便吹两句 牛B
然后 人家 惊讶的走开了
是阿 我确实不知道 什么是 miniblog
也不上 twitter 那是不和谐的地方
后来听说 中国有个 饭否和谐
那就看看究竟把
恩 我还没看呢 饭否就因为毒害不明真相的群众 被 依法取缔
我原来是一个 吃 粑粑 赶不上热乎的人
Read MoreI’m the type of geek that has an SSH client open at all times, connected to my most frequently used servers so that I have instant access for monitoring and anything else. As such, it irritates me greatly when I get disconnected, so I’m sharing a few methods for keeping your session alive.
You can configure the ssh client to automatically send a protocol no-op code code every number of seconds so that the server won’t disconnect you. This is setting is sometimes referred to as Keep-Alive or Stop-Disconnecting-So-Much in other clients.
Global Configuration
Add the following line to the /etc/ssh/ssh_config file:
ServerAliveInterval 60
The number is the amount of seconds before the server with send the no-op code.
Current User Configuration
Add the following lines to the ~/.ssh/config file (create if it doesn’t exist)
Host *
ServerAliveInterval 60
Make sure you indent the second line with a space.
Per-Host Configuration
If you only want to enable keep alive for a single server, you can add that into the ~/.ssh/config file with the following syntax:
Host *hostname.com
ServerAliveInterval 60
Works quite well, hope it helps somebody else out there.
Read More