<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Slashdev Support Forum &#187; Forum: General Discussion - Recent Posts</title>
		<link>http://forum.slashdev.ca/forum/2</link>
		<description>A place to ask questions about projects and posts on the Slashdev blog.</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Feb 2012 23:55:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forum.slashdev.ca/search.php</link>
		</textInput>
		<atom:link href="http://forum.slashdev.ca/rss/forum/2" rel="self" type="application/rss+xml" />

		<item>
			<title>jiggak on "Running your PS3 Gamepad code on Arduino Uno"</title>
			<link>http://forum.slashdev.ca/topic/42#post-104</link>
			<pubDate>Mon, 14 Nov 2011 02:07:08 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">104@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Feel free to post questions if you run into any snags. I will try and offer any help I can.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>madmalkav on "Running your PS3 Gamepad code on Arduino Uno"</title>
			<link>http://forum.slashdev.ca/topic/42#post-103</link>
			<pubDate>Sun, 13 Nov 2011 18:10:15 +0000</pubDate>
			<dc:creator>madmalkav</dc:creator>
			<guid isPermaLink="false">103@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Thanks for the tip. I have a free week near and will try what you recommended .
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Running your PS3 Gamepad code on Arduino Uno"</title>
			<link>http://forum.slashdev.ca/topic/42#post-102</link>
			<pubDate>Sun, 13 Nov 2011 16:52:08 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">102@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I'm afraid I don't have any direct experience in this area.&#60;/p&#62;
&#60;p&#62;For starters you will need to set the MCU type in the &#60;a href=&#34;http://git.slashdev.ca/ps3-teensy-hid/tree/src/Makefile&#34;&#62;Makefile&#60;/a&#62; (line 58) to &#60;strong&#62;at90usb82&#60;/strong&#62; for the UNO's USB chip. You will also need an AVR programmer to flash via ICSP interface.&#60;/p&#62;
&#60;p&#62;In my &#60;a href=&#34;http://git.slashdev.ca/ps3-teensy-hid/tree/src/gamepad.c&#34;&#62;gamepad.c&#60;/a&#62; file you will need modify all the &#60;em&#62;if&#60;/em&#62; statements. They currently sample the digital inputs on the teensy board and set values in the USB report accordingly.&#60;/p&#62;
&#60;p&#62;I believe the UNO uses a serial interface between the Atmega8U2 and the ATmega328. So all of the &#60;em&#62;if&#60;/em&#62; statements would be replaced with code that samples the Atmega8U2 serial port.&#60;/p&#62;
&#60;p&#62;My recommendation would be to make a sketch that reads digital pins on the Arduino and writes out a series of bytes to the serial port that matches the &#60;em&#62;gamepad_state_t&#60;/em&#62; struct (see &#60;a href=&#34;http://git.slashdev.ca/ps3-teensy-hid/tree/src/usb_gamepad.h&#34;&#62;gamepad.h&#60;/a&#62; line 9). The digital pins you choose is up to you just don't use pin zero or one since those are used by the serial port. Write and test the sketch by watching the serial monitor in the Arduino software on your PC.&#60;/p&#62;
&#60;p&#62;Then in your gamepad.c file you need to read from the Atmega8U2 serial port. I'm not sure what the exact code would look like, but here is some pseudo code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// read from serial port directly to USB report buffer
read_serial((uint8_t*)gamepad_state, sizeof(gamepad_state_t));&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>madmalkav on "Running your PS3 Gamepad code on Arduino Uno"</title>
			<link>http://forum.slashdev.ca/topic/42#post-101</link>
			<pubDate>Sun, 13 Nov 2011 13:52:19 +0000</pubDate>
			<dc:creator>madmalkav</dc:creator>
			<guid isPermaLink="false">101@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I have been looking for documentation about adapting teensy projects to run on arduino but haven't find anything. What considerations must I take in order to adapt the code, and also to make the proper physical equivalent connections on my Arduino?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benvd on "Trouble with bjdwp (jdb connects, eclipse doesn&#039;t)"</title>
			<link>http://forum.slashdev.ca/topic/8#post-27</link>
			<pubDate>Tue, 21 Dec 2010 13:08:28 +0000</pubDate>
			<dc:creator>benvd</dc:creator>
			<guid isPermaLink="false">27@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Oops, kind of lost track of this for a while.&#60;/p&#62;
