republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Ubuntu app programming?
Search Topic:
Uniqs:
297
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
business requirements »
« Need help with removing code/advertisement on 3rd party page  
AuthorAll Replies


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

Ubuntu app programming?

Im trying to write a simple app for my 5 month old daughter to play with. She loves the lights on the keyboard (saitek eclipse 2) and presses and really looks up to see whats going on.

Id like to make a really quick app to catch key strokes, and play sound files, as well as something colorful on the screen.

Ive done 80% PHP/MySQL Javascript type web development and not much desktop dev. Im thinking Java might be the best route because I mostly use Ubuntu, but if I did a bunch of work on this, id be nice to make work on my windows laptop..

Any suggestions or advice?
--
Connecticut Web Design and Development


jayco437
Premium
join:2001-08-11
Lincoln, NE
Take a look at Python and Pygame. Also might take a look at Ruby and Shoes. Either of which will work cross-platform.


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to johnnyboyct
Thanks Jayco, I just downloaded shoes, looks like a decent choice for me becuase of its syntax and rubyness.



Ill let you know how I make out

John
--
Connecticut Web Design and Development


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to johnnyboyct
Im digging this, although i cant find anything to do with sound. It will do video, so I guess Ill look intothat
--
Connecticut Web Design and Development


jayco437
Premium
join:2001-08-11
Lincoln, NE
·Windstream

Yeah, not sure about sound yet. It's billed as a "tiny toolkit" and its missing some things that I'm certain Pygame has. I probably shouldn't even mention them in the same sentence, but I found I prefer working with Ruby over Python of late. I know the documentation available on the net (such as the book) fails to mention some things that had been released in the latest public release Checkboxes I think, or maybe radio buttons? Maybe both? Either way, check the examples included with the app.

The video includes sound, so I know it'll *do* sound, but maybe it might not have to be "pretty" (i.e. a hidden video clip or something).


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to johnnyboyct
Actually Ive figured out through the shoebox examples how to listen for the keyboard strokes, put the large letter on the screen with a dynamic background, and play a sound. Im trying to figure out how I can animate the background gradient to fade to black, but I think thats a programming challenge vs an ability of the language (although youd think fade would be simple?) I just need to do something like


obuviosly thats aweful, but I learned enough for a Sunday and havent had to code since before xmas :P

--
Connecticut Web Design and Development


jayco437
Premium
join:2001-08-11
Lincoln, NE
I'm totally not familiar with Shoes much of anything. Looking at it quickly though, do you need a while where you have the if?


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to johnnyboyct
I have to say, im getting a bit frustrated doing this fade thing. Dont have as much time as Id like to spend, but I added it to the shoebox, even though its based largely on another app.

»www.the-shoebox.org/apps/119
--
Connecticut Web Design and Development


jayco437
Premium
join:2001-08-11
Lincoln, NE
I played aroudn with it but couldn't get anything that worked. Tried fading out the alpha channel and fading a regular color even but I need to slow it down without blocking it. Be interested to see if you come up withs omething though....


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to johnnyboyct
This is rough lol, but im learning ruby so screw it :P

Im having a really tough time with flow control. Like the first problem with the fading not working, Im now finding you cant load a sound on keypress. So I have to loop through all the sounds at load and put them in an array I guess, then use those index's.

this isnt working, but I think im getting there.


--
Connecticut Web Design and Development


jayco437
Premium
join:2001-08-11
Lincoln, NE
·Windstream

Not sure where you're erroring out, but I think your attempt to build an array from a to z doesn't look quite right.

Run this in irb:



johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to johnnyboyct
Yeah I'm frustrated with this.It looks nice, but I dont see a reason to choose it over adobe air or something if im learning something new. I cant find any help anywhere :/

It could be me being frustrated. I just wanted to load the sounds, but its being redonkulus even if I put them in an array, it wont play right on keypress :/

Ill let you know what I come up with
John
--
Connecticut Web Design and Development


jayco437
Premium
join:2001-08-11
Lincoln, NE
Yeah, it's pretty new so there isn't a lot out on it yet compared to other languages. But it's ruby

What do you mean it won't load right on keypress?


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI


1 edit
Im glad I took a look at it, and I really like ruby syntax so its good I peaked :)

FWIW I cant figure out how to load a sound file from assets and store it in an array to play on keypress.

I tried here, but I had a few drinks after a long day of work and its pissing me off :P

Seems you cant do it on the key event, so you have to do it before when it loads, but I cant get the stuff to load into an array correctly, nor get the progress bar to not be useless...

I reinstalled flex builder to see if I can do it eiseir with air or something,but would love to get this eventually ,.
-
Forums » Tech and Talk » OS and Software » Webmasters and Developersbusiness requirements »
« Need help with removing code/advertisement on 3rd party page  


Sunday, 08-Nov 14:28:36 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [156] Cable Uncapper Faces Criminal Charges
· [140] AT&T Sues Verizon Over 3G Ads
· [112] Why Run Fiber When You Can Run Ads That Pretend You Do?
· [108] Comcast Is Simply Getting Huge
· [92] Apple Cooking Up New $30 A Month TV Service?
· [82] Bits Of ACTA Agreement Leaking Out
· [80] Will 'Three Strikes' Come To The United States?
· [78] Verizon To Double Smartphone ETFs?
· [76] Verizon: Droid Tethering Will Cost $30 Extra
· [73] Comcast, NBC Deal Almost Complete
Most people now reading
· Hit and run [General Questions]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· NO ONE knows what's wrong with my line! [TekSavvy]
· [NFL] Week 9 Games Thread [Sports Chat]
· Know when to run! [Home Repair & Improvement]
· [WIN7] Outlook express under Windows 7? [Microsoft Help]
· no Globalive/Wind Mobile in Canada [TekSavvy]
· [Need Info] Looking for backup software... [Software]