5dollarwhitebox.org - theboxownsyou

  • blog
  • projects
  • articles
  • tech wiki
  • about
  • login
Home › Blogs

RSS Feed

drks's blog

Cement CLI Application Framework for Python 0.7.2dev - Testers Welcome

drks — Sat, 2010-03-06 11:06

Hello hello. I've spent quite a bit of time cleaning up The Cement CLI Application Framework and pushing it closer to a one-point-oh release. For the most part I'm completely happy with the code, but I know there will be some things that pop up. Also, before a true 1.0 release I really need to add test cases. Dunnnn dunnnnnnnnnn.

  • Add new comment
  • Read more

Ruby ParseConfig 0.5.2 Released

drks — Sat, 2010-02-27 19:08

The latest version of Ruby ParseConfig library is now available. This release has the following changes:

Sat Feb 27, 2010 - v0.5.2
- Re-releasing under MIT License.
- Fixed issue with the add() method where if you added a group outside
  of the import_config() method, the group would not be properly added to
  self.groups[].
- Added feature that if you attempt to add a group that already exists, the 
  groups will be merged together.  Any existing params in the original
  group will be overwritten by the new ones.

  • Add new comment
  • Read more

Cement CLI Application Framework Version 0.6 Released!

drks — Wed, 2010-02-03 10:42

I've just finished releasing Cement-0.6 to PyPi. I'm really proud of how the project has turned out, and how much time it currently saves me every time I start a new project. I really hope the community starts to work with it and that it provides a solid development platform from which to base their applications.

This version has a lot of enhancements, and provides the following features:

* Multiple Configuration file parsing (default: /etc, ~/)
* Command line argument and option parsing

  • Add new comment
  • Read more

A Better Way To Write Linux Command Line Applications with Python

drks — Thu, 2009-12-17 02:41

I've spent the last week or so working on a new project to standardize how I write Linux command line applications, and also make it easier to reuse helper code and plugins. The result is the Cement CLI Application Framework for Python.

  • Add new comment
  • Read more

Rebuilding MacFuse SSHFS on Mac OSX Snow Leopard (64bit)

drks — Wed, 2009-10-07 21:34

This is more for my own reference, as a lot of my blog posts are. But after following the examples of a few hits I found on Google, the following is the fix that worked. For those that don't know, with the release of Mac OSX Snow Leopard MacFuse's SSHFS would no longer work. I would constantly receive the error:

remote host has disconnected



After googling a bit I came across Racker Hacker's fix that should have worked, however doing so introduced a second problem. The pre-compiled binaries from MacFuse are built against the standard 32bit kernel that OSX Snow Leopard ships with. I on the other hand am running the 64bit version of the kernel, therefore rendering my MacFuse install busted.

The fix for me was to checkout the latest development sources, compile, and upgrade MacFuse on my machine. The following steps outline how I did that via the shell:

  • 6 comments
  • Read more

Ruby ParseConfig 0.5 Released - Easily Parse Standard *Nix Style Config Files

drks — Mon, 2009-09-21 17:35

Latest update of the Ruby ParseConfig library adds a few new features, including the ability to do [grouping]. For example, reading a MySQL config file:

#!/usr/bin/ruby
 
require('rubygems')
require('parseconfig')
 
c = ParseConfig.new('./my.cnf')
puts
puts "Available config groups: #{c.groups}"
puts
puts "config['client']['user'] => #{c.params['client']['user']}"
puts "config['client']['password'] => #{c.params['client']['password']}"
puts

And the output:

 

  • 2 comments
  • Read more

Updated Packages of PHP/MySQL/Python/Etc Available for RHEL5

drks — Thu, 2009-09-10 23:38

A new project has emerged called the IUS Community Project. What is that you ask? Well, IUS stands for 'Inline with Upstream Stable'. The project is geared toward creating and maintaining rpm packages of the latest stable versions of software such as PHP/MySQL/Python/Etc on Red Hat Enterprise Linux and CentOS (and others).

  • 8 comments
  • Read more

Python: Making '.bak' Files/Directories Without Clobbering Existing Ones

drks — Mon, 2009-07-20 19:11

Inevitably we all need to read/write new files and modify existing files. When scripting for different projects, I almost always need to update a configuration file here or drop something into a system file there (like /etc/hosts or similar). The first thing you want to do however is make a safe backup of whatever file you are modifying before you alter it.

  • 2 comments
  • Read more

Four Hours Wasted Over a Parenthesis! (Python + SQLAlchemy)

drks — Tue, 2009-06-09 16:58

I've spent the last half day banging my head against the wall wondering 'WTF!?'. I'm working on a semi-complex pluggable framework type application. As part of this app, I have a shared database handler. So of course, I thought there was something underlying with SQLA that was limiting me from being able to accomplish the task as I sawr it in my head. I tried so many combination of mapping classes to database tables, and no matter what I would get the following exception:

raise exc.UnmappedInstanceError(instance)

  • 2 comments
  • Read more

Python: Howto Build a Debian Package for Python Applications

drks — Sat, 2009-05-02 20:12

In my feeble attempt to finally learn how to create .deb packages for Debian/Ubuntu I've found that I seem to be a complete johnny at it. I've been an RPM Developer for the last two and a half years, so you have to cut me some slack... going from _a_ rpm spec file to this .deb craziness is beyond me. Hopefully after this weekend I will be less of a johnny, and have a grasp on the subject of creating Debian/Ubuntu packages.

  • 1 comment
  • Read more
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • next ›
  • last »

Syndicate content



Who's online

There are currently 0 users and 1 guest online.
  • blog
  • projects
  • articles
  • tech wiki
  • about
  • login

5dollarwhitebox.org is not responsible in anyway for actions performed based on information found on this site.