Tag | Windows Live Writer Posts

Here's my new favorite: public static string AppSetting(this string parameter) { return System.Configuration.Config... } Now I can simply call "BaseUrl".AppSetting(); Beautiful ...
This could be a common problem who are not using SQL Express. If you run an Azure application you may find it seeks for SQL Express instance in your machine if you do not have already. You may also find "An error occurred while processing this request." error due to this reason while you try creating tables from your models by StorageClient.TableStorage.... All you need to do is fire up Visual Studio and open the config file for DevelopmentStorage at C:\Program Files\Windows Azure ...
Those who are excited like me about the news of jQuery integration into Visual Studio, started adopting jQuery replacing ASP.NET AJAX Client side API. Microsoft also declared there will be a patch for Visual Studio which will support jQuery as well as intellisene for that. For the enthusiasts who just can't for it, here is the way how we can start developing using jQuery with full intellisense support inside Visual Studio 2008: 1. Download jquery-1.2.6-vsdoc.js 2. Inside your JavaScript files, add ...
There is a well-known issue with WPF RadioButton controls with data binding: when a radio button is unchecked the data binding is not undone. For example, suppose you have the following two radio buttons in the same group linked to a the "IsSuccess" (of type bool?) attribute of an object: <RadioButton Grid.Row="0" Grid.Column="0" GroupName="rbGroup" Margin="8,0,0,0" VerticalAlignment="Center" Content="Success" x:Name="rbSuccess" IsChecked="{Binding Path=IsSuccess, Mode=TwoWay, Converter={StaticResource ...
Suppose you have three tables in your database where one of them specifies a many-to-many relationship between the other two (example from AdventureWorks): Suppose also that you have a method such as GetVendors(int productID) that will retrieve all the vendors for a given product through the ProductVendors table (that is , the many-to-many table). Now, if this method is exposed via a WCF service, when your client calls it you will see an exception like this one: "System.ServiceModel.Commun... ...
I’ve just set up WLW at work to take advantage of blogging in a very nice interface and to make the best use of the new WTFNext. I do apologize to those of you who are getting this content and being generally disappointed by the lack of context, but I’m getting myself familiar with GWB and how I can make the most of it. The hope with this post is that I’ll get my tag cloud started, just by incorporating Technorati tags at the bottom. From what I understand thanks to JJulian, the tag cloud should ...
If you are using Windows Live Services, here is an update for you. The Wave 3 of the Windows Live Services Beta is now available for download from http://download.live.com The things which attracted me the most were Windows Live Movie Maker Beta Windows Live Photo Gallery Beta Windows Live Messenger New Version (super cool UI) Windows Live Calendar & Outlook Integration for Windows Live Contacts Enhancements to Windows Live Writer Beta (Now, one can upload videos to Soap Box directly) Optionally ...
Recently I attempted to setup an editor to connect to GWB. Until this post I used MS Word 2007 to post to GWB, as I was unable to get Windows Live Writer to install. WLW consistently gave the following error when installing: There was a problem with this installation. Windows Live Suite was not installed. Code: 0x800070643. I tried a number of steps to resolve this with MS's Help: Ran the installation outside my firewall, while downloading the executable to disk first. I also stopped my OfficeScan ...
I have been a big fan of Windows Live Writer since it was first available, and that continues with the latest CTP release. There have been a lot of changes between the last beta and this CTP, including some much needed UI improvements and new features, including: Upload videos to Soapbox Image cropping and tilting Additional border styles Support for LightBox and other image previewing effects (like Slimbox, Smoothbox, and others) Support for centering images Auto Linking Smart quotes/typographic ...
For the last month I've spent as much time writing Java code as C# code. And its definitely been a great learning experiences. Even though the core languages are very much alike, and you can usually find a function in .NET that corresponds to Java and the other way around, I've spent quite a bit of time yesterday trying something that should have been completely trivial. The Problem: having a Date variable loadDate that includes Date and Time, create two variables startDate and endDate where StartDate ...
Here's what I've learned in a recent fight with a nasty object disposal bug. Every .NET developer needs to understand object disposal. Start with DG Update: Dispose, Finalization, and Resource Management for a complete discussion of the topic. Carefully implement the pattern. Here's the bug I had to deal with: protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { // dispose of managed objects // dispose of unmanaged resources } disposed = true; } } Both the managed objects ...
A heated discussion broke out at work today over the pros and cons of allowing the UI to reference the data access layer. I'm agnostic about this myself, but we have enforced this restriction and thus have a lot of pointless pass-thru methods that need to be maintained. Without discussing the merits of any of this, I was wondering, theoretically, how we could avoid writing pass-thru methods were we to use a more dynamic language. Enter boo and its duck typing. Say I have a TestRepository, and it ...
I've made allusions to my current project several times, and while I can't discuss it with specifics, but I'm working with hardware; part of the device is an armature that extends to receive a piece of equipment from the user, and then it will once again extend to re-dispense the object at the conclusion of its task. The armature controller hardware is strictly asynchronous, and as such, I decided initially to write it with asynchronous callbacks. It's fairly straightfoward to have a method called ...
I had to search through an audit table to find times when the value changes in a specific field. Considering an audit table DateModified DateTime ID varchar() Quantity decimal Price decimal I wanted to find the rows when Quantity changed for the same ID. I've been able to accomplish that using the ROW_NUMBER function of SQL 2005 Here's the query: select Row_Number() OVER (PARTITION BY ID Order BY ID, DateModified) as RowID, DateModified, Quantity, ID INTO #TempData from AuditTable select a.ID, b.DateModified, ...
I'm very glad to tell you that your ".NET Research" personal blog is compatible with Windows Live Writer. You can compose, format, insert photos inside your posts offline and publish when you become online totally from this client without even opening the ".NET Research" site. Let us the steps to do this assuming you have properly installed Windows Live Writer. Step 1. Run Windows Live Writer and Weblog > Add Weblog account.. Step 2. Choose another weblog service like the following screen and ...
As you might have noticed, my last post included Technorati tags. This blog has been listed with Technorati for quite a while now, but I've never actually tagged any of the posts. Even when Subtext added tag cloud support, I didn't bother with it. I'm not sure why I am now (perhaps the fact that the actual post categories aren't being displayed correctly has something to do with it), but I'm starting to add tags to my posts. I can't guarantee that every post will get them until tagging becomes second ...
The Unity Application Block Feb 2008 CTP (from now on called Unity) is released on www.codeplex.com/unity. It's a lightweight dependency injection container with support for constructor, property and method call injection. To get people started with this, I created a small example. Actually I ported my Dependency Injection with Spring.NET example from some posts ago to this release of Unity. This sample shows how a class can get an reference to another class through its constructor. Hit this link ...
As my interest grows to learn more about the J2EE development platform (I strongly believe that knowledge of both platforms is needed to work in an IT architect role) I started looking at Spring.Net. Spring is the most widely used application framework in the Java world. Spring is somehow comparable to what the Microsoft Enterprise Library is offering. (Hmm, not exactly ...) Spring (and also Spring.net) supports the Inversion of Control (IoC) principle in a really easy and efficient way. Not as complex ...
I did some research in the OR mapping capabilities of the ADO.NET Entity Framework with Beta 3. Goal was to see how inheritance works. Here a quick walktrough. Database Started with 2 tables (wich have a 1-1 relationship). Table Employees which holds Name and JobTitle.Table SecurityInfo which holds Username (let's assume that this field is a network login) Entity ModelCreated the EntityTypes in the Entity Data Model as followed. NetworkUsers is inherited from Employee. Here Employees is mapped to ...
I put together a WCF REST over HTTP service and learned a few things along the way. Sample Project The best way to learn about WCF REST is to examine the sample project supplied by Microsoft. This is available at Windows Communication Foundation (WCF) and Windows CardSpace Samples. Once you unzip the download you'll find C# and VB sample projects at TechnologySamples\Scenario\... These simple projects demonstrate everything you need to know. Creating Your Own Project The Visual Studio project ...
Let's assume you have an object on which you want to call a method which is defined in an interface which is implemented explicitly by the type (=class) of the object. public interface ITheInterface { void AMethod(); } public class MyClass : ITheInterface { void ITheInterface.AMethod() { //... } } To call the method, the object has to be casted to the type of the Interface because the methods are not available on the object itself. This is the normal way to work when doing explicit interface implementation. ...
I stumbled on this feature in Windows Live Writer that will help some of our bloggers, and other bloggers,who want to load previous posts (that might not have been authored with Live Writer) and make changes to them. In my case, I wanted to add some tags now that Geekswithblogs.net supports them. Check out this quick screencast that explains how to open posts and add tags. Tagging Previous Post with Windows Live Writer Technorati Tags: Windows Live Writer,WLW,Tagging,Tags ...
As part of an effort we are doing at AJI Software to better instruct our bloggers on how to use the software, we will be launching a series of Screencasts, using Camtasia Studio from TechSmith, to help with a few areas of site. The first screencast is on Tagging using Windows Live Writer and Geekswithblogs.net. If you experience difficulty with the audio making weird blips and beeps, check out this post from TechSmith. On my MacBook Pro, running Vista Business, I had to go back to revision 39 of ...
I just came across Steve's blog post about a new Search & Replace plugin for Windows Live Writer written by Waldek Mastykarz. This plugin fills a pretty big gap in WLW and even has support for regular expressions. The code is available on CodePlex ...
I set my laptop to dual boot Vista and discovered a some interesting things when I was done: The new operating systems was the default, when I wanted the original operating systems to be the default I had 2 operating systems with the exact same description (Microsoft Windows Vista) The selection timeout was 30 seconds My old friends boot.ini and bootcfg are history! In Vista, BCDEdit replaces bootcfg. I can list my operating systems simply by running BCDEdit in the shell: C:\Users\Dave>bcdedit ...
My application is distributed via ClickOnce and a requirement is to be able to provide endpoint overrides for multiple environments. Here's what was done to create the solution Smart Client Software Factory includes a service called EndpointCatalog. It allow for easy management of endpoints with environment overrides. Start by adding a Microsoft.Practices.SmartCl... as a reference to Infrastructure.Module. Then open ModuleController class in and register the EndpointCatalog service. ...
A bunch of unsubmitted stuff I've found in my travels: Akira Onishi has added page zoom to the page turn app; DScharfschwerdt has put silverZoom on CodePlex; Mike Taulty talks about Expression, SL, and Live Writer; Tim Sneath and Somasegar discuss SL 2.0; and Somasegar discusses Expression Blend SP1 and VS2008. From SilverlightCream.com: How to add the zooming feature for your Silverlight Page turn application with Silverlight 1.0 This is actually a very cool feature by Akira Onishi from apparently ...
I have now been blogging since June 2005 and back around the middle of the year I started realising that my original blog at geekswithblogs.net/wallabyfan had got to the point where it was attracting 8,000 - 10,000 hits a month, I also started reading reports that advertising via web was really taking off and that it was possible to earn something of an income from either a Blog or a Web Site, and so from that I started looking at possibilities. Don't get me wrong, geekswithblogs.net is a really ...
This is my first test post with Windows Live Writer 2008. I hope it will not mess up when I paste source code .... But back to business. VS2008 formerly known as Orcas is out! It is just great and has many cool features inside it. You can download various editions of Visual Studio 2008 at the following locations. One of the best features are Language Integrated Queries (LINQ). The first question that does arise is if LINQ to Objects is able to replace common for loops in terms of performance in every ...
The following code doesn't work; the exception message reads "Root element is missing.": MemoryStream transformed = new MemoryStream(); XmlDocument doc = new XmlDocument(); XmlReader input = null; XslCompiledTransform xslt = new XslCompiledTransform(); input = XmlReader.Create("Example.x... xslt.Load("Example.xslt"); xslt.Transform(input, new XsltArgumentList(), transformed); try { doc.Load(transformed); } catch (Exception ex) { Console.WriteLine("XmlDocum... failed: {0}", ex.Message); } Console.ReadLine(); ...
I finally got around to downloading the Beta version for Windows Live Writer from here. It does have a few features that we don't have on the geekswithblogs.net web site... Such as inserting map links... The most interesting feature found so far are plugins that can be added to blogs. It looks like they have built some integrations with Flickr, and Visual Studio (I will definitely be using this one), Picasa, and Snagit. Here is a sampling. It took forever to install Live Writer, but the plugin feature ...
Polymorphism is a basic concept in object orientation meaning that a reference to a derived class is type-compatible with its base class. Sounds abstract ? (Hmm ... it is) Look at this example : public class ParentDataType { public String data1; } public class ChildDataType : ParentDataType { public String data2; } public class TestClass { public void DoSomething1(ParentDataType p) { } public void DoSomething2(ChildDataType c) { } } In this example the ChildDataType inherits from the ParentDataType. ...
A couple of weeks ago Microsoft released Windows Live Writer Beta. This is a tool that can help you maintain your blog(s) on a easily and structured manner. And ofcourse, because I'm one of the biggest tool lovers on this planet, I had to figure out this new tool. My conclussion: This is another tool that has become very favourite to me. Now I can do 2 things: #1. I'm gonna tell you everything about this new piece of software and need to sit down for a big moment to write it all down. Or,..... #2 ...
I've been experimenting with dynamically created tabs in WPF. The idea is that the user selects a menu item and a tab is created and populated with a user control. Like so many things, WPF makes this easy once you figure out how to do it. The thing I struggled with the most was getting the user control to display when the first tab was created. Below is a function that takes a user control and tab name, creates a tab, and shows it to the user. /// <summary> /// Create a new tab, populate it ...
WCF and AMSX really have a good interopability. Of course ... both technologies are based on SOAP, so they should be. Also SOAP headers are supported and the VS2005 asmx proxy generation (add webreference) supports this by adding the headers as properties of the service class. Very convenient. Once these properties are set at the service level, for every call to an WCF operation this headerdata is send to WCF service and is available during the operation. This can be used in the scenario where every ...

Testing from Windows live writer :)

