Arjun Thakur has Published 1025 Articles

What is the purpose of an access specifier in C#?

Arjun Thakur

Arjun Thakur

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

517 Views

To define the scope and visibility of a class member, use an access specifier. C# supports the following access specifiers. Public Private Protected Internal Protected internal Let us learn about them one by one. Public Access Specifier It allows a class to expose its member variables and member ... Read More

Generate Secure Random Numbers for Managing Secrets using Python

Arjun Thakur

Arjun Thakur

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

395 Views

To generate secure random numbers cryptographically we can use the secrets module in python. This module is helpful to create secure password, account authentication, security tokens or some related secrets. To use the classes and modules of the secrets module, we should import that module into our code. import ... Read More

The fcntl and ioctl System Calls in Python

Arjun Thakur

Arjun Thakur

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

3K+ Views

To control the files and the io, we should use the fcntl module. It is basically one interface to the fcntl() and ioctl() Unix routines. All methods in this module takes one integer or io.IOBase file-descriptor as their first argument. To use this module, we should import it using. ... Read More

Difference between C# and Visual C#

Arjun Thakur

Arjun Thakur

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

2K+ Views

C# and Visual C# are both the same. When you use Visual Studio for C# development, it is called Visual C# .Consider Visual C# as an implementation of C#. Microsoft Visual Studio is an IDE from Microsoft to develop programs, web app, web services, etc. The current version of ... Read More

Why do integers in database row tuple have an 'L' suffix in MySQL?

Arjun Thakur

Arjun Thakur

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

303 Views

The ā€˜L’ suffix concept in MySQL can be related with Python. In Python 2, the long integer literal is suffixed with L or l, but int and long have been binded into int in version 3. Therefore, there is no need for L or l. Adding large numbers in Python ... Read More

Thread-Safe collections in C#

Arjun Thakur

Arjun Thakur

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

795 Views

The .NET Framework 4 introduced System.Collections.Concurrent namespace. The namespace has numerous collection classes. These classes are both thread-safe and scalable. Multiple threads can safely add or remove items from these collections, The following concurrent collection types use lightweight synchronization mechanisms: SpinLock, SpinWait, etc. These are new in .NET ... Read More

What is the difference between BIT and TINYINT in MySQL?

Arjun Thakur

Arjun Thakur

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

978 Views

BIT can be used to store the value of 1 bit. It could be 0 or 1. We cannot store, for example 2 with data type BIT. If we try to insert 2 with BIT data type, MySQL raises an error. TINYINT can be used to store value of 8 ... Read More

Background ListView becomes black when scrolling in Android?

Arjun Thakur

Arjun Thakur

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

299 Views

Before getting into listview example, we should know about listview, Listview is a collection of items pulled from arraylist, list or any databases. Most uses of listview is a collection of items in vertical format, we can scroll up/down and click on any item. Here is the simple solution ... Read More

Passband Transmission

Arjun Thakur

Arjun Thakur

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

6K+ Views

In passband transmission, the amplitude, phase or frequency of the carrier signal is regulated to transmit the bits. The incoming data stream is modulated onto a carrier and then transmitted over a band-pass channel. The types of passband transmission are illustrated as āˆ’ Amplitude Shift Keying (ASK) In ASK, ... Read More

How to convert a string to date in MySQL?

Arjun Thakur

Arjun Thakur

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

9K+ Views

We can convert a string to date with the help of STR_TO_DATE() function. Let us see an example. Creating a table. mysql> create table StringToDateDemo -> ( -> YourDate varchar(100) -> ); Query OK, 0 rows affected (0.49 sec) ... Read More

Advertisements