&#60;p&#62;Apparently you can add commands to ~/.jdbrc which will be automatically executed when starting jdb. So I just did &#60;code&#62;echo &#34;resume&#34; &#38;gt;&#38;gt; ~/.jdbrc&#60;/code&#62; and this minor annoyance was gone.&#60;/p&#62;
&#60;p&#62;OK, so my assumptions were wrong and barry just doesn't support step-by-step debugging. Ah well, I never got that to work reliable in Windows (with official tools) either, so just having stdout is not that bad. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Trouble with bjdwp (jdb connects, eclipse doesn&#039;t)"</title>
			<link>http://forum.slashdev.ca/topic/8#post-26</link>
			<pubDate>Mon, 06 Dec 2010 20:51:11 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">26@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Unfortunately I haven't used bjdwp at all. You might try emailing the &#60;a href=&#34;http://sourceforge.net/mail/?group_id=153722&#34;&#62;Barry list&#60;/a&#62;. The folks there are very receptive and helpful.&#60;/p&#62;
&#60;p&#62;Nicolas is the guy who created bjdwp and as far as I know it's unfinished. Breakpoints won't work neither will inspecting object references. I think about the only thing this would be useful for is seeing the standard output (ie: System.out.println() output).&#60;/p&#62;
&#60;p&#62;I wouldn't be surprised if adding this feature to auto-resume would be a simple thing to add so if you ask nicely Nicolas might be able to knock it out pretty quick. Or you can dig into the barry code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benvd on "Trouble with bjdwp (jdb connects, eclipse doesn&#039;t)"</title>
			<link>http://forum.slashdev.ca/topic/8#post-25</link>
			<pubDate>Mon, 06 Dec 2010 11:20:48 +0000</pubDate>
			<dc:creator>benvd</dc:creator>
			<guid isPermaLink="false">25@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hi. This is not directly related to your blogposts (since you use virtualised jdwp, and not bjdwp (i.e. the Barry implementation of jdwp)), but I figured I'd ask it here anyway, since you seem to know a lot about BlackBerry development on non-Windows OSes.&#60;/p&#62;
&#60;p&#62;After I run my app on a (physical) device, I start &#34;bjdwp localhost 8000&#34;. After that, I can connect to this using &#34;jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8000&#34;. After connecting, though, nothing seems to happen until I enter the resume command in jdb. Then it's smooth sailing.&#60;/p&#62;
&#60;p&#62;I'd love to be able to debug using eclipse since it's a much more comfortable environment. I created a new debug configuration for this, as follows: a Remote Java Application with connection type = &#34;Socket Attach&#34;, host = &#34;localhost&#34; and port = &#34;8000&#34;. In other words, the same kind of connection as the jdb command. This doesn't work, however -- it keeps trying to connect.&#60;/p&#62;
&#60;p&#62;Now, I assume this is because I need to do a resume, like I needed to do with jdb, but I can't do that from within eclipse (the resume button is greyed out).&#60;/p&#62;
&#60;p&#62;Any suggestions?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>amsiddh on "Getting error on Hello world dependency project"</title>
			<link>http://forum.slashdev.ca/topic/7#post-24</link>
			<pubDate>Thu, 25 Nov 2010 03:15:37 +0000</pubDate>
			<dc:creator>amsiddh</dc:creator>
			<guid isPermaLink="false">24@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hi Jiggak,&#60;/p&#62;
