Latest

2024 4 posts

  1. Updated

    Keys to Success

    Passion, measurement, compounding growth mindset and inherent curiosity - each can independently lead to success. This article delves into how each element forms a distinct pathway to achieving personal and professional goals.

  2. Updated

    Value of Learning in 2024

    About the importance of continuous learning in today's technological landscape. Discover strategies for incorporating both mental and physical activities into your routine to better navigate through rapid changes in life and work. Make learning a lifelong journey.

  3. Updated

    Don't Reinvent the Wheel

    Inclination to "reinvent the wheel" represents a common challenge. This approach, while showcasing technical prowess, can lead to inefficiencies, consuming precious time and resources that could be better allocated to enhancing the core value of the project.

  4. Updated

    Value of 100% Test Coverage

    Explore how 100% test coverage can help enhance code quality and team performance. This article breaks down how striving for full coverage ensures equitable workload distribution and drives the reduction of technical debt, making it a practical goal for ambitious software development teams.

2023 3 posts

  1. Bell Canada Internet Pricing Scam

    Just one week into the agreement, I found that my bill had been increased to $80. Upon contacting customer service, I was informed that Bell's internet price had been increased to $130... The terms of my original agreement were clear - a $30 discount from the public price. That meant my new monthly bill should be $60, not $80... While the increase in my bill might not be significant enough for a court case, it leaves one wondering about the ethical implications.

  2. Competitive Pythonic Shorthand

    Competitive programming can be a thrilling challenge, and every second counts. Python, known for its simplicity and readability, also offers a variety of shorthand techniques that can save precious time. In this guide, we'll explore some of these Pythonic strategies and how they can give you an edge in coding competitions.

  3. Running WSL2 GUI Apps in Windows 10

    All of the answers I found online suggest using a complex workflow of installing X server, configuring RDP and connecting to your Linux box in order to run its GUI app. This approach is at least a few years old. It is no longer the most efficient way in 2023. Instead, you can use WSLg.

2022 2 posts

  1. Updated

    Angular - Enterprise Library Workflow

    We will create an Angular library, publishable to NPM, with multiple entry points, unit tests and CI/CD in GitHub. Source code for each step will be provided, as well as complete solution in a GitHub repo.

  2. Converting to .NET 6 Core

    Suppose we need to convert a legacy .NET 4.5 MVC or API project to .NET Core 6.0. It might sound like daunting task at first, and if you never did this, might cause you headache for a few days/weeks, or even months depending on the size of the project. In this article I will do my best to reduce that headache by giving you starter info and some follow-up articles to learn more about the topic.

2021 5 posts

  1. Updated

    Webpack - Preserve Class Names During Minification

    Suppose you have the following ES6 code and you want to have a refactor safe way to output the service name without instantiating an object. MyFancyService.name will work fine in dev, until you decide to minify it with webpack. You see, by default, class names will be minified, and at runtime the above code line will become something like Ab.name.

  2. .NET Architecture - eShopOnContainers

    Below video is from 2018, so almost 3 years old now, but somehow I only found it now. It's a handy overview into microservices, has a few gotchas such as avoiding internal communication when fulfilling client requests, to reduce latency, as well as async workflows like adding items to cart.

  3. Updated

    Jetbrains .NET Days 2021 - Notes

    Here are some of the notes I took while attending Jetbrains .NET Days 2021 online event - for select sessions from Days 1 and 2. Specifically, I skipped 1 session from Day 1 (React/CosmosDB), and only watched 1 session from Day 2 (AWS/Kubernetes). This is similar to my earlier MS Build notes articles.

  4. Speed of Coding - Important?

    When hiring software developers, it seems that recently the focus has been on the speed of coding. Many companies give automated 1-1.5 hour coding tests where your code can be of low quality, as long as it passes all unit tests. Is speed of producing the initial dirty version of the code actually important in modern software development?

  5. The Outsourcing Trap

    Outsourcing is a trap most big and mid size companies fall into. Advising to outsource is like advising someone to walk on a rope. Sure 1 of 100 would be careful and do it right. What about the other 99?

