Tips & Tricks

WordPress Blog in Azure App Service In Minutes–Part 02 (Configuring WordPress)

March 24, 2018 App Service, Azure, Back-2-Bascis, Emerging Technologies, KnowledgeBase, Microsoft, OpenSource, Tips & Tricks, Web Development, Windows Azure Development No comments

In the last part of this series, we experienced how to create a new wordpress blog instance in Azure App Service. In this part we will learn, how to configure your wordpress instance for publishing.

Now that we have WordPress instance deployed in Azure App Service, lets expore the app service instance a bit.

Step 1: Go to “All Resources” and select “mywordpress-blog” app

image

Step 2:  Copy URL and open in another browser window

image

Step 3: WordPress Configuration will automatically kick-in.  Select your desired language, in my case it would be ‘English’ and click on Continue.

image

Step 4: Specify your blog name, initial admin username, password, email etc.

Click on [Install WordPress]

image

Step 5: Congragulations!, Your installation is successful and you will be greeted with Success message. Now it is your time to get started with your blog.

image

You can simply login to <your_wordpress_website_url>/wp-admin, with the admin login and start creating your content.

If you are a beginner and need additional help in using wordpress, please visit – Official WordPress-Configuration  Help

WordPress Blog in Azure App Service In Minutes–Part 01

March 24, 2018 App Service, Azure, Azure Database for MySQL, Back-2-Bascis, CodeSnippets, JumpStarts, KnowledgeBase, Microsoft, OpenSource, Tips & Tricks, Windows, Windows Azure Development No comments

All my life I have been a tech saavy person would make my hands dirty trying out all odds available.

Here I am going to help you with setting up your own WordPress Blog in Azure App Service.

SPOILER ALERT: We will be using a B1 – Basic instance to save the cost.

image

Step 1: Login to Azure Portal

Step 2: Click on New

Step 3: Search for “Wordpress” among resources  and Select WordPress

image

Step 4: Click on ‘CREATE’

image

Step 5: Enter App Service Instance Name

image

Step 6: Now Select Database Provider. We need MySQL as the database and we have two options provided by Azure

1. Azure Database for MySQL ( a managed MySQL instance)  which has become publically available few days back.

2. MySQL In App (an instance hosted within App Service instance, basically your web app and mysql will be sharing the computing capabilities of the instance).

For the interest of the article, I will go with Option 2: MySQL InApp

image

Step 7: Specify App Service Plan /Location

As metioned in the spoiler we will go with a B1 Basic tier in West Europe location.

image

Step 8: Turn Application Insights ON and Specify location (This is optional, you do not want Application Insights performance logging for your blog, you can simply ignore)

Step 9: You are ready to go, click on [CREATE] to start the deployment.

image

Step 10: Now you see the deployment in progress message in Azure Portal.

image

image

Wait until this deployment is finished to setup WordPress initial configuration for use along with your custom domain.  We will continue with our setup in next part of this series.

Installing Windows 10 Client Hyper-V in VMware Workstation/Fusion/ESX

July 10, 2015 Hyper-V, KnowledgeBase, Microsoft, OS Virtualization, Tips & Tricks, Virtual Machines, Virtualization, VMware, Windows, Windows 10 No comments , , , ,

As a Windows 10 Insider, I would always latest version of Windows on VMWare Player, Workstation or VirtualBox. Recently I was trying to set up a Windows Phone 10/UWP development environment inside a VMWare virtual machine.

I tried to enable Hyper-V platform components in my Windows 10 Preview Virtual machine. It shows an error.

Hyper-V cannot be installed: A hypervisor is already running

  • Unable to use Hyper-V platform inside a Windows 10 virtual machine
  • When trying to enable/install Hyper-V in a Windows 10 virtual machine, you will see the above error:

image

SOLUTION:

Solution for this problem is to edit your VMware Virtual Machine configuration(.vmx) file in your Windows 10 Virtual machine stored location.

  • Switch off/Shutdown your VMware virtual machine
  • Edit the corresponding .vmx file
  • Append the following entries to the vmx file (verify entry if already exists)
