Archive for December, 2008

Real-time USB in Matlab (2 of 2)

December 24, 2008 1 comment

Posting history:

Real-time USB in Matlab (1 of 2)

Real-time USB in Matlab (2 of 2)
Last month I had started a project using a TI MSP430 to communicate over USB with MATLAB and Simulink, and today I finished the real-time display of room temperature in Simulink.

Here is the end result. It’s a simple display and scope at the top level, but I used a roundabout method to choose data from the stream of USB data.

The completed files for displaying temperature from the USB MSP430RF2500 can be downloaded here:

Save GMail messages as files, including attachments

December 7, 2008 2 comments

GMail does not make it easy to save messages as files, but there are some practical reasons you may want to do so:

  • You may want to email several messages to another person as an attachment. This is supported in most email clients, but not typically in webmail.
  • You may want to save a copy of a message on your computer to access it offline.

Saving a *.eml file from the GMail Interface
It is possible to save a GMail message as an *.eml file including both the message and attachments, but it is not intuitive in the web-based interface.
  1. In the top right corner of any message, there is a down arrow ▼ that gives more options for dealing with messages. Select “Show original” from this list.
    More Options > Show original
  2. Lots of text is shown in a new window. This is the actual content of the email message with attachments appended at the end. Different browsers support saving this page differently, but in any browser you can copy the text and paste it in Notepad. In Internet Explorer or Mozilla Firefox you can choose to save the page from the File menu and select “Text File.”
  3. Save the file with a *.eml extension (mymessage.eml).

The *.eml extension is probably associated with your email client, so you should be able to double-click on the file to open it and view the original content and any attachments. If you would like to forward these attachments, you can attach them to an email like any other file.

Making the process easier… but more complicated
If you would use this process a lot and would like to look into some coding, this process could be automated. The GMail URL’s allow for a shortcut method to view the files using a bookmarklet or greasemonkey script. These are the URL’s of the “Show Original” link and the original message:
Original Message
“Show Original” output
A script would simply need to do some text manipulation to put the message ID in the right place to show the original email text. Automatically saving as a *.eml file would be a plus, too.
Categories: Innovation, PC Software