Silver Light and Blue Sky

C# and Infrastructure. Code is everything.

The first Q# hands-on in OpenQL community

This is the 9th entry of the Q# Advent Calendar. blogs.msdn.microsoft.com We held the first Q# hands-on event in OpenQL community, which is open to the public and allowing anyone to learn about quantum computers and quantum programming, in…

My answers for Microsoft Q# coding contest warmup round

I have completed all problems of Microsoft Q# coding contest warmup round. Now you can see all problems. codeforces.com I have published my answers in my GitHub repo. github.com The actual (not warmup) contest will run from July 6 - 9. cod…

short slides: Log in to a Linux VM in Azure using AAD authentication

I've uploaded short slides to introduce a new Linux on Azure feature. Log in to a Linux VM in Azure using AAD authentication from Takayoshi Tanaka www.slideshare.net The new feature is still in preview. docs.microsoft.com Unlike LDAP Authe…

Running a NuGet server on OpenShift

This post was originally published on Red Hat Developers, the community to learn, code, and share faster. To read the original post, click here. When you build your .NET Core project, NuGet packages are retrieved from nuget.org by default.…

Thank you for hearing my presentation at London OpenShift meetup

Today I have a chance to make a presentation at London OpenShift meetup. I have been in England with my family on vacation. www.meetup.com Here is my slide. Deep Dive OpenShitt on Azure & .NET Core on OpenShift from Takayoshi Tanaka www.sl…

Set up Azure Blob Storage for docker registry storage

Following my previous post, I’m explaining how to use Azure Blob Storage for OpenShift internal docker registry storage. tech.en.tanaka733.net

Creating demo cluster for OpenShift Container Platform 3.5 on Azure

Here is what I did for creating my demo cluster for OpenShift Container Platform 3.5 on Azure. Three masters with etcd (same hosts). These masters are also infra nodes. One node (We can add more nodes later if we need) One Azure Load Balan…

resource file naming in ASP.NET Core localization

While I'm reading the document, I found difficulty in resource file naming. Globalization and localization | Microsoft Docs To summarize first: "name" property of the project.json uses as the assembly name of the .NET Core project. The top…

Static file authorization in ASP.NET Core MVC

When we want to serve static file ins ASP.NET Core, we should have to read this document. Working with Static Files | Microsoft Docs Let's imagine serving some static protected files with authorization. These files are only accessible by a…

Configure IDistributedCache and IDataProtection for session in ASP.NET Core

Background This blog describes two things. How to store session data out of the ASP.NET Core process How to separate the life cycle of session data from that of ASP.NET Core process and host In the background, ASP.NET Core app can run as a…

Update OpenShift ASP.NET Core s2i to .NET Core 1.1 Preview1

OpenShift provides ASP.NET Core s2i image. GitHub - openshift-s2i/s2i-aspnet: Source-to-Image template for ASP.NET applications GitHub - openshift-s2i/s2i-aspnet-example: Example projects for the ASP.NET builder image Now .NET Core 1.1 Pre…

P/Invoke in .NET Core on Red Hat Enterprise Linux

This post was originally published on Red Hat Developers, the community to learn, code, and share faster. To read the original post, click here. P/Invoke(Platform Invocation Service) is one of the features of CLI (Common Language Interface…

Azure PowerShell preview on Linux

PowerShell is now open sourced and can run on Linux. blogs.msdn.microsoft.com Azure PowerShell depends on full .NET Framework, so it can't run on Linux now. github.com However, preview version for .NET Core is released and I tried it.

How to queue and cancel build from C# code with VSTS Nuget library

Overview Visual Studio Team Services has an API, so we can queue and cancel build via API. Visual Studio Team Services and Team Foundation Server REST API Reference Here is an API about the build. Builds | REST API Reference for Visual Stu…

Getting session source information at RDP session by C#

I'd like to get the information of remote session source at the destination server with this function*1. WTSQuerySessionInformation function (Windows) It can be written by C# with DllImport. The value of WTS_CURRENT_SESSION is uint.MaxValu…

3 issues for using PSCmdlet binary module

I use PSCmdlet binary module code with C# in order to automate operation on Windows Server. Development with C# and execution speed are the pros for me. However there are issues I can't ignore. I will describe these issue and I wish PSCmdl…

Released OpenForPSCmdlet VS extension v1.1

OpenForPSCmdlet helps debugging your Cmdlet binary module writing C# or VB. OpenForPSCmdlet extensionvisualstudiogallery.msdn.microsoft.com After install this VS extension, you can right click "Open for PSCmdlet" in your Cmdlet class. Then…

Execute MSDeploy from C# program code like an API

I'm now working on constructing build & deploy ASP.NET applications to several IIS Web servers. I use MSBuild and MSDeploy commands. To be specific, making a zip package of ASP.NET application on CI server and deploy it to Web servers. A z…

How to show AWS RDS metrics on NewRelic using C#

I'd like to introduce how to show AWS RDS metrics on NewRelic using C#. There is an Amazon RDS Plugin devloped by Ruby, but I have developed by C# because I want to customize components. Here is a chat of this plugin. This plugin can show …

The English Blog has re-started

I have already started the English Blog here. But there are few articles. Now I have re-started English Blog in "Hatena Blog".