Samual Sam has Published 2663 Articles

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

Samual Sam

Samual Sam

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

539 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

266 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

2K+ 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

195 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

315 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

Java program to reverse an array

Samual Sam

Samual Sam

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

549 Views

Stack is an Abstract Data Type (ADT), commonly used in most programming languages. It is named stack as it behaves like a real-world stack, for example – a deck of cards or a pile of plates, etc.A stack is first in first out, it has two main operations push and ... Read More

How to optimize Python dictionary access code?

Samual Sam

Samual Sam

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

192 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 can we read Python dictionary using C++?

Samual Sam

Samual Sam

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

324 Views

There are many C++/Python bindings. It boils down to what you use to communicate between C++ and python to read python dictionaries in c++. Most of these libraries(like Boost) handle the parsing themselves. You could use an intermediate data transfer format like JSON or XML to pass data between the ... Read More

How to optimize Python Dictionary for performance?

Samual Sam

Samual Sam

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

584 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

495 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(http://en.m.wikipedia.org/wiki/Trie).There are other cases where you ... Read More

Advertisements