Showing articles from Tweaks tag

A Reworked MVC Preview 5 AccountController
ASP.NET MVC Preview 5's default AccountController didn't use the new form posting and validation features yet, so I reworked it. The controller and views, ready to copy.

Added OpenSearch!
Following Scott Hanselman's post, this blog now supports OpenSearch, so you can search it straight from the Firefox or IE7 search box.

Wordpress 2.6 Upgrade - Fix Missing Categories
I wasn't the only one losing categories after a WordPress 2.6 upgrade, so here are screenshots of how I fixed it.

Wordpress 2.6 Upgrade - Categories Missing
After upgrading WordPress from 2.2.3 to 2.6, my plugins still worked, but every category became an empty string and the category URLs broke.

Efficient Compound Index Usage
How the column order of a compound index decides between an index seek and a full scan, tested on a 6.5 million row table in SQL Server.

String Concatenation vs Memory Allocation
Five ways to build the same string in C#, compared on string instances and memory in a profiler: +, +=, String.Concat, StringBuilder and AppendFormat.

Reverse Engineering with Reflector and Reflexil
Cracking a small password check in a .NET assembly by flipping one IL branch with Reflector and the Reflexil add-in.

Daemon Tools: The Disk Image Emulator
Daemon Tools mounts a disc image as a virtual drive, so you can install software like Visual Studio 2008 Beta 2 without burning a disc.

Personalizing Outlook Today
Turning Outlook Today into a custom HTML page with your calendar, tasks, mail counts and quick links, set through one registry key.

Visual Studio 2008 and PHP Coloring
Getting PHP syntax coloring in Visual Studio 2008 by treating .php files as C++ with a registry file and a custom usertype.dat.

Search File Contents
Windows Search can look inside files, but by default not inside .sql or .php files. One registry key per extension fixes that.

Fixing Virtual PC Keyboard Lockup
Keyboard stuck inside Virtual PC? Locking and unlocking the host computer brings it back; plus workarounds for a stuck Ctrl key.

Changing Pocket PC Language
My Dell Axim came in French only; flashing it to English took a hex editor and a French header on the English ROM.

Add IE Features: New Keywords like Firefox
Firefox users love typing 'google searchterm' in the address bar. Internet Explorer can do it too, with a registry key per keyword.

Hacking Uxtheme.dll: Watercolor Theme
Patching uxtheme.dll on Windows XP to use custom visual styles like the Watercolor theme I've used for a year.

Random Wallpaper through Scheduled Tasks
A small tool, run through Scheduled Tasks, that picks a random wallpaper every time I log on to my new 1920x1200 laptop.

Custom Run Box (Resource Hacking)
Resource hacking shell32.dll on Windows XP to give the Run box a custom look, with ResHacker and Replacer.

Tweaking the Run Box (Windows Resource Hacking)
Time for a new article, but not about C# this time.

ConvertToProperties Macro
The link to the C# property macro from Jan Tielens' .NET Magazine #5 article went missing in print; here it is.

UPX: The Ultimate Packer for eXecutables
UPX compresses executables you drop onto it; my VB6 program went from 208 KB to 77 KB.

VBDOX: Documentation Generator for VB6
VBDOX does for Visual Basic 6 what NDoc does for .NET: MSDN-style documentation from XML comments, as HTML or a help file.

JavaScript Open Directory Image Viewer
A JavaScript bookmarklet that shows every image linked from an open directory listing on one page.

Re-Enable user:pass@ IE Functionality
Security update 832894 disables user:pass@ logins in Internet Explorer. Here is how to apply the patch and still keep that feature.