Saturday, February 10, 2007
How to insert code block into your post
Steps:
1.Write your article with your local editor.
2.Copy your formatted text into Gmail and publish it to your blog by gmail. Please
don't copy the content directly from your files to the Blogger post editors. The post editor will destruct the format of your text.
3.Format the article again. E.g. Upload images.
Thursday, February 08, 2007
Quantum Computation, Quantum Information and Quantum Computer Reading Materials
Brad Huntting (huntting@glarp.com)University of Colorado
David Mertz (mertz@gnosis.cx)Gnosis Software, Inc.
01 Sep 2001
In the next few decades, quantum computers are likely to move out of science fiction and research labs (largely at IBM) and into practical applications. A class of problems surrounding complex combinatorics that plague deterministic computers can be solved efficiently on Quantum Computers (QCs). This article, which builds on a basic knowledge of the mathematics of vectors, gives an introduction to quantum computing. For illustration, examples use qcl (quantum computing language), a free programming language for quantum computers distributed under the GNU General Public License. qcl allows developers to simulate and examine a "virtual" quantum computer. The authors, Brad Huntting and David Mertz, are experts in mathematics and veteran programmers. David Mertz is a frequent contributor to developerWorks.
2.Brief Introduction to Quantum Information
3. 量子计算机简介
4.Experimental Realization of an Order-Finding Algorithm with an NMR Quantum Computer
--
Happy day, happy life!
Develop your own module on Site Engine
Some suggestion on how to develop a module on Site Engine.
The Site Engine government site is http://www.siteengine.net/
1. First set up a copy of the Site Engine on your local
Here are steps about how to set up the SiteEngine on your local box
a. Download a copy from here: SiteEngine 5.1.8 高级版环境集成
b. Just run the setup_Advanced.exe step by step
c. Access the http://localhost/install.php to setup the copy
Attention:
a. The MySql data base password is empty by default
b. You can find more detailed steps in 建站引擎安装手册(5.1.8)
2. Here are some docs you should read to get familiar with SiteEngine
a. 建站引擎安装手册(5.1.8)
b. SiteEngine 5.1.8 高级版用户手册
3. The interface of SiteEngine you have to use to develop your module is here:
SiteEngine二次开发说明文档(In the doc You can find all the interface of SiteEngine).
4. Some PHP books for you if you are new with PHP
OReilly Learning PHP 5 Jul 2004
OReilly PHPUnit Pocket Guide
OReilly Essential PHP Security Oct 2005
OReilly Web Database Applications with PHP and MySQL
OReilly PHP in a Nutshell Oct 2005
OReilly PHP Hacks Tips and Tools For Creating Dynamic Websites
5. Example code about how to use the interface of SiteEngine
a. Login the Site Engine as Administrator
b. Create a new channel in the channel management, for example: TestChannel
c. Edit TestChannel's content and leave it empty and save
d. Edit the template of TestChnnel.
e. Input the following template code and save the template:
[expression]myTesting()[/expression] {头部}
<table class="table" cellspacing ="0" cellpadding="0" border="0">
<tbody >
<tr class="margin">
<td valign="top" align ="right" width="205"> {公告}
<table class="table2" cellspacing ="0" cellpadding="0" border="0">
<tbody >
<tr >
<td >{用户登录信息} </td>
</tr >
</tbody >
</table >
<img height="5" src ="images/space.gif" width="0" border="0" /><br />
{频道图像}{投票}{友情链接}{下级频道} </td>
<td valign="top" align ="left">
<table cellspacing="0" cellpadding ="0" width="98%" align="center" border ="0">
<tbody >
<tr >
<td class="navigation">{ 位置导航}</td >
</tr >
</tbody >
</table >
<img height="5" src ="/images/blank.gif" width="0" border="0" /><br />
<table class="table2" cellspacing ="1" cellpadding="0" align="center" border ="0">
<tbody >
<tr 381px>
<td class="font" valign ="top">
<p >$_SESSION['AddressList']</ p></td >
</tr >
</tbody >
</table ></td>
</tr >
</tbody >
</table >{底部}{浮标}
f. Create a PHP file with the following code and name it as AddressList.php. Move the AddressList.php file to the root folder of site engine. (The root folder is always the htdoc folder of Apache.)
1 <?php
2 session_start( );
3
4 function myTesting()
5 {
6 // Set reference to config.php
7 require 'config.php';
8 // setup data base connection
9 // $db_host ; servername
10 // $database ; data base server type
11 // $db_user ; data base user name
12 // $db_pass ; data base user password
13 // $db_name ; data base name
14 // $tablepre ; table prefix
15 //$connection = mysql_connect(DataBaseServer,UserName,Password);
16 $connection = mysql_connect( $db_host,$db_user,$db_pass);
17
18 // select data base
19 //mysql_select_db(DataBaseName, ConnectionObject);
20 mysql_select_db($db_name, $connection);
21
22 // execute query
23 // $result = mysql_query (SqlQueryString, ConnectionObject);
24 $sql = "Select * From boka_members";
25 $result = mysql_query ( $sql, $connection);
26 $AddressList ='';
27 // solve result
28 //while ($row = mysql_fetch_row($result))
29 while ($row = @ mysql_fetch_array($result))
30 {
31
32 // Add address data to result
33 $AddressList .= '
34 <tr>
35 <td >'.$row["lastvisit"]. '</td>
36 <td >'.$row["bday"].'</td>
37 <td >'.$row["location"].'</td>
38 <td >'.$row["email"].'</td>
39 <td >'.$row["telephone"].'</td>
40 <td >'.$row["username"].'</td>
41 <td >registered</td>
42 </tr>';
43
44 print "";
45 }
46 // $_SESSION['AddressList'] = "testing ";
47
48 $_SESSION['AddressList'] = '
49 <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
50 <tbody>
51 <th>??à?</th>
52 <th>???ā??</th>
53 <th>1¤?�nλ</th>
54 <th>Email</th>
55 <th>μ绰</th>
56 <th>??§à?</th>
57 <th>?2???</th>'.
58 $AddressList .
59 '<tbody>
60 </table>';
61 // close connection
62 mysql_close($connection);
63 }
64
65
1 <?php
2 session_start( );
3
4 function myTesting()
5 {
6 // Set reference to config.php
7 require 'config.php';
8 // setup data base connection
9 // $db_host ; servername
10 // $database ; data base server type
11 // $db_user ; data base user name
12 // $db_pass ; data base user password
13 // $db_name ; data base name
14 // $tablepre ; table prefix
15 //$connection = mysql_connect(DataBaseServer,UserName,Password);
16 $connection = mysql_connect( $db_host,$db_user,$db_pass);
17
18 // select data base
19 //mysql_select_db(DataBaseName, ConnectionObject);
20 mysql_select_db($db_name, $connection);
21
22 // execute query
23 // $result = mysql_query (SqlQueryString, ConnectionObject);
24 $sql = "Select * From boka_members";
25 $result = mysql_query ( $sql, $connection);
26 $AddressList ='';
27 // solve result
28 //while ($row = mysql_fetch_row($result))
29 while ($row = @ mysql_fetch_array($result))
30 {
31
32 // Add address data to result
33 $AddressList .= '
34 <tr>
35 <td >'.$row["lastvisit"]. '</td>
36 <td >'.$row["bday"].'</td>
37 <td >'.$row["location"].'</td>
38 <td >'.$row["email"].'</td>
39 <td >'.$row["telephone"].'</td>
40 <td >'.$row["username"].'</td>
41 <td >registered</td>
42 </tr>';
43
44 print "";
45 }
46 // $_SESSION['AddressList'] = "testing ";
47
48 $_SESSION['AddressList'] = '
49 <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
50 <tbody>
51 <th>Name</th>
52 <th>BirthDay</th>
53 <th>Location</th>
54 <th>Email</th>
55 <th>Telephone</th>
56 <th>UserName</th>
57 <th>Status</th>'.
58 $AddressList .
59 '<tbody>
60 </table>';
61 // close connection
62 mysql_close($connection);
63 }
64
65 ?>
g. Modify the Site Engine configuration file: config.php. You can find it in the htdoc folder of Apache.
//Change
$requirefiles = '';
//As
$requirefiles = 'AddressList.php';
h. Now Access the TestChannel of Site Engine site.
g. Then you will see a table of user data displays.
6. Knowledge to learn
A. [expression]callfunction()[/expression] means to execute the function: callfunction
B. In template, only one function can be put in the expression:[expression]callfunction()[/expression] and without semicolon at the end.
E.g. Correct:[expression]myTesting()[/expression]
Error: [expression]myTesting();[/expression]
C. The variable in template will be executed as php code and displays its value.
D. How to output the value of a variable
a. First define a variable as global
b. Set a value to the variable
c. Put the variable in template html code
E. How to execute a function in the template
a. Put the function in the expression :[expression]callfunction()[/expression]
b. Attention: only one function in each expresstion
c. Then put the expression at somewhere in the template
F. Access global variables: // comments: this method doesn't work
E.g.: variable $b,$GLOBALS['b']
G. Define a global variable
E.g.: global $a;
H. Declare a variable as global variable
E.g.: global $a; // Here should not assign any value to the variable
I. The code in the template has disabled to modify the value of the global variable with the key word global and $Globals['VariableName']. And function can only access the local variable.
Global keyword help:http://cn.php.net/global
J. The function cannot modify the value of global variables in the template. Therefore, I have to use session instead.
K. Access and store data in session Attention: before starting to use session, start the session first by the code:session_start( );E.g. $_SESSION['count'] = 1;
L. " " can only be used on single line and '' can be used on multi lines
M. Connect two string "."
N. The variable will not be replaced by its value in string
E.g. "$test" or '$test'
O. Attention the character encode in gb2312 or ANSI otherwise will cause unrecognizable characters
P. Using the $row = mysql_fetch_row($result), the $row cannot be accessed by key name.
However, the $row = @mysql_fetch_array($result) can do.
Happy day, happy life!
Wednesday, February 07, 2007
InfoTask.exe Application Error
Error screenshot:
I got some solution from here http://www.file.net/process/inotask.exe.html and download
the Security Task Manager to scan the processes.
The Securiy task manager figures out the process: G_Server2006Key.DLL is very danger.
I isolated the process by Security task manager and start Etrust manually to scan my box.
But the process is not cleared as expected.
New solution:
1.My etrust virus is down when I login
2.The exception throws
3.The eTrust Antivirus Job Server service cant not start
4.The service stoped and throws the exception encountered a problem.
5.Security Task Manager shows the process(G_Server2006Key.DLL) is high dangerous
6.Use Lavasoft Ad-Aware SE (http://www.lavasoftusa.com/) scan all my box any delete all the catched items
7.restart my box.
--
Happy day, happy life!
Reading note of A Personal Note on How to Start Research in Computer Networks
- Motivation
- Research challenges
- Overview of existing work
- Limitations of existing work
- Potential directions and ideas for improvement
- Expected results and impact on the field.
k.The next step is to write a 10 page proposal elaborating on the 2 pages above, adding your own twist on the problem, outlining your initial thoughts, results and findings, and outlining a clear plan to continue the work.
- In the general area of Computer Networks: IEEE/ACM Transactions on Networking (ToN), IEEE Journal on Selected Areas in Communications (JSAC), ACM SIGCOMM, IEEE INFOCOM, IEEE ICNP, IEEE SIGMetrics, Computer Networks Journal (Elsevier), IEEE ICC, IEEE GlobeCom, ACM CCR, among others.
- In the more specific areas of wireless networks (including mobile ad hoc networks, sensor networks and cellular-like infrastructure-based networks): ACM MobiCom, ACM MobiHoc, ACM MONET Journal, AdHoc Networks Journal (Elsevier), ACM Wireless Networks (WiNet) Journal, ACM SenSys, IEEE/ACM IPSN, IEEE WCNC, ACM MC2R, to name a few.
Happy day, happy life!
A Personal Note on How to Start Research in Computer Networks
Seven Steps on the Road to Success
REF:http://ceng.usc.edu/~helmy/research-start.html
This is a short note on how to start defining your topic of interest and zooming in on specific research problems and challenges. This note is geared towards graduate (M.S. and Ph.D.) students interested in computer networks related topics for their directed research (DR), M.S. thesis, or Ph.D. dissertation. The general guidelines, however, may apply to a larger class of students (e.g., in Electrical Engineering or Computer Science disciplines):
[Note: This is only a starting point. There's a lot more to research than what's here!]
- Pick a direction or area of interest based on your background in netwoking (e.g., courses you have taken, readings, conferences, talks to Professors, etc.). Try to be as specific as possible. For example, do not pick 'multicast' (it is too general), but perhaps 'congestion control for reliable multicast' or 'multicast routing in ad hoc networks'. Do not pick 'wireless networks' (too general), but perhaps 'systematic testing of wireless MAC layer' or 'efficient handoff for IP mobility', for instance. There could be a list of topics that interest you (related or unrelated). I do not recommend a list of more than three topics.
- Compile a set of 'keywords' to start searching for high quality readings for each of the previously selected topics. Good places to start your search are IEEE library on-line and ACM library on-line (both of which are freely available to USC students). Pick one research topic at a time.
You can also search on the web (e.g., Google) but please double check the publication details for quality (there are a lot of papers out there!).
Another literature-rich scientific digital library is citeseer.com, but again, please double check details for quality. - Out of the search hits, select around 15-20 papers that you think are most related to what you had in mind and are of the highest quality. Do NOT read all these papers yet!
Check the title, abstract, names of authors, their affiliations, and most importantly the conference or journal. Many IEEE and ACM conferences/Journals are of high quality. Some, however, are more selective and competitive than others. Examples of well-known conferences/journals include, but are not limited to:- In the general area of Computer Networks: IEEE/ACM Transactions on Networking (ToN), IEEE Journal on Selected Areas in Communications (JSAC), ACM SIGCOMM, IEEE INFOCOM, IEEE ICNP, IEEE SIGMetrics, Computer Networks Journal (Elsevier), IEEE ICC, IEEE GlobeCom, ACM CCR, among others.
- In the more specific areas of wireless networks (including mobile ad hoc networks, sensor networks and cellular-like infrastructure-based networks): ACM MobiCom, ACM MobiHoc, ACM MONET Journal, AdHoc Networks Journal (Elsevier), ACM Wireless Networks (WiNet) Journal, ACM SenSys, IEEE/ACM IPSN, IEEE WCNC, ACM MC2R, to name a few.
- For the selected 15-20 papers read only the abstract, introduction and conclusion in detail (you may skim the rest of the paper for a general idea). Identify the emphasis of each paper:
- (I) which problem it addresses,
- (II) what solution it proposes,
- (III) how the solution differs from previous solutions, and
- (IV) what are the main contributions and conclusions.
- Read those 4-6 papers from beginning to end, identifying in detail: (I) the main approaches, (II) methods of analysis: (a) metrics, (b) evaluation tools, and (c) analysis and interpretation of resulting simulation or measured data, and (III) conclusions. At the same time, try to keep a list of what you think the authors may have missed in the paper/study, gaps or limitations that could be improved upon and any ideas on how to accomplish these improvements. Some questions to ask include: Did all/some papers use similar approaches? Have they used the same evaluation criteria, or method of analysis? If not, then what are the strengths/weaknesses of each method? Also, keep a list of ideas that you want to explore further, or background material you want to brush upon. This will create another list of readings for you in later stages.
- Write a two page proposal defining, as clearly as possible, the following items:
- Motivation
- Research challenges
- Overview of existing work
- Limitations of existing work
- Potential directions and ideas for improvement
- Expected results and impact on the field.
- If you have done a good job at the above, I think you are at a good 'starting' point to pursue research! Good luck with the rest...
The next step is to write a 10 page proposal elaborating on the 2 pages above, adding your own twist on the problem, outlining your initial thoughts, results and findings, and outlining a clear plan to continue the work.
For a suggested outline and instructions on how to write the ~10 page report click here.
[Note: try to refine your set of keywords and perform multiple searches to cover most related quality work.]
Another hint is to use references and citations. Usually the most cited work by high quality papers is also of high quality. If you like a specific paper look at the list of references, this will give you a good direction to follow.
Try to focus... it is hard, and there are a lot of good ideas out there, and the more your read, the more you want to read (which is good), but you have to focus and write those 2 pages. [Remember that having a strategy is sometimes more important than dispersed ideas. More readings will come at a later phase. It is more important to focus at this point and not get confused, so be very selective in your readings.]
For an outline and sample instructions on how to write those two initial pages click here.
After each milestone the advisor would provide the student(s) with feedback on the work and guidance to reach the next milestone.]
Sincerely,
Ahmed Helmy
Assistant Professor of Computer Networks
Department of Electrical Engineering
University of Southern California
http://ceng.usc.edu/~helmy
--
Happy day, happy life!
Idea to do more
However, maybe I can do more than what a computer programmer can do.
E.g. Do some research on something like Computer or Phycics science.
I need a topic to start.
Today, everyone in the world is a writer and you can publish your idea freely through net.
I am one too.
如何选择研究课题
一般上,学术论文的课题是由指导老师指定。但是,在一些特殊情况下,您需要向指导老师或院系提出自己的研究课题。如何决定要写些什么东西呢?翻查以下的资料或许能够给您提供一些提示:
教科书
一般或专门的百科全书
专书
期刊论文
选择研究方向的几个原则:
应考虑自己的能力
范围应大小适中
资料是否容易取得
应能推陈出新
REF:http://www.lib.nus.edu.sg/chz/ChiLION/ChiRTopics/research.html
Happy day, happy life!