Wednesday, September 14, 2022

HTML Formatting Elements

Here goes HTML list of formatting elements:

  • <b> - Bold text
  • <strong> - Important text
  • <i> - Italic text
  • <em> - Emphasized text
  • <mark> - Marked text
  • <small> - Smaller text
  • <del> - Deleted text
  • <ins> - Inserted text
  • <sub> - Subscript text
  • <sup> - Superscript text

Friday, September 9, 2022

No iOS signing iddentities match the specified provisioning profile "Name of profile"

 To solve this issue, try the following steps:

  1. Check if the apple certificate (distribution/development) is still valid at
  2. if certificate has expired then create a new certificate.
  3. download the certificate and double click so that its added to xcode. Verify that certificate is present in xCode.
  4. Now import this certificate to apple keychain. Go to Keychain, click Login, click Certificates on the top bar, then select the certificate, right click it and export as a p12 file, pay attention to remembering the password.
  5. Move the p12 file to your Windows machine, go to Tools -> Options->Xamarin ->Apple Account in VS, and click View Details, click Import Certificate, import the p12 file and input the password. Then check if the profile is in %LOCALAPPDATA%\Xamarin\iOS\Provisioning\Profiles

Wednesday, September 7, 2022

Reset MacBook air user account password

 Try these steps to reset your user account password:

Shut down your MacBook Air .

Press and hold the power button (Touch ID) until the screen says "Loading startup options".

Choose Options, then click Continue.

If you're prompted for an admin password, choose "Forgot all passwords?". If you're prompted to authenticate with your Apple ID, do so to continue.

You should now see a window with four options: Restore from Time Machine, Install macOS, Safari, Disk Utility. Don't choose any of these; instead, go to the menu bar at the top of the screen and click on Utilities. Then, choose Terminal.

Type "resetpassword" without the quotes and hit Enter (Return).

If FileVault is disabled, you should be able to reset your password without issue.

Friday, July 22, 2022

Cloud Service Model

Iaas: Infrastcture as s service
This cloud service model is the closest to managing physical servers; a cloud provider will keep the hardware up-to-date, but operating system maintenance and network configuration is up to you as the cloud tenant. 

Paas: Platform as a service
This cloud service model is a managed hosting environment. The cloud provider manages the virtual machines and networking resources, and the cloud tenant deploys their applications into the managed hosting environment. 
Example: Azure app services

Saas: Software as a service
In this cloud service model, the cloud provider manages all aspects of the application environment, such as virtual machines, networking resources, data storage, and applications. The cloud tenant only needs to provide their data to the application managed by the cloud provider. 
Example: Microsoft Office 365

Friday, July 8, 2022

Storage options in .NET MAUI

 .NET MAUI provides multiple storage options for caching data locally on a device.

The three most commonly used options for storing data locally in a .NET MAUI app are:

  • Preferences: Stores data in key-value pairs
  • File system: Stores loose files directly on the device through file system access
  • Database: Stores data in a relational database
Preferences are convenient when you're working with simple pieces of data, such as user selections.
bool bUserDetails = ...; ... Preferences.Set("UserDetails", bUserDetails); ... var savedPreference = Preferences.Get("UserDetails", false);

The Preferences class also contains methods for determining whether a named preference exists (ContainsKey), deleting a preference (Remove), and removing all preference data (Clear).

Consume a REST service with HttpClient in .NET MAUI

HttpClient is a .NET class that an app can use to send HTTP requests and receive HTTP responses from a REST web service. The resources that the web service exposes are identified by a set of URIs. 

A REST web services enables a client to perform operations against data through a set of HTTP verbs.

Four most common are GET, POST, PUT, and DELETE.

  • The GET verb indicate that you want to retrieve a resource.
  • The POST verb indicate that you want to create a new resource.
  • The PUT verb indicate that you want to update a resource.
  • The DELETE verb indicate that you want to delete a resource.

Thursday, July 7, 2022

Styles in .NET MAUI

 A style is a collection of setters targeted at a specific type of control. .NET MAUI requires a target type so it can make sure that the properties in your setters exist on that type.

You typically define styles as resources inside a ResourceDictionary object. A resource dictionary makes it easy to use the style across multiple controls on the same page, or even across your entire application.



<Style x:Key="MyButtonStyle" TargetType="Button"> <Setter Property="BackgroundColor" Value="#2A84D3" /> <Setter Property="BorderColor" Value="#1C5F9B" />

<Setter Property="BorderWidth" Value="2" /> <Setter Property="TextColor" Value="Green" /> </Style>

Applying a Style

<Button Text="OK" Style="{StaticResource MyButtonStyle}" /> <Button Text="Cancel" Style="{StaticResource MyButtonStyle}" />

Use an implicit style for multiple controls

Suppose your UI has 20 buttons and you want to apply the same style to all of them. With what we know so far, you'd need to assign to the Style property on each button manually. I

An implicit style is a style that you add to a resource dictionary without giving it an x:Key identifier. Implicit styles are automatically applied to all controls of the specified TargetType object.


<ContentPage.Resources> <Style TargetType="Button"> <Setter Property="BackgroundColor" Value="Blue" /> <Setter Property="BorderColor" Value="Navy" /> ... </Style> </ContentPage.Resources>

Application level resource and style


<Application.Resources> <Color x:Key="MyTextColor">Blue</Color> </Application.Resources>

HTML Formatting Elements

Here goes HTML list of formatting elements: <b>  - Bold text <strong>  - Important text <i>  - Italic text <em>  - E...