Archive for April, 2008

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.

Noisy Line Out / Speaker Left Channel using Ubuntu 7.10 and a Macbook Pro

Since installing Ubuntu 7.10 Gutsy Gibon I have had noise coming from the left channel of my Macbook Pro both from the line out and from the internal speakers. Oddly enough, even when I am using the line out I get noise from the left speaker. It sounds very similar to the noise produced when using the line out of a G4 with mirrored double doors; you can hear this crackling electronic noise that I put down to the processor cycling and poor shielding - mouse over the dock or use system resources and you get an increase in the rate and intensity of the noise - clearly poor shielding within the G4 but everyone G4 owner will tell you it’s one of the loudest computers ever. But back to Ubuntu on the MAcbook Pro..

I have never had this problem with my Macbook Pro and OS X so all I can assume is the gain table in the ALSA driver is somehow wrong in Ubuntu 7.10 causing a much lower signal to noise ratio than in OS X. This would also result in a much lower maximum and overall volume output when using Ubuntu, and this is indeed the case.

With the release of Ubuntu 8.04 Hardy Heron and the inclusion of the PulseAudio sound server hopefully things will improve. Until then the following solution solves all the above problems for me except the left speaker noise while a line out is plugged in. You’re probably using your line out for louder sound like me so this will cover up the problem for the most part so it’s not really a problem any more.

From http://ubuntu-utah.ubuntuforums.org/showthread.php?t=611345. Thanks to Volanin for the solution and everyone who contributed to this thread.

1. Open a terminal and type:
sudo gedit /etc/modprobe.d/options

2. Add the following line to the end of the file:
options snd-hda-intel model=[MODEL_BELOW] position-fix=2 probe_mask=1

You must select the Intel HDA model that corresponds to your computer:
intel-mac-v1 : Intel Mac Type 1
intel-mac-v2 : Intel Mac Type 2
intel-mac-v3 : Intel Mac Type 3
intel-mac-v4 : Intel Mac Type 4
intel-mac-v5 : Intel Mac Type 5
macmini : Intel Mac Mini (equivalent with type 3)
macbook : Intel Mac Book (eq. type 5)
macbook-pro-v1 : Intel Mac Book Pro 1st generation (eq. type 3)
macbook-pro : Intel Mac Book Pro 2nd generation (eq. type 3)
imac-intel : Intel iMac (eq. type 2)
imac-intel-20 : Intel iMac (newer version) (eq. type 3)

For example, I have a Macbook 2rd generation, and the setting that worked was model=macbook-pro.

3. Save the file and type in the terminal:
sudo update-initramfs -u

4. Reboot your computer.

5. For BEST sound, if the above works, open a terminal and type:
alsamixer
And set the FRONT and SURROUND sliders to their maximum.
It might be necessary to unmute them with the ‘M’ key.
Press ESC twice to leave the program.

る -とらぶる (To Love-Ru) - My New Favourite Anime Series

I don’t watch much TV anymore but I do watch a lot of different things online, both to get away from the adverts and channel surfing to things I don’t want to watch, but mainly because I can watch what I want when I want. This is great, but one thing I do miss is waiting for the next episode of a series to air. Back in the days of 56k you could only watch new episodes on the day they came out and on TV, and I never had Sky; just BBC 1 and 2, ITV and Channel 4 (Channel 5 never worked), so waiting for a Simpson’s I hadn’t seen or the new Johnathan Creek was genuinly something to look forward to. My sister used to sulk for days if she missed one episode of Neighbour’s - now you can probably watch it all online and see all the cast naked. Even Madge Harold Bishop.

The current and previous seasons (11 and 12) of South Park have been put up online about six hours after they air in america which is impressive and unstoppable because within a few days there are hundreds of copies up all over the place and that’s great - everyone can see a new release at the same time. I’ve really enjoyed waiting for the next South Park (”Over Logging”, S12E06 is, again, awesome), and now I’ve found another new release series to look forward to

Now like most anime and manga I’ve seen, there is no point trying to comprehend what is happening either visually or narratively using any preconceptions from British or american equivilants. Just go with it; so a naked girl has just appeared in your bath and she tells you she’s from Planet Deviluke and her name’s Lala and she’s got an “all purpose costume robot” she invented called Peke which, when she wants a new outfit, morphs into what ever she feels like wearing and it’s all very, very sexual.

I’d go with that. You pretty much always find out eventually what is happening, just not in the usual obvious way. For any one who likes manga pantie and tit shots, this is the show for you. Jay. For any one else who just likes manga this show is also for you; it’s cute, it’s funny, it’s drawn by Kentaro Yabuki and has lots of interesting uses of distortion and sketch styles, the titles are great, video game style music starts playing at all the best times, Lala has loads of crazy robot inventions and all the manga girls are well cute. What else do you need?

I-O!

Lalas Reaction

Lalas Tits

http://en.wikipedia.org/wiki/To_Love-Ru

Check out all the episodes out so far here:

http://www.veoh.com/channels/-ToLOVERu-

Maron Dog

Next Page »