ReSharper 4.5: Remove Regions around Interface Members

I just upgraded to JetBrains ReSharper 4.5, a productivity tool I dearly love…,  ok, so you know when someone says that they are about to rip someone a new one ;-).  Well, I am not going to rip too bad.  I will just say I DO NOT like regions, used them when I was a boy, but now I am a man, ok, so you get the picture ;-).

So, here is the story I am working along writing a WCF Service for my current project, and run the Full Cleanup (Alt-Ctrl-Shift-F) and after it is done, I see these #region tags around the members that implement the interface.  I instantly start looking for how to turn that off. 

Here are the steps I took to do just that:

  • Go to ReSharper->Options
  • Navigate to Languages->C#->Type Members Layout
  • Uncheck Use Default Patterns (Don’t be scared, the Custom Patterns populates with a lot of XML, Don’t Panic!)
  • Scroll almost down to the bottom of the text, looking for <!—interface implementations –>
  • Delete the <Group>…</Group> tags

Now running the Cleanup does not add pesky regions around my interface members, I am going to have to spend more time in these setting because I have a feeling this is not the only place they have sneaked into.

Oh, if you delete that line and want to get it back, just check the Use Default Patterns and apply the settings, it will re-write the default settings.  I verified this on my install and it worked fine.

*UPDATE*

I spent a few more minutes today and just did a blanket remove of any of the <Group>…</Group> in the Type Members Layout and all is good.

Best Format for a Blog Post, Article, or Tutorial?

Today I was looking for guidelines for formatting blog post and came across an article by Scott Mitchell titled “What’s the Best Way to Format a Title for a Blog Post, Article, or Tutorial?”.  In the post he gives 4 options for a title of a post on “Grouping Data using the ASP .NET ListView Control”.  I started typing a reply to his post but thought it would be a good idea to blog my thoughts on this to continue the conversation and document my thoughts in a place I can easily find ;-).  Yeah, sometimes I blog about stuff as much for myself as I do for others.  You see I have a very bad memory and my blog is also my online knowledge base, but I digress.

So how does one determine a good title for a blog post, article, or tutorial? 
This is especially difficult with all the competition for site traffic and search engine optimization worries out there.  I just want to worry about the content of my post and not so much about the ranking of it, but to make sure those that need to find my solution can, we have to put some thought into it. 

So here are my simple guidelines for selecting titles for my content.

  • Go to your favorite search engine and pretend you are looking for your article, what do you search on?   Write down the keyword you use.  Continue to do a few other searches pretending that your first did not return what you where looking for.  Write those down as well.  Once you have identified the 1-5 key words that would return what you are looking for see if you can make a title out of it.  Usually you can just put those words together and you have it.  Using Scott’s example my choice was “Grouping Data using the ASP .NET ListView control” because if I were looking for info on this topic I would have searched for the keywords Grouping, ListView, and  “ASP .NET”.  Possibly adding C# if I got a bunch of VB .NET results first ;-).

 

  • If you are posting on a solution to an error, such as “(407) Proxy Authentication Required”, use that at the title. Because we usually just copy and post the error message when looking for solution like this.

Well, there you have it, not very sophisticated but it works for me.  Thanks to Scott Mitchell for asking the question and forcing me to think about it.  Until I read his post I hadn’t really tried to quantify how I come up with titles.

If you have other guidelines for coming up with titles of your content and would like to share them I would love to hear them.

(407) Proxy Authentication Required in Windows Client Apps

I have downloaded many apps in the past to use at work only to find out that they do not properly handle the proxy authentication at my location.  At home they work just fine, but at work no way!  One was Witty the WPF twitter client, I actually downloaded the code and patched and submitted that back to the developer.  You now have the option to configure the proxy settings in the options windows.

Recently I downloaded Podder, version 2 has some awesome new skins for an WPF application but still doesn’t work through my proxy server.

I did some research and did find a solution, by adding the following to the config file, Podder.exe.config in this case you can define the default proxy behavior for the application. 

<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy bypassonlocal="True" proxyaddress="http://proxy.example.com:8080"/>
</defaultProxy>
</system.net>

It needs to be in the <configuration> node and it worked best if I put it at the bottom below everything else.  Putting it at the top made Podder crash, not sure that really had anything to do with it, but putting it at the bottom didn’t crash.

I wish more developers provided ways to configure the proxy server in their internet enabled apps, but they don’t.  At least now if can work around their laziness and hopefully get it to work any way.

Other apps that I plan to try this on are Blu, and DigiTweet to start.

Podcasting in Plain English

I always get asked to explain what podcasting is and how it works being a technical person I usually get into talking about RSS feeds, enclosures, blogs, bit rates etc.  Which by the way usually goes over their heads. 

I recently found a great video produced by the folks at Common Craft, if you are new to podcasting or have been wondering what all the buzz is about check it out.

Calendar

<<  March 2024  >>
MonTueWedThuFriSatSun
26272829123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar

Widget Category list not found.

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))X

Tag cloud

    Widget Month List not found.

    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))X

    Widget AuthorList not found.

    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))X

    Widget TextBox not found.

    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))X