Nomenklatura raportu z testów, kiedy błędy są błędami, a kiedy to tylko uwagi.

Każdy programista współpracuje w taki czy inny sposób z testerami, bardzo dobrze gdy to jest rzeczywiście jest współpraca i zrozumienie, a nie przepychanki i walka. Nawet gdy współpraca jest dobra, produkty tej współpracy mogą być mylnie interpretowane. Gdy testy są wewnętrzną częścią zespołu projektowego i komunikacja nie wykracza poza ten …

Windows Vista digital and analog output at the same time

I thought i have a very simple setup, a home theater system connected to my computer through a optical cable to a digital SPDIF output, and headphones connected to my back analog output. Simple, when I play games I use headphones with home theater system turned off, when I watch …

ExtensionToPropertySheetSample & Unable to get installer types

I am currently researching possible scenarios for extending ADUC property pages with .NET. I have started with the ExtensionToPropertySheetSample, shipped with (probably) with VS2005 or VS2008 (I’m not sure how it made to my dev box 😉 ), located by default in the C:Program FilesMicrosoft SDKsWindowsv6.0SamplesSysMgmtMMC3.0 After quick change in …

Enumerate ActiveDirectory Group Members

This simple VBS script binds to a AD group and enumerates it’s members: Option Explicit Dim strMember, strDNSDomain, strContainer Dim objGroup, objRootDSE Dim arrMemberOf, strList, arrGroup ’ Bind to Active Directory’ Set objRootDSE = GetObject(„LDAP://RootDSE”) strDNSDomain = objRootDSE.Get(„DefaultNamingContext”) ’ Bind to a group Object ’ — By ldap path 'strContainer …

How to change multiple files NTFS access rights list by command line

When you have to change ACL on huge amount of files (eg. give yourself rights to delete Vista files form a secondary partition 😉 ), you have to way’s to do that: sit all day changing ACL to small groups of files repeatedly, cause trying to call „Properties” on a …

Non-existent, not used project reference causes error in WinForms VS designer

Today I was struck by another „self-explanatory” 😛 Visual Studio exception: The path is not of a legal form. Hide at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly() at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, tring description) at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, …

Replace default IPrincipal object in ASNET

There is an easy way to override or provide IPrincipal object exposed by the System.Web.UI.Page.User property. Implement OnAuthenticate handler in the Global.asax public void WindowsAuthentication_OnAuthenticate(Object Source, WindowsAuthenticationEventArgs e) { e.User = new GenericPrincipal(e.Identity, new string[] {„Role1”, „Role2”, „Role3”}); } This way you do not have to implement RoleProvider class, just …

Value Exception info as it was Gold

Everybody who is programming professionally knows that Exceptions carry information that can save you a lot of trouble, beginners and lamers ignore that simple fact. Counter productive exception hiding or re-throwing original exception while clearing the stack is very, very frustrating.

Back to Top