Archive for the ‘Code’ Category

Bookmark a Page With Javascript

June 3, 2008Matt No Comments »

I have been asked a few times how to add a bookmark link within a HTML page, so that people can just click the link and the website will be added to their bookmarks. This is pretty straight forward to do, here is the code you would need: This will create something like this: Bookmark [...]

read More »

Python Tutorial 3 – Integers and Floats

March 24, 2008Matt No Comments »

As you saw in the final section of the previous tutorial on numeric expressions in Python, Fractions, the following two expressions give different answers: So what’s going on here? Well, this is an example of the two main number systems in Python, integers and floats. A float can be distinguished from an integer because it [...]

read More »

Python Tutorial 2 – Numeric Expressions

March 18, 2008Matt 1 Comment »

Python’s interpreter can be used as a calculator quite easily. Of course, this is somewhat pointless since there are calculators built into most operating systems anyway. However, the numeric expressions that are built into Python become quite useful in general applications and are important to know. Before you can start learning Python, you will need [...]

read More »

Python Tutorial 1 – Getting Python

March 14, 2008Matt 1 Comment »

Python object-oriented programming language at uni in ITB001: Problem Solving and Programming, I figure what better way to solidify what I am learning than to write about it. Someone might find it useful as well. So if you see anything that is wrong, or anything like that, feel free to point it out, I won’t [...]

read More »

CSS Tables – Niceties

March 5, 2008Matt No Comments »

I am looking forward to release of Internet Explorer 8, and what will hopefully be a reasonably quick take up of it. In the myriad of new standards compliant features is CSS table support. I’ve used these countless times in Firefox, Safari and Opera, only to find that I have to completely rewrite the CSS, [...]

read More »

New and Fixed Things

February 20, 2008Matt No Comments »

Okay, as I mentioned before that I had fixed the margins, they are definitely fixed and working in everything now. I have also fixed the comment boxes so they are now aligned to the left rather than the centre as Tim suggested. I forgot to have a look at these since I am almost always [...]

read More »

WordPress 2.5 Demo

February 20, 2008Matt No Comments »

WordPress 2.5 is in it’s alpha stages at the moment and is looking quite interesting. One of the biggest changes is that the admin interface is getting a complete overhaul and is looking very nice indeed. Chris Johnston has setup a demo site where you can try it out. This may not be of interest [...]

read More »

More Template Fixes

February 16, 2008Matt 3 Comments »

I have fixed up the margins between the top of the sidebar and the top of the content so they now line up properly in Internet Explorer. They were fine in Firefox before and I don’t think this should have changed. However I can’t check at the moment since Firefox is refusing to load anything [...]

read More »

Adsense and Pages

February 15, 2008Matt 1 Comment »

On the old blog, I had Google Adsense ads appearing at the bottom of every post. This only worked on up to 3 posts per page as the code for it will only display up to 3 ads on a page. So on long pages, such as the archives, it often looked untidy, especially in [...]

read More »

Fixed Margins and Added Poll

February 13, 2008Matt No Comments »

Alrighty, I have fixed the heights of the margins as I mentioned so they match now. This makes me feel a lot better. I’ve also setup a poll, as you may have noticed, which is something I didn’t have on the old Blogger blog. I have used an excellent poll plugin for WordPress called WP-Polls. [...]

read More »