Most applications have some kind of exception handling routine where the details and stacktrace of the exception are logged in a file (or even beter through a central webservice). In this details you could not only put information about the exception but also the time, username, ip addresses, OS versions, hardware specifications, information about other running processes, etc. All this to have a beter understanding of the cause of the problem. But how can you know where in the application the users ...
I miss having admin rights to my laptop. All my development work is done with Virtual Machines now and I'm locked down on my laptop so I can't install anything that is beta or not directly work related. That included Windows Live Writer which I enjoyed using to post to my blog. But no longer ! Scott Kingery has released Windows Liver Writer Portable version 2.0 (apparently I missed version 1.0) so now I can get back to blogging semi-regularly. [via Download Squad] ...
I just rebuilt one of my machines to run the 64 bit version of Windows Vista. When I tried to install Live Writer I needed to use the new single installer package released last week. Well, it doesn't work on x64. I sent an e-mail to Microsoft, and they said a lot of people have reported the problem and they are working on it. They gave me a work around but it just launched the same installer with different options, so it crapped out too. The odd thing is, all the individual packages should work on ...
WCF supports the Duplex Message Exhange Pattern through the wsDualHttpBinding. Using this pattern the service can call back to the client while executing a call it got from it. One possible scenario for the patterns is that when a client calls a service, the service decides to ask the client for more data before returning the answer to the client. So the client acts as a service for the incoming call from the called service. In this code example we assume the client and service share a common assembly ...
When testing with X509 certificates it's sometimes hard to refer to the needed key in the certificate store. It is easier to load them from a file. The Certificates MMC snap-in allows you to export the private key to a file with the .pfx extension. This file must be protected by a password which you have to specify in the code that loads this file as the certificate to be used. Steps to export ... Code Here's some code to load this .pfx file and use it as the clientcertificate. //using System.ServiceModel; ...
By using the MVP (model-view-presenter) pattern you create a clean separation between the code in eventhandlers of UI components and the business related logic behind the UI. It creates a loose coupling which results in the ability to change the technology used for the UI without the need to change and recompile the business logic. Besides this behavior you also get the benefit that your logic can be tested without the need to even use the UI components. The tests can be automated by NUnit so multiple ...
I was recently migrating an old blog to community server through the web services API. For some reasons while migrating over the posts, it would die after the 36th item every time while giving a generic "The post could not be added" error. I thought that it could be something to do with that specific post, so I removed it from the list to migrate. Same error. So I began to wonder if it was some spam post count limiter, and there was no blog posting limiter. Needless to say, I was pretty confused. ...
I'm a big fan of Windows Live Writer and use it almost exclusively to write my blog posts. As a result of this, I'm always on the lookout for new and useful plug-ins. Since I have accumulated quite a few of them, I thought I'd share my favorite plug-ins. These are listed in no particular order. SkyDrive Embed Plugin Allows you to easily embed a file or folder from your public Windows Live SkyDrive account. You can specify 3 different embed formats. Paste MSDN URL Allows you to paste a URL from any ...
The CAG isn't a easy part of WF to learn. So I put together a small WF application that shows how this activity works. CAG is an activity that can contain sequences of childactivities which will be executed one or more times depending on conditions. There are multiple conditions involved for the CAG to make the decision whether to execute the childactivities. * The until condition of the CAG itself. This is evaluated when the CAG starts. Only when it's false the CAG continues. * The when condition ...
When working with userconrols (winforms) in a mutiproject solution in Visual Studio you can experience problems when building. Especially when the controls are using resource files. Visual Studio keeps the assemblies with the usercontrols open and can not recompile them. Even when performing a clean solution you get an error saying 'Unable to delete file, access to path denied'. This can be solved by following procedure : 1. Close Visual Studio. 2. Delete the bin and obj directory of each project. ...
class GenericSerializer<T> { static public string SerializeToString(T o) { XmlSerializer ser = new XmlSerializer(typeof(T)); StringWriter writer = new StringWriter(); ser.Serialize(writer, o); return writer.ToString(); } static public T DeserializeFromString(string Xml) { XmlSerializer ser = new XmlSerializer(typeof(T)); T obj = (T)ser.Deserialize(new StringReader(Xml)); return obj; } } ...
When running workflows from a windows forms application the events raised by the WorkflowRuntime run on seperate thread than the user interface. So it's not possible to update controls in the form from these events. You get an InvalidOperationException saying "Cross-thread operation not valid". You can solve this by using the System.Threading.Synchroniz... It allows you to post an anonymous method to the UI event queue from within the workflow events which can update the UI controls. Example ...

Thought I'd give the Windows Live Writer a try for blogging to GWB......please excuse this spurious post.

It's been a while since I last blogged. I'm still doing my xna stuff on the side however, now that I'm working, and I'm engaged again, I'm having smaller and smaller amounts of time to dedicate towards xna. At work though, I'm still playing with .net. :) I'm recreating the Inventory Application that I made last year. This time with Ajax, Crystal Reports and an SQL Server. It's extremely complex, with lots of parts to it. Parts Technology Work Orders - Add notes, Complete, Due Dates for Work Orders ...