Fallout 3 Freezes/Crashes – Possible Fix

December 20th, 2009 No comments

More than 2 cores in your machine? Play fallout 3? Then read on!

Ok, so one of my friends bought me Fallout 3 – Game of the Year Edition through Steam for my Christmas (the same one who bought me Fallout 3 Collectors Edition for my birthday last year interestingly enough) and I thought “cool, that would be good to pick away at over the holidays”. After I installed it through Steam I spent some time faffing around trying to enable the downloadable content (check the “Data Files” option on the launcher ;) I started a new game (lost all my old save games anyway).

Every time  I would get a few minutes in and the game would just freeze, I spent quite a while searching the internet and the possible things I considdered were:

  • Graphics drivers – Nope, update to date nVidia drivers for Windows 7
  • Windows 7 – Nope, this is reported to happen on XP, Vista, 2008 and 7
  • Background Changing – (Windows 7 feature which has messed up other games in the past) Nope, disabled it and it still froze
  • The ffdshow Audio/Video fix – (Add Fallout3.exe and FalloutLauncher.exe to the list of applications that ffdshow excludes), Nope

Then finally, after hours of searching and finding nothing I came across a blog post by Nicholas Head which nailed it!

The game engine has some issues with processors that have more than 2 cores. You can force the game to only use two of them and it will stop the freezing. I haven’t had it freeze once since I did this several days ago.

Open up the fallout.ini file in: My Documents\My Games\Fallout3
Find the line:

bUseThreadedAI=0

change it to:

bUseThreadedAI=1

Add another line after it and insert:

iNumHWThreads=2

This will limit the game to 2 cores and prevent the engine bug from causing the game to freeze.

I tried it and wow, the game has been running stable for hours since!

So, thank you Nicholas for posting that rather useful piece of information and good luck to all of you affected by this, enjoy you time roaming the Capital Wastelands!

5 Great Windows Application Replacements

September 27th, 2009 No comments

Today I was starting work on a new PHP project in Symfony on my netbook and realised that I was still using plain old notepad, the default windows task switcher and unknown files still showed that awful “Would you like to use the web to find out how to open this file?” dialog.

I usually fix these on my machines but I had neglected to do this on my netbook, and so I thought I would share a few really good applications for replacing things in Windows.

Notepad2 – Notepad

notepad2

I love a good IDE, Netbeans 6.7 for PHP/Android and Visual Studio 2008 + ReSharper for .NET (although it is getting painfully bad on performance these days), but sometimes you just want a plain old text editor. Notepad is good but still lacking in my book and one of the first things I was pointed to when I started my new job was Notepad 2, a free open-source Notepad replacement built on Scintilla which provides some much needed functionality such as syntax highlighting, code folding, line highlighting, line numbers and much more but it is also very compact and lightweight. Kai Liu who has contributed to the Notepad 2 source also has an extended version which among other things, installs Notepad 2 as the default text editor in Windows.

Making Unknown Files Open In Notepad / Notepad2

Ok, So we have a lightweight notepad replacement, how do we get rid of the annoying dialog that asks you what you want to do with unknown files? I have found that 9 times out of 10 I want to open a file like that in a text editor, otherwise I will choose the extension myself. The following registry change (copy into a text editor and save with .reg as the extension and then double click to run) fixes this by automatically opening unknown file extensions in notepad but will also allow you to use the normal open dialog box by right clicking and accessing it from the context menu.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Unknown\shell]
@="notepad"
[HKEY_CLASSES_ROOT\Unknown\shell\notepad]
@="Open with Notepad"

[HKEY_CLASSES_ROOT\Unknown\shell\notepad\command]
@="C:\\WINDOWS\\NOTEPAD.EXE %1"

image This will create a new action for unknown files on the context menu called “Open with Notepad” and then make it the default action. The normal Open menu is preserved (in XP SP3 and above) so you can still access the Open With dialog if you need to.

If you are using Notepad 2 described above and have it intercepting calls to Notepad, this will launch unknown files in Notepad 2 instead.

TerraCopy – Explorer Cut/Copy & Paste

image Most of us are no stranger to the rather indecisive estimates that the windows file transfer window can generate so why not replace it for something better? TerraCopy is a utility which can completely replace the Windows File Transfer UI and offers batch operations, queuing, pause / resume and error recovery plus it is faster to boot.

TerraCopy is free for personal use and requires a Pro license for commercial use costing 14.95 €.

VistaSwitcher – Task Switcher (Alt+Tab)

image Despite the wonderful new taskbar in Windows 7 which includes live preview thumbnails (brought in with Vista), my main way of getting between windows is alt+tab. Back in the days of Windows XP a very nifty alt+tab replacement called TaskSwitch XP was developed by NTWind Software. It brought some very nice features to the desktop including preview thumbnails, themes, customisable task list and context menu support.

An updated version of the software was released for Windows Vista and 7 called VistaSwitcher. It provides much the same functionality but with integrated Aero support which makes it look rather nice, even with Aero disabled as well as live window and desktop previews, multi-selection support for window organisation and the addition of 64-bit support. This is a truely wonderful app and is well worth a look for those who frequently use alt+tab and want to spruce it up a bit.

Console – Command Line Shell

image The next handy utility I want to share is an open source command line replacement called Console. Console is written in .NET and offers some significant enhancements over the standard shell including tabs, good select/copy/paste functionality, excellent configuration options, alpha transparency, and quite a bit more. If you use SSH or even just the command line a lot and get frustrated by the size limitations of the command prompt or simply want tabs, Console will be a breath of fresh air. A very nifty app indeed.

Launchy – Keystroke Launcher

image This isn’t so much a replacement as an addition since the Windows Vista/7 start menu can do something similar with the new start menu. Launchy presents you with a styled textbox into which you can type the name of a program or file and it will attempt to match against a user-configurable catalogue of start menu items, desktop icons and files on your computer. The default activation shortcut is alt+space however this can be changed through the options menu. It supports plug-ins which allow you to add more applications and websites to the catalogue and out of the box comes with plug-ins for Google, Wikipedia, Calculator and GCalc. If this isn’t enough to convince you and you happen to use linux as well as Windows (or even just Linux), then you will be pleased to hear that Launchy works on Linux too.

Launchy saves me so much time as I don’t have to trawl through my start menu looking for applications or sift through folders looking for an EXE, it takes care of all the searching for me in a sleek, minimalistic way.

Hopefully you will find some or all of the utilities I have talked about useful, they certainly make my life easier. I am interested to hear about other replacements that people use so if you have one to share please post a comment.

Links

Categories: Resources Tags:

Scottish Developers: Tayside DevDrinks

September 6th, 2009 No comments

Scottish Developers

This should have been posted and promoted earlier but things have been pretty hectic lately.

I am organising a wee get-together in Dundee this week for any developers who wish to attend, the details are as follows:

Where/When

Dundee: Wednesday, 9th September @ 19:30

The Event

The nights are drawing in, the days are getting colder so what better time to announce a gathering of like-minded souls in a warm friendly pub for a few drinks and some conversation. If you are in or around the Tayside area come along to Laings Bar in Dundee next week and join us for a something we hope to make a monthly event (in Dundee). No agenda, no speaker, no registration, just some drinks and chinwag.

This should have been advertised sooner but September sprung out of nowhere but we do look forward to seeing you there.

The Venue

Laings Bar, 8 Roseangle, Dundee, DD1 4LR

From: http://scottishdevelopers.com/2009/09/06/tayside-devdrinks/

So if you are interested, just come along to Laings Bar this coming Wednesday and have fun. If you get lost send me a message on Twitter :)

Categories: Events, Scottish Developers Tags:

Event Updates

August 17th, 2009 No comments

Couple of quick updates for you on the events front.

epicenter 2009: 26th – 28th August, Dublin

Just over a week to go until this Irish development conference. Already on the speakers list are those such as Craig Murphy, Alex Mackey, Barry Carr and Barry Dorrans and in addition I will be speaking on Selenium for the first time.

From the website (http://epicenter.ie):

“epicenter is three days of software excellence – it’s a conference, it’s an expo, it’s a place to hang out! It’s for software architects, CTO’s and developers of all knowledge and experience levels.

epicenter is organised by IrishDev.com – News, Events and Jobs for Irish Software Developers.

website development, design, effects, scripting and backend software is provided by Agile Technologies – expert in innovative Web Interfaces and bespoke SaaS development.”

Scottish Developers

Scottish DevelopersPlanning is already well under way for the next season of events and already we have some exciting talks coming up.

September

If you are in the Tayside area you may be interested in coming along for a couple of drinks on Wednesday 9th September. We will be meeting in Laings Bar at 7.30pm and all are welcome.

October

November

If you would like to do a talk for us, even if you have never spoken before, please feel free to drop us a line, we would love to hear from you.

Categories: Events, Scottish Developers Tags:

Unit Testing With The ASP.NET Cache

July 16th, 2009 3 comments

I have been doing some Test-After Development unit testing on an ASP.NET MVC app and hit code that uses the cache through HttpContext.Current.Cache (I bet @serialseb would just love that! :P ) which as you may know is a royal pain in the arse for getting at or mocking without a web server.

As most sane people do I binged (that just does not sound right!) for an answer to my problem and came across a few interesting things but the closest I came initially was a post from Phil Haacked on his HttpSimulator cache where someone mentioned that using HttpRuntime got around the issue. I tired, it failed and I went back to Bing and came up with a post on Scott Hanselman’s blog where he details a conversation about simply including System.Web along with System.Web.Caching in non-web applications. I was skeptical but people have noted success with this method so I tried it and what did I find, it sodding well worked!

Granted the articles I found are old but this is the first time I have tried to unit test the Cache before so this was quite useful.

In other news I have ordered a copy of Working Effectively with Legacy Code by Michael Feathers from Amazon after @chriscanal recommended it, looking forward to having a read.

Categories: .NET, ASP.NET, MVC, Unit Testing, Web Development Tags:

Class of 2009 Graduation Picture

July 8th, 2009 No comments

Just been looking through some of the graduation stuff from the other week and came across the class photo of those who also graduated as members of the BCS. This actually turned out quite well given that we were staring up at the sun while trying to look at the camera. Well done once more to the Applied Computing class of 2009, all the best in whatever you find yourself doing.

AC Graduation 2009

The full article can be found at: http://www.computing.dundee.ac.uk/newsandevents/newsdetail.asp?861

Categories: Life, University Tags:

The End (And Beginning Of) A Gamertag

July 6th, 2009 No comments

rockstarnorthThings have been changing in my life over the past 2 years and I felt it was time to close the last few doors to my teenage life as I move forward. After 6 years of further and higher education I have entered into my first full-time job with the great folks over at Rockstar North in Edinburgh. I am really looking forward to starting so I have my fingers crossed.

This prompted me to look back through my life and my online personality, reading old journal/blog posts and realising how much has changed in even such a short space of time. I used to use the internet handle or nickname “Syberius” which was entirely made up on the spot back during 2002, four years after I first found my way onto the internet. It has been used all over the place, on the PHP Code Gallery, my tag for UberNet and IGUK when I work with them, a domain name… the list goes on. An added irony is that in the new Star Wars film, there is a debate over whether or not Kirk says James ‘Tiberius’ or James ‘Syberius’ which I find amusing if a little strange that people obsess over these things.

So, while playing on the 360 this week between sorting out admin stuff and unpacking the flat (GTA 4 for anyone interested, wanted to complete it before I start work ;) ) I felt that the Xbox Live Gamertag needed to change, that I needed something newer and fresher. It took 4 hours, 5 Simpsons episodes and the Simpsons Movie to do it, not to mention a string of names that were already taken but my new Gamertag has been created!

I give you… ForbiddenBacon

Syberius RuneOk, so I changed my Gamertag, why write a post about it? Two reasons, if I am on your Xbox Live or GFW Live friends list then you may be wondering who ForbiddenBacon is, well now you know. Second so I can close this door in my own mind and say goodbye to the tag that served me well for 7 years.

So, I look forward to see you out there on Live, just hoping I get more time to play games once I start work but somehow I doubt it ;)

Categories: Gaming, Life, Xbox Live Tags:

Software Students: 6 Tips From A Graduate

June 25th, 2009 No comments

University of Dundee

Hard to believe that my 4 years of student life at the University of Dundee are coming to an end today. In some respects this has been an uphill struggle, in others it has been a wonderful, enjoyable and rewarding experience. I have made mistakes a long the way, I have learned important lessons and I have worked hard to better myself not only as a software engineer, but as a person throughout this experience.

I was planning on collating a number of resources and tit-bits of information and then posting them to the internal mailing list at university, however I changed my mind and decided to write this post making what I have to say open to all. I hope it is of use to someone as the advice I provide here comes from real, solid, “Been there, done that, got the t-shirt” experience.

Not all of it may be relevant to you but it has helped me. Use the links below to view each page (I apologise as it is rather long).

[Update 06/07/09] – Need more proof of how social networking can ruin you if used carelessly? – http://news.bbc.co.uk/1/hi/magazine/8136395.stm (see 5. Be social but be responsible)

Pages:

Categories: Life, Scottish Developers, University Tags:

Some Good News

June 21st, 2009 No comments

I have been quite busy over the last little while between moving flat, finishing university, looking for a job and other things and as such I have not had the time I would have liked (as well as the energy) to write a couple of the posts I have in mind although there are some drafts now kicking around I am working on.

In the mean time I have been invited to join the Scottish Developers committee and as of yesterday I have taken over the role of convener for the Dundee (well, soon to be Tayside) branch of the user group. I am very happy to be asked to fill this position and I look forward to getting started.

Thanks again to Colin and the rest of the committee for the opportunity.

Updates: jQuery Talks and Developer Days

March 9th, 2009 1 comment

Haven’t updated in a while so I figured 2 birds with 1 post.

jQuery Talks

I would like to say thank you to all of the people who voted for my jQuery Deep Dive session at both Developer Day Scotland and Developer Day Belfast, I will now be speaking at both events. I am still very surprised at how popular the sessions have been so far and I just hope that what I deliver on the days lives up to the expectations.

Developer Days

Ok, a bit of an update on these.

DDD Belfast 4th April 2009 in Belfast
Webhttp://developerdeveloperdeveloper.com/belfast/
StatusRegistration Open

WebDD ‘09 18th April 2009 in Reading
Webhttp://developerdeveloperdeveloper.com/webdd09/Default.aspx
Status: Registration Opens on Monday 30th March

DDD Scotland 2nd May 2009 in Glasgow
Webhttp://developerdayscotland.com/main/Default.aspx
StatusRegistration Open

DDD South West 23rd May 2009 in Somerset
Webhttp://www.dddsouthwest.com/Home/tabid/36/Default.aspx
StatusRegistration Open


The events are getting pretty close now, Belfast is in less than a month so if you plan on attending any of the above, get your registrations in! If you are attending then I hope to see you there :)

In addition, if you are on Twitter you may wish to follow

In other news…

My blog is bothering me. I like WordPress, it has some nifty features that make blogging easier (although I probably should use Live Writer more often) however I still want to roll my own. Why?

There are a number of reasons:

  1. Because I can (not a good one, but still top of the list)
  2. Because I want to use ASP.NET MVC to build a blog engine
  3. Because I want to demonstrate various technologies all working together
  4. Because I said I would build one

The problem is time, I still maintain there are never enough hours in the day. Anyway, I have a couple more things to look into and then I will most likely start work. I want it to be an exercise in blogging because I don’t really blog as much as I should on some of my discoveries. Just something else to keep an eye out for.

And finally

Graduation is getting ever closer and the date is now set. On 25th of June 2009 I will graduate with a BSc (Hons) in Applied Computing. On June 26th, the first day of the rest of my life will begin (Actually, no, that is a lie, June 26th will most likely be a recovery day from the alcohol consumption of June 25th). I think I should go spin the job wheel and see what I can find ;)

WordPress Loves AJAX