Karthikeya Boyini has Published 2550 Articles

What are the best practices for using if statements in Python?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:22

501 Views

Here are some of the steps that you can follow to optimize a nested if...elif...else.1. Ensure that the path that'll be taken most is near the top. This ensures that not multiple conditions are needed to be checked on the most executed path.2. Similarly, sort the paths by most use ... Read More

How to check the validity of your CSS

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:22

118 Views

Validation is the process of checking something against a rule. When you are a beginner, it is very common that you will commit many mistakes in writing your CSS rules. How will you make sure whatever you have written is 100% accurate and up to the W3 quality standards?If you ... Read More

Trick to store credentials in local storage

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:22

349 Views

Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, Web applications may wish to store megabytes of user data, such as entire user-authored documents or a user's mailbox, on the client side for performance reasons.For storing credentials in local storage, on ... Read More

Using activity in SAP for number range intervals and number range objects

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:22

73 Views

As the name indicates, activity 02 is for intervals while activity 17 is for objects. There can be a different number range interval for a given SAP number range interval.

HTML5 & JavaScript: resolution or size of

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:22

414 Views

When the device is taking very large photos and we want to make such setting to take smaller photos from the mobile phone, then we can use two W3C ways of taking pictures.This can be done either through HTML or through JavaScript.HTML Media CaptureFor this, HTML uses capture and accept=”image/* ... Read More

Current Version of CSS

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:22

930 Views

CSS3 is the latest standard of CSS earlier versions (CSS2). Cascading Style Sheets, level 1 (CSS1) was came out of W3C as a recommendation in December 1996. This version describes the CSS language as well as a simple visual formatting model for all the HTML tags.CSS2 became a W3C recommendation ... Read More

Difference between specification and recommendation that introduced CSS

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:22

143 Views

The CSS Working Group creates documents called specifications. When a specification has been discussed and officially ratified by W3C members, it becomes a recommendation.These ratified specifications are called recommendations because the W3C has no control over the actual implementation of the language. Independent companies and organizations create that software.The World ... Read More

How do Python dictionary hash lookups work?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:22

262 Views

Dicts are hash tables. No tree searching is used. Looking up a key is a nearly constant time(Amortized constant) operation, regardless of the size of the dict. It creates the hash of the key, then proceeds to find the location associated with the hashed value. If a collision listed address ... Read More

Difference between C++ string constants and character constants

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:21

467 Views

In C++, a character in single quotes is a character literal. It's of type char. For example, 'a' is of type char with a value 97 on an ASCII based system.A character or a string of characters together in double quotes represent a string literal. It's of type const char[] ... Read More

Can interfaces have constructors in Java?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:20

492 Views

No, interfaces can’t have constructors for the following reasons − All the members of an interface are abstract, and since a constructor cannot be abstract. Still, if you try to write a constructor within an interface it will generate a compile time error. Example public interface InterfaceTest ... Read More

Advertisements