Skip navigation

I read this article on php-fpm init script but it didn’t have one.

You can use the php-fpm init.d script below. You need to change the variables at the start for your bin, conf, and pid to suit your set up.  PHP-FPM works great with Nginx.

Not sure if WordPress will format this script right so you can get as a text file here:

http://images.honewatson.com/random_files/php-fpm.txt

Read More »

Advertisements

Multi form “http post” with python.

Read More »

The geniuses over at Dreamhost decided to upgrade their Rails without telling anyone and without providing instructions on how to upgrade older apps meaning hundreds of websites crashing and not working for days.
Read More »

Joomla 1.5 has an interesting quirk with Placehere Content Item Module.

Read More »

Drupal does not show the correct $node->path when a user is not authenticated in some drupal pages.

Read More »

An easy way to fix your windows mbr with the Ubuntu LiveCd.

Read More »

A little article here which gives a few great PR tips for press releases.

Read More »

Read some interesting notes on Nassim Taleb.

Read More »

I’m creating a list of Web 2.0 landing pages.

Read More »

Recurring subscription payments in Ubercart are covered by this module.

Read More »

Some nice candidates for Serif siFR Flash Fonts are:

  • Serif Bold (Standard Gimp Linux)
  • Utopia
  • DejaVu Serif Bold
  • Courier 10 Pitch Bold

A nice san-serif font Nimbus Sans L Bold Font.  Be good to use with siFR Flash Fonts.

Deki Wiki is cool but Apache is really too bloated.

Here’s how to get it working on Nginx Ubuntu.

Read More »

Want to bulk delete .svn folders recursively?

Warning: Before you use this command make sure you have changed to the correct directory where you want to apply this. example:

cd /mysvn/path/iwant/to/delete/svn/folders

find -name "\.svn" -exec rm -rf {} \;

If you want to set a limit when you iterate a list in python slice it up by doing this:


for i in list[0:6]:
print i

This will list the first 5 items.

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