BSD

warning: Creating default object from empty value in /neuralit/web/apps/vinay.in-drupal-6.13/modules/taxonomy/taxonomy.pages.inc on line 34.
All about BSD ... the OS i prefer!

Recursively remove spaces/special characters from files/dirs

I have often found the need to remove space or any special characters from files/dirs present in a bunch of directories and its sub directories. Here is how I do it

First cd to the base folder and then

e='s/[ #,]/-/g'; find . | while read f;do c=`basename "$f"`; b=`echo ${f%$c} | sed "$e"`; rename -v "$e" "$b`basename "$f"`"; done

Whats happening here ? Lets look at it step by step

e='s/[ #,]/-/g';

SPP patch for qmail + jms patch

We are in the process of shifting our servers which meant setting up of all needed services on the new server. One of the services was email. Qmail has always been my choice for a mail server. I have never really got to the details of qmail installation as most of the work was handled by a script written by Vamsy which was based on QMR. I am a big fan of Qmail-SPP as it provides a plugin interface to qmail-smtpd. This makes it possible to extend qmail-smtpd's functionality by scripts, programs etc without much knowledge of qmail intricacies.

I used qmail-spp to do a variety of things like greylisting, valid recipient check, RBL checks, user wise outgoing mail restriction etc. Not that they cant be done otherwise, but most required patching qmail. So this time around, vamsy found a fantastic combined patch by John simpson which is a one stop patch for qmail. But after this patch the qmail-spp patch would not work. Though John's patches and scripts do almost everything I need (except for a couple), I would feel comfortable only when I know that qmail-spp is available. Hence, here is my attempt to create a qmail-spp patch which can be applied after the jms patch.

new version 0.2 of mozilla-tiff-plugin

0.2 version of mozilla-tiff-plugin has been released. This version includes some minor fixes which are

  • A message appears in case the tiff file is corrupted
  • Scaling has been fixed to GDL_INTERP_BILINEAR. It may be a bit slow but improves on quality of scaled image
  • Fixed make clean in source Makefile
  • Added gendeb script to the source for easily creating deb packages

All downloads here

For any updates and downloads related to mozilla-tiff-plugin point your browser here

Mozilla Tiff Plugin

Mozilla Tiff Plugin is mozilla/netscape compatible plugin for viewing tiff images. Features include

  • Zoom in - keyboard shortcut '+'
  • Zoom out - keyboard shortcut '-'
  • Rotate anticlockwise - keyboard shortcut 'a'
  • Rotate clockwise - keyboard shortcut 'c'
  • Progress bar when downloading images

Currently, a general purpose mozilla plugin for any mime type is mozplugger. Mozplugger works by spawning an application of the users choice for a particular mime type. After spawning the application it reparents the application window handle so that it gets into the browser.

The sound story

OpenBSD rocks! Secure by default .. thats what i liked about it. Installation was a breeze. Got all hardware and X running. But audio did not seem to work! I have a Intel 865 mother board and dmesg showed that the on board audio device was detected.

"Intel 82801EB/ER SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97" rev 0x02: apic 2 int 17 (irq 3), ICH5 AC97
ac97: codec id 0x41445375 (Analog Devices AD1985)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0

mpg123, xmms all players seemed to play songs but there was no sound. I tried unmuting the ouput master and a few other with mixerctl but yet there was no audio.

Syndicate content