Re: Roll The Dice

2009-01-19 Thread kris Occhipinti
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

2009-01-19 Thread Charles-Henri Gros
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

2009-01-18 Thread kris Occhipinti
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

2009-01-18 Thread The Digital Pioneer
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

2009-01-18 Thread kris Occhipinti
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

2009-01-18 Thread Risto H. Kurppa
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

2009-01-17 Thread Alex Tsui
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 metalx2...@gmail.com 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

2009-01-17 Thread The Digital Pioneer
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

2009-01-17 Thread kris Occhipinti
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

2009-01-15 Thread The Digital Pioneer
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

2009-01-15 Thread kris Occhipinti
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

2009-01-15 Thread Yorick Moko
On Thu, Jan 15, 2009 at 12:37 AM, The Digital Pioneer
digitalpion...@gmail.com 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

2009-01-15 Thread Yorick Moko
On Thu, Jan 15, 2009 at 12:07 AM, kris Occhipinti metalx2...@gmail.com 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

2009-01-15 Thread Alex Tsui
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
digitalpion...@gmail.com 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

2009-01-15 Thread kris Occhipinti
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

2009-01-15 Thread The Digital Pioneer
On Thu, Jan 15, 2009 at 12:43 PM, Alex Tsui alextsu...@gmail.com 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


Roll The Dice

2009-01-14 Thread kris Occhipinti
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


Re: Roll The Dice

2009-01-14 Thread The Digital Pioneer
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


Re: Roll The Dice

2009-01-14 Thread The Digital Pioneer
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

2009-01-14 Thread Alex Tsui
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
digitalpion...@gmail.com 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