How to show open database connections in MySQL
How to show open database connections in MySQL using show status
and show processlist
command.
All keywords in Java
Keywords are special words in the programing language which have reserved use in the language. Keywords may not be used as identifiers in Java; for example you cannot declare a field whose name is a keyword.
XML and HTML sitemap file in SEO
The sitemap's a file place on your website that will enable Google and other search engines to crawl better and understand the structure of the site. Sitemaps also tell search engines which pages on your site are most important. It's a binder of your website's content.
Robots.txt File in SEO
A robots.txt file tells search engine crawlers which pages or files the crawler can or can't request from your site.
This is used mainly to avoid overloading your site with requests; it is not a mechanism for keeping a web page out
of Google. To keep a web page out of Google, you should use noindex
directives, or to password-protect
your page.
How to measure execution time in Golang
To mesure the time used by an application in Golang or of a code section the functions time.Now()
and time.Since()
can be used.
How to generate a random int in Golang
In Golang there a are two libraries for generating random integers, one is a pseudo-random number generator (package math/rand
) and the second one is cryptographically secure random number generator (package crypto/rand
)