1. The linux command
netstat -an|more: list the active internet connections
nslookup ip/dn: convert ip to dn or dn to ip
2. JBoss server log:
1. The linux command
netstat -an|more: list the active internet connections
nslookup ip/dn: convert ip to dn or dn to ip
2. JBoss server log:
Compile and Run C++ program on mac (m1):
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
g++ -o hello hello.cpp
./hello
1. Find the common number between different int array.
2. Find the same String between different String array. How about if the arrays are super fast, say the duplicate name between US and Canada? two big files
3. Query a LOL player's statistics
4. Display photos
Display photos with username/password
Display photos with username/password (no hack/partly)
boolean/int
+-*/ ++ --
== != > < >= <=
&& ||
if/else
swtich(expression){
case c1:
..break;
default:
}
array
For loop
recursion
constructor
static
Math.sqrt(x*x+y*y)
calculate what day after 100 days
read file/write file
Swing
Enterprise OAuth2 and Open ID Connect
1. Federated user
a single user identity used by all the applications
2. SAML flow
3. What is OAuth2
Introduction:
imminent: imminent death
relinquish: one learns to relinquish mental/emotinal resistance to the "suchness" of the present moment
intersperse: almost continuous anxiety interspersed with periods of suicidal depression
dread: a feeling of absolute dread
loathing: a ddep loathing of the world
loathsome: The most loathsome thing of all, however, was my own existence
annihilation: a deep long for annihilation
luminosity: That soft luminosity filtering through the curtains was love itself.
prisitine: Everything was fresh and prestine
palpable: Sometimes it is very strong, almost palpable, and others can feel it too
eon: have kept humans in bondage to suffering for eons
verbatim: Some of the questions and answers I wrote down almost verbatim
extraneous: overlaid with extraneous matter
obscure: alsmot completely obscured by it
exaltation: There is then a feeling of exaltation and heightened aliveness
When trying to post request directly from angular, got the CORS error:
Access to XMLHttpRequest at '***' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
The browser adds a OPTION call (preflight) as the content-type is application/json
Can add a chrome shortcut like the below to make the request successful:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="c:/chrome_dev"