Wednesday, October 15, 2008

Fall In Love with you



Linked From www.2beanet.com

Beijing Bird's Nest

I'm not sure when I first fell in love with you...


I guess it could have been as early as that first time we held each other, or the first time I realized that you kind of liked me, too... I'm not sure; I just remember thinking of you more and more and getting less and less done in the process! I remember wanting you to stay so badly - and being so thrilled at the thought. I remember praying that it was you whenever the phone would ring, but at the same time hoping it wasn't; because I didn't know how in the world I was going to sound romantic and impressive when what I felt was anxious and tongue-tied...





Sometimes it still amazes me - how I get so anxious and thrilled and thoughtful about you; I guess maybe it's because I just keep falling wonderfully in love with you... over and over again.

Big Bags for Women are in Fashion



Every year, women’s handbags are becoming heavier and heavier. As the researchers have ascertained, the weight of the bags contents increased for 38% and is about 2.5 kg.


According to experts, within the decade it could reach 3 kg. Experts believe that it is the result of the technical progress. All new-fashioned toys such as PDAs and communicators women prefer to have in their carryalls. The daughters of Eve put into their accessories, where there’s only so much room in, the charger for the mobile and even laptop computer besides cosmetics bag, umbrella and hair brush, The Daily Mail writes.Designers chose not to leave women alone with this problem – in the current season gigantomania for the accessories is in fashion. The bags significantly increased in size. The brand-director Fiona Lambert says: “Women constantly complain that modern life has become a heavy burden for them. We now understand they are right. We are surprised at how quickly the weight of bags has grown. Weight bearing that sustain women doubles because of pressure of the belt on the shoulder while walking.”“Women can be compared with workers at a construction site, lugging cement. Increasing of the weight means that the accessories are carried on the shoulders, not in hands. And large bags become more and more popular,” – she added.



Meanwhile, surgeons and manual therapeutists have noticed the growth of women injuries related to heavy bags’ carrying. The therapeutist Tim Hutchful notes: “The risk of heavy bags is not only that because of them one could get a serious injury – carrying weights could have serious consequences in the future. As a result, we see the growth of complaints from women about pains in back.”However, not all share the scepticism of physicians. The consultant in the department of bags, John Lewis market, notes: “Big bags are in fashion. For example, sales of Mulberry bags increased for 10%. Radley bags also are popular. But the bags with a large number of pockets in which women can place all they want to take with them are sold best of all.”

Barack Obama Doll

The German toy manufacturer offers the Barack Obama doll, 36 cm in height, to customers. According to Marcel Offermann, the doll of the presidential candidate, presenting the Democratic Party wears a black suit, watery blue necktie and leather shoes, and looks like the candidate did at many campaign speeches. The badge with the American flag is on the jacket’s lapel.


Barack Obama doll by “Puppenklinik” (doll clinic), belonging to Offermann, is on sale; the edition is limited on 999 dolls. The dolls can be purchased via the Internet for 139 euros ($ 219). Dolls came into the market on Monday; 45 orders have already placed.“Puppenklinik” produced the dolls of famous people in the past, including the late Princess of Wales, Germany’s Chancellor Angela Merkel and Pope Benedict XVI. This company is located in Neisse, Germany.

Sunday, October 12, 2008

some art pictures













Wednesday, October 8, 2008

configuration and help for the nand on mpc8379erdb

Platform:

freescale MPC8379ERDB Board (There are no complete parameter and instructions with the board when getting it)

Pls pay attention to the following points:

The base address of the Nand Flash is 0xF8000000, including u-boot and dtb files.

Porting Steps:

1. modify the file : include/configs/MPC837XERDB.h

#define CFG_PROMPT "Ehometech# " /* Monitor Command Prompt */ ==> line 508
#define CONFIG_IPADDR 192.168.0.220 ==> ipaddr for the board
#define CONFIG_SERVERIP 192.168.0.200
#define CONFIG_GATEWAYIP 192.168.0.1

2.pls remove all the '#if 0' in parts concerning nand flash

for example below:

//#if 0
#define CONFIG_CMD_NAND
//#endif

3.modify the base address for the nand flash as below

#define CFG_NAND_BASE 0xf8000000 /* 0xf8000000 */
#define CFG_MAX_NAND_DEVICE 1
#define NAND_MAX_CHIPS 1
#define CONFIG_MTD_NAND_VERIFY_WRITE
#define CFG_LBLAWBAR1_PRELIM CFG_NAND_BASE
#define CFG_LBLAWAR1_PRELIM 0x8000000E /* 32KB */

4.exect the command below for configuration

make MPC837XERDB_config

5.exect the command below for building u-boot.bin

make

and then brun the u-boot.bin image into the flash with base address 0xf8000000

6.reset u-boot and set the parameter

=>setenv bootcmd run run_vscld1\;tftp 1000000 uImage\;tftp 1200000 mpc8379erdb.dtb\;tftp 2000000 ramdisk\;bootm 1000000 2000000 1200000
setenv bootargs root=/dev/ram rw console=ttyS0,115200 ramdisk_size=135696

modify the file mpc8379_rdb.dtb in the kernel, add the following parts, pay attention for the address for every part.

elbc@e0005000 {
linux,phandle = ;
device_type = "elbc";
compatible = "fsl-elbc";
reg = ;
interrupts = <4d>;
interrupt-parent = < &ipic >;
/* allow-direct-device-sleep; */
};
nand@f8000000 {
device_type = "nand";
compatible = "fsl-nand";
reg = ;
partitions = <>;/* DTB 1M RO */
partition-names = "U-Boot-NAND", "JFFS2-NAND", "Ramdisk-NAND",
"Reserve-NAND", "Kernel-NAND", "DTB-NAND";
};

7.building dtb file:
dtc –f –I dts –O dtb –R 8 –S 0x3000 mpc8379_rdb.dts >/tftpboot/mpc8379erdb.dtb

8.configure the kernel for supporint MTD:

Device Drivers --->
<*> Memory Technology Device (MTD) support --->
--- Memory Technology Device (MTD) support
[*] MTD partitioning support
[*] Command line partition table parsing
<*> Caching block device access to MTD devices
Mapping Drivers for chip access --->
<*> Flash device in physical memory map based on OF description
<*> NAND Device support --->
[*] NAND support for MPC837x
File systems --->
Miscellaneous filesystems --->
<*> Journaling Flash File System v2 (JFFS2) support
(0) JFFS2 debugging verbosity
[*] JFFS2 write-buffering support
9.building uImage file

=> tftp 200000 $nand_jffs2_fs
=> nand erase
=> nand write.jffs2 200000 100000 $filesize /* flash JFFS2 FS to the jffs2-nand partition of NAND device */

mount -t jffs2 /dev/mtdblock7 /mnt/cdrom/

Tuesday, October 7, 2008

Hotpot: the perfect dish in China




Having a hotpot meal may be the simplest way to warm the body in cool winters.And it is also a popular meal in summer. Many people are fond of it, and there are many kinds of hotpot for different tast.For example seafood, mushroom, fish mutton and so on.

In China, the most famous hotpot is Sichuan-style hotpot,the essence of Sichuan hotpot lies in the broth, which contains oil, wine, sugar, spice and Chinese prickly ash. It may not be a good idea to drink the broth of a Sichuan hotpot, but the numbing spicy food with a unique fragrance makes it one of a kind.

In Beijing, there are two kinds of hotpot which are most famous, on is Sichuan-style hotpot, the other is Monglian hotpot.

Mongolian hot pot was originated from northern nomadic tribes. The Chinese hot pot boasts a history of more than 1000 years and became popular during the Tang Dynasty [628-907 ]. In the following dynasties, the cooking style was used by imperial chefs in the middle of 17th century. Mutton hot pot became a favorite for royal family. You"re prepared with slices of raw mutton. You can put them into the boiling water in the hot pot placed in the middle of the table of the table, coat them with a do-it-yourself sauce, and start eating. The pot itself is made of brass, with a wide outer rim where charcoal burns to heat liquid.
The most famous Mongolian hot-pot restaurant is Donglaishun Hotpot Restaurant. Besides, there are lots of smaller restaurants serving Mongolian hot-pot. Nowadays, Sichuan hot-pot is very popular in Beijing. You can find many restaurants providing Sichuan hot-pot. The most popular are Koufuju Restaurant, Flying Fish Land Restaurant and etc.

Prison Break - So impressive television series

Prison Break is an American television series that premiered on the Fox Network on August 29, 2005. The story revolves around a man who was sentenced to death for a crime he did not commit and his brother's elaborate plan to help him escape his death sentence.
The First Time I watched this television series is When I am in my University Lift about 4 Years ago, I was so deeply interested in it that I was eager to watch all of it as long as My eyes were not tired.
I remember the impressived television series are so popular thart most students were like it as me, we talked about the actor of it and often discussed later in the night.It was a unforgetful television series that I remember the content clearly now.
The serialised story structure of Prison Break is attributed to the format of storytelling adapted by the writers as each episode covers a part of the escape plan, a similar format used by Lost and 24. The first season of Prison Break was primarily filmed at Joliet Prison which also contributed to the uniqueness of the show.Its success and recognition as a prison drama also revived interest in the genre.The show's official magazine, published by Titan Publishing, was launched on 21 November 2006.
And now the fourth season is published , and I will also have a much interest in watching it.

How To Display JPEG Image on Linux console


Linked From www.2beanet.com

How To Display JPEG Image on Linux console


1 Summary
Usually, we can't display graphics images on linux console, in order to see graphics images, take
viewing jpeg graphics images for example, we should start the x-windows, using the tools for viewing
graphic images supplied by the desktop management system such as gnome or ked .
and so, whether we can viewing graphics images on linux console? In fact , it is throughly possible.
As we know, there is tool for viewing graphics imags working on linux console whose name is zgv.
But, since the low level graphics lib it uees is too old that few people know it , the people use it is more less.
Now , the low level graphics lib is supplied by FrameBuffer, so I try to explain how to deisplay jpeg
on linux console by framebuffer and lib jpeg. The experience is what I have tested correctly.
2 FrameBuffer Description
FrameBuffer is realized as device under linux, it is abstrication for the graphics hardware, representing
the frame buffer in the display cards.By framebuffer device, the upper application may using a well
defined software interface to access the graphics hardware, but not need to take care of how the low
level graphics hardware works.For example, the upper application don't have to know how to read and
write the register of the display cards, nor have to know where the frame buffer district start from, all
these works is dealt with frambuffer, the upper application only pay attention to what it should do.
The advantage of FrameBuffer is that it is a low level usual device, and it supports many platforms,
it can works on x86 platforms, powerpc platforms, and m68k and sparc as well, it also work correctly on
many embedded devices. Many GUI software package such as Minigui also take FramBuffer for its
HardWare Abstrication Layer.
From the viewer of the users, frambuffer device has no difference from other devices.Framebuffer
devices resides under '/dev' directory, usual device name is fb*, here, * take the value from 0 to 31.
For usual computer system, 32 framebuffer devices are suffication.The most used framebuffer device is
'/dev/fb0'.
From the viewer of programmer, Framebuffer device is a file in fact, we could read and write
Framebuffer device file as we operate usual file, we could remap it into memory by mmap() function,
also read and set its parameters by using ioctl() function, and so on.
In order to start framebuffer on pc system, first of all, it should be supported by the kernel, usually , we
should recompile the kernel. Also, we should modify the start parameter, on my personal machine, I
modify the file /boot/grub/menu.lst, change the line below
kernel /boot/zImage-2.6.25 rw root=LABEL=/1 to the new line below
kernel /boot/zImage-2.6.25 rw root=LABEL=/1 vga=0x314
what it means is that the resolution of the display is 800x600, the color depth is 16bits.
3. program
Pls download the source file from here:

storing some pictures for sharing






















How to solve the slow speed for wu-ftpd on debian


Summary:
when I install wu-ftpd on debian , I discover that the speed is so slow that I decide to solve the
problem, the process is as belows.
embeded001-clp:/#apt-get install wu-ftpd

embeded001-clp:/#ftp 192.168.x.x


Connect to 192.168.x.x.

waiting for more than 4 seconds, the login interface appears , so bad a thing......

embeded001-clp:/#vi /etc/hosts

127.0.0.1 localhost.localdomain localhost kcn-mw

add the below line:

192.168.x.x localhost.localdomain localhost embeded001-clp

ok, you will feel the difference.

in fact , due to the security for ftp server, the ftpd should Rarp the dns for the client ip address.

if the ftp server could not RARP the dns for the client in time, it will appears slow.

another solving method:

ftp://ftp.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-2.6.2.tar.gz

embeded001-clp:/#gzip -d wu-ftpd-2.6.2.tar.gz

embeded001-clp:/#tar xf wu-ftpd-2.6.1.tar

embeded001-clp:/#./config --disable-dns --disable-dnsretry

embeded001-clp:/#make

embeded001-clp:/#make install


OK, that 's all

The Moon Festival

The Chinese Moon Festival is on the 15th of the 8th lunar month. It's also known as the Mid-autumn Festival. Chinese culture is deeply imbedded in traditional festivals. Just like Christmas and Thanksgiving in the West, the Moon Festival is one of the most important traditional events for the Chinese.
The Moon Festival is full of legendary stories. Legend says that Chang Er flew to the moon, where she has lived ever since. You might see her dancing on the moon during the Moon Festival. The Moon Festival is also an occasion for family reunions. When the full moon rises, families get together to watch the full moon, eat moon cakes, and sing moon poems. With the full moon, the legend, the family and the poems, you can't help thinking that this is really a perfect world. That is why the Chinese are so fond of the Moon Festival.
The Moon Festival is also a romantic one. A perfect night for the festival is if it is a quiet night without a silk of cloud and with a little mild breeze from the sea. Lovers spend such a romatic night together tasting the delicious moon cake with some wine while watching the full moon. Even for a couple who can't be together, they can still enjoy the night by watching the moon at the same time so it seems that they are together at that hour. A great number of poetry has been devoted to this romantic festival. Hope the Moon Festival will bring you happiness.
The moon cake is the food for the Moon Festival. The Chinese eat the moon cake at night with the full moon in the sky. Here are a few pictures of the typical moon cake.



The picture on the moon cake box




The moon cakes in the box.



One of the moon cakes in the box

Below are some pictures describing the scene for Mid-Autumn Day








Driver Attansic L2 10/100 Fast Ethernet under Fedore Core 7


SUMMARY:
I bought a desktop machine,which i diy my self, the mother board is ASUS which integrates the
Attansic L2 10/100 Fast Ethernet, the device driver supplied by the seller is the driver under windows
xp, I installed fedore core 7 on my machine, but the ethernet card is not discovered by the driver, ok , i
google the driver for linux
Solve methods:
I download the device driver named L2-linux-driver_new.rar, unzip it under windows xp , copy all
the files into linux , compile, error occurs:
[root@localhost src]# makemake -C /lib/modules/2.6.21/build SUBDIRS=/home/clara/net_driver/L2-linux-driver_new/src modulesmake[1]: Entering directory `/usr/src/linux-2.6.21' CC [M] /home/clara/net_driver/L2-linux-driver_new/src/at_main.o/home/clara/net_driver/L2-linux-driver_new/src/at_main.c: In function ‘at_vlan_rx_kill_vid’:/home/clara/net_driver/L2-linux-driver_new/src/at_main.c:1490: error: ‘struct vlan_group’ has no member named ‘vlan_devices’/home/clara/net_driver/L2-linux-driver_new/src/at_main.c: In function ‘at_restore_vlan’:/home/clara/net_driver/L2-linux-driver_new/src/at_main.c:1511: error: ‘struct vlan_group’ has no member named ‘vlan_devices’make[2]: *** [/home/clara/net_driver/L2-linux-driver_new/src/at_main.o] Error 1make[1]: *** [_module_/home/clara/net_driver/L2-linux-driver_new/src] Error 2make[1]: Leaving directory `/usr/src/linux-2.6.21'make: *** [default] Error 2

and then opening the file at_main.c,
two debug functions:
at_vlan_rx_kill_vid
at_restore_vlan
drop the realization of the function, return directly, and then compile , passed.
then
# make install
restart the machine
# ifconfig
OK, the eth0 could be seen ......

Great Wall















A Chinese saying goes that He who has never been to the Great Wall is not a true man. If we laid the bricks and rocks used in the Great Wall of Ming to form a wall one meter (1.1 yard) wide and five meters (16.4 feet) high, it could circle the earth at the equator with great ease. It is such a spectacular and formidable architectural feat that anyone who comes to China should not miss it under any circumstances.
China's Great Wall is the world's longest architectural structure and is widely renowned as one of the seven great wonders of the world. The wall stretches 6,700 kilometers (4,163 miles) from the Jiayuguan Pass in Gansu Province to the Shanhaiguan Pass in Hebei Province. Like a gigantic dragon, this imposing wall meanders across mountains, spans vast plains and trudges through the barren deserts of China's northern interior. This amazing marvel of engineering took over 2,000 years to build. It is acclaimed to be a most magnificent miracle created by the Chinese people demonstrating the tenacity, diligence and wisdom of the Chinese people.














Construction of the Great Wall began early in the Warring States Period (475BC-221BC) when independent small states came into existence. In order to defend their territories, long walls were built along the borders. In 221 BC, Qin Shi Huang, the first emperor of the Qin Dynasty (221BC-206BC), toppled the former states and unified China. To protect the country from intrusion of the nomadic Hun ethnic minority in the north, earlier separate walls were joined and extended dramatically. The walls at that time began at Linyao in Gansu Province and ended in Liaoning Province, reaching a total length of over 5,000 kilometers, hence it was known as the 'Ten Thousand Li Great Wall' (Li is a unit of length used by the Chinese and one li is equal to 0.5 kilometer.).
Thereafter, the Great Wall was restored and lengthened time and time again. The later walls were not a long and frail wall but were complete fortifications with more annexes such as: castles, watch towers and beacon towers. In the Ming Dynasty (1368-1644), large-scale extensions generated the 'Great Wall of Ming', the ever longest wall in the history of China. The wall that we see today is primarily the result of a restoration that took place during the Ming Dynasty. However, some sections of the Great Wall fell into ruins.
Now, sections at Shanhaiguan Pass, Badaling, Simatai, Mutianyu and Jiayuguan Pass have become celebrated tourist resorts. The Badaling Great Wall, a typical section of the Great Wall, is the most famous place in China and is always thronged with visitors coming from all over the world.
Below are some pictures of the Great Wall: