![]() |
2010-04-15
, 12:44
|
|
Posts: 183 |
Thanked: 66 times |
Joined on Sep 2009
|
#2
|
![]() |
2010-04-15
, 12:48
|
Posts: 203 |
Thanked: 152 times |
Joined on May 2009
@ Austria
|
#3
|
![]() |
2010-04-15
, 12:51
|
Posts: 323 |
Thanked: 180 times |
Joined on Oct 2009
@ Gent, Belgium
|
#4
|
![]() |
2010-04-15
, 12:58
|
Posts: 203 |
Thanked: 152 times |
Joined on May 2009
@ Austria
|
#5
|
how about the user dependent parameters (alcohol clearance rate based on weight/sex) ?
Long long time ago I made a very similar text only program in a programmable calculator (in Basic ... good old days) and I specifically went to the doctor for 4 specifically timed blood tests, after drinking a clearly measured amount of alcohol to see what my absoption rate and alcohol clearance rate was. Of course the absorption rate is previous food intake dependent.
I even went through the hassle of reading my GP study books on forensic medicine (alcohol testing specific) to get the proper formulas used in court (by doctors) ...
Anyway, my personal parameters were not that far off the empiral formulas taking into account weight and sex.
How do you take those in consideration in your program ?
Luckily I had a very understanding GP, interested in what I was trying to achieve ...
//returns additive permill float Alcohol::calcAlc(int drinkType) { float gkw; float A; float c; float amountMl = m_drinkDefs->at(drinkType).amountMl; float percentage = m_drinkDefs->at(drinkType).percentage; // http://de.wikipedia.org/wiki/Blutalkoholkonzentration gkw = 2.447 - 0.09516 * m_sett->bodyAge + 0.1074 * m_sett->bodyHeight + 0.3362 * m_sett->bodyWeight; A = amountMl * percentage * 0.8; c = 0.8 * A / (1.055 * gkw); return c/100; }
![]() |
2010-04-15
, 13:00
|
|
Posts: 663 |
Thanked: 282 times |
Joined on Nov 2009
@ London, UK
|
#6
|
![]() |
2010-04-15
, 13:06
|
Posts: 203 |
Thanked: 152 times |
Joined on May 2009
@ Austria
|
#7
|
Interesting but in practice is anyone going to be getting their phone out at the pub and recording things?
Don't want to knock a good app, but it kinda seems like a fallacy. If you're sober enough to do be using it then you know how many drinks you've had and approx when. If you're too sloshed to remember what you've drunk then the likelihood of using your phone to record the drink type and time is going to be slim. You'll be talking to people in a bustling environment.
And... who can operate the N900 with one hand (holding a drink with the other) while sober, let alone while drinking!
Maybe it could find a niche for drinking circles/contests; centurions, etc?
![]() |
2010-04-22
, 00:01
|
Posts: 5 |
Thanked: 0 times |
Joined on Apr 2010
|
#8
|
![]() |
2010-04-22
, 00:05
|
Posts: 4,556 |
Thanked: 1,624 times |
Joined on Dec 2007
|
#9
|
![]() |
2010-04-22
, 00:07
|
Posts: 203 |
Thanked: 152 times |
Joined on May 2009
@ Austria
|
#10
|
This morning, i've managed to bring my app to extras-devel.
Its a useful app to count your drinks when you are going out, to estimate your alcohol level, or to know how many drinks do you have to pay if you are not able to count it anymore
There are some known bugs like the own-implementated drag&drop sometimes have problems, i hope the next qt-release will fix that.
- You cant add more than 15 different drinks.
- The menu has "//" near the buttons.
- choosing drinkpicture at "new drink" needs ~5 seconds to open.
A missing feature is making bill.
I will correct all this when i have enought time for it but the current release is still useable, i think.
Have fun
Last edited by AndiThebest; 2010-04-15 at 12:50.