Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Ubuntu app programming?
Search Topic:
Uniqs:
280
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
·AT&T Southwest

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
·AT&T Southwest

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  


Friday, 03-Jul 18:40:04 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9.5 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [144] Biden Unveils Broadband Stimulus
· [93] AT&T: 65,000 SMS Sent Per SECOND
· [89] Compuserve Classic Says Goodnight
· [79] Thomas To Appeal Huge RIAA Fines
· [71] iPhone 3GS Already Jailbroken
· [67] Verizon: Cut Your Landline To Save Money
· [60] The Pirate Bay Gets Sold
· [59] Breakdown of 3G Network Speeds, Reliability
· [58] Cable Carriers Miss Tru2Way Deadline
· [56] The Broadband Stimulus Gets, Uh, Less Patriotic?
Most people now reading
· Canada's slipping position on net access cost & speed [TekSavvy]
· Maximizing Rogue DPS for 3.1 [World of Warcraft]
· TSI Usenet vs. Paid Usenet [TekSavvy]
· So who's going to line up to pay $9.99/mo for turn-by-turn? [All Things Macintosh]
· MCMVII: Liberty 20 Dollar Coin [General Questions]
· Why is IE8 the absolute worst at the acid3 browser test? [Microsoft Help]
· [easy] Who are the readers? [Site Feature Requests]
· Status of 2008-108 Throttling Review and Vary [Canadian Broadband]