Microsoft Azure Essentials: Azure Machine Learning free eBook

Somehow this topic is also big data related. Download the eBook here: http://www.microsoftvirtualacademy.com/ebooks#9780735698178.

This third ebook in the “Microsoft Azure Essentials” series introduces Microsoft Azure Machine Learning, a service that a developer can use to build predictive analytics models (using training datasets from a variety of data sources) and then easily deploy those models for consumption as cloud web services. The ebook presents an overview of modern data science theory and principles, the associated workflow, and then covers some of the more common machine learning algorithms in use today.

You can get to these resources to learning more about Azure:

Establish Microsoft Azure IaaS Technical Fundamentals

http://www.microsoftvirtualacademy.com/training-courses/establish-microsoft-azure-iaas-technical-fundamentals?WT.mc_id=13361-ITP-ming-man-chan-mvp-content

Dive Deep into Networking Storage and Disaster Recovery Scenarios

http://www.microsoftvirtualacademy.com/training-courses/dive-deep-into-networking-storage-and-disaster-recovery-scenarios?WT.mc_id=13361-ITP-ming-man-chan-mvp-content

Embrace Open Source Technologies to Accelerate and Scale Solutions

http://www.microsoftvirtualacademy.com/training-courses/embrace-open-source-technologies-to-accelerate-and-scale-solutions?WT.mc_id=13361-ITP-ming-man-chan-mvp-content

Posted in .Net, Community | Tagged , , , , | Leave a comment

Using the Div Tag as html Tables

This short article shows you how to using the Div Tag as html Tables.

In this sample I am using ASP.NET Webform.

1. Create an Empty Web Application, you can find under Visual Studio 2012 template.

2. Create a folder, in my case I name it Content.

3. Right click the Content folder -> Add -> Style Sheet. The name for this example is TableSty;e.css.

4. Paste the following to the css file.

.Table

{

    display: table;

}

.Title

{

    display: table-caption;

    text-align: center;

    font-weight: bold;

    font-size: larger;

}

.Heading

{

    display: table-row;

    font-weight: bold;

    text-align: center;

}

.Row

{

    display: table-row;

}

.Cell

{

    display: table-cell;

    border: solid;

    border-width: thin;

    padding-left: 5px;

    padding-right: 5px;

}

5. Create a aspx page in the application root, here I named it Home.aspx.

css

6. Paste the following to the aspx file.

<%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”Home.aspx.cs” Inherits=”WebAppCSS.Home” %>

 

<!DOCTYPE html>

<link href=”Content/TableSty;e.css” rel=”stylesheet” />

<html xmlns=”http://www.w3.org/1999/xhtml”&gt;

<head runat=”server”>

    <title></title>

</head>

<body>

    <form id=”form1″ runat=”server”>

        <div class=”Table”>

            <div class=”Title”>

                <p>This is a Table</p>

            </div>

            <div class=”Heading”>

                <div class=”Cell”>

                    <p>Heading 1</p>

                </div>

                <div class=”Cell”>

                    <p>Heading 2</p>

                </div>

                <div class=”Cell”>

                    <p>Heading 3</p>

                </div>

            </div>

            <div class=”Row”>

                <div class=”Cell”>

                    <p>Row 1 Column 1</p>

                </div>

                <div class=”Cell”>

                    <p>Row 1 Column 2</p>

                </div>

                <div class=”Cell”>

                    <p>Row 1 Column 3</p>

                </div>

            </div>

            <div class=”Row”>

                <div class=”Cell”>

                    <p>Row 2 Column 1</p>

                </div>

                <div class=”Cell”>

                    <p>Row 2 Column 2</p>

                </div>

                <div class=”Cell”>

                    <p>Row 2 Column 3</p>

                </div>

            </div>

        </div>

    </form>

</body>

</html>

Realized that I have add the css file to the aspx page.

You can also download a single project (for NetBean) from http://onedrive.com. The sample file name is WebAppGridView.zip. My MSN ID is chanmmn@hotmail.com.

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

Delete data in MS SQL Server in Java

