Tips and Tricks

  • submit to reddit

Git - Simple File Management

Files can be added, committed and removed from git repositories using one or more of the following commands: Adding a file named "testFile.xml" to the...

0 replies - 1623 views - 05/21/13 by Matt Vickery in Articles

Ruby/Python: Constructing a taxonomy from an array using zip

As I mentioned in my previous blog post I’ve been hacking on a product taxonomy and I wanted to create a ‘CHILD’ relationship between a...

0 replies - 2482 views - 05/19/13 by Mark Needham in Articles

It Takes About Two Months to Write a Technical Book

A lot of people will tell you writing a book is hard. I’m here to tell you it’s not. Solving the Hamiltonian path problem is hard, writing a book just...

0 replies - 1303 views - 05/19/13 by Swizec Teller in Articles

Putting breakpoints to HTML templates in Python

Python offers manydifferenttemplate engines for web application development to turn your view logic to HTML code on the server and then send the resulting HTML...

0 replies - 596 views - 05/17/13 by Mikko Ohtamaa in Articles

The Big List of 256 Programming Languages

Summer typically brings lots of vacation time for people. Instead of sitting around and being lazy, why not take the time to learn a new programming...

0 replies - 7997 views - 05/16/13 by Robert Diana in Articles

Wasp's Nest: A Lock-Free Concurrency Pattern In Python

In recent work on PyMongo, I used a concurrency-control pattern that solves a variety of reader-writer problem without mutexes. I doubt I'm the first to think...

0 replies - 387 views - 05/13/13 by A. Jesse Jiryu Davis in Articles

Perfect Workflow in Sublime Text 2

I previously wrote about my Sublime Text setup. Well, Tuts+ has published a quite nice Sublime Text tutorial showing most of Sublime’s features. Regardless...

0 replies - 4726 views - 05/07/13 by Juri Strumpflohner in Articles

API Usability: Think of the Humans!

API Usability from Øredev Conference on Vimeo. APIs are consumed by programs, but those programs are built by humans. A good API is one that both programs...

0 replies - 2065 views - 05/06/13 by Mitch Pronschinske in Articles

Converting presentation slides to HTML blog post with images

Here is a Python script to convert a PDF to series of HTML <img> tags with alt texts. It makes the presentation suitable embedded for a blog post and...

0 replies - 3503 views - 05/04/13 by Mikko Ohtamaa in Articles

"Await" in Python

In Guido van Rossum's PyCon 2013 keynote, he presents "a new, interoperable approach to asynchronous I/O that is being developed for inclusion in Python...

0 replies - 1329 views - 05/03/13 by Shannon Behrens in Articles

Rolling Dice for Normal Samples in Python

A handful of dice can make a decent normal random number generator, good enough for classroom demonstrations. I wrote about this a while ago. My original post...

0 replies - 2464 views - 04/30/13 by John Cook in Articles

Algorithm of the Week: BK-Trees (from "Damn Cool Algorithms")

This is the first post in (hopefully) a series of posts on Damn Cool Algorithms - essentially, any algorithm I think is really Damn Cool, particularly if it's...

0 replies - 8223 views - 04/30/13 by Nick Johnson in Articles

Links You Don't Want to Miss (Apr. 30)

The Diploma's Vanishing ValueThis article from The Wall Street Journal challenges the popular belief held among many graduating high schoolers and parents that...

0 replies - 5375 views - 04/30/13 by Allen Coin in Articles

Pulling Data From Pages That Don't Expect It

In this seriously in-depth Pycon talk, we learn how to use Python to scrape data from web sources not conventionally built to supply it:

0 replies - 599 views - 04/30/13 by Eric Gregory in Articles

Another Thing About Python's Threadlocals

As the maintainer of the connection pool for PyMongo, the official MongoDB driver for Python, I've gotten far more intimate knowledge of Python threads...

0 replies - 776 views - 04/29/13 by A. Jesse Jiryu Davis in Articles