lizongbo at 618119.com 工作,生活,Android,前端,Linode,Ubuntu,nginx,java,apache,tomcat,Resin,mina,Hessian,XMPP,RPC

2007年10月31日

安装了Workrave v1.8.5 多国语言版

Filed under: 未分类 — 标签:, , — lizongbo @ 09:08

最近手比较痛,无意中看到有人介绍Workrave,有文章把该软件列为Windows系统必备30个免费开源软件,
于是下载来安装上了。正在熟悉其休息方式:

关于 RSI(重复性压迫损伤) 可以参考  googlechina的博客:

http://www.googlechinablog.com/2006/04/blog-post_27.html
Workrave参考: http://blog.ijliao.info/archives/2007/03/14/2938/

以下文本介绍来源于 : http://www.cnfan.org/comments.php?catid=1&id=6546
[quto]
一款工作防沉迷软件应该适合你的工作需要。它可以按照你设置的时间间隔弹出提示窗口强制你休息,防止你太沉醉于工作以致于损害了身体。休息的过程中,还可以跟着它一起做做操。通过设置休息时间提醒你在长时间工作后起来活动活动。一天工作结束,它也会提示你不要再对着电脑。虽然它会强制的屏蔽你的键盘或者屏幕,但这些都是为了你的身体好。当然,你可以随时解除他的屏蔽。
做IT的对RSI(repetitive strain injury)都不陌生吧?预防腕隧道症后群(重复性劳损),WorkRave是一款在windows和linux上都能运行的小工具,帮助我们定期休息,避免RSI, 健康之道有如常用算法分析:要分摊(amortize)工作量.
Windows 用户下载安装后运行,在系统栏会出现小绵羊的图标,同时它的监控窗口包括三个监控项目:暂停、

休息、每日限制。默认给出了一个时间限制,但人与人的休息时间不同,用一段时间大家可以自己调整。
暂停:每3分钟提醒你暂停休息一会,提醒三次后会锁定键盘强制你休息,但可以选择“延后”或“略过”。
休息:每30分钟提示休息一次,同时显示健身操的,指导你进行活动。
每日限制:限制每天用电脑的总时间。

另外它的细节还包括:
程序支持声音或PC喇叭的提示。
统计运行期间内的暂停、休息情况,统计鼠标运动的长度以及鼠标键盘点击次数。
程序可以添加到工具栏(类似快速启动栏)。
支持网络收集信息功能。
另外多语言支持是自动选择的,不能在程序内切换语言。
更新日志:
* Lots of changes by Ray Satiro.
* Task manager is never blocked by Workrave (Ray Satiro)
* Workaround for focus loss on Vista (Ray Satiro)
* Vanja Cvelbar translated Workrave into Slovenian.
* Many bug fixes, the most visible ones:
* Fixed breaks that have ‘suspend timer when inactive’ disabled (Ray Satiro)
* Improved Windows responsiveness under high load. (by reverting a 1.8.4 change)
* Mode menu fixed.
* Gnome applet no longer ‘hangs’.
* Gnome applet no longer crashes Workrave.
* Fixed crashes during startup on Windows.
* Fixed ‘end-of-microbreak’ sound.
* Fixed bug in multi-head support where Workrave showed multiple windows on a single screen.
* Fixed locking on Gnome with xscreensaver installed (Philipp Kern)
[/quto]

2007年10月27日

关于java客户端与c写的服务器通信时的整数字节存放顺序

Filed under: Java — 标签:, , , — lizongbo @ 21:07

C语言里通常可能开发人员直接定义struct 作为数据包,
因此在java客户端接收struct 中的数据时候,受整数等类型的高低位存放的影响,
需要进行相应的转换,

参考:

http://www.ibm.com/developerworks/cn/java/l-datanet/index.html

(more…)

2007年10月26日

Apache整合Tomcat的vhosts及mod_jk配置

Filed under: Apache,Tomcat — 标签:, , , , — lizongbo @ 14:28

httpd-vhosts.conf的配置例子如下:

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn’t need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL: http://httpd.apache.org/docs/2.2/vhosts/ >
# for further details before you try to setup virtual hosts.
#
# You may use the command line option ‘-S’ to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#

LoadModule headers_module modules/mod_headers.so
LoadModule expires_module modules/mod_expires.so

ExpiresActive On
ExpiresByType text/css A259200
#text/css类型文件的过期设置为“访问后的259200秒”
ExpiresByType application/x-javascript A259200
# application/x-javascript类型文件的过期设置为“访问后的300秒”
ExpiresByType image/png A2592000
#image/png类型文件的过期设置为“访问后的2592000秒”
ExpiresByType image/gif A2592000
#image/gif类型文件的过期设置为“访问后的2592000秒”
ExpiresByType application/x-shockwave-flash A2592000
# application/x-shockwave-flash类型文件的过期设置为“访问后的2592000秒”

LoadModule deflate_module modules/mod_deflate.so
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css

NameVirtualHost *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

LoadModule jk_module modules/mod_jk-apache-2.2.4.so

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JklogLevel error
JkOptions +ForwardURICompatUnparsed
JkOptions +ForwardSSLCertChain

<VirtualHost *>
ServerAdmin admin@www.618119.com
DocumentRoot /www/docs/www.618119.com
ServerName 618119.com
ServerAlias www.618119.com
ErrorLog logs/www.618119.com-error.log
CustomLog “|bin/cronolog.exe logs/www.618119.com-access%Y%m%d.log” combined
JkMount / www
JkMount /* www
JkMount /jkstatus jkstatus
<Location /jkstatus>
Order deny,allow
Allow from 127.
</Location>

</VirtualHost>

<VirtualHost *>
ServerAdmin admin@blog.618119.com
DocumentRoot /www/docs/blog.618119.com
ServerName www.blog.618119.com
ServerAlias *.blog.618119.com
ErrorLog logs/blog.618119.com-error.log
CustomLog “|bin/cronolog.exe logs/blog.618119.com-access%Y%m%d.log” combined
JkMount /* blog
JkMount /jkstatus jkstatus
<Location /jkstatus>
Order deny,allow
Allow from 127.
</Location>
</VirtualHost>

<VirtualHost *>
ServerAdmin admin@www.618119.com
DocumentRoot /www/docs/lizongbo.618119.com
ServerName lizongbo.618119.com
ErrorLog logs/lizongbo.618119.com-error.log
CustomLog “|bin/cronolog.exe logs/lizongbo.618119.com-access%Y%m%d.log” combined
JkMount / ring
JkMount /* ring

</VirtualHost>

(more…)

Older Posts »

Powered by WordPress