Notices


Reply
Thread Tools
Ken-Young's Avatar
Posts: 387 | Thanked: 1,700 times | Joined on Feb 2010 @ Cambridge, MA, USA
#1
I've written (in C/gtk+) a simple little app I call maeFat, which is intended to help you keep track of how your weight is changing. It is currently in the Extras-devel repository, but I plan to push it into Extras-tesing in about a week.

maeFat is similar to the Hacker Diet tools, but it is optimized for the N900. It uses Hildon widgets, and the keyboard is not needed to enter daily weight data.

Documentation for the app is available in the Maemo wiki:

http://wiki.maemo.org/MaeFat

I hope this app is useful to someone besides me. If you use it and want some changes implemented, please let me know!
 

The Following 13 Users Say Thank You to Ken-Young For This Useful Post:
sondjata's Avatar
Posts: 1,076 | Thanked: 176 times | Joined on Mar 2007
#2
Mee-fat for Meego. lol
__________________
---
N800
Diablo
Boot from MMC
Gpodder Cache on MMC
MTube Cache on MMC
Mugen 1800mAh Battery
Addesso USB rollup keyboard
Solio Solar Charger
Holux GPSlim GPS

N810
community SSU
Turbo Diablo
8GB external
Boot from Internal SD
Still no GPS Fix.

N900
Stock
32GB
Many Solar Chargers (Saved bacon during Sandy!)
Inland ProHT BT keyboard
What's this? A GPS Fix? Wowwwwwww
 

The Following User Says Thank You to sondjata For This Useful Post:
djdas's Avatar
Posts: 77 | Thanked: 49 times | Joined on Apr 2010 @ Italy
#3
Hi,
thank you very much for this application, I'm currently using WeightJinni but yours seems a bit more user friendly
I noticed two things:
1) in the Settings screen there are some problems editing values of height and target weight using hardware kbd (you have to enter data "from right to left" pointing the caret on the left of the last digit, otherwise current digits are overwritten by the new ones entered);
2) after closing and reopening (I entered only the settings and my current weight) the application doesn't do anything (only black screen, no graph display and it doesn't react to any input);
Keep up the good work
bye!
 

The Following User Says Thank You to djdas For This Useful Post:
Ken-Young's Avatar
Posts: 387 | Thanked: 1,700 times | Joined on Feb 2010 @ Cambridge, MA, USA
#4
Originally Posted by djdas View Post
Hi,
thank you very much for this application, I'm currently using WeightJinni but yours seems a bit more user friendly
I noticed two things:
1) in the Settings screen there are some problems editing values of height and target weight using hardware kbd (you have to enter data "from right to left" pointing the caret on the left of the last digit, otherwise current digits are overwritten by the new ones entered);
Yes, unfortunately this is a bug with the gtk widgets running on Maemo 5. I don't think I can fix it. Luckily, the on-screen keyboard works properly, and even if you must struggle with the hardware keyboard, you normally will not need to re-enter your height and traget weight very often.

Originally Posted by djdas View Post
2) after closing and reopening (I entered only the settings and my current weight) the application doesn't do anything (only black screen, no graph display and it doesn't react to any input);
Keep up the good work
bye!
Hmmm - I've not seen that. Could you email me the contents of the settings file and data file (orrery.moko@gmail.com) so I can try to reproduce the bug and fix it (feel free to change the weight and height data!) ?

Also, if you can dump your data from WeightJinni, I can convert it to the format that maeFat uses, and send it back to you.
 
djdas's Avatar
Posts: 77 | Thanked: 49 times | Joined on Apr 2010 @ Italy
#5
Originally Posted by Ken-Young View Post
Yes, unfortunately this is a bug with the gtk widgets running on Maemo 5. I don't think I can fix it. Luckily, the on-screen keyboard works properly, and even if you must struggle with the hardware keyboard, you normally will not need to re-enter your height and traget weight very often.
Why don't you use Hildon widgets instead of plain GTK widgets? I think the former should integrate better with the whole system. I'll download the source code and in my spare time (very low ATM) I could try to help you contributing some sources (I don't have the build system so I'll try to send some "blind" patches )


Originally Posted by Ken-Young View Post
Hmmm - I've not seen that. Could you email me the contents of the settings file and data file (orrery.moko@gmail.com) so I can try to reproduce the bug and fix it (feel free to change the weight and height data!) ?

Also, if you can dump your data from WeightJinni, I can convert it to the format that maeFat uses, and send it back to you.
Well, I think I have found the problem: enetering only ONE weight data (just one row in the data file) the program doesn't start correctly, I entered 2 or more items and everything worked well.
I noticed there could be two problems:
1) it seems if you don't enter any comment some char pointer goes in buffer overflow because all the other comments in the graph become crap strings (and the data file will be corrupted in strings);
2) there is a strange behaviour with weight amounts, I entered 4 values in 4 different dates but when I reopen the program these values are rounded or something else (i.e I entered 69,5 Kg on February 9th but when I reopen the program, the data chart and the log show only 69 Kg, the same for other values in other days so the log and the chart show uncorrect values);

