Monday, December 13, 2010

Including Jpeg support in PIL on centos box

There are a lot of posts out that say to install the libraries jpeg and jpeg-devel prior to installing PIL, but this did not work for me on Cento. For example this site http://www.jroller.com/RickHigh/entry/installing_pil_python_image_library suggests using the command:

$ sudo yum install freetype freetype-devel jpeg jpeg-devel libpng libpng-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: jpeg <<----- note the error here
No Match for argument: jpeg-devel <<----- and here
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libpng to pack into transaction set.
......



Instead use:

$ sudo yum install freetype freetype-devel libpng libpng-devel libjpeg libjpeg-devel


If you have already got as far as installing PIL, delete it from the site-packages directory and reinstall, I use easy_install PIL, and this will rebuild PIL, this time with jpeg support.

--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------

Sunday, October 3, 2010

Training Horses like learning a Language?


I've been trying to articulate how my methods of training horses have changed over the last couple of years, thanks to a number of books and in particular Clinton Anderson. It's about teach that when a give a certain aid, this is what I want the horse to do. But isn't that what I've always done? Take for example teach a rein back. I would apply some pressure on the reins and a bit of leg and keep increasing the pressure until the horse would step back, then I would reward him. Over time I would hope to reduce the amount of pressure I'd require to get the rein back.

The new method is only subtly different. First I will teach the reinback from the ground, light pressure on the chest means go back, then when I'm on board apply gentle pressure with the reins at the same time a pulling a rope around the horses neck. The instant the horse makes any attempt to go back, I drop the reins to indicate that was the right thing to do. After a bit I'll stop using the rope and include moving my weight back and finally add use of the legs. This way I've broken down the problem into steps and never had to apply a lot of pressure to show what I want. This second approach has meant my horses have become much lighter and stop and reinback with much less resistance because they have learnt the language of the aids.

So I would say my old method was like arriving in a new country where nobody speaks my language and beyond speaking a bit slower and louder, I don't get any help in learning this language. It is a slow and painful process! The second method is like having a teacher coming with you a helping gain fluency step by step at a pace that suits you. So as a horse trainer, I am focusing more on my skills as a teacher than my skills as a rider.

Tuesday, May 4, 2010

Mad Dog the Superstar


Travelled up to Kilkenny yesterday (3.5 hours each way) for the excellent Amateur show that is held there on May Bank Holiday each year. It's been lucky for me in the past, but with no show since last October and straight into one of the toughest competitions of the year, I was stomach churningly nervous as I wait for the class to get under way. I needn't have worried, Mad Dog shook off the winter blues and returned to form to win the class in fine style, loving all the excitement and attention. Supercub finished fourth in the later speed class so very tired but happy horses and rider arrived home late last night.

http://stabletostable.com/en/2010/05/kilkenny-sji-amateurs-warrington-ec-03052010/

Saturday, May 1, 2010

Dolores has healthy French Buffet Foal - the waiting is over



Phew, the waiting is over! Dolores broke her pelvis when she was 1 year old and nobody except me and the vet thought she had a chance. But after waiting for 6 month, minding her day and night, neighbours all being called on more than once to help me get her on her feet again in the middle of the night, waiting for the scan at 3 years old to see if I could put in her in foal, waiting to see if she would go in foal, waiting to see if she would carry the foal full term, waiting for her to foal, the waiting is over and the horse count has gone up once more.

In the early hours of the 1st of May, out in the field because I thought I had more waiting to do, Dolores gave birth to a health filly foal. She is proving a calm and competent mother and is delighted with her foal. More photos to follow!

Saturday, April 24, 2010

SPCs Talk at Labour Party Environment Forum

Here is what I plan to say - but there is an hours journey to get there - it could all change!

Hello, my name is Phoebe Bright and I'm a member of Cork Environmental Forum, on the executive of Feasta (an Economics think tank), a Long Term Thinker, a Techie and a horse addict. I'm going to speak very briefly, only the role of SPCs, my experience of sitting on one of the Cork County SPCs and a couple of suggestions for how we can make them more effective.


Each County and City Council has a number Strategic Policy Committees made up roughly equal numbers of councillors and external representatives from organisations representing the environment, economic and social pillars. The expectation for SPCs was that they could provide a different perspective during policy development. For example, the policy planning unit might feel they don't more input into the farmer's market's. Should there be provisions in the upcoming Development Plans and if so what? A good question for an SPC. Or, are there enough provisions for dogs in the City? If not, what changes to policy should we consider?

That, as far as I can see from the documentation, was the expectation. The reality for me, and many of my fellow external representatives, was that the SPC had become another tick box on the road to policy implementation. Typically, we would receive documents for the next meeting a few days before the meeting, or at the meeting and we would spend 20 mins reviewing the Retail Policy for the City. As the councillors had already participated in discussion on this policy during it's development, they had nothing more to say other than to repeat their position on this policy and the external representatives were desperately looking to find something intelligent to contribute from a hasty reading of the document. As we saw these documents near the end of their progress from idea to publication, there was little chance of our input having any impact, even when we were able to make useful contributions. There was an understandable air of frustration from many of those involved.

The SPCs have lately been disbanded and reformed and we hope for better things going forward. I certainly feel the idea of the SPC is valid and could of great benefit in widening the discussion on policy and helping the external representatives and their organisations to better understand the thinking behind policy development and to challenge the mindset of the of the elected councillors.

I would ask you to consider two thoughts going forward, first the questions we ask and second the language we use.

Beth Novak did a talk on for the Long Now Foundation on what Obama's administration has done on Open Government in the last year, what they have learned and their plans for the future. On President Obama's first day in office he signed a memorandum on Open Government, committing all the departments and agencies to "transparency, participation, and collaboration. One of the lessons they have learnt to successfully encourage participation and collaboration is to ask good questions. In this case, good questions are SMART questions (Specific, Measurable, Achievable, Relavent and Time bound) http://en.wikipedia.org/wiki/SMART_criteria. So if you are an elected member and an issue arises during the development of policy, why not suggest that this be brought before an SPC? If you are on an SPC, try to get these types of questions on the agenda.

Beth Novak's talk on Open Government: http://www.longnow.org/seminars/02010/mar/04/transparent-government/



The second suggestion comes from a gem in the book The Intelligence Advantage . The book talks about how culture is about language, the way we talk about our problems, the way we listen and the way we discuss. If we want to test whether change is happening, then all we have to do is listen to the way that language is used. If that has not changed, the culture is not changing either.

So if we want a different discussion in our SPCs, a different perspective and viewpoint, then we need to change the balance so that the councillors are drawn into a different conversation. At present the Chair of each SPC is part of the council, so my suggestion is to have the meetings chaired or facilitated by an external representative.

I could am happy to share further experiences and ideas for SPCs and open government, so please feel free to catch me in the next break or contact me later.

Thursday, April 22, 2010

The Language of Change


Dipping into The Intelligence Advantage - Organizing for Complexity by Michael D McMaster a gem of a book, I came across this section, which seems particularly pertinent to our situation in Ireland.

Organisations first appear in Language

Language is at the center of society, cooperation and the coordination of action. All social organization occurs in language. Community is a function of language. How we distinguish those who "belong" from those who do not is by the way they speak. Even when the distinction is based on common practices, these practices emerge from a society where language was the fundamental organizing medium.

A corporation, like a community, is held together by it's language, given meaning by its language, and is distinguished from other corporations by its language. IBM, Apple and NEC (that dates it!) all have unique language, unique stories and unique ways of speaking. Equally important, their unique ways of understanding things and listening. These ways of speaking, listening and understanding not only constitute the culture of a company, but they also constitute a company's unique way of organizing, managing and relating to the marketplace....

and further on...

If there is no change in the way that problems are described, the way challenges are spoken about, or the way values are stated, then it is very unlikely that any major change is occurring in that corporation.


I think there is a groundswell of opinion in Ireland that significant change is required in the culture of our public organisations. We will know that our decision makers and politicians also want change when we here a change in the language they use to describe our problems and how they talk about the future.

Friday, March 26, 2010

Installing GIT on Centos 5.4

Following directions from this site:http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/

I got the error:

[root@tricostar-nwlc git-1.7.0.3]# make prefix=/usr/local all
/bin/sh: curl-config: command not found
GIT_VERSION = 1.7.0.3
/bin/sh: curl-config: command not found
* new build flags or prefix
CC fast-import.o
....


When trying to make GIT. After a bit of googling, found that I needed to include curl-devel as a dependancy so the following instructions worked for me:

yum install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
yum install libcurl3-openssl-dev
wget http://kernel.org/pub/software/scm/git/git-1.7.0.3.tar.gz
tar xvfz git-1.7.0.3.tar.gz
cd git-1.7.0.3
make prefix=/usr/local all
make prefix=/usr/local install