Skip Navigation Links
MAIN
RESUME
IMAGE GALLERIES
ABOUT ME
OTHER STUFF
  Thursday, August 28, 2008  
Skip Navigation Links

Maximum file path length - Windows and TFS

clock August 3, 2008 11:55 by author Troy

260 Characters.  This seems like alot, and it is, however...

I ran into this issue a while back with an existing project I worked on and it was a royal pain.  When attempting to follow the naming conventions adopted for the folders and projects within a Visual Studio solution, the newly added filename + path exceeded this hardcoded limit within windows (many core Windows APIs still have this hardcoded limit, and many of the more recent APIs, including the .NET framework still depend upon many of these core APIs).  This issue became apparent when trying to check the file into Visual SourceSafe, when an error was thrown.

Now having moved on to a new project, and new technology (Team Foundation Server), I somehow thought that the issue would magically disappear.  Not so.

While 260 characters seems like alot, it is quite possible to hit this limit when you:

  • use nice descriptive names for folders within projects instead of more cryptic abbreviations
  • root your TFS workspace in a subfolder, that will ultimately add unnecessary characters to the total path (D:\work  vs. D:\CompanyName\ProjectName\Source) 
  • use a VS.NET database project, which has its own built in folder structure (Schema Objects\Tables\Keys\) and file naming conventions, which if you have descriptive table names, means the file name of a foreign key constraint SQL file could be really long, just over 100 characters alone for the filename itself without the path in a recent database that I reverse engineered

There is no real fix for this that I have found, except using a shorter path.  Being aware of this limitation when setting up the naming conventions on a new project can save alot of hassle later on, and could avoid having to rename the existing files/paths or changing your naming conventions part way through a project to accommodate this limitation.

References:
http://www.shifd.net/post/2008/02/Maximum-file-path-length-in-TFS-Team-Build.aspx
http://blogs.msdn.com/aaronhallberg/archive/2007/06/20/team-build-and-260-character-paths.aspx
http://neovolve.com/archive/2006/11/09/So-you-still-can_2700_t-have-a-path-more-than-260-characters_3F003F003F00_.aspx
http://blogs.msdn.com/saraford/archive/2005/12/15/504240.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Windows Server 2003 Distorted Audio

clock March 15, 2008 15:15 by author Troy

After setting up a new workstation at work with Windows Server 2003 x64 I discovered an annoying problem that was hard to live with and wound up being harder to solve than I expected.

For work, I often view alot of MSDN video and webcasts.  The problem I was having was distorted audio during playback of these webcasts.  Other MP3 or YouTube sources were problem free.  The distorted audio was distracting and very annoying, but you could still hear the audio, which for these webcasts was typically just voice audio for the webcast presentation.  Because the other audio sources were problem free, I initially thought that the audio for these webcasts was just poor quality, and I lived with it for a while, until I tested one at home, and found that the audio was perfectly fine at home.  This caused me to investigate further, and for some reason finding a solution was much more difficult than I think it should have been. 

Maybe the patch had just been released at that point and not indexed by google yet, I'm not sure.  I was very glad to find a fix though.

Anyway, the fix is available from Microsoft and cures a problem with audio that has been encoded using the Windows Media Audio Voice 9 codec, which was the case with many of the MSDN webcasts.

The fix can be found here:

http://support.microsoft.com/kb/940666

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


ASP.NET ViewState Explained

clock March 7, 2008 20:44 by author Troy

While doing some research for something I was working on, I came across this blog about ASP.NET and the Viewstate.  This is a must read for those who are somewhat familiar with the viewstate and those who believe they know it all.   

http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx

The following are some points that I took away from the article:

  • an ASP.NET control will automatically restore entered/selected values even if the ViewState is DISABLED!  (wait, what? I thought that is what the ViewState was for?)
  • the Viewstate is typically only required for simple controls if the controls will be hidden between post backs (otherwise, see point above)
  • if you databind your control on each request in the OnInit event, you can disable the ViewState and the control will still automatically restore entered/selected values

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Music Downloading - Good for Artists, Bad for Business

clock March 2, 2008 17:47 by author Troy

Let me start by saying that I am not an audiophile.  I do not download alot of music.  I do not own an iPod.  Mostly I listen to the radio in the car on my way to work, or streaming music from the website of a local radio station when I am near the computer.  I am sure that this preference is due to my inherent inability to be a good DJ. 

Despite this, I am a consumer, and I think this entitles me to an opinion.

I recently read an article in the Toronto Star by Ben Rayner with great interest.  The basic ideas I got from the article were these:

  • The majority of bands make their money from touring, not from CD sales.
  • The record companies get rich from CD sales, in return for promoting the talents of their signed artist.
  • The record companies are now including a cut of the proceeds of touring, management and even merchandising in their contracts with new artists, due to reduced CD sales.

In the years before the internet and modern home computers, artists needed the record companies to record and promote their music.  Without the record companies, an artist would starve back in those days, but the technology of today has changed all of that.  The most unfortunate aspect of that recipe was that the record companies were essentially deciding for the public which artists would be stars because they would decide who would get a contract.  I have no doubt that a lot of dubious criteria was applied to new and upcoming artists and simply having talent was not enough.

In the world of today, it is much easier for artists to record and distribute their own music through the internet, reaching millions of people and building legions of fans worldwide.  The only requirement is talent.  Just the way it should be as far as I am concerned.

I believe the hoopla surrounding music downloading is largely the noise that is generated by the record companies realizing that their services are no longer required, and they are desperately trying to find a way to prove their continued worth and justify their continued collection of millions of dollars worth of fees from their artists.

