摘要: 今天碰上要给一台装有Linux的机器做维护,于是就以为按照以往经验就能解决问题,但是神奇的发现机器上一堆的软件包都没有安装,最要命的是连软件包管理器也都没有安装,本以为是FreeBSD,查了一下才发现是RedHat Linux Server 5.4,于是开始着手安装YUM,在Google搜索了一下,发现貌似类似的情况不多,但是这确实不是我第一次遇到RedHat没有yum了,因为上次遇到的时候是别人让帮忙看看,解决不了也就没留心,但这次维护是必要的,于是尝试了许久,这大概是我最不舒服的一次经历了,而且RedHat很多资源都不多,于是基本rpm包都是借助了CentOS 5,于是对RedHat充满了 阅读全文
posted @ 2013-03-21 19:50 hoho,SalesForce 阅读(314) 评论(0) 推荐(0) 编辑
摘要: http://download.filesystems.org/linux/centos/ 阅读全文
posted @ 2013-03-21 15:48 hoho,SalesForce 阅读(110) 评论(0) 推荐(0) 编辑
摘要: <?php//冒泡排序函数//本函数使用引用是为了避免不必要的内存消耗function &bubble(&$arr){ $count=count($arr); if($count>1){ for($i=0;$i<$count;$i++){ for($j=$count-1;$j>=$i;$j--){ if($arr[$j-1]>$arr[$j]){ $temp=$arr[$j-1]; $arr[$j-1]=$arr[$j]; ... 阅读全文
posted @ 2013-03-14 23:21 hoho,SalesForce 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 071129 17:08:42 InnoDB: Starting shutdown…071129 17:08:46 InnoDB: Shutdown completed; log sequence number 0 2566023071129 17:08:46 [Note] /usr/libexec/mysqld: Shutdown complete据说这是mysql的bug,找到的解决办法是重新初始化mysql#mysql_install_db#service mysqld start 阅读全文
posted @ 2013-03-01 10:13 hoho,SalesForce 阅读(2474) 评论(0) 推荐(0) 编辑
摘要: 100602 14:23:17 mysqld started100602 14:23:17 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use 'CHANGE MASTER' instead.100602 14:23:17 InnoDB: Error: cannot allocate 10737434624 bytes ofInnoDB: memory with malloc! Total allocated 阅读全文
posted @ 2013-03-01 10:04 hoho,SalesForce 阅读(496) 评论(0) 推荐(0) 编辑
摘要: public static Schema.SObjectType getSobjectTypeByPrefix( String SObjectPrefix ){ for( Schema.SObjectType ot : Schema.getGlobalDescribe().values() ){ String keyPrefix = (String)ot.getDescribe().getKeyPrefix(); if( keyPrefix != null && keyPrefix.equals( SObjectPrefix ) ){ r... 阅读全文
posted @ 2012-10-16 15:18 hoho,SalesForce 阅读(439) 评论(0) 推荐(0) 编辑
摘要: Object.prototype.toJSONString = function () { var a = ['{'], // The array holding the text fragments. b, // A boolean indicating that a comma is required. k, // The current key. v; // The current value. function p(s) { ... 阅读全文
posted @ 2012-08-28 15:24 hoho,SalesForce 阅读(852) 评论(0) 推荐(0) 编辑
摘要: http://www.jsfoot.com/jquery/demo/2011-09-18/demo.htmljquery 图片切换特效 鼠标点击左右按钮焦点图切换滚动 阅读全文
posted @ 2012-08-17 16:02 hoho,SalesForce 阅读(769) 评论(0) 推荐(0) 编辑
摘要: for (var i = 0; i < headerFields.length; i++) { fieldToIndex[headerFields[i]] = i; } 阅读全文
posted @ 2012-08-03 15:01 hoho,SalesForce 阅读(271) 评论(0) 推荐(0) 编辑
摘要: function CSVToArray( strData, strDelimiter,rowstoread ){ // Check to see if the delimiter is defined. If not, // then default to comma. strDelimiter = (strDelimiter || ","); // Create a regular expression to parse the CSV values. var objPattern = new RegExp( ... 阅读全文
posted @ 2012-08-01 10:40 hoho,SalesForce 阅读(623) 评论(0) 推荐(0) 编辑