Enable Execution


Set-ExecutionPolicy RemoteSigned

Determine installed version


Start/Stop App Pool locally

C:\windows\system32\inetsrv\appcmd.exe start apppool <apppool>
C:\windows\system32\inetsrv\appcmd.exe stop apppool <apppool>

Start/Stop App Pool remotely

Invoke-Command -ComputerName <remoteServer> -ScriptBlock { Stop-WebAppPool -Name <apppool> }


Veröffentlicht unter Allgemein | Verschlagwortet mit , | Hinterlasse einen Kommentar

NuGet Tips and Best Practices


By Microsoft.com: Top 10 NuGet (Anti-) Patterns

In case NuGet.org is down, don’t become desperate. Remember that NuGet caches everything for you in:


Just redirect your package manager source to your local cache (in Visual Studio: Options / Package Manager / Sources)

Refer to Hanselman’s Blog here for details.

At times, you’d prefer a standalone NuGet installation, e.g. when you are going to setup a mirrored repository.

The commandline can be installed from here and the reference documentation can be found here. Use nuget-signed.exe and place it somewhere like c:\nuget, but not into %WINDIR%. Make sure that nuget is in your Path environment variable.

The default configuration file for NuGet is stored here:  %AppData%\NuGet\NuGet.config

To establish a local repository, just install the packages to a local folder using this command:

nuget install packages.config -o <outputfolder>




Mirror packages

To mirror packages, you need  NuGet.ServerExtensions.dll. This library can be placed alongside the nuget.exe command (you may need to unblock execution permissions file properties dialog).


You may also like the NuGet Package Explorer here.

Veröffentlicht unter .NET & Mono, Allgemein | Hinterlasse einen Kommentar

Database Performance Tuning


About .NET Connection Strings: http://www.c-sharpcorner.com/uploadfile/nipuntomar/connection-strings-for-oracle/

Performance Tuning on Oracle http://docs.oracle.com/cd/B10500_01/text.920/a96517/aoptim.htm

