Friday, August 21, 2009

Configuring AnkhSVN revisited

Turns out they got rid of the Tools/AnkhSVN menu option. It's now integrated all over the place. The configuration I was looking for is in Tools/Options/Source Control. Never mind that I spent several hours hunting down the configuration by reading source code. Arg!

Thursday, August 20, 2009

Configuring AnkhSVN 2.1.7141.181 when the configuration dialog does not appear in Visual Studio

For some reason my Visual Studio does not display a menu option to configure AnkhSVN 2.1.7141.181, so below are the registry settings to configure it to use TortoiseSVN. But first, a list of the settings.

Setting NameDescription
MergeExePathPath of the executable used for merging, including all arguments.
DiffExePathPath of the executable used for diffing two files, including all arguments.
PatchExePathPath of the executable used for applying a patch, including all arguments.
InteractiveMergeOnConflictIf true, launch an interactive merge on a conflict. Default value is false.
FlashWindowWhenOperationCompletesIf true, window flashes when operation completes. Default value is false.
AutoAddEnabledIf true, new project files are automatically marked for adding to Subversion. Default value is false.

Following is a .reg file containing registry settings to use TortoiseMerge for all diff, merge, and patch operations:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\AnkhSVN\AnkhSVN\VisualStudio\8.0\Configuration]
"DiffExePath"="$(HostProgramFiles)\\TortoiseSVN\\bin\\TortoiseMerge.exe /base:\"$(Base)\" /mine:\"$(Mine)\" /basename:\"$(BaseName)\" /minename:\"$(MineName)\""
"PatchExePath"="$(HostProgramFiles)\\TortoiseSVN\\bin\\TortoiseMerge.exe /diff:\"$(PatchFile)\" /patchpath:\"$(ApplyToDir)\""
"MergeExePath"="$(HostProgramFiles)\\TortoiseSVN\\bin\\TortoiseMerge.exe /base:\"$(Base)\" /theirs:\"$(Theirs)\" /mine:\"$(Mine)\" /merged:\"$(Merged)\" /basename:\"$(BaseName)\" /theirsname:\"$(TheirsName)\" /minename:\"$(MineName)\" /mergedname:\"$(MergedName)\""

[HKEY_CURRENT_USER\Software\AnkhSVN\AnkhSVN\VisualStudio\9.0\Configuration]
"DiffExePath"="$(HostProgramFiles)\\TortoiseSVN\\bin\\TortoiseMerge.exe /base:\"$(Base)\" /mine:\"$(Mine)\" /basename:\"$(BaseName)\" /minename:\"$(MineName)\""
"PatchExePath"="$(HostProgramFiles)\\TortoiseSVN\\bin\\TortoiseMerge.exe /diff:\"$(PatchFile)\" /patchpath:\"$(ApplyToDir)\""
"MergeExePath"="$(HostProgramFiles)\\TortoiseSVN\\bin\\TortoiseMerge.exe /base:\"$(Base)\" /theirs:\"$(Theirs)\" /mine:\"$(Mine)\" /merged:\"$(Merged)\" /basename:\"$(BaseName)\" /theirsname:\"$(TheirsName)\" /minename:\"$(MineName)\" /mergedname:\"$(MergedName)\""

Here is the file AnkhDiff.Tools.cs that contains all the settings. Look for the functions GetDiffToolTemplates(), GetMergeToolTemplates(), and GetPatchToolTemplates().

When putting these into the registry by hand, make sure to change all single quote with a double quote. (There must be code in AnkhSVN that already does this.)

5 ways to answer managers' unfair software test, QA questions

5 ways to answer managers' unfair software test, QA questions: "About 20 years ago Tom DeMarco defined the unfair software question with his article, Why does software cost so much?. DeMarco claims it is not a question at all, but an assertion or a negotiating tactic. These questions also come up in software testing. Here are a few of my favorites:
'Why didn't QA find that bug?'
'Why is QA always the bottleneck?'
'Why do we have so many bugs?'
'What can we do to improve throughput from QA?'
'Are we done testing yet?'

Taken at face value, these may appear to be fair questions. But let's look at the assertions that are hidden inside of them:

'QA should have found that bug.'
'QA is the bottleneck.'
'We have too many bugs.'
'Testing is taking too long.'
'Testing should be finished by now.'"

Sunday, August 16, 2009

Can't connect to F5 Firepass using OneCare

This was really irritating until a coworker mentioned that he couldn't connect with OneCare. All my previous Google searching was for naught.
"I found a solution that worked for me. In One Care, select Change Settings. This will open the Windows Live OneCare Firewall Advanced Settings. Select Ports and protocols tab. Then, select Add... this will open the POrt and Protocol Information page. Enter a Name in the Name text box. I entered "F5 VPN Port". Select TCP from the TCP or UDP drop down control. For port range, enter: 44444 to 44444. For the Connections, select: Outbound. For Scope, select Internet."

