Wednesday, February 07, 2018

Universal Windows Platform: ListView and SelectionChanged event - Part1

In my previous post you learnt about ListView and ListBox controls used in XAML.

In this post you will learn to:

Part 1
  • Progressively build a ListView Control 
  • Place ListViewItems inside a ListView's ItemTemplate
  • You will place three named ListView items

Part 2
  • You will write code to change the properties of items you placed.
At first, you launch Visual Studio 2017 Community and create a blank Universal Windows Platform project using C# and provide the name to the project (Project JListView).

JlistView_0.png

Here you choose the target and min versions of Windows 10


JlistView_1.png

Add a ListView as shown between the 'Grid' as shown using intellisense.


JlistView_2.png

An empty ListView control is added to the XAML with some default border over the Desktop as shown.

JlistView_3.png

Now we place an ItemTemplate of the ListView by choosing from a drop-down list.

JlistView_4.png

Visual Studio is not happy as this template cannot be empty. We will add a DataTemplate inside the ItemTemplate, again using intellisense.

JlistView_5.png

Choose to place a DataTemplate.


JlistView_6.png

DataTemplate is placed and there is no red wiggly line for ItemTemplate like before. 


JlistView_7.png


Now we place a Grid, layout element, again using intellisense.



JlistView_8.png


Tuesday, February 06, 2018

Visit to the Monte Cassino Monastery and travel to Rome

September 22: This was a big day as we were moving out of Maiori in the Amalfi coast to Rome. Stopping for a short coffee break, we stopped at Monte Cassino – a hill-top, Benedictine Monastery, 88 miles to the north.



After the visit, we stopped for lunch at Area Varlese in the foot hills and arrived in Rome after another 85 miles.


Although the drive to Rome was a little tedious, the tour director made it somewhat enjoyable with Italian songs (Buongiorno a te by Luciano Pavarotti; Tu Vuo Fa L’Americano; Volare, etc.) from a music box; a 101 intro to Italian phrases; meaning of Italian hand gestures and signs; a little bit of Italian politics and of course, the screening of ‘Roman Holiday’ in the internal infotainment screens.  The memorable part of this trip was that one from our group had the energetic, operatic voice who joined Buongiorno, Volare, etc. and gave us a great time. It was a long day.

We arrived around 4:00 PM or so and glasses of Prosecco was waiting for us in the lobby of Empire Palace Hotel (www.empirepalacehotel.com), a former palace converted into a hotel.

 Source: Empire Palace Hotel

The hotel was centrally located, and we could just walk to Spanish Steps in about 20 minutes. The WiFi was working although somewhat slow. The hotel was comfortable and there was a courtyard restaurant which served the rooms as well as guests who wanted to sit out. We were to stay here two more nights and have our breakfast (Ristorante ’Aureliano’) in the ground floor; the coffee was just so, so. The lunch and dinner were not included in our program as there was a large selection of restaurants close by. Of course, there was a gelateria close by as our group was particularly partial to gelato.

After depositing our luggage in the rooms and taking some rest, we went out for dinner.  We chose a nice restaurant not too far, about 5 minutes from our hotel. The food at Taverna Flavia was pretty good.

Source: Via Veneto Roma

The service was extremely slow and getting the bill was even slower. This was very common in all the places we visited so far, and I began to feel that perhaps we are chronically fast paced compared to Europeans.  We returned to hotel as I was down with cold, but the rest of the group went out for more drinking. Altogether it was an enjoyable evening.

 Monte Cassino Monastery

The Monte Cassino Monastery (altitude 1706’) was built in 529 AD by Saint Benedict himself by demolishing the existing temple for Apollo and building an oratory for St. Martin. St. Benedict wanted to wean away the locals from devil worship; sorcery and paganism. The monastery was and still is the home to the Benedictine order of monks.

Monte Cassino (sometimes Montecassino) has seen a lot of changes after being destroyed in the past at least four times due to various invasions (Lombards and Saracens); earthquakes and battles starting in the year 581. More recently in 1944, it was bombarded and destroyed by the allies to get the occupying Germans forces out. On the way back from the monastery we saw various memorials to the fallen soldiers from the allies.

Monte Cassino was rebuilt according to the original plans but had a not so old appearance.


 Source: Wikipedia Commons

St. Benedict (480-543) or more correctly St. Benedict of Nursia (or Norcia) founded the Benedictine Order. He laid down the Benedictine Rule, set of rules for living and participating in monastic life.

Benedict rules mandated the monks the task of taking care of the sick and the frail; established hospitals (first ever in Europe) in Subiaco and made provisions to grow medicinal plants at the monastery. The monastery at Monte Cassino became the template for future establishments and educational institutions. He also established what was the most important medical library with extensive references from European and Arab medicine at Monte Cassino.

Pope Paul IV (1964) proclaimed St. Benedict to be the patron saint of all Europe.

His sister(twin) Scolastica joined St. Benedict at Monte Cassino’s nunnery. St. Benedict died soon after the death of his sister. Their relics are buried in the crypt at Monte Cassino.

Here are some pictures of our visit to the Abbey of Monte Cassino.

Getting ready to leave.


Fig 5

Arrivederci Maiori.


Fig 8

Visting the abbey and the crypt 


Fig.13


Fig 16


Fig 17


Fig 18


Fig 28


Fig.30

The mosaics are not probably by Byzantine craftsmen but the technique, motifs and layout for the floors, walls, and such are typically Byzantine but crafted locally by italian craftsmen.


Fig.34

Here are some nice examples of mosaics captured by Raymon Austin.










Fig.35

The company that restored the pipe organ is still active, restoring peices everywhere in Europe.












Fig.36


 Source: Raymond Austin

ORA et Labora ; Guiding principles for this order

  Source: Raymond Austin

Our group at the crypt













Fig 40

 
Fig.43

We will travel by bus further north to arrive at the Eternal City, Rome

Here is a video of our visit. Click the link to see on You Tube.

 https://youtu.be/dTTiO7_PW48

References:
https://en.wikipedia.org/wiki/Monte_Cassino
http://abbaziamontecassino.org/abbey/index.php/en/montecassino-abbey/14-legacy
http://www.historyofinformation.com/expanded.php?id=22








Friday, February 02, 2018

What does JSON.stringify() and JSON.parse() do?

JSON.stringify() takes a JSON Object as an argument and converts it to a JSON string. On the other hand JSON.parse() takes a JSON String as an argument and converts it to an Object.

Example of JSON.parse() here:
http://hodentekhelp.blogspot.com/2018/02/what-does-jsonparse-do.html

Example of JSON.stringify() here:
http://hodentekhelp.blogspot.com/2018/02/what-does-jsonstringify-do.html

Thursday, February 01, 2018

Microsoft SQL Operations Studio has Power Shell support


You can access the console in Microsoft SQL Operations Studio by clicking this option in the User Interface as shown.


PS_SQLOPS_0.png

This displays the terminal.



PS_SQLOPS_1.png

The following version of Power Shell is supported:


PS_SQLOPS_2.png



Hands-on learning event in Honolulu - Introduction to Structured Query Language


Database skills are essential in whatever organization and in whatever position and it is crucial that you have this in your arsenal (Resume')

Databases, organized repositories of information, have become indispensable in today's world. In this introductory course you will learn about relational databases and the basics of Structured Query Language (SQL) including sorting; grouping result sets; using DDL, DML, DCL, and TCL. All SQL statements will initially be written for one table. Most practical, modern and relational databases will include a large number of tables and SQL queries have to access information from several tables. This course will introduce you to querying more than one table. With this skill you will be able to query two or more tables in a database.

This is a hands-on course which will take you from installing SQL Server 2016 to learning the ins and outs of SQL Server Management Studio and of course a full dose of SQL. The course covers most of the requirements to take Microsoft's certification (98-364), the Microsoft Technology Associate. During each meeting, you will be assessed for your knowledge, competency and proficiency in SQL.

What's new in this session
  • SQL Server Using Powershell 
  • JSON and XML
The class runs from Feb 6 to March 13 at Honolulu Community College.

Feb 6 - March 13; TTH: 5:30 pm to 7:30 pm; 10 Mtgs


DMCA.com Protection Status