&#60;p&#62;Thanks for your reply,&#60;/p&#62;
&#60;p&#62;I will try this things and get back if i stuck anywhere.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
siddh
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Getting error on Hello world dependency project"</title>
			<link>http://forum.slashdev.ca/topic/7#post-23</link>
			<pubDate>Wed, 24 Nov 2010 16:01:04 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">23@http://forum.slashdev.ca/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;During OTA intallation or App World do i need both project and library cod files or Only project cod file will do.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;I don't know how App World works. But for regular OTA you need your .cod file (or multiple files) and a .jad file with references to the .cod files. BB-ant-tools comes with an ant task to help generate an OTA ready .jad file. It's called &#60;a href=&#34;http://bb-ant-tools.sourceforge.net/docs#jadtool&#34;&#62;jadtool&#60;/a&#62;.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;One more thing i would like to know using ant tool can i have only one cod file for my application.&#60;br /&#62;
(my application - which is having a dependency on other jar) Where as your Helloworld dependency example is generating the two cod files.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;I think you can tell rapc to compile from .java source files AND a .jar file containing already compiled .class files. Try searching &#60;a href=&#34;http://supportforums.blackberry.com/&#34;&#62;the official forums&#60;/a&#62; for details on compiling a .cod from .jar file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>amsiddh on "Getting error on Hello world dependency project"</title>
			<link>http://forum.slashdev.ca/topic/7#post-22</link>
			<pubDate>Wed, 24 Nov 2010 07:07:42 +0000</pubDate>
			<dc:creator>amsiddh</dc:creator>
			<guid isPermaLink="false">22@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hi Jiggak,&#60;/p&#62;
&#60;p&#62;One more thing i would like to know using ant tool can i have only one cod file for my application.&#60;br /&#62;
(my application - which is having a dependency on other jar) Where as your Helloworld dependency example is generating the two cod files.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>amsiddh on "Getting error on Hello world dependency project"</title>
			<link>http://forum.slashdev.ca/topic/7#post-21</link>
			<pubDate>Wed, 24 Nov 2010 04:34:46 +0000</pubDate>
			<dc:creator>amsiddh</dc:creator>
			<guid isPermaLink="false">21@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hi Jiggak,&#60;/p&#62;
&#60;p&#62;Thanks for your reply, &#60;/p&#62;
&#60;p&#62;The problem got solved with your suggestion. Actually the jde.home i was entered is C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0 instead of C:/Program Files/Research In Motion/BlackBerry JDE 5.0.0.&#60;br /&#62;
The problem is with the slash(/).&#60;/p&#62;
&#60;p&#62;I need to ask one more thing:&#60;br /&#62;
During OTA intallation or App World do i need both project and library cod files or Only project cod file will do.&#60;/p&#62;
&#60;p&#62;Thnaks,&#60;br /&#62;
Siddh
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Getting error on Hello world dependency project"</title>
			<link>http://forum.slashdev.ca/topic/7#post-20</link>
			<pubDate>Tue, 23 Nov 2010 12:39:33 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">20@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;That's strange. Are you positive you have entered the JDE directory path correctly?&#60;/p&#62;
&#60;p&#62;Try using the &#38;lt;echo&#38;gt; ant tag to verify that it is set inside the build task, for example:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;echo&#38;gt;${jde.home}&#38;lt;/echo&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>amsiddh on "Getting error on Hello world dependency project"</title>
			<link>http://forum.slashdev.ca/topic/7#post-19</link>
			<pubDate>Tue, 23 Nov 2010 03:59:45 +0000</pubDate>
			<dc:creator>amsiddh</dc:creator>
			<guid isPermaLink="false">19@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I got successful in building the Hello world application with BB ant tool with the help of your blog steps. But I am getting error which building the Hello world dependency example here are details.&#60;/p&#62;
