Perhaps you rarely face it, but once you do, you surely know what's wrong: lack of free memory, or Out of Memory (OOM). The results are typical: you can no longer allocate more memory and the kernel kills a task (usually the current running one). Heavy swapping usually accompanies this situation, so both screen and disk activity reflect this.

    At the bottom of this problem lie other questions: how much memory do you want to allocate? How much does the operating system (OS) allocate for you? The basic reason of OOM is simple: you've asked for more than the available virtual memory space. I say "virtual" because RAM isn't the only place counted as free memory; any swap areas apply.

html2wiki

| 暂无评论

保留颜色语法高亮是最重要的。要不vim的html输出就没意义了。

先建立一个html2wiki.sed

s/<a href=”/[[/g
s/" mce_href="/[[/g
s/">http/|http/g
s/</a>/]]/g

s/<font |</font>/@@/g
s/color=”/color(/g
s/”>/):/g

/<pre>|</pre>/ d
/<body|</body>/ d
/<html>|</html>/ d
/<head>|</head>/ d
/<meta/ d

s/<title>/!!/g
s/</title>//g

s///// //g
s/<b>|</b>|<B>|</B>/”/g
#&><”
s/t/>/g
#s/^ */>/g
s/ {8}/>/g


然后,建立一个bash文件html2wiki.sh:

$ cat ./html2wiki.sh
#!/bin/bash

vim -c ":syntax on|:colorscheme morning|:TOhtml" -c ":w|:qa" $1

file $1.html|grep HTML
[ $? != 0 ] && exit;
sed -f ./html2wiki.sed $1.html > $1.wiki


直接这样运行。
$ html2wiki.sh 4428.c

得到的wiki文件,可以直接粘贴到tiddlywiki的编辑里面即可。

Pidgin and Yahoo (2)

| 暂无评论

Note: The problems described in this document are fixed in Pidgin 2.5.7.  You should upgrade immediately to continue using Yahoo! IM.

As of June 17, 2009, Pidgin users are having trouble connecting to Yahoo! IM accounts.  Here is a summary of the problem:

Yahoo! appears to be upgrading their servers to a new version of their software.  This new version requires a new authentication method.  The latest version of Pidgin, 2.5.6, does not support this new authentication method.  The next version, 2.6.0, will, but it has not yet been released. Version 2.5.7 does.  To continue using Yahoo! IM, upgrade to this version.  See the Pidgin web-site for details.

Some reason that the problem have be published which Pidgin and Yahoo(1) simple copy from WWW. in some day ago.

source:http://www.celticwolf.com/useful-information/faqs/26-pidgin-yahoo

jni中的字符编码问题

| 暂无评论

    以前在使用jni中,发现jni字符问题,另外jni还存在着线程的不安全性,着实感觉jni不怎么地,但是目前没有好的jni的替代方案,这次介绍的是jni字符编码问题中需要注意的一个问题。

Pidgin and Yahoo (1)

| 暂无评论
As of June 17, 2009, Pidgin users are having trouble connecting to Yahoo! IM accounts.  Here is a summary of the problem:
Yahoo! appears to be upgrading their servers to a new version of their software.  This new version requires a new authentication method.  The latest version of Pidgin, 2.5.6, does not support this new authentication method.  The next version, 2.6.0, will, but it has not yet been released.

最近评论

Photos

  • reversedat.png
  • trie.png
  • dat.png
  • 256x_tree.png
  • 0989.JPG
  • 0984.JPG
  • DSC03338.JPG
  • Screenshot-Beyond Compare.png
  • Screenshot-2008-olympic-1280-1024-3.jpg <--> 2008-olympic-1280-1024-4.jpg - Picture Compare - Beyond Compare.png
  • Screenshot-OpenResty.pm - Text Compare - Beyond Compare.png