存档

‘CODE’ 分类的存档

python+qt编写的802.1x拨号器

2011年9月5日 3 条评论

适用于电子科大清水河校区的802.1x认证网络,也应该适用于其它使用MD5-Challenge方式进行EAP认证的802.1x网络

由于使用qt编写,因此需要先安装pyqt4,方能运行本程序

刷新IP部分使用了network manager的dbus接口,但是在某些发行版上可能并没有dbus或者networkmanager,这时本程序就无法自动获取ip地址,需要根据程序状态的提示,自行使用对应的dhcp命令手动刷新ip

点击此处下载

欢迎来邮件讨论相关问题~~~

分类: CODE 标签: ,

A reversion of Lighttpd’s dir-generator.php

2010年6月1日 1 条评论

I got the dir-generator.php worked in my own server, but I found that in some particular circumstance the script worked not very well. For instance, if the filenames has Chinese words, the script displays it in error codes, and because the script uses PHP function filesize() and filemtime() to get the file size and mtime, if the file is very large (for example 4GB), the functions will not work. Even worse, the PHP function is_file() cannot work with large file either, and it makes the large file disappear from the directories list. For normal user, it is very hard to deal with these problem, and maybe they will drop the script.
阅读全文…

分类: CODE 标签: ,