hypervisor.cpuid.v0 = "FALSE”
vhv.enable = "TRUE"
mce.enable = "TRUE"
  • Save the changes
  • Start your Windows 8 VMware Virtual machine
  • Now go to Control Panel –> ‘Programs and Features’ –> Turn windows features on or off
  • Viola!,  You can now enable ‘Hyper-V Platform’ . Now you can install Windows Phone SDK on your Windows 10 Virtual Machine

image

VMware Official Knowledgebase Reference Link:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2044876

Hope that help you guys with similar problems.

Windows 8 Client Hyper-V and Windows Phone 7.x emulator slowdown

January 28, 2013 .NET, All, Community, Hyper-V, KnowledgeBase, Microsoft, Mobile-Development, MSDN, Tips & Tricks, VisualStudio, VS2010, VS2012, Windows, Windows 8, Windows Phone, Windows Phone 7.0, Windows Phone 7.1 SDK, Windows Phone 7.5, Windows Phone 7.8, Windows Phone 8, Windows Phone 8.0 SDK, Windows Phone Development, Windows Phone SDK, Windows Phone Store No comments

Hyper-V is a great platform for virtualization and luckily Windows 8 have inbuilt/integrated support for hyper-v technologies. Windows Phone 8 SDK uses hyper-v for emulator virtualization and it works pretty good with Visual Studio 2012. Hyper-V integrated to the Windows 8 is been called ‘Client Hyper-V’.

Client Hyper-V is the same virtualization technology previously available only in Windows Server®. A similar functionality in Windows 7 is called Windows XP Mode. Client Hyper-V enables you to run more than one 32-bit or 64-bit x86 operating system at the same time on the same host computer. But instead of working directly with the computer’s hardware, the operating systems run inside a virtual machine (VM). Hyper-V enables developers and IT professionals to easily maintain multiple test environments and provides a simple mechanism to quickly switch between these environments.

You can read more about it from MSDN Guide – Using Windows 8 Client Hyper-V

m-w630-windows-8-logo-620x322Windows-Phone-7_1-Mango-Logo

The problem is – Client Hyper-V have some inconsistencies with old Windows Phone 7.x emulators. The new Windows Phone 7.8 emulators works fine, but with older Windows Phone 7.x emulators you could experience the slow start-up/load of the emulator. It takes few minutes to launch in some systems, and in some high end multi core systems it launches in moments.

You will experience this problem when you want to develop and test for old Windows Phone 7.x devices, you will have problem in launching emulators.

From my experience and searching on Google the following thread help me to understand that it is a known problem with Windows 8 – Hyper-V and Windows Phone 7.x emulators. If you turn off Hyper-V for a while you can experience that Windows Phone 7.x emulators are launching instantly when you launch for debug/run.

http://social.msdn.microsoft.com/Forums/en-US/wptools/thread/2d149fee-a52e-4e2d-90d2-24e76639bd85/ 

So here is the dilemma scenario,

You want to develop an application that you want to test on both Windows Phone 7.x and Windows Phone 8.0 emulators

OR

You want to develop and application targeting Windows Phone 7.x using Visual Studio 2010 in Windows 8.

 

I have few steps to follow to toggle between the development environment, and depending on the system it is time taking, or little annoying – but we have to deal with it.

So I have to disable Hyper-V when I have to work on Windows Phone 7.x emulator.

Disable Hyper-V feature

Control panel -> Programs and Features -> Turn windows features on or off -> Uncheck Hyper-V feature.

hyper-v

Restart the machine.

NB: Enabling/Disabling Hyper-V will require you to restart to take effect.

But this is a time taking process and every time you will have to On/Off feature and restart. What we could have an option in Windows Boot itself – through which I can normally boot to Windows with Hyper-V or boot with Hyper-V disabled.

We can do that using hypervisorlaunchtype = off/on boot flag. 

An easy fix for this is to create a second boot entry for my system that starts Windows without starting the hypervisor.  To do this you need to open an administrative command prompt and run the following commands(follow steps below):

image

1. bcdedit /copy {current} /d "Windows 8 – no hypervisor"

This copies your currently active boot entry (assuming that this is the one you want to copy or select the appropriate one – if you are on a multi-boot environment) and gives the new copy the name you mentioned above ‘Windows 8 – no hypervisor’.

this will display a message in command prompt that “The entry was successfully copied to {some guid_identifier}”

 

2. bcdedit /set {guid_identifier} hypervisorlaunchtype off