&#60;p&#62;1. I have created common project with build.xml and common.properties file in it.&#60;br /&#62;
2. I have not changed anything in build.xml.&#60;br /&#62;
3. In common.properties i have just changed the jde.home. i.e C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0&#60;br /&#62;
3. Created the libHello project and followed further steps.&#60;br /&#62;
4. Run the clean target for libHello&#60;br /&#62;
5. Run the build target in HelloWorld&#60;/p&#62;
&#60;p&#62;i am getting the following error:&#60;br /&#62;
Buildfile: D:\BB_Eclipse_Wrokspace\Helloworld\build.xml&#60;br /&#62;
deps:&#60;br /&#62;
deps:&#60;br /&#62;
build:&#60;/p&#62;
&#60;p&#62;BUILD FAILED&#60;br /&#62;
D:\BB_Eclipse_Wrokspace\common\build.xml:34: The following error occurred while executing this line:&#60;br /&#62;
D:\BB_Eclipse_Wrokspace\common\build.xml:25: jde home must be a directory&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Can&#039;t get the HelloWorld to compile with ant"</title>
			<link>http://forum.slashdev.ca/topic/4#post-12</link>
			<pubDate>Fri, 07 May 2010 12:43:11 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">12@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Pam,&#60;/p&#62;
&#60;p&#62;For internet access you need to use the MDS simulator.  See &#60;a href=&#34;http://www.slashdev.ca/2008/04/03/mds-simulator-in-linux/&#34;&#62;this&#60;/a&#62; post for how to make a script to launch it.&#60;/p&#62;
&#60;p&#62;This is only necessary for apps on the blackberry that attempt to use BES or BIS for network connections.  Direct TCP or Wifi should work without the MDS simulator.&#60;/p&#62;
&#60;p&#62;And I'm afraid I have no knowledge of phonegap.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pamepros on "Can&#039;t get the HelloWorld to compile with ant"</title>
			<link>http://forum.slashdev.ca/topic/4#post-11</link>
			<pubDate>Fri, 07 May 2010 07:49:44 +0000</pubDate>
			<dc:creator>pamepros</dc:creator>
			<guid isPermaLink="false">11@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Josh, do you know how to configure the simulator to have internet on the phone?&#60;br /&#62;
Can I add something to the sh script? (some extra variable to configure it)&#60;br /&#62;
Also, do you have any knowledge of phonegap for blackberry?&#60;br /&#62;
Thanks&#60;br /&#62;
Pam
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Can&#039;t get the HelloWorld to compile with ant"</title>
			<link>http://forum.slashdev.ca/topic/4#post-10</link>
			<pubDate>Thu, 06 May 2010 14:24:41 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">10@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I personally have not been able to get the simulator to work 100% of the time.  It is very unstable using wine emulation.  You might also want to try &#60;a href=&#34;http://www.azizuysal.com/2009/07/blackberry-development-on-mac-os-x.html&#34;&#62;this post&#60;/a&#62;.  The author uses the &#60;strong&#62;winetricks&#60;/strong&#62; script to install a few extra components into wine.&#60;/p&#62;
&#60;p&#62;For me, by far the most reliable method for using the simulator is with a Windows VM using VirtualBox (outlined &#60;a href=&#34;http://www.slashdev.ca/2008/04/03/blackberry-development-using-linux/2/&#34;&#62;here&#60;/a&#62;).&#60;/p&#62;
&#60;p&#62;As for the Spanish translation, a link back to my blog would be great.  Thanks!&#60;/p&#62;
&#60;p&#62;If you have tips on getting anything else working, feel free to use this forum.  I'm sure others would appreciate your findings.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pamepros on "Can&#039;t get the HelloWorld to compile with ant"</title>
			<link>http://forum.slashdev.ca/topic/4#post-9</link>
			<pubDate>Thu, 06 May 2010 11:29:17 +0000</pubDate>
			<dc:creator>pamepros</dc:creator>
			<guid isPermaLink="false">9@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Josh,&#60;br /&#62;
