最近生活的总结从知道9YE开始
Oct 24th, 2007 by song

最近生活的总结从知道9YE开始
确切来说应该是工作 不过我的生活就是工作

XX年xx月xx日
波波刘问我“有个公司想做视频点播方面,你以前不是做过吗”
“呃!现在土豆、56不是很多么现在还搞有啥前途”
关于视频源大把,前途这个是一个专门的行业领域
“呃!。。可以到时候尽力了,我能帮的就帮把”
xx年xx月xx日
波:关于上传你了解些啥,我指的是大文件!
路:xxxxx
QK:yyyyyy
松:FTP activx php
波:呃!去了解下
xx年xx月xx日
波:视频播放方面帮忙处理下呢!至于多少money你自己说下呢!
松:呃!好忙我尽力!
场景.最终松还是没时间去帮上波
xx年xx月xx日 Read the rest of this entry »

我freebsd的配置
Oct 18th, 2007 by song

装载
/boot/loader.conf
autoboot_delay=”1″ #设置启动等待时间

rc.conf
注意里面的ssh 和 inetd 的ssh 别同时启动
# — sysinstall generated deltas — # Mon Oct 15 23:54:06 2007
# Created: Mon Oct 15 23:54:06 2007
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter=”192.168.1.3″
hostname=”localhost”
ifconfig_em0=”inet 192.168.1.9  netmask 255.255.255.0″
#ifconfig_em0_alias=”inet 202.96.128.86  netmask 255.255.255.0″ 设置多个IP方法 alias
inetd_enable=”YES”
keymap=”us.iso”
linux_enable=”YES”
sshd_enable=”YES”
usbd_enable=”YES”
mysql_enable=”YES”
apache22_enable=”YES”

我的my.cnf

[mysqld]
basedir = “/usr/local/”
datadir = “/var/db/mysql/”

default-character-set=utf8

#InnoDB
#innodb_buffer_pool_size = 512M #<80% system memory
innodb_additional_mem_pool_size = 16M

#innodb_log_group_home_dir =
innodb_log_file_size = 128M #<25% buffer_pool_size
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 0

innodb_lock_wait_timeout = 50
innodb_thread_concurrency = 8
[client]
default-character-set=utf8

ssh/tcp: bind: Address already in use
Oct 18th, 2007 by song

ssh/tcp: bind: Address already in use

/etc/rc.conf及/etc/inetd.conf同是打开ssh.

直接ee 修改关闭一个即可

征途SF登陆器 VC版
Oct 12th, 2007 by song

前登陆器 采用远程网页式“注册”、“帐户管理”、“会员充值等”
这样安全不暴露数据字段
登陆器基本功能
当前版本 0.9 Beta
点击下载最新版登陆器
点击下载最新版文件更新配置器

自动读取XML自动更新补丁文件
读取XML文件读取服务器列表
自动创建 zhengtu 1.03执行文件,不与别人冲突
自动配置Config.ini文件
检测服务器状态
让用户选择是否创建桌面图标

[img]attachment/1192154631_0.jpg[/img]

[img]attachment/1192154631_1.jpg[/img]
自动更新 读取服务器端配置的XML 通过CRC及大小验证是否需要更新文件
和官方一致 且可以选择ZIP压缩方式更新节省下载时间及带宽
特别推荐使用ZIP压缩方式更新 因为如果其他后缀如在win2003服务器环境下
很容易下载失败因为没有添加特殊的后缀名
[img]attachment/1192154631_2.jpg[/img]

关于注册及找回密码等一套功能将使用PHP结合服务器注册

其中网站可管理服务器 管理经验物品活动奖品等
[img]attachment/1192154631_3.jpg[/img]
登陆器功能简单列表及制作时间
登陆器下载 http://www.gmwin.com/login.rar
更新配置器下载 http://www.gmwin.com/CreateUpdate.rar
关于登陆器加区没时间做配置器了需要配置的 联系我
如果没BUG停止更新功能了仅修正BUG了

简单设置进度条
Oct 10th, 2007 by song

一、改变进度条颜色

在VC里想改变进度条颜色,在网上找了很多方法,都很麻烦,觉得很郁闷。后来想起在用VB做时,增经用API实现过,很简单。后来再一查,原来是SendMessage这个函数,几经试验,终于成功,高兴,与大家分享!!!!

代码如下:

m_Progress1.SendMessage(PBM_SETBKCOLOR, 0, RGB(0, 0, 255));//背景色为蓝色

m_Progress1.SendMessage(PBM_SETBARCOLOR, 0, RGB(255, 0, 0));//前景色为红色

至于别的控件能不能按这种办法来改变颜色,我还没试过,大家可以试一试,如果可以,请留言告诉我,先谢谢了 。

以下摘自《新编win32API大全》: Read the rest of this entry »

redhat linux命令大全
Oct 8th, 2007 by song

一些常用命令
一. 启动,关机,登入,登出相关命令
<login> 登录
<logout> 登出
<exit> 登出
<shutdown> 停止系统
<halt> 停止系统
<reboot> 重启动
<poweroff> 切断电源
<sync> 把内存里的内容写入磁盘
<lilo> 安装lilo启动管理程序
<grub> 安装lilo启动管理程序
Read the rest of this entry »

关于LINUX RPM的 mysql
Oct 7th, 2007 by song

好久没搞点技术东西了 今天整篇小经历

卸载MYSQL 提示有2个版本无法卸载
安装RPM 有冲突 强制安装force
rpm -i –force MySQL-server4.1.22-0.rpm
警告:MySQL-server4.1.22-0.rpm: V3 DSA 签名:NOKEY, key ID 5072e1f5
错误:失败的依赖关系:
       MySQL 与 mysql-4.1.20-1.RHEL4.1.i386 有冲突
       MySQL 与 mysql-4.1.20-1.RHEL4.1.x86_64 有冲突
       MySQL-server 与 mysql-server-4.1.20-1.RHEL4.1.x86_64 有冲突

在冲突中终于看到了关键字马上 不提示nodeps
[root@localhost ~]# rpm -e –nodeps mysql-4.1.20-1.RHEL4.1.i386
[root@localhost ~]# rpm -e –nodeps mysql-4.1.20-1.RHEL4.1.i386

[root@localhost ~]# rpm -e –nodeps mysql-server-4.1.20-1.RHEL4.1.x86_64
警告:/var/log/mysqld.log 被存为 /var/log/mysqld.log.rpmsave
看样子好像删除了

[root@localhost ~]# rpm -q mysql
软件包 mysql 没有安装

再装
[root@localhost ~]# rpm -i MySQL-server4.1.22-0.rpm                    
警告:MySQL-server4.1.22-0.rpm: V3 DSA 签名:NOKEY, key ID 5072e1f5
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h localhost.gmwin.com password ‘new-password’
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL.[  OK  ]
[root@localhost ~]#
提示好像OK了

LINUX 查看本版信息
Oct 5th, 2007 by song

1) 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:  [root@3.5.5Biz-46 ~]# lsb_release -aLSB Version: 1.3Distributor ID: RedHatEnterpriseASDescription: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)Release: 4Codename: NahantUpdate1[root@3.5.5Biz-46 ~]#


 这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

2) 登录到linux执行cat /etc/redhat-release ,例如如下:  [root@3.5.5Biz-46 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)

[root@3.5.5Biz-46 ~]#

 这种方式下可以直接看到具体的版本号,比如 AS4 Update 1

3)登录到linux执行rpm -q redhat-release ,例如如下  [root@3.5.5Biz-46 ~]# rpm -q redhat-releaseredhat-release-4AS-2.4[root@3.5.5Biz-46 ~]#
 这种方式下可看到一个所谓的release号,比如上边的例子是2.4

这个release号和实际的版本之间存在一定的对应关系,如下:  redhat-release-3AS-1 -> Redhat Enterprise Linux AS 3redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update 4redhat-release-4AS-2 -> Redhat Enterprise Linux AS 4redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update 1redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update 2redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update 3redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4
 注意:第(2)(3)两种方法只对Redhat Linux有效

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »