碰到需要调用操作系统shell命令的时候,Ruby为我们提供了六种完成任务的方法:1.Exec方法:Kernel#exec方法通过调用指定的命令取代当前进程: 例子: $ irb >> exec 'echo "hello $HOSTNAME"' hello nate.local $值得注意的是,ex...
分类:
其他好文 时间:
2014-06-18 16:00:48
阅读次数:
214
http://apps.hi.baidu.com/share/detail/37384818download ADT linkhttp://dl.google.com/android/ADT-0.9.6.zipdownload SDK linkhttp://dl.google.com/android...
分类:
系统相关 时间:
2014-06-18 15:05:42
阅读次数:
283
Top 10 jQuery Mobile Code Snippets that you need to knowjQuery Mobileis a framework for mobile web apps and mobile websites with an aim to provide a u...
分类:
Web程序 时间:
2014-06-18 13:14:47
阅读次数:
259
linux下安装最新版subversion,代码:
[root@localhost subversion-1.8.9]#
./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/us...
分类:
系统相关 时间:
2014-06-18 12:19:21
阅读次数:
275
测试oracle 11g cluster 中OLR的重要性
called an Oracle Local Registry (OLR): each node in a cluster has a local registry for node-specific resources
测试一:模拟olr异常丢失的情况:
这里首先将olr renam
[root@vm...
分类:
数据库 时间:
2014-06-17 22:14:36
阅读次数:
359
在函数定义中,使用my关键字来确保用户定义函数中所使用的变量名不与任何其它同名的全局变量冲突,它使其后面的变量成为通常语言所谓的local变量。缺省情况下,perl函数中的变量是全局变量。 local变量先save再store.
如下例:
$x = 9;
sub mm{
print "$x\n";
}
sub gg_my{
my $x = 11;
print "call...
分类:
其他好文 时间:
2014-06-17 19:34:30
阅读次数:
265
wgethttp://pecl.php.net/get/zip-1.10.2.tgztarzxvfzip-1.10.2.tgzcdzip-1.10.2./configure--with-php-config=/usr/local/php/bin/php-config运行了这个zip目录下会自动生成几个文件,其中包括configure./configure--with-php-config=/usr/local/php/bin/php-configmakemakein..
分类:
Web程序 时间:
2014-06-17 18:20:35
阅读次数:
279
打开注册表regedit在“注册表编辑器”中,找到:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileList在左窗格中,找到以“S-1-5”开头,后跟一长串数字的文件夹名称。然后单击每个文件夹,在右窗格中找到“ProfileImagePath”,查看哪个跟无法重建配..
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\OracleOraDb11g_home1TNSListener]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\OracleMTSRecoverySe...
分类:
数据库 时间:
2014-06-17 16:45:46
阅读次数:
567