02 2013 档案

摘要:怎样在扩展DLL中使用对话框VC++6.0new->MFC AppWizard(dll)输入名称ExtDll选择MFC Extension DLL(using shared MFC DLL)Finish.添加对话框IDD_DLLDIALOG为对话框创建新类 class CExtDialog : public CDialog删掉ExtDialog.cpp中的#include " \ add additional includes here"这句话在StdAfx.h中添加#include "resource.h" 否则的话,编译会出现如下错误:extd 阅读全文
posted @ 2013-02-08 00:00 Monn 阅读(948) 评论(0) 推荐(0)
摘要:买回来VPS后就一直想在上面搭建一个流媒体服务,在网上搜索了很多资料,大部分都是介绍Linux中安装Darwin Streaming Server5.5.5版本,因为这个版本提供了针对linux的安装脚本。但既然官网有了6.0.3版本,于是果断尝试安装最新的版本。1、什么是Darwin Streaming Server 目前主流的流媒体服务器有微软的windows media server、RealNetworks的Helixserver和苹果公司的Darwin Streaming Server. 微软的windows media server只能在windows2000 server和win 阅读全文
posted @ 2013-02-05 22:43 Monn 阅读(635) 评论(0) 推荐(0)
摘要:This script will auto install PPTP VPN on CentOS 6 32bit. Before run this script, you need to make sure PPP is enabled on your VPS/Dedicated Server. This script has been tested on OpenVZ VPS with 128mb memory.Check if PPP module is enable.cat /dev/pppIf you receive this message, PPP module is enable 阅读全文
posted @ 2013-02-02 21:56 Monn 阅读(1311) 评论(0) 推荐(0)
摘要:最近装了个ubuntu服务器,需要创建专用的ftp用户,为了安全要禁止ftp用户登录shell。按照在freebsd的操作习惯,我把ftp用户的shell设定为/usr/bin/nologin。岂料该用户居然无法登录ftp,把shell改成/bin/bash后,ftp又能登录了。难道不能禁止登录。网上一遍,解决方法居然很多,包括禁止22端口、设置/etc/hosts.deny或者/etc/hosts.allow等。然而这些方法都有不少局限性,最后发现原因是/usr/bin/nologin不在/etc/shells列表内,ftp登录时要检查该用户的shell设定是否正确,我把shell强行改成不 阅读全文
posted @ 2013-02-02 21:00 Monn 阅读(1750) 评论(1) 推荐(1)
摘要:使用在观看 Google I/O 2012 (官网) 视频, 网络不是很稳定, 老卡, 打算下载下来看, 并且方便可以重温.使用 FF 下载, 手动一个个下, 感觉有点二, 并且不稳定, 有时候 putty 会掉线, 失去链接.Google 了一下, 找到了youtube-dl, 代码存放在 github 上 (这里)下载 / 安装需要 python 2.7 , vps 上的python 版本是 2.4, 得先升级下,见这里.安装好 python 2.7 后, 开始安装 youtube-dl wget https://raw.github.com/rg3/youtube-dl/2012.... 阅读全文
posted @ 2013-02-02 03:34 Monn 阅读(1322) 评论(0) 推荐(0)