Edi Wang

All Posts 284


Remote Deploy and Debug UWP Apps

These days I am developing an App that need to be tested on multiple languages environment. I can set my local dev box to different language, and restart or sign out / sign in to Windows again to test different languages. But this is very inconvenient. I want to setup a Windows 10 virtual machine with Chinese language and let Visual Studio 2017 deploy and debug the App right into the VM. Back the...

Debug UWP

微软 Build Tour 2017 上海一日游

Build是微软从2011年开始举办的开发者大会。我作为一个使用微软技术的开发者,当然每年都不会错过这样的一场盛宴。然而,Build的主会场永远都是在美国,这让其他国家的信徒们无法接近我大微软。于是,从2015年起,微软会在Build结束之后,到世界各国的主要城市开设免费巡演活动,内容都是Build大会的精选。 图为我当年在家里用电视观看Build 2011   我曾经在2015年参加过微软在上海的Build Tour,留下了非常深刻的好印象。于是今年,我当然不能错过Build 2017 Tour的上海场了。今年的Tour有2天,第一天是Session第二天是编程马拉松,我怕技术被人鄙视,所以只报名了第一天的内容。 今年微软在中国确实更给力了,这次的Tour是紧接着Build 2017午夜啪活动之后的。中国午夜啪的其中几位主持人也来到了Build Tour,都是软狗们熟悉的面孔...

Microsoft Build

Migrate Domain DNS to Azure

It has been a while since Azure DNS went GA on Azure. It's like "dnspod" in China, offers a third party DNS services besides your domain register. The power of Azure has already been witnessed by the entire human race. Now that, it has got DNS services, it would surly be the best in class DNS on the planet. Thus, what we have to do, is to migrate our DNS servers to Azure DNS. So that your website...

Azure DNS

edi.wang 域名被端事件始末

针对这几天网站无法使用http://edi.wang的域名访问的事件,我对我们国家工信部的政策以及国内域名注册商的服务表示非常的愤怒和失望。特此记录,以警示各位想要注册域名,或者已经在国内服务商注册域名的站长。 强烈建议大家尽快把手头的国际域名转移到国外注册商(如Godaddy),以防突然有一天被不可描述了。 最新状态: [2018-4-19 07:50] edi.wang 域名状态为:OK,全球DNS恢复正常解析。 背景: edi.wang这个域名是2014年6月在时代互联(now.cn)注册的,因为当时它是国内唯一一家开放.wang域名的注册商。之前我也用过这家的服务,因为印象非常不好,所以也不是特别愿意选这家的,然而edi.wang这个3字符的域名必须得抓紧时间注册,才导致了后面一系列的坑爹。域名服务器用的是另一家国内知名的服务商:dnspod.cn,没有用时代互联的。...

Edi Domain DNS

Configure Continuous Delivery for ASP.NET Core Website on Azure

Today I am trying new DevOps tools in VS2017 and Azure, my goal is to automate the process from development to production for an exsiting ASP.NET Core project. I have encountered some issues, and with the help of Microsoft Support, I was able to solve them and share with you guys. First, there are two ways to configure CD for Azure Web Apps. I prefer create a website first, then configure it from...

Azure DevOps CI CD ASP.NET Core .NET Core

Create QR Code in Windows 10 UWP

A year ago, I wrote an UWP application that can generate QR Code. However, at that time, the QR Code library I used was ZXing.Net, the last update for this package was in 2014. Now, time has changed, the author of ZXing.Net seems not to update the package any more. However, we have to move on, so I found a fantastic new library to generate QR Code in .NET applications: QRCoder To use that packag...

UWP QR Code

UWP App for the Raspberry Pi Azure Surveillance Camera

I wrote a post about Raspberry Pi Surveillance Camera with Linux and Azure, it was using an ASP.NET website for displaying the photos. I made an UWP client App these days, you can download from here https://www.microsoft.com/store/apps/9nblgggzfnv0 (Because WP is already finished, so I don't provide Windows 10 Mobile package) It doesn't allow upload photos, because the photos should all come f...

MVVM PIN Microsoft Passport Binding

Read AppSettings in ASP.NET Core

Today, I was rewriting an old ASP.NET MVC5 Demo project to ASP.NET Core, and found that the way we used to read Web.config by ConfigurationManager.AppSettings[] is no longer working. .NET Core has many new ways to achieve this. I picked one that suitable for my project. Here is how I do it. The old ASP.NET code: web.config ... ... ... ... Controller: private stat...

ASP.NET .NET Core

Raspberry Pi Surveillance Camera with Linux and Azure

Because Windows 10 IoT Core is not supporting Pi Camera, I can only use Linux instead. These days, I made a surveillance camera, the functionality is simple, when a person passed by the camera, it will take a picture and upload to Microsoft Azure Storage. It also got a website to remotely view the photos. 1. Hardware A PIR Sensor, a Pi Camera, a couple of jump wires. Connect the Singal port of t...

Azure IoT Raspberry Pi Linux Pi Camera Python

Uploading PiCamera images to Azure

Recently Windows 10 IoT Core Build 14393 is coming, but still without PiCamera support, WTF. So I can only choose Linux for my project. When I was using Windows, I use C# + Azure SDK to upload photos to Microsoft Azure. So how to do it on Linux? After some research, here's how to do it. My system is Raspbian Linux. First, we need to install Azure SDK in SSH Terminal: sudo pip install --pre azur...

Azure Linux Pi Camera Python