Today, after a long period of silence, I write back to my blog to talk about a virus that spread year ago, but re-appeared today in a new variant. The virus is not detected by anti virus like Kaspersky or Avast. The virus spreads over usb dongle, mainly in copy centers. As a note, I would […]
As a lot of WPF developer, I love the free Metro Studio from Synchrosoft. Most of my WPF projects, professional or not, use at a moment or another Metro Studio as the icon source but also image source as they are scalable vector graphics. But, out of the box, the integration between Metro Studio and Visual Studio is not great. At the end of this article you’ll be able to regenerate dynamically your resource file on project build. Also you’ll be able to do this on a build server as we don’t actually need Metro Studio installed on the build machine for the generation.
Here’s a simple code snippet to read the serial inputs in C#. I had to use this code several times when working with arduino like devices.
If you’ve already use System.Random in a fine tuned app you’ve probably notice something strange. You get the same random values across sessions. Why ?
Here’s another simple code snippet to create an IIS application, set the name, physical path, protocol and set the version of the runtime for the AppPool. In that case we use a list of objects representing the applications we have to create. Catch you next time and keep it bug free !
Here’s 3 little code snippet to get the software installed on the local machine using powershell. Usefull when scripting setups and deployment ! Slow but really complete. Based on the software in Add/Remove Programs. Fast but may miss some software. Based on the software registering in the registry for uninstall. Fast but may miss some […]
Hi, I got a strange issue today I posted on stackoverflow. The Issue Here’s the situation, I’ve abstracted the name and logic to focus on the issue. Got 3 types, A, B and C. B & C have implicit operators defined to convert to A object. Then, when I do this, the code compile and […]
The goal here is to improve the reliability of a .net client application by managing cases where things goes wrong and the universe of your product fall on himself, for example due to memory corruption, unhandled exception, Stack/Memory/<place your stuff-Overflow and so on. The Issue In the current situation, when you want to know if […]
I get paid for code that works, not for tests, so my philosophy is to test as little as possible to reach a given level of confidence (I suspect this level of confidence is high compared to industry standards, but that could just be hubris). If I don’t typically make a kind of mistake (like […]
I recently had to do something unusual for me. The issue In production-like environment, I had to “mock” a third party application called by mine. My application call the third party app just like as we do when we run something from command prompt with some arguments. The problem was a little bug in theses […]