Archive for April, 2007

My (ksh) profile…

April 26, 2007

Somehow, my original post (my (.)profile…) got lost. So here are my up-to-date .profile and .kshrc files. Please download them directly via right mouse key and do not load it into a browser window and copy and paste it from there, as one of the files contains a binary character.

There’s some interesting stuff in it:

  • a two-line prompt that contains the current time
  • a function (“md”) that creates a directory and walks (cd) into it
  • a function (“d2u”) that converts DOS line endings into UNIX line endings.
  • a function (“fp”) that searches for entries in the software installation database /var/sadm/install/contents
  • a vi function (hhxpl) mapped to the unused key “q” which toggles the last two characters, just like Emacs’ t
Advertisements

My favorite Firefox extensions – updated

April 12, 2007

Click here.
The most useful one for bloggers is probably CoLT which can copy a URL and its description into the clipboard. Also, one of the tab counters (Tab Counter or TabCount) can be really useful in case you fear losing control over your tabs.

Solaris 10 How-To Guides!

April 11, 2007

See this for some very good how-to guides on various Solaris 10 administration topics.

What is “proprietary”?

April 6, 2007

“Proprietary” – what’s that? When looking it up on the web, one can find various definitions for it:

  • In the Proprietary article on Wikipedia, proprietary components are defined as “components that are unique to a specific manufacturer, and do not conform to preset standards”
  • AskOxford defines it as a product “marketed under a registered trade name”.
  • The Merriam-Webster Online Dictionary defines it as “something that is used, produced, or marketed under exclusive legal right of the inventor or maker”.
  • In Wiktionary, proprietary is defined as “Manufactured exclusively by the owner of intellectual property rights, as with a patent or trade secret”.
  • proprietary software is defined in Wikipedia as “software with restrictions on using, copying and modifying as enforced by the proprietor”.
  • And Webopedia tells us that “proprietary is the opposite of open”, and that “it also implies that the company has not divulged specifications that would allow other companies to duplicate the product.”

But when reading articles and comments from analysts, journalists, and others, “proprietary” is often used in a sense of “not in more than 90% of all computers”.
So who has the definition power for the word “proprietary”?
And: Does anyone believe that OpenSPARC and OpenSolaris are proprietary?

ZFS is part of FreeBSD

April 6, 2007

My colleagues just “told” [1], [2] me that ZFS, the upcoming standard filesystem (my personal opinion, but search for zfs Windows in the web and you’ll see what I mean), has made its way into FreeBSD!

Publish your links in one of three different formats…

April 4, 2007

Whenever creating a list of links for publishing in a blog or wiki, you have to enter formatting or commands text like <a href="http://...">description</a> or [[http://...][description]].
So I decided to write a short script that takes a generic input file with a formatting like the following example (2 spaces in front of the link and 4 spaces in front of the each link description, with the link description separated into a linked and a unlinked part, using multiple languages):

http://developer.mozilla.org/en/docs/Code_snippets:Tabbed_browser
[en]Code examples|for access to Firefox tabs
[de]Code-Beispiele|für den Zugang zu den Firefox-Tabs
http://kb.mozillazine.org/Extension_development#Introduction
[en]Firefox extensions|Firefox extension development basics
[de]Firefox-Erweiterungen| - Grundlagen der Entwicklung

This input file is then converted into one of three output formats. I am pretty sure there is a better solution out there, I just couldn’t find one 😉

Here’s the script:

#!/bin/ksh
# create-link-list.ksh: create a list of links based on a formatted input file
if [ $# -le 1 ]; then
echo "$0: Create a formatted linked list out of a multiline input link list"
echo "Usage: $0 file lang [output format]"
echo "      file: input file"
echo "      lang: \"en\", \"de\" or any other"
echo "      output format: leave empty or use \"twiki\" or \"table\""
echo ""
echo "input file sample:"
echo "  http://developer.mozilla.org/en/docs/Code_snippets:Tabbed_browser"
echo "    [en]Code examples|for access to Firefox tabs"
echo "    [de]Code-Beispiele|für den Zugang zu den Firefox-Tabs"
echo "  http://kb.mozillazine.org/Extension_development#Introduction"
echo "    [en]Firefox extensions|Firefox extension development basics"
echo "    [de]Firefox-Erweiterungen| - Grundlagen der Entwicklung"
echo ""
exit 1
fi
file=$1
lang=$2
type=${3:-simple}
nawk 'BEGIN{type="'${type}'"}
/^  [a-zA-Z0-9]/{gsub ("^  ", ""); link=$0}
/^    \['${lang}'/{gsub ("^    \\['${lang}'\\]", "");
split ($0, desc, "|");
if (type == "twiki") {printf ("[[%s][%s]] %s<br>\n", link, desc[1], desc[2])}
else if (type == "table") {printf ("<tr><td><a href=\"%s\">%s</a></td><td>%s\n", link, desc[1], desc[2])}
else {printf("<a href=\"%s\">%s</a> %s<br>\n", link, desc[1], desc[2])}
}' \
$file

Here’s a sample command line, producing standard HTML output with German link descriptions:

create-link-list.ksh links.txt de

Output:
Code-Beispiele für den Zugang zu den Firefox-Tabs
Firefox-Erweiterungen – Grundlagen der Entwicklung

And here a command that produces Twiki formatted output, this time with English link descriptions:

create-link-list.ksh links.txt en twiki

Output:
[[http://developer.mozilla.org/en/docs/Code_snippets:Tabbed_browser][Code examples]] for access to Firefox tabs
[[http://kb.mozillazine.org/Extension_development#Introduction][Firefox extensions]] Firefox extension development basics

For producing HTML table formatted output, use the following command:

create-link-list.ksh links.txt en table

Output (table statements added manually):

Code examples for access to Firefox tabs
Firefox extensions Firefox extension development basics

Thinking out of the box: Project EcoBox unveiled on April 1st, 2007!

April 4, 2007

Great news: Sun has unveiled Project EcoBox. A great place to work!

Details here:

http://www.openwork3.com
http://www.youtube.com/watch?v=iSuLMhTnuMc