papadi Development Blog

.NET and Software Development by Dimitris Papadimitriou 

Resharper and RIA Services

(The following are applicable to current Resharper and RIA Services releases (see post date). I'm sure it will be fixed in the future)

Watch it RIA Service users that use Resharper!
RIA Services has a strange way (personal opinion) of doing code generation for references services, instead of using the traditional Service Reference approach. Actually, regardless of Resharper and the problem I'm describing underneath, when I first saw a RIA Services application I was really wondering how this works.
And it seems that Resharper is "wondering" also! That's why if you are using Resharper code inspection and/or intellisense you will notice that the classes that are supposed to be generated by RIA Services are not "visible" in your project. Actually if you do nothing, but just create a new 'Silverlight Business Application' using the Visual Studio template and open then App.xaml.cs you will see the picture bellow.
To fix this you have two options:
  • Disable Resharper completely (Tools>Add-in Manager in Visual Studio)
  • Disable Code Inspection and Intellisense of Resharper and let the Visual Studio do it:
    1. Resharper>Options in Visual Studio...
    2. Environment>Intellisense>General
    3. and Code Inspection>Settings

Filed under  //   .net   silverlight  

Comments [2]

Finally! Create Project, Add New Item and Add Reference dialogs are fast!

I just installed Visual Studio 2010 Beta 2 on my machine. I only had little time to play with it so far but I'm so excited! Finally dialog boxes are fast! I never understood so far why 'Create New Project' and 'Add New Item' were so slow in previous versions! Any why 'Add Reference' was opening .NET Assembly tab by default and not Project tab.
Guess what! Huge improvement in VS 2010! Dialogs open extremely fast and Add Reference shows Project tab by default now. And even if you press COM or .NET tabs they are rendered in a few milliseconds!
Startup time of Visual Studio itself seems also improved!

Filed under  //   .NET   Visual Studio  

Comments [0]

CNET TechTracker - Scan your computers for new software versions

CNET TechTracker (www.download.com) can help you get notifications when a new version of software installed on your machine is released! It really works! You can configure to automatically run on windows tray and check for new software daily, weekly, monthly or manually. I suppose that this is possible only for software being distributed over download.com, but this is fairly big software database!
The results are reported to you with a tray notification or on the web. I've seen other applications like this one in the past, but none from such an important vendor like CNET. I suggest you try it out! See part of the results for my PC...

     
Click here to download:
CNET_TechTracker_-_Scan_your_c.zip (240 KB)

Filed under  //   Tools   Windows  

Comments [0]

E-commerce modules for DotNetNuke

Some time ago I was involved in a project of creating an online store for a Greek firm. The store was to be implemented using dotnetnuke. I made a research back then to find what was the most appropriate dotnetnuke module for that particular case. I run into a blog post which was presenting some, but the most interesting part was the comments under it. If you search you will find a couple of mine also there.
Its been several months now that I keep getting notifications about new comments on that post. The discussion goes on and on... Its quite interesting, have a look...

Filed under  //   .net   dotnetnuke   web  

Comments [0]

Use REST and let others do the caching for you

I run into an (one year) old article of Udi Dahan today. He explains how REST can be used to scale up an application, of course without the need to add additional hardware.

The idea is simple. If you have a SOAP web service that thousants of clients call, then a common practice would be to add caching behind it, in order to avoid hitting your database (or other resources) for each request. Common and cheap practice that works up to some extend.

However, If you use REST instead of SOAP for your service, then your responses are simple HTTP responses. Therefor you can add some HTTP headers in them, forcing the intermediates of the communication (proxy servers for example) to cache the response themselves. The result would be that when the client tries to hit your server, intermediate servers will return the cached response instead of hitting your server. Nice!!!

Read the article...

Filed under  //   Web  

Comments [0]

Model - View - ViewModel in Silverlight

I'm trying to find my way into the Silverlight world lately. And one of the most predominant phrases in this world is Model-View-ViewModel pattern or else MVVM. This good old pattern suggests the separation of concerns in the UI tier into the three distinctive layers it's name indicates. I've never dealt with MVVM before and as I said Silverlight is also new to me. Therefore I'm trying to read as much as I can before digging into the code.

The most enlightening article I've read so far is Kathleen Dollard's "Applying Model-View-View Model in Silverlight". Kathleen explains how MVVM can be helpful, how to apply it in Silverlight, but also which MVVM promises can be elusive and which not!

Another article I read during my vacations was Shawn Wildermuth's.

Filed under  //   .NET   Silverlight   Web  

Comments [0]

Google uses ClickOnce to download Google Chrome!

I had a little problem today accessing a web resource and I decided to download Google Chrome "to get a second opinion". The last time I did the same thing was quite some time ago and since I got a new laptop recently I hadn't installed it yet. And guess what I found out? Ok, you don't have to guess... you read the title...

Yes, Google uses Microsoft .NET's ClickOnce technology to download and automatically upgrade Google Chrome in Windows Environment! If this is not a surprise what is!? Check it out...!

However... and thankfully at the end of the download there is an alternative way to get the traditional setup file, just in case something goes wrong. One would argue... what could go wrong? Well... in my case the clickonce installation did fail with the following exception: Win32Exception: The system cannot find the file specified! Now, now... don't start blaming Google or Microsoft about this!

Filed under  //   ClickOnce   Google  

Comments [0]

Donating your software

I've blogged about Balsamiq Mockups in the past. Excellent tool that was really missing from my toolbox for a long time! I fully recommend it. I give Five Stars!

But the reason I'm writing this post is not about how useful and engenious it is but its about the latest blog post Peldi Guilizzoni (creator of the software) wrote. The title is "Donating Your Software: A Whole Lot of WIN!". Interesting way to look at software. Sure, being a member of WWF or Greenpeace or sending some money to Médecins Sans Frontières are noble gestures. But this is not the only way to "save this world"! Read the blog post!

Filed under  //   Business  

Comments [0]

Interlude... my Athens Theme Pack for Windows 7

I installed Windows 7 RTM a few days ago and I decided to create my own theme pack using Athens as theme! The theme contains a number of photos from the city...

  • The Parthenon
  • Temple of Poseidon (Cape Sounio)
  • The Athens Academy
  • Panathinaikon Stadium (Kallimarmaro)
  • Stoa of Attalus
  • Herrodion Theatre
  • The Acropolis Museum

Here is the link to get my theme... enjoy!

Do you want to create your own theme pack? Here are the instructions...

Filed under  //   Interlude  

Comments [5]

WCF FAQ

Fellow MVP Shivprasad Koirala put together an excellent series of three articles with Frequently Asked Questions regarding the Windows Communication Foundation. Take a look...

WCF FAQ Part 1 : This is a 20 question FAQ for beginners which explains basic concepts of WCF like End points, contracts and bindings. It also discusses about various hosting methodologies of WCF service. The article finally ends talking about bindings and one ways operations in WCF.

WCF FAQ Part 2 : This FAQ covers 10 questions which talks about concepts like duplex contracts, hosting WCF on different protocols, MSMQ bindings, transaction isolation levels and two way communication. The article finally ends talking about two queues volatile and dead letter queue.

WCF FAQ Part 3 : 10 security related FAQ

Filed under  //   .NET   WCF  

Comments [0]