I have almost everything working now. I have some things still missing..&#60;br /&#62;
The simulator worked fine the first 2 times, now it's not working any more, here's the last lines the terminal shows:&#60;/p&#62;
&#60;p&#62;err:ole:CoCreateInstance apartment not initialised&#60;br /&#62;
err:seh:setup_exception_record stack overflow 988 bytes in thread 0009 eip 00a352eb esp 00230f54 stack 0x230000-0x231000-0x330000&#60;br /&#62;
err:ntdll:RtlpWaitForCriticalSection section 0x110048 &#34;heap.c: main process heap section&#34; wait timed out in thread 003d, blocked by 0009, retrying (60 sec)&#60;br /&#62;
err:ntdll:RtlpWaitForCriticalSection section 0x110048 &#34;heap.c: main process heap section&#34; wait timed out in thread 003d, blocked by 0009, retrying (60 sec)&#60;br /&#62;
err:ntdll:RtlpWaitForCriticalSection section 0x110048 &#34;heap.c: main process heap section&#34; wait timed out in thread 003d, blocked by 0009, retrying (60 sec)&#60;/p&#62;
&#60;p&#62;Also, I couldn't integrate de simulator to eclipse. But as long as I can package the app and then try it in the simulator separately I have no problem (or that's what I thought).&#60;br /&#62;
Anyway, I updated and translated to spanish your tutorials, if I ever publish them I'll reference the source (if that's ok with you) if you want a copy or if you want a hand I can write them in english for you with the latest versions of everything (once I get it to work of course haha)&#60;/p&#62;
&#60;p&#62;That's all for now, I'll login later to see if you could help me with this.&#60;br /&#62;
Thanks&#60;/p&#62;
&#60;p&#62;pam
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Can&#039;t get the HelloWorld to compile with ant"</title>
			<link>http://forum.slashdev.ca/topic/4#post-8</link>
			<pubDate>Thu, 06 May 2010 09:16:53 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">8@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Pam,&#60;/p&#62;
&#60;p&#62;Thank you SO MUCH for using the forums!&#60;/p&#62;
&#60;p&#62;I get a lot of comments on the BlackBerry development in Linux blog post from people asking for help.  However, wordpress comments are the least fun thing to use for providing support.&#60;/p&#62;
&#60;p&#62;- Josh
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pamepros on "Can&#039;t get the HelloWorld to compile with ant"</title>
			<link>http://forum.slashdev.ca/topic/4#post-7</link>
			<pubDate>Thu, 06 May 2010 07:15:05 +0000</pubDate>
			<dc:creator>pamepros</dc:creator>
			<guid isPermaLink="false">7@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Nevermind, I just got it to work, it was my jde path it had spaces and it messed up something, just changed it to a simple name.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pamepros on "Can&#039;t get the HelloWorld to compile with ant"</title>
			<link>http://forum.slashdev.ca/topic/4#post-6</link>
			<pubDate>Thu, 06 May 2010 07:07:32 +0000</pubDate>
			<dc:creator>pamepros</dc:creator>
			<guid isPermaLink="false">6@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hi, I'm following your tutorials to get the BlackBerry JDE working in Ubuntu.&#60;br /&#62;
I managed to get the simulator to work perfectly.&#60;br /&#62;
Now I'm trying to get the eclipse to compile the project. I copied your helloworld example,changed my jde.home and simulator.home to mines, but when I try to compile it says:&#60;/p&#62;
&#60;p&#62;Buildfile: /home/pam/workspace/HelloWorld/build.xml&#60;br /&#62;
build:&#60;br /&#62;
     [rapc] Compiling 1 source files to hello_pam.cod&#60;br /&#62;
     [rapc] javac: invalid flag: 5.0.0/lib/net_rim_api.jar&#34;&#60;br /&#62;
     [rapc] Usage: javac &#38;lt;options&#38;gt; &#38;lt;source files&#38;gt;&#60;br /&#62;
     [rapc] use -help for a list of possible options&#60;br /&#62;
     [rapc] Error!: Error: java compiler failed: javac -source 1.3 -target 1.3 -g -O -d /tmp/rapc_0ab943d8.dir -bootclasspath &#34;/home/pam/lib/BlackBe ...&#60;/p&#62;
&#60;p&#62;BUILD FAILED&#60;br /&#62;
/home/pam/workspace/HelloWorld/build.xml:16: Java returned: 97&#60;/p&#62;
&#60;p&#62;Total time: 523 milliseconds&#60;/p&#62;
&#60;p&#62;Do you have any idea why?&#60;br /&#62;
Thanks!&#60;br /&#62;
Pam
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

