Chengyu SHEN

Graduate Student in USC

Chengyu's personal blog

Network Protocols: What has happended when you type "http://www.linkedin.com"

Mar 29, 2018 / Written by Chengyu

Thanks to the powerful search engines, like Google, Bing and Baidu, cyber-citizens find it is quiet convenient to search needed information by simply typing some keywords in the search bar. However, do you know what has happened when you type a famous link, such as “https://www.linkedin.com”? This article explores the “magic” behind the web browser and afterward, you are about to have a better understanding on how to get corresponding context when you type a URL.
Read More

How to understand HTTP?

Mar 13, 2018 / Written by Chengyu

The internet permeates into our life nowadays. Thanks to the appearances of various web-related applications, everyone could visit website conveniently. However, even though the majority of websites starting with http(s), only a few cybercitizens know the meaning of this. In order to get a better understanding of HTTP, this article explain this protocol's mechanism in an easy way.
Definition

  • HTTP is a well-known protocol defines how messages are transformed, formatted during web communication, and how web servers and browsers to implement / response those web request.
  • HTTP is a comprehensive protocol defines both Request & Response, in which your computer send a request for a file with specific context to the server, and the server return the corresponding file in the response

Read More

Establish MySQL and Node.js environment in Ubuntu Server

Nov 26, 2017 / Written by Chengyu

This article shared my experience in deploying MySQL and Node.js remotelly with SSH Encryption connection and terminal.
1. Connect to the remote server
You can use embedded Terminal in Mac or PuTTY in Windows to connect to the server.
ssh 'username'@'Ip_address'
After you typing so, it will require you to enter the corresponding password if necessary. If you can see the following textfield. Congratulation! You have logged in successfully.


Read More

Swift Core Motion

Oct 26, 2017 / Written by Chengyu

This article shared my experience in using the CMMotionManager() in Swift.
1. What is Core Motion? What can we do with this package?
If the developer wants to access to the motion- and environment-related data from the embedded hardware from the iPhone, including the accelerometers, gyroscopes, pedometers, magnetometers and barometers, the core motion library provides corresponding functions. One prevalent example is a game might use accelerometer and gyroscope data.


Read More

美国驾照,银行卡补办攻略

May 03, 2017 / Written by Chengyu

本人学生党,来美国也快一年了。由于自己马虎的性格,小到晚饭,大到钱包,除了护照以外什么都丢过 (所幸没丢护照,不然要到局子里坐一坐)。经过一系列的丢失经历我也总结了下补办各种卡的过程,在这里分享给大家,也未以后丢失东西的朋友一个参考(不过最好还是别丢,哈哈)。


Read More