Python Closures and Decorators
Since I, in retrospect, made the wrong choice when cutting down a Python course to four hours and messed up the decorator exercise, I promised the attendants that I'd make a post about closures an...
Python实现自动化测试入门指南
This is a quick introduction to Selenium WebDriver in Python on Ubuntu/Debian systems.WebDriver (part of Selenium 2) is a library for automating browsers, and can be used from a variety of langu...
GNU glibc库2.16的新特性
glibc是GNU平台上使用最广泛的库之一,上个礼拜六发布的2.16版本的发布修复了超过230个bug,同样也带来了一些新的特性。包括:对x32 ABI在x86_64版本中支持,这样即使在64位平台上也可以使用32位的指针;g...
说说浏览器份额数据两家打架的原因
目前定期发布全球浏览器市场份额的公司有两家, StatCounter 和 NetApplications 。它们的统计,都是基于网站服务器端对浏 览器访问记录的计算。当浏览器访问网站时,浏览器向服务器发送的报文头部包含着关于浏...
PHP应避免使用addslashes()的情况
[i=s] 本帖最后由 jieforest 于 2012-7-2 10:49 编辑 [size=10.5pt]When peer reviewing PHP code, I often find dangerous uses of addslashes(). It is often believed this is a safe way of escaping user...
Django构建静态网页站点
If you’ve ever poked around on this blog, you may have noticed the colophon which mentions very briefly:Unlike most Django sites, this is compiled into static HTML pages bydjango-medusa, a Djan...
Django的消息中内嵌HTML
ProblemYou want to embed HTML within a message using Django's messages framework.This is a reasonably common requirement - for instance, it's common to want to include a link within the messag...
用wxPython创建自销毁面板的方法
The other day I saw a question on StackOverflow about how to dynamically destroy and create panels after a certain amount of time has passed. I told the fellow that he could use the examples from ...
686K TPS with Spring Framework Web App and VoltDB
We’ve recently put up a series of blog posts describing the components of a Spring-MVC web application, including VoltDB as the database, that saves votes being called in for talent show contesta...
Why Startups Should Not Choose NoSQL
[i=s] 本帖最后由 jieforest 于 2012-7-1 15:32 编辑 The NoSQL hype is omnipresent. And many startups are tempted to go for Cassandra/MongoDB/HBase/Redis/… . Here I’ll argue why they should rathe...
Python需要配置文件吗?
I’ve never understood why people design systems in python to use config files. IMO there are two types of data and we can handle them both in dead simple ways:First: Read/write data, like UI/us...
Surviving AWS Failures with a Node.js and MongoDB Stack
Node+Mongo on EC2 is a very popular software stack among web services developers. There are many user guides on how to design such a system with built-in redundancy so that even coordinated failur...
以互动的方式学习Python
[i=s] 本帖最后由 jieforest 于 2012-6-29 09:03 编辑 One of the nicethings about programming in python is that it is free, relatively easy to use,and there is lots of support and development onlin...
Using Python to Shorten a URL Using Google's Shortening Service
Using Python to shorten a URL with Google's shortening service (goo.gl):CODE:01.#!/usr/bin/python02.# Corey Goldberg - 201003. 04.import json05.import urllib06.import urllib207. ...
Rails 4.0新特性介绍
My previous deep dive into the Rails 4.0 Queueing system was motivated by a patch to Rails I was working on while at RailsCamp New England this past weekend. I'm happy to say that Rails 4.0 now ha...
Python 3.3测试版发布
Python官方发布了3.3的首个测试版本。 该版本包含了大量针对3.x分支的改进,2.x和3.x分支之间的迁移变得更加容易。该版本的主要特性包括: PEP 380:用于委托到子生成器的语法。PEP 393:灵活的字符串表示...
让你的Rails项目保持清洁
Way back when in the 1600′s, astronomy was all the rage in Europe, due for the most part to the invention and production of telescopes.As a result, kinds of people were able to learn more and t...
A Couple Redis Gotchas with a Focus on Concurrency
Redis is an amazing global datastructure server. The fact that it’s global, makes it ideal for a multi-process or multi-threaded system, to get some concurrency action going. This also means, tha...
Rails项目中jRuby与Scala的交互
The JVM is awesome.But back to the topic of this post: We’ll see how you can leverage both Scala andJRuby in one project. Each will doing what it does best:1. Ruby will handle the FAST frontend dev...
用Spring的Converter API生成VoltDB的数据对象
Mapping one type to another is a pretty common task. Hibernate and other ORM’s map a result from a data source’s native representation to an application specific representation. In English, I w...