nicknezis / burnbot Goto Github PK
View Code? Open in Web Editor NEWAndroid client for Dailyburn.com
Home Page: http://www.dailyburn.com
Android client for Dailyburn.com
Home Page: http://www.dailyburn.com
Combine the DetachableResultsReceiver concept with AsyncTask to support config changes
Users can set Body Goals towards any of the Body Metrics they have access
to (i.e., only Pro users can set goals towards Pro metrics). Body Metrics,
Log Entries, and Goals are all closely knit. In the case of Goals, Goals
are set towards a Body Metric, and meeting the goal is done by the user
creating a Log Entry with a value that meets their goal.
GET -> https://dailyburn.com/api/body_goals.format
12 lte false 2008-09-06T07:18:08-06:00 34717 false 1 34.0 bpm resting_heart_rate 8 lte false 2008-09-03T12:20:07-06:00 34702 true 1 175.0 lbs body_weightPOST -> https://dailyburn.com/api/body_goals
PUT -> https://dailyburn.com/api/body_goals
http://stackoverflow.com/questions/1048239/how-to-cache-information-in-a-dao-in-a-threadsafe-manner
Maybe we can use a FutureTask and ConcurrentHashMap. Also maybe WeakHashMap for GC purposes.
Also should look into the Android Internal/External Cache solution. (Maybe for images?)
http://dailyburn.com/api/docs#diet_goals
Every user has Diet Goals. Diet Goals are created per-nutrient (e.g., Calories, Fat, etc.) and define a range in which the user wishes their total intake should fall per-day. For example, a new user's calorie goal is set with an upper bound of 2100 and a lower bound of 1900. Default goals are created for Calories, Fat, Carbs, and Protein. PRO users gain the ability to additionally set goals towards Fiber, Sodium, Potassium, and Cholesterol.
When a user submits their exercise progress, they are actually creating Exercise Sets. An Exercise Set is about what you would think it would be. For example, if a user performs 3 sets of 20 crunches then that would correspond to creating 3 Exercise Sets, each having 20 reps, and associated with the "Crunch" exercise.
Need to create domain objects for Exercise and Exercise Sets. Also need to create a DAO object.
Present nutritional sums and goals when viewing a day's food log entries.
Add a refresh button in the actionbar to retrieve updated results (also in case of dropped network)
Update the UI look based on the design patterns presented at Google IO and on the Android Developer Blog.
GoogleIO video: http://www.youtube.com/watch?v=M1ZBjlCRfz0
Design Patterns: http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html
Replace the remaining entry modal dialogs. They don't fit in landscape mode. Should be another Activity with layout options.
Make the network calls in the background, and update the UI to present the information in a meaningful way
Currently this work is done if a couple of Activities and then stores the result in the main application class. This work should be centralized in the BurnBot class and done at first request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.