Posted by jpluimers on 2013/07/11
Don’t increase your Windows Timer Resolution. And keep an eye on programs that do:
Raising the Windows timer frequency is bad. It wastes power and makes your computer slower. Routinely doing this in all sorts of programs that end up sitting idle for hours really needs to stop.
You can use ClockRes to monitor the time resolution and what programs changed it.
via: Windows Timer Resolution: Megawatts Wasted | Random ASCII.
Posted in .NET, Development, Opinions, Pingback, Power User, Software Development, WPF | Tagged: computer, software, technology, timer resolution | Leave a Comment »
Posted by jpluimers on 2013/04/11
A small duh moment when I found this out myself the hard way: when repeatedly drawing anti-aliased text, it will alter the background on each draw.
So you cannot do that. Not in Delphi, not in .NET, not in Cocoa, nowhere (:
via: delphi – “Additive” text rendering on TCanvas? – Stack Overflow.
Posted in .NET, Delphi, Development, FireMonkey, Software Development, User Experience, WinForms, WPF, XNA | 7 Comments »
Posted by jpluimers on 2012/08/15
A few weeks ago, Bill Karwin did a must watch webinar on the prevention SQL Injection titled “SQL Injection Myths and Fallacies“.
Bill Karwin (twitter, new blog, old blog, Amazon) is famous for much work in the SQL database community, including InterBase/Firebird, mySQL, Oracle and many more.
Anyway, his webinar is awesome. Be sure to get the slides, watch the replay, and read the questions follow up.
Watching it you’ll get a better understanding of defending against SQL injection.
A few very valuable points he made: Read the rest of this entry »
Posted by jpluimers on 2012/03/12
Handy when working with Microsoft Surface: install your development environment on a separate VHD that you can boot as your physical machine (Microsoft Surface SDK does not like being run in a Virtual Machine):
If you accept the constraints described above, I propose the following procedure, which I think is the easiest way to install Windows 7 on a virtual disk in multi-boot
Note: Within the VHD you can still access all the files on your physical HD.
via: How to install Windows 7 on a virtual hard disk (VHD) in 10 steps – Guides & Tutorials.
Posted in .NET, C#, Development, Microsoft Surface, Microsoft Surface on Windows 7, Power User, Software Development, Windows, Windows 7, WPF, XNA | 1 Comment »
Posted by jpluimers on 2011/06/22
Danny Thorpe recently wrote a very nice post on via Databinding Collection Properties in WPF that sometimes fail without warning.
The short summary is that this fails without warning when binding to properties that do not explicitly implement the IList interface, for instance when binding to a collection that supports only IEnumerable (because of yield return) or IList<T> (for instance when binding to a Dictionary<TKey, TValue>.Values, which implements IList<T>, but not IList).
Thanks Danny for blogging about this (he explains it way better than I can), and putting a warning that the workaround Dictionary<TKey, TValue>.Values.ToList() potentially can have a big impact on memory consumption.
Life would be so much easier if WPF could bind to IEnumerable or IList<T> :)
via: Databinding Collection Properties » Danny Thorpe.
Posted in .NET, Development, Software Development, WPF | 2 Comments »