Platforms of Java Programming Language

There are four platforms of Java Programming Language: 1. Java Platform, Standard Edition (Java SE) : Java Platform, Standard Edition or Java SE is a widely used platform for development and deployment of portable applications for desktop and server environments. Java SE uses the object-oriented Java programming language. Strictly speaking, Java SE is a platform specification. … Read more

Positioning in CSS

If you don’t specify an element’s positioning type, it defaults to <span class="keyword" style="box-sizing:border-box;">static</span>. This just means “where the element would normally go.” If you don’t tell an element how to position itself, it just plunks itself down in the document.Absolute positioningThe first type of positioning is absolute positioning. When an element is set to position: absolute, it’s then … Read more

“display” property in CSS

In this post we will learn four possible values of “display” property in CSS.1. block: This makes the element a block box. It won’t let anything sit next to it on the page! It takes up the full width.2. inline-block: This makes the element a block box, but will allow other elements to sit next … Read more

“Pixel” vs “em” in CSS

A pixel is a dot on your computer screen. Specifying font sizes in pixels is great when you want the user to see exactly on their screen what you designed on yours, though it assumes your screens are of similar size. What if the user is using a screen that’s a very different size from … Read more

How to handle negative TimeSpan value in C#?

I had problems with casting TimeSpan object to DateTime. Error occured: FormatException (“the input string was not in proper format”).Code I tried:DateTime.Parse(record.Field(“Hours”)); // raised errorHere record is a DataRow object and I’m using Linq to Objects to parse the Date.//Field actual value :”{-06:25:00}”How did I overcome?I used .Duration() method of TimeSpan object.DateTime.Parse(record.Field(“Hours”).Duration()); HTH 🙂

Template Tag in HTML5

W3C has introduced a new “template” tag that provides a mechanism to define HTML markup fragments as prototypes. In practice, a template can be used to insert fragments of HTML code into your page, for example: <template id=”rowTemplate”> <tr> <td class=”record”></td> <td></td> <td></td> </tr> </template> FeaturesThe following are the features of the template tag: The template code can … Read more

What is API and How to use it?

what is an api

Have you ever used a library in C#? Yes, that’s an API. An Application Programming Interface is something that let’s you interact with something or with an interface. They are just a set of functions you can call. They have their documentation on what they do, how they behave, what input(s) they need to perform as intended. … Read more