Sublime as default editor

Actually it is not my answer, I have just googled it: Open regedit (Win+R, type “regedit”, select OK). Navigate to HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command Verify that the path is accurate, correct it if it is not. Exit regedit. Open task manager via Ctrl+Alt+Del (or Ctrl+Shift+Esc for later versions of Windows), kill explorer.exe, go to run (Win+R) and type … Read more

How do I resolve configuration errors with Nant 0.91?

Oddly enough, this is related to how the executables are extracted from the Nant 0.91 archive. (This made no sense to me until I actually tried it, but it does actually work…) Source : http://surfjungle.blogspot.com/2011/11/tip-running-nant-091-on-windows-7.html I found that the problem was Windows 7 security related in that the downloaded NAnt 0.91 zip file needed additional … Read more

How do I make my GUI behave well when Windows font scaling is greater than 100%

Your settings in the .dfm file will be scaled up correctly, so long as Scaled is True. If you are setting dimensions in code then you need to scale them by Screen.PixelsPerInch divided by Form.PixelsPerInch. Use MulDiv to do this. function TMyForm.ScaleDimension(const X: Integer): Integer; begin Result := MulDiv(X, Screen.PixelsPerInch, PixelsPerInch); end; This is what … Read more

Making WPF applications look Metro-styled, even in Windows 7? (Window Chrome / Theming / Theme)

What I did was creating my own Window and Style. Because I like to have control over everything and I didn’t want some external libraries just to use a Window from it. I looked at already mentioned MahApps.Metro on GitHub and also very nice Modern UI on GitHub. (.NET4.5 only) There is one more it’s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)