-
Using Escape Codes and Setting Window Title on PS1 for ksh (Korn Shell)
I set up the following in my ~/.profile for my ksh login: export HOST=$(hostname) export PS1=$(perl -e ‘printf “33]0;${USER}@${HOST}:${PWD}07$”‘) Unfortunately, ksh doesn’t understand escape codes, so perl or awk is necessary to pull this off–or you can enter them literally via your editor. I like the perl route just for ease of maintenance. This was…
-
Count Outlook Inbox Unread / Total From Ruby
Well, Track your unread items/total items count in Outlook on startup, except for the pesky Outlook Macro disabled security problem. Besides, I never restarted Outlook often enough for it to track much of anything. Instead, I decided to create a Ruby script to track the count. I’ve left reference URLs and test notes in place…
-
Misleading nutrition labels
Burrito Nutrition Label I hate when single serve packages list multiple servings for the package. The most likely consumption scenario, at least in the U.S., is that the entire package will be one serving. It may actually only be a partial serving, even. The person who cuts the product in half and saves half for…
