• Now all data be ready for publish, We had made our blog alive now. Haha.



  • These days CCP GFW blocked all the IPs from US and when I switch my IP in google Cloud, the disk data cannot be restore again. I have to restart my blog totally, Now the website is still building…



How to replace all occurrences of a string?- Stack Overflow

How to replace all occurrences of a string?- Stack Overflow

Question I have this string: “Test abc test test abc test test test abc test test abc” Doing: str = str.replace(‘abc’, ”); seems to only remove the f……

10-27 DETAIL
How to validate an email address in JavaScript- Stack Overflow

How to validate an email address in JavaScript- Stack Overflow

Question How can an email address be validated in JavaScript? Answer Using regular expressions is probably the best way. You can see a bunch of tests here (taken from chromium) fu……

10-27 DETAIL
How to horizontally center a <div>?- Stack Overflow

How to horizontally center a

Question How can I horizontally center a within another using CSS? Foo foo Answer You can apply this CSS to the inner : #inner { width: 50%; margin: 0 auto; } Of cours……

10-27 DETAIL
Regular expression to match a line that doesn’t contain a word- Stack Overflow

Regular expression to match a line that doesn’t contain a word- Stack Overflow

Question I know it’s possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a spe……

10-27 DETAIL
What’s the difference between using “let” and “var”?- Stack Overflow

What’s the difference between using “let” and “var”?- Stack Overflow

Question ECMAScript 6 introduced the let statement. I’ve heard it that it’s described as a “local” variable, but I’m still not quite sure how it beh……

10-27 DETAIL
How do I push a new local branch to a remote Git repository and track it too?- Stack Overflow

How do I push a new local branch to a remote Git repository and track it too?- Stack Overflow

Question I want to be able to do the following: Create a local branch based on some other (remote or local) branch (via git branch or git checkout -b) Push the local branch to the……

10-27 DETAIL
How can I reset or revert a file to a specific revision?- Stack Overflow

How can I reset or revert a file to a specific revision?- Stack Overflow

Question I have made some changes to a file which has been committed a few times as part of a group of files, but now want to reset/revert the changes on it back to a previous ver……

10-27 DETAIL
What is the difference between a URI, a URL and a URN?- Stack Overflow

What is the difference between a URI, a URL and a URN?- Stack Overflow

Question People talk about URLs, URIs, and URNs as if they’re different things, but they look the same to the naked eye. What are the distinguishable differences between the……

10-27 DETAIL
How do I merge two dictionaries in a single expression?- Stack Overflow

How do I merge two dictionaries in a single expression?- Stack Overflow

Question I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged. The update() method would be what I need, if it retu……

10-27 DETAIL
Reference — What does this symbol mean in PHP?- Stack Overflow

Reference — What does this symbol mean in PHP?- Stack Overflow

Question What is this? This is a collection of questions that come up every now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate ……

10-27 DETAIL