Author: Edwin

  • Ubuntu 安装 SVN/subversion 客户端

    by

    in

    就这样么一句话, apt-get install subversion

  • 【笔记】关于多 CPU 系统了下的 APIC(Advanced Programmable Interrupt Controller)分配方式

    原文如下: External Interrupt Distribution in Multi-APIC System – Static Distribution • According to Redirection Table (which is programmable) – Dynamic Distribution • According to “lowest priority” scheme – Sent to the local APIC of the processor that is executing process with the lowest priority. • Each local APIC has a programmable Task Priority Register (TPR),…

  • 需求驱动设计,测试驱动开发

    市场等同需求 设计催生测试 测试驱动开发

  • Linux 下如何分别打包(压缩)目录下所有文件夹,xargs,awk

    这个问题可以通过一行命令完成(当然是通过管道 “|” 所包含多条命令啦)。首先需要拆分这个问题。 获得所有目录列表,通过 grep 命令抓取以 d 标记开头的行,即为目录。 [edwin@edwinW /]# ls Dropbox bin boot data dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var wwwroot [edwin@edwinW /]# ls -l | grep ^d drwxrwxrwx 6 nobody nobody 4096 Jul 19 05:00 Dropbox drwxr-xr-x 2 root root 4096…

  • PhotoFast G-Monster 533x Plus 32GB + SanDisk Extreme Pro, EXTREME FAST in 7D

    by

    in

    PhotoFast G-Monster 真是尤物,32GB RMB1150,读 95 MB/s,写 80 MB/s,非常完美。在 7D 机身上快速连拍释放完所有 RAM,仍然能提供鸟枪的实力,很给力。 下边的数据使用的是 SanDisk Extreme Pro ExpressCard 读卡器。貌似最近 Kingston Ultimate 600x CF 32GB 也有所降价,RMB1k出头,测试写入数据优于这张 PhotoFast 卡,写 90 MB/s,读 80 MB/s,值得入手。 那么多强卡出世,SanDisk Extreme Pro 的卡真应该掂量一下了。目前我有这张卡够了,呵呵。

  • dvd+rw-tools (growisofs) 交叉编译 cross compile

    交叉编译环境需要提前安装完毕。 Ubuntu 下 可以通过 apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueab 来完成安装。 从官网获得最新的 dvd+rw-tools。 # wget http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.1.tar.gz # tar -zxvf dvd+rw-tools-7.1.tar.gz # cd dvd+rw-tools-7.1 dvd+rw-tools 在某些平台(比如 Ubuntu、OpenSuSE)上需要打上 patch 才能正常编译。 # wget http://www.linuxfromscratch.org/patches/blfs/svn/dvd+rw-tools-7.1-headers-1.patch # patch < dvd+rw-tools-7.1-headers-1.patch 修改 Makefile.m4 中相关编译器配置。 # vim Makefile.m4 查找 Linux section 位置,修改为如下配置。 ifelse(OS,Linux,[ # # Linux section # CC =arm-linux-gnueabi-gcc CFLAGS +=$(WARN) -O2 -D_REENTRANT…

  • Linux 下流量查看监控软件 iftop 的安装

    最近几天发现网站的流量消耗的非常厉害,考虑到 VPS 是有流量限制的,然后就想查看下当前的流量状况和网络连接状态。 iftop 官方网站:http://www.ex-parrot.com/~pdw/iftop/ 安装 iftop,必须先安装 libpcap。libpcap 是 unix/linux 平台下的网络数据包捕获函数包,大多数网络监控软件都以它为基础。网站,http://www.tcpdump.org/release/。 wget http://www.tcpdump.org/release/libpcap-0.9.8.tar.gz tar -zxvf libpcap-0.9.8.tar.gz cd libpcap-0.9.8 ./configure make make install libpcap 安装完成,再安装 iftop, wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz tar zxvf iftop-0.17.tar.gz cd iftop-0.17 ./configure make make install

  • MySQL 命令行导出和导入 SQL 脚本

    最简单的方法, 导出 SQL 脚本, mysqldump -u 用户名 -p 密码 数据库名 > 存放位置 mysqldump -u root -p root test > /data/wordpress.sql 导入 SQL 脚本, mysql -u 用户名 -p 密码 数据库名 < 存放位置 mysql -u root -p root test < /data/wordpress.sql

  • VBScript 注册表遍历(枚举)启动项的方法

    VBScript 中对注册表的原生支持非常有限,仅仅在 WScript.Shell 下提供了读、写、删除这三个操作。不要想枚举遍历了。 Dim OperationRegistry Set OperationRegistry = WScript.CreateObject("WScript.Shell") '对注册表的读操作 OperationRegistry.RegRead() '对注册表的写操作 OperationRegistry.RegWrite() '对注册表的删操作 OperationRegistry.RegDelete() 我们来看一下通过 WMI 的变通方法。Win32_StartupCommand 中提供了本地自动启动项中所有项,有 HKEY_CURRENT_USER、HKEY_LOCAL_MACHINE 中都具有 Run 和 RunOnce 项,Startup 文件夹、All Users Startup 文件夹等等。 实现代码, strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colStartupCommands = objWMIService.ExecQuery("Select * from Win32_StartupCommand") For Each objStartupCommand in colStartupCommands Wscript.Echo…

  • 让你的 Google Toolbar 兼容 Firefox 5.0 / Make Google Toolbar support for your Firefox 5.0

    最近由于 Mozilla 追赶着 Chrome 的步伐,Firefox 也在两个月之内飞快的进化到了 5.0。再怎么快也追不上神速的 Google Chrome。虽然浏览体验速度有很大提高,但是带来的很大烦恼就是插件很多需要相应更新。头疼的是某些插件没有及时的追上版本的脚步,得不到支持了。郁闷啊。 其实 Firefox 4.0 与 5.0 的差异相对较小。只要简单更改插件中 install.rdf 所描述支持的最大版本就能让他们支持新生的 Firefox 5.0。 Google Toolbar 就是其中之一。离开了 Google,怎么活啊。那来变个魔法让你的 Google Toolbar 也兼容 Firefox 5.0 吧。 Win7:打开文件夹:C:\Users\[用户名]\AppData\Roaming\Mozilla\Firefox\Profiles\[随即字串].default。 WinXP:打开文件夹:C:\Documents and Settings\[用户名]\Application Data\Mozilla\Firefox\Profiles\[随即字串].default。 搜索目录下的 install.rdf 文件。这是你会找到很多 install.rdf。逐一打开查看其是不是 Google Toolbar for Firefox。 修改其中 MaxVersion 到 6.*(大于 5.0 即可)。保存,重启下你的 Firefox。发现原来的 Google Toolbar 回来了吧。o(* ̄▽ ̄*)o   解决方案来源:http://support.mozilla.com/en-US/questions/837142#answer-202409  …