Displaying the most recent of 113 posts written by

Zhanshan Dong

JavaScript handling UTF8 characters

When I developed a PHP web application with AJAX. I encountered a problem that JavaScript cannot process utf-8 character correctly. Whenever user enter a UTF-8 string, it was converted to ASCII in JavaScript and delivered to PHP script. The site is using UTF-8 characters and will be sure there are a lot of request using [...]

  • Share/Bookmark

Solution for Cannot modify header information in PHP application

I encountered a strange problem when I developed a PHP website application. When I use english language file, saved in ASCII format. The web application runs smoothly with no problem. As soon as I change the language file to an Asian language, saved in UTF-8 format, a problem occurs. See the following for the detail [...]

  • Share/Bookmark

Return an array from a customized VBA function

Instruction You may use Visual Basic for Application for a while and wrote a lot of customized functions. I found majority of VBA users do not know how to use array as function arguments or return values in an array. Excel provides some of Worksheet functions that can return an array, such as “frequency”. For [...]

  • Share/Bookmark

An example of smooth interpolation

Problem I have a data set that includes data values for several segments with equal length. These values can be considered as average values across the whole segments. The neighboring segments are not independent with each other. In reality, segments are artificially dissection of a longer segments. Let us consider that this object is a [...]

  • Share/Bookmark

U’s Bargain Network, an online deal publishing system

U’s Bargain Network is a website that publishes online deals, bargains, discounts, and coupons related to computer, software, gaming, electronics, and video and more. It was intensively developed through the last two years. It is powered by online deal publishing system that consists of PHP applications, PERL applications, MySQL database system and other auxiliary applications.  The [...]

  • Share/Bookmark