The Hacker’s Diet - v0.9.7

Posted by on April 30, 2007

Download new version here

I know what you’re thinking, “7? What happened to 5 and 6?” Yeah I submitted a few inconsequential updates to the SVN repository that weren’t worth mentioning. But this one is, since it is a security release.

Hopefully in the near future I’ll put in the historical weight editing and hit 1.0. Then I’ll be able to concentrate on polish and shine (aka public facing pages and widgets)

As for me? I hit the 2.5 lb boundary above my goal, so I’m back on it! This thing sure keeps me honest. :]

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. Chad May 01, 2007 05:23

    Thanks, Keith! Thanks to you and Mr. Walker, I’m down 40 pounds! Sadly, still 40 to go. Halfway there… Thanks again!

    Chad

  2. Keith May 01, 2007 08:19

    wow 40 lbs, thats awesome! congrats. :]

  3. John May 01, 2007 14:22

    Hey Keith. Love the plug-in. I have a question though. My stats look a little weird. Check out May 1st, I put in a weight that is .4 pounds higher than the previous day and yet it shows me as a -3 pounds for the day. Also, it lists my target weight at 25.8 pounds to go when my target is actually 22.8 pounds away.

    Here’s a screen shot for ya

    Thanks for your input.

  4. Chad May 01, 2007 14:31

    Thanks!

    John, he’s calculating those numbers based on your current trend weight, not your current day’s weigh in.

    For details of how that works, see John Walker’s book.

    That actually brings me to a feature request… Keith, could you display the current trend weight on our home screen in addition to the current weight and differences?

    Thanks!

    Chad

  5. Keith May 01, 2007 15:43

    yeah i didn’t know whether the superscript differences would be intuitive, and almost scrapped them altogether. seems i might have to go back to the drawing board there.

    in a nut shell, they represent the difference b/t the weigh-in for that day, and that days trend. so that -3 means your 202.8 is 3 lbs lower than your trend (a good thing! hence the green) for that day. my reasoning was so there could be a visual alarm (RED!) if your weigh-in for a particular day was over your trend. and chad is correct, all important math is based off the trend. which is really one of the principles behind the diet. (i.e. the trend representing your “real” weight) if you haven’t read the book i’d recommend it.

    and chad, having all the differences was my reasoning for not having the actual trend posted. using johns screen, we can see that his trend for today is 205.8 (202.8 + 3). my logic for that was it isn’t actually as important what your weight is, as it is that your current weigh-in is below your trend (aka losing weight). but i’ve gotten alot of confused feedback on all that, so it might just be simpler to have a big, obvious “your weight is X” and put the current trend for X.

  6. Chad May 02, 2007 05:45

    Keith,

    I totally understand your reasoning; I almost didn’t make the request. I have to come clean and admit I hacked my version of it to show my current trend weight. It’s not pretty, but I like having both numbers, and, as I usually enter my weight waaaaaay too early in the morning, I don’t want to do higher math, like adding 3. :) Thanks again for a fantastic plug-in.

    Chad

  7. John May 07, 2007 16:29

    Chad - thanks for the input!!

    Keith, makes perfect sense, now.

    I do have a feature request. This may be more than you planned on doing with the plug-in, but no harm in throwing it out here for ya.

    I would love to be able to add exercise sessions and food intake. Not that it would play in to the overall weight, but a good spot for me to keep track. Though, I guess you could always add a “calories” column so you could figure out how much is being burned and consumed respectively.

    One final bit. If you have Microsoft Excel, download the template they have for fitness for men or women (two separate templates). They do something a little different where they have you measure your waist, chest & hips (I believe) plus has you add your height and then it figures out your BMI and some other interesting stuff.

    Anyway, thanks for the great plugin! I’m hooked!

    John

  8. Amy Jun 08, 2007 08:13

    I’m about to do a post about this on pjmommy.com (released this sunday) about the assistance I’ve gotten from this script. To date I’ve lost 33lbs. My goal was 46 and I have almost 3 months left.

  9. Amy Jun 11, 2007 07:02

    Replying to your comment:

    I used to be set up as an “editor” and I didn’t have access to it until the owner of PJ Mommy made me an admin. Maybe that’s something to look into?

  10. Jenn Jun 12, 2007 12:20

    I was just pointed in the direction of this script, and I have to say, I’m loving it and I’ve just started! The best feature, I think, is showing how many calories I need to reduce my diet by in order to continue with the weight loss.
    Very awesome. :)

  11. Chad Jun 20, 2007 09:09

    Yeah, I can’t say enough how cool this script is. As of today, I’ve now lost 57 pounds in 143 days (over 20% of my initial body weight)! I’ve still got about 23 to go, but thanks to John Walker (Author of The Hacker’s Diet) and Keith, I am not in the least worried. Current final target: October 1. :)

    Thanks again, Keith. You Effing Rock.

    Chad

  12. Jeroen Jun 22, 2007 09:35

    I found out that it’s possible to switch to kilograms (by deleting the hide-tag), but for some reason I can’t save this setting. Also not when I emptied the table.

    A bug?

  13. Keith Jun 22, 2007 15:40

    it’s not a bug, the hidden tags are there for a reason: that feature doesn’t exist.

  14. Jeroen Jun 24, 2007 09:05

    Spooky! It’s there, but it doesn’t exists.

    Any chance that you give the kilogram users also an opportunity to use this plugin?

  15. Keith Jun 24, 2007 11:19

    it’s on my todo list along with historical weight editing.

  16. jzsworld Jun 29, 2007 19:10

    Hi,

    I found your plugin and I love the idea. I tried installing it into my blog; however all I’m getting is greyed out text which says, “Fri 6/29 click here to add a weight.” I don’t see any graphs or calendars like the installation file says. Any suggestions?

    I am using Firefox 2.0.0.4 with WordPress 2.0.7.

    Thanks.

  17. Keith Jun 29, 2007 20:49

    what happens when you mouse over and click the “click here to add a weight” text?

  18. jzsworld Jun 30, 2007 20:55

    Nothing :( It was completely grayed out. It looked like normal text. Here’s a screenshot hosted at ImageShack:

    http://img264.imageshack.us/my.php?image=screeneruj3.jpg.

  19. jzsworld Jun 30, 2007 20:58

    Nothing :( It was completely grayed out. It looked like normal text. Here’s a screenshot hosted at ImageShack:

    *updated link*
    http://profile.imageshack.us/user/jzsworld/images/detail/#185/screenertn9.jpg

  20. jfjoubert Jul 02, 2007 09:43

    I downloaded 9,8b and use wp2.2.1 installation failed. Any idea?
    do you intend to make the pliugin compatible soon?
    thanks

  21. Keith Jul 02, 2007 10:45

    jzsworld: make sure you have javascript enabled on your browser. (which browser version, btw?)

    jfjoubert: were any errors printed when you attempted to activate? my blog is running 2.2.1 and it works, but i haven’t tried the install on a fresh setup yet.

  22. jzsworld Jul 02, 2007 17:23

    Javascript is enabled. I’ve tested in on Firefox 2.0.0.4 and IE 7.05.

    I think I’m having the same troubles as jfoubert. We’re running the same WP version, and it’s a fresh install.

  23. jfjoubert Jul 02, 2007 19:22

    I run Safri Mac osX 10.4.9 and I believe that all the necessary modules are activated including Java
    the Message reads that a fatal error occurred ! More precisely: Le plugin n’a pu être activé car il a déclenché une

  24. Keith Jul 02, 2007 19:36

    alright, i’ll try and setup a fresh 2.2.1 set to french and try it out.

  25. jfjoubert Jul 03, 2007 15:47

    Initially I also tried the installation on Wp2.2 but it failed also this is what prompted me to o to 2.2.1 but no better results. I did not do a frsh install I updated my 2.2

  26. Colleen Jul 19, 2007 13:54

    Hey, Mrs. Chad here- I have lost 47 pounds on this thing myself. I have to say that I have a feeling that I am not getting a bowling ball with Homer on it this year for our anniversary! ohhh yeah, baby!

  27. Amy Jul 30, 2007 07:24

    Do you have a donation section?

    I don’t have much to donate, but after helping me lose 45lbs I really want to thank you.

  28. Keith Jul 30, 2007 14:55

    i really wouldn’t feel right accepting donations. i wrote the plugin first and foremost for myself, since i needed it.

    hearing that it’s helped people other than me is enough thanks. :]

  29. Brandon Oct 24, 2007 08:10

    Hey, this is a wonderful plugin! There are online tools for the book, actually, but it’s as a service on the web site, and I’m always nervous about the future, if there would be a time it would not be available, or when the web site is just abandoned; the source code is too hard to install. So I like using this plugin, except that a couple of features in those online tools (see https://www.fourmilab.ch/cgi-bin/HackDiet/) would be really useful.

    I do like how you are displaying everything, so please don’t remove any of that, but the trend number would be useful. Perhaps if you put the variation so we can easily see the difference, but also put the trend number beside each day? Maybe expand the table to include: date, weight, trend, variation.

    I do love how you are displaying the expected date at which one will reach one’s goal weight, as well as the number of pounds to go. that’s one thing that I like better about your plugin than the online tools.

    Two more things I’d love to see sometime.

    The online tools has something like: Body mass index: mean 37.3, most recent 37.3. I think that’s rather useful as well, if you’d be able to pull that off.

    Finally, and on less of a priority than the above, something kinda similar to this sample image: https://www.fourmilab.ch/hackdiet/online/figures/badge_sample.png - if you sign up there, try going to utilities -> configure web site badge. I think something like that would be perfect as a sidebar widget.

    If you ever need/want any help with the programming, I’ve been a PHP programmer for 7 years. I’ve never done Wordpress plugins, but am sure I could figure it out.

  30. Brandon Oct 24, 2007 23:43

    I made some modifications myself.

    I added columns to the table to show the trend and variation for each day.
    I added height (feet and inches) to the settings.
    I added in ajax_blurb.php text to display the body mass index, the bmi prime, bmi category (underweight, normal, overweight, obese, morbidly obese), and percentage above the upper limit of healthy body mass.

    I created a patch that you can find here: http://www.brandonolivares.com/the-hackers-diet.patch

  31. Keith Oct 25, 2007 02:34

    hey man, awesome feedback. glad to hear you like the plugin.

    hm, interesting changes. i’m trying to decide whether or not to incorporate it into the trunk.

    my main hesitancy comes from the fact that i tried to purposely keep it as simple and focused as possible. to me this plugin was all about simply losing the weight and not managing your overall health. that’s one of the reasons i left out the exercise rungs even though they are featured in the book

    feature is always my most hated type of creep :P

    maybe i’ll make a new post and we can get some feedback from the users.

  32. Brandon Oct 25, 2007 07:09

    Yeah, I understand what you mean. But I do think that BMI and weight are so closely related that it is worth including. I mean, BMI is basically a measurement calculated only from weight and height, so it’s directly related, IMO.

    If you do include any of this, I think the only thing you’ll have to do is fix the modified table so that it puts the trend number and variation numbers into their appropriate columns when updated. It works on refreshing, but not just when you click, enter a weight, and click save. Then it just puts it in the weight column alone.

  33. Kev Dec 14, 2007 02:24

    Hi Keith
    I have correctly installed your plugin which I think is a great idea (42lbs to lose)
    I am unsure on how it should look, at the moment I can access it through my control panel but there is a list on the left that has today’s date and then dates in the past.
    Can I change these dates so that I enter my weight once per week?

    One other thing, is the plugin designed to appear on the main site as an extra tab or is it only accessed through the control panel of wordpress.

    Any help appreciated

    Kev

  34. Keith Dec 14, 2007 14:27

    kev,

    currently the plugin expects a weight entry every day. if you only weigh yourself once a week, the plugin won’t mind, but there is no way to only show one entry field per week. also, the numbers that are calculated won’t be as accurate if you only weigh yourself once a week and any change in your diet won’t be seen until well after you’ve gained more than you should have. i suggest following the hacker’s diet plan and weigh yourself every day!

    i don’t have any built-in support for showing adding a sidebar widget with diet info (yet, i really want to add it but don’t have the time), but one of my users, Chad ( http://www.brainsprain.net/chads-diet-progress/ ) has created an external page to document his diet progress and i’m sure he’d be happy to give you some pointers.

  35. kym Feb 27, 2008 19:22

    Hi

    Is this compatible with the latest version 2.3.3?

    I cannot get it to show on the Dashboard.

    thanks
    Kym

  36. kym Feb 27, 2008 23:06

    ok I downgraded to 2.1.3 and it still does not appear on my Dashboard

Comments

Comments: