notes

Random notes.

Drupal multi-site sequence issue

If you are running a Drupal multi-site installation, and the sequence tables are shared, then here's an admonition: take real care of the changed prefix for each shared database. Cross check on the sequence tables if you ever had to rename the database or just the unshared tables.

For instance,

[dbprefix_dbname]

becomes

[dbprefixnew_dbname]

The first thing you have to do is go check the sequence table and change the values manually on the new sequence table entries corresponding to the database appropriately.

Openoffice woes

Nothing new in Openoffice crashing on your Linux installation. It does, most of the times :P

But for the users who rely on SCIM (Stanadard Chinese Input Method) for Input in their regional language, Openoffice is completely unusable as of now on Ubuntu. It never takes off from the splash screen that appears. Turns out that Openoffice.org doesn't like the GTK_IM_MODULE set to scim.

There is a work around, though. But not so convenient one. Setting
GTK_IM_MODULE=xim
on terminal before launching the application,

OR

adding as below on /usr/bin/ooffice:

#!/bin/sh
GTK_IM_MODULE=xim
export OOO_EXTRA_ARG=''
/usr/lib/openoffice/program/ooqstart "$@"

worked for me, and I've also been able to use SCIM keymaps.

Re-write with Apache2 - one trivial stuff that Apache 1.x users might usually tend to overlook

I've had to remind myself this every time I upgrade the distributions on my Workstations and notebook.

Converting and merging TIFF files to PDF

Found this on a forum. Very useful in converting Tiffs to PDF.


tiff2ps -h 8.5 -w 11 *.tif > tiffs.ps
ps2pdfwr -g7920x6120 tiffs.ps

Converting multiple JPG files to PNG

(Quite handy - and you can even go ahead to shrink the two commands to one).

for A in *.jpg; do convert $A $A.png; done
rename -v 's/\.jpg.png$/.png/' *.jpg.png

This, on GNU/Linux, with [:http://www.imagemagick.org/|imagemagick].

Renaming multiple files at one go

rename -v 's/\.php5$/.php/' *.php5

(the above command renames .php5 to .php in the present folder)

Setting SCIM as default Input Method on Ubuntu Dapper and Edgy

Many people have asked me about this, so let me point to this wonderful piece of documentation on Ubuntu Wiki.

[:https://wiki.ubuntu.com/InputMethods/SCIM/Setup]

and if you're still stuck wondering why GTK IM Module isn't working for you on OpenOffice, there's [:http://www.scim-im.org/wiki/faq/gtk_gnome/why_i_can_not_input_with_scim_under_openoffice_oo|another] [:http://www.scim-im.org/wiki/documentation/installation_and_configuration/all/system_configuration|wonderful piece of documentation] for you.

Syndicate content