码迷,mamicode.com
首页 >  
搜索关键字:cat touch stat查看文件属性 更改时间戳    ( 28216个结果
startallserver
[lvhongmin@AY1401201736089361adZ start_svr]$ cat startall_svr.sh  #!/bin/bash errpath[0]='' errnum=0 runnum=0 curr_path=`pwd` #进程的名字 array[${#array[*]}]=/home/lvhongmin/bin/bin....
分类:其他好文   时间:2014-06-05 11:11:43    阅读次数:243
【剑指offer】翻转单词顺序
题目描述: JOBDU最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a student.”。Cat对一一的翻转这些单词顺序可不在行,你能帮助他么? 输入: 每个测试案例为一行,表示一句英文句子。 我们保证一个句子的单词数不会超过600,每个单词的长度也不会超过30。但是需要注...
分类:其他好文   时间:2014-06-05 10:52:19    阅读次数:202
install and config bind9(named) on linux server
This article shows my process of installing and configuring bind9 DNS server on a linux server. I didn't touch every aspects of bind9, but following the process, a DNS server is configured with A/AAAA...
分类:系统相关   时间:2014-06-05 08:36:26    阅读次数:450
精灵的移动效果,旋转效果
移动: -(void) touchBegan:(UITouch *)touch withEvent:(UIEvent *)event { CGPoint touchLoc = [touch locationInNode:self]; // Log touch location CCLOG(@"Moved sprite to @ %@",NSStringFromCGPo...
分类:移动开发   时间:2014-06-05 08:30:44    阅读次数:352
killallserver
[lvhongmin@AY1401201736089361adZ start_svr]$ cat killall_svr.sh  #!/bin/bash unrun[0]='' unnum=0 runnum=0 #进程的名字 array[${#array[*]}]=paiyouQuan.svr array[${#array[*]}]=jjm.cornucopia.svr...
分类:其他好文   时间:2014-06-05 08:04:29    阅读次数:277
Cocos2d-x 让精灵随手指移动起来二(简单实现)
void HelloWorld::ccTouchMoved(cocos2d::CCTouch *touch, cocos2d::CCEvent *event) { CCSize winSize = CCDirector::sharedDirector()->getVisibleSize(); if (m_ship) { CCPoint pos = touch->getDelta...
分类:移动开发   时间:2014-06-05 05:25:10    阅读次数:222
6410 selected device is not a touchscreen I understand
之前移植了6410后,就没有测试过,今天编写程序烧进去后运行才发现触摸屏不起作用。 于是试了下系统里tslib的bin文件夹下的命令: ./ts_caliberate   结果总是报错:selected device is not a touchscreen I understand 先去飞凌的官方论坛逛了一圈,好多人有这个问题,但没一个解决办法有效。 先用cat命令试了下几个event...
分类:其他好文   时间:2014-06-05 01:04:27    阅读次数:321
IOS 与ANDROID框架及应用开发模式对比一
IOS 和ANDROID操作系统都是目前流行的移动操作系统,被移动终端和智能设备大量采用,两者都采用了先进的软件技术进行设计,为了方便应用开发两者都采用了先进的设计模式。两者在框架设计上都采用了什么技术?都采用了什么设计模式?两者设计思路和应用开发模式有什么异同呢? 两者都采用了框架模式。 IOS 的框架称为Cocoa Touch。           框架提供两个作用,一是类的集合,每...
分类:移动开发   时间:2014-06-03 06:24:20    阅读次数:286
释放Ubuntu/Linux系统cache,增加可用内存空间
某台式机Ubuntu内存共4G,但free的内存只有100M 注意用top命令查看才能看到真正的free内存。下面是查看真正内存使用量的另一种命令。 watch -n 1 cat /proc/meminfo 搜索发现有三种方法都可以达到释放内存的目的。 watch -n 1 free -m or: free -m 上述这种方法只增加了几十M。 sudo sysctl -w vm.d...
分类:系统相关   时间:2014-06-03 04:01:26    阅读次数:391
linux下ssh面密码登录设置
ssh 免密码登录 1. ssh-keygen -t rsa    三次回车 2. cat ~/.ssh/id_rsa.pub >>  ~/.ssh/authorized_keys 3. 验证 ssh localhost 如果不需要密码登录,表示设置成功 4. 面密码登录其他机器    ssh-copy-id -i hostname    注意:hostname必须在...
分类:系统相关   时间:2014-06-03 02:45:49    阅读次数:353
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!