Skip navigation

Monthly Archives: May 2008

You can’t use ‘tidy’ python binding with App Engine as far as I know so use this for cleaning up your xml and html characters:


import cgi
string = str('I hate monkey & hyena characters')
cgi.escape(string)

Should print out:

I hate monkey & hyena characters

If you want to change the content type or mime type for your Google App Engine template:


self.response.headers['Content-Type'] = "application/xml"

Full example:


class MainPage(webapp.RequestHandler):
def get(self):
greetings_query = databasemodel.all()

template_values = {
'greetings': greetings_query
}
self.response.headers['Content-Type'] = "application/xml"
path = os.path.join(os.path.dirname(__file__), 'templates/index.xml')
self.response.out.write(template.render(path, template_values))

Here’s a quick set up for Google App Engine’s SDK on Nginx.

Read More »

One easy way to compare lists in python is to use Python Sets.

Read More »

Web 2.0 Design Tutorials.

Read More »

A list of cheap web 2.0 logo banner avatar design services.

Read More »

A Beautiful Site is a beautiful site and it shows in this article how to have external PopUp links using Jquery.

Read More »

Here is a nice Google Map API PHP API, class, functions, library etc.

Read More »

You can send more than 500 emails per day by using Google’s recommendation of creating more than one account for sending.

Read More »

The solution:

updatedb
locate CA.sh
locate CA.pl
…./CA.sh –newca

Start an SVNServe Daemon

svnserve -d –listen-port=5555 -r /home/svn/dir

update [table_name] set [field_name] = replace([field_name],'[string_to_find]’,'[string_to_replace]’);

With sed you must include 3 brackets:

sed ‘s/what/it/’

sed ‘s/http:\/\/.*\.photobucket\.com\//\//’ new.txt

Read More »

Robb Wolf writes a brilliant comparison of Weston Price vs. Paleo Diet with a fair look at both sides of the argument.

Read More »

Decentralized Social Networking articles of interest. Read More »

If you get the error:

mysqlimport: Error: Table ‘database.mydatabase’ doesn’t exist

Read More »

Proper syntax for svn import on Ubuntu. Read More »

Parsing feeds in Python is best achieved with Mark Pilgrims Universal Feed Parser.

Read More »

A simple tutorial on how to obtain geo coordinates with php and the Google Maps API.

Read More »

Setting up Postfix can be a pain. Here’s the ultimate cheat sheet to setting up Postfix.

Read More »

Amazing Grace is a beautiful WordPress theme from Vladimir Prelovac.

How to use the WordPress bundled jQuery.

Read More »

A lists of Color Pickers for Ajax.

A selection of Ajax and Javascript scripts, forms, controls for Calendars and Time. Read More »