2006-08-06
认识grep的几个不常用选项
-A NUM, --after-context=NUM
打印匹配行后的NUM行
-B NUM, --before-context=NUM
打印匹配行前的NUM行
-C NUM, --context=NUM
打印匹配行前NUM行和后NUM行
-w, --word-regexp
精确匹配
2006-08-04
涂鸦之作,版权所有,严禁覆盖
2006-08-03
分析fud server的日志文件
2006-07-31
Zope export outside zope/使用wget来导出zope文件
使用wget来导出:
wget -O 3urts96.zexp http://username:password@urts96.uni-trier.de:8080/Projects/2urts96/manage_exportObject?download%3Aint=1&submit=Export'
Code:
2006-07-29
subversion+Outlook
今天突然想,能不能把这个文件提交到subversion里,在各个本地check out一个副本,修改完后再提交到版本库,不知道这样能不能解决我的问题。
2006-07-28
frames的不同编码
2006-07-27
update ilias 3 to ilias 3.6.5
ln -s /studipserv/ilias3data/data data
Da sind die Daten der verschiendene ilias 3 clients.
2006-07-26
解决SVN 1.32 windows版本命令行显示乱码
Geben Sie 'svn help' f?\195?\188r weitere Hilfe ein.其实本应该是Geben Sie 'svn help' für weitere Hilfe ein.
解决办法是设置环境变量 APR_ICONV_PATH,让它指向svn目录下的iconv目录,如在我的机器上是 D:\Programme\svn-win32-1.3.2\iconv 。
2006-07-25
convert MyISAM to InnoDB
1. Dump the database with mysqldump
2. Change TYPE=ISAM to TYPE=INNODB
3. Add entries to /etc/my.cnf and restart MySQL
4. Load the database with mysql
不过如果MySQL server已经支持InnoDB了,可以用更简单的办法,如转换单个表的类型:
alter table mytable type=InnoDB;如果要转换一个数据库所有表,可以用:for t in $(mysql --batch --column-names=false -e "show tables" mydbname);
do
mysql -e "alter table $t type=InnoDB" mydbname;
done
如果要转换一个数据库带有某个特定前缀的表或忽略某些表,可以搭配grep来使用:
for t in $(mysql --batch --column-names=false -e "show tables" mydbname |grep "include_this");
do
mysql -e "alter table $t type=InnoDB" mydbname;
done
for t in $(mysql --batch --column-names=false -e "show tables" mydbname | grep -v "exclude_this");
do
mysql -e "alter table $t type=InnoDB" mydbname;
done
或者直接输入多个表的名称:
for t in table_1 table_2 table_n;
do
mysql -e "alter table $t type=InnoDB" mydbname;
done
2006-07-19
用junction创建windows 2000/XP下的symbol links
D:\SYMLINK\DRIVERS would in reality be accessing C:\WINNT\SYSTEM32\DRIVERS. Directory symbolic links are known as NTFS junctions in Windows. Unfortunately, Windows comes with no tools for creating junctions - you have to purchase the Win2K Resource Kit, which comes with the linkd program for creating junctions. I therefore decided to write my own junction-creating tool: Junction. Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points. Reparse points are the mechanism on which NTFS junctions are based, and they are used by Windows' Remote Storage Service (RSS), as well as volume mount points.
mysqldump: Error 2013
copying DWBdatabase4cd
mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `TEXT_H` at row: 23854
copy database DWBdatabase4cd finished!
now copying DWVdatabase2
mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `lemma` at row: 9251
出现这个问题的原因很有可能是max_allowed_packet变量的值设置太小了。
这儿有一个关于这个问题的讨论,和参看MySQL手册中相关的部分。
2006-07-18
MySQL区分用户名大小写
jiad4701@urts96:~> mysql -u dingjun -p
Enter password:
ERROR 1045 (28000): Access denied for user 'dingjun'@'localhost' (using password: YES)
就得到错误提示。使用区分大小写的用户名就没有问题:
jiad4701@urts96:~> mysql -u Dingjun -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 264184 to server version: 4.1.13
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
2006-07-14
认识Apache Forrest
最近一直在弄Apache Cocoon,今天抽空看了一下Apache Forrest。这也是一个web publish framework,其中包括了Apache的很多项目,当然也包括cocoon。Forrest支持静态和动态发布网页,对于制作项目文档和基于XML/XSLT的网页开发是个很好的工具。Forrest目前还处于发展的初期阶段,发布的最新版本为0.7,开发版本为0.8。Forrest提供一些项目快速开发支持,如用forrest seed命令创建一个项目文档的基本结构,这一点马上让我想到了ruby on rails,不过ruby on rails好像是不支持静态发布网页的。
2006-07-13
2006-07-12
学习Xinclude
以前经常看IBM developerworks的文章,今天在网上想学习一下Xinclude,才发现MSDN也有不少好文章,如这篇将 XML 文档与 XInclude 合并在一起。
这儿是实现Xinclude的一个列表(截至2003年6月),Cocoon榜上有名。
2006-07-09
FOP and Embedding Fonts under Cocoon
让FOP生成支持多语言的pdf文件
2006-07-07
xsl和xslt文件扩展名的问题
如果选择创建xsl文件,则程序生成的文件头为:
2006-07-06
用firefox访问非常规port的网页
This address is restricted
This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.
后来在google上找到了解决办法:
The only way to fix this problem is to add a new variable to Firefox's configuration.
You do this by:
1. Entering about:config in the URL bar.
2. Right click the list that is displayed and choose New->String
3. Enter network.security.ports.banned.override as the name of the new string and click ok.
4. Enter the ports you want allowed, seperated by commas (like: "101,800,5000"). Click OK.
2006-07-05
安装 zuccaro
2006-07-02
MySQL 4.1中涉及字符编码的变量
MySQL服务器端的character set 和 collation是由变量character_set_server 和 collation_server分别来决定的,创建数据库时默认的character set 和 collation则是由变量character_set_database and collation_database来指定的。
2006-07-01
Autoenrollment with event id 15
Event Type: Error
Event Source: AutoEnrollment
Event Category: None
Event ID: 15
Date: date
Time: time
User: N/A
Computer: computer name
Description: Automatic certificate enrollment for local system failed to contact the active directory (0x8007054b). The specified domain either does not exist or could not be contacted. Enrollment will not be performed.
2006-06-30
wget察看web server header
有时为了调试需要察看web server返回的header,可以在firefox下使用如live http header这样的工具。手边要是没有这样的工具,可以用wget的两个选项来实现:
-S
--server-response
Print the headers sent by HTTP servers and responses sent by FTP servers.--spider
When invoked with this option, Wget will behave as a Web spider, which means that it will not download the pages, just check that they are there. For example, you can use Wget to check your book-marks:
wget --spider --force-html -i bookmarks.html
比如:wget -S --spider http://www.uni-trier.de
另外可以用wget -q -O - http://www.industrial-technology-and-witchcraft.de/index.php/ITW/itw-rss20/ | head -1
来得到xml文件的第一行声明:< ?xml version="1.0" encoding="iso-8859-1"?>
2006-06-25
映射网络硬盘时的日志警告
解决标示号为1202的错误
0x4b8: An extended error has occurred.
The 0x4b8 error is generic and can be caused by a number of different problems. To troubleshoot these errors, follow these steps:| 1. | Enable debug logging for the Security Configuration client-side extension. To do this:
| ||||||||
| 2. | Refresh the policy settings to reproduce the failure. To refresh the policy settings, type the following at the command prompt, and then press ENTER: secedit /refreshpolicy machine_policy /enforce This creates a file that is named Winlogon.log in the %SYSTEMROOT%\Security\Logs folder. | ||||||||
| 3. | See the following Microsoft Knowledge Base articles. These articles describe known issues that cause the 0x4b8 error. Click the following article numbers to view the articles in the Microsoft Knowledge Base: 260715 (http://support.microsoft.com/kb/260715/EN-US/) Event ID 1000 and 1202 After Configuring Policies 278316 (http://support.microsoft.com/kb/278316/) ESENT Event IDs 1000, 1202, 412, and 454 Are Logged Repeatedly in the Application Event Log |
Windows 下的tree命令
D:\>tree /?
Zeigt die Ordnerstruktur eines Laufwerks oder Pfads grafisch an.
TREE [Laufwerk:][Pfad] [/F] [/A]
/F Zeigt die Namen der Dateien in jedem Ordner an.
/A Verwendet den ASCII- statt des erweiterten Zeichensatzes.
可是发现尽管使用了/F选项,仍然不能显示以点号开始的文件,如.raidenftpd.acl这样的文件。不知道这是tree这个命令的一个bug,还是有其他的选项可以用。
2006-06-23
学习XSP 2
- xsp:page — XSP 文档的根元素,它必须只包含一个用户元素
- xsp:structure、xsp:include — 允许将附加的 Java 类导入到 XSP 的已编译版本中
- xsp:logic — 允许在 XSP 的已编译版本中包含附加的编程代码块;这可以包含成员变量、方法或应用程序逻辑
- xsp:expr — 允许对 Java 表达式求值,并将它们的值添加到文档
- xsp:element — 允许 XSP 动态创建元素;这些元素可以用任意名称创建,并且可以与任何名称空间和前缀关联
- xsp:attribute — 允许将属性动态地添加到元素;这些属性可以用任意名称和值创建,并且可以与任何名称空间关联
- xsp:comment — 允许将注释添加到已生成的文档
- xsp:pi — 允许动态创建处理指令,并将之添加到已生成的文档
- xsp:parameter -- 允许为元素或属性生成名称
见识一下超级计算机
Name MaxJobCPU MaxProcCPU Free Max Description
d+hh:mm:ss d+hh:mm:ss Slots Slots
--------------- -------------- -------------- ----- ----- ---------------------
rp5_fatl undefined undefined 0 16 Power5, 8 PEs, 60 GB memory, 72h, reserved queue
rp5_fat undefined undefined 0 16 Power5, 8 PEs, 60 GB memory, 24h
dgrid_large undefined undefined 0 120 Power5, 8 PEs, 30 GB memory, 6h, DGRID
ipp undefined undefined 24 136 Power5, 8 PEs, 30 GB memory, 12h, reserved queue
lsingle undefined undefined 0 120 Power5, 1 PE, 2 GB memory, 6d, reserved queue
single undefined undefined 3 68 Power5, 1 PE, 16 GB memory, 12h
small undefined undefined 3 132 Power5, 4 PEs, 16 GB memory, 12h
rp5_long undefined undefined 30 136 Power5, 8 PEs, 30 GB memory, 6d, reserved queue
rp5 undefined undefined 30 136 Power5, 8 PEs, 30 GB memory, 24h
chubby undefined undefined 0 64 Power4, 32 PEs, 248 GB memory, 24h
p4_small undefined undefined 4 4 Power4, 4 PEs, 16 GB memory, 6h, DEISA
p4_short undefined undefined 8 8 Power4, 8 PEs, 30 GB memory, 1h, DEISA
p4_single undefined undefined 2 2 Power4, 1 PE, 16 GB memory, 6h, DEISA
mbp undefined undefined 0 128 Power4, 32 PEs, 60 GB memory, 72h, reserved queue
monster undefined undefined 0 864 Power4, 512 PEs, 960 GB memory, 18h
deci undefined undefined 0 864 Power4, 256 PEs, 480 GB memory, 60h, DECI
dino undefined undefined 0 864 Power4, 256 PEs, 480 GB memory, 18h
jumbo undefined undefined 0 864 Power4, 128 PEs, 240 GB memory, 18h
big undefined undefined 0 864 Power4, 64 PEs, 120 GB memory, 12h
lhuge undefined undefined 0 864 Power4, 32 PEs, 60 GB memory, 12h
huge undefined undefined 0 864 Power4, 32 PEs, 60 GB memory, 6h
short undefined undefined 16 1000 Power5, 8 PEs, 30 GB memory, 1h
deisa undefined undefined 0 0 DEISA pipe queue
test undefined undefined 0 866 restricted
dgrid_small undefined undefined 0 64 Power5, 4 PEs, 7 GB memory, 6h, DGRID
dgrid_single undefined undefined 1 1 Power5, 1 PE, 7 GB memory, 6h, DGRID
mp5_long undefined undefined 86 120 Power5, 8 PEs, 30 GB memory, 72h, reserved queue
mp5 undefined undefined 86 120 Power5, 8 PEs, 30 GB memory, 24h, reserved queue
fp5_big undefined undefined 23 416 Power5, 32 PEs, 120 GB memory, 72h, reserved queue
fp5 undefined undefined 23 416 Power5, 8 PEs, 30 GB memory, 24h, reserved queue
p5test undefined undefined 0 684 restricted
inter_class undefined undefined 0 1580 Interactive - 360 min. wall clock limit
--------------------------------------------------------------------------------
"Maximum Slots" values of the classes "deisa", "test", "p5test" are constrained by the MAX_STARTERS limit(s).
"Free Slots" values of the classes "rp5_fatl", "rp5_fat", "dgrid_large", "ipp", "lsingle", "single", "small", "rp5_long", "rp5", "chubby", "mbp", "monster", "deci", "dino", "jumbo", "big", "lhuge", "huge", "short", "deisa", "test", "dgrid_small", "mp5_long", "mp5", "fp5_big", "fp5", "p5test", "inter_class" are constrained by the MAX_STARTERS limit(s).
2006-06-22
germa128的问题
Der Zugriff auf das angegebenes Gerät, den Pfad oder die Datei wurde verweigert.
奇怪的是,可以毫无问题的打开Mirosoft的Office中的如Word,Excel等程序。
我怀疑是注册表遭到了破坏,于是用windows 2000 pro + sp4 光盘修复安装,问题没有得到解决。于是再用ghost恢复了一个做好的镜像过去,问题竟然没有解决。这就不好办了。难道这和硬件有关系,可是为什么又能打开Word,再说从错误提示来看也不应该和硬件有关。在MS的网页上仅仅查到2003年的一篇文章,可惜对germa128这台电脑的这种情况毫无帮助。事件日志也没有记录值得可查看的事件,只是在“安全”那个类别里有一项以前没见过的纪录,说安全监控成功。也许和这个有什么关系?
2006-06-21
在XSP中嵌入Javascript的例子
XSP支持多种语言,下面是在XSP页面中嵌入Javascript的例子。
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <xsp:page language="javascript"
4 xmlns:xsp="http://apache.org/xsp"
5 xmlns:xsp-request="http://apache.org/xsp/request/2.0"
6 xmlns:xsp-session="http://apache.org/xsp/session/2.0"
7 >
8
9 <page>
10
11 <xsp:logic>
12 msg = "boo";
13 user = <xsp-request:get-parameter name="user"/>;
14 pwd = <xsp-request:get-parameter name="pass"/>;
15
16 if (user.equals("BigCorp") && pwd.equals("secret")) {
17 msg = "User '" + user + "' has been authenticated" +
18 " - you can now proceed to the support page.";
19 <xsp-session:set-attribute name="user"><xsp:expr>user</xsp:expr></xsp-session:set-attribute>;
20 } else {
21 msg = "Login failed";
22 }
23
24 </xsp:logic>
25
26 <page-title>Login results</page-title>
27 <content>
28 <title>Login results</title>
29 <paragraph>
30 <xsp:expr>msg</xsp:expr>
31 </paragraph>
32 </content>
33 </page>
34
35 </xsp:page>
除此之外,还要在sitemap的相应的<map:generate>中添上
<map:parameter name="programming-language" value="js">
否则cocoon会使用默认的java编译器来处理XSP文件而引起错误。
2006-06-19
学习XSP 1
XSP文件的根元素为<page>,通常使用xsp名字空间(<xsp:page>)。
一个简单的例子如:
Cocoon URIs
- http://hostname:port/resource—This is a standard HTTP URL. A sample URL is http://localhost:8080/myxml.xml.
Serializers in Cocoon
- XML serializer—This Serializer serves as the basis for a number of the other serializers. It generates an XML document from the input SAX event stream. This serializer is in the class org.apache.cocoon.serialization.XMLSerializer under the name xml. You can provide a number of configuration parameters when you use the serializer from a <serialize> tag:
Transformers in Cocoon
Transformers are the components that get the job done. Without them, a pipeline could only generate some SAX events and serialize them back out. You’d get a little functionality, but not much. The standard Cocoon distribution includes a number of transformers; the following list gives you an overview of those that are built in. Some of these transformers are quite sophisticated, so we’ll provide a general description of how the transformers work. You’ll need to look at the components appendix of the Cocoon manual to learn about all the features of a particular transformer:
Generator in Cocoon
Cocoon 中事先定义了一系列的Generator,可以直接使用。这是一个简单的介绍,摘自Professional XML Development with Apache Tools: Xerces, Xalan, FOP, Cocoon, Axis, Xindice。
2006-06-18
configure Outlook 2003 to block additional attachment file name extensions
1. Click Start, click Run, type regedit, and then click OK.
2. Locate and then click the following key in the registry:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security
3. On the Edit menu, point to New, and then click String Value.
4. Type Level1Add, and then press ENTER.
5. On the Edit menu, click Modify.
6. Type , and then click OK.
Notefile_name_extensions is a list of the attachment file name extensions. Each attachment file name extension is separated by a semicolon. For example, type .zip; .gif if you want to block both .zip and .gif files from appearing in the e-mail message as an attachment.
参考:http://support.microsoft.com/kb/837388
cocoon输出文件的编码设置
发现Cocoon输出html文件的默认编码设置为ISO-8859-1,这是在cocoon的配置文件cocoon/WEB-INF/web.xml中默认定义的。
<!--
Set encoding used by the container. If not set the ISO-8859-1 encoding
will be assumed.
Since the servlet specification requires that the ISO-8859-1 encoding
is used (by default), you should never change this value unless
you have a buggy servlet container.
-->
<init-param>
<param-name>container-encoding</param-name>
<param-value>ISO-8859-1</param-value>
</init-param>
要修改生成的HTML文件的默认编码,可以在Cocoon的sitemap文件里修改HTML的Serializer,修改后如下面例子所示:
<map:serializers default="html">
<map:serializer logger="sitemap.serializer.links" name="links" src="org.apache.cocoon.serialization.LinkSerializer"/>
<map:serializer logger="sitemap.serializer.xml" mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer"/>
<map:serializer logger="sitemap.serializer.html" mime-type="text/html" name="html" pool-max="${html-serializer.pool-max}" src="org.apache.cocoon.serialization.HTMLSerializer">
<doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
<encoding>UTF-8</encoding><!-- this encoding is added by Dingjun Jia -->
</map:serializer>
2006-06-17
cocoon连接MySQL数据库
今天下午花了不少时间才设置好cocoon与MySQL数据库的连接。要设置cocoon和MySQL可大致分为3步:
- 让cocoon能找到JDBC的 jar文件
- 让cocoon预先加载JDBC driver
- 设定连接池
我没有用cocoon自带的java web server,而是用的Tomcat 5.5.17。下载MySQL Connector/J 3.1.12后把mysql-connector-java-3.1.12-bin.jar文件先后复制到了多个目录:
- $JAVA_HOME/jre/lib/ext
- $CATALINA_HOME/common/lib
- $CATALINA_HOME/webapps/cocoon/WEB-INF/lib
重新启动tomcat后日志仍然报告:
cocoon java.sql.SQLException: No suitable driver
意思是cocoon仍然找不到MySQL的MySQL Connector/J 3.1.12。
后来在$CATALINA_HOME/webapps/cocoon/WEB-INF/web.xml文件里第195行添上
com.mysql.jdbc.Driver
就能与MySQL进行连接了。
下面是设定一个连接池的例子:
在cocoon.xconf文件里加上:
<!-- added by Dingjun Jia, mysql connection pool in cocoon.conf -->
<jdbc name="abc" logger="core.datasources.abc">
<pool-controller min="5" max="10"/>
<!-- <auto-commit>false</auto-commit> -->
<!-- 此行若不注释掉,总会得到错误:
Not allowed to define mixed content in the element match at file:/opt/tomcat/webapps/cocoon/abc/sitemap.xmap:80:36 -->
<dburl>jdbc:mysql://localhost/abc</dburl>
<user>jia</user>
<password>password</password>
</jdbc>
P.S:
If we want to use non-latin characters in mySQL, Greek for example, we need to have a more specific connection string: jdbc:mysql://YourHostName:3360/YourDataBaseName?useUnicode=true&characterEncoding=YourEncoding for example: (cocoon.xconf)
<jdbc name="pool_name">
<pool-controller min="5" max="10"/>
<dburl>jdbc:mysql://YourHostName:3360/YourDataBaseName?useUnicode=true&characterEncoding=ISO-8859-7</dburl>
<user>database_user</user>
<password>database_password</password>
</jdbc>
2006-06-16
Cocoon的sitemap引擎
2006-06-15
windows下的同步工具robocopy
Robocopy is a 32-bit command-line tool used for file replication. This tool helps maintain identical copies of a directory structure on a single computer or in separate network locations. Robocopy is included in the Microsoft® Windows® Resource Kit.
2006-06-14
Finanzamt的开放时间
周一 到周三:07:30 - 17:30
周四:07:30 - 18:00
周五:07:30 - 13:00
不过明年再报税已经全部改成网上报税了,到时候Finanzamt的工作人员不用这么早上班了。
2006-06-13
停止"磁盘空间不足"警告功能
当磁盘驱动器的容量少于 200MB 时,Windows XP 便会发出"磁盘空间不足"的通知。如需停止此功能,可按下步骤更改注册表。
在“开始”菜单选择"运行",输入"Regedit",进入"HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion",在〔Policies〕下增加一个项"Explorer"(如果已有便不用增加),然后在"Explorer"增加一个 DWORD 值"NoLowDiskSpaceChecks",数值资料为〔1〕= 停止通知,值资料为〔0〕= 默认值启动通知。
拷贝DVD影片
早在VCD格式光盘流行的年代,电脑爱好者们就经常将光盘中Mpegav目录下的影音文件直接拷贝到硬盘上,然后再进行影片的播放,以此来减少光驱的耗损。虽然DVD影片光盘在制定标准时就考虑到要通过技术措施来防止拷贝,但DeCSS软件的出现使得其保护措施形同虚设,因此我们现在见到的绝大多数DVD影片光盘中的文件都是可以直接进行拷贝的。与此同时,电脑上DVD光驱的普及率越来越高,其数据读取速度已经高达16倍速(21MB/s),而硬盘的容量也越来越大,80GB已经成为了标准配置,这一切都为我们将DVD影片拷贝到硬盘上播放提供了很好的条件。
2006-06-03
Komodo 3.5.3终于修复code browser的一个bug
1GB的免费存储空间
2006-06-02
Update Wordpress to 2.0.3
2006-05-31
Install cocoon 2.1.9 on apache-tomcat-5.5.17
下载cocoon的源文件cocoon-2.1.9-src.tar.gz,下载地址为:
http://mirrorspace.org/apache/cocoon/cocoon-2.1.9-src.tar.gz
解开该文件并进入cocoon-2.1.9目录执行build.sh,在cocoon-2.1.9目录下会生成一个build目录。Build目录包含cocoon和webapp两个目录。
关掉tomcat server,执行命令/opt/tomcat/bin/catalina.sh stop 。
Office 2003/XP Add-in: Remove Hidden Data
2006-05-26
升级ilias3到ilias 3.6.3
2006-05-25
试用office 2007 beta2
2006-05-23
恢复windows 2000管理员密码
今天下午把germa58这台电脑从DM 330楼移到了A 423。由于这台电脑很久没人用了,想使用SUS更新一下,可是不知道管理员密码。用香山红叶版本的windows PE启动后用ERD 2003想重置管理员密码,结果程序报告无法打开密码数据库文件,只好用其他的办法。一个简单的办法是删掉%Windir%\System32\Config\文件夹下的Sam文件,然后重新启动计算机。这样就可以Administrator身份登录系统,此时密码为空。
Windows NT/2000/XP中对用户账户的安全管理使用了安全账号管理器(Security AccountManager,SAM)的机制,安全账号管理器对账号的管理是通过安全标识进行的,安全标识在账号创建时就同时创建,一旦账号被删除,安全标识也同时被删除。安全标识是惟一的,即使是相同的用户名,在每次创建时获得的安全标识都是完全不同的。因此,一旦某个账号被删除,它的安全标识就不再存在了,即使用相同的用户名重建账号,也会被赋予不同的安全标识,不会保留原未的权限。
安全账号管理器的具体表现就是%SystemRoot%\system32\config\sam文件。SAM文件是WindowsNT/2000/XP的用户账户数据库,所有用户的登录名及口令等相关信息部会保存在这个文件中。
配置无线网
2006-05-17
Temporary Internet Files文件夹
2006-05-16
O2的网从植物人状态到现在半身不遂
这鞋还能不能退?
周五下午LP去店里想退掉那双鞋,店员说, "Das ist kein Reklamationsgrund und wir werden es nicht umtauschen oder zurücknehmen." 店员只提供一双鞋垫,并且态度很不友好。LP没办法,拿着鞋和鞋垫只好回家了。
周六上午给Dietmar打了个电话,讲明了情况。他说这种情况下退鞋没问题,"Sie müssen die Schuhe zurücknehmen."。电话里约好11点在deutsche bank见面,再去店里交涉一下。可是事情没有想得那么简单,我们俩到店里后讲明来意,刚好店员还是昨天的那几个,他们对此事很清楚,不做任何让步。没有办法,只有撂下“Das ist noch nicht erledigt, ich werde mich bei Verbraucherschutzzentrale melden.”这话走人。回家后上网查到了一下莱法州的Verbraucherschutzzentrale在特里尔的咨询办事处的地址(Fleischstraße 77)和电话(0651-48802),准备周一去。
2006-05-13
O2 Kundenbetreuung
4 Rechung
5 Technik
6 Sonst(人工服务)
根据以往的几次经验,O2的电话顾客服务还是不错的。
2006-05-12
解决在bibliography folder下导入bibtext的错误
今天在Plone环境下想在bibliography folder下导入bibtext文件,可是在点击导入时总得到错误:
Es ist ein Fehler aufgetreten. Die Fehlermeldung lautet:
Fehlertyp
RuntimeError
Fehlerwert
CMFBibliographyAT/skins/bibliography/getImportReports.py has errors.
在goole上查到有人提交的这个Bug,原来是因为skin目录下有些python文件是在windows下编写的,导致换行符号与在unix下的不一样而造成了这个错误。要修改的文件包括:getImportReports.py 和 getLastImportReport.py。
cat getLastImportReport.py | col -b > getLastImportReport.py或者
dos2unix getLastImportReport.py > getLastImportReport.py, 只是如果没有dos2unix这个小程序还得先安装一下。
2006-05-10
修复键盘失灵的错误
2006-05-09
Gmail@前面的.
另外,以前就知道的一个技巧是可以在地址上加上+关键词,如dingjun.jia+ajax@gmail.com,可惜有不少mail验证程序都把这种形式的mail地址视为非法的地址。
Gmail使用技巧
1.“has:attachment”——找出所有含有附件的邮件。你还可以进一步指定更多条件,比如“has:attachment from:me label:sent”,这就是找出所有在sent(已发送邮件)里的由你所发送并且包含附件的邮件。这个很有用,因为你发送含附件的邮件后,一般情况下,sent里面的这些邮件都是没有用途的了,可以直接删掉。2.“filename:pdf”——找出所有附件中含有.pdf文件的邮件。类似地,你还可以指定其它文件类型,比如“filename:rar”或“filename:zip”。一般我们压缩收发的都是较大的附件,这样就可以直接删除掉体积较大的一些邮件。
3.“before:2006/01/01 label:sent”——找出所有由你自己发送的并且发送时间在2006年1月1日前的邮件。类似地,你也可以输入“after:2006/01/01 label:sent”来找到你在2006年1月1日以后所发送的所有邮件。
4.“from:abc@def.com”——找出所有来由abc@def.com发过来的邮件。比如当你订阅了一些电子杂志,或者你记得某人经常给你发送体积较的邮件,你可以一次过把它们找出来,然后删掉不重要的。
Gtalk与windows live messenger
2006-05-05
使用CMFBibliographyAT
先建立一个CMF site或者Plone site,然后在CMF/Plone site里添加一个CMFBiblographyAT content,然后选择“LargeBibliographyFolder“,添加完BibliographyFolder后才可以在里面添加其他类型的CMFBiblographyAT content。此前不知道,所以一上来就添加“BookReference“,结果总是得到出错提示:
Unauthorized: You are not allowed to access 'aq_explicit' in this context。
相信这句话会让Plone的新手借助google找到这儿:)
2006-05-04
碰见老五!
zMySQL DA连接字符串的格式
database[@host[:port]] [user [password [unix_socket]]
例如:
databasename@host username password
这个格式个人认为有点怪,用空格来分隔主机名,用户名和密码。
2006-05-03
Skype 2.5 beta支持发短信
中国:€ 0.045(不含税) € 0.052(含税)
德国:€ 0.102(不含税) € 0.117(含税)
更多的SMS费率列表:http://www.skype.com/products/skypesms/rates/#listing-G
我的手机无法输入中文,现在可以借助skype方便的发SMS了!
行李终于到了
德国时间30日早上近八点了,飞机才落在法兰克福机场。我急急忙忙走在前头过了边检去领行李,可是等了半天,除了刚开始出来的几个行李外,传送带就连动都懒得动了。差不多等了快一个小时,显示屏上打出了CA 965 beendet/finished。围在传送带周围的人都不知所措,我想,莫非机场把每个人的行李都邮寄到家。正想着,一位工作人员手里拿着纸和笔,让大家填写自己的行李号和地址。白白地等了一个小时,并且guka和chang还在Koblenz等我,怕我的行李太多。这下到好3个行李都不用自己拎着回家了。
5月1日到处放假,行李是不会到的。5月2日早上接到电话被告知,行李已经到卢森堡了,再确认一下,要给我送过来。10点半,一个小伙子开着车终于把行李送过来了。此时这次旅行才算全部结束!
2006-05-02
安装CMFBibliography
2006-04-30
update ilias 3 from 3.6.1 3.6.2
另:由于为了方便文件备份,ilias 3的的文件都放到了URT专门的file server上,在urts52上把file server上的一个目录mount到本地。这样这个文件夹不支持urts52上本身的setfacl操作,这使得文件上传出错。把wwwrun添加到studip这个组,并为ilias 3下 data目录下的所有文件赋予studip组的写权限,文件上传就不再报错了。
2006-04-03
Sony Erricson手机的伴侣
有了floAt's Mobile Agent,发SMS实在是小菜一碟,因此极力推荐!
FMA is a free1 powerful phone editing tool allowing users to easily manage all of the personal data stored in their phones, via a number of different connections methods. FMA allows easy management of Phonebook (both SIM and Phone memory), SMS, Profiles, and Files stored on the phone. FMA can also allow you to pickup and dial calls directly from your PC. FMA is fun and much more; whatever you want it to be, it is whatever a mobile phone should have :-)
2006-04-02
考试结束了!
2006-03-28
命令行重启远程win xp pro
shutdown -r -f -m \\136.199.xx.xx
果然马上奏效。
这里没有涉及用户认证的问题,我想是因为通过remote desktop连接已经通过用户验证和权限检查的问题。如果没有现存的远程桌面连接,也许需要下面的命令:
net use \\136.199.xx.xx\ipc$ kennwort /user:administrator
2006-03-27
察看MTU
jiad4701@urts12:~> netstat -i
Kernel Schnittstellentabelle
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 028310910 0 0 028165106 0 0 0 BMRU
eth0: 1500 0 - keine Statistiken verfügbar - BMRU
eth0: 1500 0 - keine Statistiken verfügbar - BMRU
eth0: 1500 0 - keine Statistiken verfügbar - BMRU
eth0: 1500 0 - keine Statistiken verfügbar - BMRU
eth1 1500 0 378871 0 0 0 383850 0 0 0 BMRU
eth2 9000 011519063 0 0 012050648 0 0 0 BMRU
eth2: 9000 0 - keine Statistiken verfügbar - BMRU
lo 16436 0 44112 0 0 0 44112 0 0 0 LRU
2006-03-23
使用sortedTable
<table class="sorted">
我以为这仅仅是涉及格式化的css的一个类,检查例子中的css文件,却发现根本没有sorted这个类。可是没有这个声明,排序就不起作用,添上后排序就没问题。我只能无论**吞枣先照此运用,等日后有时间再琢磨一番为何。
春江水暖鸭先知
在去Übergang的路上经过食堂后面的小水塘看见几只鸭子在水中嬉戏正欢,拿出手机拍了两张。这应该就是诗人笔下的春江水暖鸭先知了!今年的冬天迟迟不走,不知道对Vogelgrippe到处肆虐是不是间接地延缓了一下严峻的形势。记得两三周前在食堂吃完饭出来,看见好几群鸟(据说是大雁)在空中久久盘旋不止,好似迷路一般。我像往年的这个时候,到处都是绿色的一片,而这些大雁现在看到的却是白茫茫的一片,怎能让迁移回飞的大雁们不迷惑。也许鸟儿们远远比我聪明,我只是傻乎乎的以人的定势思维来考虑问题。
2006-03-22
我使用的firefox插件
1. Adblock Plus
先前使用adblock,后来发现了Adblock Plus便一直使用它了。它能当掉你不想看到的各种广告,图片,flash,frame页面,支持正则表达式,强大无比!
2. Web Developer
对于开发和调试网页(如CSS,Javascript)非常的方便
3. Scrapbook
能非常方便的保存一个网页和网页内的链接,包括mp3(哈哈,这下可方便下在mp3),pdf,jpg等
4. google toolbar for firefox
虽然firefox已经自带了搜索工具,但还是忍不住要安装这个插件,查询关键词的提示功能,Autofill等功能让人爱不释手!
5. Auto Copy
功能很简单,就是当选中文字的时候,自动把文字复制到粘贴板,很实用!
6. Performancing
这是新近发现的,针对所谓高产量的blogger的。虽然我不是常写blog,但是有了它写blog方便极了!
虽然firefox存在内存泄漏的问题,但是有这么好用的插件为什么不用firefox呢,多用一点内存也无妨了。
2006-03-16
高pagerank值的网页
修改wordpress的一个插件StatTrag
把 echo htmlentities(stripslashes($row->post_title));
改为 echo $row->post_title;
先是就正常了。原来的代码好像是出于安全考虑过滤一些字符再显示,不知道为什么到了中文就出现乱码。
2006-03-14
Fujitsu-Siemens的服务电话
2006-03-12
德国手机运营商的号码
通过手机号的前面几位数字能看出这个用户使用的那各网络商:
D1:
151,160,170,171,175
2006-03-11
2006-03-10
添加德文的wikipedia搜索插件
2006-03-07
上麦当劳买火车票
2006-03-05
用Google, Yahoo, MSN分别搜索"Dingjun Jia"
- Google: 173 für Dingjun Jia. (0,34 Sekunden)
- Yahoo: 348 für Dingjun Jia. - 0,30 Sek.
- MSN: 280 Ergebnissen, die dingjun jia enthalten (0,13 Sekunden)
MSN 速度最快,搜索的结果数量介于其他两者之间,但从搜索结果的质量来看,是三者中最差的。相反Google虽然速度最慢,数量少,但是质量高。Yahoo从速度,数量和质量来看都刚好处于两者之间。当然这个比较仅仅限于对这一个关键词搜索而言。
2006-03-04
获取打印机列表
在Suse上测试过可以通过下面的命令组合来得到:
lpstat -p |sed ‘/^[ ][ ]*.*/d’ |awk ‘{print $2}’ | grep -v “file”
然后用lpr -P$printername $filename把文件送到打印机。
2006-03-03
IE 7 beta2的又一个bug?
把nucleus blog的帖子转换到 wordpress blog
让人印象深刻的两个德国小女孩
2006-02-22
遭遇IE 7 beta2 的一个bug
Internet Explorer cannot display the webpage
错误提示。
原以为是因为安全策略限制引起的,参照http://support.microsoft.com/kb/896054/
文中提到的各种解决办法,问题还是存在,并且发现在打开某些chm文件时却不存在这个问题,至此排除了由于安全策略设置不当的原因。后在用关键字 “IE7, chm, mk:@MSITStore”查找后才发现,这应该是IE 7 beta2一个未解决的Bug。
2006-02-12
Event ID 6004 / 3019
Ereignistyp: Fehler
Ereignisquelle: EventLog
Ereigniskategorie: Keine
Ereigniskennung: 6004
Beschreibung:
Ein Treiberpaket, das vom E/A-Teilsystem empfangen wurde, war ungültig. Die Daten sind das Paket.
2006-02-11
硬盘的故事还没完
拿到新硬盘后,把它设置为master,赶紧在上面装了一个操作系统,并把旧硬盘设置为slave。这样从新硬盘启动系统后把旧硬盘的数据拷贝到新硬盘上。拷贝数据时明显觉得拷贝速度很慢。复制一个2,3G的文件夹要半个多小时。这对两个带有8M cache的ATA 133硬盘来说简直太慢了。当时我想估计是就硬盘有问题,读取数据比较慢。也就没有太在意。心里还想,只要数据能读出来就不错。经过漫长的数据复制之后,我把旧硬盘卸下来,电脑里仅剩一个硬盘,运行起来感觉很不对劲。光启动就比以前满了好多,winxp 那个滚动条要走近30下才能启动起来。登陆进入后打开一个资源管理器也有明显的迟钝等待。1个G的内存和250 G的硬盘不应如此慢啊?!
又去查看日志,几个连续的红色由ATAPI引起的错误引起了我的注意:
2006-02-09
2006-02-04
一个轮循日志的工具
specified by a filename template and the current date and time. When the expanded filename changes, the current file is closed and a new one opened.
cronolog is intended to be used in conjunction with a Web server, such as Apache, to split the access log into daily or monthly logs. For example the Apache configuration directives:
2006-01-25
Löschen der servergespeichterten Benutzerpofile beim Abmelden des Benutzers an der Arbeitstation
执行gpedit.msc
在win xp pro上按下列顺序找到Delete cached copies of roaming profiles选项,激活:
computerconfiguration -> Administrative Vorlagen -> System -> User Profiles ->Delete cached copies of roaming profiles
在windows 2000上位置有所不同:
computerkonfiguration -> Administrative Vorlagen -> System -> Anmeldung -> zwischengespeicherte Kopien von servergespeicherten Profile löschen
2005-12-22
Zweibrücken在莱法州境内
今天学校开始放圣诞假了,一直到1月6日。大家早就约好一起去Zweibrücken看看那儿的Designer Outlet Center。那里名牌服装和鞋类厂家(如Adidas,Burberry,Lacoste,Mango,Nike,Polo等等近40家)的产品以出厂价(factory price)销售,赶上圣诞节打折,价格会比城里商店买的东西便宜不少。
2005-12-17
2005-12-11
升级StudIP和Ilias3
拖了很久的StudIP升级今天起个早终于把它解决了。因为准备工作已经做好了,所以升级很快。仅仅是事先做好数据库和Web文件的备份,然后执行事先准备好的第一批SQL语句,然后执行convert_active_sessions.php(这个步骤本来要求以root身份登陆后才能执行,我懒得去找密码就把第三行的$perm->check("root");给注释起来了),然后再执行第二批SQL语句,修改soft link的指向就升级到了StudIP 1.2.0-2。