A new post on the Blogger in Draft blog indicates that Blogger, the service this blog and many others depend upon, may soon support OpenID for identity verification for posting.
I've been following discussions about OpenID, including one on the excellent Security Now! podcast and have been anxious to give it a try. It appears Blogger may afford my first real opportunity so I've signed up for a free account at Verisign Labs' PIP web site. There are a number of other free OpenID providers. I chose Verisign primarily because of their long history. I'd hate to commit to a provider only to have it fold because they couldn't find a way to monetize the service.
You may want to sign up for an account so you can get an URL you can remember. The URLs associated with your OpenID identity must be unique so there's benefit to having one which has your favorite user name embedded.
This blog gives me a place to comment on things which strike my fancy, hence the title. Topics may include computer software/hardware, science, space, beer, books/movies/television programs of a geeky nature, or almost anything else. It is not marked as containing adult content but be warned that I occasionally post about beer and sometimes forget to watch my language. I've been writing systems software since the days of core memory, paper tape, and front panel lights/switches.
Sunday, December 02, 2007
Running IE on your Mac
There's a new method of running IE (Internet Explorer) on your Mac. Now you may ask yourself, what do I need IE on a Mac? It's only really useful for visiting those annoying web sites which refuse to display properly in Safari or Firefox for the Mac. Yes, you can also download a Firefox add-on called User Agent Switcher to lie about your browser user agent, but that won't emulate all the quirks associated with IE so some web pages may still not display properly.
The software to accomplish this magic is called ie4osx. Basically it runs the IE version of your choosing under Darwine (Darwin Windows Emulator) under X11 (a traditional Unix style graphical user interface environment). You need to install X11 (available from your OS X install disks or Apple's web site) and Darwine prior to installing ie4osx.
If you find yourself encountering the occasional web site which refuses to display correctly (or at all) under a Mac browser, this software may be useful for you. It runs pretty well though it's a bit quirky. I found myself having to double or triple click on links occasionally. I also had trouble getting back to the search term form on Google's search page. Still, these quirks are a small price to pay to be able to finally view web sites that were otherwise inaccessible or garbled.
The software to accomplish this magic is called ie4osx. Basically it runs the IE version of your choosing under Darwine (Darwin Windows Emulator) under X11 (a traditional Unix style graphical user interface environment). You need to install X11 (available from your OS X install disks or Apple's web site) and Darwine prior to installing ie4osx.
If you find yourself encountering the occasional web site which refuses to display correctly (or at all) under a Mac browser, this software may be useful for you. It runs pretty well though it's a bit quirky. I found myself having to double or triple click on links occasionally. I also had trouble getting back to the search term form on Google's search page. Still, these quirks are a small price to pay to be able to finally view web sites that were otherwise inaccessible or garbled.
Monday, November 26, 2007
Free Windows disk image tool
LifeHacker has an interesting article about a free Windows disk image tool called DriveImage XML. It's reasonably quick and offers the capability to restore a disk to an earlier state.
Monday, November 19, 2007
I/O redirection into an editor
Sometimes it's handy to redirect the output of a Linux/Unix command into an editor. One reason to do this might be to try to weed out unwanted search pattern matches when running grep. Fortunately the Linux (and before that Unix) developers have anticipated this need. Editors like vi, vim, gvim, and gedit (and possibly others I'm not aware of) can all accept the output of a command as the "file" being edited.
For example, you can direct the output of a grep command to gvim with the following command:
grep searchPattern | gvim -
If you really want to get fancy, you can pass a command to gvim to cause it to search for the same pattern you used grep to find by using the -c argument.
grep searchPattern | gvim -c/searchPattern -
Since searchPattern appears twice on the command line and engineers never want to type any extra characters, I'd define a command alias to perform this action. Since there are so many shells out there, I'll leave that as an exercise for the reader.
For example, you can direct the output of a grep command to gvim with the following command:
grep searchPattern | gvim -
If you really want to get fancy, you can pass a command to gvim to cause it to search for the same pattern you used grep to find by using the -c argument.
grep searchPattern | gvim -c/searchPattern -
Since searchPattern appears twice on the command line and engineers never want to type any extra characters, I'd define a command alias to perform this action. Since there are so many shells out there, I'll leave that as an exercise for the reader.
Sunday, November 18, 2007
Readability rating
Friday, November 16, 2007
Adding color to grep output
Most of the longtime Unix users like me love grep. Regular expressions make the silly wildcards available in Windows seem completely underwhelming.
One thing which I find makes grep even more useful is to configure it to highlight matching terms. Like most things I decide would be useful, a little poking about in the man pages shows that the Unix developers have anticipated my needs yet again. They've added a couple environment variables which can tell grep to highlight matching terms in the color of your choosing. Since I prefer my xterm windows with a dark background and light foreground colors, I find the following colors work well. Note - I use tcsh at home so you may need to alter these commands a bit to get them to work with your preferred shell.
# highlight search terms with a red background and white foreground
setenv GREP_COLOR '01;37;41'
setenv GREP_OPTIONS '--color=auto'
A word of warning is in order. I've found that using these terms can cause strange failures in seemingly unrelated activities. For example, I build Linux kernel modules at work and I've discovered that fails if I've got the grep color environment variables set (in the modpost step). So I've defined command aliases to set and unset the environment variables. That way I can easily enable grep colors before performing a grep and disable them again before doing something which may fail if grep colors are enabled.
One thing which I find makes grep even more useful is to configure it to highlight matching terms. Like most things I decide would be useful, a little poking about in the man pages shows that the Unix developers have anticipated my needs yet again. They've added a couple environment variables which can tell grep to highlight matching terms in the color of your choosing. Since I prefer my xterm windows with a dark background and light foreground colors, I find the following colors work well. Note - I use tcsh at home so you may need to alter these commands a bit to get them to work with your preferred shell.
# highlight search terms with a red background and white foreground
setenv GREP_COLOR '01;37;41'
setenv GREP_OPTIONS '--color=auto'
A word of warning is in order. I've found that using these terms can cause strange failures in seemingly unrelated activities. For example, I build Linux kernel modules at work and I've discovered that fails if I've got the grep color environment variables set (in the modpost step). So I've defined command aliases to set and unset the environment variables. That way I can easily enable grep colors before performing a grep and disable them again before doing something which may fail if grep colors are enabled.
Saturday, November 03, 2007
Rudy Rucker
One of my favorite SciFi authors, Rudy Rucker, has kindly released his latest novel called Postsingular under a Creative Commons license. This is a great way for people unfamiliar with Rudy's work to try it out. If you like it (and I'm sure most people will) please buy his earlier books. I like to keep my favorite authors gainfully employed because that means more good books for me to read.
Subscribe to:
Posts (Atom)
-
A long time ago I was given a bit of advice that has served me well over the years. An engineer with much more experience than I had at the...
-
We lost our very special dog to an osteosarcoma a few days ago. He started limping a little over 4 months ago and it took a while to dia...
-
Most of the longtime Unix users like me love grep. Regular expressions make the silly wildcards available in Windows seem completely underw...