TFS Source Control "No Commands Available"#

I just opened VS to do something in TFS Source Control Explorer only to find that all my controls were disabled and right clicking on anything only showed "No Commands Available."

Turns out that this was because I had to change my default source control plugin to VSS for a project I was working on.  If you go to Tools->Options->Source Control and select TFS as the default SCC plugin, it will fix the problem.

Categories:  |  |  | 
Monday, August 13, 2007 9:48:25 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Right aligning text when printing from a .net program#

In a program I am writing, I need to print directly to a couple of label printers.

My God these things are a pain in the ass to work with, but I will leave that rant to another post.

One thing I ran into was how to right align text when using the DrawString method of the System.Drawing.Graphics class off of the PrintPageEventArgs.

The solutions I was coming across seemed about as bad as I was expecting.

They involved measuring the width of the line of string using some System.Drawing.Graphics.MeasureString to figure out the length, and then dynamically position the text to make it appear right aligned.  So what that means is that for short text, X would be greater and for long text X would be less.

Fortunately, I came across the most simple solution:

Dim s As New StringFormat()
s.Alignment = StringAlignment.Far

e.Graphics.DrawString("por que?", New Font("Tahoma", 8), Brushes.Black, 50, 50, s)

Very simple.  But you have to wonder, why did MS pick "Far" as the alignment name instead of "Right", as you would expect.  Maybe "Far" is more of a graphics term for alignment?  Who knows.

 

Categories:  |  |  | 
Monday, August 06, 2007 1:44:24 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Reboot#
Categories:  | 
Monday, July 30, 2007 8:50:57 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

MSDN Virtual Labs#

Microsoft has these "virtual labs" where you are supposed to be able to get hands on with some of their products w/o all the pain of downloading and installing them.

http://msdn.microsoft.com/virtuallabs/

Right now I can't the site to respond, but I am guessing it is a temp problem, not that they have removed this service.

Some of the labs they have are:

ASP.NET 2.0

ASP.NET

BizTalk Server

Commerce Server

Connected Systems

Data Access and Storage

Internet Information Services (IIS)

JPlusN (J+N)

Microsoft Expression

.NET Framework 3.0

Office

Security

Smart Client

Soup to Nuts

SQL Server 2005

SQL Server 2005 Upgrade

TechNet Virtual Labs

Visual Basic

Visual C#

Visual C++

Visual J#

Visual SourceSafe

Visual Studio .NET 2003

Visual Studio 2005

Visual Studio Team System

Web Services

Windows Embedded CE 6.0

Windows Mobile

Windows Vista

Windows XP Embedded

 

 

Thanks to Somasegar for the links.
Categories:
Thursday, July 19, 2007 10:17:22 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Paging in DasBlog#

Scott Hanselman has a little post about how to setup paging in DasBlog.

This is something I will implement when I upgrade to DasBlog 2.0, but I won't be doing that until they get off of asp.net 1.1 and onto 2.0.

They were supposed to be releasing a 2.0 version a few weeks ago, but hopefully it will be out soon.

Categories:  | 
Thursday, July 19, 2007 10:08:29 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Haacks 19 Laws Of Programming#

Haacked blogs about the 19 laws of programming.

My favorite, and one that I personally know to be very true, is Brooks law:

Adding manpower to a late software project makes it later.

Which can also be stated as:

The bearing of a child takes nine months, no matter how many women are assigned.

 

Categories:  |  | 
Thursday, July 19, 2007 9:35:43 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Code Comment Checking Policy#

I have all but given up on Code Checkin Policy in TFS.

For me, running the policy checker against one of my solutions takes about 30 minutes.

That is unacceptable.

But, there is still some hope of running the static analysis on the back end, so I am still looking around at the goings on in this area.

A new Code Comment Checking Policy has been released, which would be really nice way to force the people to comment their code.

Categories:  | 
Thursday, July 19, 2007 9:11:45 AM (Central Standard Time, UTC-06:00) #    Comments [1]  | 

 

Subsonic MVC Templates. Not what I was expecting.#

When I saw a new item in my RSS feed from Rob Conery about MV* I was immediately interested to read it, because I have been working on trying to create my web app pages using MVP, but am unable to find any examples beyond the most basic.

