分页: 14/29 第一页 上页 9 10 11 12 13 14 15 16 17 18 下页 最后页 [ 显示模式: 摘要 | 列表 ]

机票人工查询号 不指定

root , 2008/05/22 21:33 , My Life , 评论(0) , 阅读(747) , Via 本站原创
过几天到厦门出差,了解机票预定、查询的方法,记下留着以后备用dog
南航:95539
海航:950718
美蓝机场网址:
http://www.mlairport.com
Tags:

linux下用yum给php安装gd库 不指定

root , 2008/05/22 21:31 , PHP , 评论(1) , 阅读(2464) , Via 本站原创
[root@localhost ~]# yum install php-gd*

Setting up Install Process
Setting up repositories
base 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
================================================
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
================================================

好方便啊,呵呵:)
Tags:

解决:ubuntu 8.0.10Flash无声 不指定

root , 2008/05/22 21:30 , Ubuntu , 评论(0) , 阅读(615) , Via 本站原创
到官方下载最新flash play:
http://download.macromedia.com/pub/flashplayer/updaters/10/flash_player_10_linux_dev.tar.gz

tar -zxvf flash_player_10_linux_dev.tar.gz
cd flash_player_10_linux_dev/plugin/debugger/
tar -zxvf install_flash_player_10_linux.tar.gz
./flashplayer-installer
asoundconf set-pulseaudio

搞定。
    在程序中使用配置文件来灵活的配置一些参数是一件很常见的事情,配置文件的解析并不复杂,在python里更是如此,在官方发布的库中就包含有做这件事情的库,那就是ConfigParser,这里简单的做一些介绍。
    ConfigParser解析的配置文件的格式比较象ini的配置文件格式,就是文件中由多个section构成,每个section下又有多个配置项,比如:

[db]
db_host=127.0.0.1
db_port=3306
db_user=root
db_pass=password
[concurrent]
thread=10
processor=20

    假设上面的配置文件的名字为test.conf。里面包含两个section,一个是db, 另一个是concurrent, db里面还包含有4项,concurrent里面有两项。这里来做做解析:

wxpython之Hyperlinks 不指定

root , 2008/05/22 21:27 , Python , 评论(0) , 阅读(567) , Via 本站原创
Hyperlinks
AppSnap displays the website of an application amongst other details. It would be ideal to open the link in the default browser when clicked. Luckily for us, wxPython has a widget just for this.

Let’s create a hyperlink:

# Create hyperlink on an existing panel widget
link = wx.lib.hyperlink.HyperLinkCtrl(parent=panel, pos=(225, 60))

For starters, let’s initialize the link.

# Initialize the hyperlink
link.SetURL(URL=”)
link.SetLabel(label=”)
link.SetToolTipString(tip=”)
Tags:

wxpython界面开发工具wxpropgrid 不指定

root , 2008/05/22 21:24 , Python , 评论(0) , 阅读(1431) , Via 本站原创
Tags:

FUNC模块学习笔记[原创] 不指定

root , 2008/05/22 21:23 , Func , 评论(0) , 阅读(1497) , Via 本站原创
* BridgeModule -- Allows for simple network bridge management
-------------------------------------------------------------
功能:操作网桥
方法:
list() Returns a dictionary containing the bridges and their connected interfaces.
add_bridge(brname) Creates a new bridge named brname.
add_interface(brname, ifname) Adds interface ifname to bridge brname.
delete_bridge(brname) Deletes bridge brname.
delete_interface(brname, ifname) Removes interface ifname from bridge brname.
add_promisc_bridge(brname, ifname) Creates a new bridge brname, attaches interface ifname to it and sets the MAC address of the connected interface to FE:FF:FF:FF:FF:FF, so traffic can flow freely through the bridge. This is required for use with Xen.
up_bridge(brname) Marks bridge brname and all it's connected interfaces as up.
down_bridge(brname) Marks bridge brname and all it's connected interfaces as down
-------------------------------------------------------------

终于找到问题了(about func) 不指定

root , 2008/05/22 21:21 , Func , 评论(18) , 阅读(7625) , Via 本站原创
一、故障现象
1、在客户端安装好func及certmaster,配好certmaster参数。
2、service funcd start,端口及进程都起来了。
3、在certmaster server 运行certmaster-ca --list死活看不到客户端的主机名。
排查过程
1、将certmaster的主机名换成IP,无效。
2、更新客户端的func及certmaster版本,无效。
3、运行/usr/bin/certmaster-request,提示:socket.error: (111, 'Connection refused'),将certmaster修改成localhost就正常了。原因可以就在这里,因为certmaster是双向的,发现在/etc/hosts中有主机名指向127.0.0.1,此时连接不上certmaster server了。将/etc/hosts中的主机名删除,再用/usr/bin/certmaster-request来测试连接,成功!!在certmaster也能看到主机了,大功告成。

二、故障现象
#/usr/local/bin/certmaster-request 被控端证书请求
certificate does not match key (run certmaster-ca --clean first?)

排查过程
1、删除/etc/pki/certmaster/证书文件再试,无效
2、分别重启certmaster、funcd服务,无效
3、删除服务器证书文件.cert后再请求正常。
原因为主机名称发生变更时服务器端certmaster-ca -c "servername"没有成功删除.cert文件导致。

二、后续问题
1、ImportError: No module named dbm (NetSeek提供)
解决:
yum -y install gdbm gdbm-devel
Tags:
分页: 14/29 第一页 上页 9 10 11 12 13 14 15 16 17 18 下页 最后页 [ 显示模式: 摘要 | 列表 ]