When to rebuild index ? (see here on https://blogs.oracle.com/sysdba/entry/when_to_rebuild_index)


Best Practices Performance Tuning http://joinfu.com/presentations/perf_tuning_best_practices.pdf


  • SHOW Commands
  • EXPLAIN Command



Veröffentlicht unter Databases | Verschlagwortet mit , | Hinterlasse einen Kommentar

Configure Settings on IIS 7.x and IIS 6

The following script takes care of IIS 6 and IIS 7 configuration settings by executing a Windows command script using ADSUTIL.VBS on IIS 6 and APPCMD.EXE on IIS 7.

For more information see here:

This scripts sets the uploadReadAheadSize, SslNegotiateCert and SslAlwaysNegoClientCert on IIS 6 or IIS 7.

set APPCMD=%systemroot%\system32\inetsrv\appcmd.exe
set ADSUTIL=%systemdrive%\Inetpub\AdminScripts\AdsUtil.vbs
set WEBSITE=Default Web Site

if exist %APPCMD% (
echo IIS 7.x Read settings before:
"%APPCMD%" list config "%WEBSITE%" -section:system.webServer/serverRuntime
"%APPCMD%" list config "%WEBSITE%" -section:system.webServer/security/access
echo IIS 7.x Write settings:
"%APPCMD%" set config "%WEBSITE%" -section:system.webServer/serverRuntime /uploadReadAheadSize:"%READAHEADSIZE%" /commit:apphost
"%APPCMD%" set config "%WEBSITE%" -section:system.webServer/security/access /sslFlags:"SslNegotiateCert" /commit:apphost
echo IIS 7.x Read settings after:
"%APPCMD%" list config "%WEBSITE%" -section:system.webServer/serverRuntime
"%APPCMD%" list config "%WEBSITE%" -section:system.webServer/security/access
) else if exist %ADSUTIL% (
echo IIS 6 Read settings before:
cscript /nologo "%ADSUTIL%" get w3svc/1/uploadreadaheadsize
cscript /nologo "%ADSUTIL%" get w3svc/1/sslalwaysnegoclientcert
echo IIS 6 Write settings:
cscript /nologo "%ADSUTIL%" set w3svc/1/uploadreadaheadsize %READAHEADSIZE%
cscript /nologo "%ADSUTIL%" set w3svc/1/sslalwaysnegoclientcert true
echo IIS 6 Read settings after:
cscript /nologo "%ADSUTIL%" get w3svc/1/uploadreadaheadsize
cscript /nologo "%ADSUTIL%" get w3svc/1/sslalwaysnegoclientcert
) else (
echo Couldn't find tools to set IIS configuration.

The script must be run under an account with sufficient permissions.

Veröffentlicht unter Web Development | Verschlagwortet mit | Hinterlasse einen Kommentar


www.leastprivilege.com Writing more secure ASP.NET applications

The W3C page http://www.w3.org/TR/html5/

Can I use compatibility table

Use HTML5Shiv JavaScript library to make IE prior to version 9 support HTML5 styling.

How to use Boilerplate to get started with your project. Links: see youtube

http://html5boilerplate.com – Main site
http://initializr.com – more custom options
http://humanstxt.org/ – creators of humans.txt
http://mathiasbynens.be/notes/touch-icons – Touch Icon research
http://pornel.net/imagealpha – GUI for generating IE6 friendly png for Mac
http://pornel.net/pngnq – command line tool
http://twitter.com/h5bp – twitter account
http://groups.google.com/group/html5boilerplate – Google Group
http://html5boilerplate.com/docs/ – docs
https://github.com/paulirish/html5-boilerplate/issues/ – place to report bugs in HTML5 Boilerplate

Remy Sharps Blog

HTML5 Doctor

Comparison of JavaScript frameworks

The fluent conference http://fluentconf.com/fluent2012

Brendan Eich in JavaScript http://www.youtube.com/watch?v=Rj49rmc01Hs&feature=g-vrec

JavaScript Toolkits


Impact Game Engine USD 99
Construct 2

Yahoo Yui Douglas Crockfords World Wide Web

HTML 5 Framework http://www.sencha.com/
jQuery  jQueryUI jQueryMobile EasyUI GPL, Commecial License USD 449

Form validation Validatious 2.0

PHP http://www.phpcodebase.com/

MSDN Project Silk (JavaScript, jQuery, ASP.NET) http://msdn.microsoft.com/en-us/library/hh404096

Favicon maker- Create a favicon from any image

Glyph Icons


Veröffentlicht unter Web Development | Verschlagwortet mit , , | Hinterlasse einen Kommentar

Perl GUI Automation

Automate GUI using Perl scripts.

What you need:
Win32::GUITaskAutomate (Sample, Sample, Sample, Reference)


Veröffentlicht unter Web Development | Verschlagwortet mit , , , | Hinterlasse einen Kommentar

Microsoft Search Server

Microsoft Search Server used as add-on to Microsoft Share Point services.

The Trivadis installation procedure is here for Part I, Part II, Part III .

How to add searchable file type for PDF to Search Server on Technet.


Veröffentlicht unter Allgemein | Hinterlasse einen Kommentar

WSUS 3.1

Here are some links to WSUS resources:

What to do when WSUS folder is growing too large.

Garry Borger’s Blog.

Exploring the WSUS database, connecting to the WSUS database on MSDN

WSUS 3.0 SP2 download as of July 11 2011

MSDN Docs on WSUS 3.0 SP2



Veröffentlicht unter Allgemein | Verschlagwortet mit , | Hinterlasse einen Kommentar

My VS2010 Tips and Tricks Collection

Scott Guthrie:

Debugging Tips with Visual Studio 2010

VS 2010 Debugger Improvements (BreakPoints, DataTips, Import/Export)

Scott Kate:


Jim Griesmer:


Doing remote debugging across domains involves some special user settings, see this article or from John Robbin’s blog.

Working with the WPF dispatcher: Updating UI Controls from within a background thread.

Creating a hybrid WPF console/gui application from Jeffrey Knight. Who has other suggestions ?



Veröffentlicht unter .NET & Mono | Verschlagwortet mit | Hinterlasse einen Kommentar


Example rules:

/usr/sbin/iptables -A INPUT -i eth1 -s -p TCP --dport 8342 -j ACCEPT

/usr/sbin/iptables -A OUTPUT -o eth1 -s -p TCP --sport 8342 -j ACCEPT

iptables has for tables:  raw, nat, mangle, filter
When you define a rule, you can specify the table for which it applies to, like

iptables -t nat ....

The default table is filter. The -t <table> is optional. When you omit this option, then it applies to the filter table.

-i <interface> Name of an interface via which a packet was received. Only for packets entering the INPUT, FORWARD and PREROUTING chains.

-o <interface> Name of an interface via which a packet is going to be sent. Only for packet entering the FORWARD, OUTPUT and POSTROUTING chains.

-s <address> Specifies the source address. Can either be a network name, a network IP address with mask or a plain IP address.

-d <address> Specifies the destination address, analogous to -s

--dport <portnum> is the destination port

--sport is the source port

-j This specifies the target of the rule, i.e. what to do if the packet matches it. The target can be a user defined chain or one of the special builtin targets.

List all rules in the selected chain

iptables -L <chain> If no chain is given, then all chains are listed.

Check weather the filter table is here:

iptables -t filter -L

iptables -X <chain> Delete the optional user defined chain. If no name is given, it will attempt to delete all non-builtin chains in the table.

iptables -F <chain> Flush the selected chain or all the chains if no name is given.

This is an excellent tutorial on iptables.


Veröffentlicht unter Allgemein | Verschlagwortet mit , | Hinterlasse einen Kommentar