If you don’t want simpletal filtering out   then the following function needs to be added to simpleTAL.py:

 def skippedEntity (self, name):
     self.log.info ("Recieved skipped entity: %s" % name)
     self.characters( unichr(sgmlentitynames.htmlNameToUnicodeNumber.get (name, 65533)))

If you are using HTML templates with SimpleTAL it will pass through HTML comments (previous to version 2.2 this was not true.)  However, the same cannot be said of XML templates.  In version 3.8 of SimpleTAL, support was introduced for passing through HTML comments but only if you have PyXML installed! Continue reading »

The one thing I have always hated about Microsoft is its predatory business practices that very deliberately try to undermine its competitors.  The whole “embrace and extend” strategy of purposefully breaking standards bothers me on many levels.  I am much more respectful of companies that concentrate on offering superior products and that is why I have always liked Apple.  So, you can imagine my shock at seeing the following pop-up when I was evaluating Apple’s new Mobile Me service. Continue reading »

broken iphone screenMy iPhone suffered one too many drops recently and as a result the glass was shattered.  Although the iPhone glass is incredibly tough it is not indestructible.  It is glass after all!  Well, I did my research and I tried to fix it on the cheap.  This is my sad story.

Continue reading »

The advanced search screen in flickr does not give an option to search by camera type, however, there are tricks that allow you to do exactly that.  Here’s how …

Continue reading »

What is the difference between UNIX Access, Modify, and Change Times?

This is a silly little thing that I consistently forget … or at least forget some of the subtle differences between these three measures.
Continue reading »

This is one miserable problem with a very simple solution. It has to do with multiple python interpreters in mod_python v.3.2.8 and multiple virtual hosts. To remedy the situation, add the following line inside your <VirtualHost> declaration in your apache conf file:

PythonInterpreter main_interpreter

Restart server and all will be better. For more info see trac ticket #3455

UPDATE: All is not well in the world of mod_python and trac.  The above solution does improve matters but there are still issues.  Many are suggesting to use mod_wsgi with trac to manage multiple sites on virtual hosts.  Is this the beginning of the end of mod_python?

It is possible to have more than one trac site on one host.  This article explains how to accomplish this using apache, mod_python, and trac on a Red Hat based system (although the principles easily translate to Ubuntu based systems) so that each of your sites has an address like trac.example.com.

Continue reading »

This article describes common functionality that is often thought lacking in ksh but is just hiding in unintuitive corners (such as command line completion!)
Continue reading »

What if you have found a nice image that you want to use on your site but it does not match your colour palette? Or, what do you do if you have decided to change the colour palette of your site but you do not want to change your graphics? This article explains some simple things you can do in GIMP to solve your problem.

Continue reading »

© 2012 rootsmith blog Suffusion theme by Sayontan Sinha