From the Burrow

First Post Test!

2011-08-25 00:00:00 +0000

Hey all! This is my first live test of my python library. In the next post I will show the code used to post this post. Wooo!

BPython

2011-08-25 00:00:00 +0000

I’ve been using pyshell as my interactive python shell of choice for quite a while now and being quite happy with it apparently blinkered me as I missed the fantastic bpython . It’s CLI based and provides in-line syntax highlighting and autocompletion, if the others arent quite doing it for you give it a try….hell, give it a try anyway!

Another tiny app idea...

2011-08-25 00:00:00 +0000

This is one of those ideas I expected to go away after a while but its still here especially after skim reading the session IRC log from the last post:

I find watching a IRC + slide session is much better than reading the logs later. Even though its both just text and visuals it feels more ‘alive’ the first time round.

I think I may make a sort of replay tool which lets you watch the session and changes the slides at the correct times. I’m not sure if I will integrate this into something like Lernid or make a tiny dedicated app…hmm!

Yet another thing for the todo list!

Wordpress Library And Google Neglect

2011-08-24 00:00:00 +0000

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

Mastodon