Karthikeya Boyini has Published 2383 Articles

How to compile unsafe code in C#?

karthikeya Boyini

karthikeya Boyini

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

2K+ Views

For compiling unsafe code, you have to specify the /unsafe command-line switch with command-line compiler. For example, to compile a program named one.cs containing unsafe code, from command line, give the command − csc /unsafe one.cs Under Visual Studio IDE, enable use of unsafe code in the ... Read More

How can we speed up Python "in" operator?

karthikeya Boyini

karthikeya Boyini

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

361 Views

The python operator performs very badly in a list, O(n), because it traverses the whole list. You can use something like a set or a dict(hashed data structures that have very fast lookups) to get the same result in ~O(1) time!But this also depends on the type of data structure ... Read More

Using client side XSLT transformations in HTML5

karthikeya Boyini

karthikeya Boyini

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

125 Views

Client-side XSLTProcessor API is part of the HTML5 scripting specification, as stated below:When an XSLT transformation program is triggered by a processing instruction and the browser implements a direct-to-DOM transformation, script elements created by the XSLT processor need to be marked "parser-inserted" and run in document oThe XSLTProcessor.transformToDocument() method adds ... Read More

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

karthikeya Boyini

karthikeya Boyini

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

530 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

365 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

80 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

460 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

955 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

158 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

Advertisements