Textapox is catching
Look out for this new disease sweeping the children of the world. Symptoms include coloured spots on exposed areas of skin and uncontrollable giggling.

21 September 2009 |
||
Textapox is catchingLook out for this new disease sweeping the children of the world. Symptoms include coloured spots on exposed areas of skin and uncontrollable giggling.
|
||
16 September 2009 |
||
Python function is not callableHere’s a Python gotcha that got me. Here is my function to print out a range of sinusoidal values:
import math
def cycle(centre, range):
theta = 4.71
speed = 0.1
for i in range(0,80):
theta = theta + speed
value = centre + (range * math.sin(theta))
print value
I got the following error which confused the hell out of me: Traceback (most recent call last): File "cycle2.py", line 11, in Can you see it? It took me a while. I’d assigned a variable called range and then tried to call the range() function. I’d overloaded a built-in function. Duh! I just had to rename my variable and it was good. |
||
9 September 2009 |
||
Girls have more stuffI just want to say that women just have more stuff. Here is the state of our dressing table right now, you can just see my stuff in the corner there if you look closely but look at my wife’s stuff – handbags and hats and jewellery oh my! |
||
3 September 2009 |
||||||||||||||
More Spreadsheet TomfooleryI’m still messing around with my bookkeeping. Here is another nifty formula for OpenOffice Calc. I have a list of revenue and the dates that revenue was received like so:
I want to create a month-by-month summary of these figures. Here is the (rather complex) formula to make that happen: =SUMPRODUCT(A1:A5>=DATEVALUE("01 Jul 2009");A1:A5<DATEVALUE("01 Aug 2009");B1:B5)
That formula will give the total of all amounts for July. By repeating this for each month, you can get monthly summaries for the whole year. |
||||||||||||||
Powered by WordPress