#ubuntu 查看軟體是否安裝 dpkg命令使用man:dpkg -package mananger for Debiandpkg is a tool to install, build, remove and manage Debian packages.就是和rpm類似的一個包管理器常用命令:#查看所有包和某個軟體是否存在$dpkg -l$dpkg -l |grep vi #例如查看vi的包資訊#查看某個已經安裝包的詳細狀態$dpkg -s
在django1.4 中這麼引用url是沒錯的<h3><a href="{% url detailblog blog.id %}"> {{ blog.caption }}</a></h3>但是在1.5中就會有如下錯誤'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs.解決方案是"{% url detailblog
chapter 6 資料庫/模型 最佳實務:模型是很多Django項目的基礎。這是我們挑選的用於模型的第三方包*South 用來做資料庫遷移,這是一個很好用很常見的工具*django-model-utils to handle common patterns like TimeStampedModel*django-extensions 它有一個強有裡的shell工具來自動裝載所有app的模型基本知識:*拆分有太多模型的app如果一個app中有超過20個模型,那麼就要把它拆分成小的app了,
chapter 7 Function-and Class-Based Views Django1.5 有這兩種模式function-based views FBVsclass-based views CBVs 什麼時候使用FBVs或者CBVs? Keep view Logic out of URLconfs *views模組應該包含view邏輯*URL模組應該包含URL邏輯而不是混為一談最好不要有這樣的代碼:# Similar to the Polls examplefrom
two-scoops-django-best-practices notes:chapter 1 code style:*Avoid abbreviating(縮寫) variable names*Write out your function argument names*Document you classes and methods*Refactor repeated lines of code into reusable(重用) functions or methodsthe word
代碼 :html:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><html><head><meta http-equiv="Content-Type" content="text/html;
電子郵件溝通禮節: 寄件者: 不要全部使用大寫字母或者是全部小寫字母。 小寫字母一般是用於朋友之間。 轉寄郵件,請不要修改轉寄的郵件的內容。 郵件中的圖片盡量使用jpg,jif,png等比較小的檔案格式。 Start Email with salutation and finish with a proper ending. Answer only to them who need your answer。例如抄送的郵件,不需要針對其寫內容。
How to Be a Happier Person怎樣成為更一個快樂的人Unhappy with your overall attitude? Feeling a little blue? That's completely normal! Just read this article, and feel better and happier!看世界總是不高興?感到那麼一點點的憂鬱?哈哈,這是完全正常的。只要你讀了哥的文章,一定happy一整天。 ```````````````````````