guid_identifier is the identifier for the new boot entry (copy from the output of a plain ‘bcdedit’ command – we executed in step 1)} ,

Copy the {guid} from the command prompt window and run the above command appropriately replacing {guid_here} with {guid from your command window for the new boot entry}

hviosr_002

Now you have an additional boot entry, you can login in to your Windows 8 with hyper-v disabled mode and when you are done with it – You can reboot and select your default boot option(which is with Hype-V enabled).

1. When you want to work with Windows Phone 8.0 emulators select default boot option from boot menu.

2. When you want to work with Windows Phone 7.x emulators – select the newly created boot option from boot menu.

Hope that helps some of you – who worried with these kind of troubles with Windows Phone development.

Note: Some of you with kind of powerful systems will less experience these kind of issues. So this tip is for those who are in need. Smile

Making an Offline install of Windows Phone SDK update for Windows Phone 7.8

January 26, 2013 .NET, All, Community, KnowledgeBase, Microsoft, Microsoft SDKs, MSDN, Tips & Tricks, Windows Phone, Windows Phone 7.1 SDK, Windows Phone 7.8, Windows Phone 8, Windows Phone 8.0 SDK, Windows Phone Development, Windows Phone SDK 2 comments

In my last articles I introduced you to the latest update for Windows Phone SDK to support Windows Phone 7.8. The installer available download from here, the installer package[WPExpress78_update.exe](1.10MB) is an Online/Web Installer – will download the necessary packages on demand at the time of installation, and it would take some time depending on your bandwidth.

I was looking for ways I can have all the packages pre downloaded and available offline for my later installations.I came across some quick tips, and it may useful to you all as well.

We can do it easily using the ‘/Layout’ switch/command line argument available in Setup executable.

Follow the steps below:

1. Open your ‘Command Prompt’ with Administrator privileges (Right click on ‘Command Prompt’ icon and click on ‘Run as Administrator’ from context menu – which will launch ‘Command Prompt’ with Administrator privileges.).

2. Navigate to the command terminal to the folder in which WPExpress78_update.exe is stored. In my case it is ‘C:\Downloads’.

3. Type the following command in the Command Prompt

WPExpress78_update.exe /layout

/layout switch will create a copy of the media in the specified folder.

This will launch  the installer and prompt you for the Download location, to download and store the packages.

4. Specify the  target folder to store the extracted/downloaded package files, and click on ‘Download’ button.

imageimage

Sit and relax – the setup will start download. It will take a while in acquiring necessary packages.

image

You can see a ‘Packages’ folder created inside your target folder and a copy of ‘WPExpress78_update.exe’ placed with it.

image

Packages folder contains only two updates. Windows Phone 7.1.1 update and Windows Phone 7.8 emulator images.

image

5. Wait for a while and download will complete. Once download is completed you can install the update by Clicking on ‘WPExpress78_update.exe’ from the target folder.

image

Now you have the complete packages available offline and can install whenever you want. Or keep a backup of the full folder. 

Hope you enjoy reading the article.

StartW8–a closer, free Windows Aero start menu alternative–for Windows 8

January 18, 2013 All, Community, MSDN, Softwarez, Tips & Tricks, Tools, Tweaks, Windows, Windows 7, Windows 8 No comments

While searching for Third Party alternative software’s for bringing back windows start menu feel on Windows 8, I came across few interesting tools – and I introduced them in my earlier blog posts – Stardock’s Start8 (licensed version), Classic Shell, Power8 were those.

Logo

[logo courtesy: AreaGuard]

Today I just found another cool alternative that you can try for free – StartW8 – is developed by Area Guard. You can install and use the software free of cost. It gives you start menu closer to the appearance of Windows 8 aero look and feel.

Have a look at the screenshot @ http://www.areaguard.com/startw8-start-menu-for-windows8-screenshots

StartW8 key features

  • Automatically switch to desktop immediately after signing in
  • Added Windows Start menu in Windows 8 design, but Windows 7 functionality
  • Activate menu with Win key
  • Log off, lock and turn off buttons
  • Traditional search field
  • Favourite applications
  • All user configurable
  • Support for silent installation
  • Multilanguage support (18 languages)
  • Option to ignore the lower left Hot corner

[Quoted from AreaGuard StartW8 website]

Download and Try StartW8 from: http://www.areaguard.com/startw8