eagle.paradise
lingshangwen · 共 23 篇文章
I Surrender
歌手:Celine Dion(席琳.迪翁) 歌曲:I Surrender there's so much life i've left to live and this fire's burning still when i watch you look at me i think i could find a way to stand for every dream and forsake this solid ground and give up this fear within of what would happen if they end, you i'm in love with…
2009-11-26 21:44 · 不知道怎么分类的 · 评论(0)
ubuntu下安装Memcache
下载memcached : http://danga.com/memcached/dist/memcached-1.4.3.tar.gz 下载libevent: http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz 安装libevent: # tar zxvf libevent-1.4.13-stable.tar.gz #cd libevent-1.4.13-stable # ./configure –prefix=/usr #make #sudo make install 安装memcached,安装时指定libevent的…
2009-11-26 21:24 · 编程 · 评论(0)
python:Queue模块
queue — A synchronized queue class Note The Queue module has been renamed to queue in Python 3.0. The 2to3 tool will automatically adapt imports when converting your sources to 3.0. The Queue module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming wh…
2009-10-05 23:03 · 编程 · 评论(0)
Linux免费书籍
本文转载自http://coolshell.cn/?p=355 1. Ubuntu Pocket Guide and Reference 一本介绍关于Ubuntu 8.04和8.10的使用书。 Website www.ubuntupocketguide.com Author Keir Thomas Format PDF Pages 152 2. Two Bits 一本关于自由软件的历史和文化的书。不当当是软件,同样也有音乐,电影,科学和教育。 Website twobits.net Author Christopher M. Kelty Format PDF Pages 400 3. The…
2009-09-30 05:46 · 操作系统 · 评论(0)
MBTI 职业性格测试结果
才储© 分析:您的性格类型倾向是“ ISTP ”(内向+实感+思维+知觉) 容忍,有弹性;是冷静的观察者,但当有问题出现,便迅速行动,找出可行的解决方法。能够分析哪些东西可以使事情进行顺利,又能够从大量资料中,找出实际问题的重心。很重视事件的前因后果,能够以理性的原则把事实组织起来,重视效率。 ISTP型的人坦率、诚实、讲求实效,他们喜欢行动而非漫谈。他们很谦逊,对于完成工作的方法有很好的理解力。 ISTP型的人擅长分析,所以他们对客观含蓄的原则很有兴趣。他们对于技巧性的事物有天生的理解力,通常精于使用工具和进行手工劳动。他们往往做出有条理而保密的决定。他们仅仅是按照自己所看到的、有条理而直…
2009-09-16 19:35 · 不知道怎么分类的 · 评论(0)
Python调用C语言函数
使用Python的ctypes,我们可以直接调用由C直接编译出来的函数。其实就是调用动态链接库中的函数。为什么我们需要这样做呢,因为有些时候,我们可能需要一个性能上比较讲究的算法,有些时候,我们可以在Python中使用已经有了的现成的被封闭在动态链接库中的函数。下面是如何调用的示例。 首先,我们用一个乘法来表示一个算法功能。下面是C的程序: int multiply(int num1, int num2) { return num1 * num2; } 如果在Windows下,你可能需要写成下面这个样子: #include <windows.h> BOOL APIENTRY DllMain(…
2009-08-03 11:39 · 编程 · 评论(0)
9大绝招吃掉了亚健康
本文转自 http://topic.csdn.net/u/20080722/16/b0eac7dc-0f86-4d58-ac14-b40630d6fd24.html 亚健康一词随着媒体的一炒再炒,反而越来越不被人们所重视,但无形的杀手却时刻都在觊觎我们的一举一动。其实灭掉亚健康没那么麻烦,多注意日常生活的细节就可以,这里教你9种食物轻松“吃掉”亚健康。 1.失眠烦躁健忘时: 多吃富含钙、磷的食物。含钙多的如大豆、牛奶、鲜橙、牡蛎;含磷多的如菠菜、栗子、葡萄、鸡、土豆、蛋类。 2.神经敏感时: 神经敏感的人适宜吃蒸鱼,但要加点绿叶蔬菜,因爲蔬菜有安定神经的作用。吃前先躺下休息,松弛紧张的情绪,…
2009-07-30 22:39 · 不知道怎么分类的 · 评论(0)
python:在python中使用opencv进行摄像头编程初体验
闲着没事做,前段时间买了个摄像头,在ubuntu上用。打开cheese这个软件,一片空白,怎么不能用阿! google一番,装上gspca,还是不能用! 用lsusb命令查看下 lingshangwen@eagle:~$ lsusb Bus 005 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 002: ID 0c45:5208 Microdia Bus 002 Device 001: ID 0000:0000 Bus 001 …
2009-07-19 11:22 · 编程 · 评论(3)
使用freemarker
public class Student { private Name name; private String no; private String sex; private Integer age; private Date entranceDate; private boolean local; public boolean isLocal() { return local; } public void setLocal(boolean local) { this.local = local; } public Integer getAge() { return age; } publ…
2009-06-21 00:08 · 编程 · 评论(0)
wxPython:初识wx.Frame
parent :框架的父窗口。对于顶级窗口,这个值是None。框架随其父窗口的销毁而销毁。取决于平台,框架可被限制只出现在父窗口的顶部。在多文档界面的情况下,子窗口被限制为只能在父窗口中移动和缩放。 id :关于新窗口的wxPython ID号。你可以明确地传递一个。或传递-1,这将导致wxPython自动生成一个新的ID。 title :窗口的标题。 pos :一个wx.Point对象,它指定这个新窗口的左上角在屏幕中的位置。在图形用户界面程序中,通常(0,0)是显示器的左上角。这个默认的(-1,-1)将让系统决定窗口的位置。 size :一个wx.Size对象,它指定这个窗口的初始尺寸。…
2009-06-10 23:11 · 编程 · 评论(0)
oracle:进行分组并取每组中的前n条记录
题目: 在oracle中有一数据表exam_result(成绩记录表), 表中的一条记录描述了“某个班某个学生某次考试的成绩" create table EXAM_RESULT ( ID NUMBER(10) not null, --主键 CLASSID NUMBER(10) not null, -- 班级id,关联到班级表 USERID NUMBER(10) not null, --用户id,关联到用户表 EXAMID NUMBER(10) not null, --试卷id,关联到试卷表 RESULT NUMBER(3) --成绩 ) 现在要求统计完成了试卷id为1,2,3的成绩的前3名 …
2009-05-19 22:56 · 编程 · 评论(0)
python:pymedia安装
"Pymedia is a Python library for accessing and manipulating media files. It makes audio and video playback/creation a snap for even a newcomer to programming." There is a deb installer available for pymedia 1.3.5 but not for 1.3.7 So I decided to write this howto. First install all the dependencies…
2009-05-16 00:00 · 编程 · 评论(0)
Ubuntu:ubuntu8.04上安装的那些软件
Epiphany Web 浏览器 Linux Fetion MultiGet Wireshark(ethereal) esvn geany screem spe mysql mysql-workbench pgadmin3 postgresql kdevelop qdevelop AdobeReader chmsee shutter exaile mplayer pygame jdk eclipse openoffice3 linuxqq BootUp-Manager
2009-05-15 23:56 · 操作系统 · 评论(0)
maven2:从现有工程中创建archetype
最近用spring2.5.6+hibernate3.2+struts2.0.14做项目,用这些框架做项目最鬼麻烦的就是搭建工程的基本原型,为了在以后不用在这么麻烦,于是就有了创建一个自己的ssh的archetype的念头,说干就干,开始动手。 1.创建一个maven项目(在eclipse 中通过m2eclipse创建或者用mvn archetype:genetate命令创建)。 2.添加spring,hibernate,struts2的依赖包,我的pom.xml如下: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="…
2009-05-14 21:40 · 编程 · 评论(0)