Archive for September, 2007

Blogroll updates

Saturday, September 29th, 2007 | Life

I’ve finally made some changes to my blogroll. With Raby getting his blog started I decided it was finally time to make some changes. So I took a few blogs off that I either don’t read any more or people simply weren’t posting on them anymore which annoys me as the way I read blogs is to go to my blog roll, hold ctrl and click every link. I’ve also added a few more blogs.

In the face of adversity

Friday, September 28th, 2007 | Humanism

The A-Soc intro meeting having been a mixed result, I couldn’t really help thinking about the poor turnout. Sure we had an amazing conversation rate and now have enough members to constitute a society as well as a bit cash too but it was a struggle to even get what we did. I put my faith in a better turnout for the lunch time talk on Thursday, after all, people will have gone home by 8pm whereas they can spare an hour of their day.

Turns out, they can’t.

We got 5 people, including myself and Norm. Maybe there was a lack of promotion. Though it did go out to the mailing list, was mentioned at the intro events, put it on LUU Online and handed two dozen flyers out (that really isn’t that much to be fair). Maybe people had lectures – Sarann and Jack both spoke to me later saying they couldn’t come because of lectures and several people gave the same reason on Facebook.

The fact could well be though, that nobody cares. Atheism is a magnet for apathy. Maybe it’s time to finally accept Jesus Christ as our lord and saviour.

Peripherals shopping

Friday, September 28th, 2007 | Tech

My mouse having given up on my recently I’ve ordered a new set of peripherals. It started with my getting sick and tired of not being able to play WoW in the dark so I was umming and arring (what, those are real verbs!) over getting a backlit keyboard. I narrowed it down to the Logitech G15 or the Microsoft Razer Reclusa.

So when my house packed up on me I decided I might as well get a decent one and replace my keyboard while I was at it. In the end I went with the Reclusa as although the G15 has the cool LCD screen and better macro programming, the Reclusa is a bit more comfortable and better suited to non-gaming applications. Add to that the Microsoft Comfort Optical Mouse 3000 and I have a nicely branded package :D. I’m interested to see if the 4-way scrolling feature is any use. Probably not but I don’t feel that detracts from it’s coolness.

Finally, I also threw in a Logitech 2.4Ghz Cordpress Presenter for when I am giving speeches and presentations (which with A-Soc’s timetable this year is a lot!).

Sometimes you just want to cry

Wednesday, September 26th, 2007 | Humanism

Hmm, I need to blog more about this (and life in general) in length. 1:30am when I need to be up at a reasonable time for uni is not the time to it. But I wish share my preliminary thoughts with you.

Tonight was the A-Soc launch meeting for this academic year. Basically, nobody turned up.

That’s not really true. But turnout was poor. At the Film Making Soc intro meeting last year we got like 100 people. You can put the A-Soc turn out down to the fact the meeting wasn’t until 8pm, the fact that we were only in the Riley Smith Hall for one day plugging the society or the fact that nobody wants to be part of A-Soc, any way you look at it, I was ready to cry at 8:15 when only a handful of people had turned up.

We ended up with a little over a dozen people at the meeting, a far cry from what I was expecting and indeed what most other societies get. Never the less the talk was delivered in full. And people signed up. We got an amazing conversation rate. Something like 86% of the non-members at the meeting signed up to become paid members. Given the turnout that isn’t that many members but it is amazing conversation rate – given normally you would expect sometime like 10-20% at best.

We ended up in the pub with the usual suspects and a few new members as well. Hopefully we will pick some more up on Thursday and a few more in the coming weeks too. Hopefully we will pick up enough to actually make it worth the effort that goes in.

Playing with Vista

Friday, September 21st, 2007 | Tech

My sister has just got a new computer so trying to get a few things up and running on it for her I got playing around with Vista.

It’s an interesting experience. I realise that a lot of the problems caused are just due to the fact that I’ve never used Vista before – for example trying to find my way around the computer settings would take equally as long if I was using any version of Windows for the first time. Also, we are a species, generally don’t like change. So I tried to bare these in mind when complaining.

First of all, Windows prompts you for everything. It’s not enough to say that you want to manage the user accounts on the system. Once you’ve tried to go to that screen you then have to tell Windows you give it permission to show you that screen. While I’m sure this has security advances, I think the fact I have just clicked “manage user accounts” indicates I would like to manage user accounts.

