2008/09/12

PHP backend for Silverlight

Using .NET with Silverlight is great choice, and I can do so at work environment. However, I often working with PHP/MySQL at home. I wonder if I can do PHP with Silverlight doing INSERT/UPDATE/DELETE/RETRIEVE data.

Interesting in using PHP backend for Silverlight?
Check PHP backend for Silverlight

Some more links:
Writing Silverlight applications in PHP

2008/09/03

Use WCF in Silverlight 2

I don't know why I have to set BasicHttpBinding, and EndpointAddress parameters while calling WCF.

In silverlight tutorial always use below:
Dim client As New ServiceReference1.SimpleWCFClient ()

BUT, I have to declare like below syntax to make it work. It is not so dynamic coding, since I have to give the WCF file URL.

Dim client As New ServiceReference1.SimpleWCFClient ( _
New BasicHttpBinding, _
New EndpointAddress("http://localhost/SilverlightApp_Web/SimpleWCF.svc") _
)

Event Handler in VB.NET/C#

I am using VB.NET at work, but currently most of the tutorials for learning Silverlight taught in C#. I am not that familiar with C#, although I understand other similar programming language such as Java. As a result, I need to write it down for looking up in the future.

Event Handler Syntax in VB/C#:

Bold: Event Name
Bold Itatlic: Event Function

VB Syntax:

AddHandler wcService.DownloadStringCompleted, AddressOf wcService_DownloadStoriesCompleted


C# Syntax:

wcService.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wcService_DownloadStoriesCompleted);

2008/04/26

VS2008 + PHP

Visual Studio is a great IDE and editor, I use it at work for doing .NET projects. However, I would also like to use it to deal with my PHP projects, since it has better debugging function for JavaScript in VS2008.

I do not really need php IDE but code coloring.

Here is a great tool to help me out!

Visual Studio 2008 and PHP Coloring

Simple tool but great!!

2007/11/22

MySQL & .NET MySQL connector & Chinese Support

I just encounter a serious problem when inserting chinese data into MySQL using .NET MySQL connector. It shows like ????.

OK...Here is the solution:

Change Connection String and add charset=utf8:

Example:
Database=[dbname];Data Source=[source];User Id=[userid];Password=[password];charset=utf8

2007/07/29

[SEO] Publish your websites

SEO...first step...let people find your site through search engines.

http://www.google.com/addurl?q=www.yourdomain.com
http://search.msn.com.tw/docs/submit.aspx?url=www.yourdomain.com
http://tw.search.yahoo.com/free/request (Need login)