2015年6月1日

C++ 不用 < > 与 : ?运算符判断 a,b大小

摘要: 1 int max(int a, int b)2 {3 return ((((a >> 1) & 0x80000000) >> 31) ^ (((b >> 1) & 0x80000000) >> 31))*(a*(!(((a >> 1) & 0x80000000) >> 31)) + b*(!(... 阅读全文

posted @ 2015-06-01 22:45 teolvp 阅读(988) 评论(0) 推荐(0) 编辑

2015年2月8日

CentOS7 MariaDB10

摘要: 添加 yum 数据源:https://downloads.mariadb.org/mariadb/repositories/选择后生成:# MariaDB 10.0 CentOS repository list - created 2015-02-07 18:49 UTC# http://maria... 阅读全文

posted @ 2015-02-08 03:16 teolvp 阅读(223) 评论(0) 推荐(0) 编辑

CentOS Linux 挂载NTFS

摘要: 1)sudo yum install ntfs-3gsudo mount -t ntfs-3g /dev/sda3 /mnt/ -ro force 阅读全文

posted @ 2015-02-08 02:04 teolvp 阅读(144) 评论(0) 推荐(0) 编辑

Linux访问Windows共享

摘要: 1) 通过mount挂载sudo mount -t cifs -o username="Administrator",password="password" //192.168.1.236/Pub /mnt/windows/ 阅读全文

posted @ 2015-02-08 02:03 teolvp 阅读(121) 评论(0) 推荐(0) 编辑

2015年2月7日

Emacs配置与插件集记录

摘要: 常用设置 ~/.emacs 1 ;; 一打开就起用 text 模式。 2 (setq default-major-mode 'text-mode) 3 4 ;; 语法高亮 5 (global-font-lock-mode t) 6 7 ;; 以 y/n代表 yes/no 8 (fset 'ye... 阅读全文

posted @ 2015-02-07 05:44 teolvp 阅读(332) 评论(0) 推荐(0) 编辑

2014年12月6日

驱动精妙耍流氓,强制安装"新毒霸"

摘要: 驱动精妙耍流氓,强制安装流氓"新毒霸",尼玛最可恶的是还卸载不了,得小心了,最好别安装 这两个流氓玩意.,如果不介意电脑被流氓霸占倒无所谓. 阅读全文

posted @ 2014-12-06 15:21 teolvp 阅读(118) 评论(0) 推荐(0) 编辑

2014年11月21日

C# TextBox控件之大小写自动转换

摘要: VS开发C#程序时TextBox的属性中有个Charactercasing属性:默认为normal,把它改为Upper,这样无论你输入的是大写还是小写,在文本框中显示出的都是大写,如果改为Lower的话就是小写.还可以使用如下方法实现:1 private void textBox1_KeyPress... 阅读全文

posted @ 2014-11-21 15:54 teolvp 阅读(2064) 评论(0) 推荐(1) 编辑

2014年8月8日

生活随笔

摘要: 1、不要觉得你个人很重要,没有了你太阳明天照样会升起来,这是墨非说的,真实不虚。 2、感情是不对等的,你很在意对方,不必要求对方是否在意你,你付出了说明你乐意,所以你不必委屈。 3、这个年月惟有父母和钱是靠的住的,朋友和女人,要看你的运气,人靠运气生活是要不得的。 4、只要你愿意,你不必理会任何人对... 阅读全文

posted @ 2014-08-08 15:32 teolvp 阅读(123) 评论(0) 推荐(0) 编辑

2014年6月10日

显示外网IP

摘要: http://ws.sj.qq.com/webservices/ipAddress.do 阅读全文

posted @ 2014-06-10 12:24 teolvp 阅读(189) 评论(0) 推荐(0) 编辑

2014年4月12日

MySql

摘要: 1 desc 表名; 2 show columns from 表名; 3 describe 表名; 4 show create table 表名; 5 use information_schema 6 select * from columns where table_name='表名'; 阅读全文

posted @ 2014-04-12 13:45 teolvp 阅读(98) 评论(0) 推荐(0) 编辑

导航