使用maven有一段时间了,不管你同意与否,我都坚决认定maven是很伟大的软件项目,使用它,可以节约很多时间,特别是和git搭配使用的时候,简直就是绝了,就像川菜的花椒和海椒的搭配一样,无与伦比,用过之后肯定...
分类:
其他好文 时间:
2014-09-14 00:14:16
阅读次数:
264
在系统的相册中,观看相片就可以用多个手指进行缩放.要实现这个功能,只需要这几步:1.新建项目,在项目中新建一个ZoomImage.java publicclassZoomImageViewextendsView{ //初始化状态常量
publicstaticfinalintSTATUS_INIT=1...
分类:
移动开发 时间:
2014-09-13 21:24:15
阅读次数:
220
1.github简介
GitHub 是一个共享虚拟主机服务,用于存放使用Git版本控制的软件代码和内容项目。它由GitHub公司(曾称Logical
Awesome)的开发者Chris Wanstrath、PJ Hyett和Tom Preston-Werner使用Ruby on Rails编写而成。
GitHub同时提供付费账户和为...
分类:
其他好文 时间:
2014-09-13 18:50:15
阅读次数:
254
MPMoviePlayerViewController *moviePlayerViewController = [[MPMoviePlayerViewController alloc] init]; moviePlayerViewController.view.frame = CGRe...
分类:
移动开发 时间:
2014-09-13 18:37:55
阅读次数:
266
init 0;init是所有进程的祖先﹐它的进程号始终为1﹐所以发送TERM信号给init会终止所有的用户进程﹑守护进程等。shutdown 就是使用这种机制。init定义了8个运行级别(runlevel), init 0为关机﹐init 1为重启。shutdown -h now shutdown命...
分类:
系统相关 时间:
2014-09-13 15:54:25
阅读次数:
251
三点以下的情况就不写了
Python:
import math
class Point( object ):
def __init__( self, x, y ):
self.x = x
self.y = y
def __cmp__( self, other ):
if self.y < other.y:...
分类:
其他好文 时间:
2014-09-13 00:50:24
阅读次数:
409
installing the Devel\gettext package should solve your problem. git-submodule requires that. Unfortunately this is not marked as dependency.附apt-cyg工具...
目录
1 wiringPi简介...
3
1.1 DevLib简介...
3
1.2 PiFace简介...
4
1.3Gertboard简介...
4
1.4wiringPi扩展...
4
1.5wiringPi的安装...
5
1.5.1 使用git工具...
5
1.5.2 离线安装...
6
1.5.3 测试wiringPi是否安装成功...
7
2 ...
分类:
其他好文 时间:
2014-09-12 23:34:14
阅读次数:
627
又遇到一个有意思的问题,它提醒了查阅文档和相关源码,与测试的重要性。
直接上代码,setup.py
"""
module: setup
"""
from lib import *
from config import *
form, base = loadUiType("setup.ui")
class SetupDlg(QDialog, form):
def __init__(s...
分类:
其他好文 时间:
2014-09-12 20:48:04
阅读次数:
289