I would love to see how other people manage the interactions between the Controller and the View, to see how it compares to how I am doing it. 

My view interfaces tend to be kinda large.  For example, if I have a button that I hide and show depending on business rules, I will create a MyButtonVisibility property on the interface can set the properties from the controller.

I would be interested to see how others deal with things like the hiding / showing of items.  I could see wrapping more of that kind of functionality in the view, and giving the view some more logic but I think you would then start to lose some of the testability.

Anyway, the articl on Rob's blog was really to talk about creating an MVC style architecture for subsonic itself, not the pages that use it.  However, Rob seemed to suggest that the new changes would aid you in using MV* in your pages by forcing you into good habits.

But I really don't understand how that would work.  If you have code that does:

MyGridView.DataSource=Product.FetchAll();
MyGridView.DataBind();

And you change it so that you use a Controller (or Manager as I have called it when loading Business Objects or DTOs) to look like this:

Product product = ProductController.Get(newID);
product.ReorderLevel = 100;
ProductController.Save(product,"unit test");

I don't see how this helps you create an MV* architecture in your pages.

Maybe I am just not understanding.

 

Categories:  |  |  | 
Thursday, July 19, 2007 9:06:07 AM (Central Standard Time, UTC-06:00) #    Comments [2]  | 

 

Outlook Task List. Not Keeping Up#

The "flag for later" feature in Outlook is really nice, but the down side of it is that you can easily put stuff off for later, and end up with a task list like this:

These red items are ones that are overdue.

I guess I need to put an entry in my task list to go through my task list.

Categories:
Thursday, July 19, 2007 8:54:39 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Looking for TFS hosting? No luck.#

I recently sought out any companies that were providing hosted TFS projects.  Microsoft is doing this with CodePlex.com, but only for open source projects.

Amazingly there is nothing out there for people who want to pay to have their project hosted in a TFS environment.

Some sites suggest that this may be offered soon: http://www.staheli.org/vsteamsystem/

But as of now, nothing...

Which is too bad, because I think the source code control of TFS is pretty nice, and I would like to use it in the future on some of my projects.

Categories:  | 
Tuesday, July 17, 2007 12:24:19 PM (Central Standard Time, UTC-06:00) #    Comments [5]  | 

 

Getting Enterprise Services Working#

I have been trying to get Enterprise Services working in one of my clients environment. 

The latest hurdle was cleared thank to this article, which pointed out the need to modify the settings for windows firewall to allow the msdtc executable to talk OUT.

To enable network transactions through the firewall, you will need to add the msdtc.exe to the exception list of the firewall on all the machines involved in the transactions. You can do this using the UI in Control Panel\Windows Firewall or you can use this command: “netsh firewall set allowedprogram %windir%\system32\msdtc.exe MSDTC enable”.

Categories:  | 
Thursday, July 12, 2007 3:08:03 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Why the hell is ITunes Crashing Outlook?#

The other day I got some notification that updates were available for some apple products.  Like an idiot I didn't read it over very carefully.  It looked like it was going to update Quicktime, but I had installed the Safari beta also, so maybe it was going to do something with that as well.

Well it now looks like it also decided to download and install iTunes, a TERRIBLE product that I avoid like the plague so much that I bought some other software to connect my new iPod to I wouldn't have to install that garbage product.

Not only did it appear to intall iTunes, but it also installed an outlook add in 'outlook itunes sync addin' , which crashes outlook when you try to run it.

Here are some more people like me who are pissed off by this.

 

Categories:  | 
Thursday, July 05, 2007 9:31:44 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Crafting Amazon.com URLs To Find Deals#

This is pretty cool.  Simply alter the search parameters for some Amazon.com URLs and you can filter the results to only show things that are 90% off!

Nice!

Categories:  | 
Wednesday, July 04, 2007 8:13:16 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Hollywood Boulevard - Movie Going Innovation#

I love seeing new things; innovations in existing markets.

In other words, things that make you say "Wow", and compel you to tell your friends about your experience.

This is exactly what Hollywood Boulevard is doing for the movie going experience.

