(回到Blog入口)

技术 归档

2007年07月29日

beinsync-在多台机器间同步

http://www.beinsync.com

1,可以在5台机器之间同步文件;
2,可以通过P2P网络和朋友分享文件;
3,可以在线备份文档。

2007年07月31日

SUPER视频转换软件

下载地址:
http://www.erightsoft.com/S6Kg1.html

2007年08月23日

System.getProperty()参数大全

java.version
Java Runtime Environment version
java.vendor Java Runtime Environment vendor
java.vendor.url Java vendor URL
java.home Java installation directory
java.vm.specification.version Java Virtual Machine specification version
java.vm.specification.vendor Java Virtual Machine specification vendor
java.vm.specification.name Java Virtual Machine specification name
java.vm.version Java Virtual Machine implementation version
java.vm.vendor Java Virtual Machine implementation vendor
java.vm.name Java Virtual Machine implementation name
java.specification.version Java Runtime Environment specification version
java.specification.vendor Java Runtime Environment specification vendor
java.specification.name Java Runtime Environment specification name
java.class.version Java class format version number
java.class.path Java class path
java.library.path List of paths to search when loading libraries
java.io.tmpdir Default temp file path
java.compiler Name of JIT compiler to use
java.ext.dirs Path of extension directory or directories
os.name Operating system name
os.arch Operating system architecture
os.version Operating system version
file.separator File separator ("/" on UNIX)
path.separator Path separator (":" on UNIX)
line.separator Line separator ("\n" on UNIX)
user.name User's account name
user.home User's home directory
user.dir User's current working directory

调用方法 : System.getProperty("user.dir")

2007年08月24日

Java & Internet Glossary

http://mindprod.com/jgloss/jgloss.html
总结得非常清晰明了,这个站点的其他部分也值得一看,有趣!

2007年08月31日

命令行程序和脚本

http://www.robvanderwoude.com/index.html
http://www.microsoft.com/technet/sysinternals/default.mspx

2007年09月03日

Regular_expressions_cheat_sheet

regular_expressions_cheat_sheet.png

2007年11月16日

Apache 2.2+SSL编译

./configure --prefix=/usr/apache/apache22 --enable-ssl --enable-rewrite --enable-so --with-ssl=/usr/include/openssl --enable-shared=ssl

签服务器证书:
openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in /root/server.csr -signkey /root/server.key -out /root/server.crt

2009年01月23日

笔记:批处理文件获得时间/日期信息

因为一个比较气人的攻击现象,就想给客户写个自动定时fetch网页的脚本。定时的事就交给计划任务好了,我只管把文件抓下来,加个时间戳。我会的最简单的方式是perl,但用户那里多半没有perl,就改用批处理吧。

在网上东找西找,参考了多处,才搞明白写了出来。记一下,以后肯定会忘了。

for /F "tokens=1" %%u in ('date /t') do set d=%%u
if "%d:~1,1%"==":" set d=0%d%

for /F "tokens=1" %%u in ('time /t') do set t=%%u
set timestr=%t:~0,2%_%t:~3,2%

curl --output document.html http://www.yourhost.com/pathname/filename.ext?id=parm
move /Y document.html "document_%d%_%timestr%.txt"

至于 curl 到底能否取到网页,我就懒得判断了,呵呵。

参考:
Microsoft DOS for command
Windows batch file timestamp in 24 hr format

关于 技术

此页面包含了发表于 Notebook of Dan 的 技术 所有日记的归档,它们从老到新列出。

前一个分类 影视

后一个分类 旅游

更多信息可在 主索引 页和 归档 页看到。

Powered by
Movable Type 3.33