Thứ Ba, 15 tháng 10, 2013

Một số thuật ngữ liên quan đến publication

1. Chỉ số ISI: Institute of Science Index
2. SCI: Science Citation Information
3. SSCI: Social Science Citation Information
4. AHCI: Art and Humanities Citation Index
5. EI: Engineer Index
6. ESSCI: Electronic Social and Science Citation Index
7. ISSN: International Standard Serial Number:  a unique eight-digit number used to identify a print or electronic periodical publication


Thứ Ba, 24 tháng 9, 2013

How to export EPS file from power point figures

Bước 1. Cài một máy in PostScript (có đuôi PS ở cuối của tên máy in)

Bước 2. In trang có chứa figure sang dạng post script format (*.prn)
- Chú ý: Để page setup A4
- Figure muốn in để góc dưới cùng bên trái của trang A4
- Lúc in chọn máy in PostScript ở trên (loại máy print-to-file)
- Trong Printer property:
+ chọn Paper Size: A4
+ Post Script option: EPS

Bước 3. Dùng GSView, chọn chức năng "PS to EPS" trong menu file

Thứ Tư, 7 tháng 8, 2013

Thứ Sáu, 2 tháng 8, 2013

Push-based vs Pull-based

Push-based: the sources/senders initiate the data transfer
http://en.wikipedia.org/wiki/Push_technology
Pull-based: the destinations/receivers initiate the data transfer

Thứ Năm, 4 tháng 4, 2013

How to pass IEEE pdf checking

1. Use IEEE class file in latex to generate pdf file
2. When create an image with some texts inside, make sure we only use some fonts that can be embedded subset
E.g. Calibri font

Note: Arial, and Times New Roman is not embedded???

Thứ Tư, 3 tháng 4, 2013

Chạy framework p2p_traffic_localization_v2

1. Di chuyển đến thư mục chứa file chạy:
cd /home/hiephv/workspace/p2p_localization_frw_v2/Debug


2. Chạy lệnh
- interface_name: tên card Ethernet muốn nghe: ví dụ: eth0
3. Sau khi chạy dữ liệu sẽ được capture trên các measurement hosts bằng Wireshark
4. Chạy các file script PHP để generate dữ liệu từ các file CSV ở trên

./p2p_localization_v2 interface_name application_id method_id mode

- application_id: 0 --> PPStream,        1 --> PPTV,              2 --> Sopcast
- method_id:      0 --> Delay insertion,  1 --> packet loss,     2 --> bandwidth limitation
- mode:             0 --> bi direction,        1 --> download only, 2 --> upload only

- Để generate dữ liệu throughput --> Chọn chức năng Export to Files của Wireshark --> Lưu dữ liệu dưới dạng file CSV
- Để generate dữ liệu download data by region --> Chọn Statistic/EndPoints/ 
+ Chọn giao thức UDP (vì dữ liệu video gửi bằng udp protocol)
+ Chọn Copy và paste vào file text mới, để định dạng CSV

- make_throughput_report.php: generate dữ liệu throughput theo AS4713 và các countries
- make_data_ratio_report.php: generate dữ liệu downloaded data distributions by countries
- make_as_data_ratio_report.php: generate dữ liệu downloaded data distributions by ASes

Thứ Hai, 11 tháng 3, 2013

Nameserver cho PC-based router

sudo vim /etc/resolv.conf
nameserver 192.168.12.1

How to get results from a system command in linux


Ví dụ để lấy kết quả từ system command trong linux
#include <stdio.h>
#include <stdlib.h>


int main( int argc, char *argv[] )
{

  FILE *fp;
  int status;
  char path[1035];

  /* Open the command for reading. */
  fp = popen("/bin/ls /etc/", "r");
  if (fp == NULL) {
    printf("Failed to run command\n" );
    exit;
  }

  /* Read the output a line at a time - output it. */
  while (fgets(path, sizeof(path)-1, fp) != NULL) {
    printf("%s", path);
  }

  /* close */
  pclose(fp);

  return 0;
}