<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Adapting Twitter4J java code to run as MXJ</title>
		<atom:link href="http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/feed</link>
		<description></description>
		<pubDate>Thu, 20 Jun 2013 02:44:00 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-63881</guid>
					<title><![CDATA[Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-63881</link>
					<pubDate>Mon, 06 Aug 2012 21:34:43 +0000</pubDate>
					<dc:creator>chope1</dc:creator>

					<description>
						<![CDATA[
						<p>Hi All,</p>
<p>I am trying to create an MXJ object from Twitter4J to make a list of daily trending topics on twitter. </p>
<p>I have seen something similar on the max forum already that is also based on twitter4J: <a href="http://cycling74.com/toolbox/searchtweet-design-patches-that-respond-to-twitter-posts/" rel="nofollow">http://cycling74.com/toolbox/searchtweet-design-patches-that-respond-to-twitter-posts/</a></p>
<p>This is the &#8216;GetDailyTrends&#8217; code from Twiter4J to get a trending list from twitter: <a href="https://github.com/yusuke/twitter4j/blob/master/twitter4j-examples/src/main/java/twitter4j/examples/trends/GetDailyTrends.java" rel="nofollow">https://github.com/yusuke/twitter4j/blob/master/twitter4j-examples/src/main/java/twitter4j/examples/trends/GetDailyTrends.java</a></p>
<p>What i have tried so far:</p>
<p>I have made some test MXJ objects successfully already. This one using an eclipse tutorial: (<a href="http://compusition.com/web/articles/maxmsp-eclipse" rel="nofollow">http://compusition.com/web/articles/maxmsp-eclipse</a>)  and also this from the MXJ tutorials (file:///Applications/Max5/java-doc/tutorial/html/Tutorial01.html) </p>
<p>Following this i tried compiling the GetDailyTrends .java code in Eclipse. this seems to work ok; it compiles and i get a returned list of trending topics in the eclipse console window. </p>
<p>When i add my extra code to this to turn it into a MXJ object i run into trouble. i got the error messages:</p>
<p>Error<br />
Mon Aug 06 16:56:06 BST 2012<br />
The Class File Viewer cannot handle the given input (&#8216;org.eclipse.ui.ide.FileStoreEditorInput&#8217;).</p>
<p>There does seem to be a .class file generated though which i tried to open in max but when i send it a bang the max window reads:<br />
 GetDailyTrends doesn&#8217;t understand bang</p>
<p>here is the object in Max:</p>
<div><span id="toggle63881-0" class="patchtoggle" onmousedown="toggleMaxPatch('post63881-0', 'er63881-0');">&#8211; Pasted Max <span id="maxversion63881-0"></span> Patch, click to <span id="er63881-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A369.3ocuTE0RCCCD94zeEg7bczj5lSeSPPPv27AAYHoswsHsIklq3li8e2lz%0Al41bctILeoG4tu16669tzkAHRhdtvPv2feAiPKCPHWJaBT2YDofOOMmabvHE%0ABigOUPBaqAh4fKOKhxviwi7Ez0Pt.fEkh1uNgfmzUpjCoyjpouVIRg1pT5kC%0AhBwzgWaCCuxcX7fn0uiLy0Ecx6WPi783MsBT7BWGH2VI449Jp5Bopo%2BNNy1.%0AtQ9oCNk0zh0XaIqCL0lbUPf8Q3QNSThOZH1OFIkUREP5WzLF0pS1nXaH1MAX%0AQ6Wzwmnlomhli9CZNoF.spW2NgqldPGmQiac7Hur6W7rCJwyl%2B83yOfuW.2w%0Ak4KdpRnxL8ubG9KK3LpaytKP6b9dzK8bZ1rMFPtlSxkpc%2BGfSA17aO0L55pT%0Aul82EweqgLgAjJNHa1L1.zVXlIyxDtxd9UHyJ0MWU53.dxdsvilRGAih%2BWYD%0A6LOiZNrJ3Kvu3Ikw%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post63881-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode63881-0">----------begin_max5_patcher----------
369.3ocuTE0RCCCD94zeEg7bczj5lSeSPPPv27AAYHoswsHsIklq3li8e2lz
l41bctILeoG4tu16669tzkAHRhdtvPv2feAiPKCPHWJaBT2YDofOOMmabvHE
BigOUPBaqAh4fKOKhxviwi7Ez0Pt.fEkh1uNgfmzUpjCoyjpouVIRg1pT5kC
hBwzgWaCCuxcX7fn0uiLy0Ecx6WPi783MsBT7BWGH2VI449Jp5Bopo+NNy1.
tQ9oCNk0zh0XaIqCL0lbUPf8Q3QNSThOZH1OFIkUREP5WzLF0pS1nXaH1MAX
Q6Wzwmnlomhli9CZNoF.spW2NgqldPGmQiac7Hur6W7rCJwyl+83yOfuW.2w
k4KdpRnxL8ubG9KK3LpaytKP6b9dzK8bZ1rMFPtlSxkpc+GfSA17aO0L55pT
ul82EweqgLgAjJNHa1L1.zVXlIyxDtxd9UHyJ0MWU53.dxdsvilRGAih+WYD
6LOiZNrJ3Kvu3Ikw
-----------end_max5_patcher-----------</code></pre></div>
</div>
<p>Does anyone have an idea of what i should be doing to adapt this code to run as an MXJ? Without any other knowledge of writing Java i dont know from looking at the code exactly how it functions (ie. what do info do its inlets and outlets need/produce etc.)  to construct the right code around it.</p>
<p>I have attached the .java MXJ file i created.</p>
<p>The code i added to the original  file is this:</p>
<p>import com.cycling74.max.Atom;<br />
import com.cycling74.max.MaxObject;</p>
<p>And this:</p>
<p>  private static final String[] INLET_ASSIST<br />
	= { &#8220;bang to generate daily trends list&#8221; };<br />
    private static final String[] OUTLET_ASSIST<br />
	= { &#8220;output daily trends list&#8221;,  };</p>
<p>    public GetDailyTrends(Atom[] atoms) {<br />
	declareInlets(new int[] { 15 });<br />
	declareOutlets(new int[] { 15 });<br />
	setInletAssist(INLET_ASSIST);<br />
	setOutletAssist(OUTLET_ASSIST);<br />
    }</p>
<p>Any Help is much appreciated, Cheers.</p>
<p>I am running Max5 on OSX 10.6.8</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230358</guid>
					<title><![CDATA[Re: Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230358</link>
					<pubDate>Mon, 06 Aug 2012 22:34:28 +0000</pubDate>
					<dc:creator>freeman999</dc:creator>

					<description>
						<![CDATA[
						<p>I used Twitter4J in my Individual Project for the Streaming API, so it&#8217;s slightly different. I did everything in Eclipse, following these instructions to get Eclipse set up correctly: <a href="http://compusition.com/web/articles/maxmsp-eclipse" rel="nofollow">http://compusition.com/web/articles/maxmsp-eclipse</a></p>
<p>After this, I mainly let Eclipse check for errors, and corrected things until it seemed happy to compile. Then I crashed Max lots, until I finally got my external working properly.</p>
<p>Hope this helps a little!</p>
<p>The top of my file ended up like this: </p>
<p>package twitter4j.examples.stream;</p>
<p>import twitter4j.FilterQuery;<br />
import twitter4j.Status;<br />
import twitter4j.StatusDeletionNotice;<br />
import twitter4j.StatusListener;<br />
import twitter4j.TwitterException;<br />
import twitter4j.TwitterStream;<br />
import twitter4j.TwitterStreamFactory;<br />
import twitter4j.conf.ConfigurationBuilder;</p>
<p>import java.util.ArrayList;<br />
import java.util.Arrays;<br />
import java.util.Date;</p>
<p>import com.cycling74.max.Atom;<br />
import com.cycling74.max.MaxObject;</p>
<p>/**<br />
 *
</p><p>This is a code example of Twitter4J Streaming API &#8211; filter method support.<br />
 * Usage: java twitter4j.examples.stream.PrintFilterStream [follow(comma separated numerical user ids)] [track(comma separated filter terms)]<br />
 * </p>
<p>
 *<br />
 * @author Yusuke Yamamoto &#8211; yusuke at mac.com<br />
 */<br />
public class getFilterStream extends MaxObject {<br />
    private TwitterStream twitterStream;<br />
/**<br />
     * Main entry of this application.<br />
     *<br />
     * @param args follow(comma separated user ids) track(comma separated filter terms)<br />
     * @throws twitter4j.TwitterException<br />
     */<br />
	public getFilterStream() {<br />
			declareIO(1,3);<br />
		}</p>
<p>[Rest of my code went here]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230359</guid>
					<title><![CDATA[Re: Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230359</link>
					<pubDate>Tue, 07 Aug 2012 03:58:07 +0000</pubDate>
					<dc:creator>chope1</dc:creator>

					<description>
						<![CDATA[
						<p>OK thanks for the pointers. Here&#8217;s where I&#8217;ve got to.</p>
<p>I tried compiling the searchtweet.class file in eclipse because i knew it worked already in max. it had the same  error as the code in the console as i got when trying to run my GetDailyTrends code. So&#8230; i checked the code i again in eclipse and compiled it (would it even compile if there was an error at this point?) </p>
<p>Next going into max i sent a bang into the object i get  &#8216;GetDailyTrends doesn&#8217;t understand bang&#8217; in the max window &#8211; its in white text, not highlighted red. does this mean that the mxj object might work but that it just needs the right combination of other max objects around it to give it specific information (not just a bang in the inlet) to make it function?? The mxj searchtweet object needed text in a specific way to work. Can anyone suggest how i could use a few max objects to get this to work.</p>
<p>mxj searchtweet and max objects:</p>
<div><span id="toggle230359-0" class="patchtoggle" onmousedown="toggleMaxPatch('post230359-0', 'er230359-0');">&#8211; Pasted Max <span id="maxversion230359-0"></span> Patch, click to <span id="er230359-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A724.3oc0VErbZCCD8L7UriamoWnLRxxXH2RO2N8PysRmLB6MNJwVhwVtAZl7%0AuWKYb.JfMjPyL4.1nUxRu8o2SZereOuY5EXgGbA7SnWuG62qmKjMPuUs64kI%0AVDkJJbCyKCKJDIn2f59L3BiK9TuqJQ3xxDfDBD9EA9WvGAe4GWALBkM0q4Cl%0AKLQ2JUIWmiQl5ElFFLjL.3Dt8EqtEc7PB7qUejL1sF5Y28YZPyLciVYThLz0%0A0k4RQZSOpxLoJEMNDyVGTWZZhRafSNVfJivH0pCBIxpGOiG6RWH%2Biaoorpdq%0ACWO%2Blkyw5YwyC9ksmm5229XvQRwyJMFspEBiE3f0H6JC9iZdtW5JbujBsURY%0Am7XlPk7xxEq9.iklczK5rjVyvZQ.0kn9LWKl%2BAxQd2RhToB%2B2LeW5PTZzEQ4%0A5zTaTxdII9pnyRhzo57Z7RFNgOgvFrm%2BP2.z2iKyzw3lK4VRoQsHkF.dRkw9%0Ax86EsabHyaAJxitE9HEncK6niCsuB8a0lxNq1z%2BuFNE9PEl2gUxqldDbM6Vo%0AxG6rjTmPkb.Rgbhjx9sorSkTN65kodev7.hlT48XlXYNlJgoSm580raDZHoT%0AVfHBqGy2VMFYAXxQUbEEBCgumk.xOksYnTLKCgBidNLzNgqu2vZfizkJG.7a%0A6xj5SE40GYD5jr7Cb5332QhzCsWbcp92X5RQpLRJDdcyLzZlg1p%2BM78u8Maw%0AcP8AaNcXqdXGWvXN26jv17vAmEKL%2BkXg26Q%2BNLt95s0kw4xSa7sYtBcYdTyz%0AtJg.1yYZLVXjJW4PaLFaQW.84AcqLNFUadEYlLdtt55oUXvu5d6fJoFwU4DO%0AntDksaMw8hyItQNw4P26l%2BwlH1Rc.RWYBeqA0Yl7ZwD%2BXvD4MESAGAjBOs8a%0AVUonq2u8qJdto0Y.qzNv53SDqiGuo1rpv4yDVsk7zIwF71J%2BHGi7i8JvTUim%0A5%2BW.977RFC%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post230359-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode230359-0">----------begin_max5_patcher----------
724.3oc0VErbZCCD8L7UriamoWnLRxxXH2RO2N8PysRmLB6MNJwVhwVtAZl7
uWKYb.JfMjPyL4.1nUxRu8o2SZereOuY5EXgGbA7SnWuG62qmKjMPuUs64kI
VDkJJbCyKCKJDIn2f59L3BiK9TuqJQ3xxDfDBD9EA9WvGAe4GWALBkM0q4Cl
KLQ2JUIWmiQl5ElFFLjL.3Dt8EqtEc7PB7qUejL1sF5Y28YZPyLciVYThLz0
0k4RQZSOpxLoJEMNDyVGTWZZhRafSNVfJivH0pCBIxpGOiG6RWH+iaoorpdq
CWO+lkyw5YwyC9ksmm5229XvQRwyJMFspEBiE3f0H6JC9iZdtW5JbujBsURY
m7XlPk7xxEq9.iklczK5rjVyvZQ.0kn9LWKl+AxQd2RhToB+2LeW5PTZzEQ4
5zTaTxdII9pnyRhzo57Z7RFNgOgvFrm+P2.z2iKyzw3lK4VRoQsHkF.dRkw9
x86EsabHyaAJxitE9HEncK6niCsuB8a0lxNq1z+uFNE9PEl2gUxqldDbM6Vo
xG6rjTmPkb.Rgbhjx9sorSkTN65kodev7.hlT48XlXYNlJgoSm580raDZHoT
VfHBqGy2VMFYAXxQUbEEBCgumk.xOksYnTLKCgBidNLzNgqu2vZfizkJG.7a
6xj5SE40GYD5jr7Cb5332QhzCsWbcp92X5RQpLRJDdcyLzZlg1p+M78u8Maw
cP8AaNcXqdXGWvXN26jv17vAmEKL+kXg26Q+NLt95s0kw4xSa7sYtBcYdTyz
tJg.1yYZLVXjJW4PaLFaQW.84AcqLNFUadEYlLdtt55oUXvu5d6fJoFwU4DO
ntDksaMw8hyItQNw4P26l+wlH1Rc.RWYBeqA0Yl7ZwD+XvD4MESAGAjBOs8a
VUonq2u8qJdto0Y.qzNv53SDqiGuo1rpv4yDVsk7zIwF71J+HGi7i8JvTUim
5+W.977RFC
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230360</guid>
					<title><![CDATA[Re: Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230360</link>
					<pubDate>Tue, 07 Aug 2012 20:27:53 +0000</pubDate>
					<dc:creator>chope1</dc:creator>

					<description>
						<![CDATA[
						<p>Update&#8230; I think i was looking at it from the wrong angle before I just dont know enough about java!. what i need to know to make this work:<br />
- the kind of information coming in from twitter &#8211; a json file<br />
- how the GetDailyTrends patch functions and what it is likely to output to max<br />
- how to add to the existing patch to get it to function as an MXJ with in/outputs</p>
<p>I&#8217;ve found out some more about the Java patch and how it works, also an example of the json file it receives from twitter.</p>
<p>The json file from twitter has a whole load of info i dont need; url, query, promoted_content, events&#8230; i only need the text part that comes after &#8220;name&#8221;. Here;s a snippet of that code: </p>
<p>            &#8220;url&#8221;: &#8220;<a href="http://twitter.com/search/%23ThoughtsDuringSchool&#038;#8221" rel="nofollow">http://twitter.com/search/%23ThoughtsDuringSchool&#038;#8221</a>;,<br />
            &#8220;query&#8221;: &#8220;%23ThoughtsDuringSchool&#8221;,<br />
            &#8220;name&#8221;: &#8220;#ThoughtsDuringSchool&#8221;,<br />
            &#8220;promoted_content&#8221;: null,<br />
            &#8220;events&#8221;: null</p>
<p>Looking at the code in GetDailyTrends.java it looks like it prints out the list of names with this line of code:   System.out.println(&#8221; &#8221; + trend.getName());</p>
<p>here is the code around it:</p>
<p>System.out.println(&#8220;Showing daily trends&#8221;);<br />
            for (Trends trends : trendsList) {<br />
                System.out.println(&#8220;As of : &#8221; + trends.getAsOf());<br />
                for (Trend trend : trends.getTrends()) {<br />
                    System.out.println(&#8221; &#8221; + trend.getName());<br />
                }<br />
            }<br />
            System.out.println(&#8220;done.&#8221;);<br />
            System.exit(0);</p>
<p>I think what I need to do is find a way to output all the text that is being send out of the &#8216;System.out.println&#8217; function in to an output of the mxj object as text.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230361</guid>
					<title><![CDATA[Re: Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230361</link>
					<pubDate>Tue, 07 Aug 2012 21:34:22 +0000</pubDate>
					<dc:creator>freeman999</dc:creator>

					<description>
						<![CDATA[
						<p>Okay, I&#8217;ve got all this stuff working. Twitter4j has built-in JSON parsing, so you don&#8217;t need to worry about that. Also, you definitely need to delete the line &#8216;System.exit(0);&#8217; < ---causes Max to quit, duh.</p>
</p><p>After you&#8217;ve got the code below compiled, you should be able to initiate the object in Max &#8211; send it a &#8216;main&#8217; message, and it will print the trends out of the console, and also out of the first outlet.</p>
<p>If any of this doesn&#8217;t make sense, then it&#8217;s probably because I&#8217;m an idiot/amateur. Enjoy!<br />
Assuming you&#8217;ve added all the correct .jars to your &#8216;lib&#8217; folder (I just chucked them all in), then this code should compile:</p>
<pre><code>/*
 * Copyright 2007 Yusuke Yamamoto
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package twitter4j.examples.trends;

import twitter4j.Trend;
import twitter4j.Trends;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;

import com.cycling74.max.Atom;
import com.cycling74.max.MaxObject;

/**
 * Shows daily trends.
 *
 * @author Yusuke Yamamoto - yusuke at mac.com
 */
public final class GetDailyTrends extends MaxObject {
    /**
     * Usage: java twitter4j.examples.trends.GetDailyTrends [yyyy-mm-dd]
     *
     * @param args message
     */
	public GetDailyTrends(){
		declareIO(1,1);
	}

    public void main(String[] args) {
        try {
            Twitter twitter = new TwitterFactory().getInstance();
            List<trends> trendsList;
            if (args.length > 0) {
                trendsList = twitter.getDailyTrends(new SimpleDateFormat("yyyy-MM-dd").parse(args[0]), false);

            } else {
                trendsList = twitter.getDailyTrends();
            }
            outlet(0, "Showing daily trends");
            System.out.println("Showing daily trends");
            for (Trends trends : trendsList) {
            	outlet(0, "As of : " + trends.getAsOf());
                System.out.println("As of : " + trends.getAsOf());
                for (Trend trend : trends.getTrends()) {
                	outlet(0, " " + trend.getName());
                    System.out.println(" " + trend.getName());
                }
            }
            System.out.println("done.");

        } catch (ParseException pe) {
            System.out.println("Usage: java twitter4j.examples.trends.GetDailyTrends [yyyy-mm-dd]");
            System.exit(-1);
        } catch (TwitterException te) {
            te.printStackTrace();
            System.out.println("Failed to get trends: " + te.getMessage());
            System.exit(-1);
        }
    }
}</trends></code></pre>						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230362</guid>
					<title><![CDATA[Re: Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230362</link>
					<pubDate>Tue, 07 Aug 2012 22:26:23 +0000</pubDate>
					<dc:creator>chope1</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Thanks so much. I just tried the code and it compiles and runs in eclipse. Only thing is I cant get it to print out in max!!. looking at the max window it seems to load fine&#8230;. What did you mean about sending it a &#8216;main&#8217; message. i tried a few different things into the inlet but no results. sorry if i&#8217;m being dumb.</p>
<p>And thanks again for your help i really appreciate it.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230363</guid>
					<title><![CDATA[Re: Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230363</link>
					<pubDate>Tue, 07 Aug 2012 22:34:14 +0000</pubDate>
					<dc:creator>freeman999</dc:creator>

					<description>
						<![CDATA[
						<p>Something like this?</p>
<div><span id="toggle230363-0" class="patchtoggle" onmousedown="toggleMaxPatch('post230363-0', 'er230363-0');">&#8211; Pasted Max <span id="maxversion230363-0"></span> Patch, click to <span id="er230363-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A339.3ocoS0zaBCCC8b5uhnbtqhDnZebaRSZ%2BA1sIzTn0CBpIopwHJCw%2B805R%0AEvFHUfKIxOaY%2Bdu3rMhIl4qgff%2BB%2BSNisMhwHnV.19XlvpqyJzApLgCV6msT%0AD2kBgZjfKqLNrG8auCcZKPYdsxnK5yTpwrEF27upfLrarpzQIih4Jop8Z7DJ%0AnAhO8ntEL%2BPciJpC1jSsugLOn5auak03J.jnp7.neE1iNpEbWTT6Q7.0rEBA%0A8b3eh1pMtdvtQfaJgNYIDmHfgaGSdr0AjiGS1QWvSWkcjdV6PcV6PdC1wEVA%0Ar0K43ZChP0jkIPs1VV.gDrBb4gj2A7MsoXyGT3kcs3614RelVgRk2vlj7J1j%0ATGYczHDEF2e%2BLQ7rE%2BT%2BL3WUk0q48Clefn4P.MNMZ7tipQcRMKL44.ktWGVS%0Adou4a3dJvmd121gxnzAvH4cvnlfcQ%2Bh7g0vr%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post230363-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode230363-0">----------begin_max5_patcher----------
339.3ocoS0zaBCCC8b5uhnbtqhDnZebaRSZ+A1sIzTn0CBpIopwHJCw+805R
EvFHUfKIxOaY+du3rMhIl4qgff+B+SNisMhwHnV.19XlvpqyJzApLgCV6msT
D2kBgZjfKqLNrG8auCcZKPYdsxnK5yTpwrEF27upfLrarpzQIih4Jop8Z7DJ
nAhO8ntEL+PciJpC1jSsugLOn5auak03J.jnp7.neE1iNpEbWTT6Q7.0rEBA
8b3eh1pMtdvtQfaJgNYIDmHfgaGSdr0AjiGS1QWvSWkcjdV6PcV6PdC1wEVA
r0K43ZChP0jkIPs1VV.gDrBb4gj2A7MsoXyGT3kcs3614RelVgRk2vlj7J1j
TGYczHDEF2e+LQ7rE+T+L3WUk0q48Clefn4P.MNMZ7tipQcRMKL44.ktWGVS
dou4a3dJvmd121gxnzAvH4cvnlfcQ+h7g0vr
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230364</guid>
					<title><![CDATA[Re: Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230364</link>
					<pubDate>Tue, 07 Aug 2012 22:39:09 +0000</pubDate>
					<dc:creator>chope1</dc:creator>

					<description>
						<![CDATA[
						<p>Uh-ohh too simple. I think i tried that first and it did nothing. think maybe i hadn&#8217;t updated the class file at that point- doh.</p>
<p>Cheers for the help, I owe you a beer!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230365</guid>
					<title><![CDATA[Re: Adapting Twitter4J java code to run as MXJ]]></title>
					<link>http://cycling74.com/forums/topic/adapting-twitter4j-java-code-to-run-as-mxj/#post-230365</link>
					<pubDate>Tue, 07 Aug 2012 22:43:06 +0000</pubDate>
					<dc:creator>freeman999</dc:creator>

					<description>
						<![CDATA[
						<p>No problem :) I banged my head against the wall for a while getting twitter4j working in my dissertation. Enjoy!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

