Saturday, April 12, 2014

Research Day 03: How to write a research paper

  • Papers communicate ideas
  • Idea -> write paper -> do research
  • Write a paper, and give a talk about any idea, no matter how weedy and insignificant it may seem to you.
  • Writing the paper is how you develop the idea in the first place.
Conveying the idea when writing a paper
 I. Structure of a research paper
  1. Abstract (4 sentences)
  2. Introduction (1 page)
  3. The problem (1 page)
  4. My idea (2 pages)
  5. The details (5 pages)
  6. Related work (1-2 pages)
  7. Conclusions and further work (0.5 pages)
II. For the Abstract section using the four sentences model [Kent Beck]
  1. State the problem
  2. Say why it's an interesting problem
  3. Say your solution achieves
  4. Say what follows from your solution
III. For the Introduction
  1. Describe the problem
  2. State your contributions. They can be bulleted list of contributions
    1. Write a list of contributions first
    2. The list of contributions drives the entire paper: the paper substantiates the claims you have made.
 IV. For my idea, the details and related work

Your introduction makes claims. The body of paper provides evidence to support each claim. Evidence can be analysis and comparison, theorems, measurements or case studies.

References
Simon Peyton Jones, "How to write a great research paper", Microsoft Research, Cambridge

Wednesday, July 24, 2013

Database Day 03: MySQL in Ubuntu

Create a user at localhost
create user 'david'@'localhost' identified by 'password';

Grant permissions to access all databases and all tables for the user "david"
grant all on *.* to 'david'@'localhost' identified by 'password'; 
SET PASSWORD FOR 'username'@'localhost'=PASSWORD('mynewpassword');
SET PASSWORD FOR 'username'@'hostname'=PASSWORD('mynewpassword');

List all databases managed by the server
show databases;

Work on database test
use test

Display all tables in database test
show tables;

Describe a table in the current database test
describe tablename;

Create table users in the database test
use test;
create table users (users_id INT unsigned NOT NULL AUTO_INCREMENT, users_name VARCHAR(50) NOT NULL, users_email VARCHAR(50) NOT NULL, users_datejoined DATETIME NOT NULL, PRIMARY KEY (users_id));

Add another column to the table "users" after the "users_email" column
ALTER TABLE users ADD users_pass CHAR(40) NOT NULL AFTER users_email;

Insert a new record to the table users
INSERT INTO users (users_name, users_email, users_pass, users_datejoined) VALUES ('John Smith','johnsmith@abc.com', SHA1('mypassword'), NOW());

Insert another record to the table users using the second method
INSERT INTO users VALUES (NULL, 'Peter Jones','peterjones@fakeemail.com', SHA1('password'), NOW());

Show all the records in the table "users"
USE test;
SELECT * from users;

Show all the records in the table "users"
USE test;
SELECT users_name from users;

Show all the records in the table "users"
USE test;
SELECT users_name, users_email from users;

Display the current date and time
SELECT NOW();

Show the user that has the users_id = 5
SELECT users_name FROM users WHERE users_id = 5;

Show users that have the users_id > 3
SELECT users_name FROM users WHERE users_id >3;

Show users that have the users_id between 3 and 10
SELECT users_name FROM users WHERE users_id BETWEEN 3 AND 10;


Show users that have the users_id between 3 and 10 and users_post > 10
SELECT users_name FROM users WHERE (users_id BETWEEN 3 AND 10) AND (users_post  > 10);

Run mysql script to create and populate database
mysql -u root -p
source c:\mysqlstatements.sql

Thursday, May 16, 2013

UNIX/Linux/Ubuntu system administration DAY 03

1. Delete line(s) in a text file

%sed -e '/pattern/d' foo.txt > new_foo.txt

If the keyword has spaces or special characters, use this

%sed -e "/pattern/d" foo.txt > new_foo.txt

2. List only usernames in linux/unix systems 

Type the following awk command:
$awk -F':' '{ print $1}' /etc/passwd

3. Login definition file is at /etc/login.defs
 
This login.defs file contains the starting and ranges of UID for users and groups, password aging controls (e.g. maximum number of days a password may be used, minimum acceptable password length, etc.), default UMASK, use MD5 or DES to encrypt password, etc.)


4. Stop the network interface eth0:
        ifdown eth0


5. Start the network interface eth0:
        ifup eth0


6. Restart all the networks services:

        /etc/init.d/networking restart

7. Display various network interfaces

        /sbin/ifconfig -a

8. Add a default gateway of 192.168.0.1
        route add default gw 192.168.0.1

9. To learn about kernel
        differences between
        $uname -a
        shows machine name and detailed hardware information

        and

        $cat /proc/version
        shows gcc version

10. term, xterm and uxterm
        differences between them
        term: terminal, which is in the Ubuntu default software, is the gnome-terminal.
        The gnome-terminal has more features than xterm.
        xterm: is minimalistic
        uxterm: is xterm with the support of Unicode characters

Sunday, February 3, 2013

Research Day 02: Scientific Method

I. Google articile about The Scientific Method

 

II. Google article about Lesson Plan Notes 


III. Google Student Worksheet




(Source: above articles obtained from Google at http://www.google.com/events/sciencefair/educators.html)

Visual Information Day 02

Tablet market share in fourth quarter 2012


(Source: IDC at http://bit.ly/14IdUci)

A Courtroom Map of A Magistrates' Court

References

D.L.A. Barker (2007). Law Made Simple. 12th Ed. Elsevier Ltd

 

Saturday, February 2, 2013

Object Recognition Day 01

Challenges in visual object recognition

 Matching and learning visual objects is challenging because of the following factors.

  1. Illumination conditions
  2. Object pose
  3. Camera viewpoint
  4. Partial occlusions
  5. Unrelated background clutter
  6. Computational complexity
  7. Scalability


State of the art of visual object recognition methods


A good feature extraction method needs to have the following properties.

  1. Being able to extract local invariant features (e.g. scale invariance, affine invariance)
  2. Fast to extract
  3. Robust to viewpoint variations
  4. Retaining enough discriminative power to allow for reliable matching

References

Kristen Grauman and Bastian Leibe (2011) . Visual Object Recognition (Synthesis Lectures on Artificial Intelligence & Machine Learning). Morgan & Claypool.

Visual Information Day 01

 Australia's Tax Take - Winners and Losers

(Source:The Weekend Australia Newspaper, February 2-3, 2013)

(Source:The Age Newspaper, February 2, 2013)

 

 (Source:The Age Newspaper, February 2, 2013)

 

  (Source:The Age Newspaper, February 2, 2013)

 

Victoria, Australia House prices 1 year to 30 October 2012



(Source: Australian Property Investor Magazine, February 2013 Issue)

Mounting USB drives in Windows Subsystem for Linux

Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives form...