Forget the fact that the place is decorated really cool.  That's a nicety, but nothing to write home about.

The innovation comes in the theater experience.  Forget cramped seating, this place has individual executive leather chairs that recline.  There is a table that runs in front of each seat so you can sit your drinks on it, AND they have a full restaurant and staff that takes food / drink orders during the movie.

We had chicken fingers and fries with a diet coke for 12 bucks.

And the movie prices are cheap too: $8 for an adult ticket.

Click here for more images of the place.

I will be going back for sure.

 

Categories:
Monday, July 02, 2007 1:56:58 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Team System Widgets#

I am still trying to find more value in the Team System/TFS combo.  There are some really great benefits that we are seeing in terms of using TFS for our source control, but a lot of the things I had hoped to do with TFS are simply not good enough to actually use.  Unit testing, continuous integration, bug tracking, code policy etc.

Here are a list of addin widgets for team system:
http://teamsystemexperts.com/widgets.aspx

I'm hoping that some of these can provide some added value to the entire system.

Categories:  | 
Saturday, June 30, 2007 12:12:18 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

.NET "How Do I" Videos#
Categories:  | 
Friday, June 29, 2007 8:26:33 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

3 things I learned in (and out of) college#

Dare Obasanjo has a post on the "Three Things I Learned About Software in College," to which Scott Hanselman followed up with Three Things I Learned About Software WHILE NOT in College.

So here are my 3 from each category:

Learned in college:

1) A lot of people getting a CS degree will never be able to write a real program (as I was getting my degree in structural engineering (CE)).

2) New features and scope creep can cause projects to be never ending, and end up not being released at all.

3) How to really work hard, really study hard, and really focus on a task with a fast approaching deadline.


Learned OUT of college:

1) Just because someone has "Sr." in their title doesn't MEAN they know anything, but they might.  If their logic sounds flawed, don't assume it is because they are "Sr" and you are "Entry": you are probably right.

2) "Expert" can mean different things to different people.  You can be in the top 2% of one company, but a middle of the pack guy in another.  Avoid calling yourself an "expert" (or acting like one) unless you know who you are talking to, and you actually are the expert.

3) There is no "Best" way to do most things.  I had thought that if I looked hard enough and studied enough examples, I would know the "best" way to do things when I arrived at them.  But one groups "best practice" is something another group will not touch.  See the current OR/M arguments for a perfect example, or if you prefer just look at divide over using Datasets. 

That being said, there are definitely some agreed upon "Worst Practices", so avoid these at all costs.

Categories:  | 
Friday, June 29, 2007 8:03:32 AM (Central Standard Time, UTC-06:00) #    Comments [1]  | 

 

Making a column non-null and unique in SQL Server 2005#
Someone asked me how to do this the other day, and I couldn't find a simple way to do it in the SQL Server Management Studio, but the script is pretty simple:

ALTER TABLE tablename
ALTER COLUMUN
   columnname varchar(50) NOT NULL
GO ALTER TABLE tablename ADD CONSTRAINT constraintname UNIQUE( columnname ) GO
Categories:  |  | 
Thursday, June 28, 2007 7:10:19 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

ASP.NET "How Do I" Videos#

The asp.net site has a section where they are putting up short videos showing how to do things in asp.net as well as VSTS and asp.net AJAX.

You can find the site here, and the RSS feed here.

There are some similar videos started to get produced for TFS here, with an RSS feed here.

 

Categories:  |  | 
Tuesday, June 26, 2007 4:50:51 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Dream.In.Code#

I saw a link from Scott Hanselman's site to DreamInCode.net, which is looks like a community site for programmers.

I have been looking for a forum for software consultants like myself, so I will have to check out the forums:

http://www.dreamincode.net/forums/

There is the "Caffeine Lounge", which sounds like the perfect place for me.  When the guys at starbucks start your order before you say anything, you have probably been in there too often.

Categories:  | 
Tuesday, June 26, 2007 4:41:41 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

All content © 2009, Christopher May, Inc
Open Job Positions
On this page
Google Ads
This site
Calendar
<
<August 2007>
SunMonTueWedThuFriSat
2930311234
5678910