What does “opt” mean (as in the “opt” directory)? Is it an abbreviation? [closed]

In the old days, “/opt” was used by UNIX vendors like AT&T, Sun, DEC and 3rd-party vendors to hold “Option” packages; i.e. packages that you might have paid extra money for. I don’t recall seeing “/opt” on Berkeley BSD UNIX. They used “/usr/local” for stuff that you installed yourself. But of course, the true “meaning” … Read more

In Docker, what’s the difference between a container and an image? [duplicate]

Images are frozen immutable snapshots of live containers. Containers are running (or stopped) instances of some image. Start with the base image called ‘ubuntu’. Let’s run bash interactively within the ubuntu image and create a file. We’ll use the -i and -t flags to give us an interactive bash shell. $ docker run -i -t … Read more

What is a practical use for a closure in JavaScript?

Suppose, you want to count the number of times user clicked a button on a webpage. For this, you are triggering a function on onclick event of button to update the count of the variable <button onclick=”updateClickCount()”>click me</button> Now there could be many approaches like: You could use a global variable, and a function to … Read more

What is the difference between memoization and dynamic programming?

Relevant article on Programming.Guide: Dynamic programming vs memoization vs tabulation What is difference between memoization and dynamic programming? Memoization is a term describing an optimization technique where you cache previously computed results, and return the cached result when the same computation is needed again. Dynamic programming is a technique for solving problems of recursive nature, … Read more

UI Terminology: Logon vs Login [closed]

Since you’re looking for correctness, login, logout, logon, and logoff are all nouns: “Please enter your login credentials.” “I see three logons but only two logoffs from this user.” The corresponding verbs are each two words: “Please log in to see your reputation.” “You must log off and talk to a human.” Update: according to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)