How can a Metro app in Windows 8 communicate with a backend desktop app on the same machine?

I’m porting my existing project to Win8 right now. It consists of windows service and tray application which are talking to each other via NamedPipes WCF. As you may already know Metro doesn’t support named pipes. I ended up using TcpBinding for full duplex connection. This post describes what functionality is supported. Sample of my … Read more

IE10 renders in IE7 mode. How to force Standards mode?

Internet Explorer makes the assumption that most webpages were written to target earlier versions of IE and looks at the doctype, meta tags and HTML to determine the best compatibility mode (sometimes incorrectly). Even with a HTML5 doctype IE will still place your website in compatibility mode if it’s an intranet site. To ensure that … Read more

Python command not working in command prompt

I have installed the latest Python for Win10 from Releases for Windows. Just typing py in the Command Prompt Window starts Python. Microsoft Windows [Version 10.0.15048] (c) 2017 Microsoft Corporation. All rights reserved. C:\Users\sg7>py Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32 Type “help”, “copyright”, “credits” or “license” for … 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

Allowing Untrusted SSL Certificates with HttpClient

A quick and dirty solution is to use the ServicePointManager.ServerCertificateValidationCallback delegate. This allows you to provide your own certificate validation. The validation is applied globally across the whole App Domain. ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; I use this mainly for unit testing in situations where I want to run against an endpoint … Read more

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