• submit to reddit
Kristiono Setyadi03/01/12
2152 views
0 replies

Simple Links Extractor Using Python

Kristiono Setyadi recently began a Search Engine class put on by Sebastian Thrun and David Evans, and has put together the beginnings of a simple Links extractor using Python. Be sure to stay tuned as Kristiono will provides consistent updates as the class progresses...

Giuseppe Vettigli03/01/12
2310 views
0 replies

Finite Differences with Toeplitz Matrix

A Toeplitz matrix is a band matrix in which each descending diagonal from left to right is constant. In this post, Giuseppe Vettigli explains how to approximate the derivative of a function f(x) as matrix-vector products between a Toeplitz matrix and a vector of equally spaced values of f.

Chris Smith02/29/12
5841 views
0 replies

15 Key Resources to Learn Django

Mingwei Gu has created an awesome list of resources for learning Django, and was even nice enough to group them by categories like: Comparing Python to Other Langauges, Python Style, Advanced Python Features, Python/Django Tutorials, Django Documentation, and Python Tools...

Michael Foord02/29/12
1777 views
0 replies

Coders' Halloween: Tests That Fail One Day Every Four Years

A little fun for Coders' Halloween today! Michael Foord explains how February 29th can cause bugs to come crawling out of the woodwork of code that handles dates -- and then explains how to use the dateutil module to correct it...

Mitch Pronschinske02/29/12
5773 views
3 replies

DZone Meetup Strikes Sofia, Bulgaria!

After 2 hugely successful DZone VIP meetups in Cary, NC (USA) and Colombo, Sri Lanka, a third meetup concluded last month in Sofia, Bulgaria - organized by one of DZone's team members, Jordan Jambazov. See pics and user reflections on the meetup

Chase Seibert02/29/12
1581 views
0 replies

Source Control Merges by Trimming Trailing Whitespace Made Easy

If you do frequent branch merges in any source control system, you have likely encountered merge conflicts. When two branches have legitimate differences, most often you have to resolve those differences by hand. But all too often, when resolving diffs, you end up looking at a lot of "phantom diffs", too. The most common phantom diff is the trailing whitespace difference, and in this post Chase Seibert explains how best to deal with them...

Mike Driscoll02/29/12
3078 views
0 replies

wxPython and SqlAlchemy: An Introduction to MVC and CRUD

Mike Driscoll continues his series on wxPython. In this post he explains how to create a program to store a list of books the user has read. He shows how to combine wxPython and SqlAlchemy, and provides an applied introduction to the model-view controller (MVC) and CRUD methodologies.

Andrew Trice02/28/12
2357 views
0 replies

Introducing the US Census Browser Application

Andrew Trice created a mobile app for showcasing enterprise-class data visualization in HTML-based applications. The US Census Browser is an open source application for browsing data from the 2010 US Census, written completely in HTML and JavaScript, even for charting/data visualization components...

Chris Smith02/28/12
1856 views
0 replies

Charming Snakes and Shaving Yaks

For the last couple of days, Barry Warsaw been debugging a fun problem in the Ubuntu tool called Jockey, a Python application mwritten using many Python modules interfacing to low-level tools such as apt and dbus. Barry explains how a simple bit of code was creating a TypeError, and how he got around it...

Giorgio Sironi02/28/12
13073 views
1 replies

TDD in Python in 5 minutes

Python ships a unit testing framework which is really easy to test-drive your code with.

Chris Smith02/28/12
2240 views
0 replies

SST Development Visualization (October 10 2010 thru February 26, 2012

Corey Goldberg ran Gource against the trunk branch of Selenuim Simple Test (SST) to creat this amazing visualization of development activity from October 10, 2010 to February 26, 2012.

Stoimen Popov02/28/12
11340 views
2 replies

Algorithm of the Week: Shell Sort

Insertion sort is a great algorithm, because it’s very intuitive and it is easy to implement, but the problem is that it makes many exchanges for each “light” element in order to put it on the right place. Thus “light” elements at the end of the list may slow down the performance of insertion sort a lot. As Stoimen Popov explains, that is why in 1959 Donald Shell proposed an algorithm that tries to overcome this problem by comparing items of the list that lie far apart: Shell Sort...

Rick Copeland02/27/12
2815 views
0 replies

WebSockets to Socket.io

In a previous blog post, I showed how you can use Gevent, ZeroMQ, WebSockets, and Flot to create a nice asynchronous server that graphs events in real time to multiple web consumers. Unfortunately, Chrome is just about the only browser that my demo worked in due to some issues with the WebSockets standard. So I've updated the example to use Socket.io, a WebSockets-like Javascript library that will work across multiple browsers.

Ken Cochrane02/27/12
1988 views
1 replies

Getting DjangoCMS up and running on ActiveState's Stackato in 9 Easy Steps

Ken Cochrane provides another easy-to-follow Installation Guide for setting up DjangoCMS on ActiveState's Stackato in as few as 9 steps (there are 3 optional steps along the way for: initializing the database, running south migrations, and collecting static files).

Chris Smith02/27/12
2483 views
0 replies

Serializing Python-Requests' Session Objects for Fun and Profit

Recently, Shrikant Sharat had been using Kenneth Reitz's python-requests library for a few of his company's internal projects and reached a point where he needed to serialize and save Session objects for later. Since it wasn't as easy as he anticipated, he was kind enough to share his experience...