All posts by ht

深度剖析WordPress主题结构

利用强大的技术,可以把基于wordpress的网站做成各种各样的形式,这除了要求wordpress主题开发人员精通html,PHP,JS,CSS等技术,还需要开发者掌握WordPress主题的框架。
Gevin今天结合The anatomy of a WordPress theme这篇文章,和大家一起剖析WordPress主题的结构。原文作者用图文形式,分别从网站外观、页面组成和后台文件三个方面,形象的向大家展示了WordPress的架构,下面Gevin和大家一起分析WordPress是如何架构的。
Continue reading 深度剖析WordPress主题结构

Notes on Programming in C by Rob Pike

Notes on Programming in C

    Rob Pike                  
February 21, 1989

Introduction

     Kernighan and Plauger’s The Elements of Programming Style was an important and rightly influential book.  But sometimes I feel its concise rules were taken as a cookbook approach to good style instead of the succinct expression of a philosophy they were meant to be.  If the book claims that variable names should be chosen meaningfully, doesn’t it then follow that variables whose names are small essays on their use are even better?  Isn’t MaximumValueUntilOverflow a better name than maxval I don’t think so.
Continue reading Notes on Programming in C by Rob Pike

Django notes

1. create a new directory and start a project by run: django-admin.py startproject lsite
2. Running the development server: python manage.py runserver (just local)
3. start the interactive interpreter: python manage.py shell
4. setup TEMPLATE DIR  inside settings.py