Toggle show/hide on click with jQuery

Note: This method signature was deprecated in jQuery 1.8 and removed in jQuery 1.9. jQuery also provides an animation method named .toggle() that toggles the visibility of elements. Whether the animation or the event method is fired depends on the set of arguments passed, jQuery docs. The .toggle() method is provided for convenience. It is relatively straightforward … Read more

What is JNDI? What is its basic use? When is it used?

What is JNDI ? It stands for Java Naming and Directory Interface. What is its basic use? JNDI allows distributed applications to look up services in an abstract, resource-independent way. When it is used? The most common use case is to set up a database connection pool on a Java EE application server. Any application that’s … Read more

Setting Windows PowerShell environment variables

Changing the actual environment variables can be done by using the env: namespace / drive information. For example, this code will update the path environment variable: There are ways to make environment settings permanent, but if you are only using them from PowerShell, it’s probably a lot better to use your profile to initiate the settings. On … Read more

Java string to date conversion

That’s the hard way, and those java.util.Date setter methods have been deprecated since Java 1.1 (1997). Moreover, the whole java.util.Date class was de-facto deprecated (discommended) since introduction of java.time API in Java 8 (2014). Simply format the date using DateTimeFormatter with a pattern matching the input string (the tutorial is available here). In your specific case of “January 2, 2010” as the input … Read more

What is the main difference of
and

In practice, </br> does not exist. Just <br> or <br />. However, the difference is the position, and is universal for all XML tags. <TAG_NAME> indicates the beginning of a tag, and </TAG_NAME> indicates the end of a tag. When a tag is used with nothing between it, then a self-closing, or null tag can be used, which combines the beginning and end. It … Read more

NET::ERR_CERT_REVOKED in Chrome, when the certificate is not actually revoked

Not sure what it all means, but the answer is there: and Google revoked a Symantec certificate from Google products, but they have suspended the revocation following the type of issues you’re describing (which I also experienced). Quoting the Chromium ticket: First, the good news is the change has been temporarily reverted, and you should … Read more

Where is my .vimrc file?

You need to create it. In most installations I’ve used it hasn’t been created by default. You usually create it as ~/.vimrc.