Archive for December, 2011

The Organization of Social Posts


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.


2. Forum

Take as an example.



  • 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 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.


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


Attributes for such a reply post:

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


A general post model:

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


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

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.

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())
FileWriter fileWritter = new FileWriter(file, true); // append
BufferedWriter bufferWritter = new BufferedWriter(fileWritter);

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.


  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:

Categories: Software Center Tags: ,

Install A New Linux OS in VMware ESXi Server


  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.
  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: , ,