webOS Nation Forums >  webOS apps and software >  webOS development > Home Brew Apps -- How To In 10 Easy Steps
Home Brew Apps -- How To In 10 Easy Steps

  Reply
 
LinkBack Thread Tools Display Modes
Old 06/17/2009, 09:04 AM   #21 (permalink)
Member
 
Join Date: Jun 2009
Posts: 40
Likes Received: 0
Thanks: 7
Thanked 3 Times in 3 Posts
Default

@xenophonite:

It just not a "good idea" because it protects the phone from bad code. Don't get me wrong, webOS is impressive. But any professional computer programmer will tell you that the most surprising things are run on bad code.

There's also the case of security. If you have rooted your phone and you have some sort of telnet/ssh access on it, you can bet there's lots of people out there running bots that try to guess that password and get into your phone (computer). If it's just a bot, it's less likely to know to remount root before applying its payload.

I've had a server up for 2.5 years now with denyhosts installed. It captured a VERY LONG list of IPs from which people/bots have tried to login and get root...most of them from China.
tercero12 is offline   Reply With Quote
Old 06/17/2009, 04:02 PM   #22 (permalink)
Member
 
Join Date: Jun 2009
Posts: 21
Likes Received: 0
Thanks: 2
Thanked 7 Times in 5 Posts
Default

sweet now ill start working on creating my javascript app for the pre!!
livewire1337 is offline   Reply With Quote
Old 06/18/2009, 12:27 PM   #23 (permalink)
Member
 
taalibeen's Avatar
 
Join Date: May 2009
Posts: 249
Likes Received: 0
Thanks: 13
Thanked 69 Times in 26 Posts
Default

My wife and I eat out a lot and I often use my phone's calculator to figure out what the tip should be.

I decided to create a Tip calculator app to simplify it. It also allows me to see, without re-entering the bill total, what the tip would be at different rates.

Here's some screenshots-->

Tip 'Em in the launcher:



Here it is running:



Here it is with a bill amount entered and tip calculated:

taalibeen is offline   Reply With Quote
Old 06/18/2009, 12:55 PM   #24 (permalink)
Member
 
Join Date: Nov 2004
Posts: 1,212
Likes Received: 0
Thanks: 20
Thanked 41 Times in 24 Posts
Default

Congrats! would you mind sharing the code?
__________________
Sprint Pre, Mugen 2800mah battery
xenophonite is offline   Reply With Quote
Old 06/18/2009, 01:48 PM   #25 (permalink)
Member
 
Join Date: Jun 2009
Posts: 21
Likes Received: 0
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Nice tip application. The only change I'd make would be to add a total line under the Tip line and add the bill and tip together. That would make it easier to fill out all the fields on the bill.
Stuffed is offline   Reply With Quote
Old 06/18/2009, 10:03 PM   #26 (permalink)
Member
 
Join Date: Jun 2009
Posts: 10
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Default

that looks great, taalibeen. Where do you begin scripting something like that? Did you follow the examples of other apps - or can you use javascript from the index.html file?
jzieman2 is offline   Reply With Quote
Old 06/18/2009, 10:48 PM   #27 (permalink)
Member
 
Join Date: Aug 2005
Posts: 832
Likes Received: 0
Thanks: 29
Thanked 99 Times in 65 Posts
Default

maybe add Total like stuffed said... and then possibly a "split bill" option including the tip.. just an easy divide Cheers!! and it looks great!!
antonio3 is offline   Reply With Quote
Old 06/19/2009, 06:43 AM   #28 (permalink)
Member
 
taalibeen's Avatar
 
Join Date: May 2009
Posts: 249
Likes Received: 0
Thanks: 13
Thanked 69 Times in 26 Posts
Default

Thanks for the idea about including the total, and about the split bill. Both of those are excellent suggestions.

I'm gonna share the code later today. Anyone suggest a place I can upload it to so I can just put the zip file up?
taalibeen is offline   Reply With Quote
Old 06/19/2009, 07:41 AM   #29 (permalink)
Member
 
Join Date: Jul 2004
Posts: 42
Likes Received: 0
Thanks: 3
Thanked 5 Times in 3 Posts
Default

Quote:
Originally Posted by taalibeen View Post
Thanks for the idea about including the total, and about the split bill. Both of those are excellent suggestions.

I'm gonna share the code later today. Anyone suggest a place I can upload it to so I can just put the zip file up?
pre dev wiki: Welcome to the Pre/webOS Development Wiki



backslide is offline   Reply With Quote
Old 06/19/2009, 09:43 AM   #30 (permalink)
Member
 
meyerweb's Avatar
 
Join Date: Dec 2003
Location: Fairfax, Virginia
Posts: 3,387
Likes Received: 0
Thanks: 1
Thanked 148 Times in 90 Posts
Default

Quote:
Originally Posted by tco-jt View Post


General Disclaimer: Use at your own risk. This may cause issues, void your warranty, cause aliens to abduct your sole.
If aliens take my shoe, I'm comin' after you!
__________________
Bob Meyer
I'm out of my mind. But feel free to leave a message.
meyerweb is offline   Reply With Quote
Old 06/19/2009, 11:04 AM   #31 (permalink)
Pre Developer
 
PreGame's Avatar
 
Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
Default

How does the App Catalog add new programs? When a new one is downloaded/installed does it use pkill?
PreGame is offline   Reply With Quote
Old 06/19/2009, 09:54 PM   #32 (permalink)
Member
 
