Windows cannot be installed on this disk. The selected disk is of the GPT partition style

This short blogs should you how to resolve this issue when you are installing Windows 7, Windows 8, or Windows 10.

When you are installing Windows you may hit the error “Windows cannot be installed on this disk. The selected disk is of the GPT partition style”.

A lot of articles ask you to type diskpart but where do you going to get the command prompt?

You get the command prompt by pressing Shift + F10 after you booked your PC or laptop using CD/DVD or USB drive.

Once you type diskpart then there is another prompt appear

Type list

DISKPART> list

Type select disk 0

DISKPART> select disk 0

Type clean

DISKPART> clean

You can try to install your Windows again. The error should be gone by now.

Posted in .Net, Community, Computers and Internet, Operating System | Tagged , , , , | Leave a comment

Getting started with Universal Windows Platform

This article shows you how to get started with Universal Windows Platform.

A term seems complicated but it is a much easier well than developing an Android phone app.

When you setup Visual Studio 2015 you choose Custom instead of Default.

After that you choose Cross Platform Mobile Development.

One your installation is done. Run Visual Studio with Administrator privilege (Run As Administrator).

Choose File -> New Project in Visual Studio.

In the New Project  dialog box choose Blank App (Universal Windows 8.1).

clip_image002

One the project is created then you will see there are 2 projects. You can select either one project to run as default. The default will be the Windows App instead of Mobile App. 

clip_image003

To test it, you open the MainPage.xaml by double clicking it.

To drag a TextBox and Button to the design surface then you will see your xaml code changes as below.

<Grid Background=”{ThemeResource ApplicationPageBackgroundThemeBrush}”>

    <TextBox x:Name=”textBox” HorizontalAlignment=”Left” Margin=”71,48,0,0″ TextWrapping=”Wrap” Text=”TextBox” VerticalAlignment=”Top” Height=”66″ Width=”370″/>

    <Button x:Name=”button” Content=”OK” HorizontalAlignment=”Left” Margin=”68,167,0,0″ VerticalAlignment=”Top” Height=”78″ Width=”148″ Click=”button_Click”/>

</Grid>

Double click the Button to add the following code.

private void button_Click(object sender, RoutedEventArgs e)

{

    textBox.Text = “Can run”;

}

Run the application by clicking the Run (Local Machine) button in Visual Studio.

clip_image005

You can do exactly the same to the MainPage.xaml in the Mobile App.

<Grid>

    <TextBox x:Name=”textBox” HorizontalAlignment=”Left” Margin=”47,29,0,0″ TextWrapping=”Wrap” Text=”TextBox” VerticalAlignment=”Top” Width=”208″/>

    <Button x:Name=”button” Content=”OK” HorizontalAlignment=”Left” Margin=”47,117,0,0″ VerticalAlignment=”Top” Click=”button_Click”/>

</Grid>

Also you can double click the Button to add exactly the same code as in the Windows App.

private void button_Click(object sender, RoutedEventArgs e)

{

    textBox.Text = “Can run”;

}

clip_image007

The only trick is when you want to run it then you might need to download the Emulator in you do not have a Windows Phone.

clip_image009

Posted in .Net, Cloud, Community, Computers and Internet | Tagged , , , , , | Leave a comment

Cannot download files from Onedrive.com in IE 11 running in 32 bit Windows 7

This short blog shows you how to fix the cannot download files from Onedrive.com in IE 11 running in 32 bit Windows 7 problem.

Up to today there are still many organization use 32 bit Windows 7, unfortunately.

If you are using 32 bit Win 7 as well then you will probably face the problem when you click the Download at the Onedrive.com like the one below but no response.

image

Go to the “Gear” and choose Compatibility View Settings.

image

Type live.com in Add this website: TextBox.

Click Add.

image

Posted in Community, Computers and Internet | Tagged , , , , , , | Leave a comment

How to learn R programming language

This short blog shows you one of the ways to learn R programming or R Script.

R has been getting popular over the past 5 to 6 years even though it is found back in 90s’.

The best site that I found to learn R is the link below.

http://tryr.codeschool.com/levels/1

To test out the code without using the website, you can download Microsoft R Studio, it is free but not sure for how long,

https://www.rstudio.com/products/rstudio/download/

The original R site is at url below.

https://www.r-project.org/

