Meditations: Stoicism and a Roman Emperor's Defense against Human Shortcomings

Diary of a Roman Emperor The Meditations is a diary written by Roman Emperor Marcus Aurelius to himself. Actually, the long-established title Meditations is kind of misleading and not original. The book doesn’t have an emphasized and coherent argument but instead some recurring themes. A few topics are mentioned and discussed multiple times throughout the book. For example, the sense of mortality pervades the work. Marcus contemplates the topic of death and continually reminds himself that death is a natural process that is not to be feared, part of the continual change that forms the world. Not surprisingly, reading the Meditations for long periods can be conducive to melancholy. ...

December 25, 2023 · 2 min · 408 words · Justin Hu

FastAPI 101

What is FastAPI? According to its official website, FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on standard Python type hints. Hello World with FastAPI Installation Requirements Python3.8+ Install FastAPI 1 pip install fastapi Install ASGI Server 1 pip install "uvicorn[standard]" Define a FastAPI app Create a file main.py with: 1 2 3 4 5 from typing import Union from fastapi import FastAPI app = FastAPI() Create API Endpoints In main.py add the following 2 endpoints implementation ...

December 1, 2023 · 2 min · 415 words · Justin Hu

Hamilton

Hamilton Hamilton is a port city in the Canadian province of Ontario. General impressions: a beautiful small city McMaster University Dundurn Castle Red Hill Valley Trail

November 12, 2023 · 1 min · 26 words · Justin Hu

Montreal

Montreal Montreal is located by the riverside of the St. Lawrence River and is the second most populous city in Canada. Of course, French is the city’s official language. General Impressions: Downtown Montreal is built on hills; so a lot of uphills and downhills while wandering around in the city center; Montreal gives people a feeling of cleanness; the homeless issue is less severe compared to other major cities like Toronto and Ottawa; There are a lot of stunningly beautiful churches in the city; Unlike Ontario, vehicles in Montreal only have a rear plate; A lot of pedestrians don’t follow traffic lights when crossing the roads; Saint-Catherine St is a pedestrian-only street with tons of shops, bars and restaurants and is a good place to visit; ...

September 28, 2023 · 1 min · 205 words · Justin Hu

Ottawa

Ottawa, the capital city of Canada, is located at the confluence of Ottawa River and Rideau River. Ottawa My general impressions of the city: Ottawa is a much smaller city, compared to Toronto, understandably; Ottawa is full of the PRIDE vibe; rainbow flags and crossings can be seen frequently, at least when I visited the city; Ottawa, like other cities, also has a severe homeless crisis, which damages the city’s image; Ottawa is little boring since the economy is mainly driven by the Canadian government, which happens to be the largest employer in Ottawa; Ottawa’s public transit, OC Transpo, is still developing; good news is that it accepts Presto or Visa/Mastercard credit card; Ottawa is a more bilingual city and French is more widely used, compared to Toronto which is a more English city; ...

September 26, 2023 · 2 min · 312 words · Justin Hu

Niagara Falls

To compare the summer views with winter views: Niafara Falls in Witer Niagara Falls is one of the most famous waterfalls in the world, spanning the border between Ontario in Canada and New York in the United States. It comprises three falls (from right to left): Horseshoe Falls, Bridal Falls, and American Falls. Impressions: Canada side has the best view; The Rainbow bridge connecting Canada and the U.S. is not misnamed cause there are rainbows; Be prepared to get wet; it’s like a heavy rain for the water drops more than 50 meters and a lot of water droplets bounce back; Parking is expensive; it costs $35 dollars for 3 hours parking at 6635 Niagara River Pkwy, which is the closest parking lot to the fall

September 22, 2023 · (updated February 16, 2025) · 1 min · 126 words · Justin Hu

Wasaga Beach

Wasaga Beach is a small town in the southern end of the Georgian Bay. It’s about 1.5h drive from Toronto, so not very far. My biggest impressions of Wasaga: great beach great winds and tides

September 19, 2023 · 1 min · 35 words · Justin Hu