I just found proof that the Web is one of man's greatest innovations. Out of the blue and without actually searching, I came across both a site which has more information about Starsky and Hutch than you ever wanted to know, and a site which has instructions on building your very own Zebra3. What could be cooler than owning a bright red '75 Gran Torino with a white rally stripe running down it? Only one thing: owning The Batmobile.
I found a great XMMS skin called NLog. It looks really good normal, and also very good double-sized and window-shaded (which is how I typically use XMMS). Very few skins look that great (or are that useful) that way.
Anyway, worth checking out if you have a shortage of eye candy in your life...
I happened to notice on linuxtoday.com an ad for a book called "MySQL Weekend Crash Course". I clicked the link, wondering what constituted a "crash course". The detail page for the book has a description, which includes statements like the following:
The problem is, you\'re not really up to speed. Maybe it\'s been a while since you worked with relational databases. Maybe you\'re new to MySQL.Those slashes in front of the single quotes are there because that text is stored in a database -- which is more than likely MySQL -- and the quotes need to be escaped so that the DB doesn't think they are part of the SQL statement. Anyway, I read the description and the first thought that popped into my head was "So why didn't these guys read this book when they built this site?" and the second thought was "Or maybe they did read it..."
Recently one of my friends, a computer wizard, paid me a visit. As we were talking I mentioned that I had recently installed Windows XP on my wife's PC. I told him how happy she was with this operating system and I showed him the Windows XP CD. To my surprise he threw it into my microwave oven and turned it on. Instantly I got very upset, because the CD had become precious to me, but he said: 'Do not worry, it is unharmed.' After a few minutes he took the CD out, gave it to me and said: 'Take a close look at it.' To my surprise the CD was quite cold to hold and it seemed to be heavier than before. At first I could not see anything, but on the inner edge of the central hole I saw an inscription, an inscription finer than anything I had ever seen before. The inscription shone piercingly bright, and yet remote, as if out of a great depth:
12413AEB2ED4FA5E6F7D78E78BEDE820945092OF923A40EElOE5 I OCC98D444AA08EI
'I cannot understand the fiery letters,' I said in a timid voice. 'No but I can,' he said. 'The letters are Hex, of an ancient mode, but the language is that of Microsoft, which I shall not utter here. But in common English this is what it says:
One OS to rule them all, One OS to find them,It is only two lines from a verse long known in System-lore:
One OS to bring them all and in the darkness bind them.
"Three OS's from corporate-kings in their towers of glass,
Seven from valley-lords where orchards used to grow,
Nine from dotcoms doomed to die,
One from the Dark Lord Gates on his dark throne
In the Land of Redmond where the Shadows lie.
One OS to rule them all, One OS to find them,
One OS to bring them all and in the darkness bind them,
In the Land of Redmond where the Shadows lie."'
A while back, I had to set up a system for a former client of my previous employer (my previous employer had no Linux help, you see, while the former client had new Linux machines to set up, so...). One of the things I did was get a banner going for them. It was an added bonus, and completely frivolous. I was up late one night and happened upon a DOD site with a cool banner, so I cabbaged parts of it, and knocked together this:
**WARNING**WARNING**WARNING**Feel free to use it if you want. Just save it to /etc/issue, make a symlink called /etc/issue.net which points to it, and then add a line in /etc/ssh/sshd_config which says Banner /etc/issue.net. HUP sshd. All done.
This is a privately-owned computer system and is strictly for use authorized
by the system owner only. Users (authorized or unauthorized) have no explicit
or implicit expectation of privacy on this system. System personnel may give to
law enforcement officials any potential evidence of crime found on this
computer system.
Any or all uses of this system and all files on this system may be intercepted,
monitored, recorded, copied, audited, inspected, and disclosed to law
enforcement personnel, as well as authorized officials of any federal or local
government agency, both domestic and foreign. By using this system, the user
consents to such interception, monitoring, recording, copying, auditing,
inspection, and disclosure at the discretion of the owner of this system or
such agents so designated by said owner.
Unauthorized or improper use of this system may result in civil and/or criminal
penalties to fullest extent provided by law. By continuing to use this system
you indicate your awareness of and consent to these terms and conditions of
use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this
warning.
I decided to observe Patriot Day (not Patriot's Day; the apostrophe is important) in a substantive way by doing two things every September 11th:
I got a new Dell Dimension 4500 at work. It's a very nice machine, but it seems they have issues with regards to Red Hat Linux 7.3: the display/mouse aren't detected properly upon install, DMA won't work with a stock kernel (nor one updated via errata page download or rhupdate), and sound won't work with the integrated audio. These instructions will help correct two of those problems.
How to correct the display and mouse
The flat panel (an UltraSharp 1800FP 18") isn't properly detected (lower resolution, improper bit depth), and the mouse doesn't work properly (the scrollwheel and middle button don't work). Put this XF86Config-4 file in /etc/X11 and retsart X to correct these problems.
BTW, the monitor's specs are:
I put those there because Dell took them off their web site, and I hate not having monitor timing specs.
Size: 18" Viewable Size: 18.1" LCD Type: TFT/Active Matrix Inputs: RGB and DVI Pixel Pitch: .281mm Horizontal Scan: 31kHz - 80kHz Vertical Scan: 55Hz - 85Hz Vert. and Horiz.
Viewing Angle:Typical +/-80 degrees Brightness: 250 nits Contrast Ratio: 350:1 Prime Mode: 1280x1024 (SXGA) Dimensions: H: 17"
W: 16"
D: 8.8"Weight: 17.20 lbs
[root@hostname root]# uname -aAs you can see, DMA won't engage and so disk access is slow.
Linux hostname.ucsd.edu 2.4.18-10 #1 Wed Sep 11 11:39:21 EDT 2002 i686 unknown
[root@hostname root]# hdparm /dev/hda
/dev/hda:
multcount = 16 (on)
I/O support = 0 (16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 2498/255/63, sectors = 40132503, start = 0
busstate = 1 (on)
[root@hostname root]# hdparm -t -T /dev/hda
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.38 seconds =336.84 MB/sec
Timing buffered disk reads: 64 MB in 23.25 seconds = 2.75 MB/sec
[root@hostname root]# hdparm -c1 -d1 -k1 /dev/hda
/dev/hda:
setting 32-bit I/O support flag to 1
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
setting drive keep settings to 1 (on)
I/O support = 1 (32-bit)
using_dma = 0 (off)
[root@hostname root]# hdparm -t -T /dev/hda
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.37 seconds =345.95 MB/sec
Timing buffered disk reads: 64 MB in 14.03 seconds = 4.56 MB/sec
cd /usr/srcHere are the hdparm results after the reboot, with the new kernel selected from the GRUB menu:
tar zxvf $HOME/download/kernel/2.4.19/2.4.19.tar.gz
gunzip $HOME/download/kernel/2.4.19/patches/ac/patch-2.4.19-ac4.gz
ln -s linux-2.4.19/ linux
ln -s linux-2.4.19/ linux.vanilla
patch -p0 < $HOME/download/kernel/2.4.19/patches/ac/patch-2.4.19-ac4
cd linux
make mrproper
cp $HOME/download/kernel/2.4.19/.config ./
make xconfig (check that options match what are needed, save file)
make dep
make clean
vi Makefile (:s/EXTRAVERSION = /EXTRAVERSION = -ac4/)
make bzImage
make modules
make modules_install
/sbin/mkinitrd /boot/initrd-2.4.19-ac4.img 2.4.19-ac4
make install
/sbin/reboot
[root@hostname root]# uname -aThe machine should be noticeably faster, with less overall CPU usage.
Linux hostname.ucsd.edu 2.4.19-ac4 #2 Wed Sep 11 14:26:39 PDT 2002 i686 unknown
[root@hostname root]# hdparm /dev/hda
/dev/hda:
multcount = 16 (on)
I/O support = 1 (32-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 2498/255/63, sectors = 40132503, start = 0
busstate = 1 (on)
[root@hostname root]# hdparm -t -T /dev/hda
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.38 seconds =345.95 MB/sec
Timing buffered disk reads: 64 MB in 1.65 seconds = 38.79 MB/sec
#!/bin/shellSave it as /etc/rc.d/init.d/dma. Then link it to the proper run-level you're using, as early in the boot process as you can (e.g., ln -s /etc/rc.d/init.d/dma /etc/rc.d/rc3.d/S04dma).
/sbin/hdparm -c1 -d1 /dev/hda
I'm a big fan of Opera. I use it on Windows and Linux and it's extremely fast. I like that it starts downloading things as soon as you click a link. So when you're hunting for a place to store the file, it's already got it. I like download completion. I like that it's fairly small (~3MB for the QT shared RPM). I like the MDI-style tabbed windows. But most of all I like the keyboard shortcuts.
For example, to turn on JavaScript, hit F12 and then 'e' (for 'enable'). To turn off pop-up windows, hit F12 and then 'r' (for 'refuse'). Turn then on again with F12 + 'w' (for 'windows'). Turn off plugins (Flash) and GIF animations with F12 + 'p' ('plugins') and F12 + 'g' ('GIFs'), respectively. This makes for a lovely wayback machine-type, neoluddite browsing experience. Just the way I like it.
The best keyboard shortcut, however, is F8. That places the insertion point in the location bar, and highlights the text ther. So you can hit F8, then start typing in a new URL, just like that. More useful is hitting F8 and then 'g' with a space and then 'Hungarian Cheesecake'. You just searched Google for an ethnic cake recipe. You can do a similar thing with F8, then 'e' and search directly at ebay.com. Using 'z' does Amazon, 'w' does download.com, 'x' does Google's Linux area, and 'r' searches Google's newgroups. Once you get used to this, it's second nature. Handy enough to be indispensible.
But one thing I've always thought was lacking was a way to customize this. For example, one thing I like to do is ad hoc spellchecking at Google. I need to know a word, I just hit ctrl+n, F8, 'g werd' and I'm done. Google says "Are you sure you didn't mean 'word'..." when I misspell. If I want to know a definition or something, then I can always click the little link up at the top that says "Searched the web for 'word'". That link goes to dictionary.com. How come I can't just go there directly?
Using F8+d leads you to search for a new domain name. I think I've done that like five times in as many years (and I use whois anyway). Opera does have a dictionary set up, but there's no hotkey for it (and it searches Lycos anyway... ick). So I'd like to search a dictionary web site, but not Lycos. The UI has no way to assign your own keys to these location bar shortcuts, so I've been going through Google all this time. Today I accidentally found out how to make your own location bar shortcuts. Here's how:
Open up $HOME/.opera/search.ini in a text editor. Look for a section like this:
[Search Engine 10]Change the 'Key=d' line to just 'Key='. Now look for a section like this:
Name=&Domain Name
URL=https://opera.domaindirect.com/cgi-bin/domainsearch.cgi?do=search&searchdomain=%s
Query=
Key=d
Is post=0
Has endseparator=1
Encoding=iso-8859-1
Search Type=6
[Search Engine 18]Change the 'URL=...' line to 'URL=http://www.dictionary.com/search?q=%s' and the 'Key=' line to 'Key=d'.
Name=Dictionary
URL=http://r.lycos.com/r/opiprefdic/http://www.infoplease.lycos.com/search.php3?in=dictionary&query=%s
Query=
Key=
Is post=0
Has endseparator=0
Encoding=iso-8859-1
Search Type=50
The Gopher Manifesto, which used to be at http://www.scn.org/~bkarger/gopher-manifesto/, is gone. So archived a copy from Google's cache.