Tuesday, December 31, 2013

How to wrap up a website into a Windows Store app?

1. In Visual Studio 2013, create a new C# blank app project
2. Drag a WebView into your app’s XAML

3. Add following code into your MainPage.xaml.cs file
webView1.Navigate(new Uri(@"http://myevents.apphb.com/"));

Reference:
http://msdn.microsoft.com/en-us/library/windows/apps/hh868173.aspx

Monday, December 30, 2013

How to fix 0x0000000A while install Windows 8 on Virtualbox?

Enable two options in your computer BIOS setting

Virtualization
+[x] Virtualization Technology
+[x] VT-d Feature

Monday, December 23, 2013

How to deal with “An error occurred on the server when processing the URL” problem for classic ASP?

This is a generic error for classic ASP hosted on IIS 7.

Go to IIS Server feature: ASP
Enable option: Send Errors to Browser

Then will find underneath real problem

Thursday, December 19, 2013

How to access Google spreadsheet by C#?

            SpreadsheetsService myService = new SpreadsheetsService("test");
            myService.setUserCredentials("AAA@gmail.com", "password");

            SpreadsheetQuery query = new SpreadsheetQuery();
            SpreadsheetFeed feed = myService.Query(query);

            Console.WriteLine("Your spreadsheets:");
            foreach (SpreadsheetEntry entry in feed.Entries)
            {
                Console.WriteLine(entry.Title.Text);
            }
API download link:
https://code.google.com/p/google-gdata/downloads/detail?name=Google_Data_API_Setup_2.2.0.0.msi&can=2&q=

http://stackoverflow.com/questions/725627/accessing-google-spreadsheets-with-c-sharp-using-google-data-api