Global AI Bootcamp 2022 @Hong Kong – Part 2

Due to the some request, we are now hosting our Global AI Bootcamp 2022 @ Hong Kong on 11 March 2022.

About the Event

We will share how to apply Machine Learning and Artificial Intelligent with Microsoft Azure Cognitive Services & Azure Machine Learning.

This would be good for you to enter the universe of Artificial Intelligence (AI).

* Introduction of Artificial Intelligence
* How do we get to start to build Artificial Intelligence?
* Introduction of Microsoft Azure Cognitive Services
* Introduction of Microsoft Azure Machine Learning
* Demo
* Q&A

This event would be delivered in Cantonese with English supplements for technical terms. Please feel free to let us know your language preference for the next round of event.

Click to Register as Attendee

Are you new to Microsoft Certification exams? You may try this!

Being a MCT for 14 years already (yes, turning to 15 years in Apr, 2022), I was asked by many students about the exams. Specially what types of the exam question types they will be. From my experience, the question types could be,

    1. Simple QA with 4/5 choice, only 1 could be the answer (radio button selection);
    2. Simple QA with 4/5 choice, multiple answers could be selected (checkbox group selection);
    3. Drag and drop the answers
      1. drag box from Values Area to a box in Answer Area;
      2. drag boxes from Values Area to Answer Area; (multiple answers);
    4. Drop down List in Answer Area;
    5. 3-4 questions in same scenario but with slightly difference in the answer (Note: you cannot go back to previous questions in this scenario once you pressed Next.);
    6. 1 big Scenario, all information and requirements listed in multiple tabs, multiple questions. (Note: you could go back and forth to view the questions again);

In the past, there are some “action taking” in a sim desktop and you have to click in order like doing it in your desktop under some exams for System Admin certifications. But I haven’t see this question type any more in Azure’s exam.

Are you still having “questions” on the question types? Cannot imagine how they look like in real?

Good News! Microsoft has build up a “exam sandbox” which allows you take an exam experience. Microsoft created this experience to provide you with an opportunity to experience the look and feel of the exam before you take it. In the sandbox, you will be able to interact with the different question types (e.g., build list, drag and drop, etc.) that are available in the actual user interface that you will navigate during the exam. In addition, this experience includes the same introductory screens, instructions, and question type help information that you will see on your exam as well as the non-disclosure agreement that you must agree to before launching the exam.

As a result, using this sandbox should better prepare you for the exam experience and increase your familiarity with the user interface, how to navigate between pages and questions, what actions are required to answer each of the different question types, where information about the exam is located (e.g., time remaining, questions remaining, etc.), how to mark questions for review, and how to leave comments.

Although the questions are not real certification questions, the sandbox mimics the exams look and feel so you can become familiar with it before you take an exam.

Keep in mind that while this experience is designed to familiarize you with the exam’s look and feel and how to navigate through it, the secure browser that will be launched during a real exam is not enabled in the sandbox. When enabled during the exam, it will block all third-party applications, including assistive devices if you have not received prior approval to use them; this is why you must request an accommodation if you would like to use one during your exam.

What are you waiting for? Give it a try now!!!

Global AI Bootcamp 2022 @Hong Kong

I am helping to speak in Global AI Bootcamp 2022 (Hong Kong) on 14 January 2022. This event’s objective is to give younger generations more ideas and passion for AI. Speakers of this event include Eason Lai (Global Technology Strategist @ Microsoft; Microsoft AI MVP), Ricky Shiu (Data Scientist @ AIA Hong Kong and Macau), and Ken Lin (Senior Technical Consultant (APAC) @ Willis Towers Watson; Microsoft Dev rMVP). Please feel free to register and circulate.

[PowerShell] How to create new instance and remove variable

In the last post, “[PowerShell] How to create simple class“, I used the New-Object to create a new instance of my custom class “Vehicle”. The New-Object cmdlet creates an instance of a .NET Framework or COM object.

$myVehicle = New-Object Vehicle

Using the New-Object cmdlet, we could also do the property assignments on the same line when creating the new instance, Just like C#, as shown here:

    $my2ndVehicle = New-Object Vehicle -Property @{RegPlate=”MVPKenLin_2″; NoOfDoors=5; Year=”10/6/2021″; Model=”BMW X3″}


There is another simplify way, it is new() static method from the Vehicle class. The syntax is shown here:

$PaulVehicle = [Vehicle]::new()

This code and the returned object are shown here:

Now I can assign values to the new created instance (variable which named “PaulVehicle”).

    $PaulVehicle.RegPlate = “PaulV”
    $PaulVehicle.NoOfDoors = 3
    $PaulVehicle.Year = “10/06/2021”
    $PaulVehicle.Model = “Mercedes”
Now the returned result are shown here:



Now if we could like to clear all contents of the instance, we could use Clear-Variable. The Clear-Variable cmdlet deletes the data stored in a variable, but it does not delete the variable. As a result, the value of the variable is NULL (empty). If the variable has a specified data or object type, this cmdlet preserves the type of the object stored in the variable.

If we would like to remove/delete it, we could use Remove-Variable. The Remove-Variable cmdlet deletes a variable and its value from the scope in which it is defined, such as the current session. You cannot use this cmdlet to delete variables that are set as constants or those that are owned by the system.

The code and the result shown here:

Clear-Variable -name PaulVehicle
Remove-Variable -name PaulVehicle

It is always a good practice to clear or delete the variables that you are no longer access them if your script will consume lots of memory .

[PowerShell] How to Create Simple Class

As a C# developer, I think that I should need to know how to create a class in PowerShell. Since Windows PowerShell 5.0, it adds the ability to create a class. With a class, we could do the coding more like C# (this is a good news to a C# developer like me, lol). We could create methods properties, enums, and other things to Class in PowerShell.

The first thing we need is, use the Class keyword. This is a sample on it,

Class Vehicle {


Within the brace, we could add our items in it. Be careful when we create object in PowerShell. The Windows PowerShell automatic type system works remarkably. it allow us create any variable without specify its type. Everything will simply be a System.Object. if you have a string, an int, or a DataTime object, the best practice (or you must) is to specify that type so that things will work well.

Because I am creating a class for a vehicle, I could create something like, Vehicle Registration Plate, Model, Year, Number of Doors, Number of Wheels, Seating Capacity, Engine Displacement, Engine Max Torque….etc

[int]$numberOfWheels = 4
[int]$numberOfDoors = 5

I can then use the New-Object cmdlet to create an instance of the Vehicle class,
$myVehicle = New-Object Vehicle

I can now get the default values of all variables (class properties) in $myVehicle.

Now I can simply assign values to $myVehicle,

Now I could see all the updated values,

That is how you create a simple class in Windows PowerShell 5.0. Let’s talk about adding more stuff to the class later. Hope you enjoy and learn the PowerShell with me.