Ubuntu MySQL lost root password
Submitted by Lee McLoughlin on Mon, 2008-03-03 01:08.If you have lost or forgotten your MySQL root password on Ubuntu (or Debian) then the following will help you reset it without having to shut the server down.
Nokia N95 fixing slow GPS
Submitted by Lee McLoughlin on Sat, 2008-02-02 11:39.I do like my Nokia N95 but there are several annoyances with it. Some I know are fixed by newer firmware but being on the Orange network here in the UK I don't have access to newer firmware (which is a whole other issue!)
Many owners of N95's have found that it can take several minutes to get a GPS fix (or GPS lock, as some call it). I raced my Nokia N95 against a generic external Bluetooth GPS unit I use with TomTom Navigator on an N95 - side by side with a clear view of the sky. TomTom + external GPS about 3 seconds. Maps + internal GPS - 10 minutes!!!!!
These are the steps that fixed this issue for me. Your milage may vary!
lighttpd mod_rewrite with file exists check
Submitted by Lee McLoughlin on Mon, 2007-01-22 03:40.lighttpd is a web server that is high performance and has a small memory footprint. On some of my servers I'm really low on both CPU and free memory. The web server I currently use, Apache, is quite large so I thought I test out lighttpd.
On top of the web server I run Drupal as my content manager and use Drupal's standard Apache conditional rewrite rules to make the two inter work well.
lighttpd can do rewrites but lacks the conditional test in its module, mod_rewrite.
There is a suggested solution which involves using an aternative module, mod_magnet, and using that to load in an interpreted programming language call "lua". But that seemed to have a high performance hit. So I modified a copy of mod_rewrite to support a new pair of options: url.rewrite-repeat-NF and url.rewrite-once-NF. These only apply the rewrite if the file corresponding to the URI does NOT exist in the Filestore (NF = Not Filestore).
UPDATED: 1 Feb. Bug reported by Frieder Schüler with -NF rewrites being ignored. Found and fixed. Please download the new copy.
You can find a copy of the code here: mod_rewrite.c
Here it is compiled under Debian on Intel to run in /usr/local/lib:
mod_rewrite.so and mod_rewrite.la
LM_PayPal Module for Drupal
Submitted by Lee McLoughlin on Fri, 2006-07-14 15:07.Muggles Guide - Don't stock up on ink!
Submitted by Lee McLoughlin on Fri, 2006-06-23 13:56.If you have an inkjet printer you may be tempted to buy ink cartridges well in advance of needing them. If you see a special offer or if you are using the printer a lot. Its tempting... but be careful!
A little known feature of most modern cartridges is that a lot of them have a tiny little computer chip on them. This chip "knows" how old the the cartridge is. If the cartridge gets too old the cartridge will STOP WORKING!!!
I was really annoyed when I found out about this when a whole stack of expensive cartridges stopped working for no apparant reason! However I cannot totally be annoyed as recently a different printer that uses chip-less cartridge started going REALLY streaky. Turns out they were old and the ink had dried out in them.
Muggles Guide - New PC? What to do first.
Submitted by Lee McLoughlin on Tue, 2006-06-13 21:43.Your new PC has just arrived... you are all excited and looking forward to playing with it.
But it is VITALLY important that you take some basic precautions BEFORE connecting it to the internet.
- Install a firewall. Windows XP already comes with a basic firewall, some people prefer to upgrade to a commercial solution. There are also some free versions that are worth considering.
- Install anti-virus software. I've seen computers become infected by viruses with minutes of first browsing the internet! Thats not a joke or an exageration. Currently Windows XP does not come with any anti-virus software. As with firewalls there are both commercial and free versions available.
- Install all the official patches for Windows from Microsoft.
- Think about how to do backups.
If possible install firewall and anti-virus software before connecting to the internet. Perhaps go to a local shop and buy a boxed copy. It may be that your PC came with something pre-installed.
Muggles Guide - Bandwidth
Submitted by Lee McLoughlin on Tue, 2006-06-13 19:50.Bandwidth - What is it?
Bandwidth is a term you'll often hear people use when they are either boasting about their network or trying to sell you their network!
Bandwidth is a combination of speed and capacity. Think of a freeway. It is wide and traffic moves along it fast (well except freeways in Los Angeles). So a freeway has a lot of bandwidth. A small country road may only have a couple of lanes and be so full of potholes that only a few cars can move slowly along it.
This is good analogy to computer networks. "High Bandwidth" networks are the equivalent of "wide" and "fast" - so when you look at a video over the Internet it comes back quickly.
Muggles Guides to Computers and Technology
Submitted by Lee McLoughlin on Tue, 2006-06-13 13:10.Muggles Guides to Computers and Technology
Welcome to this collection of guides that will eventually cover all aspects of computers and technology.
I am an old hand at computers and since I've been involved with computers I've had friends asking me to explain things to them. But I learned early on that the world is divided up into two kinds of people:
- Wizards and
- Muggles
(In case you were wondering I am most definetly in the Wizard camp
!)
Trillian No Sound - Fixed!
Submitted by Lee McLoughlin on Fri, 2006-06-09 11:30.Trillian is a popular alternative to running MSN, ICQ, Yahoo, and AOL messenger programs on Windows.
I use the 3.1 basic client partly because I like the interface and partly because it uses a LOT less resources than running all those messenger programs!
However I've found that, from time to time, Trillian turns off sounds and refuses to let me turn them back on again! I don't like it silent so I Googled for help on this but the only solution I could find was to completely uninstall Trillian and re-install it! Not a very satisfactory solution. Oddly almost no-one reports this problem, out of the huge numbers of happy Trillian users, so it is some special circumstance that tickles this bug.
English - Japanese Rapid Professional Business Translation
Submitted by Lee McLoughlin on Tue, 2006-04-04 23:34.If you are looking for professional rapid English-Japanese translation service for businesses then have a look at this site from a friend of ours:
http://translation.lmmrtech.com
This service will be entirely online and the translation will carried out by experienced bi-lingual translators.
