Re: Roll The Dice
Alex Tsui wrote: > Yes, the bug is exactly as you described: the stream of data pauses in > motion. Is there some more information about this somewhere? I > searched docs.openmoko.org/trac but didn't turn up this specific bug. > Then again, most of the tickets are filed under OM 2008.8, maybe > there's no issue with an earlier OM? Here's the ticket: http://docs.openmoko.org/trac/ticket//2145 There's a workaround indicated in it. -- Charles-Henri ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
i'd did register at opkg.org but I never made an ipk file before I did try and follow some online tutorial but I got an error when I tried to install it. I do plan on doing it once I figure it out. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Great! How about an ipk and upload it to opkg.org? r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Great work Nathan. I updated the package and Changed your credit from "With some minor hacking" to "With some major hacking" Thanks for all your help. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Just a routine update. :) I redesigned the timer so that it starts when the phone thinks it's being shaken, and in the process removed the threaded timer entirely. I also cleaned up some other code a bit, removed superfluous stuff like making sense of the time from accelerometer input and calculating the square root of the sum of the axes squred (don't even know what that's useful for, but it wasn't used so I got rid of the overhead). These mods are made to the latest version, and my script is available in my dropbox here: http://dl.getdropbox.com/u/453116/ko-dice -- Thanks, The Digital Pioneer ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
OK, I've added Alex's code and then created a startup screen that asks you how many dice you want (1-5). You can down load the updated app at the same link as before: http://filmsbykris.com/freerunner-debian/ko-user/ko-dice.tar.gz Thank you Alex & Nathan for your help ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Thank you so much for your help I'm just about done adding a new window to choose the change the number of dice using Alex's chances to the program. I'm heading out the door right now. Ether tonight or tomorrow some time I will post my the new scripts. Thanks again for all your help. Kris ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
You could get a Dropbox. It's a great way to host files. http://www.getdropbox.com/ -- Thanks, The Digital Pioneer ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Swapping to the OM 2008.9 uImage worked around the accelerometer bug for me. On Thu, Jan 15, 2009 at 2:48 PM, kris Occhipinti wrote: > But, changing the number off dice might take a little longer. If I thought > of that originally I would have used an array for the dice, but I didn't so > it might take a lot to make that change. But, I'll see what I can do or if > anyone else wants to take that challenge on, I'm not going to stop you :) I rewrote the constructor so now you can specify how many dice will appear. I put the dice in a list and the roll method goes through that list and randomizes the numbers. In the script, I just set it to display 6 dice. I don't know how to go about making an option to change the number and to update the display, but step by step we go! The updated ko-dice is here, just replace it: http://www.sendspace.com/file/e9g8e5 Sorry, it's an indirect/temporary link. I will find a better place to stick files online. Hmm, you think it'd be easier to deal with/update if it's on opkg? Kris, how about packing it and putting it up? --Alex ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
On Thu, Jan 15, 2009 at 12:43 PM, Alex Tsui wrote: > Yes, the bug is exactly as you described: the stream of data pauses in > motion. Is there some more information about this somewhere? I > searched docs.openmoko.org/trac but didn't turn up this specific bug. > Then again, most of the tickets are filed under OM 2008.8, maybe > there's no issue with an earlier OM? > > Thanks for the tip, > > --Alex Unfortunately, I don't know of any real fix for this other than installing kernels until you find one that works. I use the mwester kernel (get it at http://moko.mwester.net ) and it doesn't have this bug. -- Thanks, The Digital Pioneer ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
OK, I've update the package it can be found at the same link: http://filmsbykris.com/freerunner-debian/ko-user/ko-dice.tar.gz This has the updated script with the changes that "The Digital Pioneer" made which makes it less likely to roll by mistake. So, now give a real good shake to roll the dice (about 3 or 4 shakes) There is still a glitch in the exit button. Basically you have to press the exit button and shake it to exit or press exit while the dice are rolling. Yorick Moko suggested that we add a setting that allows the user to choose the amount of dices, and the time it takes before the dices settle. As far as the time it takes the dice to settle, that should be easy to do and I'll get it done hopefully this weekend (that is an easy variable change and adding buttons to change at variable). But, changing the number off dice might take a little longer. If I thought of that originally I would have used an array for the dice, but I didn't so it might take a lot to make that change. But, I'll see what I can do or if anyone else wants to take that challenge on, I'm not going to stop you :) Thanks for the response from you all. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Yes, the bug is exactly as you described: the stream of data pauses in motion. Is there some more information about this somewhere? I searched docs.openmoko.org/trac but didn't turn up this specific bug. Then again, most of the tickets are filed under OM 2008.8, maybe there's no issue with an earlier OM? Thanks for the tip, --Alex On Thu, Jan 15, 2009 at 5:45 AM, The Digital Pioneer wrote: > Alex, my first guess is you have 'the acceleromter bug'. Many of the current > kernels have a bug that causes the accelerometers to stop sending data when > the phone is moving, making them useless for anything but orientation > detection. It would be impossible to spot a shake in that situation. You can > see if you have it easily enough, just hexdump /dev/input/event3 and see if > the data flow stops when you move the phone. > > -- > Thanks, > > The Digital Pioneer > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
On Thu, Jan 15, 2009 at 12:07 AM, kris Occhipinti wrote: > I wrote this Dice Rolling Application in Python for the FreeRunner > I've tested it on both om2008.9 and Hackable1 > > Just shake the phone and it rolls 2 dice using random numbers. > > you can download it at > http://filmsbykris.com/freerunner-debian/ko-user/ko-dice.tar.gz > > Once untared you will see where it files should go. > everything installs under "/usr" > > I only made a .deb files once and it was a while ago. > Once I review how to make a .deb file I will post that. > For now you should be able to just un-tar it. > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > > thanks for the app, maybe add a setting that can choose the amount of dices, and the time it takes before the dices "settle"? I also recommend to add it to opkg.org, that way people who missed this mail will also get a change to try it out y ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
On Thu, Jan 15, 2009 at 12:37 AM, The Digital Pioneer wrote: > 4 stars. I just tested it on SHR, and it works with exception to one thing: > it doesn't close. The exit button doesn't work, and using Illume's close > button on it makes it lock up. Have to kill it. > the exit button works for me... I'm using SHR stable ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Thanks Digital Pioneer, I was going to try to make the adjustments you suggested this weekend, but you beat me to the punch on one of them. If you would please add your name and any info you want to the comments in the script I will add this modification to package. I'm still working on the exit bug. I knew about it, but forgot to mention it in my post. I'm kinda new to Threading. I've tried to make a few changes, but none of them worked. Thanks again. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Alex, my first guess is you have 'the acceleromter bug'. Many of the current kernels have a bug that causes the accelerometers to stop sending data when the phone is moving, making them useless for anything but orientation detection. It would be impossible to spot a shake in that situation. You can see if you have it easily enough, just hexdump /dev/input/event3 and see if the data flow stops when you move the phone. -- Thanks, The Digital Pioneer ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
Kind of cool, I fetched it to check out the code. I tried it with om2008.12, after installing pygtk etc. I ran the program, but shaking the phone gets no response. Only touching the screen starts it off vibrating. I also tried the modified ko-dice with same result. I think the shakes are not getting registered for me somehow. --Alex On Wed, Jan 14, 2009 at 7:59 PM, The Digital Pioneer wrote: > OK, to any who are interested, I have made some modifications to the python > script to make it not shake as easily (I was having a lot of accidental > shakes). Now it has to be shaken twice within 3 seconds to actually roll the > dice. It may not be pretty, but it works. :) > > My modded ko-dice is here: http://dl.getdropbox.com/u/453116/ko-dice > > -- > Thanks, > > The Digital Pioneer > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
OK, to any who are interested, I have made some modifications to the python script to make it not shake as easily (I was having a lot of accidental shakes). Now it has to be shaken twice within 3 seconds to actually roll the dice. It may not be pretty, but it works. :) My modded ko-dice is here: http://dl.getdropbox.com/u/453116/ko-dice -- Thanks, The Digital Pioneer ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
OK, more results: the exit button does indeed work A. Before rolling the first time B. During a roll or C. If you press it, then roll the dice. I noticed in your CLI output that it seems to be looking for a left or right movement. Perhaps you should make it shake on 2 or three left-right combos, since it seems to be rolling a bit too easily. Not a problem at all, really, just a personal preference. -- Thanks, The Digital Pioneer ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Roll The Dice
4 stars. I just tested it on SHR, and it works with exception to one thing: it doesn't close. The exit button doesn't work, and using Illume's close button on it makes it lock up. Have to kill it. I'd love to see a game like Zilch (on Kongregate) put on the FR, which also rolls the dice by shaking. Zilch is at http://www.kongregate.com/games/gaby/zilch if you want to give it a look. -- Thanks, The Digital Pioneer ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Roll The Dice
I wrote this Dice Rolling Application in Python for the FreeRunner I've tested it on both om2008.9 and Hackable1 Just shake the phone and it rolls 2 dice using random numbers. you can download it at http://filmsbykris.com/freerunner-debian/ko-user/ko-dice.tar.gz Once untared you will see where it files should go. everything installs under "/usr" I only made a .deb files once and it was a while ago. Once I review how to make a .deb file I will post that. For now you should be able to just un-tar it. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community