All Posts (301) 301


“编程一小时”走进杉达,微软最有价值专家助力青少年“添码行空”

如今,计算机技术每一天都在突破人类极限,带来奇思妙想与数不清的创新改变。若能让更多青少年接触到编程技术,可能会有更多意想不到的惊喜出现。 怀着这样的想法,12月8日,由微软中国公益事务组主办,上海杉达学院承办的“编程一小时”活动在校园内举行。汪宇杰、胡浩和朱兴亮三位“微软最有价值专家”(MVP, Most Valuable Professional)带领南湖职校及高行小学的学生举办了两场别开生面的以“我的世界,水上航行”为主题的编程体验活动。上海杉达大学计算机学院刘在英、张丽晓老师莅临现场指导,志愿者章雯、唐浩和邱苏杭同学参与筹备与组织活动。50名学生在轻松愉悦的氛围中学习计算机基础知识,上手体验编程,感受计算机技术的无穷魅力,最终全体同学顺利完成任务,获得微软颁发的荣誉证书。 《我的世界:水上航行》是一款...

MVP Hour of Code

Build .NET Core 2.2 Projects on Azure DevOps

.NET Core 2.2 has been release for couple of weeks. However, the build pipeline is still failing these days. Microsoft has not installed .NET Core 2.2 SDK to the hosted VS2017 agents yet. Let's see how to work around this issue and have a success build for our .NET Core 2.2 apps. 1. Add Task Edit your build definition, and click the "+" button to add a new task. 2. Add .NET Core SDK Install...

Azure .NET Core DevOps

微软Azure予力Green Dot客服成就不凡

碧点公司(Green Dot)是仔细聆听消费者心声,以消费者为导向的金融科技创新公司,致力于为大众带来高效、便捷与体验舒适的个人银行业务。Green Dot创造了预付借记卡产业,也是美国最大的可增值预付借记卡和现金充值业务服务供应商。 在2018年11月23日-24日举办的GreenDot Hackathon活动上,来自Web团队的四名开发人员 Edi Wang、Eric Wang、Emon Zan 和Jimmy Yang 组成的 “TBD” 小组,将微软智慧云Azure的人工智能服务与公司客服业务紧密结合,实现了人工智能赋能客服机器人的效果。该机器人能够理解人类自然语言,并在实时聊天中使用语音或文字准确回答用户提问,这将极大缓解人工客服的压力。 传统客服经常需要面对复杂的用户提问,而这些提问可以总结为几个常见问题,我们称之为F...

Azure AI Bot

.NET Core WebUtility.UrlEncode or HttpUtility.UrlEncode

When we are dealing with URL encode in .NET Core 2.1, there are two APIs: System.Net.WebUtility.UrlEncode and System.Web.HttpUtility.UrlEncode. What's the difference between them? And which one should we prefer to use? I have done some research today, here's my findings. 1. Test Results First, let's see some tests. I've tested 2 couples of the same method between WebUtility class and H...

URL Encoding .NET Core

Build a Pixel Ruler with UWP

In certain applications, we may need an on-screen ruler that indicates pixels on the screen. However, the only built-in ruler in UWP is within the InkToolbar control, we are not able to use it elsewhere. So, I will teach you how to build a pixel ruler which can be used anywhere in your UWP applications. The Demo App Create a new blank UWP application called PixelRulerUwp with minimal runtime v...

UWP Win2D

Migrating Old ASP.NET Applications to .NET Core

More and more people are talking about .NET Core these days. It is true that .NET Core is the future, and .NET Framework will still be maintained because very large number of applications can’t be migrated in a short time. .NET Core and .NET Framework are just like electric cars and gasoline powered cars. Gasoline cars is mature, and you can drive it without any problem, but electric cars h...

ASP.NET .NET Core .NET Framework

Generate Captcha Code in ASP.NET Core

If you want to use captcha code to protect your website from spam messages, there are a few options such as Google ReCaptcha and captcha.com. Both of them can be integrated into ASP.NET Core applications. However, you may still want to generate the captcha code yourself for some reason, such as your website may be used in mainland China... This post will show you how to generate and use captcha co...

ASP.NET .NET Core

Add Watermark to Uploaded Image in ASP.NET Core

Adding watermark to an image is very widely used in websites in order to protect the content owner's copyright, such as a blog system like this website. In triditional ASP.NET (.NET Framework), we could use System.Web.Helpers.WebImage to add text watermark like this: var image = new WebImage(imageBytes); image.AddTextWatermark( Settings.Instance.WatermarkText, "White", Settings.Instance.Wat...

ASP.NET .NET Core

Fix AcrylicBrush Missing on NavigationView in Windows 10 SDK 17763

Microsoft released a new version of Windows 10 UWP SDK Build 17763, you can check the What's New document for more details. But when I retarget my App to version 17763, something unexpected happens, the AcrylicBrush gone missing if I change my App runtime to version 17763. I am not sure if this is by design on 17763 or it is a bug, I am trying to contact Microsoft product group on this problem. F...

UWP

Get App Version in .NET Core

We can define versions on our .NET Core applications, but how to get the version at runtime? There are several ways to do it. First, let's see a typical .NET Core project file with versioning. We can define the version numbers for AssemblyVersion, FileVersion and Version in the project file (.csproj). The AssemblyVersion and FileVersion attributes must be in format of "m...

.NET Core