j-nunn.com
  • 25% discount on all Apress books

     

    As a Christmas thank you Apress are offering a 25% discount on all purchases at Apress.com from now until 31st December. Just enter the promotional code APRESSHOLIDAYML during check out.

    Full story

    Comments (0)

  • Developer Developer Developer Day 8

    The eighth Developer Day Event at Microsoft’s UK Campus in Reading has been announced for Saturday 30th January 2010!  Call for speakers has now been open so if you’ve always thought of submitting a session, go for it.

    I’d need to start writing abstracts for my submissions.

    The link for  submissions is - http://developerdeveloperdeveloper.com/ddd8/

    Full story

    Comments (0)

  • Windows 7 Personalisation

    The Windows Personalization Gallery, is a great place to personalise your PC experience. There are some cool new themes from big name brands

    1  2 3 4 5  

    and new country based themes.

     6 7  8

     

    You can also download new Desktop gadgets for your favourite Search provider

    9  10

    or to keep up to date with your appointments and e-bay auctions

    11   12

    or for many other tasks, including monitoring your PCs resource usage.

    13

    Full story

    Comments (0)

  • Formatting decimal data with C#

    One problem I recently faced was an application that printed directions for drug prescriptions. The main problem I was facing was only showing decimal places if the user entered them. For example the user may have wanted to prescribe 1.25ml of a drug however if when the meant 1ml 1.00ml appeared on the prescription the user felt this could be confused as 100ml. luckily there is an easy solution to this. By using a numeric format string, you can change the way in which numeric data is formatted as a string.

    There are two types of Numeric Format Strings Standard and Custom.

    Standard Numeric Format Strings

    • Currency C or c
    • Decimal D or d
    • Exponential (or Scientific) E or e
    • Fixed Point F or f
    • General G or G
    • Number N or n
    • Percent P or p
    • Round-trip R or r
    • Hexadecimal X or x

    Custom Numeric Format Strings

    • Zero Placeholder 0
    • Digit Placeholder #
    • Decimal Point .
    • Thousand separator and number scaling ,
    • Percentage placeholder %
    • Scientific notation E0 or E+0 or E-0 or e0 or e+0 or e-0
    • Literal string ‘ABC’
    • Section separator ;

    In order to achieve the desired effect a custom numeric format string was needed, the following c# code shows the use of a custom numeric format string to achieve the desired result.

    double x = 1.25;
    double y = 1.50;
    double z = 1.00;
    Console.WriteLine(String.Format("x={0}, y={1}, z={2}", x.ToString("0.##"), y.ToString("0.##"), z.ToString("0.##")));

    Generates

     

    x=1.25, y=1.5, z=1

    Full story

    Comments (0)

  • Visual Studio 2010 Beta 2 Released

    Microsoft have released the second beta of Visual Studio 2010 today, for MSDN subscribers.

    Visual Studio 2010 Beta 2 and Dot Net framework 4 Beta 2 will be made available to the general public on 21st October, with the final launch date now being 22nd March 2010.

    One major change with this release is the new packages, the team editions have now been removed and there are only three main versions of Visual Studio 2010:

    • Microsoft Visual Studio 2010 Ultimate with MSDN. The comprehensive suite of application life-cycle management tools for software teams to help ensure quality results from design to deployment
    • Microsoft Visual Studio 2010 Premium with MSDN. A complete toolset to help developers deliver scalable, high-quality applications
    • Microsoft Visual Studio 2010 Professional with MSDN. The essential tool for basic development tasks to assist developers in implementing their ideas easily

    For an in-depth comparison of the features available with each version Microsoft have produced a comparison chart.

    The new new pricing structure puts the costs at:

    • Professional $1,199
    • Premium $5,469
    • Ultimate $11,924

    Microsoft unveiled new benefits for MSDN subscribers, including these:

    • Unlimited access to Visual Studio Team Foundation Server 2010 (upon release), a server product that drives down the risks and costs of developing software by enhancing team collaboration
    • Azure Development, which enables MSDN Premium subscribers to develop on the Windows Azure platform (Microsoft’s cloud services platform) with compute hours, storage, data transfers, SQL Azure databases and .NET Services.
    • Complimentary e-learning, up to 40 hours per year, per subscriber

    To help developers access the wealth of online resources in a more streamlined fashion, Microsoft has also updated the MSDN Web site, which now features an updated user interface, a faster version of the MSDN Library and more community resources.

    Those interested can download Beta 2 at http://msdn.microsoft.com/en-us/default.aspx.

    Full story

    Comments (0)

  • Moving Office and fixing changed property names

    The past few weeks have been very busy, I have stopped working from home and moved into a new office. I thought I could just move the pc and just start working. I couldn’t have been more wrong; the lack of an internet connection made work slow going. My 3G mobile connection was a lifesaver, but the connection was just not good enough for managing remote deployments. It took just over a week for BT to setup a broadband connection, which is superb compared to some quotes I got, but trying to work for a week without a dedicated high speed connection was like treading water in quicksand.

    One thing that did not help was, upgrading my Infragistics NetAdvantage controls to the latest service release. This has always been a simple process before, however for some reason this patch changed the names of some of the control properties. Border-Width became BorderWidth, this caused a frantic day changing nearly every form in a project; just before having to release to UAT. I have never come across a patch that fundamentally changed the documented interface before.

    Full story

    Comments (0)

  • Too much to do, too little time

    July was a busy month for me, but August is turning out to be even busier if that is possible. The release of Windows 7 RTM via MSDN means all my applications need testing to ensure compatibility. Not just with the base OS but within a virtualised XP environment as well. The whole testing process needs to be done with Windows Server 2008 R2 in a few weeks. On top of that I am finally taking the plunge and moving into new office space, allowing me to take on another full time developer; which should help with freeing up some of my time.

    We also have a great technical talk for VBUG this month with Richard Fennell talking about Visual Studio Team Foundation Server 2010 and Agile development…

    Using Visual Studio Team System 2010 to enable Agile Development
    7pm (doors open 6:30) 11th August 2009
    GETEC Centre, George Eliot Hospital, Nuneaton CV10 7DJ

    Visual 2010 provides many new features to assist in the agile development process. In this session I will cover the basics of TFS, highlighting what is new. I will then cover how the various features of TFS that are specifically aimed at the agile team, look out for bits on iteration planning and testing. Richard Fennell is the Engineering Director of the Black Marble Ltd a Microsoft Gold Partner based in the North of England. Black Marble specialises in BizTalk & SharePoint based business automation. As Engineering Director he is responsible for the delivery of systems and tools to allow Black Marble, and their clients, to deliver solutions efficiently. All Black Mable's development activity is underpinned by Visual Studio Team System an agile process model. He is a Microsoft MVP for Team System, a Typemock MVP and a Certified Scrum Master.

    Full story

    Comments (0)

  • Mobile broadband at a price that is affordable.

    Finally an offer from a mobile provider that is a benefit to existing subscribers. I called Orange to take advantage of the Business Mobile Broadband Unlimited offer, unlimited 3G broadband for £10 a month. When I spoke with the sales guy he told me that for existing customers the deal was not £10 a month but an even better £7.50 a month. The USB dongle arrived the next day and after a few hiccups trying to install it on my tablet (the drivers will not work for windows 7), it was up and running very quickly.

    I was expecting the fairly usable but slow speeds I got from my previous mobile broadband solution via 3, however I was very pleasantly surprised to find the connection speed was much better, even reaching 4Mbps which is faster then my previous ADSL speeds.

    Full story

    Comments (0)

  • Problems getting Silverlight to communicate with WCF services under IIS7

    I have been developing a new application allowing clinicians and nursing staff to record the condition of a patients skin. As part of this they needed a way to mark on a diagram, where any wounds were. This was a perfect chance to use Silverlight. I created the control and then hooked it up to an existing WCF service I have for obtaining patient details. There were a few modifications needed to allow the Silverlight application to access the service, but all went smoothly. The problems started when I moved from hosting the Service in Visual Studio’s Development Server to IIS7.

    I kept getting communications errors, after using Fiddler to see what was going on, the application was looking for a file it couldn't find clientaccesspolicy.xml. Searching on the web and on the Silverlight.netforums I found that this is a file needed to allow cross domain access to services. This is a simple little XML file that sits in the root of your web site.

    The contents of the file should be:

    <?xml version="1.0" encoding="utf-8"?>
    <access-policy>
      <cross-domain-access>
        <policy>
          <allow-from http-request-headers="*">
            <domain uri="*"/>
          </allow-from>
          <grant-to>
            <resource path="/" include-subpaths="true"/>
          </grant-to>
        </policy>
      </cross-domain-access>
    </access-policy>

    This will allow  a request from all domains to access all services running under this site. To restrict the allowed domains modify the <allow-from> settings as follows:

    <allow-from http-request-headers="*">
       <domain uri="*.j-nunn.com"/>
       <domain uri="*.tortrix.net"/>
    </allow-from>

    This will allow all requests from the j-nunn.com and tortrix.net domains. To restrict which services can be accessed the <grant-to> section can be modified:

    <grant-to>
      <resource path="/Services" include-subpaths="true"/>
      <resource path="/PatientData/Service" include-subpaths="false"/>
    </grant-to>

    This allows all services in the Services directory and and sub directory, and any services in the PatientData/Service directory to be accessed.

    The changes needed to allow Silverlight to access the WCF services were to add the following element to the web.config:

    <system.serviceModel>
            <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>

    and then to decorate the actual service implementation classes with the following attribute:

    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

    Despite the pain trying to figure out why the solution worked in Visual Studio but not when hosted in IIS, this was a very worthwhile exercise, the application is very easy to use and the users love the interactivity provided via Silverlight.

    Full story

    Comments (0)

  • Register now for the UK's first TechNet Virtual Conference

    The very first TechNet Virtual Conference will be going live on June 19th 2009. It features Microsoft technology news and product overviews from the experts, including sessions on Windows 7 and Windows Server 2008 R2, as well as topics focused on IT Management.

    For mover details and to signup go to http://technet.microsoft.com/en-gb/dd819085.aspx

    Full story

    Comments (0)

  • Windows 7 and Visual Studio 2008 Install Fest

    We are doing something different for the next user group meeting, inspired by the recent releases of Windows 7 Release candidate and Visual Studio 2010 Beta 1. Bring a laptop and get some hands on experience with these new systems with some peers.

    As well as a copies of these releases we have some hands on labs and training materials. What better way to get to grips with these new releases than with a group of peers. We have a few laptops available to use if you don’t have one, as well as copies of Virtual PC so you can run in a virtual machine rather than destroy your current OS install.

    Refreshments will be available through out the evening.

    Where: The George Eliot Hospital GETEC Centre. Nuneaton, CV10 7DJ

    When:  Tuesday 9th June, 18:30 til 21:00

    Cost: FREE

    For more details and to register click here.

    Full story

    Comments (0)

  • Two great books for free

    Microsoft press are giving away two free eBooks as part of their 25th Anniversary celebrations.

    Windows Server 2008 Terminal Services Resource Kit, by Christa Anderson and Kristin L. Griffin with the Microsoft Presentation Hosted Desktop Virtualization Team.

    In-depth and comprehensive, this Resource Kit delivers the information you need to set up, deploy, and manage a Terminal Services farm using Windows Server 2008.


    The Practical Guide to Defect Prevention, by Marc McDonald, Robert Musson, and Ross Smith.

    This practical, hands-on guide captures, categorizes, and builds a process of best practices to help avoid creating defects during the development process—rather than fixing them after extensive analysis.

    This offer expires on 27th May 2009, so download the eBooks today!

    Full story

    Comments (0)

  • Two great database talks in one evening

    Last night we had the second user group meeting at the GETEC Centre, with Andy Couch giving two superb talks one on Upsizing Access Applications and the other on the new data types in SQL Server 2008. The presentations for each of these are available below:

    Rob Blackmore also gave a great presentation on adding validation controls to WPF applications, this was a great grok talk from a first time speaker, if you would like to see this presentation then go to DDD South West on 23rd May.


    Andy runs a number of training courses aimed at user group members and are a great opportunity to enhance your skills, here are the details:

    Kickstart Microsoft® SQL Server™ 2000/2005/2008/Express

    A two day course designed for developers intending to develop new applications or upsize existing applications from Access to SQL Server/SQL Express. This course enables delegates to gain a solid understanding of SQL Server and techniques for linking front-end Access applications to SQL Server.

    http://www.upsizing.co.uk/TrainingCourses.aspx

    Building Database Driven Applications with Visual Web Developer 2008 Microsoft®, and Visual Studio 2008 Microsoft®

    A two day course designed to fast-track Access developers in delivering browser based database application. This course enables delegates to gain a solid understanding of technologies and techniques for developing browser based applications with Microsoft development tools. We aim to maximise using the interactive features of the Visual Studio/Web Developer environment and sprinkling in code along the way.

    http://www.upsizing.co.uk/TrainingCourses_Net.aspx

    Each course last for 2 days, and costs £450+VAT and includes lunch on both days, courses are run in the Coventry area and dates are scheduled as best we can to fit in with delegates. Group sizes are between 5 and 10 delegates, and delegates bring along their own notebooks for the courses. We have a corporate discounted rate of £80 per night with a local Holiday Inn.

    Contact andy@ascassociates.biz for further details on training dates.

    Full story

    Comments (0)

  • Italian Surfer with a Russian Attitude – a really fruity drink

    This time here is a very unusual combination, which produces a really fruity drink, if a still on the sweet side.

    Italian Surfer with a Russian Attitude

    • 1½ shots Vodka
    • ½ shot Amaretto
    • ½ shot Malibu
    • 3/4 shot Pineapple Juice
    • 3/4 shot Cranberry Juice

    SHAKE all ingredients with ice and strain into a chilled martini glass.

    Full story

    Comments (0)

  • Working with weeks in c#

        The .net framework provides some great date time features, some of which are culture specific. however the support for the week is only half there.

        You can easily get the week number for a given date using the following bit of code:

    int WeekNumber = CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(MyDate, 
                                     CalendarWeekRule.FirstFourDayWeek, 
                                     DayOfWeek.Monday);

    However to get the first day of that week is a little harder:

    int diff = CultureInfo.CurrentCulture.Calendar.GetDayOfWeek(MyDate) - DayOfWeek.Monday; 
    DateTime firstDate = MyDate.AddDays(-diff);

    If you want to get the first day of the week when all you have is the week number and year then there are quite a few steps:

    DateTime FirstWeek = DateTime.Parse(String.Format("1/1/{0}", MyYear.ToString()));
    DateTime ThisWeek = CultureInfo.CurrentCulture.Calendar.AddWeeks(FirstWeek, MyWeekNumber);
    int diff = CultureInfo.CurrentCulture.Calendar.GetDayOfWeek(ThisWeek) - DayOfWeek.Monday;
    DateTime firstDate = ThisWeek.AddDays(-diff);

    Full story

    Comments (0)

  • A drink for the bank holiday

    This weeks cocktail is a beautiful refreshing drink perfect for the bank holiday. This great drink makes use of one of the greatest liquors I have tasted, St. Germain a wonderful elderflower based liquor.

    Jade Garden

    • 2 shots vodka
    • 1 shot St. Germain
    • 1 shot cold Jasmine tea
    • 1½ shots Apple Juice
    • ½ shot Midori Melon Liqueur
    • ½ shot freshly squeezed Lime Juice

    SHAKE all ingredients with ice and strain into an ice filled glass.

    Full story

    Comments (0)

  • Relaxing with a Cocktail

    Recently I have been trying out a variety of cocktails and as such will now try to post the recipe for a different cocktail each week. This being the first one I will start with two of my Favourites

    Giuseppe’s Habit
    • 2 twists of Lemon zest
    • 1 1/2 shots Galliano liqueur
    • 3/4 shot Frangelico hazelnut liqueur
    • 3/4 shot Triple Sec
    • 1 1/4 shots Pressed Apple Juice

    Spray the oils from the two lemon zest twists into the cocktail shaker, wipe them around the rim of the glass and then drop into the shaker. Pour in to the shaker the other ingredients and the SHAKE with ice. Then fine strain into a martini glass.

    L.A. Iced Tea
    • 1/2 shot Vodka
    • 1/2 shot Gin
    • 1/2 shot Light white Rum
    • 1/2 shot Triple Sec
    • 1/2 shot Midori Melon Liqueur
    • 1 shot freshly squeezed Lime Juice
    • 1/2 shot Sugar syrup
    • Soda Water

    SHAKE first 7 ingredients with ice and strain into a tall ice filled glass. Then top up with Soda Water.

    Full story

    Comments (0)

  • A Database theme for the next user group talk

    At the next user group meeting in the midlands we have two great talks, with a database flavour. First Andy Couch will be talking about the new Data Types available in SQL Server 2008, then Andy will give a second presentation on how to move an Access application to .net and SQL Server. As usual there will be some time for networking over tea/coffee before the sessions. In between the sessions there will also be an opportunity to hear a grok talk by Rob Blackmoore. The event is free, if you would like to attend please register here.


    Using New Data Types In 2008 followed by Moving from Access Databases to a Visual Studio/SQL Server Solutions

    with Andrew Couch

    Tuesday 12th May 6.30 p.m. til 9pm

    Using New Data Types In 2008

    It's an exciting time to be a Microsoft developer - with new platforms and products come new challenges. Make sure you're ready for what's ahead and attend this session.

    With the introduction of new data types in SQL Server 2008 combined with the existing variety of data types in SQL Server 2005, Office 2007 and SharePoint there is a need to understand how these choices impact the use and exchange of data.

    This session reviews the different data types and considers how to select the most appropriate data types with regards to the implications this may have for using the data in various versions of Office and Visual Studio. Along the way there will be an opportunity to explore some of the new features in SQL Server 2008 and Visual Studio 2008.

    This proves to be a fascinating and enlightening session.

    Moving from Access Databases to a Visual Studio/SQL Server Solutions

    Migrating the database design and data to SQL Server, re-linking Access application to SQL Server.

    Migrating queries to views and stored procedures, also re-packaging the SQL behind Forms and Reports to SQL Server if targeting to Visual Studio. Performance tuning or to make the next step.

    Migrating the application to use web forms and report services with Visual Studio.

    Where?

    George Eliot Hospital

    GETEC Centre

    Nuneaton,
    Warwickshire,
    CV10 7DJ

    To register

    Please register online here.

    Full story

    Comments (0)

  • Web DD

    I have just got back from attending WebDD ‘09 in Reading. What a great event, I was able to catch up with several old friends as well as see some outstanding talks. This community run event was one of the best I have been to in recent times. The quality of speakers was superb along with a great atmosphere.

    This event showcased some of the amazing talent and outstanding enthusiasm that makes the UK’s developer community such a pleasure to be part of. The level of participation and commitment always astounds me, and is one of the reasons I keep trying to give my support.

    Full story

    Comments (0)

  • Converting the file system from FAT32 to NTFS

    I recently bought a new external Hard Disk , Western Digital My Book Home Edition 1TB,for use with Virtual machines. The performance of this device is absolutely perfect. The inclusion of a SATA interface ensures a high data throughput. However I quickly ran in to a small problem, the dive by default comes formatted using FAT32, which would be great for most applications, however because my files were virtual hard disks most of them were bigger than the 4GB maximum for FAT32.

    Full story

    Comments (0)

  1. 1
  2. 2
  3. »
Copyright © 2010 John Nunn
This site is powered by