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 later is the exception–especially when it’s a product or package that does not lend itself to warming and consuming only part, such as a pot pie or a burrito.

Date formatting for Single Unix Specification(R) versions of “date”

The date command is wonderful for formatting dates, as such

date --date="2010-01-01" +%Y%j

But what happens when you’re on a system whose date command only supports the -u [UTC] and + [for formatting] options?

Below is a quick hack in straight C that provides the ability to format a date that you provide. This is ideal if your unix install of perl is very basic or non-existent, but you still have access to the C compiler.

Compiling the target would go as follows:

gcc strptime.c -o strptime

Running the output would be as follows:

./strptime "2010-01-01" "%Y%j"

strptime.c source code–Please note: there is limited error checking for the wrong arguments, etc., and overlapping a built-in name such as strptime() isn’t the best of practices…


int main(int argc, char *argv[]) {
    struct tm tm;
    time_t t;
    char string[255];

    if(strptime(argv[1], "%Y-%m-%d", &tm) == NULL) {
        if (strptime(argv[1], "%m/%d/%Y", &tm) == NULL ) {
            fprintf(stderr, "format errorn");
            return 1;
    strftime(string, sizeof(string) - 1, argv[2], &tm);
    return 0;

How to Leave a Linked In Group

I found that the instructions found on LinkedIn via this Google search are all wrong, I’m assuming due to a site redesign since all of those questions were answer.

Try the following instead:

  • Log in [of course]
  • Click on Groups along the top row:

  • Click the name of the group you want to leave.
  • Click More… below the group title

  • Click “My Settings” in the drop-down

  • Click “Leave Group” at the bottom of the page

Track your unread items/total items count in Outlook on startup.

I added this to my Outlook macros [started with code for displaying all unread messages].

After selecting Alt-F11 and ThisOutlookSession [on the left sidebar], I selected “Application” and “Startup” [which is where this code is added.]

It append to a .csv file that can be opened in Excel. This is nice if you’re attempting to get your inbox under control and want to track your progress.

Private Sub Application_Startup()
    On Error GoTo itfailed:
    ' I want to be able to catch up by reading all my unread messages
    Dim ns As Outlook.NameSpace
    Dim folder As MAPIFolder
    Dim item As Object
    Dim msg As MailItem
    Dim myfolder

    ' Open the inbox folder
    Set ns = Session.Application.GetNamespace("MAPI")
    Set folder = ns.GetDefaultFolder(olFolderInbox)

    myfolder = Environ$("USERPROFILE") & "my documents"

    myfile = "outlookunread.csv"
    Open myfolder & myfile For Append As 1
    Print #1, Strings.Format(Now, "Short Date") + " " + Strings.Format(Now, "Long Time") + "," + CStr(folder.UnReadItemCount) + "," + CStr(folder.Items.Count)
    Close 1
    Exit Sub
    MsgBox Err.Description, vbCritical, Err.Number

End Sub