Integration - Processing Discourse board_Integrate.html Integration - Processing Discourse en-us Processing Discourse Thu, 22 Mar 2012 06:16:05 +0000 http://blogs.law.harvard.edu/tech/rss 30 Ubuntu logs off num_1271869958.html Processing Discourse/Integration num_1271869958.html Thu, 17 Jun 2010 00:39:34 +0000 experienced two crashes last night whilst running open source graphics drivers. this happened whilst i was running a sketch not when i launched it. no other apps were open.<br /><br />i was logged out of x each time.<br /><br />i have turned off desktop effects and left a sketch running to see if this has fixed anything.<br /><br /> Invisible Paint num_1276759042.html Processing Discourse/Integration num_1276759042.html Thu, 17 Jun 2010 00:17:22 +0000 I am looking for a paint/ink/powder coating to be painted onto glass. It should be invisible until excited by ir beam and will then light up to provide a high profile message. <br />I hope someone out there can help.<br />Brit command-line for OS X num_1276713151.html Processing Discourse/Integration num_1276713151.html Wed, 16 Jun 2010 11:32:31 +0000 Processing looks like a nice library for doing 3D animation on top of Java, but I'd just as soon do my own IDE.  On OS X.  So I'm interested in using a command-line version of Processing on OS X.<br /><br />I didn't see anything in Processing.app -- is there such a tool?  Did I miss it?<br /><br />So I wrote my own:<br /><br /> <b>Code:</b><pre class="code"><br &#47;>#&#33;&#47;bin&#47;sh<br &#47;><br &#47;>JAVAROOT=&#47;Applications&#47;Processing&#46;app&#47;Contents&#47;Resources&#47;Java<br &#47;>CLASSPATH=$&#123;JAVAROOT&#125;&#47;pde&#46;jar&#58;$&#123;JAVAROOT&#125;&#47;core&#46;jar&#58;$&#123;JAVAROOT&#125;&#47;ant&#46;jar&#58;$&#123;JAVAROOT&#125;&#47;ant&#45;launcher&#46;jar&#58;$&#123;JAVAROOT&#125;&#47;antlr&#46;jar&#58;$&#123;JAVAROOT&#125;&#47;ecj&#46;jar&#58;$&#123;JAVAROOT&#125;&#47;jna&#46;jar&#58;$&#123;JAVAROOT&#125;&#47;quaqua&#46;jar<br &#47;><br &#47;>&#47;usr&#47;bin&#47;java &#45;classpath &quot;$&#123;CLASSPATH&#125;&quot; &#45;Xms128M &#45;Xmx500M &quot;&#45;&#068;javaroot=$&#123;JAVAROOT&#125;&quot; &#45;&#068;com&#46;apple&#46;hwaccel=true &#45;&#068;apple&#46;awt&#46;graphics&#46;useQuartz &#45;&#068;java&#46;library&#46;path=$&#123;JAVAROOT&#125;   </pre><br /><br />Seem about right?  How about including something like this in the app bundle for the OS X distribution?<br /><br />Thanks.<br /><br /><br /> SQLite with big database num_1276447735.html Processing Discourse/Integration num_1276447735.html Tue, 15 Jun 2010 04:35:29 +0000 i solved it this way:<br /><br />for searching the database for RGB colours:<br /> <b>Code:</b><pre class="code"><br &#47;> int cp = get&#40;counter, 0&#41;;<br &#47;>  float redCol = red&#40;get&#40;counter, 0&#41;&#41;;<br &#47;>  float greenCol = green&#40;get&#40;counter, 0&#41;&#41;;<br &#47;>  float blueCol = green&#40;get&#40;counter, 0&#41;&#41;;<br &#47;>  &#47;&#47;mySQL doorzoeken voor waardes<br &#47;>  int range = 2;<br &#47;>  int searchstart  = int&#40;redCol&#41; &#45; range;<br &#47;>  int searchend = int&#40;redCol&#41; + range;<br &#47;>  int greenstart  = int&#40;greenCol&#41; &#45; range;<br &#47;>  int greenend = int&#40;greenCol&#41; + range;<br &#47;>  int bluestart  = int&#40;blueCol&#41; &#45; range;<br &#47;>  int blueend = int&#40;blueCol&#41; + range;<br &#47;>  String query = &quot;SELECT * FROM answers WHERE &#40;r &gt;= &quot;+searchstart+&quot;&#41; AN&#068; &#40;r &lt;= &quot;+searchend+&quot;&#41; AN&#068; &#40;g &gt;= &quot;+greenstart+&quot;&#41; AN&#068; &#40;g &lt;= &quot;+greenend+&quot;&#41; AN&#068; &#40;b &gt;= &quot;+bluestart+&quot;&#41; AN&#068; &#40;b &lt;= &quot;+blueend+&quot;&#41;&quot;;<br &#47;>  db&#46;query&#40;query&#41;;<br &#47;>  String colorname = db&#46;getString&#40;&#40;&quot;colorname&quot;&#41;&#41;;<br &#47;> </pre> Processing plugin for Netbeans num_1201979050.html Processing Discourse/Integration num_1201979050.html Mon, 14 Jun 2010 11:12:44 +0000 Any progress on this? PDE does not start on ubuntu 9.04 num_1274193349.html Processing Discourse/Integration num_1274193349.html Sun, 13 Jun 2010 13:37:19 +0000 hi there<br />thank you for your suggestions. i have managed to get processing working on ubuntu 9.04 it was just simply as martin_p suggested that the processing script file was not executable.<br />many thanks for the help.<br /><img src="yabbfiles/Templates/Forum/processing_one/smiley.gif" border="0" alt="Smiley" title="Smiley" /> 'Global classes in eclipse' num_1276279702.html Processing Discourse/Integration num_1276279702.html jomasan@gmail.com (Jose) Sun, 13 Jun 2010 05:41:12 +0000 Hey,<br />Thx, I figured it out... I was casting just the PApplet into the other classes but if I cast 'myProcessingSketch' class I can access all the variables and classes with the calling parent.<br />Eclipse is a really great environment for code development.<br />Cheers. Online high scores for an applet? num_1276318300.html Processing Discourse/Integration num_1276318300.html Sat, 12 Jun 2010 02:34:16 +0000 You need to have a server-side script (eg. written in PHP) which handle requests sending the high scores back to the central server.<br />Then the applet can also retrieve the list of high scores.<br /><br />Real world online games (mostly Flash applets) encrypt the sent information to avoid having players to artificially up their scores... Processing and Twitter num_1192732862.html Processing Discourse/Integration num_1192732862.html Tue, 08 Jun 2010 11:13:50 +0000 Looks like twitter is turning off basic authenication soon and moving to Oauth.<br /><br />http://apiwiki.twitter.com/Authentication<br /><br />Is it going to be difficult to integrate with processing?<br /> Processing Interpreter? num_1275980890.html Processing Discourse/Integration num_1275980890.html Tue, 08 Jun 2010 04:53:55 +0000 Thank you very much Philho,<br /><br />BeanShell sounds good - I already have a BeanShell Interpreter inside my applet and this works well. I only have one big problem with the methodes of the PApplet instance. <br /><br />I do the following:<br /><br /> frame = new JFrame( &quot;My Frame&quot; );<br /> frame.setLocation(200, 200);<br /> frame.setSize(300, 300);<br /> applet = new PApplet();<br /> frame.add(applet);<br /> frame.visible = true;<br /><br />This works and I get a frame with a PApplet I guess (at least I dont get any errors after importing core.jar).<br /><br />I would need something like &quot;applet.setup = mysetup&quot; or something similar. I cannot create a dynamic class because I use BeanShell inside an applet not allowing Reflection and so no dynamic classes - just objects. <br /><br />I look deeper into the JS version now - maybe this will work better.<br /> TextWrangler as a mid-level editor num_1263321091.html Processing Discourse/Integration num_1263321091.html Mon, 07 Jun 2010 07:20:37 +0000 Hi i was looking at using text wrangler for editing Pde, so your post is perfect,<br />what should i do in order for processing to appear on the language list and be able to &nbsp;associate the extension after copying the plist to its location?,<br />thank you twitpic using their api in processing num_1257891453.html Processing Discourse/Integration num_1257891453.html Sun, 06 Jun 2010 21:01:53 +0000 Did anyone ever figure this out? using swing or awt ui components in an applet num_1275630474.html Processing Discourse/Integration num_1275630474.html Sat, 05 Jun 2010 07:36:48 +0000 Thanks for the replies.<br /><br />I was actually using SpringGUI early on in this project but it is not an option moving forward since it is not running on OSX.<br /><br />My primary need in the sketch is buttons, for which it seems Interfascia is the best option among those in the Libraries section of the site. It has minimal styling of colors, but I was hoping for an option that allowed for buttons that look more like native browser buttons.<br /><br />Let me know if you have any other ideas.<br /><br />Thanks again. Ubuntu Installation Guide num_1210090496.html Processing Discourse/Integration num_1210090496.html Thu, 03 Jun 2010 07:03:38 +0000 right click processing&gt;properties&gt;permissions&gt; tick allow executing file as program<br /><br />thats all you need to do. took me a day to figure that out lol, im new to linux Using Processing in BlueJ num_1267190175.html Processing Discourse/Integration num_1267190175.html Wed, 02 Jun 2010 09:36:34 +0000 have you manage to fix it? i am having kind the same problem. A way to run processing server-side? num_1272308820.html Processing Discourse/Integration num_1272308820.html Wed, 02 Jun 2010 09:11:27 +0000 See <a href="http://dev.processing.org/reference/everything/javadoc/processing/app/Commander.html" target="_blank">Commander</a> class reference. Help Installing Processing on Ubuntu Netbook Remix num_1274657654.html Processing Discourse/Integration num_1274657654.html Sun, 30 May 2010 00:56:19 +0000 This thread might be related: <a href="http://processing.org/discourse/yabb2/num_1275058451_.html#34; target="_blank">jolicloud blues</a>. Processing sketch via launch4j num_1275062874.html Processing Discourse/Integration num_1275062874.html Fri, 28 May 2010 09:07:54 +0000 I'm not sure this is the right place to post this but here's my issue:<br /><br />I've been trying to wrap a processing sketch into an exe using launch4j. The problem is that I get an error: &quot;Could not load the main class: calc. Program will exit&quot; when I run the exe.<br /><br />I believe the problem is somewere in the classpath. I have:<br />Main Class: calc<br />Classpath: core.jar<br /><br />core.jar and calc.jar are in the same folder, as is the xml file<br /><br />my launch4j generated xml file is:<br /> <b>Code:</b><pre class="code">&lt;launch4jConfig&gt;<br &#47;>  &lt;dontWrapJar&gt;false&lt;&#47;dontWrapJar&gt;<br &#47;>  &lt;headerType&gt;gui&lt;&#47;headerType&gt;<br &#47;>  &lt;jar&gt;C&#58;&#92;calc&#46;jar&lt;&#47;jar&gt;<br &#47;>  &lt;outfile&gt;C&#58;&#92;c&#46;exe&lt;&#47;outfile&gt;<br &#47;>  &lt;errTitle&gt;&lt;&#47;errTitle&gt;<br &#47;>  &lt;cmdLine&gt;&lt;&#47;cmdLine&gt;<br &#47;>  &lt;chdir&gt;&lt;&#47;chdir&gt;<br &#47;>  &lt;priority&gt;normal&lt;&#47;priority&gt;<br &#47;>  &lt;downloadUrl&gt;http&#58;&#47;&#47;java&#46;com&#47;download&lt;&#47;downloadUrl&gt;<br &#47;>  &lt;supportUrl&gt;&lt;&#47;supportUrl&gt;<br &#47;>  &lt;customProcName&gt;false&lt;&#47;customProcName&gt;<br &#47;>  &lt;stayAlive&gt;true&lt;&#47;stayAlive&gt;<br &#47;>  &lt;manifest&gt;&lt;&#47;manifest&gt;<br &#47;>  &lt;icon&gt;&lt;&#47;icon&gt;<br &#47;>  &lt;classPath&gt;<br &#47;>    &lt;mainClass&gt;calc&lt;&#47;mainClass&gt;<br &#47;>    &lt;cp&gt;core&#46;jar&lt;&#47;cp&gt;<br &#47;>  &lt;&#47;classPath&gt;<br &#47;>  &lt;jre&gt;<br &#47;>    &lt;path&gt;&lt;&#47;path&gt;<br &#47;>    &lt;minVersion&gt;1&#46;1&#46;1&lt;&#47;minVersion&gt;<br &#47;>    &lt;maxVersion&gt;1&#46;9&#46;1&lt;&#47;maxVersion&gt;<br &#47;>    &lt;jdkPreference&gt;preferJre&lt;&#47;jdkPreference&gt;<br &#47;>  &lt;&#47;jre&gt;<br &#47;>&lt;&#47;launch4jConfig&gt; </pre><br /><br />and my error output is:<br /> <b>Code:</b><pre class="code">java&#46;lang&#46;NoClass&#068;efFoundError&#58; processing&#47;core&#47;PApplet<br &#47;> at java&#46;lang&#46;ClassLoader&#46;defineClass1&#40;Native Method&#41;<br &#47;> at java&#46;lang&#46;ClassLoader&#46;defineClassCond&#40;Unknown Source&#41;<br &#47;> at java&#46;lang&#46;ClassLoader&#46;defineClass&#40;Unknown Source&#41;<br &#47;> at java&#46;security&#46;SecureClassLoader&#46;defineClass&#40;Unknown Source&#41;<br &#47;> at java&#46;net&#46;URLClassLoader&#46;defineClass&#40;Unknown Source&#41;<br &#47;> at java&#46;net&#46;URLClassLoader&#46;access$000&#40;Unknown Source&#41;<br &#47;> at java&#46;net&#46;URLClassLoader$1&#46;run&#40;Unknown Source&#41;<br &#47;> at java&#46;security&#46;AccessController&#46;doPrivileged&#40;Native Method&#41;<br &#47;> at java&#46;net&#46;URLClassLoader&#46;findClass&#40;Unknown Source&#41;<br &#47;> at java&#46;lang&#46;ClassLoader&#46;loadClass&#40;Unknown Source&#41;<br &#47;> at sun&#46;misc&#46;Launcher$AppClassLoader&#46;loadClass&#40;Unknown Source&#41;<br &#47;> at java&#46;lang&#46;ClassLoader&#46;loadClass&#40;Unknown Source&#41;<br &#47;>Caused by&#58; java&#46;lang&#46;ClassNotFoundException&#58; processing&#46;core&#46;PApplet<br &#47;> at java&#46;net&#46;URLClassLoader$1&#46;run&#40;Unknown Source&#41;<br &#47;> at java&#46;security&#46;AccessController&#46;doPrivileged&#40;Native Method&#41;<br &#47;> at java&#46;net&#46;URLClassLoader&#46;findClass&#40;Unknown Source&#41;<br &#47;> at java&#46;lang&#46;ClassLoader&#46;loadClass&#40;Unknown Source&#41;<br &#47;> at sun&#46;misc&#46;Launcher$AppClassLoader&#46;loadClass&#40;Unknown Source&#41;<br &#47;> at java&#46;lang&#46;ClassLoader&#46;loadClass&#40;Unknown Source&#41;<br &#47;> &#46;&#46;&#46; 12 more<br &#47;>Exception in thread &quot;main&quot; <br &#47;> </pre><br /><br />I know processing uses a modified version of launch4j, so this should work. I'm not exactly sure what's wrong. I've tried setting the main class to Applet, and PApplet and still nothing.<br /><br />Any hints would be greatly appreciated. exporting as jar - standalone num_1274940223.html Processing Discourse/Integration num_1274940223.html Wed, 26 May 2010 23:03:43 +0000 I'm working on a project on eclipse.<br />It works fine when I run it from eclipse.<br /><br />I read on the internet that applets cant be exported as standalones.<br />So i added this code to my project<br /><br /> <b>Code:</b><pre class="code"><br &#47;>public static void main&#40;String &#91;&#93; args&#41;&#123;<br &#47;>       PApplet&#46;main&#40;new String&#91;&#93; &#123; &quot;MyProcessingSketch&quot; &#125;&#41;;<br &#47;> <br &#47;>&#125; </pre><br /><br /><br />After this my applet could be run as an application too.<br /><br />i followed steps from<br /><a href="http://www.vogella.de/articles/Eclipse/article.html#firstjava_export" target="_blank">http://www.vogella.de/articles/Eclipse/article.html#firstjava_export</a> and exported my project.<br /><br />but it didnt run afterwards.<br />when i double click that it gives an error saying <br />&quot;coudn't find the main class&quot;<br /><br />i extracted the .jar file found out that main class is specified in the manifest file.<br /><br />any suggestions <br /><br />Is there any method to export the project on eclipse to processing IDE so that i cn generate an executable from there <br /><br /> Processing Plugin for Eclipse -- Proclipsing Beta! num_1264088375.html Processing Discourse/Integration num_1264088375.html webbjk@unk.edu (h4t) Tue, 25 May 2010 18:32:08 +0000 Just wanted to let you know that I installed Proclipsing a little bit ago and am loving it. Works perfectly and I was able to jump right into direct JOGL calls without much effort at all. Makes me all excited to use Processing again! Access net behind proxy with username and password num_1274721911.html Processing Discourse/Integration num_1274721911.html Tue, 25 May 2010 05:22:07 +0000 I think so, as behind the scene, Processing creates regular InputStreams on its loadXxx() functions. Cannot compile libraries for Processing num_1241885172.html Processing Discourse/Integration num_1241885172.html Mon, 24 May 2010 04:16:24 +0000 had the same error, javadoc.exe not found.<br /><br />fix : http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg10651.html<br /><br />the ant build still throws errors, but the build does build. Twitter4j:: TwitterException statusCode = 403 num_1274579211.html Processing Discourse/Integration num_1274579211.html Sat, 22 May 2010 18:46:51 +0000 This is so aggravating! I've been working on a program for a month now that has always worked. Now for the last few days, nothing works, and I always receive this line from the TwitterException line:<br /><br />Couldn't connect: TwitterException&#123;statusCode=403, retryAfter=0, rateLimitStatus=null&#125;<br /><br />arg. how can i fix this? i've tried creating a new account but that didn't change anything. I wonder if I've exceeded the API traffic limitations and been blacklisted? I've been reading the twitter documentation on API's but i can't really make sense of it. Any advice?????<br /> get data from the web - Facebook num_1274124754.html Processing Discourse/Integration num_1274124754.html Sat, 22 May 2010 12:04:54 +0000 <b><a class="message" href="num_1274124754.html#6">Chrisir wrote</a> on May 22<sup>nd</sup>, 2010, 11:03am:</b><br /><div class="quote" style="width: 90%">I am not sure if Facebook allows getting data from an app (instead of from another webpage)<br />I am not sure if you have to register with Facebook first </div><br />Actually, if you use the API of a site (at least large ones like Facebook, Twitter, etc.), you have to request a developer's key, which must be provided when connecting to the service.<br />And sometime (often) you are limited in the amount of requests/traffic.<br /> fonts in eclipse is ugly num_1274275323.html Processing Discourse/Integration num_1274275323.html Wed, 19 May 2010 06:22:03 +0000 I use the default font in the sketch.(no calling of textFont)<br />I get ugly look(aliasing) using the eclipse in the sun's applet viewer(but It's normal if &nbsp;I use the processing ide)<br /><br />I have tried the smooth, it doesn't work.<br />