by dotnetpete
15. June 2010 14:47
David Platt's article in the May edition of MSDN Magazine describes beautifully something I have been trying to put my finger on for a while now. His article is here.
In summary
- Your software has no value in and of itself.
- Software increases a user's happiness either by helping a user accomplish task or putting the user in a pleasureable state e.g. games.
- Users do not want to think about using your software.
Further on David quotes a retired NFL referee (but this would/should apply to referees of all sports), "We must do an outstanding job today because we don't want people to remember us. We must work the game so expertly that, later, it will seem as if we weren't even there".
To me this means software being an extension of the user, working within the user's defined rules and regulations and where possible not hindering the user by making them work the way the software was designed to work. Software should work the way the users want it to. I will qualify that to say the way users want to within their budget and sense of reasonableness. After all if customers had an unlimited budget they could still come up with wacky solutions that no one can use.
5a3123ac-550f-45b7-85fe-e259abd31696|0|.0
Tags:
by dotnetpete
23. April 2010 15:13
Shift-Del in VS2008 very nicely deleted the whole line and if the option "Apply Cut or Copy commands to blank lines when there is no selection" in Tools -> Options -> text Editor was not set it would not replace the contents of the clipboard with an empty string! Duh!
Now in VS2010 Shift-Del no longer works on empty lines unless the above option is set. But now this means that I am overwriting my clipboard with empty text.
Duh!
Update: I have since found that Ctrl-Shft-L will perform an Edit.LineDelete command which deletes the line regardless of what's in the clipboard. I have now remapped this command to Shft-Del and all is good.
35e39773-f349-4a0d-a2c4-51b7ab8a6b81|1|5.0
Tags:
by dotnetpete
23. April 2010 09:40
A friend recommended that a try a product called DPack from USysWare recently. It has turned out to be a very useful add on. They have just released a beta for VS1010 as well.
One feature that I particularily like is the ability copy and paste project references. Select one or more references, hit copy and paste them into another project.
There are many more useful features however. Alt-S for instance launches the solution browser (short initialisation required) where you can search for text throughout your solution, including filtering on classes, interfaces etc as well as starts with, ends with or contains.
e941202f-ee29-44f8-aa51-477e80b0703b|0|.0
Tags:
by dotnetpete
22. April 2010 11:22
I found an awesome SQL search tool from Red Gate this morning. SQL Search 1.0, which is free at this stage, integrates in with SQL Management Studio and presents itself as a toolbar. Click the search button and a SQL Search document tab is create allowing you to search for text (including exact match option). You can specify an object type (or all objects) and a database (or all databases) on the selected server.
The search is blindingly fast as well. Even across all databases on a server. In my case 25 databases on this particular SQL2008 instance.
You can download from http://www.red-gate.com/products/SQL_Search/index.htm/.
b40c5078-2d3c-41fb-9274-4ec8f90fbd18|0|.0
Tags:
SQL
by dotnetpete
16. April 2010 11:27
I am settling back into a work routine after the inaugural Australian ALM Conference which I found extremely worthwhile. Similar in style to a Tech.Ed with the important difference being that the ALM conference was all about what you can do here and now not in Tech.Ed style in 6-12 months time.
Speakers that I saw were all excellent and not too many people so that you couldn't get a question in.
Some topics that I found particularily interesting were, Intelli trace and the ability to run and debug code that a unit test was running and the test may have failed. Great step forward for testing and development integration, unfortunately only in the Ultimate edition of VS 2010.
2e96971f-12a1-4daa-9c57-ddf340d8d594|0|.0
Tags:
by dotnetpete
11. March 2010 22:48
The first annual Application Lifecycle Management (ALM) will be held April 13 and 14 2010 at Luna Park in Sydney. You can check out the full details here. The conference will also incorporate the Australian release of Visual Studio 2010 and .NET 4.0.
There are two tracks currently available, ALM and Visual Studio (with rumours of a SQL Track) and has a host of big name local and international speakers.
Some of the topics on offer were broached at last year's Tech.Ed on the Gold Coast, but where Tech.Ed is a preview direction and what's possible, this conference will fill the gaps that left you hanging from Tech.Ed.
I can thoroughly recommend a look to see what's on offer.
26270afb-fae4-425b-ae09-7bf2f6f33ebb|0|.0
Tags:
by dotnetpete
1. February 2010 16:55
I had been noticing that it took longer than expected to display the designer in Visual Studio for a web page or a WinForms form.
One of the guys here found an option in IE (Tools -> Options -> Advanced tab -> Under the security group -> Uncheck "Check for publisher's certificate revocation").
This made a huge difference in going from code view to designer view.
No idea why an IE setting would affect WinForms projects or designers in general.
ca2dfc1a-b3d6-4d29-9f4b-7ce356c5db4a|0|.0
Tags:
by dotnetpete
15. January 2010 17:52
It can be frustrating when a client calls up and reports that the system is going slow all of sudden "with no one else on the system."
After investigating the usual suspects that slow the system down, indexing issues are what can some to mind next.
Needle in a haystack I hear you say!
Well SQL Server 2005 and above very cleverly keeps track of what it considers missing indexes when detetmining query plans.
You can query the sys.dm_db_missing_index_details management view and there are others if you're interested here.
This is information is gathered for all databases since the last time the SQL Server instance was started. Querying sys.dm_db_missing_index_details will return details of missing instances for all databases in the instance your current database is in.
by dotnetpete
6. January 2010 16:55
I have been running Windows 7 since Tech.Ed Gold Coast last year and have been quite impressed so far.
One tid bit that I learnt today was the god mode feature.
Create a directory anywhere and name it "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" and a special "view" is created where you can change settings etc.
eef84d40-747c-45df-896a-8d5ec7c6d963|0|.0
Tags: windows 7
by dotnetpete
9. December 2009 22:41
What a bunch (pardon the pun) of idiots. A very popular topic of conversation is bank bashing. People love to hate the banks. Insert other big monolith as banks are temporarily forgotten. But now people can get more specific and hate Westpac. It would be funny as a comedy sketch but to come from Westpac themselves it's beyond belief.
A + B = C right?
Apes + Baboons = Chimpanzees!
Once upon a time the was an interest rate cut, which wasn't passed on in full and certainly wasn't passed on on the day of the cut. Then the storm passed and interest rates went up, on the same day as the offical rate changed and for more than the official increase.
This will be written about in markerting books of tomorrow and people will wondering how people could be so dumb!
You bankers!
2546398e-3604-4604-a4bc-481c06857f20|0|.0
Tags:
by dotnetpete
2. October 2009 12:32
Slightly off topic but it's something that has annoyed me. The Breakfast Creek Hotel in Brisbane has great steaks and an unadvertised gem in the form of steak rolls with bacon sauce and coleslaw. Ok so it's not really a promotion for healthy eating and it does take quite a few ks on the bike to burn off (because one is never enough).
Recently on my regular Friday lunchtime pilgrimage I was shocked and horrified that they had gone from $6.50 to $9.50.
They are now using better quality steak they protested when I told them that $9.50 was ridiculus.
I have started an online petition (for whatever that's going to be worth) at:
http://www.petitiononline.com/BCSR101/petition.html
If you love your steak rolls as a reasonable price, let them hear it.
d43b4b79-33ed-4af5-bebd-38f08624a194|0|.0
Tags:
by dotnetpete
2. October 2009 09:51
I was running Windows 7 happily today when it blue screened. On restart I was presented with the following dialog to help me diagnose the problem. At least they can't make the event name any clearer.
What's next? The Xbox informing users that they have a RROD?

25d28e41-94ac-46f0-990a-c9ef770dcf1f|0|.0
Tags:
by dotnetpete
24. September 2009 11:45
I found a post for the macro code in VS to collapse regions only (and not methods) here.
I have mapped collapse all to Ctrl-R,C and expand all to Ctrl-R,E.
I got thinking about other useful key combinations and found that in the text editor Ctrl-Q is not assigned so I did:
Ctrl-Q,A to close all documents
Ctrl-Q,W to close all but the current document.
I am forever closing all before shutting down VS (or killing the process).
by dotnetpete
16. September 2009 10:08
Sara Ford was a speaker at a very popular session at Tech.Ed last week about visual studio top tips.
There is an entry on her blog about the top 25 here.
by dotnetpete
16. September 2009 09:36
I came across a very annoying problem with VS2008 and IE8 where you can't turn off script debugging.
The workaround is documented here where you download the silverlight tools for VS2008 SP1 and turn on silverlight debugging. Because the debugger can't debug javascript and silverlight at the same time, javascript debugging is effectively turned off. Interestingly, to enable silverlight debugging I had a slight variation to the steps below.
Right click on the project -> properties, go to the web tab, and check the silverlight option under debuggers.
The original steps are:
- This work around requires the Silverlight 2 Tools for Visual Studio 2008 SP1 to be installed. So if you don't have these tools installed, you can download them from Microsoft (download here). If this is not an option for you, there is some alternative work arounds at the bottom of this blog post.
- Right click on your project and open up project properties
- Go to the 'Start Options' sheet, and click the 'Silverlight' button at the bottom of the screen. Because the debugger cannot debug both Silverlight code and Script code at the same time, this will disable Script debugging and therefore avoid the problem.
Alternatively you can turn off script debugging altogether:
- Open a new command prompt (start->run, cmd.exe). If you are on a 64-bit computer this needs to be a 32-bit prompt (start->run, c:\windows\syswow64\cmd.exe)
- reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f
And to re-enable:
- reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {170EC3FC-4E80-40AB-A85A-55900C7C70DE} /f
Happy non-script debugging.