Feed on

Last week I finished a Django project and needed to put the django app behind Apache. During the development in Django we used buildout. Buildout allows you to create a recipe to get the Django framework and dependencies on other python parts. It supports version pinning and allows you to download your dependencies thru pypi eggs or subversion.

If you want try buildout for Django try this how-to.

Buildout is well known in the Zope/Plone world and can be used in both development and production stages. Because a production mod_python/Django setup is a bit different them I’m used to (using Zope behind Apache), I decided to use buildout to generate a Apache virtual host config.

You can follow these these steps on this wiki for a buildout with mod_python:

https://tracpub.yaco.es/djangobuildout/ (warning! just click thru the SSL errors)

Vandaag is Ubuntu 9.04 uitgekomen. Deze release is ook bekend als ‘Jaunty Jackalope’. Op donderdag 7 mei 2009 is er een release party georganiseerd door NN-Open. Vanaf 16:00 gaan de deuren open. Kom langs voor een borrel!

Release party in agenda NN-Open met locatie details.

And your dog too…

At the office we have a saying what we use as a funny insult,

And your dog too…

This weekend I decided to register the domain name. Ha ha ha, www.andyourdogtoo.com

Today the release candidate of Ubuntu Jaunty came out. Ofcourse I want to use the latest and greatest Ubuntu! After running ‘updatemanager -d’ to do a dist-upgrade I got a warning that fglrx (ATI proprietary driver) wouldn’t work. Pff so what, I want to upgrade…

Dist-upgrading to Jaunty didn’t go smooth. But who said this is a easy road when you try beta stuff. First I had to run the upgrade from the terminal with ‘do-release-upgrade’. When it was finished (to early..) I ended with a broken upgrade. Fortunately I succeeded to upgrade after booting into recovery mode with the option ‘fix dpkg’.

Hmm all seemed well after booting but I endedup with all strange lines on my laptop screen. No login screen, even when I tried the open source ATI driver. Seems the flgrx driver interferes with the radeon driver…

See: https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver

Fixed it with:

  sudo /usr/share/ati/fglrx-uninstall.sh  # (if it exists)
  sudo apt-get remove --purge fglrx*
  sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
  sudo apt-get install xserver-xorg-video-ati
  sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
  dpkg-reconfigure xserver-xorg

Now Jaunty is running like a crazy kralting using open source ati drivers. Compiz works great even with a dual head setup. There one flaw when playing 3D games (like Nexuiz) Ubuntu freezes…

Google going haywire

As usually I was doing a search on Google and saw that the found page were marked as offensive. Perhaps not so strange but it in the search results normal sites were found with no strange stuff on it. It turns out that every site is marked as offensive… You search for bunnies, Google says offensive.. Search for Google:

It says in Dutch: This site can be harmfull for your computer. Seems like a little bug in the search, lol.

For a Zope FormLib based form I wanted a ‘Cancel’ button. I tried some googling but couldn’t find any info on it. Here it is, it isn’t so hard:

First do some imports:

from plone.app.form.validators import null_validator
from Products.statusmessages.interfaces import IStatusMessage

The cancel function:

@form.action(“Cancel”, validator=null_validator)
def action_cancel(self, action, data):
….context = aq_inner(self.context)

….IStatusMessage(self.request).addStatusMessage(_(‘Cancelled’), type=’info’)


nb. wordpress messes with the indentation, hence the dots. time for a code mark-up plugin….

I’m using KSS in Plone to ajaxify user interface actions. When you’ve got a server-side KSS method and would like to call a client action, here’s how it is done:

self.commands.addCommand(‘alert’, ‘.dummy-selector, message=’I’m called from the server!’)

self.commands.addCommand(‘myKssAction’, ‘my-selector’, param_1=”, param_n=”)

This way you can do necessary things (like storing data from a form), update the info on the page and using the above to call a Jquery function to do fancy style effects.

Simple as that!

Ow yeah!

Here is the service guide for the HP Compaq NC8430 laptop: service manual. Seems there are no copyright restrictions. The guide is perfect for part number reference and disassembly.

« Prev - Next »