Go 1.6 release party What's happening?To celebrate the release of Go 1.6 we're organising a world wide release party on February the 17th, 2016.
perl 6 批量处理文件 Perl 6 Language目前perl6对GB2312的文件支持的不好,请转换为UTF-8的输入文件。简单尝试了一下将之前用perl5写的这个脚本改成了perl 6(未使用额外的包),与perl 5有些区别。比如?: 换成了?? !! 等,更多的请参考Synopsis 。 use v6;my $dir = '.';my \TABLEN = 4;find(&undersc
sublime text 3 编辑器 perl支持 1. 下载sublime text 3的最新版本,安装,注册。2. 下载包Package Control和ConvertToUTF8,然后解压放到Preferences->Browse Package所在的目录即完成了插件的安装(通常网络方式安装可能失败)。对于perl,中文希望构建GBK的生态系统。修改ConvertToUTF8.sublime-settings中的 // Encod
perl批量处理文件 ################################################################################ fileGs# 功能: 将指定目录下所有.c和.h文件的tab转成空格、删除行尾空字符# 说明: 此脚本提供了批量处理文件的方法,修改单行线之间的内容可以完成不同的功能# -------------------------
Get a hash value using XS #include #define PERL_NO_GET_CONTEXT#include "EXTERN.h"#include "perl.h"#include "XSUB.h"#include "get-hash-value.h"#include "ppport.h"void get_hash_value (pTHX_ HV * hash){ c
Perl and XS: Example 3: Set::Bit #define PERL_NO_GET_CONTEXT#include "EXTERN.h"#include "perl.h"#include "XSUB.h"#include "ppport.h"typedef struct{ /* The range of the set is 0..n_bits - 1 */ int n_bits;
windows cpan 编译安装DBD::mysql C:\Perl\bin\perl.exe myld link -out:blib\arch\auto\DBD\mysql\mysql.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"c:\perl\lib\CORE" -machine:x86 dbdimp.obj mysql.obj C:\perl\lib\COR
Perl + mysql #!/usr/bin/perluse strict;use DBI;# 连接到数据库,创建数据库my $dbh = DBI->connect("DBI:mysql:test:localhost","root","c12c1212",{ RaiseError => 1, AutoCommit => 0 }); $dbh->do("CREATE SCHEMA IF NO
Perl DBI 自动选择更新部分字段的值 通常,有一个表有多个字段,有时候会只修改其中的某些字段,定义为NULL的字段不更新,如下updatefield函数。#!/usr/bin/perluse strict;use DBI;use constant { NULL => '', null => ''};# 连接到数据库my $dbh = DBI->connect("dbi:SQLite:
Perl + XS 用c/c++方便的编写perl扩展 整理一下网上的资料1. h2xs -A wldemo 生成模板 Writing Wldemo/ppport.hWriting Wldemo/lib/Wldemo.pmWriting Wldemo/Wldemo.xsWriting Wldemo/Makefile.PLWriting Wldemo/READMEWriting Wldemo/t/Wldemo.tWrit
bochs smp 支持 ~/bochs-2.6.2mingw pthread(增加多线程库)$ ./configure -enable-smp --enable-cpu-level=6 --enable-all-optimizations --enable-x86-64 --enable-vmx --enable-avx --enable-sb16 --enable-cdrommakemake in