Wednesday, March 4, 2020

Python 101

  • List comprehensions in for loop
Example 1
output

Example 2
output


Thursday, January 16, 2020

Code Analysis for C#

  • CA1801: Unused parameters
(Object sender, EventArgs e) cannot be removed from UWP but it shows warnings. There is some discussions to avoid warning, and then I set (_1, _2)
https://github.com/dotnet/roslyn-analyzers/issues/2338#issuecomment-489806299

Violation

Violation fixed


Friday, January 3, 2020

UWP app 101

- Error when adding a xUnit Test project
Error NU1201 Project FileUploaderAdal is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Project FileUploaderAdal supports: uap10.0.17763 (UAP,Version=v10.0.17763) FileUploaderAdal.xUnitTests C:\dev\testdevops\FileUploaderAdal\FileUploaderAdal.xUnitTests\FileUploaderAdal.xUnitTests.csproj

.NET Core app cannot add a reference to UWP app and vice versa.

Soluiton: Create one project with .NET Standard and put classes you want to test, which UWP and xUnit .NET Core both can access.

Sunday, July 21, 2019

Azure DevOps 101

Clone from Azure DevOps repository

1-1. Input Password, Confirm Password
1-2. Save Git Credentials
1-3. From your shell, git clone ****
1-4. Password is required, and then input the one you set up

Sometimes the Password above does not work, with the error message like "fatal: Authentication failed for 'https://****' ". In that case, please try creating a personal token

2-1. Input Password, Confirm Password
2-2. Click "Create a Personal access token"
2-3. Click "+New Token"
2-4. Input name and select "Full access", and click "Create"
2-5. The token is displayed on the screen. The warning message is "Make sure you copy the above token now. We don't store it and you will not be able to see it again"
2-6. From your shell, git clone ****
2-7. Input the token obtained above


Monday, April 8, 2019

Tensorflow Object Detection API - Inference Web Service

It is great to create REST API to access from anywhere to use your machine learning model. Flask framework makes it easy to create a web service with python. All the code is include in object_detection_app_test1.py.


Thursday, April 4, 2019

Tensorflow Object Detection API - Inference

After you get a machine learning model by training on Tensorflow, you can run that model and receive the detection result. The source code is here on Github. (https://github.com/koheikawata/objectdetectiontest). Below are examples of inputs and outputs of "object_detection_inference_test1.py"



Thursday, March 28, 2019

Tensorflow Object Detection API - TFRecord creation

Understand how to create TFRecords is an important point when you use Tensorflow Object Detection API. In my Github repo (https://github.com/koheikawata/objectdetectiontest), you can find what directory structure looks like.


Tuesday, January 8, 2019

Data Factory connection

I would like to share some pitfalls when you connect FTP server to Azure Data Factory as I had some troubles connecting Data Factory to data sources.