Updates from March, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • bqx40 1:30 pm on March 24, 2011 Permalink | Reply
    Tags: Nutrition info   

    Misleading nutrition labels 

    20110324-013228.jpg
    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.

     
  • tech0x20 3:53 pm on March 21, 2011 Permalink | Reply
    Tags: , , ,   

    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…

    #include 
    #include 
    
    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);
        printf("%s",string);
        return 0;
    }
    
     
  • tech0x20 6:29 am on March 17, 2011 Permalink | Reply
    Tags: groups, linkedin   

    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

     
    • Filtersweep 1:31 pm on June 10, 2011 Permalink | Reply

      It works, but is about as byzantine as possible.  They even have the leave group button “greyed out” to discourage me from clicking on it.

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
%d bloggers like this: