stupid app I wrote

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
HomeworkTracker. If you want the code (uses mysql + php) get it here. It is a "work in progress" (like, right now I still show old homeworks. I want to have a way to say "Handed it in".... like, if I finish the homework, I have 100% progress but I need to remember to hand it in for credit ;)). I might add another field to the db, or use progress >100% for that.

edit: I hope this isn't considered spam ;)
edit2: New version up.
 

Krye

Senior member
Aug 26, 2001
298
0
0
Heh, that's pretty cool. I tried adding something but I didn't get the password right :p
I would add the completed option but still leave the data in the database with an option to delete later somehow. Reason being that way you can check what homework you've done in the past.

But seriously, that's pretty funny/cool.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: Krye
Heh, that's pretty cool. I tried adding something but I didn't get the password right :p
I would add the completed option but still leave the data in the database with an option to delete later somehow. Reason being that way you can check what homework you've done in the past.

But seriously, that's pretty funny/cool.

heh, kidna wierd, but since i've started using it, I'm procrastinating less :Q. I guess because I set stuff to begin turning red at 4 days (it gets redder until the due date)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: CTho9305
Originally posted by: Krye
Heh, that's pretty cool. I tried adding something but I didn't get the password right :p
I would add the completed option but still leave the data in the database with an option to delete later somehow. Reason being that way you can check what homework you've done in the past.

But seriously, that's pretty funny/cool.

heh, kidna wierd, but since i've started using it, I'm procrastinating less :Q. I guess because I set stuff to begin turning red at 4 days (it gets redder until the due date)

You should make it do this (I don't know php, so this is in some odd pseudocode):

# Find the starting time of hte assignment, in seconds.
$start = time(date assigned);

# Find the ending time of the assignment, in seconds.
$end = time (date due);

# Find the total # of seconds allocated for the assignment.
$total_time = ($end - start);

# Find the number of seconds remaining
$left = $end - time(now);

# Find percent white to use
$percentwhite = $left/$total_time;

# Get the hex value of your white percentage
$color = hex($percentwhite * 255);

# Use the following color for the background of the cell:
"FF" , $color , $color;

This isn't optimized or anything, but I think it's be cooler than white, medium red, and bright red.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: notfred
You should make it do this (I don't know php, so this is in some odd pseudocode):
...
...
This isn't optimized or anything, but I think it's be cooler than white, medium red, and bright red.


Maybe... but som eassignments come 7 days ahead, and I want to start 3-4 days early (ideally), but on 2 month assignments i probably don't wnat to start more than 1-1.5 weeks ahead. Although i could set up a similar system for assignments longer than some threshold...
 

kt

Diamond Member
Apr 1, 2000
6,032
1,347
136
how about making it a multi-user capable? would be cool for other people to make use of your apps.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: kt
how about making it a multi-user capable? would be cool for other people to make use of your apps.

Done :). Right now the only other person I added hasn't created any assignments yet.

I also fixed the sort by columns so it actually works.

Todo: keep user/password in session so you don't have to keep typing the password, and make an interface to add users and classes and change passwords so the admin doesn't have to do that by hand