Posted in .Net, Community, Computers and Internet | Tagged , , , , , | Leave a comment

Free ebook: Containerized Docker Application Lifecycle with Microsoft Tools and Platform

This sounds to me like I can develop an application in Windows Platform such as C# and run on Linux.

There is no clear sample code you can use to try the application with the Docker. The book purely deliver you a lot of concept. Enjoy browsing,

https://blogs.msdn.microsoft.com/microsoft_press/2016/12/07/free-ebook-containerized-docker-applications-lifecycle-with-microsoft-tools-and-platform/?MC=CCPLUS&MC=Virtual&MC=WebDev&MC=SharePoint&MC=CloudPlat

Posted in .Net, Community, Computers and Internet | Tagged , , , , | Leave a comment

Upgrade from Windows 8.1 to Windows 10 for Windows Phone

This short blog shows you how to upgrade from Windows 8.1 to Windows 10.

I have upgraded my Nokia Lumia 735 from Windows 8.1 to Windows 10. My son has upgrade his Microsoft Lumia 640 XL from Windows 8.1 to Windows 10.

What you need to do is go to Windows Store and get Upgrade Advisor app for Windows 10 Mobile (https://support.microsoft.com/en-us/help/13778). The Advisor will guide your through the upgrade easily.

Additional resources:

https://support.microsoft.com/en-us/help/10599/windows-10-mobile-how-to-get

https://www.youtube.com/watch?v=VnBxPwtYFeM

Posted in .Net, Community, Computers and Internet | Tagged , , , , , | Leave a comment

Using node.js as a web server with Visual Studio Code

This blog shows you how to use node.js as web server. If you just want to test html, JavaScript, and CSS then you can use node.js as web server.

Do the following

1.       Download Visual Studio Code https://code.visualstudio.com/.

2.       Install Visual Studio Code.

3.       Download node,js https://nodejs.org/en/download/.

4.       Install node.js.

5.       Run cmd (command promote) as Administrator.

6.       Create a folder for your Web Page.

7.       Change to the folder you have just created.

8.       Type Code . .

Visual Studio Code will be launched

9.       Configure the Visual Studio Code Debugger https://chanmingman.wordpress.com/2016/12/12/debug-c-using-visual-studio-code/.

10.   On Visual Studio Code click File, then choose New File.

11.   Paste the following code.

var http = require(‘http’);

var fs = require(‘fs’);

var url = require(‘url’);

 

// Create a server

http.createServer( function (request, response) { 

   // Parse the request containing file name

   var pathname = url.parse(request.url).pathname;

  

   // Print the name of the file for which request is made.

   console.log(“Request for ” + pathname + ” received.”);

  

   // Read the requested file content from file system

   fs.readFile(pathname.substr(1), function (err, data) {

      if (err) {

         console.log(err);

         // HTTP Status: 404 : NOT FOUND

         // Content Type: text/plain

         response.writeHead(404, {‘Content-Type’: ‘text/html’});

      }else {

         //Page found       

         // HTTP Status: 200 : OK

         // Content Type: text/plain

         response.writeHead(200, {‘Content-Type’: ‘text/html’});    

        

         // Write the content of the file to response body

         response.write(data.toString());      

      }

      // Send the response body

      response.end();

   });  

}).listen(8081);

 

// Console will print the message

console.log(‘Server running at http://127.0.0.1:8081/&#8217;);

clip_image002

12.   Save the file as server.js.

13.   On Visual Studio Code click File, then choose New File.

14.   Paste the following code.

<html>

   <head>

      <title>Sample Page</title>

   </head>

   <body>

      Hello World!

   </body>

</html>

15.   Save the file as index.htm.

16.   Replace the line in launch.json.

“program”: “${workspaceRoot}/app.js”,

to

“program”: “${workspaceRoot}/server.js”,

17.   Click on Debug

18.   Click Launch Program.

clip_image004

                You will see in DEBUG CONSOLE the following message.

                “Server running at http://127.0.0.1:8081/

clip_image006

19.   Open Web Browser and type http://127.0.0.1:8081/index.htm.

You will see the Web Page showing.

clip_image008

Reference:

https://www.tutorialspoint.com/nodejs/nodejs_web_module.htm

Posted in .Net, Community, Computers and Internet, Java | Tagged , , , , | Leave a comment