Tags
- android
- art
- beauty
- bible
- blogging
- brisbane
- christianity
- community
- dancing
- design
- development
- framework
- free
- God
- ideas
- javascript
- laptop
- life
- mercurial
- music
- musings
- people
- physics
- politics
- programming
- programming languages
- public transport
- pyconau
- pygame
- python
- refactoring
- scripting
- software
- story
- testing
- tips
- tools
- trosnoth
- troubleshooting
- twisted
- ubuntu
- web
- window manager
- wireless
Links
Archives
- July 2023
- March 2022
- April 2020
- April 2019
- March 2019
- January 2019
- November 2018
- October 2018
- September 2018
- April 2016
- September 2015
- August 2014
- April 2014
- February 2014
- January 2014
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- September 2012
- August 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- November 2011
- October 2011
- April 2011
- March 2011
- February 2011
- January 2011
- November 2010
- October 2010
- July 2010
- June 2010
- May 2010
- April 2010
Author Archives: J. D. Bartlett
Pseudo Terminals in Python
Summary In this post I’ll show you a Python script which becomes a pseudo terminal so that it can act as a man in the middle between your terminal emulator and a running process. In my example, the Python script … Continue reading
Python: Context-Sensitive Formatting
Introduction Python’s new string formatting syntax, introduced in Python 2.6, provides many advantages over the old %-based formatting. I’ve set out to extend this string formatting, in order to help developers avoid making silly mistakes like forgetting to quote special … Continue reading
Posted in long
Tagged conversion, formatting, free, programming, python, strings, tools
Comments Off on Python: Context-Sensitive Formatting
Vim and Breakindent
My contention: Programmers should never have to insert line breaks into long lines of code. Why: The position of line breaks in long lines of code does not contain any semantic information. Where coding standards limit line length, it is … Continue reading
Posted in long
Tagged breakindent, coding standards, compiling, editors, indentation, patching, programming, python, tools, vim
Comments Off on Vim and Breakindent
Import Graphs for Python
I was doing some Trosnoth refactoring recently, and I wanted a tool that would draw import graphs of the Trosnoth subpackages. After a quick search of the Internet didn’t give me what I wanted, I set about to write my … Continue reading
Posted in short
Tagged graphs, imports, programming, python, refactoring, tools, trosnoth
Comments Off on Import Graphs for Python