You've successfully subscribed to Nicholas Workshop
Great! Next, complete checkout for full access to Nicholas Workshop
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.
Nicholas Wong

Nicholas Wong

Fullstack software engineer with strong background in computer science and extensive experience in software engineering and architecture. Studied in NYU, worked in Yahoo, Rakuten and Manulife.

Change User To Run Plex On Ubuntu

Change User To Run Plex On Ubuntu
Members Public

1. Update etc config /etc/default/plexmediaserver # default script for Plex Media Server # the number of plugins that can run at the same time export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 # ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000 # where the

Nicholas Wong
Nicholas Wong
Back Online

Back Online
Members Public

This web site has been down for more than a year and I have not been putting any time to maintain it and put it back online. These days I finally spent some time to make it happen. There is a new theme, new backbone using Ghost and I am

Nicholas Wong
Nicholas Wong
Unsorted
SSH into Your CircleCI Server

SSH into Your CircleCI Server
Members Public

1. Generate a set of SSH key pair in your serverYou would need a public and private of SSH key, theoretically it can be generated in any computer as you like. The following is a sample to generate the key. ssh-keygen -t rsa -b 4096 -C "nicholas@example.com"2.

Nicholas Wong
Nicholas Wong
DevOps
0/1 Knapsack Problem Dynamic Programming

0/1 Knapsack Problem Dynamic Programming
Members Public

Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value is as large as possible. Drawing graphint[] plot(int[

Nicholas Wong
Nicholas Wong
Algorithm
Dynamic Programming

Dynamic Programming
Members Public

Come up with a recursive functionMemorize the intermediate resultsMake it bottom up

Nicholas Wong
Nicholas Wong
Algorithm
Palindrome

Palindrome
Members Public

Definition of Palindromeleft-to-right, and right-to-left, and it’s the same. For examples: Abba A man, a plan, a canal - Panama!SolutionYou need 2 pointers, one at the beginning, another one in the end. Move them one by one towards the center and check if it's palindrome. boolean check(String

Nicholas Wong
Nicholas Wong
Algorithm
SSL/TLS Cipher Suite

SSL/TLS Cipher Suite
Members Public

A cipher suite specifies one algorithm for each of the following tasks: Key exchangeBulk encryptionMessage authenticationSo you may see something like: PSK-AES-SHA256 Key exchange algorithmsKey exchange algorithms protect information required to create shared keys. These algorithms are asymmetric (public key algorithms) and perform well for relatively small amounts of data.

Nicholas Wong
Nicholas Wong
Network Security
Difference Between SSL and TLS

Difference Between SSL and TLS
Members Public

SSL is the predecessor to TLS SSL 1.0 was never released to publicSSLv2 in 1995, deprecated in 2011 (link)SSL v3 in 1996, deprecated in 2015 (link)TLS 1.1 in 1999TLS 1.2 in 2008TLS 1.3 currently in draft (link)Referenceshttps://www.globalsign.com/en/blog/ssl-vs-tls-difference/

Nicholas Wong
Nicholas Wong
Network Security