Monday, May 25, 2009

Diving right into python.

This summer i am undertaking quite a big project, which, hopefully you will hear all about. A very small part of the project is to get the current day of the week. I decided to code it in python. After a few hours of self teaching i began coding. A bit of research on the net and many many failed attempts at syntax later:

#!/usr/bin/python
# Filename : date-to-day.py

import datetime
from datetime import date

now = datetime.datetime.now()
year = now.year
month = now.month
day = now.day
dayofweek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saterday', 'Sunday']
daytoday = dayofweek[date.weekday(date(year,month,day))]
print daytoday


As i couldn't find a solution for this i thought i would post mine here. =]

Python is actually very good.

Monday, May 18, 2009

Doom 1 - Retro Goodness!




Any of you old enough to remember Doom and DoomII will appreciate that the game (and its engine) were pretty groundbreaking and caused one of the biggest declines in employee productivity in the 1990's.

Anyhows, the source engine was hence released to the public. The Doom user community worked hard and the result is a much improved version of the game. For it to work though, you need to get a copy of the original WAD file, "Doom.wad". This contains all the game data and maps... etc. This is still available to buy from Ravensoft. However you can obtain a community made WAD file freeDoom.wad which will work just as well. Infact this engine supports all wad files, including Heretic and Hexen. (Both great games, i LOVED heretic.)

SO when you first load it up, you notice some obvious improvements. But the next step is to download the addons. Which make the game even better, as the computers of now can do much more than the computers the game was first designed to work on. This includes 3D models, lighting and high resolution textures. =0



Friday, May 08, 2009

Yay! working laptop

Okay so the story is this... Typical me, always wanting more so I went to put the best OS on my laptop (vista Ultimate 64bit) and totally forgot to back up the default factory settings and drivers so long story short my laptop didnt work :P well the OS did perfectly but not the ACER drivers, but now its all working fine with Vista 64bit as planned with nothing lost but some common sense.

Although to activate this I did have to fool Mircosoft into believing I was paying to my Copy of ultimate on no more than one machine only :) not that I would of put it on my desktop, my familys desktop e.t.c...

Sunday, May 03, 2009

FoodFail

I found this FAIL on the back of a food packet yesterday. So i captioned it with the lolbuilder at icanhazcheeseburger. Maybe failblog will like it.

Not much

iPhone finally dead. Really dead. Will never be alive again (I doubt anyway - think it needs a new logic board).
Not made of much is it?