How to mark-up phone numbers?

The tel: scheme was used in the late 1990s and documented in early 2000 with RFC 2806 (which was obsoleted by the more-thorough RFC 3966 in 2004) and continues to be improved. Supporting tel: on the iPhone was not an arbitrary decision. callto:, while supported by Skype, is not a standard and should be avoided unless specifically targeting Skype users. Me? I’d just start including properly-formed tel: URIs on your … Read more

Jenkins Project Artifacts and Workspac

It does seem like you are confused about several aspects of Jenkins.. I think your question basically boils down to the following. What is a difference between a workspace and a build? So, here are some thoughts on this topic: Builds are historical data. They (usually) don’t change like a workspace does during building/checkout. Builds … Read more

jQuery change class name

Using jQuery You can set the class (regardless of what it was) by using .attr(), like this: If you want to add a class, use .addclass() instead, like this: Or a short way to swap classes using .toggleClass(): Here’s the full list of jQuery methods specifically for the class attribute.

How to get today’s Date?

Since the methods are deprecated, you can do this with Calendar: And if you need a Date object in the end, simply call today.getTime()

“git checkout ” is changing branch to “no branch”

If you checkout a commit sha directly, it puts you into a “detached head” state, which basically just means that the current sha that your working copy has checked out, doesn’t have a branch pointing at it. If you haven’t made any commits yet, you can leave detached head state by simply checking out whichever branch you … Read more

How to override toString() properly in Java?

The toString is supposed to return a String. I suggest you make use of your IDE’s features to generate the toString method. Don’t hand-code it. For instance, Eclipse can do so if you simply right-click on the source code and select Source > Generate toString