Saturday, December 18, 2010

, , , | by Posted by Unknown

0

Update twitter status Using MATLAB

Update your Twitter® status from MATLAB®, created by Navan Ruthramoorthy that’s you may update status on Twitter via MATLAB. To make it work in R2007b you need to do the following:

 

1. Download the Apache commons codec binaries from http://commons.apache.org/codec/download_codec.cgi.
2. After you extract the binaries add the jar file to the java path using
javaaddpath('<pathtofile>/commons-codec-1.4.jar'). Replace <pathtofile> with the directory where you extracted the files.
3. In twit.m replace the line:114 which currently is
114: outputStream.write(java.lang.String(msgEncodedStrforPost).getBytes());

with the following two lines.

msgEncodedStrforPostString = java.lang.String(msgEncodedStrforPost);
outputStream.write(msgEncodedStrforPostString.getBytes());

After this it should work. Let me know if this helps.

From R2008a the Apache commans libraries are available and the code works without any changes.

 

0 comments:

Post a Comment