Portable class library(PCL) concept is quite popular in Xamarin world. However in .Net 4.6.1 and onward this has been deprecated.
The way going forward is .Net standard libraries. So now when you create new Project in Xamarin suggested to use .Net Standard Library instead.
Sometimes we require PC camera to be captured from within a WPF application. Achieving this is not a daunting task. Few open source and commercial library are available in the market that help us achieve this.
AForge is one such library. Attached is a sample WPF application using AForge.
Sample WPF application zip
Those who have worked with Microsoft Azure Data lake know the use U-SQL. For others you can read a good definition here:
What is U-SQL
It is possible to create U-SQL project in Visual studio. For that you must have Azure SDK already installed on your machine. Once there you need tool Microsoft.Azure.DataLakeAndStreamAnalyticsToolsForVS2015.msi from location:
Microsoft Azure Data Lake and Stream Analytics Tools for Visual Studio
After success install of this tool you can open Visual studio and you will find new entry for the corresponding project and template.
As of Aug 2017, googled the link to download the latest version 5.1 and found below:
Powershell 5.1 on microsoft site. Refer figure below
Click on download button to move to next page and select the appropriate .msi to download.
“W2K12-KB3191565-x64.msu” may be the file you choose for download and run. So i did
the same and found the error that this may not be the correct setup to run.
Read on article to choose the correct file on
Powershell on Win server 2012 R
Went back to download page and this time downloaded the file as per below snapshot:
and executed it. It ran successfully.
Azure Cosmos DB is the globally distributed, multi-model database service for building planet scale apps. You can easily build globally-distributed applications without the hassle of complex, multiple-datacenter configurations. Cosmos DB automatically replicates all of your data to any number of regions of your choice, for fast, responsive access. Cosmos DB guarantees 99.99% high availability.
Only Cosmos DB allows you to use key-value, graph, and document data in one service.
One of the APIs Azure Cosmos DB supports is the SQL (DocumentDB) API.
https://azure.microsoft.com/en-in/blog/dear-documentdb-customers-welcome-to-azure-cosmos-db/ is a good link to read further.
To build always-on, scalable, distributed applications in azure from your development machine, you need to ensure right tools are already installed.
This blog is to install tools for VS 2017.
While installing or modifying VS 2017 on your development machine ensure option ‘Azure development’ is checked on.
Apart from this you need Microsoft Azure Service Fabric SDK on your machine. The SDK gets installed using Web installer 5.0. The link for SDK is:
Visual studio is now ready to allow you create service fabric applications.
Choose the service you want to create:
The purpose of this blog is to get the dev aware of how the PowerShell can be used to connect to MySQL db and insert a sample record.
With the increase of automation in industry, powershell is made responsible for doing many more things including inserting a new record in MySQL database.
The script flow start at line 28 by setting bthe username/ password/ database name, server name of the MYSQL database. By Default the port to connect db is 3306.
$query parameter of powershell need to be set for correct insert DML statement.
Next is Powershell function call which takes username, password, server, database, query as parameter. Line 1 to 26 is PowerShell function which handles this.
For this function to work perfectly it necessary for[reflection.assembly]::LoadFrom(“C:\abc\MySql.Data.dll”)
Statement to execute with success. What this statement do is load MySQL.data.dll assembly in script.
Its >net and MySQL connector Dll. You can get this dll by creating a new project in .Net Visual studio and add a new package by searching ‘MySQL’. Make sure you correctly set this DLL path in script.
This function takes care of establishing the connection with MySQL, Open the connection, execute the SQL DML query and return the response.
I tested this script in Windows 10, Powershell 4 and MySQL 8.4.5 and works fine.