摘要: 因为工作当中遇到要处理大数据的excel的玩意,最多的有几十万行。用perl的方式试试,看看效果如何。ppm install OLE::Storage_Lite #如果不安装这个,后面两个安装不了 ppm install Spreadsheet::ParseExcelppm install Spre... 阅读全文
posted @ 2014-06-24 22:20 Yolandafans 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 用户的添加 useradd demo (默认是普通用户 uid从500开始)[root@localhost usr]# tail -n 1 /etc/passwddemo01:x:501:501::/home/demo01:/bin/bash #以:分割 ... 阅读全文
posted @ 2014-06-22 12:13 Yolandafans 阅读(201) 评论(0) 推荐(0) 编辑
摘要: RPM软件包 RPM软件包一般的安装位置(分散): 管理程序:/sbin/* /usr/sbin/* 普通用户程序:/bin/* /usr/bin/* rpm -q ===> rpm -query rpm -qa 列出所有已安装的rpm软件包 rpm -q 软件包 查找某个软... 阅读全文
posted @ 2014-06-22 09:41 Yolandafans 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 文件,目录 pwd:查看当前目录 Print Working Directory cd,ls(ll),mkdir -p Change Directory List Make Directory du -sh 评估目录或者文件大小 touch 创建新文件 ln -s source dest ... 阅读全文
posted @ 2014-06-07 21:36 Yolandafans 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 查看linux版本信息:http://distrowatch.com/linux根目录下系统文件夹的含义/boot 该目录下默认存放的是linux的启动文件和内核,一般200Mswap交换分区,一般设置成内存的两倍。别超过3,4G/initrd它的英文含义是boot loader initializ... 阅读全文
posted @ 2014-05-30 22:26 Yolandafans 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://juicer.name/docs/docs_zh_cn.html 阅读全文
posted @ 2014-05-21 17:27 Yolandafans 阅读(155) 评论(0) 推荐(0) 编辑
摘要: dz采用的是多入口的方式,在每个入口函数你能看到引用,启动核心类的语句(其余省略),如下:require './source/class/class_core.php';C::app()->init();我们进入class_core.php看看,这是dz项目的启动类a)首先做的自定义异常处理,自定义错误处理,自定义自动装载函数。set_exception_handler(array('core', 'handleException')); //自定义异常处理//如果开启debug,则自定义错误处理if(DISCUZ_CORE_DEBUG) 阅读全文
posted @ 2014-02-08 15:16 Yolandafans 阅读(696) 评论(0) 推荐(0) 编辑
摘要: public function getTable( $uid ) { return "user_" . sprintf( "%04d", ($uid >> 20) );}/** * 根据UID分表算法 * * @param int $uid //用户ID * @param int $bit //表后缀保留几位 * @param int $seed //向右移动位数 */function getTable( $uid , $bit , $seed ){ return "user_" . sprintf( "%0{$ 阅读全文
posted @ 2013-09-23 15:22 Yolandafans 阅读(367) 评论(0) 推荐(1) 编辑
摘要: 安装过程:http://www.cnblogs.com/littlehb/archive/2013/04/24/3040476.html配置文件参考:http://redis.io/topics/configphp redis functions:http://www.cnblogs.com/kudosharry/articles/2541939.html 阅读全文
posted @ 2013-09-09 10:28 Yolandafans 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1.https://github.com/在这个网站注册一个帐号。http://gitref.org/zh/creating/待会写..【命令】a) 阅读全文
posted @ 2013-08-07 18:48 Yolandafans 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 推荐下这篇文章http://blog.codinglabs.org/articles/theory-of-mysql-index.html写的十分的不错。留着以后慢慢看,慢慢的理解。 阅读全文
posted @ 2013-08-01 18:50 Yolandafans 阅读(144) 评论(0) 推荐(0) 编辑
摘要: delimiter //drop PROCEDURE proc_member_preprocessor;//CREATE PROCEDURE proc_member_preprocessor (IN param_uid int(10))main:BEGIN SELECT COUNT(uid) INTO @proc_has_user FROM pre_common_member WHERE uid=param_uid; IF @proc_has_user 10 end repeat;END; ///* loop的使用 */delimiter //DROP PROCEDURE... 阅读全文
posted @ 2013-08-01 16:12 Yolandafans 阅读(277) 评论(0) 推荐(0) 编辑
摘要: var Jade = {};Jade.util = { addEvent: function (target, eventType, eventHandle, param) { //deal param var regEventHandle = eventHandle if(param) { regEventHandle = function() { eventHandle.call(this, param); } } if (! +"\v1")... 阅读全文
posted @ 2013-07-06 15:28 Yolandafans 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 出处:http://www.cnblogs.com/sanshi/archive/2009/02/18/1393165.html(感谢三生石上)这是一个基础性的文章,使用Javascript观察DOM中的事件冒泡机制,并介绍如何阻止默认行为和如何组织事件冒泡的方法。1. 第一个例子可以在Firefox下运行<divid="container1"onclick="alert('clickcontainer1');"><divid="container2"onclick="alert(' 阅读全文
posted @ 2013-06-19 09:30 Yolandafans 阅读(175) 评论(0) 推荐(0) 编辑
摘要: function is_mobile_request() { $_SERVER['ALL_HTTP'] = isset($_SERVER['ALL_HTTP']) ? $_SERVER['ALL_HTTP'] : ''; $mobile_browser = '0'; if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|iphone|ipad|ipod|android|xoom)/i', strtolowe 阅读全文
posted @ 2013-05-14 15:03 Yolandafans 阅读(320) 评论(0) 推荐(0) 编辑
摘要: define(EARTH_RADIUS, 6371);//地球半径,平均半径为6371km /** *计算某个经纬度的周围某段距离的正方形的四个点 * *@param lng float 经度 *@param lat float 纬度 *@param distance float 该点所在圆的半径,该圆与此正方形内切,默认值为0.5千米 *@return array 正方形的四个点的经纬度坐标 */ $lng = 117.30876; $lat = 31.8636; function returnSquarePoint($lng, $lat,$distance = 0.5){ $dlng... 阅读全文
posted @ 2013-02-21 14:41 Yolandafans 阅读(565) 评论(1) 推荐(0) 编辑
摘要: 在此我就不重复那么多安装的步骤了。园子里有很多环境搭建的文章可以学习。http://www.cnblogs.com/smartbooks/archive/2012/05/27/2520595.html这里提供个链接。我安装过程中遇到过一些问题:一般情况下打开SDK Manager.exe把需要下载的东西下全了。有时候会出现PANIC: Could not open: C:\Documents and Settings\Administrator\.android/avd/ 这种提示需要设置ANDROID_SDK_HOME=D:/android-sdk-windows/tools; (你自己的位 阅读全文
posted @ 2012-07-26 11:07 Yolandafans 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 【安装】windows下安装可以参考这篇文章http://www.cnblogs.com/tianzhiliang/archive/2012/05/21/2511825.html 阅读全文
posted @ 2012-07-18 19:45 Yolandafans 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 今天开始阅读discuz2.5的源码,这是发现的一些收获,记录一下。有兴趣的同学可以去试试CREATE TABLE pre_forum_post (pid int(10) unsigned NOT NULL COMMENT '帖子id',fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',`first` tinyint(1 阅读全文
posted @ 2012-07-15 20:17 Yolandafans 阅读(537) 评论(0) 推荐(0) 编辑
摘要: MyISAM结构下面的data有3种文件(.frm,MYD,MYI)分别代表表结构,数据和索引文件。【连接】cd /usr/local/webdev/mysql/bin/mysql -uroot -proot也可以像windows下那样设置环境变量然后不用输入完整的mysql路径了,方法如下:vi /etc/profileOK,重启机器生效。(这是对所有用户都生效的)【操作】a)创建视图mysql> create view v_t1 as select * from t1 where id=3;Query OK, 0 rows affected (0.00 sec)mysql> s 阅读全文
posted @ 2012-07-06 14:51 Yolandafans 阅读(214) 评论(0) 推荐(0) 编辑