I just got bitten by the automatic maintenance lock with WordPress updates. My internet connection failed in the middle of a plugin update and left the blog in maintenance mode. Google answers to disabling it were unhelpful, so here goes:
Just delete the .maintenance file is the WordPress directory.
Additionally, if the update is left in a messy state, you might need to delete the upgrade directory to try it again.
When Googling for hostname aliasing on Linux, the most prominent answers were for SSH hostname aliasing, which is simple. For a general purpose solution the common answer was "install a DNS server", which is way over the top. Here's what I managed to figure out.
The objective is to have something like /etc/hosts, except like "hostname hostname2" instead of "address hostname".
My solution is to use the HOSTALIASES variable, which should point to a host alias file. In my case I did:
echo 'hostname hostname2' > .hostaliases echo 'export HOSTALIASES=$HOME/.hostaliases' >> .bashrc
Thereafter, all my bash sessions use the host alias file and apps such as ftp, wget and Firefox can all resolve the alternative hostname correctly.
Unfortunately not all tools seem to resolve hostnames in a way that supports host aliases. E.g. ping does not.
Ok, so I have a 160GB disk image I need to split to small pieces (so I
can compress those individually in the background later), but I only
have a few GB free on the disk containing the image. Unfortunately,
split
isn't in place. Here's what I managed to put together using Bash
on Ubuntu:
#!/bin/bash file=$1 size=$2 count=$3
for i in `seq $((count-1)) -1 0` do dd if=$file of=$file.$i bs=4096 skip=$((size*i/4096)) truncate --size=$((size*i)) $file echo $((count-i))/$count done
Admittedly it isn't exactly in place either, but it does only need space for one piece at a time, which was good enough for me.
I have finally moved to using Google Code and Mercurial distributed VCS for my "Otus.mod" BlitzMax module collection.
The modules are currently only available through the source repository.
I'm unsure if I will bother with separate downloads at all. Getting the
whole set is as easy as
hg clone https://otus-mod.googlecode.com/hg/ otus-mod
and Mercurial is
easily available on all the supported platforms (just apt-get on Ubuntu
; ).
The initial set of modules there is:
I'll add the 5+ beta modules and the ~10 alpha modules I have floating around as soon as I get them to at least compile :p
I updated the module to use version 4.65 of the SDK and a small refactoring in the wrapper. Next up will be version 9.x (beta) and LZMA2 support.
License: None (Public Domain) Downloads: Source: lzma.mod-1.01-source (zip, 38KB) Linux build: lzma.mod-1.01-linux (zip, 231KB) (WordPress doesn't like .tar.gz.) Windows build: May be coming... (meanwhile, Version 1.00 or build from source)