Secondly, when saving a file from the internet you are given what is basically a small web browser rather than the standard Windows file save dialog. You get an address bar with the C:\Wherever as you would expect. You do not however get any kind of folder navigation and if you click the drop down arrow to find the other locations on your computer you will in fact find it is actually just a web address bar and will be presented with your most recent URLs. How quite you save a file to http://www.google.co.uk/ I don’t know but that appears to be what Windows is suggesting. It then moans if you try it and you need to switch to the folder browsing mode instead.

Things generally seem to take a bit longer. I can’t just hit control alt delete and access my task manager. I’m then taken to a sub-menu where it thinks I want to log off where I then have to select task manager. The start menu no longer appears nicely spaced out across the screen, it’s now all stuffed into a corner with an expanding tree still menu.

That said there are some nice touches to it. When alt tab’ing through the windows the desktop is now included in the list so you can easily hide all your programs to get access to your desktop icons. Also if you hover over anything on your task bar it will show you a thumbnail of the window.

Mysterious mailboxes

Friday, September 21st, 2007 | Tech

What address was this email sent to?

It sounds like a simple question but one I can’t find the answer to. If someone knows how then please let me know.

I have an email sitting in my inbox which I myself sent out from the A-Soc email account an hour ago. It’s To: address is sent back to the A-Soc email account and all the addresses are done via blank carbon copy. Therefore there is no record in the headers as to which address the email is sent.

So later on my mail client goes and checks all my mailboxes, downloads the email and puts them into my inbox. But doesn’t say which account it got the email from. It simply expects that information to be obtained from the email headers. Thunderbird and Outlook Express are both guilty of it. You would think in the days of such frequent phishing scams that much up emails to mail boxes would be a pretty standard feature. Apparently not.

Hellos and goodbyes

Thursday, September 20th, 2007 | Life

No more Mental Mondays? You have to being joking! This is so much more of an injustice than the Iraq war! We should be out on the streets protesting this, it’s an outrage. I loved that night, it was never a bad atmosphere, everyone left peacefully, what was the problem?

Still while it’s goodbye to Mental Mondays, it is hello to a healthier looking bank balance. Having got paid today I checked my statement to find I was actually in credit! By around £4 but I don’t think that is too bad. I have my credit card to come out of what which is quite a bit but less than half my student loan which has taken the balance of my other account over £1,000. While it doesn’t look like I’m going to be able to move £1,000 to my savings account as hoped I should still have some funds free to put away.

Fresher’s week

Thursday, September 20th, 2007 | Life

It’s been a while since I’ve blogged – 6 days to be exact. I really haven’t felt up to blogging and while I’m not really crazy about it still I feel I probably should before fresher’s week fades into a distant memory.

It’s been a pretty disappointing week really, not feeling up to it I haven’t really been out all week. A-Soc was at the societies fair on Tuesday but all of our other fresher’s week plans fell apart due to me taking my finger of the pulse for the week previous. We signed up a few new members but no where near enough, all in all it wasn’t the most successful day.

Yesterday I headed into uni to attend a talk by David Robertson addresses the issues he finds with Richard Dawkins’ The God Delusion. In the evening I had a meeting with Carl in The Old Bar.

Generally, I’ve just spent the week trying to catch up on a lot of things I should have been doing last week such as replying to emails, chasing people up (because most people are this slack all of the time) and ticking things off my to-do list. I have a School of Computing meeting later today then I’m going home tomorrow. I’ll be glad when this week is over.

Getting started with IIS part 2

Sunday, September 16th, 2007 | Life, Tech

Make sure you read part I before enbarking on this second entry. For those of you who have read part I and are wondering what do I do next? Read on…

Virtual Directories

That is everything you need to know for customising the root directory. But that’s just the properties options. Next we are going to create a directory so that the folder ‘work’ will be mapped to a completely different directory. First close the properties box and bring to focus the Management Console if it isn’t already. Then find the root icon again. Now right click it and hover over the new > link. This should bring up a new link with an option that says ‘virtual directory.’ Click it and wait for the wizard to open.

Click next to skip past the welcome screen and you will be greeted with a box asking you to select an alias. This is simply a name for the directory which will be used. In this example we are using ‘work’ so write work into the box and click next. This means that it will be accessed from http://locahost/work. Next we are asked for a directory. If this is going to be a redirect then just add any directory and change it later. However if say you wanted to map this to My Documents then click browse and find My Documents. Click it and then click OK. The path will then be entered into the box for you.

Now click next again and you will be brought to the permissions screen. This is where you set the permissions and what can happen. Normally you can just click next again to pass it but this time check the box which says browse. Now click next again and finally click the finish button on the next screen to close the wizard. The directory has been created and can be seen on the list as a branch of ‘root.’

Now its time to test the new directory – open up your browser and point it to http://localhost/work so that the page loads up. This should, if you have done it correctly, bring up a list of all the files in you’re my Documents folder. Congratulations if it worked you have a virtual directory. If not then make sure you can find the directory under root and make sure the path to My Documents is correct.

Next go back to the Management Console and click root on the left. This should bring up a list of all the files and virtual directories on the right in the big box. In this box you should now find ‘work’ next to a little grey box icon. Right click on it and click properties. This will bring up a properties box named after the virtual directory.

The default selected tab on here is Virtual Directory. This basically does the same job as the Home Directory tab when we had the properties page for root on screen. The other tabs also match up to the tabs on the root properties although there are not as many as you do not have the settings for the entire site on top of the directory settings like you do when you are editing the properties of the root site.

Redirects

Finally I want to cover one more thing – setting up a virtual directory to do a redirect. To do this select Virtual Directory from the list of tabs in the properties for ‘work’ and find ‘a redirect to a URL’ from the list of bullet options at the top. Click this and all the directory information disappears to make way for redirect information.

The top box is where you enter a URL for it to redirect to. This can be a virtual directory on your computer although you cannot redirect it straight to a file. So if you wanted to link it to something in your unzipped folder on your hard drive you would have to set up a virtual directory which is set to your unzipped folder.

Here is my example. I have my directory http://localhost/work/ and the redirection URL I have entered is http://www.mworld.us/entertainment/fake.asp. If I enter this URL and don’t tick any boxes, when I enter in the address to my directory it will be replaced in the address bar by the direct URL which will go to the exact address I entered – and in this case bring up a 404 error page seen as the address is not real. The same happens if I have the box ticked saying ‘the exact URL entered above.’

However if I tick the box ‘a directory below this one’ the directory will remain in the will remain in the address bar as if it is the original directory. So I could reduce the address of http://localhost/files/folders/stuff/complext/somefile.php? variable1=somevalue&variable2=othervalue to http://localhost/somefile and it would display the same file but users would see http://localhost/somefile in their browsers.

The final tick box is ‘a permanent redirect for this resource,’ Normally redirects such as the above are temporary as the file is still in the other location and you are just masking it However if the file has moved and you want to set up a redirect to another location so your users can find it, that is when you tick the box to say – never come back to this redirect address, always use the address its redirecting to.

Final Tasks

Right, that’s done. If you don’t want that directory hanging around any more then close the properties window if it is still active and find the directory in the list in the Management Console. Then right click its name and click delete to remove it.

There is one more important thing which you will probably use when using Internet Information services. That is stopping and starting your website. If you click root again in the tree view on the left you will notice three black buttons at the top become click able. These allow you to stop, start and pause your web server. The web server only works when it is running. So if you don’t want it running then click stop. Click start again when you want to reactivate it. This is useful when your server stops delivery pages because it’s moaning of ‘heavy traffic.’ If this is the case click stop, pause for a second or two then click start again.

Conclusion

Hopefully this should get you started with the basics of internet information services. There is lots of fun to be had experimenting and playing about with the different settings so my advice is just have fun and see what you can do.

Getting started with IIS part 1

Sunday, September 16th, 2007 | Life, Tech

Internet Information Services is by far the most popular server for Windows; and not without good reason. Personally I do not know what the people who recon Apache is more configurable are on about. They should really take a look at the properties page of a website on IIS. But complaining about them is another story; we are fear to get to grips with IIS.

For those of you with Windows Server 2003 you will have IIS 6.0. However seen as anyone with Windows Server 2003 will know that they are doing anyway and most users will have Windows XP or 2000, I am going to use IIS 5.1 as my model. This should cover most versions fine anyway as the interface changes have not been radical to the best of my knowledge.

Introduction

The key to management of IIS is the Management Console. This will have a toolbar along the top, a tree view on the left and a files list on the right at the bottom which is the main section. As standard when you open it in the tree view you get Internet Information Servers with the name of your computer in a branch. In a branch of your local computer you will then have Web Sites, below that FTP sites if you have added that on although it’s not installed as default and finally Default SMTP Virtual Server.

If you don’t see this then click the box with the plus in on the left of them to expand them so that you can. The next thing to do is to do the same so you can see a list of your websites. There should only be one unless you’re running a Windows 2000 Server. The one that does exist is called root. This is your default website so let’s start configuring it to your settings. Right click on it and click properties.

Customising

This will bring up the properties box with root properties at the top and no less than eight different tabs full of settings for you to configure the website. The first section of the already selected ‘website’ tab is how the site is identified. Leave the description as root. As next one, IP addresses allows you to specify different IP addresses for different sites although one you will only have one IP address most likely and two all IP addresses go to the root folder by default anyway. So seen as we do not have multiple websites this is not a problem.

The connections box is something that can be left alone. Although if you are having problems with time outs and pages not loading you may want to play about with the seconds before timeout. Below that is the box which enables server logging. I always find these useful and use the standard W3C format to log activity in a file.

Next up click the ‘ISAPI Filters’ tab. You will probably end up with a blank list with a few buttons. This is where you can install, enable and disable ISAPI filters. An ISAPI filter is a program that responds to events during the processing of an HTTP request. In other words special executable scripts that do things when a page is requested. An example of this is PHP although there are other ways to use PHP. But as an example, when a page is requested the ISAPI filter responds and sorts out the PHP code delivering HTML to the user.

Next click the ‘home directory’ tab. This gives information on where the files are on your computer. The top box gives you three options about where the files are. Even the directory should lead to a folder on this computer, the directory should lead to a folder on a network computer or it should redirect to a different address. The first two allow you to choose a file path, the first starting with drive:\ and the second starting with a network path.

These first two options also have tick boxes about what can be run and what cannot. Read just allows users to access and view files so keep this one ticked. Log visits and index this resource should remain at their default. Directory browsing means that users get a list of the files in the directory which they can click on to visit. Sometimes this is useful but if you don’t want visitors getting a full list of all the files then don’t tick it. Finally write allows files such as text files, databases, or anything else you want scripts to be able to add data to, to be changed.

Generally the application settings below this can be ignored too. The only one you may want to change is the application permissions allowing you to disable all scripts or allow scripts and executables. Or have a happy mix between. I always leave this at default although if you want to run some executables then you may want to disable them or if users can upload scripts to this directory you may want to disable this.

Next up is the ‘documents’ tab. This one controls the list of documents that are delivered as the default document of a folder if no file name is specified. You can add as many different possible file names as you want to this box by clicking add and typing the file name including the extension in such as home.html. You then order them as you want as the higher they are the higher priority they have. A have several in mine:

Index.asp
Index.php
Index.htm
Default.asp
Default.php
Default.htm
Index.html
Default.html
Iisstart.asp

This enables me to use all the standard file names for different sites and the homepage will still be delivered as the default document. Iisstart.asp is a default one added in by IIS as if no other documents are present you will be taken to an introduction page when you first point your browser to IIS before you have set it up. You can remove that one if you wish.

The other option under this tab is document footer. This enables you to have a footer document served up at the bottom of every page. This may be useful say for a free web hosting company who wishes to add an advert or link to their homepage to the bottom of every page. Or even if you wanted to include a navigation link but didn’t want to have to update every page when you added or changed a link.

We are getting deeper now and beyond the standard options you are likely to use. But I will give a quick overview of what else can be done too in the properties window. The next tab is ‘directory security.’ This enables you to have secure communications, restrict websites and IP addresses and others.

The ‘HTTP Headers’ allows you to set how often pages expire. If your content is only updated say every 5 minutes or for instance if you only want new messages posted in a guest book to be updated every 5 minutes then you can set it so pages in this directory are only refreshed every 5 minutes. A new page will be generated every 5 minutes and this version will be delivered from the cache until the next update.

‘Custom errors’ allow you to direct users to different pages depending on what error happens. For example if you wanted to send them to a personalised error page when a page cannot be found with a dancing Jesus saying “this page does not exist’ then you would click 404 and then click edit properties. You could then choose the custom file.

Finally ‘Server Extensions’ allows you to enable use of authoring such as Front Page change version control and performance and specify settings for things such as emails and security settings. Luckily if you get stuck there is a help button at the bottom of the properties window ;).