![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I've gone ahead and finally released the source to the Hacker's Diet Tracker like I said I would so long ago. Here is the announcement:
Wow, its amazing how long it has been since I updated here. Yes, I'm still alive, and so is this site. Anyway, I have some news:
Several people have very politely asked me to release the source to this and I have ignored them. I'm sorry. I can come up with several excuses, such as changing jobs, moving, complicated personal life, but the main reason I haven't is rather simple. I'm embarrassed. Seriously. The main script that runs this site is bad. Really bad. Really, really, really bad. It has duplicated code, poorly thought out structures, stupid mistakes, needless sorting, poor scaling, obvious lack of understanding cgi concepts and more. The only thing that it really has going for it is that it works. It was my first real Python program, my first cgi script, and I wrote most of it while trying to stay awake at 3AM while watching over telescopes looking for Earth killer asteroids. Seriously.
If you still want the source, you can get it here. It is released under an MIT license, so do what you want with it. I don't really have the time to work on it myself, but if you feel like working on making it better I would appreciate hearing from you and will gladly accept patches. The main areas to work on are:
Included in the tgz are the major dependencies, pychart and PythonUtils. Assuming that you are running Apache on some form of *nix with a mail agent running and ghostscript installed, installation should be as simple as extracting the tgz into whatever public_html directory you feel like.
It's really sad, the only two bits of code that I have written that are public are, by far, the two worst bits of code I have written. Sigh.
Wow, its amazing how long it has been since I updated here. Yes, I'm still alive, and so is this site. Anyway, I have some news:
Several people have very politely asked me to release the source to this and I have ignored them. I'm sorry. I can come up with several excuses, such as changing jobs, moving, complicated personal life, but the main reason I haven't is rather simple. I'm embarrassed. Seriously. The main script that runs this site is bad. Really bad. Really, really, really bad. It has duplicated code, poorly thought out structures, stupid mistakes, needless sorting, poor scaling, obvious lack of understanding cgi concepts and more. The only thing that it really has going for it is that it works. It was my first real Python program, my first cgi script, and I wrote most of it while trying to stay awake at 3AM while watching over telescopes looking for Earth killer asteroids. Seriously.
If you still want the source, you can get it here. It is released under an MIT license, so do what you want with it. I don't really have the time to work on it myself, but if you feel like working on making it better I would appreciate hearing from you and will gladly accept patches. The main areas to work on are:
- General code cleanup
- Moving to a real database for user info
- Adding metric support
- Fixing the "Chart doesn't always appear to update" bug
Included in the tgz are the major dependencies, pychart and PythonUtils. Assuming that you are running Apache on some form of *nix with a mail agent running and ghostscript installed, installation should be as simple as extracting the tgz into whatever public_html directory you feel like.
It's really sad, the only two bits of code that I have written that are public are, by far, the two worst bits of code I have written. Sigh.