Index | Code2night.com

Latest Blog

TreeSet In Java

TreeSet is a Java Collections Framework class that implements the SortedSet interface. It returns a set that is sorted in natural order or by a provided comparator. TreeSet, unlike HashSet, does not allow duplicate elements and delivers fast performance for simple operations like adding, removing, and searching for elements.

Implement Stripe Payment Gateway In ASP.NET

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET application built with C# and Web Forms. The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. There are four steps: Create the project and configure dependencies Create the payment Web Form Create a page to perform the charge Run the application

Polymorphism

Polymorphism means many forms. This allows us to perform a single action in different ways.

Chapter-3 (Input/Output functions in C)

In C, input and output functions are used to interact with the user and the external world. These functions allow you to read data from the user or files and write data to the screen or files. The standard library provides several functions for input and output

TreeMap in Java

The Treemap is a component of the Java Collections Framework that implements the SortedMap interface. It keeps its elements ordered according to the natural ordering of keys or a defined comparator.

Exception Handling and Creating Exception Logs in Asp.net MVC

So basically in a MVC Project we often use many controllers for making our web project functional.So one way is to handle exception separately on all of them or we can simple use a Base Controller. A Base controller can be told as a parent controller from which all other controller will inherit.So in that way Exception handling performed on Base Controller will get applied on all controllers which inherits from this controller.

Chapter1 CSS

CSS (Cascading Style Sheets) is a style sheet language used to describe the display of an HTML or XML document. It allows web developers to control the appearance and layout of multiple web pages at once. Here's a detailed overview of some fundamental CSS properties:

Parameterised constructor in java

A parameterized constructor in Java is a constructor that accepts one or more parameters when creating a class object. These parameters are used to set the values of the object's instance variables.

Create JSON String in C#

JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between multiple systems, mostly in Web APIs and client applications. JSON is a text-based format that is easy for humans to read and write and also easy for machines to parse and generate. It is language-independent, meaning it can be used with any programming language that has the capability to parse JSON data.

Functions In C++

Because there are no library functions with predetermined definitions, a user-defined function is one that is written by the user when writing any application. To fulfill the user's individual needs, the user must create his or her own functions. Such functions must be appropriately defined by the user. There is no such necessity to include any specific library in the program.

Tag or mention people like WhatsApp & Skype by using @ in Angular

Hello guys, often while working with angular js you sometimes have requirement of implementing chat functionality where user can press @ and select users from the list , similar to what we do on skype or all big chatting platforms. For that purpose we can use Angular-mentions which is a package in Angular js for skype like @ chat functionality. We will see how to use that in detail.

Chapter 3 CSS (Define ID in CSS)

In HTML and CSS, an ID (identifier) is a unique attribute used to identify an individual element on a webpage. Each ID must be unique within the document, distinguishing one element from all others.

How to set Date and time format in IIS Manager

Many times you might have got requirement of changing DateTime Format Of your IIS Hosted Web Application.Sometime Date format changes work on LocalHost but on IIS the date format remains same. Select Application Pool Select Project and click on Advanced settingsExpand Process Modal and Select Identity Select Custom Account and Click on set and enter UserName Password(System Credentials) and ok

Form Design In HTML

You can design forms in HTML that let users enter data and send it to a server for processing. You can create forms using a variety of form elements and HTML tags. Here's a simple illustration of how to make a straightforward form in HTML:

Slick Slider

In this tutorial we’ll use slick Slider , A Slick Slider is a popular jQuery plugin, to build an attractive responsive image gallery. Slick.js is a well-known jQuery plugin created by Ken Wheeler that lets you build beautiful responsive carousels. so what I going to do is to create a custom slider one of my favorite slider is the slick slider. You can create a custom slider by following the steps below.

Integrate Stripe Payment Gateway In ASP.NET Core 7.0

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core 7.0 application built with C# . The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Integrate Stripe Payment Gateway In ASP.NET Core 7.0

User-defined data types in java

By defining your own classes, you can produce user-defined data types in Java. These classes let you create unique data structures that encapsulate data and action. Here is how to make a Java user-defined data type:

String Buffer in Java

The String Buffer class in Java provides a modifiable sequence of characters. It is commonly used when you need to dynamically edit strings without continuously generating new objects.

Linked Hashset In Java

The Java Collections Framework's LinkedHashSet is an implementation of the Set interface. It combines the advantages of LinkedList and HashSet. The order in which the elements were added to the set is the iteration order that the LinkedHashSet preserves. It offers constant-time performance for fundamental operations and disallows duplicate elements, just like HashSet.

Array List

In Java, the ArrayList class implements the List interface as a resizable array. It offers dynamic arrays that can expand or contract in size as needed. ArrayLists are a component of the Java Collections Framework and provide a variety of methods for modifying the elements contained in them.

Access Modifiers in Java

In Java, access modifiers are keywords that control the visibility and accessibility of classes, fields, methods, and other members within a class or package.

Classes in C++

In C++, classes are the building blocks of object-oriented programming (OOP). They serve as blueprints or templates for creating objects. Classes define the structure and behavior of objects, encapsulating data (attributes) and functions (methods) that operate on that data.

Method Parameter

They are identify after method name and in the bracket.The information can be given to method as a parameter

Hashmap in Java

HashMap is a component of the Java Collections Framework that implements the Map interface. It offers a key-value pair data structure in which elements are stored as a combination of keys and their corresponding values. HashMap does not support duplicate keys, but it does support mapping multiple values to the same key. It provides constant-time performance for simple operations like as element addition, removal, and retrieval.

String Builder

When you need to manage strings efficiently in Java, you should utilise the StringBuilder class. Unlike the immutable String class, the StringBuilder class allows you to change the contents of a string without creating a new object each time.

NoSuchwindowException in Java

The NoSuchWindowException in Java is an exception that's thrown when a WebDriver (typically from a Selenium framework) tries to switch to a window that does not exist. This usually occurs in web automation scenarios when you're working with multiple browser windows or tabs

Create and publish a package using Visual Studio (.NET Framework, Windows)

Creating a NuGet package from a .NET Framework Class Library involves creating the DLL in Visual Studio on Windows, then using the nuget.exe command-line tool to create and publish the package.

Hangfire in ASP.NET Core 3.1 – Background Jobs

Hangfire is an open-source library to schedule and execute background jobs in .NET applications. You'll be able to create a simple background process inside the same application pool or thread without creating separate applications. Hangfire creates background jobs in persistence storage, like MS SQL Server, Redis, MongoDB, and others, that may prevent you from losing the job on recycling IIS pools or exception prevalence.

Introduction of HTML

HTML (Hypertext Markup Language) is defined as the standard markup language for creating and structuring web pages. It forms the backbone of the World Wide Web and is essential for creating and rendering web content in web browsers. HTML is not a programming language; rather, it is a markup language used to define the structure and content of web documents.

Exception Handling Asp.Net Core

Error Handling in Asp.Net Core has changed a bit from what we used to use in Asp.Net Mvc. Before .Net Core We used to use OnException Methods to handle Exceptions while executing actions But it doesn't' see working in .Net Core as many features are changed.So In this Article we will see how to make exception handling work in Asp.Net Core.

Swich Statement in C

A control structure in C called a switch statement is used to make decisions based on the value of a variable or expression. It enables you to run a block of code connected to the first matching case after testing a variable against a set of values (cases). The switch statement's fundamental grammar is as follows:

Inheritance in C++

Inheritance is a fundamental concept in object-oriented programming, and it allows you to create new classes (derived or subclass) that inherit properties and behaviors from existing classes (base or superclass). In C++, inheritance is a key feature, and it enables you to establish a hierarchy of classes.

do-while loop in C

A do-while loop is a sort of loop construct in C that repeatedly runs a block of code as long as a stated condition is true. The do-while loop, as opposed to the while loop, ensures that the code block is performed at least once, even if the condition is initially false. The basic syntax of a do-while loop in C is as follows:

Implement JWT Token Authentication with Validate and Refresh Token in asp.net mvc

Hello guys in this article we will see how to implement JWT Token Authenticate with Validate Token and Refresh Token automatically . We will create one action filter attribute that will automatically validate all the request and if the token is expired it will refresh the token again.

Call By Value

when a copy of the original value is passed to the function, then it is known as Call by value in C#

Blogs

314

Views

836,015

Downloads

2260

Never study to be successful, study for self-efficiency. Don’t run behind success. Follow behind excellence, success will come all way behind you.

3 Idiots