搭建Python Web开发平台的一点心得

Tags: Python  

之前一直在apache+php+mysql的平台作东西,可能是自己不专业的关系吧,一直没把php用起来,反反复复的用那几个框架,phpcms,discuz,drupal等等,最近因为课题的关系一直在用虚拟机还有python,索性就有了建一个python的开发平台。

Author:leon

lyan Published by 2015-01-03 17:41

Detail »

Command less for checking multiple files

Tags: Linux  

This semester I need to check a lot of txt file under linux, it's kind of bored to click on,

Then, one day, I noticed my instructor the way he did, Pretty neat, just a simple less command 

in Linux, it works in this way:

leon Published by 2014-12-11 17:54

Detail »

error: ImportError:libxenstore.so

Tags: XEN  

我已经安装了xen-4.2.2以及dom0的内核3.4.56,

运行xm出现错误ImportError:libxenstore.so.3.0:cannot open shared object file:No such file or directory

解决办法:

vim /etc/ld.so.conf

/usr/lib

/usr/lib64

ldconfig

leon Published by 2014-11-03 17:30

Detail »

从头到尾彻底解析Hash 表算法

Tags: Algorithm   DataStructure  

百度面试题:
搜索引擎会通过日志文件把用户每次检索使用的所有检索串都记录下来,每个查询串的长度为1-255字节。
假设目前有一千万个记录(这些查询串的重复度比较高,虽然总数是1千万,但如果除去重复后,不超过3百万个。一个查询串的重复度越高,说明查询它的用户越多,也就是越热门。),请你统计最热门的10个查询串,要求使用的内存不能超过1G。

Src:http://blog.csdn.net/v_JULY_v。

leon Published by 2014-10-03 16:23

Detail »

教你透彻了解红黑树

Tags: Algorithm   DataStructure  

先来看下算法导论对R-B Tree的介绍:
红黑树,一种二叉查找树,但在每个结点上增加一个存储位表示结点的颜色,可以是Red或Black。
通过对任何一条从根到叶子的路径上各个结点着色方式的限制,红黑树确保没有一条路径会比其他路径长出俩倍,因而是接近平衡的。

Src:http://blog.csdn.net/v_JULY_v/archive/2010/12/31/6109153.aspx

leon Published by 2014-10-03 16:18

Detail »