08 Dec 2010

Pull December 2010 Release

Another month, another Pull release Open-mouthed smile This month is not a very feature rich release, but includes some vital features and new ideas:

New Parsing Engine

Internally in Pull, we have added a new parsing engine which now handles feeds which are broken. The scenarios we are catering for:

  • Putting incorrectly encoded content in the description. Ted Talks I’m looking at you.
  • Using DTD’s with the feed. Let’s Talk Geek podcast used to break because of this.
  • Incorrect date and time formats.  702 podcast are an example of this.

What this means to you as a consumer of podcasts, is that more are podcasts available for you to subscribe to now!

Battery Support

imageIf you are on batteries (i.e. laptops not plugged in) downloading can put a big strain on the batteries, so we now have a way to prevent downloads while on batteries. This can be controlled in the settings dialog.

Online Detection

There is no point even trying to download if you are not online (waste of CPU, memory, batteries etc…), so we now ask Windows if you are online and then only if download if you are online. This too can be controlled in the settings dialog for scenarios where you are online but Windows is unable to detect it.

Better Hardware Use

We optimise how many downloads you can do based on the number of CPU cores available, this ensures we download optimally based on the limits of the CPU. This can be adjusted in the settings.

Sync Support

imageWe new have a very basic sync system in Pull, which allows you to easy sync your devices with your downloaded episodes. This is intentionally basic for this release as we try to understand the needs and wants of people who use this. Please provide feedback on this feature.

Twitter Support

Another new feature is a one click way to share using Twitter what podcasts and episodes you are listening to! This is very basic too in this release and can break in some situations. We will be working on this and it will be enhanced in the January release.

Minor Features

  • Improvements to the UI and theming
  • Better last resort crash support

Looking Forward

For the January release we will be implementing some major new features:

  • Grid overhaul – we make use of grids to list your podcasts, episodes, downloads and the log. In January we will be giving them a major overhaul and give you the ability to have filtering and searching, persistent customisations and performance improvements.
  • UI Enhancements – Really working hard on making the UI easier to understand while giving power users more control.
  • Twitter – Better support for Twitter, including using bit.ly for shortening.

Little taste of the current development progress:

image

07 Dec 2010

CommNight December - Some interesting events

Happy Blue Man Partying With a Party Hat, Confetti and a Bottle of Liquor Clipart IllustrationIn the middle of the company parties, you should take one night off to do some fantastic learning and networking at CommNight (Community Night) on the 14th December! You can read about all the details on the Microsoft DPE Blog.

There are two groups which I want to highlight which will be at CommNight:

S.A. Developer

S.A. Developer is a user group for developers and in December will be hosting the following topics:

  • Tool of the month: This short (10min to 15min) session is where someone can present their favourite developer focus tool or add-on.
  • Unit Testing WPF & Silverlight – Tools & Techniques: Silverlight and WPF can be used to create truly immersive UI experiences for users.  Testing these UI components and the logic around it can become complex – especially when using frameworks like PRISM.  Join us in this session as we take a look at a few tools and techniques that can be used when unit testing WPF and Silverlight applications. 

Really looking forward to this session!

Information Worker

Information Worker is a user group for those in the IW space, not just developers but everyone even people who job just involves Excel and Outlook! This month we are looking at:

  • Lync – Microsoft’s Unified Communication System
  • Windows Phone 7 – What does this give the IW user? Things like Office and SharePoint integration will be discussed
17 Nov 2010

T4 Cheat sheets!

I’ve been spending a lot of time working on two things recently: T4 (Text Template Transformation Toolkit) and Windows Phone 7. Part of my work around T4 included creating some cheat sheets to make it easier to get to grips with it!

There is now three posters available (High res PDF’s below or on the DRP site):

General Overview

This provides a high level overview of the various components in T4.

Slide1

@template detail

The @template directive has a lot of options and this sheet provides detail on those.

Slide2

Examples

This sheet provides usage examples of various aspects directives in T4.

Slide3

You can see my time with Windows Phone 7 leaking into these two as I loosely designed them around the Metro UI design guideline that Windows Phone 7 uses. Interestingly for me is that Metro seems to work fantastically well for cheat sheets as these are some of the nicest and easiest to grok sheets I’ve ever done.

AttachmentSize
PDF icon T4 @Template Detail.pdf256.18 KB
PDF icon T4 Cheatsheet.pdf226.23 KB
PDF icon T4 examples.pdf256.43 KB
15 Oct 2010

Pull - October 2010 Release

I’m happy to share my second stable release of Pull, the simplest podcast/vidcast download tool, in the world, this release has had a ton of new work done to it to get it more usable and some plumbing work to improve it. 

image

Major features in this release

Full Proxy Support

Proxies are either really easy to use or completely destroy your application. Previously Pull used what ever Internet Explorer specified, now you can tell it there is no proxy, in case your IE proxy settings are different for some reason, or provide proxy settings. This should help people use it in a variety of environments.

image

Add multiple podcasts at once

