jeltsch's blog

Updating drupal

Here's what I need to to to update drupal (minor updates, e.g. from 7.18 to 7.19) on my Ubuntu server. I have installed drupal from the drupal source itself and not from the Ubuntu repository (because the Ubuntu repository is usually quite old and not updated as frequently). Actually the update is quite painless; I am sure somebody automated that already somewhere...
cd /var/www
su
wget http://ftp.drupal.org/files/projects/drupal-7.19.tar.gz
tar -xvzf drupal-7.19.tar.gz
chown -R jeltsch:www-data drupal-7.19

Upgrading mysql on Ubuntu Lucid Lynx (10.04) hangs

Already the third time this happens to me: An update is available for the mysql server and I just "apt-get upgrade". The upgrade process gets totally stuck at the following task:
Preparing to replace mysql-server-5.1 5.1.66-0ubuntu0.10.04.1 (using .../mysql-server-5.1_5.1.66-0ubuntu0.10.04.2_i386.deb) ...
mysql stop/waiting

The process that got again stuck in some eternal loop (or whatever) is an egrep replacement of some textfile:
egrep -qi -r ^[^#]*ndb.connectstring|^[:space:]*\[[:space:]*ndb_mgmd /etc/mysql/

Some useful PDF editing (and search) commands

  • Insert pages with interleave: pdftk A=input_odd_pages.pdf B=input_even_pages.pdf shuffle A B output collated.pdf(from the pdftk package)
  • Split an A2-sized PDF into two A3 pages for printing (no overlap): pdfposter -m A3 -p A2 Periodic-Table_A2.pdf Periodic-Table_2xA3.pdf
  • Split an arbitrary-sized PDF into A3 pages for printing at 100% size (= 1), no overlap: pdfposter -m A3 -s1 Poster.pdf Poster_split_to_A3.pdf

Pages