Monday, August 13, 2012

苹果色可以护眼



     经常打字或阅读文本信息的朋友,眼睛要长时间盯着屏幕,难受。
     请你将窗口的颜色设为苹果色试试?专家提示苹果色护眼:桌面属性--外观--高级--项目选中“窗口”--颜色1选中“其它”(色度设为85,饱和度设为125,亮度设为195),点“添加到自定义颜色”,确定,确定,确定。

Friday, August 10, 2012

How to Read a Scientific Research Paper



How to Read a Scientific Research Paper--
a four-step guide for students

adapted from Here

Reading research papers ("primary articles") is partly a matter of experience and skill, and partly learning the specific vocabulary of a field. First of all, DON'T PANIC! If you approach it step by step, even an impossible-looking paper can be understood.

1. Skimming. Skim the paper quickly, noting basics like headings, figures and the like. This takes just a few minutes. You're not trying to understand it yet, but just to get an overview.

2. Vocabulary. Go through the paper word by word and line by line, underlining or highlighting every word and phrase you don't understand. Don't worry if there are a lot of underlinings; you're still not trying to make sense of the article.
Now you have several things you might do with these vocabulary and concept questions, depending upon the kind of question each is. You can
  1. Look up simple words and phrases. Often the question is simply vocabulary--what's a lateral malleolus, or a christa, or the semilunar valve. A medical or biological dictionary is a good place to look for definitions. A textbook of physiology or anatomy may be a good source, because it give more complete explanations. Your ordinary shelf dictionary is not a good source, because the definitions may not be precise enough or may not reflect the way in which scientists use a word (for example "efficiency" has a common definition, but the physical definition is much more restricted.)
  2. Get an understanding from the context in which it is used. Often words that are used to describe the procedures used in an experiment can be understood from the context, and may be very specific to the paper you are reading. Examples are the "lithium-free control group" in a rat experiment or the "carotene extraction procedure" in a biochemical experiment. Of course, you should be careful when deciding that you understand a word from its context, because it might not mean what you think.
  3. Flag this phrase as belonging to one of the major concepts of the paper--it's bigger than a vocabulary question. For example, a paper about diet and cancer might refer to "risk reduction," which you would need to understand in context and in some depth.
3. Comprehension, section by section. Try to deal with all the words and phrases, although a few technical terms in the Methods section might remain. Now go back and read the whole paper, section by section, for comprehension.


In the Introduction, note how the context is set. What larger question is this a part of? The author should summarize and comment on previous research, and you should distinguish between previous research and the actual current study. What is the hypothesis of the paper and the ways this will be tested?

In the Methods, try to get a clear picture of what was done at each step. What was actually measured? It is a good idea to make an outline and/or sketch of the procedures and instruments. Keep notes of your questions; some of them may be simply technical, but others may point to more fundamental considerations that you will use for reflection and criticism below.

In Results look carefully at the figures and tables, as they are the heart of most papers. A scientist will often read the figures and tables before deciding whether it is worthwhile to read the rest of the article! What does it mean to "understand" a figure? You understand a figure when you can redraw it and explain it in plain English words.

The Discussion contains the conclusions that the author would like to draw from the data. In some papers, this section has a lot of interpretation and is very important. In any case, this is usually where the author reflects on the work and its meaning in relation to other findings and to the field in general.

4. Reflection and criticism. After you understand the article and can summarize it, then you can return to broader questions and draw your own conclusions. It is very useful to keep track of your questions as you go along, returning to see whether they have been answered. Often, the simple questions may contain the seeds of very deep thoughts about the work--for example, "Why did the authors use a questionnaire at the end of the month to find out about premenstrual tension? Wouldn't subjects forget or have trouble recalling?"

Here are some questions that may be useful in analyzing various kinds of research papers:
              Introduction:
What is the overall purpose of the research?
How does the research fit into the context of its field? Is it, for example, attempting to settle a controversy? show the validity of a new technique? open up a new field of inquiry?
Do you agree with the author's rationale for studying the question in this way?
Methods:
Were the measurements appropriate for the questions the researcher was approaching?
Often, researchers need to use "indicators" because they cannot measure something directly--for example, using babies' birthweight to indicate nutritional status. Were the measures in this research clearly related to the variables in which the researchers (or you) were interested?
If human subjects were studied, do they fairly represent the populations under study?
Results
What is the one major finding?
Were enough of the data presented so that you feel you can judge for yourself how the experiment turned out?
Did you see patterns or trends in the data that the author did not mention? Were there problems that were not addressed?
Discussion
Do you agree with the conclusions drawn from the data?
Are these conclusions over-generalized or appropriately careful?
Are there other factors that could have influenced, or accounted for, the results?
What further experiments would you think of, to continue the research or to answer remaining questions?

Tuesday, August 7, 2012

Matlab plot to avi movie


t = 0:pi/200:2*pi;
y = sin(t);
% h = plot(t,y,'YDataSource','y');
h = plot(t,y);
i=0;
for k = 1:.1:10
    i = i+1;
y = sin(t.*k);
set(h,'XData',t,'YData',y) % Evaluate y in the function workspace
drawnow;
    M(i)=getframe;
    pause(.05)
end
%%
movie2avi(M,'MatlabAnimation','fps',4,'compression','None','Quality',10)

语录


"如果不能做自己喜欢的事,那就喜欢上自己正在做的事吧!"

也许只有当你们被自己的努力感动得泪流满面时,你们的生命才能叫作美丽的生命……
人是习惯的动物,形成一定的习惯以后就不再去思考和改变。这种不愿思考和改变的状态是一种惰性,一种僵化的精神状态,它使我们陷入了惯性思维,使我们失去了改变现状的勇气。我们每天在交通最拥堵的时候挤公共汽车;每天上网进行着无聊的对话;每天晚上回到家把电视从一个频道换到另一个频道,这些都浪费了我们大量的时间。但我们却很少去改变,去认真地思考如何让生活过得更高效、更充实。其实只要我们稍加努力,就可能不断改进我们的生活。

静静想一想自己的生活和工作,看看是不是有地方可以改变一下,进而把自己的学习、生活和工作安排得更好、更简单,让自己的每一天更有意义!

只要活着,就是胜利。就像一棵树一样,活着,总能够慢慢长大.

金字塔如果拆开了,只不过是一堆散乱的石头;日子如果过得没有目标,就只是几段散乱的岁月,但如果把一种努力凝聚到每一日,去实现一个梦想,散乱的日子就积成了生命的永恒。

Monday, August 6, 2012

Split widecreen monitor


So in order to split your display down the middle either horizontally or vertically, first open two applications, let’s say Word and Excel. Now click on one of the tabs in the Windows Taskbar and then press and hold the CNTRL key on your keyboard. While holding down the CNTRL key, click on the other tab in the Taskbar. They should both be selected now (they should have a darker background than the other tabs).
split screen
Now that both applications are selected in the Taskbar, right-click on either one and choose Tile Vertically from the options.
split monitor
And viola! You should now have Word on one side of the screen and Excel on the other side! If you want them in landscape view rather than portrait view, just choose Tile Horizontally.
split display
You can also split your screen three ways or more by simply selecting more applications in the Taskbar! Pretty easy! So that’s what is involved to split your screen if you have one monitor.

Thursday, June 14, 2012

WebCam in C++


#include <StdAfx.h>
#include <opencv.hpp>

using namespace cv;

int main(int, char**)
{
    VideoCapture cap(0); // open the default camera
    if(!cap.isOpened())  // check if we succeeded
        return -1;

    Mat edges;

    namedWindow("edges",1);
namedWindow("original",2);
    for(;;)
    {
        Mat frame;
        cap >> frame; // get a new frame from camera
        cvtColor(frame, edges, CV_BGR2GRAY);
        GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5);
        Canny(edges, edges, 0, 30,3);
        imshow("edges", edges);
imshow("original", frame);
        if(waitKey(30) >= 0) break;
    }
    // the camera will be deinitialized automatically in VideoCapture destructor
    return 0;
}

Capture Webcam in C


// OpenCV1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <stdio.h>

int _tmain(int argc, _TCHAR* argv[])
{
   CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY );
   if ( !capture ) {
     fprintf( stderr, "ERROR: capture is NULL \n" );
     getchar();
     return -1;
   }
   // Create a window in which the captured images will be presented
   cvNamedWindow( "mywindow", CV_WINDOW_AUTOSIZE );
   // Show the image captured from the camera in the window and repeat
   while ( 1 ) {
     // Get one frame
     IplImage* frame = cvQueryFrame( capture );
     if ( !frame ) {
       fprintf( stderr, "ERROR: frame is null...\n" );
       getchar();
       break;
     }
     cvShowImage( "mywindow", frame );
     // Do not release the frame!
     //If ESC key pressed, Key=0x10001B under OpenCV 0.9.7(linux version),
     //remove higher bits using AND operator
     if ( (cvWaitKey(10) & 255) == 27 ) break;
   }
   // Release the capture device housekeeping
   cvReleaseCapture( &capture );
   cvDestroyWindow( "mywindow" );
   return 0;

}