Geeks With Blogs

@tfanshteyn
  • tfanshteyn Awesome: tracert 216.81.59.173 about 627 days ago
  • tfanshteyn RT @AdviceMallards When searching plane tickets online, delete your cookies. Prices go up if you visit a site multiple times. about 631 days ago
  • tfanshteyn RT @unhealthytruth Junk food costs about $1.76 per 1,000 calories versus $18.16 per 1,000 calories for nutritious foods about 655 days ago
  • tfanshteyn RT @NYCSchools Just announced: School days lost due to #Sandy will be made up February 20-22 and June 4. about 709 days ago

An educated guess (Timur Fanshteyn) Technology, Software Development and other ways to make an educated guess about the world... December 2007 Entries
Compiling .NET 3.5 code to .NET 2.0 Works
This is something that is totally cool. You can use Visual Studio 2008 and a lot of the new functionality and cross compile it to .NET 2.0 and run it on the older framework. For Example, You can use Var objects, Simple Property Declarations, Property Constructors, Lambda expressions Here's an example program that can be compiled with VS 2008 to the .NET 2.0 framework static class Program { private class Client { public string Name { get; set; } public string Address { get; set; } } private static ......

Posted On Thursday, December 20, 2007 11:30 PM

Calculating Hashvalues for files the way .NET does for the Application Manifest
I had to write a custom download component to download modules for a ClickOnce deployed application. The actual downloading is simple, the tricky part was creating the manifest and make sure that I only download files that are required. I am using an GeneraApplicationManifest MSBuild task to generate an application manifest. The documentation is very easy to follow. The generated manifest will include a Hash value. It is fairly simple to compute the same hash value manually and be able to validate ......

Posted On Thursday, December 20, 2007 10:50 PM

Subversion pre-revprop-change hook
Another small batch file hook for those running subversion on windows. This hook will allow users to update a log message on the old check-in. Note: Property changes are not versioned, so you will permanently loose the old message. Place this in a pre-revprop-change.cmd ------------- IF %5 EQU M GOTO CONT1 GOTO FAIL :CONT1 IF %4 EQU svn:log GOTO OK :FAIL echo "Changing revision properties other than svn:log is prohibited" >&2 exit 1 :OK exit 0 ------------ Technorati Tags: Subversion, ......

Posted On Wednesday, December 5, 2007 4:52 PM

Creating a ClickOnce Smart Client CAB Based (SCSF) application with Environment Overrides
My application is distributed via ClickOnce and a requirement is to be able to provide endpoint overrides for multiple environments. Here's what was done to create the solution Smart Client Software Factory includes a service called EndpointCatalog. It allow for easy management of endpoints with environment overrides. Start by adding a Microsoft.Practices.SmartCl... as a reference to Infrastructure.Module. Then open ModuleController class in and register the EndpointCatalog service. ......

Posted On Wednesday, December 5, 2007 2:27 PM

Copyright © Timur Fanshteyn | Powered by: GeeksWithBlogs.net | Join free