1.卸载ibus输入法: sudo apt-get remove ibus
sudo为取得root权限的意思,Ubuntu系统默认root账户关闭,很多操作需要取得root 权限才可以进行
killall ibus-daemon
sudo apt-get purge ibus ibus-gtk ibus-gtk3 ibus-pinyin* ibus-sunpinyin i...
分类:
其他好文 时间:
2014-07-22 23:01:34
阅读次数:
312
继承是面向对象的重要特征,它可以提高代码的复用性,从而减少某些代码的重写。继承可以分为单继承和多重继承。python中指定基类的方法是定义派生类时在括号中写入基类的名字,如class derive(base).python可以使用两种单继承的方法...
分类:
编程语言 时间:
2014-05-03 23:50:53
阅读次数:
458
- (void)viewDidLoad{ [super viewDidLoad]; // Do any
additional setup after loading the view, typically from a nib. [NSThread
sleepForTimeInte...
分类:
移动开发 时间:
2014-05-02 00:25:42
阅读次数:
441
@interface DemoObj()@property (nonatomic, strong)
NSOperationQueue *queue;@end@implementation DemoObj- (instancetype)init{ self =
[super init]; ...
分类:
移动开发 时间:
2014-05-01 20:28:37
阅读次数:
917
上周用monit搭建或者说定制了一个监控系统,来监控服务器发生事情。当然了主要是监控异常,因为我们的产品属于服务器类型,很多进程都daemon,要不停的运行。我们搭建监控目的不过是出现问题能够及时的知道,平时可从web
UI上看到整个系统的状况,同时它本身要轻量级,不要影响性能。当然了类似的产品很多...
分类:
其他好文 时间:
2014-05-01 19:56:08
阅读次数:
539
Class1 typedef struct objc_class *Class; 1 struct
objc_class { 2 Class isa OBJC_ISA_AVAILABILITY; 3 4 #if !__OBJC2__ 5 Class
super_class ...
分类:
移动开发 时间:
2014-05-01 07:13:10
阅读次数:
502
进入游戏连连第一个场景,如下:
初始化该场景精灵所需的信息、背景/音效及图层UI
bool HelloWorld::init()
{
//////////////////////////////
// 1. super initfirst
if (!CCLayer::init() )
{
return
false;...
分类:
其他好文 时间:
2014-04-30 22:34:40
阅读次数:
226
this()用法:
一个构造函数可以使用this()来调用同一个类的另外一个构造函数。
一个构造函数最多只能调用一次this(),且this()只能作为构造函数的第一条语句。
super()用法:
一个构造函数使用super()来调用父类的构造函数。
如果没有为一个类编写构造函数,则编译器会自动构造一个不带参数的构造函数,且构造函数中只有一条语句super();。
如果为一个类...
分类:
编程语言 时间:
2014-04-30 22:25:39
阅读次数:
290
- (void)drawRect:(CGRect)rect
{
[super drawRect:rect];
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextSetRGBFillColor(ctx, .3, .3, .3, .1);
CGContextFillRect(ctx, self.boun...
分类:
其他好文 时间:
2014-04-29 13:33:22
阅读次数:
284