deesugar's Avatar
 
Join Date: Sep 2002
Posts: 1,889
Likes Received: 115
Thanks: 77
Thanked 628 Times in 237 Posts
Default

How hard would it be to take existing web apps or js apps and just modify them to work on the Pre?

And in a similar way couldn't you take games from PlayScreen and convert them to apps that you could play anytime without needing to be online?
deesugar is offline   Reply With Quote
Old 06/19/2009, 10:01 PM   #33 (permalink)
Member
 
bananachunks's Avatar
 
Join Date: Jul 2002
Location: San Francisco, CA
Posts: 172
Likes Received: 0
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by deesugar View Post
How hard would it be to take existing web apps or js apps and just modify them to work on the Pre?

And in a similar way couldn't you take games from PlayScreen and convert them to apps that you could play anytime without needing to be online?
not hard at all. For my own curiosity, a few days ago I pulled Wild West Slots from playscreen using HTTrack. Pretty much right away it's ready to throw in a directory with a .json and it's good.
bananachunks is offline   Reply With Quote
Thanked By: taalibeen
Old 06/20/2009, 01:01 AM   #34 (permalink)
Member
 
Join Date: Jun 2009
Posts: 102
Likes Received: 0
Thanks: 16
Thanked 12 Times in 9 Posts
Default

Quote:
Originally Posted by SirataXero View Post
I was thinking we could use VPN software (or whatever linux uses, pardon my ignorance) to get access to our home computers and stream media such as music or videos without having to save them to our Pre.
You can already do this via the Pre web browser if you set up an orb server on you home computer, which is very easy to do.

Just go to orb.com and follow the directions. It's pretty sweet.

Note that videos through orb don't seem to be working very well on the Pre yet, but music is working just fine, and orb has said they are working on getting the Pre problems fixed.
Ricyteach is offline   Reply With Quote
Thanked By: SirataXero
Old 06/20/2009, 02:20 AM   #35 (permalink)
Member
 
SirataXero's Avatar
 
Join Date: Nov 2007
Location: Rhode Island, USA
Posts: 1,739
Likes Received: 15
Thanks: 381
Thanked 398 Times in 217 Posts
Default

Quote:
Originally Posted by Ricyteach View Post
You can already do this via the Pre web browser if you set up an orb server on you home computer, which is very easy to do.

Just go to orb.com and follow the directions. It's pretty sweet.

Note that videos through orb don't seem to be working very well on the Pre yet, but music is working just fine, and orb has said they are working on getting the Pre problems fixed.
Oh wow... that's awesome! I didn't know about that... thanks!

I'll definitely look that up when I get my Pre.
SirataXero is offline   Reply With Quote
Old 06/20/2009, 08:08 AM   #36 (permalink)
Member
 
taalibeen's Avatar
 
Join Date: May 2009
Posts: 249
Likes Received: 0
Thanks: 13
Thanked 69 Times in 26 Posts
Default !!!!! Awesome !!!!!

Quote:
Originally Posted by bananachunks View Post
not hard at all. For my own curiosity, a few days ago I pulled Wild West Slots from playscreen using HTTrack. Pretty much right away it's ready to throw in a directory with a .json and it's good.
This is the MOST awesome post yet!!

I had tried to play some of the Playscreen.com games, and found that they sucked because of response time. It just wasn't accurate.

Still, I wanted to test your theory.

I downloaded HTTrack, went to the Playscreen site and used HTTrack to download the site Torpedoes Away - See more FREE Games at MyNuMo - Palm Pre Version.

I downloaded the image file for the game and used IrfanView to resize it to 64X64 and saved it as icon.png -->

I named the folder that the actual games was downloaded into via HTTrack as com.playscreen.app.ta.

I created an appinfo.json file with the following contents:


{
"title": "Torpedos Away",
"type": "web",
"main": "index.htm",
"id": "com.playscreen.app.ta",
"vendor": "PlayScreen",
"icon": "icon.png",
"version": "1.2.0",
"removable": "true"
}

I then placed the directory com.playscreen.app.ta on my Pre in USB mode, started up a shell and did a cp -R com.playscreen.app.ta /var/usr/palm/applications, rebooted and the game was installed.


**Those are not step by step instructions, I'm assuming you have done the rooting and have a enough understanding to fill in the blanks **

But the REALLY cool part is that now that the game is local to the PRE, its actually PLAYABLE!!!

Holy sweat socks Batman!! I'm gonna download all the Playscreen games and have fun on my Pre!!
taalibeen is offline   Reply With Quote
Old 06/20/2009, 10:54 AM   #37 (permalink)
Member
 
Join Date: Jun 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 2 Times in 1 Post
Default

Quote:
Originally Posted by wli224 View Post
Kaze0, I second that. Being able to rapidly clear the cache without having to restart LunaSys would be great. Anyone have any ideas?
I put this on the wiki.

It seems to trigger a rescan/rebuild of the Launcher panel.

Code:
luna-send -n 1 palm://com.palm.applicationManager/rescan {}
This will definitely add/remove any application to the launcher, but I have not finished testing if it will reload the application javascript.

I'd imagine at the minimum you could move the application's directory outside of the palm application directory, send command, move back, repeat.

I'm hoping to make more progress on this today.

//edit: replaced old hacky method with cleaner rescan method.

Last edited by mdklein; 06/20/2009 at 01:21 PM.
mdklein is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0