Forwarding URLs & Their Descendants - RedirectMatch & .htaccess

If you want to redirect a whole site and all descendant pages to another URL, you can put this in your .htaccess file in the root of your server:

RedirectMatch ^/ http://en.wikipedia.org/wiki/TV_Links

Took me a while to ensure not only www.blah.com and http://www.blah.com were redirected, but also blah.com and blah.com/foo/bar and so on. This technique seems to work well in these instances but I have yet to master regular expressions so if any one has any pointers on trimming the end of the URL (for example ensuring http://www.blah.com/something?glass=halfempty does not become http://www.urlforwardedto.com?glass=halfempty), I would be very greatful.

她将拥有核弹!

Ace Chinese Advertisement We all know that translating things to other languages using Google Translate or for that matter any form of translation is not always perfect, especially if you are translating from one language family to another as I was (English to Chinese - that’s a western sub-branch of the Germanic branch of the Indo-European family of languages translated to one of the two branches of the Sino-Tibetan family of languages).

I’ve had all kinds of amusing things come up, especially if you keep translating the same phrase between languages and the most recent I have found (don’t ask me why I was translating this) is:

“She would get it”

From English to Simplified Chinese you get:

她将拥有核弹

Which translated back to Engligh is:

“She will have a nuclear bomb”.

Excellent.

Transmission

I have for some time been using Transmission for downloading torrent files. I really like the application for a number of reasons; it’s simple and functional, it’s free, it’s open source and it works really well.

I have however discovered a little issue, or more a behaviour that can be counter productive on occassion. I have been using Transmission installed on a drive which contains the application and all my torrents and torrent files. This has worked fine for ages, but for some reason a while ago I opened Transmission up to find all my torrent files were still there, but had 0% downloaded (despite when I quit it last some of them were nearly complete). I couldn’t understand this, and the files themselves were the correct size, and not 0%. Very confusing. I started off the torrents again and no problem, but I did have to start again.

Then the other week, I couldn’t find Transmission. No idea what happened, possibly I deleted it when deleting torrent files. This made me think of what happened before, and I had no intention of starting some of the files I had downloading again, so I resolved to find out how I could re-install transmission but keep the torrent files in the same place and have them continue from where they left off.

Luckily enough it turns out that if you copy /User/??/Library/Application Support/Transmission and save it somewhere safe then re-install Transmission (I used to have mine in another folder and this time I installed it to Applications - everything was fine), open the application, quit it then replace the folder at /User/??/Library/Application Support/Transmission with the old one. Then re-open Transmission and everything should be back to normal.

Luuuuurvly.