2012年1月28日
摘要:
1.关系操作符 > < <= >= == ~= == 相等性测试,相等的必要条件:同类型, 特别nil与自身相等 ~= 不相等性测试 只能对数字或者字符串做大小性比较2.逻辑操作符 and 第一个操作数为真,则返回第二个,否则返回第一个 or 第一个操作数为真,则返回第一个,否则返回第二个 not 操作数为假,则返回true,否则返回false 所有逻辑操作符将false和nil视为假,其他全为真3.字符串连接【字符串是不可变的,连接后生成新字符串】 "hello".."world" --> "helloworld
阅读全文
posted @ 2012-01-28 17:02
leaving
阅读(233)
推荐(0)
摘要:
Ctrl+E,可以显示最近编辑的文件列表 Shift+Click可以关闭文件 Ctrl+[或]可以跳到大括号的开头结尾 Ctrl+Shift+Backspace可以跳转到上次编辑的地方 Ctrl+F12,可以显示当前文件的结构 Ctrl+F7可以查询当前元素在当前文件中的引用,然后按F3可以选择 Ctrl+N,可以快速打开类 Ctrl+Shift+N,可以快速打开文件 Alt+Q可以看到当前方法的声明 Ctrl+W可以选择单词继而语句继而行继而函数 Alt+F1可以将正在编辑的元素在各个面板中定位 Ctrl+P,可以显示参数信息 Ctrl+Shift+Insert可以选择剪贴板内容并插入 Al
阅读全文
posted @ 2012-01-28 16:20
leaving
阅读(232)
推荐(0)
2012年1月24日
摘要:
原子读写:pread/pwrite文件描述符拷贝: dup => fcntl(fd, F_DUPFD, 0) dup2 => close(fd2); fcntl(fd, F_DUPFD, fd2);sync/fsync/fdatasync
阅读全文
posted @ 2012-01-24 22:27
leaving
阅读(172)
推荐(0)
2012年1月23日
摘要:
VS20101. 安装opencv2. 配置include C/C++ %OPENCV_DIR%\include;3. 配置lib路径 Linker %OPENCV_DIR%\lib; Linker-Input opencv_core220.lib;opencv_imgproc220.lib;opencv_highgui220.lib;opencv_features2d220.lib;opencv_calib3d220.lib;注意事项:1. C/C++ -- Code Generation -- Runtime Library --Multi-threaded (/...
阅读全文
posted @ 2012-01-23 00:19
leaving
阅读(694)
推荐(0)
2012年1月19日
摘要:
生成:%AXIS2_HOME%\bin\WSDL2Java -uri http://ip:8080/axis2/services/LogService?wsdl -p com.vie.rose -d adb -s-uri wsdl文件路径,可以是网络uri-p 生成java文件的包结构-d databinding方式-s 生成同步方式代码
阅读全文
posted @ 2012-01-19 17:41
leaving
阅读(4132)
推荐(0)
摘要:
获取信息:show databases;show tables;show tables from db_name;show columns from tbl_name;show index from tbl_name;show table status;show table status from db_name;show create database db_name;show create table tbl_name;show variables like '%have%';show table types;命令行:bin/mysql -uroot -ptestbin/m
阅读全文
posted @ 2012-01-19 15:49
leaving
阅读(210)
推荐(0)
2012年1月16日
摘要:
Ctrl + a - Jump to the start of the lineCtrl + b - Move back a charCtrl + c - Terminate the command //用的最多了吧?Ctrl + d - Delete from under the cursorCtrl + e - Jump to the end of the lineCtrl + f - Move forward a charCtrl + k - Delete to EOLCtrl + l - Clear the screen //清屏,类似 clear 命令Ctrl + r - Sea..
阅读全文
posted @ 2012-01-16 16:46
leaving
阅读(299)
推荐(0)
摘要:
1. 下载libevent.org2. 配置tar xf libevent.tar.gzcd libevent./configure --prefix=/usrmakemake install3. 单独编译samplegcc -g -Wall -o hello hello-world.c -levent -I/usr/include -L/usr/lib/
阅读全文
posted @ 2012-01-16 16:35
leaving
阅读(700)
推荐(0)
2012年1月11日
摘要:
A bon chat, bon rat
阅读全文
posted @ 2012-01-11 21:31
leaving
阅读(162)
推荐(0)
2012年1月10日
摘要:
1. 软件安装sudo apt-get install vsftpdsudo apt-get install db4.8-util2. 设置依赖库sudo ln -s /lib/*-linux-gnu/security/pam_userdb.so /lib/security/pam_userdb.so3. 配置linux用户sudo mkdir /etc/vsftpd_user_confsudo useradd -m -G ftp -s /sbin/nologin testftp4. 配置ftp用户 ~/ftp_user_list#配置文件 --- skip this linetestftpt
阅读全文
posted @ 2012-01-10 13:55
leaving
阅读(262)
推荐(0)