apt-cache search package 搜索包 apt-cache show package 获取包的相关信息,如说明、大小、版本等 sudo apt-get install package 安装包 sudo apt-get install package - - re...
分类:
其他好文 时间:
2014-09-28 19:16:54
阅读次数:
149
linux 下远程连接mysq命令:mysql -h "1.0.0.1" -u username -p1获 取锁等待情况可以通过检查 table_locks_waited和table_locks_immediate状态变量来分析系统上的表锁定争夺:mysql> show status like 'T...
分类:
其他好文 时间:
2014-09-28 17:27:23
阅读次数:
221
mysql> show engines;+------------+---------+----------------------------------------------------------------+--------------+-----+------------+| Engin...
分类:
数据库 时间:
2014-09-28 17:25:43
阅读次数:
237
抽象工厂模式
里面有几个概念:抽象工厂、实体工厂、抽象产品、实体产品
抽象工厂:定义创建产品的抽象方法
实体工厂:具体的创建哪种产品
抽象产品:一个接口或基类
实体产品:实现具体功能,或派生
//抽象产品1
public interface IProduct1 {
public void show();
}
//抽象产品2
public interface IProdu...
分类:
编程语言 时间:
2014-09-28 13:33:12
阅读次数:
183
1 //范磊C++ 第3章 2 3 #include "stdafx.h" 4 #include "iostream" 5 6 //3.1 一个简单的函数 7 void show() 8 { 9 std :: cout > a; 33 cin >> b; 34...
分类:
编程语言 时间:
2014-09-27 20:20:00
阅读次数:
224
1 /** 2 * show出对话框 3 */ 4 private void showUpdataDialog() { 5 AlertDialog.Builder builder = new Builder(this); 6 bu...
分类:
其他好文 时间:
2014-09-27 18:45:20
阅读次数:
244
MySQL中有很多的基本命令,show命令也是其中之一,在很多使用者中对show命令的使用还容易产生混淆,本文汇集了show命令的众多用法。 a. show tables或show tables from database_name; -- 显示当前数据库中所有表的名称。 b. show datab...
分类:
其他好文 时间:
2014-09-27 17:29:40
阅读次数:
228
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"click to show corner cas...
分类:
其他好文 时间:
2014-09-27 17:21:00
阅读次数:
188