jmthunderbirdturbo
jmthunderbirdturbo Reader
8/25/14 4:06 a.m.

i need a super simplified calculator app. this app needs to have digits 1-20 on the face, meaning a single key for 10, for 11 etc. what i want to happen is i open the app, and the count is zero. i punch 12, 10, 8, 6, 14, 18, and the count adds up to 68 as i go. i dont have time to press plus every time. it just needs to add the digit i press. in the rare occasion i need to add like 64, ill do the math in my head, 20, 20, 20, 4, = 64. the only other key i need is reset to zero, and a way to switch from add to subtract. this way i can add up to my full count, then subtract what i have in stock. my current way involves a calculator and a clipboard, and is awkward on stairs and ladders. this will fit in my shirt pocket and i can use all 4 limbs to climb and decend.

any one? thanks in advance!

-J0N

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/25/14 9:26 a.m.

I could do something like this in JS, then you could save the page on your phone and open it in the browser.

jmthunderbirdturbo
jmthunderbirdturbo Reader
8/25/14 8:56 p.m.

that would work, i think. do you need a place to host it?

-J0N

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/26/14 8:07 a.m.

No, I just need the time to put it together, I'll see what I can do today.

4cylndrfury
4cylndrfury MegaDork
8/26/14 8:44 a.m.

Things I love:

  • Chirping second coming out of that tight hairpin on my way home

  • Mentioning to the wife that a 220v line for the garage is a good idea, and she agrees

  • This forum

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/26/14 8:58 a.m.

Already got it started, doesn't help that my JS is rusty...

Matt B
Matt B SuperDork
8/26/14 9:04 a.m.

Yeah, Gameboy is awesome for putting this together.

Mad props yo!

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/26/14 9:07 a.m.

Just trying to pretty it up now, which is most of the work

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/26/14 9:23 a.m.

Here's a version that's logically complete but visually first-draft. Open the link on your phone, click "Download", then open it with your browser and tell me how it looks:

http://pastebin.com/79GaeqNE

Matt B
Matt B SuperDork
8/26/14 10:08 a.m.

Just an FYI - it may not be a problem for Android phones, but neither Safari or Chrome would let me download that file on my iPhone 4S.

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/26/14 10:13 a.m.

Huh well if you have any trouble downloading the file, I could email it (or you could download it on a PC) and then you could load it on over USB.

Here's a new version:

http://pastebin.com/Vcmj6aSu

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/26/14 10:32 a.m.

Just tried it on my N900, seems to fit the screen well. I hit Download and then browsed to the file location (which for me was in file:///media/mmc1/Downloads)

I could then bookmark this page to make opening it easy.

4cylndrfury
4cylndrfury MegaDork
8/26/14 11:54 a.m.

I tried it, just for fun, and it downloaded fine. When I went to open it, I was given 2 choices to open, one with a stock "HTML Viewer", and the other with Opera browser. It doesnt open with Opera, and with the HTML viewer, I see buttons for numbers up to 20, a + and - sign, and a reset button. Clicking the buttons does nothing though - not sure if its my jank-ass Alcatel phone, or the code. Just wanted to throw that out there...Works great for IE and Firefox on the PC.

Good on you GB for putting it together though. I know some VBA for Excell and Access, but JS for an android app is another monster all together...

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/26/14 12:14 p.m.

Your Alcatel phone's browsers probably don't run JS. This should be able to run on any remotely modern phone though not just Android.

jmthunderbirdturbo
jmthunderbirdturbo Reader
8/26/14 8:56 p.m.

WOW! thats perfect. i need to find a way to paste that to my phone screen, but i love it. the only change i owuld make, is on my phone the numbers are very small. (HTC ONE) the button size is fine, just the numeral is small.

THANK YOU SO MUCH!!!!!

-J0N

jmthunderbirdturbo
jmthunderbirdturbo Reader
8/26/14 9:10 p.m.

update, ok i was able to add it as a bookmark to my home screen, but that requires internet to use, which is fine if thats just the way it is. it works perfect, i have already saved about 10 minutes of work with it. but if it is possible to actually download the program and have it work without internet, i would do that. i just dont know how to.

thanks again GB, you are the man!

-J0N

Appleseed
Appleseed MegaDork
8/27/14 3:21 a.m.

Dude this is why you're on the "list."

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/27/14 7:31 a.m.

Yeah it's possible to save it, that's the intent, I'll have to borrow a friend's Android phone and tell you exactly how.

I'll see what I can do about the font size, unfortunately it's related to the button size.

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/27/14 8:01 a.m.

v3 with very different "buttons" to allow bigger text, hope it still fits the screen well, needs a slight zoom-out on my N900:

http://pastebin.com/gJ4xSXug

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/27/14 8:12 a.m.

Here's how to save it and run it locally with an Android phone:

Open Pastebin link, click Download

Use file browser to browse to downloads

Open js_counter_v3 as "other" - it should open in the browser, here you can bookmark it.

jmthunderbirdturbo
jmthunderbirdturbo Reader
8/27/14 7:08 p.m.

ok, thats all set! i like the new buttons better too, and it seems to process faster. Thank you so much GB. this app was already installed on 15 people phones. all the warehouse guys use it to make sure the count is zero after each load, and its about 1/2 the total time than using a calculator. i hereby grant you 1000 internets!

thanks again man, this is great!

-J0N

GameboyRMH
GameboyRMH GRM+ Memberand MegaDork
8/28/14 7:23 a.m.

See, now I think this app has already proven itself to be more useful than the Yo messenger, so how long until some VC dumps 7 figures into my startup over it?

(Oh wait I don't have a startup...putting on hipster glasses...launching "business card" website...got a wheelbarrow for the cash...OK now I'm ready!)

4cylndrfury
4cylndrfury MegaDork
8/28/14 8:53 a.m.

You'll need to log in to post.

Our Preferred Partners
FcvnCLKc7H0A3Q0aYsBBH0UJzMPDMA8O9nmfASgSo8HkTpZr1aCd86X8wBnac49y