blog.jiayun.org
jiayun: 評 Head First Python
http://blog.jiayun.org/2013/11/head-first-python.html
Thursday, November 28, 2013. 評 Head First Python. Python 基礎講得很少,然後後半本開始扯到 web, app. 我覺得很容教壞新手,因為它提的那些做法都不是真正 production 等級的做法. 所以後半本是浪費時間,前半本則是二百多頁內容,其實根本一篇文章就可以講完,也是浪費時間. Subscribe to: Post Comments (Atom). 評 Head First Python. 解決 IE11 不被 Windows Server 2003 的 .Net 認得問題. Linq to Entities - join many-to-many 關聯的寫法. Ethereal template. Powered by Blogger.
blog.jiayun.org
jiayun: Python3 也還是加上 # -*- coding: utf-8 -*- 吧
http://blog.jiayun.org/2014/02/python3-coding-utf-8.html
Friday, February 28, 2014. Python3 也還是加上 # -*- coding: utf-8 -*- 吧. 雖然 Python 3 預設程式碼是 UTF-8. 但我發現 py 檔案開頭沒加一行 # -*- coding: utf-8 -*-. 的話,在 PyCharm 要執行 debug 會出錯. Subscribe to: Post Comments (Atom). Python3 也還是加上 # -*- coding: utf-8 -*- 吧. Ethereal template. Powered by Blogger.
blog.jiayun.org
jiayun: December 2012
http://blog.jiayun.org/2012_12_01_archive.html
Friday, December 7, 2012. 安靜,就是力量 Quiet: The power of introverts in a world that can't stop talking. 安靜,就是力量:內向者如何發揮積極的力量! Quiet: The Power of Introverts in a World That Can't Stop Talking. 作者在 Ted 的演講,有中文字幕. 覺得自己內向的人一定要看看,外向的人其實也該看看,可以知道有時適度克制一下外向的衝動有什麼好處,也可以知道如何與內向的伴侶或孩子相處. 例如我自己舉一個例子,有些人可能會以為愛講話、愛 social 就是會溝通,但其實真正的溝通是以傾聽為基礎的. 另外書中有引用一些 Elaine Aron 關於高度敏感的書的內容,可以稍微參考這篇:. 十面埋伏 -- 三年比不上三天. 5 Ways an Introvert Can Build a Thriving Audience Online. Subscribe to: Posts (Atom).
blog.jiayun.org
jiayun: October 2013
http://blog.jiayun.org/2013_10_01_archive.html
Saturday, October 26, 2013. RazorEngine - http:/ razorengine.codeplex.com/. 小心不要一直呼叫 Razor.Parse() 每次它都會動態編譯東西到記憶體裡面,而且是不會被 GC 掉的. 參考: http:/ stackoverflow.com/questions/12301515/razorengine-memory-usage. 但是解法也不難,不需要升級版本到 3 就可以解. 就是用 Precompiling Templates 的作法做. Http:/ razorengine.codeplex.com/wikipage? 不小心就會被整到 - 在 cygwin 寫 shell script. 因為 OS 是 Windows,很自然檔案很容易弄成 Windows 的 r n 換行格式. Http:/ cygwin.com/ml/cygwin/2006-11/msg00221.html. Subscribe to: Posts (Atom). 不小心就會被整到 - 在 cygwin 寫 shell script.
blog.jiayun.org
jiayun: December 2013
http://blog.jiayun.org/2013_12_01_archive.html
Wednesday, December 4, 2013. 評 Programming in Python 3: A Complete Introduction to the Python Language (2nd Edition). Programming in Python 3: A Complete Introduction to the Python Language (2nd Edition). 不過程式碼不是很好,像開檔案沒有用 with 也沒有 close,不是好習慣. 講自訂 class 的部分有一個地方明明要做 immutable 但 &= 實作改了 private value,但 eq 根據那個 private value, hash 卻是根據 id(),完全是有問題的寫法,果然一個小測試就會錯了:. 如過 FuzzyBool 的地方換成 Python 的 int,最後那行是完全不會有問題的. 不過還算值得一讀就是了,重要的東西和 library 都有介紹到. Subscribe to: Posts (Atom).
blog.jiayun.org
jiayun: February 2014
http://blog.jiayun.org/2014_02_01_archive.html
Friday, February 28, 2014. Python3 也還是加上 # -*- coding: utf-8 -*- 吧. 雖然 Python 3 預設程式碼是 UTF-8. 但我發現 py 檔案開頭沒加一行 # -*- coding: utf-8 -*-. 的話,在 PyCharm 要執行 debug 會出錯. Thursday, February 20, 2014. 原來 iPhone 要開熱點之後才可以和 iPad 用藍牙互連,我之前都是為了這個目的這樣連,最近因為清掉設定要重設時才奇怪怎麼一直連不上. Subscribe to: Posts (Atom). Python3 也還是加上 # -*- coding: utf-8 -*- 吧. Ethereal template. Powered by Blogger.
blog.jiayun.org
jiayun: November 2012
http://blog.jiayun.org/2012_11_01_archive.html
Sunday, November 25, 2012. Pyodbc 3.0.6 python3.2 win32 版. Pyodbc-3.0.6.win32-py3.2.exe. 因為網路上沒有包好的 python 3.2 版本,所以自己包一個. 但是要 build 竟然還得裝 Visual Studio 2008 Express 才行. Thursday, November 22, 2012. 年輕人沒有家累也沒有另一半要顧,回家還只會吃飯、看電視、睡覺的話,那也和 walking dead 差不多了. How To Be More Interesting (In 10 Simple Steps). Subscribe to: Posts (Atom). Pyodbc 3.0.6 python3.2 win32 版. Ethereal template. Powered by Blogger.
blog.jiayun.org
jiayun: June 2014
http://blog.jiayun.org/2014_06_01_archive.html
Sunday, June 1, 2014. 在 Mac 中用 homebrew 裝的 Python3 中安裝 graph-tool. 目前 Homebrew 提供的 Python 3 是 3.4.1,所以以下各路徑和檔案修改都是用 3.4.1,若版本有變要做相對應的修改. Brew install gcc (scipy 需要 Fortran Compiler). 修改 /usr/local/Library/Formula/boost.rb https:/ gist.github.com/jiayun/f331db2bef429d532ea4. Brew install boost - with-python3 - c 11. 安裝 XQuartz http:/ xquartz.macosforge.org/. Brew install - c 11 cgal cairo cairomm py3cairo google-sparsehash. Cd /usr/local/Cellar/py3cairo/1.10.0/include/pycairo/. Subscribe to: Posts (Atom).
blog.jiayun.org
jiayun: 在 Mac 中用 homebrew 裝的 Python3 中安裝 graph-tool
http://blog.jiayun.org/2014/06/mac-homebrew-python3-graph-tool.html
Sunday, June 1, 2014. 在 Mac 中用 homebrew 裝的 Python3 中安裝 graph-tool. 目前 Homebrew 提供的 Python 3 是 3.4.1,所以以下各路徑和檔案修改都是用 3.4.1,若版本有變要做相對應的修改. Brew install gcc (scipy 需要 Fortran Compiler). 修改 /usr/local/Library/Formula/boost.rb https:/ gist.github.com/jiayun/f331db2bef429d532ea4. Brew install boost - with-python3 - c 11. 安裝 XQuartz http:/ xquartz.macosforge.org/. Brew install - c 11 cgal cairo cairomm py3cairo google-sparsehash. Cd /usr/local/Cellar/py3cairo/1.10.0/include/pycairo/.
blog.jiayun.org
jiayun: Mustache .length
http://blog.jiayun.org/2014/04/mustache-length.html
Saturday, April 26, 2014. Mustache http:/ mustache.github.io/. 文件都沒有提到,要判斷某個 collection 有東西才顯示時,可以用 .length. Subscribe to: Post Comments (Atom). Ethereal template. Powered by Blogger.