2020 16 posts

  1. Updated

    Developing for the Enterprise

    When we write software for our own use, vs for enterprise - it is a fundamentally different process. What works for a team of one person, does not work for a team of 100. Let's take a look at the most common processes that are in place to ensure that code survives the test of time when maintained by a big team.

  2. XPG GAMMIX S11 Pro benchmark

    I recently bought a new 2TB SSD to handle my virtual machines. This one is m.2, was previously using 256 GB SATA drive. Nothing against SATA, it just can't compete on speed with m.2.

  3. Updated

    Things Every Developer Should Know

    Every developer should know their code editor, version control system, how to make incremental changes to code, not be afraid of trial and error and respect achievement of other developers. Let's take a look in more detail on what each of these means and why they are all important.

  4. Updated

    Configure Hosts File on Asus RT-AX88U Router

    Have you ever wondered how to configure local access to an externally accessible resource in your network, via the same domain name? Simple example is a NAS storage. In my case Synology DS918+. After setting up SSL, I realized that I cannot access the NAS locally via the same domain name, only by IP. But accessing by IP gives me SSL related errors. Each part of the solution was not difficult to find. There are just a few dozen moving parts. In my case the weak spot was Linux knowledge, and relying on command line, as I am generally a GUI fan.

  5. Work from Home - Software Engineering Culture

    Working from home as a software developer/engineer, what will it be in a few years time? Which things became fundamentally different already, and which will change history? Let's embrace the new situation rather than planning come back to the norm.

  6. Azure Q/A with Elkhan Yusubov

    There is plenty of information about Azure on the internet. However, a lot of it is written as marketing material or simply outdated. When it comes to real tasks, it turns out that much of those scripts and tutorials no longer work. This Q/A session with Elkhan Yusubov is covering key terms behind Azure, to set a good start for learning on your own.

  7. React vs Blazor for Web Developers

    An interesting article comparing simple common tasks done with React and then Blazor. With code samples. From Telerik blog, but good stuff, not written as ad.

  8. MS Build - Day 2 - Notes

    My summary of MS Build Day 2. Keywords - Blazor, MAUI, Javascript development, serverless, One .NET, Project Tye, .NET conf announcement, AI, DeepSpeed 2, NLP, VR, mixed reality, Power Platform, Azure bot framework, Azure Quantum.

  9. Updated

    MS Build - Day 1 - Notes

    My summary of MS Build Day 1. Keywords - Terminal, PowerToys, Microsoft NPM, Code Spaces, Live Share, Surface Book 3, Teams running on Azure, Static Web App template, HTTP REPL, Power Apps Studio, Azure Synapse Link, Project Cortex, VEGAS Stream, Fluid framework, WebView2.

  10. Updated

    Blazor Style Encapsulation

    To explain what style encapsulation means, we will look at how Angular does it. On this screenshot an h1 style is converted to _ngcontent-lvy-c0 class during compilation, and so it does not leak out styles to other components and the app. You can declare another h1 style in another component and that will not have any effect on this component, guaranteed by Angular. Or its children, which might be even more important (so it's more than just nesting css in an HTML selector tree).

  11. Blazor Q/A with Tim Corey

    There is very little information about Blazor on the internet. Even less as far as enterprise / professional Blazor development is concerned. Blazor is not exactly new, but still, it feels more as an undercover platform, even today in May of 2020. This Q/A session with Tim Corey is meant to fill the gap. Tim is a software developer, consultant, trainer, and Microsoft MVP. He runs a YouTube channel dedicated to making the process of learning software development easier.

  12. Updated

    A Typical Freelancer's Work Day

    First and foremost, this is not an article to brag about how cool it is to be a freelancer. This is just the cold truth about the issues no-one is talking about. What it can be like, what you need to prepare for, if you consider becoming one. The views expressed here are exactly my own, you are free to disagree and post your ideas in your own blog or another public resource. The goal is to help other developers who are struggling in their career. Help them understand they are not alone with those problems. So let us get started, shall we?

  13. Updated

    Angular - Senior developer interview questions

    How do you recognize a good developer at interview stage? Are they excited by learning new things or are they tired from it? Do they wake up and realize they still have not yet learnt everything they could? Or do they always know enough to just get by? When technology becomes obsolete every 2 years, 20 years of experience helps little. You are great at writing loops? Sorry folks, now we do functional programming.

  14. Definition of Maintainable Code

    There are several stages of maintainable code, each suitable for a particular situation. Let us call each stage a maintainability level. The higher the level, the more maintainable code is, and the more time it takes to write in this way. Do you always need the best possible maintainability?

  15. Modern techniques for modern C# - Bill Wagner

    An interesting video from a recent NDC conference (Jan 27-31, 2020), comparing old coding style in C# with new options available to you as a developer.

  16. Updated

    Enterprise Software Development Priorities

    In enterprise software development with lots of money involved, it often ends up being poured into the following 3 categories; Business (business need, correctness of software in regard to business workflows), Quality (ease of maintainability, lack of bugs, need fewer developers), and Speed (hire offshore, copy paste code, cut corners).

2017 4 posts

  1. Updated

    .NET Core 2.0 Worth Using?

    September of 2017 is almost gone, and only now I had a chance to look at the most recent issue of the monthly MSDN magazine. What's the hot topic in September? .NET Core 2.0 / Standard 2.0 is highly praised by most MSDN authors. One of the articles mentions a feature I did not know existed. It's called Razor pages. In short, it's the new Web Forms.

  2. Updated

    TSQL - Get Index By Table Name + Column Name

    Below SQL code will find an index name that corresponds to the given table name and column name pair, and only include those indices with one column (exclude composite indices). Indices can be changed / added / removed by a DBA without impact to the application (part of DB tuning), so it's best not to assume their naming in an application deployment script. This can be useful to remove / replace certain indices without relying on index name.

  3. Updated

    Powershell - Get CPU Usage by Process (remote)

    You would expect `Get-Process` to do the job, but it turns out that its CPU metric is not on a 0..100% scale. Here is a one-liner (find who's eating into your CPU - or that of a remote server).

  4. Updated

    Extend Clickable Area For jQueryUI Slider

    Even using the default jQueryUI's slider style, the handle is larger than its container. Now suppose your container is 3x smaller than the handle (specific design requirement). There is a problem - you have to hit the container precisely to be able to change the slider's value. Otherwise nothing happens.

2016 2 posts

  1. Updated

    TypeScript - Getting started in Visual Studio 2015

    I decided to write this article simply because there are so many outdated answers to this question linked from Google. Here are some of the things you should NOT do - Install Web Essentials - Install Node Package Manager - Manually adjust project files to enable Typescript transpiler - Automatically adjust project files by installing a nuget package - Install something that downloads 1000s of files into a folder inside your project and works with fingers crossed.

  2. Updated

    Atom Editor by GitHub - Worth It?

    Overall, I spent 2 hours straight (no breaks for coffee), trying to make things work and really hoping it would suffice my basic needs. Unfortunately, integrated support for version control is crucial. Atom editor is fairly new, many important plugins are community authored, and most of them are poor quality, i.e. they work, but often you see display artifacts/glitches. Not a production quality product.

2015 3 posts

  1. Updated

    Lock File Tool - Test Exception Handling

    File Locker did not work for me (access denied), but Windows UI tool worked perfectly. It has less options, but it does a read lock, which is what I was looking for.

  2. Updated

    C# - Normalize Whitespace Inside String

    Simple task - replace all sequential whitespace (tabs, spaces, newlines) with your character of choice, usually a space.

  3. Updated

    C# - Capture Full Stack Trace Inside Catch

    When you catch an exception, you only have stack trace relative to the catch point. Why is this important? Suppose the error occurs when sending email and this is a non-critical part of your application. Let's say you send confirmation emails to clients as part of the ordering process. Yes, it's bad if the email cannot reach your client (say, their email address is invalid), but your web server should not crash because of that.

2014 11 posts

  1. Updated

    ADATA UV131 32GB USB3.0 Flash Drive performance

    It's not the fastest flash drive I've seen on the market, but for the money, I think it's a good investment.

  2. Updated

    Fix Ugly Fonts in Google Chrome 37

    Problem - after updating to the latest Chrome version (37), fonts look ugly. I'm using a non-standard 125% Windows DPI, it could be why they are ugly for me.

  3. Updated

    Good 24IN LCD Monitor For Home/Office Use

    Modern monitors today have IPS+VA in one, which means great vertical viewing angles and also 100% color gamut reproduction. So one does not need to choose either and just get both, for some 200-250 dollars.

  4. Updated

    Fix HTC Desire 601 signal (Virgin/Bell Canada)

    Bought this phone on 2-year contract from a Virgin Mobile booth. On a side note, it's not advertised as "601", but I figured this one is closest to the specs of the phone being sold in Canada. Anyway, starting day one, this phone was showing wireless signal problems (mobile network). I live in the GTA, your experiences may vary.

  5. Updated

    Runtime Code Coverage (WCF Service)

    In this article I will provide a workflow for monitoring code coverage in DLLs called from a WCF Service hosted with IIS. You can use this approach to get runtime code coverage metrics from any service, and also for calls made via reflection.

  6. Updated

    Your best developer's PC (ideas)

    This was originally planned as a series of articles about things to consider when buying/building your developer's PC at home/work. I never got back to expanding it beyond the bullet list plan, but I think this list is useful enough to be posted on its own, so here it goes.

  7. Updated

    Battery life on a Nexus 10 (standby)

    I've had my Nexus 10 for over a year now (ordered directly from Google). Not using it a lot these days, So most of the time it's sitting on the shelf in standby mode (Wifi's off). I occasionally take it out, turn on wifi, to show a Youtube video to my parents, or just play a quick game with kids.

  8. Updated

    Visual Studio 2013 Static Activation Key option

    Some people complaint about the need to sign in to Visual Studio 2013 for it to run, without a possibility of running a disconnected/offline setup. Introducing a static activation key licensing option (which I just discovered) - you can obtain it from your MSDN subscription page.

  9. Updated

    VB.NET - Reading and writing app.config

    I found so many articles on the internet suggesting the need to write your own classes to read/write app.config. While the read is fairly easy, people are struggling a lot with the write, some are saying that write is not supported by .NET at all.

  10. Updated

    Windows 7 x64 Performance - Host and Guest

    I am running Windows 7 x64 both as a host and a guest VM using VMWare Workstation v9. Here are the figures of Windows Experience Index for each instance, so you can estimate virtualization efficiency.

  11. Updated

    Persistent Drive Mapping In Windows 2012

    By experiment, I discovered that Visual Subst no longer works in Windows Server 2012, as good as it did in previous versions of the OS. Specifically for the purpose of referencing a DLL from a locally mapped drive.

2013 9 posts

  1. Updated

    Powerline Performance Test - TP-Link 500Mbps TL-PA4010KIT

    So I picked a rather new adapter kit, which was supposed to deliver 500 megabits over a 100 Mbit connection, which sounded kind of interesting.

  2. Updated

    SVN error - access to '.../!svn/act/{guid}' forbidden

    After a brand new checkout, developer is getting this error on commit - Commit Failed (details below); Error Access to '/svn/.../!svn/act/{guid}' forbidden

  3. Updated

    Nikon Coolpix S9400 Feedback

    This will be an article from an average home user with a slight hardware/software background. I will provide my personal experience and opinion regarding use of this camera. Expect all statements to be supported by facts, but do not expect lots of research effort being put around each.

  4. Updated

    HTML - How to Create Nice Blockquote Style

    Here is my pure CSS implementation of simple blockquote style. I will explain every line of CSS being used as CSS comments - you will need most of them. Works in as low as IE8. IE7 is still okay, just not showing the quote symbol.

  5. Updated

    Powershell - Export Logs from SVN

    You will need a command line SVN tool for this to work. Install it on your machine and configure environment:path to point to its binaries. Then use below Powershell script. It needs to be executed under a versioned folder, and it will output a log for that folder.

  6. Updated

    VB.NET - Getting Started with Custom Drawing

    Here I am going to show some basics of custom drawing in VB.NET. This is not production-class code, but rather a head start for those assessing whether or not it's feasible to custom draw anything (result vs effort). In this sample project, I will highlight all even items of a ListBox with LightGray color.

  7. Updated

    VB.NET - When not to use Relaxed Delegate Conversion

    Relaxed delegate conversion enables you to assign subs and functions to delegates or handlers even when their signatures are not identical. In practice, it means that the following code [...] Can be written like this ... If you don't need to use event arguments, such as in the above scenario, your code becomes much more readable by omitting argument clause. For developers coming from C# background - yes, everything will work here, even with `Option Strict On`. Everything, but one thing...

  8. Updated

    Hard Disk Sentinel - Fix real time disk monitoring

    When you click on Disk Performance tab on any disk page, Hard Disk Sentinel says the following - Real time performance monitoring is not supported on this disk.

  9. Updated

    VB.NET - The right way to read command line args

    While it may appear to be a simple question, there is really more to it. Please read this article carefully, especially if you have been writing command line utilities for 10+ years and never encountered any issues using standard .NET functionality.

2012 25 posts

  1. Updated

    VB.NET - Zip and Unzip String using GZipStream

    I tested this on HTML pages and it appears to be not the most efficient. In one of the examples, ~140K down to 44K. In comparison, Total Commander can zip down to 27K at the average compression level. But even with minimal compression the file remains at 32K.

  2. Updated

    Migration issue of MainMenu to MenuStrip

    MenuStrip/ToolStripMenuItem pair is not 100% backwards compatible with MainMenu/MenuItem. One particular thing is how keyboard shortcuts work.

  3. Updated

    Dual HexaCore Xeon E5649 performance in HP DL380 G7

    First benchmarked using latest Passmark. Then did some tests with latest Aida64. What's interesting here is that both processor and memory speed keeps fluctuating. I have not found a good explanation for this behavior.

  4. Updated

    Edit XML using Powershell

    Because there is no easy/built-in way to edit XML using Powershell, I wrote a script that can change parts of XML documents. I used it for bulk edit of connections in Remote Desktop Manager, to change some values in RDP session over dozens of servers. You can modify it for your needs - in simple cases you would only need to change `ArrayOfConnection` to your document's root.

  5. Updated

    .NET Winforms - App loses focus when a window is closed

    I have a main form which is an MDI parent and a modal form, which is a progress dialog. When loading is completed, an MDI child is opened. If it cannot be completed, an error message shows up with user prompt. Problem is if user takes action, and the modal form is closed, the focus is switched to the application, which was active before my application was started.

  6. Updated

    Mushkin SSD in an HP ProLiant DL380 G7 server

    HP ProLiant DL380 G7 -- Mushkin Enhanced Chronos SSD - 2.5" 240GB SATA III MLC (MKNSSDCR240GB) -- (RAID1) 2 x Seagate Savvio 10K.5 hard drive -- 300 GB 2.5" 6Gb/s SAS 10000 rpm 64 MB Buffer (ST9300605SS)

  7. Updated

    Corsair RMA experience in Canada - Memory replacement

    After installing the memory kit, I noticed weird blue screens and sudden application crashes on a fairly new workstation. They happened 1-2 times a day. Tried many things to remedy, but then decided to check memory with Memtest. During the first 15% of it I got over 100K errors in one specific region of the 16GB range, so I estimated 1 stick is faulty.

  8. Updated

    Many packages did not load correctly in Visual Studio 2010

    So I have my VS 2010 and also just installed VS 2012. After that my main project started showing this error -- The ‘VSTS for Database Professionals Sql Server Data-tier Application’ package did not load correctly.

  9. Updated

    How many tables do I have in a database (MS SQL)

    Here is a one-liner.

  10. Updated

    Update of Google Chrome Fails - Inconsistent Group Policy

    It appears that Google Chrome provides a solution for this. Unfortunately, it did not work for me, because all options were already set to (Not configured) and it still could not update.

  11. Updated

    PowerShell - Convert Array To HashTable

    There are many ways to do this, depending on what you need. In this article I'm going to highlight 2 of them. (1) Function-style conversion (2) Filter-style conversion.

  12. Updated

    Repair Internet Explorer 9

    About a week ago Internet Explorer 9 started showing an error on startup on one of our PCs at work. This solution worked perfectly.

  13. Updated

    Cannot Compact VHD Due To File System Limitation

    Very likely, deleting your shadow copies on guest machine will help. I just disabled shadow copy on C drive and it worked for me on Windows 2008 R2 + SP1.

  14. Updated

    Clean Up After Installing Service Pack 1 on Windows 2008 R2

    Here is the command -- In my case I was able to reclaim >10GB of disk space on a system drive.

  15. Updated

    VB.NET - Hidden items in a ListBox

    There is one good way to dynamically show/hide items in a ListBox - use a DataView as DataSource. You do not need to manually Add and Remove items from your list. In fact, coding effort is very low with this approach.

  16. Updated

    32GB ADATA S102 Pro USB3.0 Flash Drive Benchmarked

    Here are the results from CrystalDiskMark 3.0.1 (x64), connected over USB2.0 and USB3.0 respectively. Very diligent with specs, and actually performing better at USB2 than advertised by ADATA. Looks like a good deal for 30$.

  17. Updated

    VB.NET - Delay form resize-to-fit until it loads

    Suppose every once in a while in your application you need to have a popup dialog being shown. This dialog is a value picker, nothing more. It shows as many values as your screen can handle. Problem happens when list population takes considerable amount of time, say, 5 seconds. Until then you are completely unsure which size it needs to resize to.

  18. Updated

    VB.NET - Get all controls of specified type from tree

    Linearise ControlCollection tree into array of Control - generic extension method, no recursion, LINQ or GetNextControl. See attached project for usage/sample (VB.NET 4.0, Visual Studio 2010).

  19. Updated

    Merge Excel 2010 worksheets into one

    Step 1. Save each worksheet into an individual file (you will need Developer tab enabled/visible to use the code below - File/Options/Customize Ribbon/Check 'Developer' tab on the right)

  20. Updated

    Connecting a router with DD-WRT in repeater mode

    Asus RT-N12, DD-WRT v24-sp2 build 14896 (08/07/10), mini image (4MB firmware size), connected to the internet, later being referred to as Router 1. TP-Link TL-WR1043ND, same version, regular firwmare (8MB), later Router 2. Despite routers run on Broadcom and Atheros chips, it was possible to configure them to cooperate. Both internet and local network are now working.

  21. Updated

    Enable Standby USB on Asus P8Z68-V Pro/GEN3

    One of the use cases - you might need it to charge your cell phone over USB, while PC is off. By default, this option is disabled on this motherboard - using latest BIOS (v3202). To enable, look under Advanced / Onboard Devices Configuration / Asmedia USB 3.0 Battery Charging Support (see picture to the left - clickable).

  22. Updated

    Cannot open .SQL file in Visual Studio 2010

    Environment hangs, completely at times, or just for several seconds. If it resumes after hanging, you are able to close the tab where this .SQL file would show up. In any case, you cannot see or edit anything in there, seeing this Visual Studio 2010 branded blue background all over the contents area.

  23. Updated

    .NET - AddRange for HashSet

    You do not need to implement your own HashSet for that, just use the native UnionWith extension method.

  24. Updated

    VB.NET - DropDownOpening Event For ComboBox

    Here is a proper way to do it - inherit a class from native ComboBox and override OnDropDown to raise a custom DropDownOpening event first. If you anticipate loading to take considerable time, you can wrap your reload code into a construct like this

  25. Updated

    Memory Upgrade For AOD257 Laptop - 4GB?

    I recently bought one of those 10-inch AOD257 series laptop for my father.Two issues with it - Windows 7 Starter and just 1GB of memory. First, upgraded to Win7 Enterprise. After that been thinking to upgrade memory for a while, and decided to try fitting a 4GB stick.

2011 21 posts

  1. Updated

    Skype Crashes When Clicking On Any Contact

    To resolve, install v5.7.0 (beta) - latest as of this writing - over your current version.

  2. Updated

    Memory performance of Acer's budget desktop

    Did not have a chance to do a full performance test on this machine (VX4618G-Ei7260W). Memory, however, works quite well for a $700 PC, benchmarked with Aida64.

  3. Updated

    SQL server 2005 express tools blocking installation of denali

    It appears some SQL Server 2005 ghosts are still hiding somewhere in your system. To install Denali, you will need to remove the following keys from the registry.

  4. Updated

    WMI query - incorrect namespace on Windows 2003 R2

    Solving another common problem with WMI on Windows 2003 called Incorrect Namespace, occurring on most queries.

  5. Updated

    MS SQL Server 2008 R2 error log growing rapidly

    MS SQL server 2008 R2 was spamming the error log with the following two messages (got around 50GB of them in 4 days). An exception occurred while enqueueing a message in the target queue. Error 15517, State 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.

  6. Updated

    MS SQL drop column with default constraint

    The following MS SQL script will generate MS SQL statements to drop a list of columns with default constraint for a certain table. Need to change table_name and list of columns, as applicable. Statements will be generated only if required.

  7. Updated

    List all valid email addresses in Exchange 2007

    You may need these to configure your 3rd party antispam software/appliance. There were lots of articles on the internet with complicated solutions, which did not work for me. Here a Powershell one-liner for Exchange management shell.

  8. Updated

    Exchange - disable offline folders with non-cached mode

    Having read some useful topics on the internet, I decided to try non-cached Exchange mode in Outlook. After disabling caching for my account, it still kept the OST file, even after forced deletion. Then I noticed some offline folders were being kept.

  9. Updated

    Windows firewall authorization failed to start

    Firewall could not start because of error 1068 - some dependency failed to start. Outgoing connections work, incoming are blocked. I drilled down to Windows Firewall Authorization Driver malfunction.

  10. Updated

    Driver letter not available for mapping

    Somehow my Windows 7 partially remapped a drive letter to another entity. It happened suddenly with some unexpected behavior. I noticed it when it could no longer connect to a network share. I removed the mapping and tried recreating with no success. The drive could not be deleted. Restarted, the drive is not mapped, yet it's still not available.

  11. Updated

    PHPBB3 - Customizing templates (Prosilver)

    I recently had some experience changing default prosilver template in PHPBB3. It was not as simple as I expected it to be. Well, I figured the path styles\prosilver\template\ and html file name to change, but it took me a while to understand why pages were not refreshing.

  12. Updated

    Power consumption of Acer 1810T notebook

    I recently did power consumption test for my Acer 1810T, which I bought a year ago. OS desktop is Windows 7 Home + Aero enabled. I used Kill-A-Watt power meter.

  13. Updated

    .NET parallel for - how good is it?

    I recently had a Microsoft workshop session and became excited about parallel for/foreach/etc. There we got a solid 60% of efficiency. It means that whenever number of cores increases by 2x, performance is boosted by 1.6x.

  14. Updated

    VB.NET - Compare strings - case sensitivity issues

    I recently stumbled upon this problem in one of our company .NET projects. For some reason, project settings there were configured for Text comparison, rather than Binary. As a result, lower case strings were equal to upper case, which was discovered later when some bug in UI occured. There were three solutions available.

  15. Updated

    My experience with TekSavvy Extreme Cable

    This is what I was able to dig up from my emails and memory. Something might be missing from the chain, but overall should be enough to connect the dots. I completed the sign-up to Teksavvy Cable Extreme on 19-02-2011, using their modem SB6120.

  16. Updated

    WMI query - Incorrect class on Windows 2003 R2?

    I got this 'Invalid class' error when querying disk performance data (Win32_PerfFormattedData_PerfDisk_LogicalDisk). The server was running Windows 2003 R2 Std x64 SP2.

  17. Updated

    Install update for ESET Remote Administrator Server

    For those who don't like to read stories, here's the extract Proceed with installation, even despite it appears to be a clean install. In the end you will get a working version, with all configuration preserved.

  18. Updated

    Acronis TrueImage 2010 Home not user friendly?

    I recently upgraded to a larger hard drive and went from 1TB -> 2TB. Now the task was to make backup task in Acronis use the new location. I created new destination folder, moved all previous backups there. Then I changed Acronis backup task to do backups to the new place. Quite obvious so far, isn't it? Not with Acronis.

  19. Updated

    NTFS compression worth it?

    Some time ago I researched compression in various systems, ranging from software archivers (like WinRAR, WinZip etc.) to database solutions (like Oracle data compression). Then I figured there is one more type of compression that I did not touch yet - NTFS compression. People on the net say it's pretty much useless, still I decided to give it a try.

  20. Updated

    Oracle ALTER SEQUENCE - START WITH not working?

    I googled over many websites explaining the error code and suggesting you do not change it. What if you really need to? One approach is to call NEXTVAL as many times to shift the sequence, so that it starts with your START WITH number (<SW>). A better one is to change INCREMENT BY to a certain value instead, then do NEXTVAL and revert INCREMENT BY.

  21. Updated

    Mouse lags in top right corner

    You happen to own an ATI video card, and updated to Catalyst 10.12. Now most likely you have this weird mouse lag in the top right corner of the screen. Some people report it appearing in other corners as well, both while gaming and staying on Windows desktop.

2010 28 posts

  1. Updated

    Intel X25-M 80GB (SSDSA2M080G2GC) - usage report

    I ordered mine on 12-Apr-2010, and it’s December now, so it’s ~6 months of light use, 135 days = 4.5 months of uptime and an average 6GB of writes per actual day, which translates in just a bit over 1TB of writes. The drive already has 1 bad sector, which was remapped about a month ago. Decided to test performance with AS SSD Benchmark, and here’s the screenshot with results.

  2. Updated

    Disable hibernation in Windows 7

    If you are like me, and wonder where all the space on C drive went, you might have also stumbled across hiberfil.sys file, which is usually taking a couple of gigs. This is especially important if you are running your system on precious SSD space.

  3. Updated

    Tortoise SVN - No overlay icons after upgrade

    Just updated my TortoiseSVN client at home from 1.6.9 to 1.6.11 and found that I can no longer use overlay icons, either in Explorer or in Total Commander (more used to the latter). It appeared as if Tortoise shell extension was not loaded. I tried a restart - same thing.

  4. Updated

    Cannot connect to server using Hyper-V manager

    You should be reading this article if you are seeing any of the two (or both) screens - Windows Security / Your credentials did not work. Your system administrator does not allow the use of default credentials to log on to the remote computer XXXXX because its identity is not fully verified. Please enter new credentials. AND/OR Remote Desktop Connection. Your system administrator does not allow you to connect to this remote computer. For assistance, contact your system administrator or technical support.

  5. Updated

    Exchange - STORE.EXE Eating Too Much Memory?

    Suppose you are small enough not to want multiple servers each doing exactly one role. If you consider Exchange with the above requirement, you probably have the same problem we used to have. Memory consumption! STORE.EXE takes almost all available memory, no matter how much you allocate to the server. This might not seem like a big problem... until you disable page file, to make sure you server runs on memory, and not on a hard drive.

  6. Updated

    VB.NET - Different Output in Designer VS Runtime

    Let's say you want your custom control display empty string in a certain field, if it has a default value. For example, if your Text field on a custom Label control is identical to its name, show Text field as blank. Would be nice if it worked both ways, i.e. leaving Text field blank would make it identical to the name (or following a certain pattern).

  7. Updated

    Intel X25-M SSD in HP Proliant DL380 G5

    Hardware - HP Proliant DL380 G5, two disks, one is Intel SSD and another one is HP SCSI 15K drive, each running as RAID0. Software - IOMeter, latest version. File system - default NTFS partitions were setup, with Intel being a system drive. It might sound like a bit of overhead (bringing incorrect measurements), but honestly, I don't think it would really matter on such speeds and IOps. Controller caching - 25% read/75% write.

  8. Updated

    Disable Root Certificates Update

    You might get an annoying event log error, if you server does not have a direct connection to the internet (no internet at all, or some ports are just blocked). That's because your computer is trying to get root certificates update from Microsoft. You use those for Internet Explorer browsing. But who cares about browsing on a server? This is how you can disable root certificates update, and get rid of false errors in the event log.

  9. Updated

    Manage DNS Suffixes via Group Policy

    There is also Primary DNS Suffix option under the same tree node, just in case you need it.

  10. Updated

    PowerShell - Strip Html Tags From a String

    With the above line, we are removing every shortest set of symbols within triangle brackets. The word shortest is very important here. Have a look at this wiki page for more information about greedy and lazy matching.

  11. Updated

    Terminal Services Configuration in Windows 2008 R2

    Well, I spent some time looking for this one. It used to be Terminal Services Configuration. At least, in 2003 and 2008 it was named exactly like this. In 2008 R2, however, Microsoft decided to change the name to (obviously) improve usability, especially for experienced admins. And here's how it goes now Remote Desktop Session Host Configuration. Not quite obvious, is it?

  12. Updated

    Razer Abyssus - the Quest for Mouse Pad

    When the cursor on my cheap Kingwin mouse (KW-02, 800 dpi) started shivering for no reason, I decided to take the old one back (Logitech LX3, 1000 dpi). Then I noticed it's not so good on my hardwood desk, so having researched on good mouse pads, I bought OCZ Behemoth Regulator.

  13. Updated

    Cannot Add HP 4100 Printer - Error 0x00000002

    It happened after power outage, so our print server randomly turned off. When brought online, the first thing I noticed is that I couldn't print under my Windows 7 Ent x86 workstation. Then, after I removed the printer I could not add it back. Got the error 0x00000002. Log off didn't help.

  14. Updated

    Outlook Error 0x8004010F - Downloading Offline Address Book

    It originally started as a minor problem. One of our employees did not get updates for the offline address book (OAB) from the Exchange server. One person was missing from there and it was just one PC that had this issue. Naturally, we tried updating OAB. Got the error 0x8004010F (The operation failed. An object could not be found). Strangely enough, we then tried to update OAB from other PCs and got the same error. However, all those PC had no problem showing that contact on the list.

  15. Updated

    PowerShell - Print All Odd/Even Lines

    As a little brainstormer, suppose you have a variable with the following test content. Here is how you can print all odd lines from it. Or, if you want all even lines, change the initial $f value to 1.

  16. Updated

    VB.NET - Thread Safe Progress Bar

    Normally, when you are using .NET built-in progress bar in a multi-threaded application without Callback tricks, you are likely to get an exception on value assign. I recently wrote a fairly simple wrapper class, which solves the problem.

  17. Updated

    SQL Reporting Services - Fix Border Thickness

    When the report is rendered on the screen in preview mode, it looks okay. However, when it is saved to PDF and/or printed, table borders might have slightly different thickness depending on relative location on the sheet. I believe this issue is related to DPI scaling.

  18. Updated

    Visual Studio 2010 RC - Switch Back To Mouse Pointer After Drawing Controls

    Speaking about WinForms, there is usually a mouse pointer (cursor) on top of each logical control group in the toolbox. You use it to cancel control drawing mode and go back to control selection mode (default).

  19. Updated

    Set Server To Synchronize Time With External Source

    Here's how you can do it - w32tm /config /syncfromflags:manual /manualpeerlist:<peerlist>.

  20. Updated

    VB.NET - Extract an Image Embedded as a Resource

    Here's one of the ways to embed an image into EXE file Left click the file in the project tree Set [Build Action] -> [Embedded Resource]. And here's how you can access this file in code...

  21. Updated

    VB.NET - Nullable DateTimePicker

    One of the popular ways to do this - change format to " " (space) whenever null value is being set and roll it back to the old format on anything else. I have been looking for clean implementation of this approach. In the end I decided to write my own, using source code available on the net. Here is what I came up with.

  22. Updated

    PowerShell - Get MAC Address Of Any Remote IP

    Here is a PowerShell one-liner [...] If you need to dynamically resolve a host IP from its name [...] The whole script may look like the following [...] Because it's WMI based, computer can be from any network. But you must have necessary account permissions and firewall rules.

  23. Updated

    PowerShell - Control Code Execution

    In this article we are going to discuss basics of how to control code execution in a PowerShell script. There are several keywords, which have slightly different behavior - BREAK, RETURN and EXIT.

  24. Updated

    PowerShell - Get Current User

    Actually, there are many ways to get name of the user, which is currently logged on, including built-in .NET commands. But let's keep our code clean and stick with native PowerShell.

  25. Updated

    VB.NET - Format DateTime With Milliseconds

    Despite what people are saying on the net, you do not need to write your own method to include milliseconds when formatting DateTime object. To achieve this, you can use “f”. For example, if you want to include thousands of a second (i.e. milliseconds), you can write something like this [...]

  26. Updated

    VB.NET – Immediate Window – System Error &H80040013&

    This appears to be a known bug in Visual Studio. I encountered it when my VS 2008 SP1 was idle for a considerable amount of time, hanging minimized in the task bar. Standard close/reopen VS did not help. There were no strange processes in Task Manager either. After some failed commands (same error), I found a workaround for this issue.

  27. Updated

    PowerShell - Check if remote port is open

    There are tons of ways to check if the port is open on a remote server. I think I found the fastest one, which is a Powershell one-liner.

  28. Updated

    Prepare Windows 2003 Active Directory For Upgrade To Windows 2008 R2

    That's actually pretty simple, you just need to run this utility [...] Where D is your CD/DVD drive with Windows 2008 R2. In our case it was a virtual drive mounted in Hyper-V, but I think it does not really matter. I did preparation for both forest and domain, because in our situation they are identical.

2009 18 posts

  1. Updated

    WSUS 3.0 SP2 - Update Cloned Virtual Machines

    After some point we had too many virtual machines to keep track of updates locally. So we decided to try Microsoft's solution called WSUS. It took some time to install, the whole process could have been easier, cause I had to google every part of it. When we finally had it working, there was a problem with detection of our virtual machines.

  2. Updated

    Zone not loaded by DNS server - Windows 2003 R2 SP2

    So we switched to a new provider and I had to change primary DNS to another server. Yes, we decided to have another server for this purpose, just to have a backup in case anything goes wrong. And we actually made use of that old server, because some of our domain records took longer to update, than it was expected. Anyway, let's skip unneeded details and roll down to the topic of this post.

  3. Updated

    Phenom X4 9500 vs Phenom II X4 955

    My primary concern to upgrade was photo editing. I have a Canon Rebel XSI (450D), which takes 12MP photos. Unfortunately, I'm not yet a very good photographer, probably just need more practice. Anyway, editing photos became a frequent task. For some reason Phenom 9500 is pretty slow on those large ones. And it used to take me around 2-3 seconds to perform simple transformations. Having heard enough about the benefits of Phenom II, I decided to push forward and buy Phenom 955.

  4. Updated

    DL380 G6 - Unexpected Reboot

    I noticed many people on the net are looking for this review, or at least for anything that could prove they are not alone. Well, guys, here's what you wanted to hear - yes, our 9 x G6 DL380 servers kept rebooting unexpectedly for quite a while. Not all at once, but still annoying. It all happened at random until we contacted HP and their tech told us to update firmware.

  5. Updated

    Run Internet Explorer 5.5, 6.0, 7.0, 8.0 on Windows 7

    There is no catch about that. You don't need powerful software to support 3 virtual XPs to run XP mode in Windows Virtual PC, or anything like that. When I heard this being possible on an old PC with no real prerequisites, and for free, I was amazed.

  6. Updated

    Windows 7 on a Vintage PC

    I recently had a chance to try Windows 7 Enterprise x86 on an old PC. Overall, quite impressed with performance.

  7. Updated

    PowerShell - Query Oracle Database

    You might have already googled other pages to help you on this. You even probably have found some PowerShell function like the one below [...] Still something makes this one different. Here are some tricks used here [...]

  8. Updated

    Acronis True Image 2010 for 30$

    Everybody is trying to survive on the market these days. Acronis is no exclusion. Having made a partnership agreement with Seagate, they actually give away the limited version of Acronis True Image along with Seagate drives. This means FOR FREE!

  9. Updated

    Windows 7 - Activation Problems

    Error 0x8007232B started to appear on each startup saying something about DNS/KMS problems. I felt something was wrong with the system. So I went to My Computer/Properties and found that for some reason my copy had 27 days to activate. Apparently, activation was reset due to installation or updates as I didn't update any piece of hardware.

  10. Updated

    G6 + Everest 5.02 = BSOD ?

    As you probably remember by previous articles, we have some HP G6 servers to play with. And I was quite surprised to see them fall periodically after Everest is launched. Strangely enough, when launched on a randomly picked server, around 33% Everest causes a BSOD.

  11. Updated

    PowerShell - view current version

    I'm usually lazy to remember which version of PowerShell (if any) was installed on each and every server in our site. Because each generation of OS has its own way to install/reinstall PowerShell, sometimes I need to see if it's anything there already and I need to perform a clean up.

  12. Updated

    Outlook 2007 SP2 works with Exchange 2007 SP1?

    Indeed, yet until now I was never able to make it work with our Exchange. Strange, it does work perfectly with direct on demand connection (common user’s home setup), but fails within Exchange. You are prompted to search for solution; however Microsoft won’t help you with that. A bug?

  13. Updated

    HP G6 DL380 - SmartStart is a dumb start!

    We had a chance to install 9 operating systems on HP G6 Proliant DL380 servers. 4 of them had to be Windows 2003 64bit and 5x32bit. To summarize, 64bit versions didn't boot after SmartStart initiated installation (NTLDR not found) and 32bit version went okay until we found nothing HP-related in the start menu of Windows 2003.

  14. Updated

    Powershell Special Characters And Tokens

    This article originally started when I was actively involved in PowerShell development. Now I am mostly updating it on request of my blog readers (people like you). After a few dozen updates over the course of many years, it is now regarded as one of the top resources in the Powershell community.

  15. Updated

    Firefox 3.5 hangs under Windows 7 RC

    I'm a keen fan of Mozilla Firefox web browser and was very excited when a new version came out. Having installed that on my Vista work PC and found a real speed boost, I rushed to upgrade it at home... only to find it hangs at startup on Windows 7.

  16. Updated

    Overclocking of Phenom 9500 (part 2) - disaster recovery

    That day I spent the whole evening testing mild overclock of HT ref clock by 10%. Nothing strange happened at that time, so I assumed everything was stable and so I was going to leave OC settings at this level. Anyway, it's nice to have it a little bit faster than it was planned by manufacturer, right? The next day I went to ACDSee to browse previously taken photos. Nothing special here, but strangely enough, Windows 7 went to BSOD while creating thumbnails.

  17. Updated

    Overclocking Phenom 9500 - Part I - vs Intel I7

    First, I’m not a big overclocker. Second, I’m not going to use any TEC coolers for ultra fast performance. Third, I don’t have a canister of liquid nitrogen. So, nothing fancy, just air, common non-black processor and a little customized case are going to be involved. If you think it’s pathetic, just don’t read lines below. But if you value your money and want something for cheap, keep reading.

  18. Updated

    HP DL380 G6 Benchmarked

    Our company finally bought a powerful HP DL380 G6 server with 2 x Xeon 5540 (8 cores total). Prior to production, we put 2 x 4 gig memory sticks (8 GB of memory) and 3 SCSI hard drives to make RAID5. As you can imagine, initial testing of this box was up to me.