hcheung

Joined 7 years ago

Karma
48
Submissions
17
Member since
Jun 7
www.e-tinkers.com
View on Hacker News

Recent submissions

Comment · 1 year ago
As most of my website are static content (blog with html/css), plus the implementation of cache and having a nginx (instead of Apache) help to serves most of the content from cache instead of access to the hard disk. Use of hard disk is trying to avoid the wear-off of SD card, I did in such as way where the boot is still done by the SD card, only the storage are in hard disk.
Comment · 1 year ago
I did something similar in 2016 https://www.e-tinkers.com/2016/11/hosting-wordpress-on-raspb.... Instead of having Apache, I use Nginx. Instead of serving webpage from SD card, I setup a 512MB hard disk except booting still done via the SD card. The site is still running on a Raspberry Pi 3 till this day from my living room.
Comment · 6 years ago
Traditionally Guotie is different from Jiaozi, it is a long roll with both side open, often with the same ingredients as jiaozi (cabbage with pork or mutton), but nowadays people are lazy and made guotie using jiaozi. You still be able to find traditional guotie in Taipei, but sadly seldom in China.
Comment · 6 years ago
As a Chinese, we don't categorised Bao as Jiao (dumplings), they are different both in shape and wrapper, and cooking (Bao is steam and never boiled with water).
Comment · 6 years ago
Comment · 6 years ago
Thanks for sharing, the title should be dated with (2001).
Comment · 6 years ago
Would be an interesting read if there is an English version of the book available.
Comment · 7 years ago
Comment · 7 years ago
At least it is voted by the people no matter how imperfect it is. 1200 people is hardly a definition of "by people".
Comment · 7 years ago
> is ruled by a governing entity elected by Hong Kong people.

You called "elected" by a group consists of 1200 people as elected by Hong Kong people?

Comment · 7 years ago
How do you handle the logistic? Using third-party storage and shipping? Creating and running self-host shop is not difficult, but I found the logistic of handling inventory and shipping that tie you up.
Comment · 7 years ago
The nginx header directives are all not in correct syntax with the extra ":", and for those directives with multiple values, it should be wrapped within a "" (such as "1; mode=block"), here is the correct settings:

    ## General Security Headers
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Frame-Options deny;
    add_header X-Content-Type-Options nosniff;
    add_header Strict-Transport-Security "max-age=3600; includeSubDomains";

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton