Scottish Developers

It’s good to be back organising events again, things have been rather slow of late but we are starting to get the wheels in motion and I have just sent out my first newsletter as Chairman of Scottish Developers. There are a couple of things on the horizon event wise and we are working on getting more organised.

What’s new in ASP.NET MVC 2.0 & 3.0

Note: The session is now full and a waitlist is in operation, if you are interested, register for the event and you will be notified if a ticket becomes available.

I will be delivering this talk in January at Glasgow Caledonian University as the first of our event next year. I delivered the initial version of this talk at DDD Southwest last year in Bristol and have since revised it to include the new features being introduced in ASP.NET MVC 3.0.

Topics covered include (but not limited to)

  • Razor
  • Model-Validator Providers
  • Optional URL Parameters
  • Template / HTML Helper improvements
  • Improved Dependency Injection / Inversion of Control integration
  • NuGet Package Manager
  • Additions and updates to MVC Attributes
  • Visual Studio integration improvements
  • Breaking changes from MVC 1.0/2.0
  • Pros and cons to MVC
  • To upgrade or not to upgrade (or simply, Advice)

I will also be starting a new blog series focusing on the new features of ASP.NET MVC in short, bite-sized posts. In addition, this talk has been submitted to DDD 9 (not that I am in anyway suggestion you should vote for it ;) ).

We are meeting in Room M402 on the 4th floor of the George Moore Building at Glasgow Caledonian University, Cowcaddens Road, Glasgow, G4 0BA.

After the meeting we normally retire to the back bar at Waxy O’Connor’s

DeveloperDeveloperDeveloper! Day 9 (DDD 9)

The jewel in the crown of the DDD calendar, the (roughly) annual national conference held at Microsoft’s campus in Reading is rapidly approaching. Session voting is currently open so get your votes in as the voting period closes on Christmas Eve (24th December).

DDD, now into it’s 9th incarnation, has a strong history of fantastic speakers and excellent talks, this year is shaping up to be no different with talks submitted by everyone from community veterans to DDD newcomers. Having organised DDD Scotland last year along side Colin Mackay and Craig Murphy I know how much goes into making one of these events happen and I once more take my hat off to Craig, Phil Winstanley (and his faithful servant Dave Sussman), Ian Cooper and Zi Makki for the amazing work and dedication they put into making DDD happen.

Session voting is currently open however it closes at midnight tonight so this is your last chance to have your say! Head over to the DDD 9 site now to cast your votes.

Registration for the big day opens on January 4th at 13:37 and tickets will go fast so be ready. The hashtag on the day will be #ddd9.

DeveloperDeveloperDeveloper! Day Scotland 2011 (DDD Scotland 2011)

Planning is well under way for next year’s DDD Scotland which will be held at the usual venue, Glasgow Caledonian University, on Saturday 7th May 2011. We are in the process of putting the website live and the call of speakers will be going out very soon so get those abstracts and bios ready!

Putting on an event like DDD Scotland needs cold hard cash so we can keep the event free and open to all and so we are asking for companies to come forward again this year and put their hands in their pockets for us. DDD Scotland is a prime opportunity to get your brand in front of around 200 industry professionals and with a number of sponsorship options available, we can help your company reach out to a very active and passionate development community.

If you are interested, please get in touch by contacting us at support [at] scottishdevelopers [dot] com.

For more information on Scottish Developers and for the latest news, events and job openings from across Scotland check out http://www.scottishdevelopers.com.

It’s been an eventful year and I can already see that 2011 will be even busier, I think a retrospective post is in order after Christmas.

Merry Christmas everyone, have a great time and don’t let the cold weather get you down too much ;)

 

Update: Jarek has pointed out that the solution presented won’t be necessary in the final version which is good news.

Update: (18/04/11): This is no longer required as of the latest NLog 2.0 nightly build, see http://nlog-project.org/2011/04/14/simplifying-nlog-extended-dll-usage.html for more details!

I recently upgraded a web application to use NLog 2.0 beta 1 (from 1.0 refresh) and part of my layout makes use of ${aspnet-request} in order to get things like IP and request URL. After upgrading, the application refused to start and would throw the following exception.

LayoutRenderer cannot be found: ‘aspnet-request’
at NLog.Config.Factory`2.CreateInstance(String name) in c:\NLogBuild\src\NLog\Config\Factory.cs:line 170
at NLog.Layouts.LayoutParser.ParseLayoutRenderer(ConfigurationItemFactory configurationItemFactory, Tokenizer sr) in c:\NLogBuild\src\NLog\Layouts\LayoutParser.cs:line 210
at NLog.Layouts.LayoutParser.CompileLayout(ConfigurationItemFactory configurationItemFactory, Tokenizer sr, Boolean isNested, String& text) in c:\NLogBuild\src\NLog\Layouts\LayoutParser.cs:line 78
at NLog.Layouts.SimpleLayout.set_Text(String value) in c:\NLogBuild\src\NLog\Layouts\SimpleLayout.cs:line 113

Now one of the changes in NLog 2.0 is that a number of layout renderers have been moved to NLog.Extended.dll, and I had made sure that my application referenced the new DLL as well as NLog.dll. When I ran the application I could confirm that both DLLs were present and loaded any yet my application still crashed out.

I posted this problem on the NLog Forums and while someone else is having the same problem, I never got a solid answer from the post. Today, 2 weeks later, I was perusing the forums just in case there were others reporting this problem and I came across a post where someone was describing similar issues, amongst the replies was a solution from Jarek Kowalski, the creator of NLog. Jarek points out that to use the layout renderers in NLog.Extended you need to add a few lines to your NLog config.

<nlog>
  <extensions>
    <add assembly="NLog.Extended" />
  </extensions>
  ...
</nlog>

You also need to make sure that NLog.Extended.dll is in the same folder as NLog.dll.

Once I saw this it made perfect sense but I never saw this anywhere in the documentation relating to changes in NLog 2.0. I added the snippet to my application’s config file and I was once again able to use ${aspnet-request}.

Happy logging

 

The biggest reason I stopped using RSS feeds and went back to trawling sites by hand was simply because RSS feeds are so hard to manage, even with a good RSS reader. If you miss even a day of reading you come back to an inbox with anywhere from 50 to a few hundred unread items depending on the number of sites you follow. For someone who reads mainly during a lunch break such as myself, working my way through old news before being able to focus on ‘new’ news became too much of an annoyance. Once Twitter came on the scene I found it was easier to get my news in the form of tweets and then filter them using a client like TweetDeck and this still works really well for me.

I tried Google Reader but it reminded me too much of all the other RSS readers and clients out there except I accessed it through a web browser rather than a desktop application. Don’t get me wrong, Google Reader has some really wonderful features that make RSS easier to deal with but it still didn’t present it to me in such a way that I enjoyed reading, it was still a chore and at the end of the day one that required management.

A couple of months ago after looking at the list of extensions for Chrome I came across a plugin called “Feedly” which claimed “Feedly organizes your favorite sources in a magazine-like start page.”, that sounded like it was worth a look. After installing, I very quickly realised that the Feedly plugin only acts as a gateway to the Feedly website which is where all the real action takes place. It is worth noting at this time that Feedly only supports Google Chrome and Firefox however there are plans in the works to break it out and make it available on other platforms including iPhone.

On the surface Feedly is a better, friendlier, more manageable interface for Google Reader (which is a better, friendlier, more manageable interface for reading RSS feeds) and is becoming a mash-up of social networking sites and RSS. Feedly doesn’t take the usual “list” approach to displaying feeds, instead it provides a more “magazine style” layout for your news items, showing pictures in the summaries if the item contains one or picking out featured videos for you. Through the use of non-obtrusive AJAX controls you can dismiss any item as read (by clicking on the ‘x’ beside it), read any item inline if the RSS feed providing it actually gives you the full thing or, if it doesnt, display an in-page preview of the article on the original website meaning you never have to leave Feedly.

The UI AJAXiness doesn’t stop there, while looking at an individual news item you can choose to post it to your favourite social networking sites such as Twitter, Buzz or Facebook, you can “share” it which essentially says you liked it and others might to (other Feedly users for example) or you can even save it for later which essentially is the same as ‘Star’ in Google Reader.

Granted, Reader can provide a lot of this too and for the most part it is rather intuitive, but using Google Reader reminds me of ploughing through an overflowing email inbox that always seems to have an “Unread” count that goes up rather than down no matter how much you read. This is where Feedly (in my book anyway) gets it right. Instead of watching how many more unread items you have to go, you can simply refresh your current view and any “read” items are replaced with new content. Feedly will always try to display the most recent items first (otherwise it would be a bit pointless) but once those start to run out it can work through your backlog of items.

This is an application which can cater for  a very large portion of users by providing a number of ways to view content.

  • Cover
    This is good as a browser home/start page since it provides columns filled with varied content and can be a good way to kick off your browsing
  • Digest
    Provides more of a breakdown of your feeds and categories, picking out featured content and displaying a number of items from each of your categories while providing useful information on the right hand side (such as read/unread counts)
  • Latest
    This is for the list lovers and the people who want to see their feed items in chronological order without any of the fancy shenanigans.
    Clicking on each item brings up the full version in-line so you get the best of both worlds.
  • Buzz
    Taps in to your Google Buzz account to show you what other people  you follow have been “buzzing” about. Not found this overly useful so far but then I have Gmail and Feedly open side by side most of the day.
  • Popular
    As you may expect this shows you popular articles on the net that other people are reading. This is similar to the way Google Reader recommends feeds for you and tries to complement the types of feeds you read.
  • Categories
    You can view each of your categories on it’s own which then breaks down items by their feeds as well as providing recommendations on the right hand side.
  • At A Glance
    A breakdown of your feeds and categories with unread counts
  • Karma
    This is an interesting idea, if you are logged into Twitter or provide your Twitter name, Feedly will determine karma based on
    clicks and retweets. So if you have shared an article and provide /cc @feedly in the tweet, Feedly can then track your tweet and determine how many people click the link and how many people retweet it. Not sure of the practical applications but the idea is nice.
  • Saved, Shared and History
    Pretty standard options for looking up items you have saved for later, shared and rather helpfully items you have marked as read which is great if you have accidentally marked an item as read and it vanishes.

In addition to the layouts, Feedly synchronises with Google Reader both ways, so if you add a feed in Feedly, it is added to Reader and vice versa. Quite helpfully this also goes down to the category level too so that if you have organised your feeds on one, they are automagically organised on the other. This means that if you chose to leave Feedly but didn’t want to lose your feeds, you wouldn’t have to export them or do anything really.

After using Feedly for a couple of months now I can say that I actually look forward to lunch and other times when I can check up on my feeds. This is a web application that has done a lot of work on getting a good user experience and improving on it while listening to feedback to move in a direction the users want it to go. The company behind Feedly is DevHD, a small startup that was founding in California at the end of 2006. They are focusing very strongly on Feedly and the work is paying off, just have to hope that someone sees value in the work they are doing.

So, want to start getting the best out of your dusty, unmanageable RSS feeds? Get Feedly!

Links

 

Wow, I haven’t actually posted anything this year so I feel it is time to fix that with an update from Scottish Developers. Oh and this is also the first post using a new theme (well, new for my blog anyway). I am starting to tire of WordPress so am seriously considering writing my own site in ASP.NET 4.0 / MVC 2 just to play with things. Anyway, here are the upcoming events on the Scottish Developer’s calendar.

March

  • Wednesday 16th, Dundee – Web Application Testing With Selenium
    I will be doing a final run of my introductory talk on testing web applications using Selenium at the University of Dundee. There are still places available for this talk so please see the registration page for more details.
  • Thursday 25th, Glasgow – Guathon!
    Geek celebrity Scott Guthrie (Scott Gu), vice president of the Developer Division at Microsoft, will be spending an entire day in Glasgow talking on Visual Studio 2010, .NET 4.0 and Silverlight 3.0. Places are limited for this event so head over to the Guathon page and get registered asap!
  • Friday 26th, Edinburgh – Geek Dinner
    We will be taking an evening off from the code and presentations at the end of the month while reflecting on the teaching of The Gu from the previous day. At present we don’t have a restaurant in mind for this yet but we are open to suggestions. Since we need to get an idea of numbers for the dinner, if you are interested in joining us please make sure you register first.

April

  • Wednesday 14th, Edinburgh – Introduction to SOLID
    Chris Canal will be providing an introduction to SOLID and how it can be used to build more maintainable software which reacts better to change. There are still places available for this talk so please see the registration page for more details.
  • Monday 19th, Edinburgh & Tuesday 20th, Glasgow – Jesse Liberty
    Silverlight guru Jesse Liberty will be speaking for us in Edinburgh and Glasgow. Details for this should be available soon, keep an eye out on the Scottish Developers blog for updates.
  • Wednesday 28th, Dundee - SSL/TLS – Just when you thought it was safe to return
    If you are interested in internet security this is a talk you wont want to miss. Arron Finnon will be explaining why SSL/TLS is not as secure as we believe and will be pointing out the vulnerabilities with this very commonly used security technology. There are still places available for this talk so please see the registration page for more details.

May

  • Saturday 8th May, Glasgow – Developer Day Scotland 2010
    This is a day not to be missed and the highlight of the Scottish Developer’s calendar. Join us for a day of presentations, grok talks and geekery at Glasgow Caledonian University. 20 speakers, 4 rooms and various topics including  jQuery, Defensive Programming, HTML 5, Code Contracts and Silverlight. We are getting close to full for registrations so make sure you don’t miss out and get signed up ASAP. More information can be found on the conference home page.
  • Saturday 8th May, Glasgow – DDD Scotland Geek Dinner
    Come chill out after DDD Scotland and catch up with developers, speakers and the organisers to share stories and experiences over a good meal in the heart of Glasgow (exact venue yet to be decided although we expect to be in the Merchant City area). Afterwards you can retire to a bar or pub to continue conversation or head out to a club to party.

All of this information can be found in a handy iCal format from our Google Calendar.

     

    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!

    © 2011 Andy Gibson
    Header image courtesy of Don Solo
    Suffusion theme by Sayontan Sinha