正文之前:
This is the notes of book “深入浅出 Google Android”
八咖 -_-|| 2009年出版的书,显老了点儿,先翻翻…
正文:
(1)线性布局 => LinearLayout
fill_parent => 表示填满父控件的空白
wrap_content => 表示大小刚好足够显示当前控件里的内容
vertical => 垂直
horzontal => 水平
layout_width="fill_parent" => 宽度占满整个屏幕
layout_height="wrap_content" => 高度适应子控件
gravity="right"
如果是无子控件的V...
Android 笔记: 布局管理
三月 26th, 2012, posted in Android极小化极大值算法-井字棋Ruby实现
三月 15th, 2012, posted in Rubyubuntu 安装jdk7.0
二月 23rd, 2012, posted in 其他转载自:Ubuntu 安装JDK7.0
1. Download the following file:
http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz (32-bit)
http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-x64.tar.gz (64-bit)
2. Decompress the .tar.gz file.
3. Move the JDK files to /usr/lib/jvm/jdk1.7.0 or elsewhere you like.
4. $sudo gvim /etc/environment
You will see
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/game...
Perl Script used for test sysbench.
九月 20th, 2011, posted in Perlperl Expect模块
九月 15th, 2011, posted in Perlcentos vim7.3
九月 14th, 2011, posted in vi/vimMySQL ERROR:This function has none of DETERMINISTIC, NO SQL
九月 13th, 2011, posted in 其他http://shanchao7932297.blog.163.com/blog/static/1363624201010863043981/
DBD::mysql::st execute failed: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) at ddl_test/run_ddl.pl line 426.
ALERT: failed to execute mysql_stmt_execute(): Err1442 Can’t update table ‘sbtest’ in stored fun...