Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
Python Zone is brought to you in partnership with:
  • submit to reddit
Corey Goldberg05/21/12
42 views
0 replies

Multi-Mechanize Script With HTTP Profiling Timers

Multi-Mechanize is an open source framework for web performance and load testing. It allows you to run simultaneous python scripts to generate load (synthetic transactions) against a web site or web service.

Stoimen Popov05/21/12
630 views
0 replies

Computer Algorithms: Karatsuba Fast Multiplication

Typically multiplying two n-digit numbers require n2 multiplications. That is actually how we, humans, multiply numbers. Let’s take a look of an example in case we’ve to multiply two 2-digit numbers.

Chase Seibert05/20/12
367 views
0 replies

Save a screenshot to Dropbox with a keyboard shortcut

Here is a BASH script that builds on Drjnet's excellent script, but which also allows you to select just a small region of your screen to capture.

Grigory Javadyan05/19/12
5752 views
0 replies

The Book That Every Programmer Should Read

I am talking about C. Petzold’s “CODE”. It is a truly remarkable book about how computers work. Let me explain why I think this book is so awesome.

David Winterbottom05/18/12
1001 views
0 replies

Django, Nginx, WSGI and encoded slashes

You are serving a Django application using Nginx to proxy to an Apache server running mod_wsgi and you want to allow slashes in your URL keywords.

Corey Goldberg05/17/12
509 views
0 replies

Automated Web Page Profiling (Python)

The latest release of SST (0.2.0) adds the ability to capture HAR (HTTP Archive format) output for pageload performance tracing/profiling.

Christian Posta05/17/12
415 views
0 replies

Mixins in Python

In Python, mixins allow a programmer to package a set of clearly defined and cohesive methods into a unit that can then be used to add functionality to other classes by “mixing in” these methods.

Stoimen Popov05/16/12
2476 views
1 replies

Algorithm of the Week: Karatsuba Fast Multiplication

Typically multiplying two n-digit numbers require n2 multiplications. That is actually how we, humans, multiply numbers. Let’s take a look of an example in case we’ve to multiply two 2-digit numbers. . .

Corey Goldberg05/16/12
688 views
0 replies

Taking Browser Screenshots With No Display (Selenium/Xvfb)

In my last two blog posts, I showed examples of using Selenium WebDriver to capture screenshots, and running in a headless (no X-server) mode. This example combines the two solutions to capture screenshots inside a virtual display.

William Soprano05/15/12
582 views
0 replies

Video: Pydata Workshop Tutorial

In this video tutorial from the 2012 PyData Workshop, John Hunter, author of matplotlib is going to give you some advanced insight into the plotting library.

Giuseppe Vettigli05/14/12
1124 views
0 replies

Prime Factor Decomposition of a Number

Check out this useful python snippet for to computing the prime factors of an integer.

William Soprano05/13/12
953 views
0 replies

Video: Performance Management From A to Z'

This session will cover the challenges of creating a production application performance monitoring system for Python.

William Soprano05/11/12
1079 views
0 replies

Video: New Django Hosting Platforms

In this panel, we speak to a number of the people behind these new platforms to discuss what benefits they offer, what challenges they face, and what the Django project/community can do to encourage their growth.

Steven Lott05/11/12
2904 views
0 replies

Rants On The Daily Grind of Building Software

For some people, Tools Trump Language. Sadly, I've also had customers with ancient code they could no longer compile or maintain because the tools were out of support.

William Soprano05/10/12
598 views
0 replies

Djangocon Videos Continued

This video will go over how to handle many common solutions not currently described in the core documentation and give an in-depth look (with demonstration) at the how and why of several advanced security topics.

David Winterbottom05/10/12
686 views
0 replies

Using Pip and Requirements.txt to Install From the Head of Github Branch

Solving the problem of running pip install -r requirements.txt which will not pick any commits after d636b803 until requirements.txt is updated.

Stoimen Popov05/09/12
1097 views
0 replies

Bonus Algorithm: Run-Length Encoding

Run-length encoding is a data compression algorithm that helps us encode large runs of repeating items by only sending one item from the run and a counter showing how many times this item is repeated.

Stoimen Popov05/09/12
5522 views
0 replies

Algorithm of the Week: Determine if a Number is Prime

Stoimen Popov is back with another episode in his Algorithm of the Week series, and this week he tackles prime numbers. Stoimen begins with a very basic (brute force) approach, and then refines his algorithm to be far more effective, though it still works best for smaller numbers.

William Soprano05/08/12
1177 views
0 replies

Two Videos From DjangoCon

This talk will go through the deployment system that we have built at Urban Airship and introducing the concepts of caching/covering the best practives of using Djangos cache backend.

Eli Bendersky05/08/12
887 views
0 replies

Making code compatible with Python 2 and 3

In my opinion, to make the migration easier, it makes sense to write code that can run on both Python 2 and 3, at least for some time.

Steve Ferg05/08/12
607 views
0 replies

A Look into Python Decorators

In this post I will show you what the wrong end of the stick looks like, and point out why I think it is wrong. And I will show you what I think the right end of the stick looks like.

William Soprano05/07/12
561 views
0 replies

The Science of Community Management: DjangoCon Keynote

Django con keynote speaker gives his two cents on social communities involving developers

Chase Seibert05/03/12
2357 views
0 replies

Deploying Django Staticfiles to Heroku via Hudson/Jenkins

In this post, Chase Seibert discusses two asset managers for Django that bundle static resources for deployment to a CDN. With both libraries still in development, Chase ran into a couple of issues starting off and he tells us how to avoid these.

Chase Seibert05/07/12
1023 views
0 replies

Django Performance: Latency Kills

Do you know how many database queries your Django pages are making? If you're like me, you probably don't know exactly. That's the beauty of the ORM; it abstracts database access to such a level that you rarely have to think about it.

Corey Goldberg05/06/12
649 views
0 replies

Python - Search a Local or Remote Splunk Server

Corey Goldberg gives us some basic instructions for searching Splunk and Python and then walks us through the process of using the tools.