原创 android 雜記2:單位 屏幕適配

爭論的源頭 屏幕適配 http://developer.android.com/guide/practices/screens_support.html more-resources-types http://developer.andr

原创 Mysql常用語句參考手冊

查詢 SELECT [ALL | DISTINCT | DISTINCTROW ] [HIGH_PRIORITY] [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [S

原创 crontab

crontab -l 在標準輸出上顯示當前的crontab。  -r 刪除當前的crontab文件。  -e 使用VISUAL或者EDITOR環境變量所指的編輯器編輯當前的crontab文件。當結束編輯離開時,編輯後的文件將自動安裝。

原创 linux 的重定向

> 代表重定向到哪裏,例如:echo "123" > /home/123.txt 1 表示stdout標準輸出,系統默認值是1,所以">/dev/null"等同於"1>/dev/null" 2 表示stderr標準錯誤 & 表示

原创 addslashes 和 mysql_real_escape_string

先看手冊說明 1.addslashes 說明 ¶ string addslashes ( string $str ) 返回字符串,該字符串爲了數據庫查詢語句等的需要在某些字符前加上了反斜線。這些字符是單引號(')、雙引號(")、

原创 vue-router 源碼分析(一) - 初始化和安裝

Vue-router使用demo <div id="app"> <h1>Hello App!</h1> <p> <router-link to="/foo">Go to Foo</router-link> <rout

原创 Vuex 2.0 源碼分析

Vuex 2.0 源碼分析 在一般情況之下, 我們普遍使用 global event bus 來解決全局狀態共享, 組件通訊的問題, 當遇到大型應用的時候, 這種方式將使代碼變得難以維護, Vuex應運而生, 接下來我將從源碼的角度分析Vu

原创 android 雜記6:Android xml資源文件的一些東西

android 雜記6:Android xml資源文件的一些東西 http://www.cnblogs.com/kobe8/p/3755089.html 一.@代表引用資源 1.引用自定義資源。格式:@[package:]type

原创 PHP Pdo MySQL Server has gone away

#2006 MySQL Server has gone away #2013 Lost connection to MySQL server during query mysql 導致這個行爲的地方有兩個 interactive_

原创 android雜記5:Android Support Library

Android Support Library http://blog.csdn.net/crazybigfish/article/details/18363351 原文地址: http://developer.android.com/

原创 android雜記8:Color

android雜記8:Color http://developer.android.com/guide/topics/resources/more-resources.html#Color http://www.cnblogs.com/

原创 init kill signal的數字總結

1.init 0:停機 1:單用戶形式,只root進行維護 2:多用戶,不能使用net file system 3:完全多用戶 5:圖形化 4:安全模式 6:重啓 其實,可以通過查看/etc/rc.d/中的rc*.d的文件來對比理解,

原创 centos 7 firewalld

yum install firewalld systemctl enable firewalld systemctl disable firewalld systemctl start firewalld systemctl statu

原创 封ip

1.iptables #屏蔽單個IP的命令是 iptables -I INPUT -s 123.45.6.7 -j DROP #封整個段即從123.0.0.1到123.255.255.254的命令 iptables -I INPUT -

原创 linux locale

~/.bashrc /etc/profile /.bash_profile 字符編碼配置文件 /etc/sysconfig/i18n centos 7已經沒有了 /etc/locale.conf LANG="de_DE.UTF-8"