#-*-coding:cp936-*-#!/usr/bin/envpython#-*-coding:utf-8-*-fromPyQt4importQtCore,QtGuiclassWindow(QtGui.QMainWindow):def__init__(self):super(Window,sel...
分类:
其他好文 时间:
2014-10-04 18:35:57
阅读次数:
184
#!/usr/bin/python#-*-coding:utf-8-*-#sender.pyimportsysfromPyQt4importQtGui,QtCoreclassExample(QtGui.QMainWindow):def__init__(self):super(Example,self...
分类:
其他好文 时间:
2014-10-04 17:15:36
阅读次数:
794
linux下的同步和互斥
Linux sync_mutex
Semaphore.h
一份好文档,胜读十年书
本文参考了诸多资料,百度百科,cplusplus等
首先介绍一个头文件
#include
这里面包含了大多数的所需要使用的信号量.
包含:
int sem_init(sem_t *sem, int pshared, unsigned int value)...
分类:
系统相关 时间:
2014-10-03 23:39:55
阅读次数:
378
大致如下步骤:
1、注册Git账号
2、创建SSH keys
3、新建repository
4、设置网站
5、clone库到本地
6、提交、上传
7、预览...
分类:
Web程序 时间:
2014-10-03 23:06:05
阅读次数:
274
#!/bin/sh## mysqld This shell script takes care of starting and stopping# the MySQL subsystem (mysqld).## chkconfig: - 64 36# description: MySQL data....
分类:
数据库 时间:
2014-10-03 16:06:44
阅读次数:
407
Write a definition for a class named Kangaroo with the following methods:An __init__ method that initializes an attribute named pouch_contents to an e...
分类:
其他好文 时间:
2014-10-03 14:57:04
阅读次数:
232
之前是在用SVN,现在因为小伙伴比较喜欢Git,所以也开始学习Git,很感谢时光穿梭机 - 廖雪峰的无私奉献。本文用来记录我在学习Git过程中的收获和笔记,廖雪峰大神的Git教程参考这里。
分类:
其他好文 时间:
2014-10-03 12:59:44
阅读次数:
154
atitit.提升开发效率---使用服务器控件生命周期 asp.net 11个阶段 java jsf 的6个阶段比较
如下列举了服务器控件生命周期所要经历的11个阶段。
(1)初始化-- --在此阶段中,主要完成两项工作:一、初始化在传入Web请求生命周期内所需的设置;二、跟踪视图状态。首先,页面框架通过默认方式引发Init事件, 并调用OnInit()方法,控件开发...
分类:
编程语言 时间:
2014-10-03 11:36:14
阅读次数:
235
__str__ is a special method name, like __init__, that is supposed to return a string representation of an object.For example, here is a str method for...
分类:
其他好文 时间:
2014-10-02 23:16:43
阅读次数:
173
4-3 摄像头的初始化流程及v4l2子设备驱动这个问题弄清楚了以后下面就来看获得Camera信息以后如何做后续的处理:在fimc_init_global调用结束之后我们获得了OV9650的信息,之后在probe函数里面就会继续调用一个函数:fimc_configure_subdev().这个函数的实...
分类:
系统相关 时间:
2014-10-02 18:24:13
阅读次数:
253