Tuesday, August 22, 2006

JavaScript Style Attributes

JavaScript Style Attributes

Monday, August 21, 2006

logging on method level: MethodBase.GetCurrentMethod()

if you like to add some information where you located within your code use something like this:

using System.Reflection;
.
.
.
Logger.YourMethodForMessages(

"Validation failed in: " +
((object)MethodBase.GetCurrentMethod()).ToString() + "; it has some invalid data;";

);

cheers

Tuesday, August 08, 2006

TFSWarehouseDataSourceView is missing - Shit Happens

how to restore tfs warehouse DataSourceView

C:\Program Files\Microsoft Visual Studio 8\VC>

C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools\SetupWarehouse.exe" -o -s SERVERNAME -d TfsWarehouse -c Warehouseschema.xml -a DOMAIN\SERVICEUSER -ra DOMAIN\REPORTUSER

Friday, August 04, 2006

how-to: make a for loop in dos and call websites with console browser wget

here are some FOR loops…

Count and display from 1 to 10:
for /L %i in (1 1 10) do @echo %i


Sequentially get the Microsoft home page 3 times using wget and dump its contents to the console:

for /L %i in (1 1 3) do @wget http://www.microsoft.com/ -O –

Same as above except done in parallel:

for /L %i in (1 1 3) do @start wget http://www.microsoft.com/ -O -

wget - can be get over here:
wget - console browser




thanks to Atif Aziz

Shared Cache - .Net Caching made easy

All information about Shared Cache is available here: http://www.sharedcache.com/. Its free and easy to use, we provide all sources at codeplex.

Facebook Badge