Design, inventions and ideas website

Let me introduce you a well-know website in China, Ixiqi.com, about design, ideas, cute toys, and some funny inventions. There is something like 1000 pages and I viewed more than 500, I cannot stop. So many revolutionary ideas, or.. useless ; You can see above some pictures of nice design. By the way, the website is in full chinese, if you don’t understand, you can translate the pages with Google translate.

Toothpaste heads

Toothpaste heads

Funny earphones

Funny earphones

From Jingshan park (景山公園), Beijing

A nice view of the forbidden city (故宮).

Forbidden City

Forbidden City

Watch CCTV9 streaming on your computer

After some weeks, I finally found how to watch CCTV9 (Chinese TV, in English), on my computer. CCTV provide a free streaming flux on his website. But actually, they use a .. windows script to show the video. So, just show the source and we have what we want:

CCTV.com

CCTV.com

DB2 Data compression

Disk storage is not cheaper, take place, make noise, so, for large warehouses (or huge volumes database), the cost of the storage become important. IBM DB2 have a solution, with the data compression named “Venom” technology, reducing storage requirements, improving I/O, and providing quicker data access from the disk.

DB2 uses a dictionary based algorithm for compressing data records. DB2 9 will scan tables, and search for duplicate occurrences, then assign a short numeric key to each entries. You will understand better with a picture:

Compress data

Compress data

Each new occurences of “Sophie”, “New York”, “IBM US”, will be respectively assign to “(01)”, “(19)” and “(09)”. This is very useful on large table. Each time a new row is added to the table, DB2 will automatically compress these new data.

Seems to be good, let’s try on our DB2 now. To enable the compression, we should turn on the “COMPRESS” option on the table.

CREATE TABLE Users COMPRESS YES

or use alter if the table is already created:

ALTER TABLE Users COMPRESS YES

Typically, we can save an average ratio of 45 to 75 percent of our storage space. Next time, we’ll see how to use the inspect tool, to determine the compression ratio.