Want to subscribe to multiple podcasts? Just use the new add dialog box to add them.

image

Automatic backup of feeds to OPML

Have a database? Then you better have a backup. These are rules for all software and Pull does the same now by automatically backing up your feeds to an OPML file, just in case Smile

image

New jumplist options

Right click on the Pull icon in Windows 7 and you will get the jumplist which contains two new options – Play next unplayed episode and Force refresh of podcasts.

Since putting in the play un-played I’ve used it a ton as it allows me to keep playing podcasts quickly. When one podcast finishes, it is two clicks to get the next one started, without having to switch to the application to do it!

image

Ability to automatically download latest episode when subscribing to a podcast

When you subscribe to a podcast, you likely want the latest episode and so we now have an options to enable that. Options are available on both the new podcast dialog box (see above) and also if you are adding via protocol handlers or OPML.

For those last two you can turn it off in the settings:

image

Ability to cancel downloads

Right click on a download in the download pane and you will be able to cancel a download!

Locking

Often I have a podcast I want to keep forever, now you can right click on a podcast and select lock which adds a little lock icon next to it. Repeat the process to unlock.

This prevents the file from being deleted and from a clean-up perspective this means you can now select all played episodes and hit delete and it will ignore the locked items.

image

Ability to prevent Windows from going to sleep during downloads

In settings you can control if you have an active download is the computer allowed to go to sleep.

image

Ability to selectively import or export podcasts from OPML file

Want to export your podcast, except that one which will make your mother blush? Or maybe your friend gave you an OPML file you want to import but you don’t want all his podcasts. You can now select individual podcasts and export and import selectively.

Delete to recycle bin

When you delete a podcast, it now goes to the recycle bin and not into the ether. This also means you can hit retry now if the delete fails for any reason.

Scan for Episodes

Another new small feature lets you scan an existing folder for episodes you have already downloaded in Pull or other application. This was added to help people migrate to Pull and quickly associate their existing episodes, but if you want to re-associate a deleted episode this works great for that too!

image

Welcome wizard to make getting up and running easy

Pull used to only need two settings from you and so when you started it for the first time it showed you the settings dialog to get those settings. However this release added a number of settings and to not scare off a new user with a million settings we get now start with a simple welcome wizard which asks for the two we really need and makes the user feel at home in the application.

Future

I am planning another release for about a month away and I want to add some more download management features in it but if you have any ideas drop me a line or leave a message in the Pull discussions forum.

11 Oct 2010

Poken @ Tech·Ed 2010

image[8]We live in an increasing digital and disconnected world where we seldom meet face to face, and in less than a week that will all change because it will be time for Tech·Ed Africa 2010! Last year there was a new piece of hardware unveiled, the Poken – which I can assure you will be even bigger this year.

For those who do not know what a Poken is, it’s a small device which links your digital persona to a physical world! Or put more simply it’s a way to share details about who you are with other people, think like a digital business card.

From Ruari Plints post on these guys, here is what you need to do:

  1. Pop onto Poken website to find out all about it and why we going crazy “Poken-ing” everyone this year.
  2. Sign up foryou own Poken account.
  3. Get your Poken device, before or at TechEd Africa.
  4. Join us and go “Poken” you friends, and then some.
  5. Create your own “Poken” language and make us all laugh at the possibilities.
  6. Pop on to the TechEd Social media sites and start expressing yourself.

I have it on good authority that the Poken’s on sale at the event will be at a special price and plenty will be available to WIN!

06 Oct 2010

Redirected down a one way: Clearing the Internet Explorer host redirect cache

Internet Explorer 9 is fast, really, really fast! A lot of that speed comes from the massive caching improvements in IE9 – but this is a bit of a double edge sword, especially for developers when caching gets in the way of what is actually happening. I spent two hours debugging an odd caching issue recently and this is the sad story.

For some testing I needed to setup a redirect, in this case a 301 permanent redirect (handy HTTP status codes cheat sheet in case you don’t remember these). What this would do is enable me to have site alpha (http://localhost:5000/Demo) redirect to site beta (http://localhost:9000/Demo).

Prior to this the scenario look like this:

image

Behind the two browser windows is the IE 9 Developer tools and their fantastic new network capture feature. You can easily see that when I hit site alpha I got a 200 result, meaning all good and it loaded.

Once I setup the redirect, you’ll see I get a 304 this is because the data is already cached. Note that even though I typed in the site one URL it immediately loaded site two. This is because the browser had cached the redirect and so skipped the network steps for performance.

image

Now the problem, I wanted to turn off the redirect – however the browser cached it and so would ignore the change. Clearing cache, deleting files, rebooting and even using the IE reset option did nothing to solve this Crying face 

The only way to fix it was to fire up the fantastic Fiddler tool and use it’s Clear Cache option with the option to delete persistent cookies, which flushes the WinINET cache.

image

Considering that this is supposedly the same as clearing the IE cache I have no idea why this works and IE cache clearing doesn’t but it does work.

27 Sep 2010

Cannot add a Service Reference to SharePoint 2010 OData!

SharePoint 2010 has a number of API’s (an API is a way we communicate with SharePoint), some we have had for a while like the web services but one is new – OData. What is OData?

The Open Data Protocol (OData) is a Webprotocol for querying and updating data that provides a way tounlock your data and free it from silos that exist in applicationstoday. OData does this by applying and building upon Webtechnologies such as HTTP, Atom PublishingProtocol (AtomPub) and JSON toprovide access to information from a variety of applications,services, and stores.

The main reason I like OData over the web services is that it is lightweight, works well in Visual Studio and works easily across platform, thanks to all the SDK’s.

Clipboard01SharePoint 2010 exposes these on the following URL http(s)://<site>/_vti_bin/listdata.svc and you can add this to Visual Studio to consume using the exact same as a web service to SharePoint, right click on the project and select Add Service Reference.

Once loaded, each list is a contract and listed on the left and to add it to code, you just hit OK and start using it.

Add Service Reference Failed

Clipboard03The procedure above works well, until it doesn’t and oddly enough my current work found a situation which one which caused the add reference to fail! The experience isn’t great when it does fail – the Add dialog closes and pops back up blank! Try it again and it disappears again but stays away.

Clipboard04If you check the status bar in VS, you will see the error message indicating it has failed – but by this point you may see the service reference is listed there but no code works, because the adding failed.

If you right click and say delete, it will also refuse to delete because the adding failed. The only way to get rid of it is to close Visual Studio, go to the service reference folder (<Solution Folder>\<Project Folder>\Service References) and delete the folder in there which matches the name of your service. You will now be able to launch Visual Studio again, and will be able to delete the service reference.

What went wrong?

Clipboard06Since we have no way to know what went wrong, we need to get a lot more low level. We start off by launching a web browser and going to the meta data URL for the service: http(s)://<site>/_vti_bin/listdata.svc/$metadata

In Internet Explorer 9 this just gives a useless blank page Sad smile but if you use the right click menu option in IE 9, View Source, it will show you the XML in notepad. This XML is what Visual Studio is taking, trying to parse and failing on. For us to diagnose the cause we need to work with this XML, so save it to your machine and save it with a .csdl file extension. We need this special extension for the next tool we will use which refuses to work with files without it.

Clipboard07The next step is to open the Visual Studio Command Prompt and navigate to where you saved the CSDL file. We will use a command line tool called DataSvcUtil.exe. This may be familiar to WCF people who know SvcUtil.exe which is very similar, but this one is specifically for OData services. All it does is take the CSDL file and produce a code contract from it, the syntax is very easy: datasvcutil.exe /out:<file.cs> /in:<file.csdl>

Immediately you will see a mass of red, and you know that red means error. In my case I have a list called 1 History which in the OData service is known by it’s gangster name _1History. This problem child is breaking my ability to generate code, which you can figure out by reading the errors. 

Solving the problem!

Clipboard09Thankfully I do not need 1 History, so to fix this issue I need to clean up the CSDL file of _1History references. I switched to Visual Studio and loaded the CSDL file in it and begin to start removing all references to the troublemaker. I also needed to remove the item contract for the list which is __1HistoryItem. I start off by removing the item contract EntityType which is highlighted in the image along side.

The next cleanup step is to remove all the associations to __1HistoryItem.

Clipboard10Finally the last item I need to remove is the EntitySet for the list:

BREATH! RELAX!

Ok, now the hard work is done and so I jump back to the command prompt and re-run the DataSvcUtil tool, and it now works: Clipboard12

Clipboard14This produces a file, in my case sharepoint.cs, which I am able to add that to my project just as any other class file and I am able to make use of OData in my solution just like it is supposed to work!

21 Sep 2010

Visual Studio 2010 Training in Jo'burg

Notion Solutions will be running some Visual Studio 2010 training in Johannesburg at the end of October. These are not free courses but the value you will get from training with one of the worlds top ALM companies will be worth it.


Tester Training with Visual Studio 2010 Ultimate (4-Day Course)

This course provides students with the knowledge and skills to use the latest testing tools provided by Visual Studio 2010 to improve their ability to manage and execute test plans. Test case creation and management will be covered, as well as test execution and automation practices using Test Manager. Creating and managing virtual lab environments using Lab Management 2010 will be discussed within the context of test planning and execution. By the end of the course, students are equipped to begin planning the implementation of Visual Studio 2010 for improving testing practices within their organizations.

October 25 – October 28, 2010 09:00 – 17:00


Overview of Visual Studio 2010 (4-Day Course)

The Visual Studio 2010 Overview course provides students with the knowledge and skills to improve the development practices of their entire organization and team. A broad set of features provided with Visual Studio 2010 will be covered to assist your team with application design, test management and execution, development standards and collaboration, automated build and release management, database schema management and test lab management. This course covers all of the most important features without going overly deep. By the end of the course, students are equipped to better understand how Visual Studio 2010 can be used within their organizations.

November 1 – November 4, 2010 09:00 – 17:00

Pages