Python Desktop Server Weblog 4.5.2003

a picture of myself

Münsterland.org

2003-05-04

Rescanning the SCSI bus on Mac OS X or Darwin

This calls out for a lazyweb post: I am in desperate need for a utility to rescan the SCSI bus under Mac OS X (or darwin - a console utility would be enough). The reason is a Minolta Multi II film scanner that's connected via SCSI. I currently need to restart my Mac to get it running. This is quite annoying, I would prefer to be able to do hotplugging like I was able to do under OS 8.6. I did find the relevant documentation on the IOKit functions needed, but I have to admit that I don't know Objective-C or IOKit enough to get anything useable together. Anyone up to the task?
posted at 23:43:28    #
 

Pictures? I give you Pictures!

If you read Daves going crazy with pictures stuff (and his musings about using sequences of pictures in one story), and you think this would be cool for the Python Desktop Server as well: it's already there Smiley

The PicturesTool gives you many ways to add pictures to your weblog. The first step though is to activate it. Just go to your picture preferences and fill in the picture path to point to a directory locally on your machine. Now to add a set of pictures, just put them in there (everything that PIL can read is fine). Then go to your pictures upload page and add a title and description for any pictures you want to upload. Press the upload button. Now in your pictures index page you have all your uploaded pictures listed. To use them in a story, just call the following macro:

$pictures.imageTag(PID, (200,150))

Put the pictures ID in instead of PID and maybe use another bounding box (the example uses a 200x150 pixel bounding box - pictures are always rescaled to fit the bounding box with preserving the aspect ratio of the original picture).

Another option to adding them to postings or stories would be to publish them as a picture blog. To do this, you just need to go into each picture that should be published in your picture blog and set the publish property to yes.

That's all to it, have fun!

posted at 15:08:16    #
May 2003
MoTuWeThFrSaSu
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 
Apr
2003
 Jun
2003

This is the Python Desktop Server weblog.


(Donations will be used by the author to buy stuff, fullfill selfish wishes or do other silly recreational things. You have been warned.).
The PyDS is
OSI Certified Open Source Software

Python Powered

XML-Image

© 2003-2007, Georg Bauer