Archive for the ‘Code’ Category

Peekaboo Internet Explorer 7

February 13, 2009Matt 3 Comments »

I posted yesterday regarding a problem I was having with Internet Explorer 7 rendering some JavaScript controlled pop ups incorrectly in one of my current projects.
I ended up fixing it by applying a position: relative; and z-index: 100; to each <p> tag. Nothing below 100 would display the text.
It turns out its a variant of [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
read More »

JavaScript and IE Problem

February 12, 2009Matt 1 Comment »

IE and problem in the same sentence, not surprising is it?
I’m working on a project at the moment where I’ve come up against a rather frustrating problem in Internet Explorer. I have a series of pop ups on a particular page that are opened with JavaScript when help links are clicked. The JavaScript for them [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
read More »

Accessible CSS - Azimuth and Elevation

February 9, 2009Matt No Comments »

This morning, I came across this CSS property that I’ve not seen before whilst I was having a look at whats available in CSS for special devices, like screen readers.
CSS 2 introduced the azimuth CSS property which is effectively targetted at users browsing the web with screen readers. I’m not sure that any of the [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
read More »

Disabling Form Input

October 21, 2008Matt No Comments »

Since I don’t have much time today, but I think I should write something for you to enjoy, I’ve decided to explain how to disable the input in a X/HTML form.Disabling the input to a form using XHTML or HTML is actually really easy, but it’s not very well known.
All you need is one [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
read More »

Where Have I Been?

October 14, 2008Matt 1 Comment »

It’s been a while, and how I’ve missed you my poor, neglected blog and readers, it’s been so empty without you.
So what have I actually been doing for the past month? Yep, it’s been a month already! Or it would have been if I had waited two more days to write this, but I’m not [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
read More »

Computational Art Assignment

June 11, 2008Matt No Comments »

I had an assignment due on Monday for KKB210: Computational Arts 1, where I had to create 3 computational art works. This has kept me pretty busy over the past week or so, especially since I had another assignment due on Tuesday, just a 1500-1800 word essay fortunately, so it didn’t take up too much [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
read More »

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:

<a href="javascript:window.external.AddFavorite
('http://blog.stillaslife.com/code/bookmark-a-page-with-javascript/','Bookmark a Page With Javascript | Still As [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
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:

18.0 / 7.0
# This returns 2.571485714285716

18 / 7
# This returns 2

So what’s going on here? Well, this is an example of the two main number systems in Python, integers and floats.
A float [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
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 to [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
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 bite.
First [...]

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • TwitThis
  • Mixx
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
read More »