This short article shows you the simplest way to delete data into MS SQL Server using Java.

To get the connection object, you can refer to https://chanmingman.wordpress.com/2015/04/25/read-ms-sql-database-recordset-in-java/, https://chanmingman.wordpress.com/2015/04/26/insert-data-to-ms-sql-server-in-java/, and https://chanmingman.wordpress.com/2015/04/29/update-data-in-ms-sql-server-in-java/.

The method to delete a row as follow.

public static void DeleteProduct(Connection con) {

        String UpdateSQL = “DELETE [dbo].[Products]\n”

                + ” WHERE ProductID = 88″;

 

        Statement stmt = null;

 

        try {

            stmt = con.createStatement();

            stmt.executeUpdate(UpdateSQL);

        } catch (Exception e) {

            e.printStackTrace();

        }

    }

You can also download a single project (for NetBean) from http://onedrive.com. The sample file name is mssqlconnecturl.zip. My MSN ID is chanmmn@hotmail.com.

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

Free .NET platform development tools

1. Visual Studio Community https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx.   

Visual Studio Community 2013 is a new edition that enables you to unleash the full power of Visual Studio to develop cross-platform solutions. Create apps in one unified IDE. Get Visual Studio extensions that incorporate new languages, features, and development tools into this IDE. (These extensions are available from the Visual Studio Gallery.)

2. Express 2013 for Web http://www.microsoft.com/en-us/download/details.aspx?id=44912

Visual Studio Express for Web has the tools to create standards-based, responsive websites, web APIs, or real-time online experiences using ASP.NET. Publish your web application directly to Microsoft Azure from the IDE. Create web services consumed by connected devices.

3. Express 2013 for Windows https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx

You can use the tools in Visual Studio Express 2013 for Windows to create innovative and compelling Windows Phone and Windows Store apps on Windows 8.1. The tools include a full-featured code editor, a powerful debugger, a focused profiler, and rich language support that you can use to build apps that you write in HTML5/JavaScript, C++, C#, or Visual Basic. Visual Studio Express 2013 for Windows also includes tools for Windows Phone 8.0 development, a device simulator that you can use to test Windows Store apps

4. Express 2013 for Windows Desktop https://www.microsoft.com/en-us/download/details.aspx?id=44914

Visual Studio Express for Windows Desktop lets you take full advantage of Windows with XAML designers, a productive IDE, and a variety of programming languages including C#, Visual Basic, and C++. Choose between Windows Presentation Foundation (WPF), Windows Forms, and Win32, to target the Windows desktop with the right technology for your application and your skills.

5. Team Foundation Server 2013 Express http://www.microsoft.com/en-us/download/details.aspx?id=44910

Collaborate, manage your repositories and automate build processes. Your team might be small and just getting started, but with Team Foundation Server Express, even the smallest team can go big. Up to five developers can access powerful application lifecycle management tools, collaborating and controlling the rise of your application, just like in any large organization.

6. Microsoft SQL Server 2014 https://msdn.microsoft.com/en-us/sqlserver2014express.aspx

Microsoft SQL Server 2014 Express is a free, feature-rich edition of SQL Server that is ideal for learning, developing, powering desktop, web & small server applications, and for redistribution by ISVs. The SQL Server 2014 Express release includes the full version of SQL Server 2014 Management Studio instead of SQL Server 2014 Management Studio Express.

Posted in .Net, Community | Tagged , , , , , , , , , | Leave a comment

Ionic Framework for mobile development using Visual Studio 2013

This short article shows you how to get started using IONIC Framework for mobile development in Visual Studio 2013.

Ionic can work with Visual Studio 2013 but you need to install Tools for Apache Cordova Visual for Studio 2013 – CTP 3.1.

1. First you download the Ionic template from https://visualstudiogallery.msdn.microsoft.com/8fa5bff2-e023-4e13-8b36-0244e935fb7d.

2. Start Visual Studio 2013. Go to File -> New -> Project…

3. Go to JavaScript template then you must choose Install Tools for Apache Cordova for the first time.

