Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Weight Watchers Calculator

    Reply
    andrewfblack | # 1 | 2008-06-25, 19:38 | Report

    Ok I'm not sure if anyone of you guys have every been on weight watchers but its a diet plan that uses a math formula to calculate a foods point value. Here is the formula they use.



    Where:
    p = Points
    c = Calories
    f = Fat Grams
    r = Dietary fiber Grams

    (Note: min{r, 4} equals the number of grams of dietary fiber or 4, whichever is smaller. In other words, only the first 4 grams of fiber "count.")

    I am wanting a little program to run on the Tablets that does this. I have one that does it in html but I was thinking a stand alone program would be cool. I know most programers could do this in under an hour. Please if anyone is willing let me know. I will compensate you if I can.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Wes Doobner | # 2 | 2008-06-25, 20:11 | Report

    Makes me hungry just looking at it.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    PinCushionQueen | # 3 | 2008-06-25, 21:03 | Report

    I've been using Weight Watcher's Calc for Palm under GarnerVM. It's really hard to find the .prc file to install so if you're interested, PM me your email and I'll send it to you along with foodlists.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    TrueJournals | # 4 | 2008-06-26, 17:37 | Report

    Alright, I just attempted to make a simple tool in Python to do the job. This is actually my first coding experience in Python, and overall it went quite well I believe. The hard part was fighting with PyPackager, only to realize that it needed to be run as root..

    Anyway, a package for a very simple weight watchers points calculator is attached. Let me know if you find anything wrong with it, or you would like something to work differently.

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: deb WeightWatchers-1.0.0-1_all.deb (5.5 KB, 289 views)

     
    TrueJournals | # 5 | 2008-06-26, 20:12 | Report

    Woops! Just realized that that deb places a bad file in the folder /usr/share/applications/hildon that causes the personal menu configuration to crash if you try to add an already-available application. This new deb doesn't add that file, and removes it if it exists. Sorry about that!

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: deb WeightWatchers-1.0.0-2_all.deb (5.6 KB, 278 views)
    The Following User Says Thank You to TrueJournals For This Useful Post:

     
    andrewfblack | # 6 | 2008-06-26, 21:22 | Report

    sweet I will try it out when I get home.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    brontide | # 7 | 2008-07-01, 00:52 | Report

    Originally Posted by TrueJournals View Post
    The hard part was fighting with PyPackager, only to realize that it needed to be run as root..


    I've always run it as myself without problems. The trick is to place your filesystem inside a dummy directory that is also owned by you. That way when it places the .deb files in ../ it's also owned by you.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    gemniii42 | # 8 | 2008-07-01, 02:23 | Report

    Originally Posted by TrueJournals View Post
    <snip>The hard part was fighting with PyPackager,
    <snip>
    and
    Originally Posted by
    sweet I will try it out
    Ok so you are packing pies for a weight watchers program?
    And the consumer finds them sweet?

    No weight loss there

    Edit | Forward | Quote | Quick Reply | Thanks

     
    TrueJournals | # 9 | 2008-07-01, 02:41 | Report

    Originally Posted by brontide View Post


    I've always run it as myself without problems. The trick is to place your filesystem inside a dummy directory that is also owned by you. That way when it places the .deb files in ../ it's also owned by you.
    Yeah, that was my fault. I had created the directory as root because I was using SSH to transfer the files. I also had a problem because somehow the pylauncher configuration file was owned by root, so I was having trouble launching python programs from the command line to diagnose the problem...

    I got it all figured out though

    Edit | Forward | Quote | Quick Reply | Thanks

     
    alcockell | # 10 | 2011-01-31, 20:21 | Report

    WW have changed their scheme over here in the UK; they have so far released an iPhone app... maybe some of the community could engage with them and help port a mobile ProPoints app to QT?

    Get it packaged for Maemo, Meego and Symbian?

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout