Wednesday, February 21, 2007

Cartoon it!




Have you found the difference between the two image above? Yeah, you get it, the right one is cartooned. It's fun, isn't it? ;P

Saturday, February 17, 2007

Big new year's eve meal

My sister withdrew her words, so I have to cook a meal for myself tonight, i.e. Chinese New Year's Eve.

Here shows my meal, en, yummy! OK, I admit that they don't look nice, but do taste delicious. Large version available at http://wenbin.slide.com/p/5/New+Year+EVE+Cooking+001?view=large

Insert a pair of brackets automatically in Latex editor

Brackets, '{}' are frequently used in Latex, and it is possible to miss one when editing a complex math equation. In LEd, you can insert a pair of brackets automatically, which may help you receive less errors from Latex. And, the exciting thing is that your cursor is locating just between them.

1. Go to View\Toolbars\Adjust menu, or right click on the toolbar, and select Adjust;
2. switch to Commands tab;
3. select User commands branch and click on + button, a popup command window will appear;
4. In the popup window, set hotkey to Shift+[ (copy as is), and in Text tab type: {_} (copy as is); if you didn't add any user command before, the ident should be CMD1. If the ident looks strange, modify it. The name field can be changed as you wish.
5. done.


Reference: http://forum.latexeditor.org/viewtopic.php?t=17

Wednesday, February 14, 2007

Fix frozen yahoo messenger emoticons

Source: http://blog.360.yahoo.com/blog-dlTGcTsmfqjxAwxonCDDvw75?p=72

It is quite strange that the emoticons of yahoo messenger cannot display properly sometimes. One solution that may work is described as follows:
  • Open IE, go to Tools then Internet options;
  • Delete the Temporary internet files;
  • Go to Advanced tab, click Restore defaults;
  • Restart your computer.

OK. Now, probably, the emoticons start to work well.

Tuesday, February 13, 2007

Happy Valentines day :)


Happy valentines day :), everyone.

Send love to your friends @ Flickr, simply go to http://bighugelabs.com/flickr/love.php and follow the guide. Good luck on the love trip ;P.

(This is an example image from the aforementioned website. )

Tuesday, February 06, 2007

MATLAB: reshape 3D matrix to 2D

Suppose we have an RGB image f whose size is M*N*3, now the problem is to reshape it into a 2D matrix of MN*3 elements, in which each column corresponds to R, G or B plane.

Here is a solution I saw in a master thesis on image retrieval (variable names changed):

R =f (:,:,1);% take all of the first element
G =f (:,:,2);
B =f (:,:,3);
R =R(1:end);%make it into one column matrix
G =G(1:end);
B =B(1:end);
%concentrate these R,G,B into a single 3 dimensional matrix
imf =[R;G;B];
imf =imf';

It looks like that the author made a detour. A simple solution to this problem is

imf= reshape(f, M*N, 3);

If the function 'reshape' is not used, their code can be improved as follows:

R =R(:);%make it into one vector matrix
G =G(:);
B =B(:);
%concentrate these R,G,B into a single 3 dimensional matrix
imf =[R,G,B];

Chinese version:

MATLAB: 转换三维矩阵到二维

http://time360.blogspot.com/2007/05/matlab.html

Thursday, February 01, 2007

Free software 16: Locate32


What is your current search software? Windows built-in search , Yahoo desktop search, or google desktop search? Are they really what you need?

I used google desktop search for a while, but most of the time I found I searched the file names only. It is not wise to keep google desktop search in my computer, because it usually occupies more than 1 GB hard disk space. And I found Locate32 is the right search software.

Locate32 saves names of all files in your hard drives and store it in a file database. When you type keywords in and 'Enter', the results come out instantly. Of course, you have to ask Locate32 to index your computer first. Usually, depending on your computer and files, it may take several seconds to several minutes. Even in a computer with 10 drives, 5 of which are 400GB or larger, it takes only an hour to index and gives instantaneous results.

The official website is http://www.uku.fi/~jmhuttun/english/.

There is another software in Chinese is as good as Locate32, if you are interested in it, please refer to:

搜索利器:火速桌面搜索

http://time360.blogspot.com/2007/02/blog-post.html