Archive

Archive for December, 2011

The Organization of Social Posts

Observations:

1. Twitter

A typical tweet has the following attributes:

  • Author, associated with a  profile which includes: unique ID, screen name, location, portrait, following and followers, etc;
  • Tweet, including tweet content, time stamp, etc;
  • Attributes: favorite (like/dislike), retweet, reply.

image

2. Forum

Take http://stackoverflow.com as an example.

image

Attributes:

  • Agree (upper triangle) and disagree (lower triangle);
  • Favorite (star);
  • Share to Facebook and Twitter;
  • Tags such as “ruby”;
  • Author demographic data;
  • Replies.

3. News Article Review

Take Readwriteweb.com as an example.

An initial post is actually an article, so it contains title, (abstract), pictures/videos, and a long textual content. The following is what you can do for the initial post:

  • Share: Twitter, Facebook, Email, Digg and Print out.
  • Comments
  • Subscribe to the author or category.

image

If a post is a reply, it looks like this:

image

Attributes for such a reply post:

  • Author;
  • Content;
  • Time stamp;
  • Like/dislike;
  • Reply.

Modelling:

A general post model:

1. Each post has an unique URL, reallocated, to indicate the structures of the whole discussion thread. For example,

twitter/3456/23/1

means a post which is the first reply to post twitter/3456/23 and the latter is the 23rd post to the initial post twitter/3456 in Twitter.com.

2. Authors, with demographic data, are connected by social networks;

3. Posts can be organized by semantic ties, which indicates the cohesive of the topic (like hashtags in Twitter);

4. Time stamps are important in time series analysis.

Advertisements
Categories: Social Web

Smart Java Code Blocks


Read entries in a Map<Key, Value>:

for (Map.Entry entry : entityWeight.entrySet()) {
	System.out.println(entry.getKey() + ":" + entry.getValue());
}

Open a file and append text to the end of the file:

File file = new File("X:/Spritzer/Daily/" + stringDate + ".txt");
if (!file.exists())
	file.createNewFile();
FileWriter fileWritter = new FileWriter(file, true); // append
BufferedWriter bufferWritter = new BufferedWriter(fileWritter);
bufferWritter.write("\r\n");

Obtain designated date format:

Date date = new Date();
SimpleDateFormat dateformat = new SimpleDateFormat("yyyyMMddhhmm");
String stringDate = dateformat.format(date);
Categories: Programming Languages

Linux Commands for Installing Software


Wireshark on Fedora:

su —
yum install wireshark
yum install wireshark-gnome


Categories: Software Center Tags:

Clone VM between Different ESXi Servers

Sometime the clone of a fully configured VM is convenient for us. There are two cases for cloning VM:

  1. Clone a VM inside a ESXi server;
  2. Clone between different ESXi servers.

For the 1st case, there is GUI guide inside ESXi server to lead you do that. However, it is also very simple to do the same job without a GUI, for both case 1 and 2.

Instructions:

  1. From the original folder, copy the .vmx and .vmdk files to your destination folder.
  2. Right-click on the .vmx configuration file. Select “Add to Inventory”.

More details:

http://www.dedoimedo.com/computers/vmware-esxi-clone-machine.html

Categories: Software Center Tags: ,

Install A New Linux OS in VMware ESXi Server

P(`7$HA7WP7B@{HNQZ)2A~6

  1. Download the Linux ISO distribution to your local computer.
  2. Create a new VM in VSphere Client. The default setting only has one hard disk. To make /home occupying a single disk, you’d better add a new hard disk in “Resource Allocation” tab of the VM you just created.
  3. In “Summary”->”Resources”->"datastore”, right click and browse into the directory with the name of VM you have created. Upload ISO file from your local computer to that directory.
    image
  4. “Resource Allocation”->”Edit … VM Properties” –> CD/DVD Drive 1 –> connect at power on, connect ISO image in the datastore –> OK. Power on to start VM.
  5. Install your new OS as usual.

VMWare Operations:

Ctrl + Alt: release your mouse

Ctrl + Alt + Insert: restart

Categories: Software Center Tags: , ,