Change can be difficult.  Being fired or getting dumped does not feel good, and coming to terms with the thought that you are not needed anymore kinda sucks.  On one hand, I don't blame them for trying to hang on to their cash cow.  Hanging on to the cow is easier than the alternative choice of changing your business model, or finding a new business altogether.

Nonetheless, this article helped to solidify what I already knew on some level.  It is time for the record companies to go away.  It is time to allow the market to dictate the price of a CD.  I find it interesting that the manufacturing cost for a CD has decreased over the years, and yet, the average price of a music CD is still what, $15?  It has been $15 ever since I can remember.  The price of HD televisions has dropped 50% or more in the last year or two, and yet the price of a CD hasn't changed in years?  Give me a break.

I also think the focus for artists SHOULD be on touring and performing live.  It is their job.  I get up every day and go to work to earn a living.  Touring is the job of a successful artist.  Especially in this world of technology, where a poor vocalist can be digitally enhanced in a recording to sound spectacular.  In my opinion, touring is required for an artist to demonstrate that they actually do have talent.

Talented artists can record the music and distribute the music for next to nothing.  Why shouldn't it be free?  Many artists have realized that the money is in touring and if you give out the music for free, you can build a huge fanbase.  A huge fanbase means sold out shows when touring.  Even popular artists like Madonna have realized this, opting to drop her record label of 25 years and instead sign agreements with a concert promotion company.

The record companies like to say that music downloading will kill the music industry.  It won't.  It will only kill them.  The artists will always do what they do, because they love it and because they can still make a good living at it.

Through the years, the evolution of technology has created new jobs/industries and killed others.  The record company of today is the blacksmith of yesterday.  In the end, I think the artists may be better off without them.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Free Antivirus Product Musings

clock February 20, 2008 08:05 by author Troy

Recently my Symantec Antivirus 2005 edition support contract ran out and I began to get the nagging, "fear of god" messages from the program telling me that my computer wasn't protected and that I could no longer get the latest virus definition updates.  It was very scary.  Ok, scary may not be the right word.  Annoying may be a better word.

Avast! Home Edition - http://www.avast.com/eng/avast_4_home.html
I started by installing and trying this free antivirus software product.  Early on, I ran into conflicts.  Avast! reported  that it could not properly initialize all of its scanning services while Symantec was installed.  My contract had run out, and I was using the older 2005 edition of Symantec anyway, so I uninstalled it so I could get a clean taste of what Avast! could do for me.

The biggest problem with the free version of Avast! is that you cannot schedule the virus scans to occur on a regular basis automatically.  You must manually run the scan yourself.  Overall, the software seemed pretty decent, easy to use, etc. however, for me, I want my computer to do things for me, not the other way around, so having to manually run scans was a bit of a deal breaker.  Of course, I could always upgrade to the paid version of Avast!, but my intention was to see what you could get for free.

AVG Antivirus Free Edition - http://free.grisoft.com/
I am currently trying this product, after having uninstalled Avast!.  From my point of view, there isn't much difference between AVG and Avast!.  They both appear to be competent in the function they perform.  AVG is generally user friendly, as was Avast!.  The big limitation with Avast! is not present with AVG and I am able to schedule a scan, however, only one scheduled task is permitted, and that task is limited in its defintion.  It only provides for a daily scheduled scan and you can only define the time at which it runs.

The most annoying thing I've found about AVG is that updates to virus definitions seem to always require a reboot of the computer.  The scheduled task for updates is similar to that of scans... only one is permitted and it is daily, or a manual process.  Neither of these options is perfect because you have to choose between manually updating the virus software yourself, or be faced with possibly having to reboot the computer on a daily basis in order to finish installing the update.  This annoyance is heighted by the fact that after an update is downloaded and installed, the AVG virus scanner is deactivated until you do reboot, which means delaying the reboot leaves you unprotected.

I am going to leave it another day or so, to see if the updates and reboots are truly a daily event, or if I've been unlucky with a steady stream of updates these last couple days.

So I left it a few more days, here are some of the results... the following list is "number of days between reboots" where 1 is the next day.  This assumes the software updates itself on a nightly basis, so this table provides a glimpse of just how often a reboot is required.

2 > reboot > 2 > reboot > 2 > reboot > 4 > reboot > 2 > reboot > 2 > reboot > 0 > reboot > 4 > reboot > 2

As you can see, AVG has me rebooting my machine almost every other day.  It is unfortunate that their update process involves a reboot so frequently.  It might be time to try out another offering...

I'll let you know what I find.

Update:
Ok, another oddity I've discovered with AVG.  It detected a virus on my machine, in an old archive file, so I'm not too concerned about it.  But here is the thing, it didn't notify me that it found a virus.  I had to go into the Test History (double checking to make sure they were still running) and that is when I saw that it found a virus.  In fact, it has been finding this virus with each scan every day for over a week.  If I hadn't gone into the Test History on my own, I still wouldn't have known about it.  Wierd. 

Update (2008-04-09):
I recently came across this site which provides the results of some comparison tests of many different antivirus products.  Worth a look if you are shopping around.
http://www.av-comparatives.org/

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


blog.TroyFarrell

About the author

Troy Farrell

E-mail me Send mail
Troy Farrell
I am a software architect and computer programmer living in Peterborough, Ontario, Canada.

Search

Calendar

<<  August 2008  >>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

Archive

Tags

Categories


Blogroll

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. In fact, if I was agitated at the time, they may not reflect my own personal opinions.

© Copyright 2008

Sign in

© Copyright Troy Farrell 2008