Don't mind about my current data, I started my weight control program last month and I have only 4 samples
Thank you in advance, bye!
 
Ken-Young's Avatar
Posts: 387 | Thanked: 1,700 times | Joined on Feb 2010 @ Cambridge, MA, USA
#6
Originally Posted by djdas View Post
Why don't you use Hildon widgets instead of plain GTK widgets? I think the former should integrate better with the whole system. I'll download the source code and in my spare time (very low ATM) I could try to help you contributing some sources (I don't have the build system so I'll try to send some "blind" patches )
I use Hildon widgets for everything except the height and target weight. The problem with Hildon widgets for entering a floating point value is that you must anticipate the full range of permissible values, and the granularity with which one might want to enter the data, and then populate an enormous scrolling widget with every possible value. For the daily weight, I can use the last weight as a guess. But I have no initial guess for the height and target weight.


Originally Posted by djdas View Post
Well, I think I have found the problem: enetering only ONE weight data (just one row in the data file) the program doesn't start correctly, I entered 2 or more items and everything worked well.
I noticed there could be two problems:
1) it seems if you don't enter any comment some char pointer goes in buffer overflow because all the other comments in the graph become crap strings (and the data file will be corrupted in strings);
I don't see that behavior - I only have a few comments in my table, and it works properly. Could you email me an example of a table that exibits the bad behavior?

Originally Posted by djdas View Post
2) there is a strange behaviour with weight amounts, I entered 4 values in 4 different dates but when I reopen the program these values are rounded or something else (i.e I entered 69,5 Kg on February 9th but when I reopen the program, the data chart and the log show only 69 Kg, the same for other values in other days so the log and the chart show uncorrect values);

Don't mind about my current data, I started my weight control program last month and I have only 4 samples
Thank you in advance, bye!
Thanks for the detailed error report. I don't use metric units myself, so there may be bugs I have not tracked down. I'll try to find the rounding problem you mentioned. I found another couple of very minor bugs, so I'll be uploading a new version in a few days.

Thanks again for giving the app a try. I hope I can whip it into good enough shape for it to be useful to at least one other person.
 
Posts: 13 | Thanked: 4 times | Joined on Apr 2010
#7
Originally Posted by djdas View Post
2) there is a strange behaviour with weight amounts, I entered 4 values in 4 different dates but when I reopen the program these values are rounded or something else (i.e I entered 69,5 Kg on February 9th but when I reopen the program, the data chart and the log show only 69 Kg, the same for other values in other days so the log and the chart show uncorrect values)
I had the same problem and I think changing the decimal mark of the data from comma to point has solved it.

EDIT: Hmm, It seems that it did not entirely solve the problem. Is it possible that maefat uses only point when parsing the data and writing data with regional standard decimal mark? I've changed my regional settings to a country in which point is a standard and now it seems to be fine.

Last edited by morto; 2011-03-06 at 14:28.
 

The Following User Says Thank You to morto For This Useful Post:
Ken-Young's Avatar
Posts: 387 | Thanked: 1,700 times | Joined on Feb 2010 @ Cambridge, MA, USA
#8
I've uploaded a new version with some bug fixes.
 
Posts: 27 | Thanked: 8 times | Joined on Nov 2009 @ Finland
#9
Couple of bugs I've found:
* If I add weight points in non-chronological order, for example a data point today then a data point from week back, the graph becomes messy zig-zag. The program does not sort the data timewise before drawing the graph?
* If I try to delete the last data point from log-screen, the program just shuts down and does not remove the selected data point. Could this possibly be related to a comma/dot separator problem?

Also the two bugs already mentioned seems to be still present in the latest version:
* When using SI-units (kg's, cm's) and/or comma as a separator, the entered weights get rounded into full integers.
* Setting the height and target weight is a pain with the physical keyboard. I prefer to have the on-screen keyboard disabled.

Thanks anyway for the good work! I'll be waiting for the next version.

Last edited by tplastic; 2011-03-07 at 12:40.
 

The Following User Says Thank You to tplastic For This Useful Post:
Posts: 28 | Thanked: 109 times | Joined on May 2010 @ Normandy, France
#10
Hi,

Do you have plans to add translations to maeFat ? If so, I could do a french translation (my gf has a N900 too but doesn't read english, and this app would be interesting for her).
 

The Following User Says Thank You to n-mi For This Useful Post:
Reply

Tags
maefat

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:07.