Here is the story. I have been using Google Drive to host the javascript files and stylesheet files all the time. It works perfectly, until a few days ago when I noticed that if the web page contains javascript files hosted at Google Drive, it can not be viewed properly from the Facebook built in web browser. I did some further investigation. The same thing happened when the page is opened in Wechat built in browser. However, the page works fine when it is opened in most browsers, like IE, Chrome, Firefox. It took me several hours to figure why. And So far I have not find out the reason. I checked the mime type of the files. They are correctly recognized by Google Drive. But the solution is: moving the files out of Google Drive. Now it works perfectly, in browser and in App built in web browsers as well.
GoDaddy does not allow webmaster to clear the MS SQL Server database log file. And the Database file size is limited to 200 MB. I used to call GoDaddy to truncate the log file. However, it is really time consuming. Using following workflow I can successfully truncate my SQL Server log file. 1. Create a new MS SQL Server DB name it as NDTemplate. 2. Backup this database as an empty database. The backup file is about 1.6MB 3. Backup the original DB that you need to truncate. At my case this backup file is about 200MB. 4. Generate database script for the full database, and execute this sql script against the empty database. 5. Export the data in the Database to the new DB 6. Backup the new DB again and restore it against the original DB. Now the database will have all the data and structure. But the log file is minimized. It will only include the initial insert log.
As usual, the best way to learn something is to use it. Follow the official quickstart sample to develop the Hello World of Xamarin. Xmarin quickstart A few interesting tips: 1. At top right, there are a few icons. One of them can be used to switch to design view as Asp.Net UI designer: 2. In this sample, the local file operation and basic back end code are exactly the same as Asp.net. The only issue I have had is that I changed the application name from "Notes" to "Quickstart_Note" and this caused a build failure. The reason is that then namespace for the Mainpage class is Notes. The namespace has to be used in the App.xaml.cs accordingly. This is how the final app looks like in Android emulator: 3. For the quickstart step 3, SQL Lite recommended by the tutorial has been depreciated. There is an official build specially for Xamarin released by SQLite-net. There is no other issue to follow the quickstart sample. After the quick start, the fundamentals of Xamarin dev...
Comments
Post a Comment