2014年8月29日 星期五

Windows Hardlink使用教學

        因為在Windows上面玩Python時覺得他有點笨笨的,打python只會出現路徑設定(Path)第一個抓到的Python路徑值(像我的Python27是最先抓到的),所以每次都只會出現一個,軟連結有點難用因為還要輸入python.lnk真麻煩,所以就想學linux用硬連結,廢話太多,開始實作。


以Python34為例,請輸入以下:


C:\> fsutil hardlink create C:\Python34\python34.exe C:\Python34\python.exe

P.S. 暗綠色為你要設定的硬連結,暗藍色為你的目的檔案,刪除硬連結檔案就自己直接滑鼠右鍵刪除(應該不用我教)就行了,還有切記不能把它當作軟體的備份檔案,出事我可不負責。


如果想要看看倒底連結了多少硬連結,請輸入如下:

C:\> fsutil hardlink list C:\Python34\python.exe

祝你使用愉快。

Windows Path路徑設定

1. 我的電腦按右鍵,點選內容。

2.選擇進階系統設定,再來環境變數。

3.點選Path,再來點編輯,最後就可以輸入你想加入的路徑啦!
P.S. 記得如果要有許多的路徑要設定記得在之中加入分號";"歐。 

Python相關的介紹

    雖然網路上已經有許許多多的Python相關的東西,不過我自己想要給自我學習做個紀錄。
    這篇網誌主要是介紹Python相關的一些套件。

Python各類的應用系統

* 網際系統(Web framework)
   # Django
   # Grok
   # Plone
   # Pylone (現在叫Pyramid)
   # TurboGears
   # web2py
   # Zope (Zope2、Zope3)

* Windows上面的應用系統佈局
   # cx_freeze
   # Py2exe
   # pyinstaller

* 科學上面的應用
   # Numpy
   # Scipy (目前由Enthought公司負責)
   # Sympy

* GUI開發使用
   # Dabo
   # Libavg
   # PyFltk
   # PyGame (Python 開發遊戲的API)
   # PyGTK
   # PyGUI
   # PyQT (QT的應用還蠻多的,當然Python要來參一腳)
   # Tkinter (內建)
   # Traits/TraitsUI (目前由Enthought公司負責)
   # VTK
   # wxPython

相關來源:https://wiki.python.org/moin/GuiProgramming、https://wiki.python.org/moin/WebFrameworks、書籍-徹底研究Python科學計算

Ubuntu安裝Apache+Mariadb+PHP+phpMyAdmin



久久沒來寫個網誌,就來記錄一下自己曾學過的東西,至於出處我就不清楚了,如果有侵犯到您的網誌或者文章就請跟我說。


安裝Apache
$~ sudo apt-get install apache2





安裝Mariadb(用來取代MySQL的)
$~ sudo apt-get install mariadb-server





安裝PHP5
$~ sudo apt-get install php5 php5-mysql libapache2-mod-php5





安裝phpMyAdmin
$~ sudo apt-get install phpmyadmin



完畢,接下來就好好享受開發網站的過程吧!不過我都用Python來取代PHP就對了。XD


可以在這裡下載安裝文件ampp.sh












2014年6月6日 星期五

jQuery 隨手寫!


jQuery 的線上庫可以選擇 jQuery官方網站  或者 Google Hosted Libraries

引用方法
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js></script>


撰寫方法
$(document).ready(
function(){
<!-- 程式碼撰寫區 -->
});

等於

$(function(){
<!-- 程式碼撰寫區 -->
});

2014年6月5日 星期四

Eclipse Google AppEngine(Python) 參數




--admin_host=ADMIN_HOST
Host name to which the local Development Console should bind (default: localhost).

--admin_port=ADMIN_PORT
Port to which the local Development Console should bind (default: 8000).

--enable_sendmail
Uses the local computer's Sendmail installation for sending email messages.

--help
Prints a helpful message then quits.

--host=...
The host address to use for the server. You may need to set this to be able to access the development server from another computer on your network. An address of 0.0.0.0 allows both localhost access and hostname access. Default is localhost.

--log_level=...
The lowest logging level at which logging messages will be written to the console; messages of the specified logging level or higher will be output. Possible values are debug, info, warning, error, and critical.

--port=...
The port number to use for the server. Default is 8080. If multiple servers are launched, they will be assigned subsequent ports (e.g. 8081, 8082, etc).

--logs_path=LOGS_FILE
By default, development server logs are stored in memory only. This option turns on disk storage of logs at the location specified by LOGS_FILE, making the logs available across server restarts. For example,devappserver.py --logs_path=/home/logs/boglogs bog


--require_indexes=yes|no
Disables automatic generation of entries in the index.yaml file. Instead, when the application makes a query that requires that its index be defined in the file and the index definition is not found, an exception will be raised, similar to what would happen when running on App Engine. The default value is no.

--smtp_host=...
The hostname of the SMTP server to use for sending email messages.

--smtp_port=...
The port number of the SMTP server to use for sending email messages.

--smtp_user=...
The username to use with the SMTP server for sending email messages.

--smtp_password=...
The password to use with the SMTP server for sending email messages.

--storage_path=...
Path at which all local files (such as the Datastore, Blobstore files, Google Cloud Storage Files, logs, etc) will be stored, unless overridden by --datastore_path, --blobstore_path, --logs_path, etc.



來源:https://developers.google.com/appengine/docs/python/tools/devserver?hl=zh-tw#Python_Command-line_arguments

2014年5月8日 星期四

Eclipse 佈景主題


好久沒來寫我的Blog了,就來篇讓Eclipse(日蝕)變的美美的的教學!

Eclipse UI theme plugin


在help -> Install New Software -> Add



Name: 隨你打自己想要的名字
Location: https://raw.github.com/guari/eclipse-ui-theme/master/com.github.eclipseuitheme.themes.updatesite


Eclipse Color theme plugin


在help -> Install New Software -> Add

Name: 隨你打自己想要的名字
Location: http://eclipse-color-theme.github.com/update


下面是安裝後,Eclipse佈景樣式


這裡是安裝後的文字樣式,我個人喜歡obsidian


最後祝福你們好好的享受你的eclipse畫面啦!

P.S. 當然上面這些樣式都是可以跨平台的,只要eclipse可以跑的都可以安裝。