Skip navigation.

I'll think of a good title later

Posts tagged with "php"

Me vs my to do list

, ,

My social secretary will tell you that unless something is written down I often struggle to remember it. For numerous reasons I am finding myself having to remember more & more things in my life at the moment which has prompted me to add the awesome power of a to do list to my PHP playground & I'm finding it really useful.

Way back when I was in school the common answer to the question, "what ya' doing?" was a flat "nothing". I spent so much time as a kid being bored out of my skull, so much so that I willed myself to live by the philosophy NEVER BE DOING NOTHING. Doing anything is better than doing nothing. & so it went, I just did anything that I could find to do.

I don't know when I stopped living to this code, but I can guess that it was probably sometime around the time I started full time work & was too shattered to find something to do.

As an extension to my former philosophy I want to try to do something everyday that makes life better, regardless of how small the change may be. Today I have ticked off sorting out a bathmat for the cold foot rest under my computer desk so I don't get chilly feet, explaining to my mum how to use her new central heating, changing the direct debit for my ISP & in a few minutes I will also cross off writing about my to do list.

The first thing that went onto my to do list was, "Sort out a to do list". After that I added all the little things that I keep meaning to get around to doing. A lot of the items added were (& continue to be) bugfixes or minor enhancements to my software, a lot of tasks will cut my spending/increase my income, save me time. 3 of my outstanding tasks are typing up 3 different books for Project Guttenberg, which in turn will help with another task - learn to touch type.

All items are grouped by status: 'In progress' at the top, 'Not started' in the middle then 'Complete' at the bottom. Having the in progress stuff at the top encourages me to complete projects before taking on new ones. I also like to see the stuff I've already done to make me feel better! However, I have yet to overcome my habit of pointlessly listing tasks that I have already completed. Within each category tasks are also ranked by priority (a simple number 1-10). Finally tasks are ranked by date added so tasks added a while a go gradually bubble up to the top so I can't forget about them.

Each task can have any number of steps & you can update the number of steps completed, only when the number of completed steps equals the total number of steps does the task get marked as complete.

The first few days I was using this list I found myself blitzing through loads of tasks really quickly, but now I have settled down after adding some pretty substantial to dos. I do find it frustrating how many tasks get stuck at 'In progress' because I'm relying on other people, but I suppose that was only to be expected.

Marvelous! That's another one off the list!

My Budget

, , ,

I needed a project to help me learn php & the result so far is: My Budget a site where you can record your income & outgoings. I started work on it in mid February & I've been extremely anal in using it to track every penny from the first of January onwards. I've got to the point where I've been using it without having to make any changes to the code for a number of weeks now so I am now going to declare it, "ready for use".

I'm sure a lot of people are feeling the pinch & I'm sure you've heard the phrase, "keep track of your budget" more than once. Up until last year I was totally oblivious about money, I had no idea about the cost of anything. I started keeping a track of my spending on a spreadsheet & found it really useful & I think it is a very worthwhile exercise. Just being aware of something is the first step to keeping it under control, you can't make an informed choice if you are not informed.

It's pretty simple so I haven't bothered with any instructions yet, but I will if anyone needs the help. Quite simply you record transactions: a date, an amount, notes if you want to & whether it is an income or an outgoing. Each transaction can be tagged (I've shamelessly duplicated the functionality of the tagging system used here at MyOpera), you can then view your total spending habits by month or by tag.

You can also set up regular transactions so you don't need to manually record the bills that are the same every month. I really struggled to come up with a form to easily specify the regularity of such payments but I believe I have come up with a pretty good solution.

It's been a fun project & it has certainly increased my respect for the Opera community devs who have a far more complex beast to deal with.

6ecbebe7bd63af0f3f94481e7182e0f7

,

Only the geeks will find this funny but...

I've recently started playing with php. I was having trouble trying to work out why my md5() hashed password script wasn't working. All the code was correct, the code to insert the data into the table matched the corresponding code to retrieve it again at login. Then I checked the table structure:

Password char(30) not null,


If I had an ounce of common sense I'd be dangerous.
December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31