<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>rss / new tutorials</title><link>http://www.developerhell.com/feed/new_articles/python</link><description>the last 20 tutorials</description><language>en</language><item><title>Project browser in WxRuby</title><link>http://www.developerhell.com/out/Project_browser_in_WxRuby</link><guid>http://www.developerhell.com/out/Project_browser_in_WxRuby</guid><description>Advanced TreeCtrl tutorial</description></item><item><title>A Lightweight Approach to Aspect-Oriented Programming in Python</title><link>http://www.developerhell.com/out/A_Lightweight_Approach_to_Aspect_Oriented_Programming_in_Python</link><guid>http://www.developerhell.com/out/A_Lightweight_Approach_to_Aspect_Oriented_Programming_in_Python</guid><description>aspects.py library provides means to intercept function calls. Functions and methods (also in Python standard library and third party code) can be wrapped so that when they are called, the wrap is invoked first. Depending on the wrap, the execution of the original function can be omitted, or the function can be called arbitrarily many times. Wraps are able to modify the arguments and the return value of the original function. In the terminology of aspect-oriented programming, the library allows applying advices (wraps) to call join points of methods and functions in around fashion.</description></item><item><title>Using Pyke, the Python knowledge engine</title><link>http://www.developerhell.com/out/Using_Pyke_the_Python_knowledge_engine</link><guid>http://www.developerhell.com/out/Using_Pyke_the_Python_knowledge_engine</guid><description>This describes how to use pyke from within your python program.</description></item><item><title>Learning Python Programming Language Through Video Lectures</title><link>http://www.developerhell.com/out/Learning_Python_Programming_Language_Through_Video_Lectures</link><guid>http://www.developerhell.com/out/Learning_Python_Programming_Language_Through_Video_Lectures</guid><description>One of the upcoming projects I am doing (I will reveal it in one of the next blog post) is going to be written entirely in Python. I have a good understanding of Python but, same as I had with JavaScript, I have little experience doing projects from the ground up in it.