clip_image002

4. The Internet Explorer will pop up (that depend on your default Web Browser set in your operating system). Click Install the Multi-Device Hybrid App Tools.

clip_image004

5. Well your Visual Studio for sure will be still open. Close your Visual Studio and click Retry.

clip_image005

6. Click I agree…. And click Next.

clip_image006

7. Click Install to start installing Tools for Apache Cordova for Visual Studio 2013 – CTP 3.1.

clip_image007

clip_image008

8. Click Close when finished.

clip_image009

10. Start Visual Studio 2013, select File -> New – Project… You will see the Install Tools for Apache Cordova is no longer there. You can choose any Ionic template, Ionic SideMenu Template for example. Then click OK.

clip_image011

11. You might see the screen to Review your developer license for Windows 8.1. Just click I Agree.

clip_image013

 

12. Click Run from Visual Studio then you will see the emulation as below.

clip_image015

Posted in .Net, Community | Tagged , , , , , | Leave a comment

Update data in MS SQL Server in Java

This short article shows you the simplest way to update data into MS SQL Server using Java.

To get the connection object, you can refer to https://chanmingman.wordpress.com/2015/04/25/read-ms-sql-database-recordset-in-java/ and https://chanmingman.wordpress.com/2015/04/26/insert-data-to-ms-sql-server-in-java/.

The method to update a row as follow.

public static void UpdateProduct(Connection con) {

    String UpdateSQL = “UPDATE [dbo].[Products]\n”

            + ”   SET [ProductName] = ‘Toys for kids’\n”

            + ” WHERE ProductID = 88″;

 

    Statement stmt = null;

 

    try {

        stmt = con.createStatement();

        stmt.executeUpdate(UpdateSQL);

    } catch (Exception e) {

        e.printStackTrace();

    }

}

You can also download a single project (for NetBean) from http://onedrive.com. The sample file name is mssqlconnecturl.zip. My MSN ID is chanmmn@hotmail.com.

Posted in .Net, Community, Java | Tagged , , , | 1 Comment

Animated UpdateProgress in ASP.NET

This short article shows you how to do Animated UpdateProgress in ASP.NET.

This is not new but many people still looking for it. It is because this is nice and simple.

The simple html make up as below.

<%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”WebForm1.aspx.cs” Inherits=”WebAppUpdateProgress.WebForm1″ %>

 

<!DOCTYPE html>

 

<html xmlns=”http://www.w3.org/1999/xhtml”&gt;

<head runat=”server”>

    <title></title>

</head>

<body>

    <form id=”form1″ runat=”server”>

    <div>   

        <asp:ScriptManager ID=”ScriptManager1″ runat=”server”></asp:ScriptManager>

       

        <asp:UpdatePanel ID=”UpdatePanel1″ runat=”server”>

            <ContentTemplate>

               <asp:Button id=”btnClick” runat=”server” Text=”Button” OnClick=”btnClick_Click” />

            </ContentTemplate>

        </asp:UpdatePanel>

 

        <asp:UpdateProgress ID=”UpdateProgress1″ AssociatedUpdatePanelID=”UpdatePanel1″ runat=”server”>

            <ProgressTemplate>

                <div class=”progress”>

                                <img src=”images/45.gif” />

                                <asp:Label ID=”Label1″ runat=”server” Text=”Emailing in progress please do not close this browser…” Font-Size=”Large” ForeColor=”Red”  Font-Bold=”True”></asp:Label>

                            </div>

            </ProgressTemplate>

        </asp:UpdateProgress>

    </div>

    </form>

</body>

</html>

The code behind as follow.

protected void btnClick_Click(object sender, EventArgs e)

{

    System.Threading.Thread.Sleep(20000);

    Response.Write(“Processing done…”);

}

You can also download a single project (for NetBean) from http://onedrive.com. The sample file name is WebAppUpdateProgress.zip. My MSN ID is chanmmn@hotmail.com. Only use the Webform1.aspx and ignore the rest.

Posted in .Net, Community | Tagged , , , | Leave a comment