Archive for the ‘Website’ Category

WordPress updates and random code snippet

Saturday, February 13th, 2010

I’ve Just updated the website from 2.8.4 to 2.9.1 and updated all the plug-ins too. I also updated the contact page with some links to public profiles.

People have been poking me to update this website more regularly so I’m trying to think of things to write about. Projects have kind of gone on hold again since I’ve moved and started work, will hopefully get on with some soon. In the meantime I’m considering just writing about some general programming tips/tricks/oddities I’ve come across.

In light of that here’s a random code snippet I read recently. Also I want to test this new formatting plug-in I installed. ;)

1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
int main()
{
     int x = 10;
     while( x-->0 ) // x goes to 0
     {
       printf("%d ", x);
     }
 
}
Output: 9 8 7 6 5 4 3 2 1 0

It’s a little neat way of using “-->” as a “go down to” operator. In reality it’s not a single operator obviously, it’s just syntactically equivalent to ((x--) > 0). Pretty nice all the same though. :)

Anyway that’s all for now. Will try to think of something else (possibly less random) to post soon.

Updated website design

Thursday, October 15th, 2009

The (more-or-less) final design is up! There may be some small changes with positioning, sizes and fonts of elements to differentiate it more from the default wordpress theme but generally I’m quite happy with it as it is.

Incidentally I think Inkscape is a great rool for coming up with website designs. Check it out!

Hold on folks

Friday, October 9th, 2009

Wow, been a long time since the last update. Sorry! A quick update: Finished uni and got a job offer. There, now you’re up to speed. (whoever you are…)

Anyway I’m going to be writing a new theme and revamping the site a bit while I’ve got some free time before the new job starts.

Watch this space.

Oops, I broke the site

Saturday, February 14th, 2009

Note to self: From now on do not use the automatic update feature of WordPress.

Doing this broke my theme and thus my site, as it decided to overwrite it with the default one. My custom theme was a heavily modified version of the default and I never bothered making a new directory for it so I guess it was entirely my fault. All the background code and design changes I had made meant that the “updated” theme files broke the layout entirely and resulted in some sort of strange love-child between this site and the default WordPress theme. Luckily the nice people at my webhost company had an automatic backup from two days ago so they found my theme and gave it back to me. Thank you Register1! *kisses*

To be honest I’ve been thinking about changing my theme for a while now anyway, there are a few design problems with it. I’ve tried tweaking it a lot to make it so the text is more readable on a blueish background but I can never get a high contrast without changing the font colour to white, which I am not going to do. I’m thinking of incorporating more design elements from my “Vote Campaign” design that I made a while back (it’s on my projects page) seeing as he never actually used it in the end. Specifically I want to change the colour scheme so the main text is on a white background, though more changes may be included. Only problem is that I should probably remove the “Vote Campaign” design from my portfolio if I make it too similar to this site!

Anyway, we’ll see what happens. I’ll likely just work in the background on the next design until I’m happy enough with it to take the plunge and change over. This one works for now and I don’t exactly want to break anything.

Anything more that is.

-Thomas

Webhost transfer

Saturday, September 13th, 2008

Well, my previous hosting ran out and I decided this would be a good time to make the move to another host. This was mainly because the old one was based in the US and I was noticing considerable delays when I requested pages, I am now with a UK based webhost and it seems much faster!

Unfortunately this transfer took a while (approximately 3 weeks due to complications) and is why I haven’t updated the blog in quite some time. I’ve been kind of slacking on projects too because of this.

But at least it’s all over with now!

In other news, I’ll be going back to uni in a week or so to start up my MSc course in Computer Security. Should be fun!

-Thomas

Website updates

Tuesday, August 19th, 2008

I’ve been working on this website a bit, mainly on the design side. I’ve been adjusting the colours so that the text is a bit more readable. The layout of some pages has also been changed to utilize the sidebar area, previously the archive/blog navigation was placed at the bottom of the page due to the way the original WordPress them was laid out. I also intend to use the sidebar on standard pages to make the pages look a bit more interesting, though how I will do this isn’t certain yet.

One design problem I’ve encountered is that the colours of the page look subtly different between Firefox and Internet Explorer, I have a feeling this is something to do with the PNG images that I’ve been using and the browsers using different rendering methods for it.

Here is a comparison:

Internet Explorer

Internet Explorer

Firefox

Firefox

I’ve also just noticed that the layout is also subtly different, but it doesn’t look broken in either browser so I’m more concerned about the inconsistent colours, especially in IE where the background gradient doesn’t smoothly go into the final background colour.

Update

Problem solved! It turns out that other people have also noticed this problem. The problem is that PNG files have gamma correction and store a value in the file to do this, it actually sounds pretty clever but it’s a problem for web-safe colours. With the proper tool this value can be removed to draw the PNG without gamma correction, thus making the colours constant between browsers. More information can be found here.

-Thomas