8 Reasons Why Laravel Is the Best PHP Framework For 2023

Laravel is a PHP web application framework that has been gaining popularity over the years. It is a free, open-source framework that provides a wide range of tools and features for developing modern web applications. In this article, we will discuss the 8 reasons why Laravel is the best PHP framework for 2023. Modular architecture … Read more

Mongodb Instance is failed to get started on Debian – with error : {“error”:{“code”:9001,”codeName”:”SocketException”,”errmsg”:”Cannot assign requested address”}}}

Mongodb 5.0 is is getting started with sudo systemctl start mongod.service on Debian 10 . Issue Below error is being raised while starting the mongodb instance 5.0 on Linux/Debian – :{“error”:{“code”:9001,”codeName”:”SocketException”,”errmsg”:”Cannot assign requested address”}}} Root Cause This error is being raised when server is not able to identify the hostname and port i.e. address.  This … Read more

How to Connect to Mongodb database server Locally and Remote

As per mongodb documentation, we can use the mongo command to access the database using below command – Connect to mongodb database locally $ mongo -u user1 -p password123 –authenticationDatabase admin mongo -u user 127.0.0.1/admin Connect to mongodb database Remotely To connect to mongo database remotely we need below steps – 1. you should have … Read more

Content of mongod.service file for mongod service for Red Hat Enterprise Linux or Cent OS

Please find the content of mongod.service file which needs to be created for starting mongod service.   [Unit] Description=MongoDB Database Server Documentation=https://docs.mongodb.org/manual After=network-online.target Wants=network-online.target [Service] User=mongod Group=mongod Environment=”OPTIONS=-f /etc/mongod.conf” EnvironmentFile=-/etc/sysconfig/mongod ExecStart=/usr/bin/mongod $OPTIONS ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb PermissionsStartOnly=true PIDFile=/var/run/mongodb/mongod.pid Type=forking # file size LimitFSIZE=infinity # cpu time LimitCPU=infinity # virtual memory … Read more

Top 10 Python Basic Programs – Most Common Tutorials

Top 10 Python Basic Programs – Most Common Tutorials Here is the list of programs Leap Year Check year= 2000 if (year % 4) == 0: if (year % 100) == 0: if (year % 400) == 0: print(“{0} is a leap year”.format(year)) else: print(“{0} is not a leap year”.format(year)) else: print(“{0} is a leap … Read more

Linked List Program in Python – Create Linked List, Add Node, Iterrate and Print Data

Lets try to create Linked List in Python as part of out Data structure Tutorial. Problem Statement  Create Linked List Basic Program in Python. Solution Lets understand the Very basic about Linked List – Linked List are dynamic array type data structure where nodes and allocated on the fly i.e. dynamically and address/link or next … Read more

Reverse Digits of an integer – Python Program – One of Most Common Interview Question

Python program to reverse a number, reverse digits of a number, reverse integer, python programs, python programs to reverse a number, basic python programs. Reverse Digits of an integer –  One of Most Common Interview Question Problem  – Write a Python program to reverse digits of an integer. Example 1 : Input : 123, Output … Read more

Python List Examples – How to Concatenate Two or more Lists in Python

In this post we will see how to merge two or more lists in python – various list examples. Method 1 -Concatenate Two or more Lists in Python Lets take example of two list as follow – List1 = [1,2,3,4,5] List2 = [6,7,8,9] Output after merging two list should be –   CombinedList = [ … Read more

Python Tutorial : Getting started with Python Programming

In this post we will learn about history of Python Language and introduction to Python , way for writing programs  Introduction to Python – History, IDE, Syntax Guido Van Rossum invented the python programming language in 1990’s.it is a high level language for solving problems on modern computer systems. here program can run on any … Read more

Diagonal Traversal of Binary Tree – Print Data Diagonally ( Algorithm with Java Code )

Objective :  We are given a binary tree we need to print the data of tree diagonally , it is also know as Diagonal Tree Traversal. Sample Input : Let us consider the below tree 1 3           2 6.   8  5.          4 9    7     Out Put :  We … Read more

%d bloggers like this: