Nizamuddin Siddiqui has Published 2307 Articles

What does the [Flags] Enum Attribute mean in C#?

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:41:57

502 Views

The Enum Flags is used to take an enumeration variable and allow it hold multiple values. It should be used whenever the enum represents a collection of flags, rather than representing a single valueUse the FlagsAttribute for an enumeration only if a bitwise operation (AND, OR, EXCLUSIVE OR) is to ... Read More

What is typeof, GetType or is in C#?

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:39:46

1K+ Views

Typeof()The type takes the Type and returns the Type of the argument.GetType()The GetType() method of array class in C# gets the Type of the current instance.isThe "is" keyword is used to check if an object can be casted to a specific type. The return type of the operation is Boolean.Example Live ... Read More

How to implement a Singleton design pattern in C#?

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:36:24

444 Views

Singleton Pattern belongs to Creational type patternSingleton design pattern is used when we need to ensure that only one object of a particular class is Instantiated. That single instance created is responsible to coordinate actions across the application.As part of the Implementation guidelines we need to ensure that only one ... Read More

What is the difference between Static class and Singleton instance in C#?

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:32:54

860 Views

StaticStatic is a keywordStatic classes can contain only static membersStatic objects are stored in stack.Static cannot implement interfaces, inherit from other classesSingletonSingleton is a design patternSingleton is an object creational pattern with one instance of the classSingleton can implement interfaces, inherit from other classes and it aligns with the OOPS ... Read More

Python - Write multiple files data to master file

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:27:16

452 Views

File handling is an important part of any web application.Python has several functions for creating, reading, updating, and deleting files.To write to an existing file, you must add a parameter to the open()function −"a" − Append − will append to the end of the file"w" − Write − will overwrite any ... Read More

Python - Working with PNG Images using Matplotlib

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:23:24

762 Views

Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.Example#applying pseudocolor # importing pyplot and image from matplotlib import matplotlib.pyplot as plt import matplotlib.image as img   ... Read More

Python - Working with Pandas and XlsxWriter

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:21:39

210 Views

Python Pandas is a data analysis library. It can read, filter and re-arrange small and large datasets and output them in a range of formats including Excel.Pandas writes Excel files using the XlsxWriter modules.XlsxWriter is a Python module for writing files in the XLSX file format. It can be used to write text, numbers, ... Read More

Python - Working with .docx module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:16:34

8K+ Views

Word documents contain formatted text wrapped within three object levels. Lowest level- Run objects, Middle level- Paragraph objects and Highest level- Document object.So, we cannot work with these documents using normal text editors. But we can manipulate these word documents in python using the python-docx module.The first step is to ... Read More

Python - Word Embedding using Word2Vec

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:15:04

493 Views

Word Embedding is a language modeling technique used for mapping words to vectors of real numbers. It represents words or phrases in vector space with several dimensions. Word embeddings can be generated using various methods like neural networks, co-occurrence matrix, probabilistic models, etc.Word2Vec consists of models for generating word embedding. These models ... Read More

Python - Window size Adjustment in Kivy

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:13:23

587 Views

Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. Kivy provides you the functionality to write the code for once and run it on different platforms. It is basically used to develop the Android application, but it does ... Read More

Advertisements