From the Burrow

Zenoss Wmi Memory Leak

2011-08-23 00:00:00 +0000

Modifying 'Gnome Blog Poster'

2011-08-23 00:00:00 +0000

One of the shortcomings of gnome blog poster is that it insists on treating every return key press and a paragraph…This is a pain in the backside if you are trying to post code (as you no doubt have noticed in the posts below these).

I’ve had a wee go at tweaking this and this post is the test.

Gnome blogger sans paragraphs

2011-08-23 00:00:00 +0000

For those who want to use gnome blog poster sans paragraphs the fix is to modify /usr/lib/pymodules/python2.7/gnomeblog/rich_entry.py

Replacing line 23
	self.set_pixels_below_lines(16)
with
	self.set_pixels_below_lines(0)

..and..

Replacing line 26 & 27
	html_converter.para_tag.opening_tag = "< p>"
        html_converter.para_tag.closing_tag = "< /p>"
with
        html_converter.para_tag.opening_tag = "< br>"
        html_converter.para_tag.closing_tag = ""< br>

I’ll probably post a patch some time as there is a bug reported in bugzilla about this. </pre>

Exchange Autoforwarding

2011-08-23 00:00:00 +0000

Look like we have a good number of people who need Auto forwarding removed from their account: This is easily done through AD Users and Computers on Windows (though in that link where it says ‘Mail Delivery’ it should be ‘Delivery Options’ ) However it looks like this will be very easy through LDAP also as their is an attribute called ‘altrecipient’ which returns the distinguished name of the contact in AD. I’ll ensure I wrap this in my library, might be a job for idle time tonight!

Anyhoo back to business!

Blogging from Python

2011-08-23 00:00:00 +0000

This looks like it will be a perfect base for a library.

If anyone is thinking of rolling there own wordpress python library start here:

python-blogger

AD, Ldap, Range

2011-08-23 00:00:00 +0000

When using ldap to interact with Active Directory you can sometimes run into an odd issue with ranges.

Say for example you have a group with more than 1500 members. When you query the properties of the group where you would normally see ‘member’ you see ‘member;range=0-1499’ so you only get the first 1500 results.

Apparently you can change this setting on the server but odds are that you won’t be allowed to do this just for your scripting pleasure!

To remedy the issue, check out this great function on stackoverflow

Wordpress and Python

2011-08-22 00:00:00 +0000

I am starting to sketch out a python library for wordpress that makes wordpress appear to python as native lists and dicts. Maybe it’s a phase I’m going through but so many things can be expressed in terms of either lists or dicts. Wordpress could have quite a nice fit for this. The posts are dicts is the format {“title”:””, “body”:””, “tags”:[]} etc. The tags are a dict with each tag being a key and the value being a list of posts. I would have to make things as lazy as possible so as not to try to pull down your entire archive when you log in…but it could be quite handy. I’ll let you know if/when I have a tinker with this.

Testing a wordpress client for Ubuntu

2011-08-22 00:00:00 +0000

Trying out ‘Blog Entry Poster’ (catchy name) as it is about as minimal as you can get…to be honest I really like it so I hope this works!

Minimal Client Image Uploading

2011-08-22 00:00:00 +0000

As mentioned before I’m using “Blog Entry Poster” on ubuntu. Its small and fast and well check out how little there is to it…

I’m using this as an opportunity to test the media uploading as apparently its just drag and drop…if you see the image above, it is!

EDIT: Bugger…I’ll have to dig into that then!

Been a long time...

2011-08-22 00:00:00 +0000

..since I’ve posted here. To be honest after google+ came out I was certain I was going to delete this and migrate there fully. It was an inspiring talk by lorna jane mitchel at ogg camp however that has kicked me in gear and got me back here and realizing that I’ve got a lot of tech bit and bobs I could be posting. So hopefully some of this will end up be useful to someone, lets get cracking !

Mastodon