Wednesday, August 12, 2009

How to create a global error handler for your application

From Microsoft. Reminds me to include things like Request.Form and Request.QueryString in the log. Interestingly, they also include Exception.TargetSite and Exception.Source, which I hadn't considered before. Both might be useful.

Tuesday, August 04, 2009

10 best practices for successful project management | 10 Things | TechRepublic.com

10 best practices for successful project management 10 Things TechRepublic.com: "Given the high rate of project failures, you might think that companies would be happy to just have their project finish with some degree of success. That’s not the case. Despite the odds, organizations expect projects to be completed faster, cheaper, and better. The only way that these objectives can be met is through the use of effective project management processes and techniques. This list outlines the major phases of managing a project and discusses key steps for each one."

Friday, July 31, 2009

How to display an assembly in the "Add Reference" dialog box

How to display an assembly in the "Add Reference" dialog box: "When you are developing a class library, you may want Visual Studio .NET to list your library in the Add Reference dialog box on the .NET tab without the user having to browse for it.

This issue is not resolved if you install your assembly to the global assembly cache, because the Add Reference dialog box is path-based and does not enumerate the components from the global assembly cache."

Use Case/Project Management Stuff

Some musings/notes.

OpenUP -- their developer and tester stuff is cool. Also the risk management, and the prioritization (like kanban). The Powerpoint was very good.
Use Case structure -- see the wikipedia article for things to include.

Alistair Cockburn's points:
  • Structure use cases with goals.
    • Non-functional requirements can be attached to goals.
  • Goals have levels - high, low, overarching, short-term detailed, etc.
  • Include Stakeholders and Interests - helps separate the wheat from the chaff
  • Levels:
    • Brief - 2-4 sentences, for instance in a spreadsheet cell
    • Casual - a few paragraphs
    • Fully dressed - long template, include stakeholders, minimum guarantees, postconditions, business rules, performance constraints, etc.
  • Alternative behaviors are more important than the main scenario!! For instance, they reveal subtle requirements.
  • Do not use UI elements!
  • His resources, templates, etc.
Long use case structure, probably for the detailed view:
  • Name
  • Version
  • Goal - very important
  • Summary
  • Actors
  • Precondition
  • Triggers
  • Basic course of events
  • Alternative paths -
  • Postconditions
  • Business Rules
  • Notes
  • Author and Date
Iconix talks about Robustness Analysis

Wednesday, July 29, 2009

Shrinking ViewState when using dynamic controls in ASP.NET

"For 'static' controls (meaning controls declared in your .ASPX page) the ViewState carries VERY little overhead, if any at all. Though for Dynamically Created controls the situation is a bit different. Very often when you create Dynamic Controls this is a three phase run:
  • Instantiate the Controls
  • Set its values
  • Add it either directly or in-directly to the Page object
"IF you follow the EXACT same steps in the given sequence as the above list, then your ViewState object will be SIGNIFICANTLY reduced in size! This is also true for ALL WebControls and not only Gaia Ajax Widgets.

"The reason is that when your dynamically created Controls are being added to the page object then its complete lifecycle will execute which means that among other things the ViewState 'IsDirty' flag will be set to TRUE. When the ViewState IsDirty flag is set to true, then all properties you modify afterwards will have its values stored in the ViewState object. If you however set those properties BEFORE adding the Control to the Page object then the ViewState will not be dirty for those properties and values."

Scott Hanselman's Computer Zen - Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows

Scott Hanselman's Computer Zen - Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows: "Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows"

http://www.connectionstrings.com/

Is what it says. Cool!

Monday, July 13, 2009

dave^2 = -1: An introduction to the SOLID principles of OO design

He makes this stuff more comprehensible than Robert Martin, who is the creator of the acronym.

dave^2 = -1: An introduction to the SOLID principles of OO design: "I would be very hard pressed to go passed [sic] Robert 'Uncle Bob' Martin's SOLID principles as the single most useful tool for helping me with OO design. Some people seem to have a natural talent for OO design and thinking, and have an innate understanding of these principles without requiring the SOLID formalism. I, on the other hand, find them indispensable.

"Unfortunately the names used in the somewhat-cryptic 'acronym of acronyms'[1] don't exactly lend themselves to being easily learned (Bob Martin and Scott discussed how this came about on a Hanselminutes episode on SOLID, which is well worth a listen). I thought I'd post my interpretation of the principles as a refresher for myself, and as an introduction for anyone trying the learn the terminology."

Wednesday, July 08, 2009

Visual WebGUI: Web UI Development - RIA Platform / Framework

Very, very cool! A few bugs, but it's open source!

Web UI Development - RIA Platform / Framework: "Developing new Rich Internet Applications (RIA) has never been so fast and simple due to Visual WebGui's drag & drop, near zero coding Development Experience. The rapid web development well suited for building small applications UI in a matter of hours as well as very complex and large applications in a very short time. Visual WebGui allows you to use your existing .NET skills and development patterns since it is based on proven desktop & web technologies. It simplifies web development by flattening the development process into a single layer and empowers front-end design with an intuitive visual WYSIWYG Form designer which lets you use any WinForms, ASP.net and Silverlight controls."

Wednesday, July 01, 2009

Microsoft StyleCop : Introducing StyleCop on Legacy Projects

Microsoft StyleCop : Introducing StyleCop on Legacy Projects: "In this article I’ll describe a technique for doing a slow, staged rollout of StyleCop over your existing codebase. This technique has been used successfully by multiple teams within Microsoft, allowing them to adopt the tool in a controlled manner without generating a lot of noise up front. The general idea is to enable the tool for all of your solutions, but disable the tool from analyzing all pre-existing C# files. This provides the following advantages:"

Tuesday, June 23, 2009

Peter Van Roy: Programming Paradigms for Dummies

To quote Lambda the Ultimate:
This chapter gives an introduction to all the main programming paradigms, their underlying concepts, and the relationships between them. We give a broad view to help programmers choose the right concepts they need to solve the problems at hand. We give a taxonomy of almost 30 useful programming paradigms and how they are related. Most of them differ only in one or a few concepts, but this can make a world of difference in programming. We explain briefly how programming paradigms influence language design, and we show two sweet spots: dual-paradigm languages and a definitive language. We introduce the main concepts of programming languages: records, closures, independence (concurrency), and named state. We explain the main principles of data abstraction and how it lets us organize large programs. Finally, we conclude by focusing on concurrency, which is widely considered the hardest concept to program with. We present four little-known but important paradigms that greatly simplify concurrent programming with respect to mainstream languages: declarative concurrency (both eager and lazy), functional reactive programming, discrete synchronous programming, and constraint programming. These paradigms have no race conditions and can be used in cases where no other paradigm works. We explain why for multi-core processors and we give several examples from computer music, which often uses these paradigms.
The concurrency stuff looks interesting.

40+ Essential Front End Web Developer Cheat Sheets | tripwire magazine

There's a ton!

Monday, June 22, 2009

Thursday, June 11, 2009

Steve Smith and SOLID

Since I missed Steve Smith's presentation at the last .NET SIG, and there is nothing posted (yet), here's a link to the SOLID principles that he was talking about।
[6/22/09 update: here's the link to his presentation.
And a link to Uncle Bob.]

Saturday, June 06, 2009

Rio by Vice Magazine




Ask any self-respecting carnivore what to eat in Rio, and they’ll tell you about the rodizios. A rodizio is more than just a meal, it’s an elaborate battle of wits between you and the doe-eyed service staff, as they waft meat under your nose. You indicate your desire to stick or twist with a doublesided card; green meaning “feed me” and red meaning “get away from me, peasant.” Also, when in Rio, don’t forget to find a juice bar, and ask for an açai smoothie. It might look like something Barney the Dinosaur would leave in the toilet, but the Amazonian berries served with ice eradicate all traces of a hangover you got from drinking too much Brahma beer in approximately 30 seconds.



For a true carioca sleeping experience, head in search of the notorious love motels. Paid by the hour, motels are as ubiquitous and well-frequented as churches, with each one even given an individual star rating for their level of service. For a dollar or two per hour, you get your bog-standard plastic sheets and herpes on tap, but if you want to quite literally splash out, the five-star deluxe motels have heart-shaped water beds, sex harnesses, a hot-tub fit for a futebol team and gimp-suits on room service.



Forget hanging out, spend as much time and money as you can buying as much cheap tat as you can get. It’s best to avoid the enormous identikit shopping malls, and take to the streets if you want some weird stuff. Also, look out for the dudes selling racks of bootleg funk carioca CDs. The thrift shops of Lapa are the place to go for the Bonde Do Role look. You can also put together a nice collection of vintage Playboys, which, if you’re lucky, will have had just one careful owner.



In the south zone, there’s a small handful of underground clubs, such as Moo, Dama De Ferro and Fosfobox where you can join an invariably tattooed and bisexual crowd in watching big name DJs or, if you’re really lucky, Madoninha. She’s a blonde dwarf who sings literally translated renditions of Madge classics, such as “Como uma virgem. Oh!” If you want to learn more about “ginga”, the fluidity and movement of Brazil, watch the short film Movimento at brahma.com

Thursday, June 04, 2009

Quality Circles and Communication -- brief synopses

Useful information for my job.

Very important point regarding the essence of Kaizen (emphasis added):
Much of the success of Kaizen came about because the system encouraged many small-scale suggestions that were cheap and quick to implement. They also came from shop-floor employees - who had a detailed appreciation of the benefit each change might make to the process concerned. By implementing many small improvements, the overall effect was substantial.

Their communication link has the following important point on communication, which point may have been missing from the communication team project charter:
Co-ordination of departments, teams and groups - e.g. making sure that marketing, production and administration know what each other is doing, when and why