Page1 of 421 2 3 42
5 05 2014

codeigniter $_GET[] 不能用

#bigCat.PHP(" Comment.isBlank ")
$config['allow_get_array']      = TRUE;
$signature = $this->input->get("signature",TRUE);

要这样才行...默认屏蔽了$_GET[]

11 04 2014

手机QQ Webview UserAgent

#bigCat.Apple, Android(" Comment.isBlank ")
exports.iOS = /(iPad|iPhone|iPod).*?QQ/g.test(ua);
exports.android = /\bV1_AND_SQ_/.test(ua);
13 03 2014

android:gravity 和 android:layout_gravity 区别

#bigCat.Android(" Comment.isBlank ")

android:gravity 定义子元素对齐方式类似于 css 里的 text-align
android:layout_gravity 定义本身相对于父元素定位 类似于 css 里的 float

17 12 2013

.htaccess fancyindexing

#bigCat.Linux(" Comment.isBlank ")

Options +Indexes
IndexOptions +FancyIndexing +FoldersFirst +NameWidth=* Charset=UTF-8

http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html

17 10 2013

SSH 自动登陆输入密码脚本

#bigCat.Linux(" Comment.isBlank ")
#!/usr/bin/expect -f

set port 22
set user bigcat
set host 10.20.30.40
set password helloworld
set timeout -1

spawn ssh -p $port $user@$host
expect "*assword"

send "$password\r"

interact
Page1 of 421 2 3 42
Host: (miao) | Word: Press | Code: HTML5