原创 CentOS 6.4 Nginx 安裝過程中遇到的兩個問題

問題1: ./configure: error: the HTTP rewrite module requires the PCRE library 解決方案:yum -y install pcre-devel 問題2: /config

原创 NodeJS模塊導出使用

我們的HTTP服務器需要導出的功能非常簡單,因爲請求服務器模塊的腳本僅僅是需要啓動服務器而已。 我們把我們的服務器腳本放到一個叫做 start 的函

原创 解釋

   1. <!--[if !IE]><!--> 除IE外都可識別 <!--<![endif]-->    2. <!--[if IE]> 所有的IE可識別 <![endif]-->    3. <!--[if IE 5.0]> 只有I

原创 媒介查詢-Media Queries

    寫在前面的話:隨着移動設備的逐漸普及和Web技術的發展,跨端的Web開發需求將會越來越大。如何在多種設備上進行跨端的界面適配呢?我們可以利用

原创 CentOS6.4 安裝PyCharm2.7.3

第一步: CentOS自帶了兩個OpenJDK需要先卸載,卸載方法 第二步: 下載 jdk的java.bin文件,放入/usr/local/java 中 執行命令 chmod a+x  java.bin 運行 ./java.bin

原创 HTTP狀態碼

HTTP狀態碼(英語:HTTP Status Code)是用以表示網頁服務器HTTP響應狀態的3位數字代碼。 1 1xx消息2 2xx成功3 3xx重定向4 4xx請求錯誤5 5xx服務器錯誤 1xx消息 這一類型的狀態碼,代表

原创 (python) Parsing certain HTML output tags using beautiful soup

from BeautifulSoup import BeautifulSoup from urllib2 import urlopen def get_wotd(): return str((BeautifulSoup(urlo

原创 靜態資源處理

STATIC_ROOT = 'static' STATIC_URL = '/static/' if settings.DEBUG:     urlpatterns += patterns('',         url(r'^st

原创 Jquery getJson請求json數據

第一種:固定返回 jQuery(function(){     jQuery.getJSON('http://127.0.0.1:8000/hello?jsoncallback=?',function(data){         //a

原创 centos6.4 owncloud配置

1.安裝所需模塊 yum -y install php yum -y install php-gd、php-xml、php-intl、php-mbstring 2.owncloud-5.0.10.tar.bz2 解壓到 /var/www/

原创 logging setting

LOGGING = {     'version': 1,     'disable_existing_loggers': True,     'formatters': {         'stand

原创 Mysql 亂碼解決問題

命令: show variables like 'character%'; show variables like 'collation%'; show create table t1; show full columns from t

原创 Django Session處理

def setSession(request):     msg=''     try:         request.session['userName']='lushijie'         ms

原创 Django model字段類型

原文地址:http://matt-u.iteye.com/blog/1074568 AutoField      一個 IntegerField, 添加記錄時它會自動增長. 你通常不需要直接使用這個字段; 如果你不指定主鍵的話,系統會

原创 python函數的四種參數傳遞方式

原文地址:http://freshstu.com/2013/04/four-kinds-of-function-argment-pass-in-python/ python中函數傳遞參數有四種形式 fun1(a,b,c) fun2