Blog Archives

How to do a swing lantern with pure css

lantern

Use very simple html code with pure css, we can create a Chinese style lantern with swing animation.

Tagged with:
Posted in CSS3

Some cool css techniques with demo

SwatchBook

SWATCH BOOK WITH CSS3 AND JQUERY A tutorial about how to create a swatch book like component that let’s you open and rotate the single swatches revealing some details. We will be using CSS transforms and transitions and create a

Tagged with: , ,
Posted in CSS3

Build an OpenGL mesh viewer with glut(2)-Load M file into half-edge data structure

half-edge

In this project, we focus on triangle mesh model which its data is stored into M file.  The format of M file is very simple, it contains two parts, one is for “vertex”, another part is for “face”.

Every

Posted in CG

Build an OpenGL mesh viewer with glut(1)-Setup development environment

opengl

For this project development, we use Glut to build the interface which provide the UI such as window, menu and mouse/key interaction, as a beginner, Glut is good choice, because it is easy to use and do not need spend

Posted in CG

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