Yearly Archives: 2013

for-each of XSLT

foreachinxslt

There is a request that show some information on the page if the special products included in an xml file, and this need to be done by xslt.
Usually, we use for-each to look through all nodes and detect by if test=”condition” to check the result, but there is a problem that how to exit loop when we get correct result, so that don’t display multiple times?

Tagged with:
Posted in Uncategorized

Comparison of SSIM and PSNR for Image Quality Evaluation

SSIM vs PSNR

I developed a software for comparing SSIM and PSNR the two methods of image quality evaluation, and compare the two algorithms by experimental data. The experimental results show that the SSIM algorithm is more suitable for the human visual system characteristics than the PSNR and it can get better image quality evaluation results.

Tagged with: ,
Posted in Digital Multiple Media

SCI sentences

scisentence

Beginning 1. In this paper, we focus on the need for 2. This paper proceeds as follow. 3. The structure of the paper is as follows. 4. In this paper, we shall first briefly introduce fuzzy sets and related concepts

Posted in Uncategorized

Cursor list in Glut

glutmouse

There are a lot of cursors we can use in glut window for our OpenGL programming. value name cursor style 1 GLUT_CURSOR_LEFT_ARROW 2 GLUT_CURSOR_INFO 3 GLUT_CURSOR_DESTROY 4 GLUT_CURSOR_HELP 5 GLUT_CURSOR_CYCLE 6 GLUT_CURSOR_SPRAY 7 GLUT_CURSOR_WAIT 8 GLUT_CURSOR_TEXT 9 GLUT_CURSOR_CROSSHAIR 10 GLUT_CURSOR_UP_DOWN

Tagged with:
Posted in Uncategorized

XOR operator in javascript

logic

How to predicate every character  in a string is number (0-9)? normal way 1: validate by regular express

normal way 2: use parseInt() function

normal way 3: use isNaN() function

There are some other method also can

Tagged with:
Posted in Javascript

How to make jQuery validation engine works well for select2()

How to make jQuery validation engine works well for select2()

When we use select2 to prettify selector element , the jQuery validation engine will do not work well for it. A lot of people have to do custom validation function to hand over it.

It’s very troublesome, is there any way to solve this problem?

Tagged with: , ,
Posted in Javascript

101 LINQ Samples

examples

Learn how to use LINQ in your applications with these code samples, covering the entire range of LINQ functionality and demonstrating LINQ with SQL, DataSets, and XML.   http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b

Tagged with:
Posted in ASP.NET

Warning! WP Super Cache caching broken! The script advanced-cache.php could not load wp-cache-phase1.php.

error

After upgraded WordPress into latest version, encounter a warning message show as: Warning! WP Super Cache caching broken! The script advanced-cache.php could not load wp-cache-phase1.php. fixed this problem by modifying wp-config.php, add below code

before

 

Tagged with: ,
Posted in Uncategorized

Update on solar system

Solar System base on WebGL

Added control panel for seeking object and controlling track line show or hide.   http://wangweiqiang.net/lib/webgl/solarsystem.html

Tagged with: ,
Posted in HTML5, Javascript

Create beautiful input box by css, no background image

beautifulinput

Css is enough powerful to do decoration for input box, and we don’t need any background image any more.

Tagged with:
Posted in CSS3