Active Perl和Cpan的Perl有些不一样,安装的时候使用ppm,具体的操作即在命令行模式下运行ppm
启动ppm后使用命令search xxx 模块名搜索模块,如果网络连接正常,过会就会返回找到的模块名称,我前面找的是sasl。
找到后运行 install authen-sasl,active perl会自动下载需要的文件并完成安装,看到Successfully installed authen-sasl version 2.10 in ActivePerl 5.8.3.809.
即成功完成安装。
下面是发送smtp邮件的方法
use Net::SMTP;
my $MailHost = "mailhost";
my $MailFrom = "xxxx\@mailhost.com";
my $MailTo = "xxxx\@mailhost.com";
my $subject = "Subject Line here";
my $MailBody = "This is the mail body";
my $smtp = Net::SMTP->new($MailHost) or die "Can't create smtp!";
$smtp->auth('user','pass');
# Send the From and Recipient for the mail servers that require it$smtp->mail($MailFrom); $smtp->to($MailTo);
# Start the mail$smtp->data();
# Send the header. $smtp->datasend("To: $MailTo\n"); $smtp->datasend("From: $MailFrom\n"); $smtp->datasend("Subject: $subject\n"); $smtp->datasend("\n");
# Send the message $smtp->datasend("$MailBody\n\n");
# Send the termination string $smtp->dataend();
$smtp->quit;
Monday, June 18, 2007
Sunday, June 17, 2007
使用winrar做备份
命令行如下
首先将rar命令行工具的路径添加到path中去
path=%path%;"RAR_PATH";
接着转到工作目录下
cd c:\project
运行rar,附带一下参数
rar a -r -agyyyy-mm-dd-hh-mm-ss bak test
这个命令行参数的意义是,a 代表添加到一个压缩文档, -r代表压缩的时候包括子目录,-agyyyy-mm-dd-hh-mm-ss代表在生成的压缩文档的名字后面加入一个时间,以yyyy-mm-dd-hh-mm-ss的格式,bak 为压缩文件的名字,结果会是bakyyyy-mm-dd-hh-mm-ss.rar,test是指定要压缩的目录或者文件名。
把上面的压缩脚本放入一个bat文件,然后用windows计划任务,就可以每周自动按时备份了:)
首先将rar命令行工具的路径添加到path中去
path=%path%;"RAR_PATH";
接着转到工作目录下
cd c:\project
运行rar,附带一下参数
rar a -r -agyyyy-mm-dd-hh-mm-ss bak test
这个命令行参数的意义是,a 代表添加到一个压缩文档, -r代表压缩的时候包括子目录,-agyyyy-mm-dd-hh-mm-ss代表在生成的压缩文档的名字后面加入一个时间,以yyyy-mm-dd-hh-mm-ss的格式,bak 为压缩文件的名字,结果会是bakyyyy-mm-dd-hh-mm-ss.rar,test是指定要压缩的目录或者文件名。
把上面的压缩脚本放入一个bat文件,然后用windows计划任务,就可以每周自动按时备份了:)
Saturday, June 16, 2007
跨平台开发游戏引擎-EGDELIB Mobile Game SDK
最新的版本是3.1
包括 Lite, Standard ,Full ,Eval 四个不同版本,前面3个版本需要 License Fee, 评估版仅限非商业用途使用。
官方网站地址http://www.edgelib.com/
License | Lite | Std | Full | Eval |
Non-commercial use | ||||
Commercial use | - |
Supported Platforms | Lite | Std | Full | Eval |
Windows Mobile Pocket PC up to 5.0 | ||||
Windows Mobile Smartphone up to 5.0 | ||||
Symbian Series 60 up to S60 3rd edition | ||||
Symbian UIQ up to 3.0 | ||||
Symbian Series 80 (Nokia Communicator) | ||||
Symbian Series 90 (Nokia 7710) | ||||
Gamepark Holdings GP2X handheld | ||||
Windows desktop | ||||
Upcoming supported platforms |
2D Graphics | Lite | Std | Full | Eval |
2D surfaces | ||||
Screen orientation awareness | ||||
Drawing primitives | ||||
Color key transparency | ||||
Advanced color filters | ||||
Dynamic clipping | ||||
Advanced rasterized font text drawing | ||||
Surface rotation and scaling | ||||
DirectDraw hardware support for Windows | ||||
Direct Screen Access for Symbian | ||||
Bounding box collision detection | ||||
Pixel precise collision detection | - | |||
RGBA surfaces | - | - | ||
Built-in screen wipes | - | - | ||
Custom pixel shaders | - | - |
Optimized Blitlet Support | Lite | Std | Full | Eval |
Lite optimized blitlet set | ||||
Standard optimized blitlet set | - | |||
Full optimized blitlet set | - | - |
Supported Image and 3D Formats | Lite | Std | Full | Eval |
BMP (Windows bitmap) | ||||
PNG (Portable Network Graphics) | - | |||
GIF (Graphics Interchange Format) | - | |||
TGA (Targa) | - | - | ||
JPEG (Joint Photographic Experts Group) | - | - | ||
3DS (3D Studio) | - | - | ||
MS3D (MilkShape 3D) | - | - |
3D Graphics | Lite | Std | Full | Eval |
3D surfaces | - | - | ||
OpenGL?ES 1.1 support | - | - | ||
Internal EDGELIB 3D renderer | - | - | ||
3D skeletal animation | - | - | ||
OpenGL?ES helper functions | - | - | ||
3D collision detection (TBA) | - | - |
Network Connectivity | Lite | Std | Full | Eval |
Bluetooth | - | |||
TCP/IP (wifi/gprs/umts) | - | |||
HTTP functionality | - | |||
Chillingo ClickPayGo support | - |
File Handling | Lite | Std | Full | Eval |
Basic file reading and writing | ||||
Reading from Edge Resource Packs | ||||
Writing to Edge Resource Packs | - | |||
Reading from INI configuration files | - | |||
Writing to INI configuration files | - | - | ||
Folder manipulation | - | - |
Input | Lite | Std | Full | Eval |
Supported input devices and buttons | ||||
Key mappings | ||||
TiltCONTROL hardware device support | - |
Miscellaneous | Lite | Std | Full | Eval |
Standard class | ||||
Memory class | ||||
Sound library plug-in support | ||||
Timer class | ||||
Math class | ||||
Debugging tools | ||||
Dynamic registration class | ||||
Device information class | ||||
Event recording | - |
SDK Tools | Lite | Std | Full | Eval |
EDGELIB Builder | ||||
EDGELIB Packer | ||||
EDGELIB Animation Strip Maker | ||||
EDGELIB Font Organizer | ||||
EDGELIB Tile Scanner |
Provided Support | Lite | Std | Full | Eval |
Public forum | ||||
- | - | |||
Instant Messaging | - | - | - |
Subscribe to:
Posts (Atom)