echo
192.168.10.69>>ip.list-------------------------------------------#!/bin/bash#注意if和[]之间的空格rm
-f ~/fanr/shell/DiskUsageAlert/out.printout=$(cat ~/f...
分类:
系统相关 时间:
2014-05-28 14:54:26
阅读次数:
391
主要是虚拟机中安装CentOS每次总会做一些设置,记录下来方便以后。纯粹基本设置,比如本地SecureCRT可以连接虚拟机中的CentOS。复杂的非基本设置见:Linux
命令集锦设置网络自动连接#cat /etc/sysconfig/network-scripts/ifcfg-eth0 ONBOO...
分类:
其他好文 时间:
2014-05-28 11:51:22
阅读次数:
337
前面省略连接部分…… cat narnia2.c #include #include
#include int main(int argc, char * argv[]){ char buf[128]; if(argc == 1){
printf("Usage: %s argument\n", ar...
分类:
其他好文 时间:
2014-05-28 11:49:49
阅读次数:
560
1,对象内部的作用var a = 10;var AAA = function
(){ console.log(this.a);} var b = {a:2,bbb:AAA};b.bbb();
最后输出的是2,this指向的自己的对象。2,对象共享的问题var cat ={};cat.mous...
分类:
Web程序 时间:
2014-05-28 02:27:18
阅读次数:
296
1 #!/bin/bash 2 #查询 3 echo -e 4 for i in `cat
id.txt` 5 do 6 A=`mysql -h10 -uw -p2012 -Ne "select Id,Name,User_Logindate from
info where Id=$i"`...
分类:
数据库 时间:
2014-05-27 18:08:04
阅读次数:
341
#!/bin/bash# Program to output a go source file
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat <<
EOF/* Author:$USER CreatedAt:$CURRENT_TIME...
分类:
其他好文 时间:
2014-05-27 17:49:29
阅读次数:
283
之前的文章层从Framework层介绍了Android Touch事件即(MotionEvent)的传递机制。本文将详细介绍MotionEvent的一些成员和方法。了解了MotionEvent对开发一些特效如拖动控件或多点缩放控件有很大的作用。同时,掌握MotionEvent类也是学好android触控技术的基础。
一、一些常量
常见的动作常量:
public static fina...
分类:
移动开发 时间:
2014-05-26 04:54:34
阅读次数:
263
customScrollView.h#import @interface
customScrollView : UIScrollView@endcustomScrollView.m//传递touch事件-
(void)touchesBegan:(NSSet*)touches withEvent:(U...
分类:
其他好文 时间:
2014-05-25 22:02:28
阅读次数:
318
作者:Vamei 出处:http://www.cnblogs.com/vamei
欢迎转载,也请保留这段声明。谢谢!在了解了Linux文件管理背景知识之后,
我们可以学习一些命令来管理我们的文件。文件操作相关有一些命令可以帮助我们"修剪"之前看到的文件树。$touch a.txt如果a.txt不存在...
分类:
系统相关 时间:
2014-05-25 02:12:25
阅读次数:
315
SourceInsight真的是查看源代码的神器。只要知道了文件名,就可以快速定位到文件。最近在研究Android的touch系统,发现MotionEvent的getX()方法调用的是nativeGexAxis(),于是想看看该本地代码是如何实现的,但我不知道nativeGexAxis的实现代码在什么位置。Android中的类调用本地代码是通过类名相似或Android.mk文件定义。MotionE...
分类:
移动开发 时间:
2014-05-24 23:24:19
阅读次数:
301