Samual Sam has Published 2310 Articles

CSS media types

Samual Sam

Samual Sam

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

128 Views

The following are the media types in CSS:S.noValue & Description1.AllSuitable for all devices.2.AuralIntended for speech synthesizers.3.BrailleIntended for braille tactile feedback devices.4.EmbossedIntended for paged braille printers.5.HandheldIntended for handheld devices (typically small screen, monochrome, limited bandwidth).6.PrintIntended for paged, opaque material and for documents viewed on screen in print preview mode. Please consult ... Read More

Unicode Byte Order Mark (BOM) character in HTML5 document.

Samual Sam

Samual Sam

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

669 Views

A byte order mark (BOM) consists of the character code U+FEFF at the beginning of a data stream, where it can be used as a signature defining the byte order and encoding form, primarily of unmarked plaintext files.Many Windows programs (including Windows Notepad) add the bytes 0xEF, 0xBB, 0xBF at ... Read More

Difference between dragenter and dragover event in HTML5

Samual Sam

Samual Sam

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

432 Views

dragenterThe dragenter event is used to determine whether the drop target is to accept the drop. If the drop is to be accepted, then this event has to be canceled.dragoverThe dragover event, which is used to determine what feedback is to be shown to the user. If the event is ... Read More

Use of Function modules in SAP ABAP to change address independent communication data for BP

Samual Sam

Samual Sam

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

3K+ Views

You can change address independent communication data using Function Modules like BAPI_BUPA_CREATE_FROM_DATA and BAPI_BUPA_CENTRAL_CHANGE and other FM’s in the same category.Function Module: BAPI_BUPA_CREATE_FROM_DATA   Function Group: BUBA_3            Program Name: SAPLBUBA_3   Following are the parameters:Function Module: BAPI_BUPA_CENTRAL_CHANGEFunction Group: BUBA_3            Program Name: SAPLBUBA_3Following ... Read More

How can I preserve Python tuples with JSON?

Samual Sam

Samual Sam

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

405 Views

There is no concept of a tuple in the JSON format. Python's JSON module converts Python tuples to JSON lists because that's the closest thing in JSON to a tuple. Immutability will not be preserved. If you want to preserve them, use a utility like a pickle or write your ... Read More

Who maintains and governs CSS?

Samual Sam

Samual Sam

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

660 Views

CSS invented by Håkon Wium Lie on October 10, 1994, and maintained by a group of people within the W3C called the CSS Working Group. 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 ... Read More

How to optimize Python Dictionary for performance?

Samual Sam

Samual Sam

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

765 Views

dicts in python are heavily optimized. Creating a dict from N keys or key/value pairs is O(N), fetching is O(1), putting is amortized O(1), and so forth. You don't need to optimize them explicitly. You can be sure of this as python under the hood implements its own classes using ... Read More

How to optimize Python dictionary memory usage?

Samual Sam

Samual Sam

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

696 Views

There are some cases where you can simply avoid using dictionaries in Python. For example, if you're creating a dict of continuous integers to some values, consider using a list instead.If you're creating string-based keys, you might be better off using a Trie data structure(https://en.m.wikipedia.org/wiki/Trie).There are other cases where you ... Read More

What are Character Entities in HTML5

Samual Sam

Samual Sam

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

152 Views

Some characters are reserved in HTML5. For example, you cannot use the greater than and less than signs or angle brackets within your text because the browser could mistake them for markup.HTML5 processors must support the five special characters listed in the table that follows.SymbolDescriptionEntity NameNumber Code"quotation mark""'apostrophe''&ersand&&greater-than>> Read More

How to split Python dictionary into multiple keys, dividing the values equally?

Samual Sam

Samual Sam

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

895 Views

Very use case specific: https://stackoverflow.com/questions/30447708/split-python-dictionary-into-multiple-keys-dividing-the-values-equally

Advertisements