Index | Code2night.com

Latest Blog

Introduction in C++

C++ is a powerful, high-level programming language that is widely used for developing a wide range of applications, from system software to video games and web applications. It was developed as an extension of the C programming language and introduced several features that make it a versatile and efficient language for software development.

Chapter-1 (Introduction of C)

C is a general-purpose, procedural programming language created by Dennis Ritchie at Bell Labs in the early 1970s. It was designed to be a system programming language and eventually became widely used due to its power, flexibility, and efficiency. Here are some key aspects and features of the C programming language:

How to To Resolve ArithmeticException occur in java

In Java, the ArithmeticException is a subclass of the RuntimeException class. It is thrown when an arithmetic operation fails or produces an incorrect result. One of the most common causes of an ArithmeticException is attempting to divide by zero.

How to Create Subscriptions in Paypal in Asp.Net Core

In this article, we'll dive into integrating PayPal subscriptions into an ASP.NET Core application. PayPal offers a robust API that allows developers to create and manage subscription plans seamlessly. We'll walk through a sample code snippet that demonstrates how to create a subscription plan, add a product, and initiate a subscription for a user.

Control Statements in C

In C, control statements are used to control the flow of program execution based on certain conditions or loops. These statements allow you to make decisions and repeat actions in your code

LINQ

LINQ (Language Integrated Query) is a feature in C# that allows us to perform queries against data sources, which can be arrays, collections, or any type of databases, using a SQL-like syntax. In this article, we will cover some basic concepts and functionalitites of LINQ and learn how to use it in your C# application

if Statement

If statement will execute a block of code if the given condition is true. The if statement checks a Boolean expression and executes the code based on if the expression is true

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.

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.

C# collection

For many applications, you want to create and manage groups of related objects. There are two ways to group objects: by creating arrays of objects, and by creating collections of objects. Arrays are most useful for creating and working with a fixed number of strongly typed objects. For information about arrays, see Arrays.

Vector In Java

A dynamic array implementation that is a part of the Java Collections Framework is the Vector class in Java. It offers a resizable array that can expand or contract as necessary. Similar to ArrayLists, vectors are thread-safe for use in multi-threaded situations since they are synchronised.

String Joiner

The String Joiner class in Java makes it easy to connect several strings with a defined delimiter. It is very useful for concatenating strings in a loop or dealing with string collections.

App Trim in .NET Core

In ASP.NET Core, App Trim refers to a feature that automatically removes unused assemblies from the application's memory during runtime. This helps to reduce the memory footprint of the application and improve its overall performance.

Inheritance

Inheritance is the concept that is used for code reusability and changeability purpose.

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

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.

Method Overriding in Java

Overriding methods is a key idea in Java object-oriented programming. It enables a subclass to provide a particular implementation of a method defined in the superclass. When you override a method, you replace the superclass's inherited implementation with your own version in the subclass. This allows for polymorphism and dynamic method dispatch.

LinkedHashMap in Java

Java includes a number of data structures for storing and manipulating collections of objects. The 'LinkedHashMap' class, which is an extension of the 'HashMap' class, is one of the important classes in the Java Collections Framework. LinkedHashMap, unlike HashMap, preserves the order of its items depending on the insertion order, making it helpful in cases where the order of components must be maintained based on their arrival time.

Linked List In Java

In Java, the LinkedList class implements the List interface and provides a doubly-linked list data structure. It provides a versatile means of storing and manipulating a collection of items. A LinkedList, unlike an ArrayList, uses references to connect components rather than contiguous memory allocation.

Template in C++

Templates in C++ allow you to construct generic code that can deal with multiple data types without having to replicate the code for each one. In C++, templates are fundamental for constructing flexible and reusable classes and functions. In C++, there are two types of templates: function templates and class templates.

foreach Loop

The foreach loop in C# executes a block of code on each element in an array or a collection of items. When executing foreach loop it traversing items in a collection or an array. The foreach loop is useful for traversing each item in an array or a collection of items and displayed one by one. the foreach loop when working with arrays and collections to iterate through the items of arrays/collections. The foreach loop iterates through each item hence called foreach loop.

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

Integrating Google reCAPTCHA Validation in ASP.NET MVC

In today's digital landscape, security is paramount for any web application. One effective way to enhance security and protect against bots is by integrating Google reCAPTCHA. reCAPTCHA is a free service provided by Google that helps to distinguish between human and automated traffic on websites. In this article, we'll explore how to integrate Google reCAPTCHA into an ASP.NET MVC application.

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:

How to fix CWE-23 Path Traversal vulnerability (Snyk)

Hello guys, in this article we will see how to fix CWE-23 Path Traversal vulnerability Unsanitized input from an HTTP parameter flows into global::System.IO.Directory.CreateDirectory, where it is used as a path. This may result in a Path Traversal vulnerability and allow an attacker to create arbitrary directories when we scan our code with snyk.

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:

Default constructor in java

A default constructor in Java is one that is provided by the Java compiler if no other constructors are explicitly defined in a class. The default constructor takes no arguments and is in charge of setting the object's fields to default values.

Input/Output Statements in C++

In C++, input and output operations are commonly performed using the Standard Input/Output Library, which includes the <iostream> header. This library provides the 'cin' and 'cout' objects for reading input and displaying output, respectively.

2-D Array in C

A two-dimensional (2D) array is an arrangement of items in C that are arranged in a grid and are individually identified by a pair of indices: a row index and a column index. A 2D array can be compared to a table or matrix that has rows and columns. A 2D array in C is declared, initialised, and used as follows:

Real Time Chat using SignalR with .Net core and Vue.js

Hello guys, We often found ourself in the need of a realtime chat app . For two way communication in your webapp. We will see how to implement real time chat using SignalR with .Net core and Vue.js. SignalR is basically used for any sort of realtime functionalities. We will use .Net core for managing chathub . You can see complete steps in the article.

Integrate Stripe Payment Gateway In ASP.NET Core 8.0

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core 8.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 8.0

Blogs

318

Views

1,091,205

Downloads

2564

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