Before diving into the project I decided to take a look at a few Python video lectures to learn language idioms and features which I might have not heard of.</description></item><item><title>The state of Python profilers in two words. Use cProfile.</title><link>http://www.developerhell.com/out/The_state_of_Python_profilers_in_two_words_Use_cProfile</link><guid>http://www.developerhell.com/out/The_state_of_Python_profilers_in_two_words_Use_cProfile</guid><description>This is for people who still wonder what they should use every time. cProfile was added in Python 2.5 after much discussion about the downsides of existing profilers.</description></item><item><title>Python - 15 Line HTTP Server - Web Interface For Your Tools</title><link>http://www.developerhell.com/out/Python_15_Line_HTTP_Server_Web_Interface_For_Your_Tools</link><guid>http://www.developerhell.com/out/Python_15_Line_HTTP_Server_Web_Interface_For_Your_Tools</guid><description>I write a lot of command line tools and scripts in Python. Sometimes I need to kick them off remotely. A simple way to do this is to launch a tiny web server that listens for a specific request to start the script.</description></item><item><title>Python as Config Language -- Forget XML and INI files</title><link>http://www.developerhell.com/out/Python_as_Config_Language_Forget_XML_and_INI_files</link><guid>http://www.developerhell.com/out/Python_as_Config_Language_Forget_XML_and_INI_files</guid><description>A programming language has all the advantages as a language for encoding parameters.  I see why it&amp;#039;s rare -- too many programmers have spent too much time with MS&amp;#039;s abominable INI files and think it&amp;#039;s &amp;quot;normal&amp;quot;.</description></item><item><title>Using raw SQL in django</title><link>http://www.developerhell.com/out/Using_raw_SQL_in_django</link><guid>http://www.developerhell.com/out/Using_raw_SQL_in_django</guid><description>For a django project I&amp;#039;m working on, I need to run a simple query with COUNT and GROUP BY statements to collect some summary data. I tried working with the model API, and eventually fell back to using raw SQL instead.</description></item><item><title>Human-Readable Encryption Keys</title><link>http://www.developerhell.com/out/Human_Readable_Encryption_Keys</link><guid>http://www.developerhell.com/out/Human_Readable_Encryption_Keys</guid><description>Somehow, we have to present these random 128-bit keys to the user, and I think I&#039;ve found a pretty good way. We use RFC 1751, which defines a &#039;Convention for Human-Readable 128-bit Keys&#039; - basically just a mapping of blocks of bits to strings of English words.</description></item><item><title>Python: Some Concurrency Tricks</title><link>http://www.developerhell.com/out/Python_Some_Concurrency_Tricks</link><guid>http://www.developerhell.com/out/Python_Some_Concurrency_Tricks</guid><description>Here are a few concurrency tricks if you&amp;#039;re stuck using threads. I used these tricks years ago to write a Swing application in Jython, and I found them to be helpful enough to warrant a blog post, albeit a few years delayed.</description></item><item><title>Real World Performance On Boxing Day</title><link>http://www.developerhell.com/out/Real_World_Performance_On_Boxing_Day</link><guid>http://www.developerhell.com/out/Real_World_Performance_On_Boxing_Day</guid><description>Well, Ruby 1.9.0 landed yesterday, as expected. I&amp;rsquo;d be remiss if I didn&amp;rsquo;t start out by thanking matz, ko1, and all the other hackers involved in getting this milestone release out the door. It&amp;rsquo;s a great step for Ruby, and one that we&amp;rsquo;ve been waiting a long time for.</description></item><item><title>Damn Cool Algorithms, Part 3: Anagram Trees</title><link>http://www.developerhell.com/out/Damn_Cool_Algorithms_Part_3_Anagram_Trees</link><guid>http://www.developerhell.com/out/Damn_Cool_Algorithms_Part_3_Anagram_Trees</guid><description>When it comes to finding anagrams of words, a frequent approach is to use an anagram dictionary - simply put, sort the letters in your word to provide a unique key that all anagrams of a word have in common. Another approach is to generate a letter-frequency histogram for each letter in your word. (Both these approaches are more or less equivalent, in fact.) These approaches make the problem of finding exact single-word anagrams for strings very efficient - O(1) if you use a hashtable.</description></item><item><title>Python: asserting code runs in specific thread</title><link>http://www.developerhell.com/out/Python_asserting_code_runs_in_specific_thread</link><guid>http://www.developerhell.com/out/Python_asserting_code_runs_in_specific_thread</guid><description>My buddy JJ&amp;#039;s post to the BayPiggies mailing list reminded me of a little snippet I wrote a while back that others might find useful as well. Personally, I avoid threads like the plague, but if you are forced to use them it is generally handy to keep accurate tabs on how you use them.</description></item><item><title>Does Pylons have &#039;Conceptual Integrity&#039;?</title><link>http://www.developerhell.com/out/Does_Pylons_have_Conceptual_Integrity</link><guid>http://www.developerhell.com/out/Does_Pylons_have_Conceptual_Integrity</guid><description>On the Internet, I frequently see terms misapplied to other contexts. Whether its a basic definition misapplied to a different realm, or an analogy grossly misapplied to a context that is not in fact similar. Since this particular term &amp;lsquo;conceptual integrity&amp;rsquo; however was used as a beating stick on Pylons, I felt it&amp;rsquo;s something worth discussing.</description></item><item><title>Python LDAP Applications: Part 1</title><link>http://www.developerhell.com/out/Python_LDAP_Applications_Part_1</link><guid>http://www.developerhell.com/out/Python_LDAP_Applications_Part_1</guid><description>This article mini-series by Matt Butcher will look at the Python application programmers interface (API) for the LDAP libraries, and using this API, we will connect to our OpenLDAP server and manipulate the directory information tree.</description></item><item><title>A Byte of Python</title><link>http://www.developerhell.com/out/A_Byte_of_Python</link><guid>http://www.developerhell.com/out/A_Byte_of_Python</guid><description>&#039;A Byte of Python&#039; is a book on programming using the Python language. It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save text files, then this is the book for you.</description></item><item><title>Getting Started on Natural Language Processing with Python</title><link>http://www.developerhell.com/out/Getting_Started_on_Natural_Language_Processing_with_Python</link><guid>http://www.developerhell.com/out/Getting_Started_on_Natural_Language_Processing_with_Python</guid><description>The intent of this article is to introduce readers to the area of natural language processing, commonly referred to as NLP. However, rather than just describing the salient concepts of NLP, this article uses the Python programming language to illustrate them as well. For readers unfamiliar with Python, the article provides a number of references to learn how to program in Python.</description></item><item><title>Django Performance Tips</title><link>http://www.developerhell.com/out/Django_Performance_Tips</link><guid>http://www.developerhell.com/out/Django_Performance_Tips</guid><description>Django handles lots of traffic with ease; Django sites have survived slashdottings, farkings, and more. Here are some notes on how we tweak our servers to get that type of high performance.</description></item><item><title>A small introduction to Python Eggs</title><link>http://www.developerhell.com/out/A_small_introduction_to_Python_Eggs</link><guid>http://www.developerhell.com/out/A_small_introduction_to_Python_Eggs</guid><description>If you don&#039;t know what a Python egg is, it&#039;s simply a way of distributing Python packages, similar to RPM. There is also an easy method of installing them, using easy_install.</description></item><item><title>Django profiler</title><link>http://www.developerhell.com/out/Django_profiler</link><guid>http://www.developerhell.com/out/Django_profiler</guid><description>I wrote simple script that can be used to profile any Django-powered web-site and find how many SQL-queries are used per page, how heavy html-pages are, etc.</description></item></channel></rss>