ItsMyCode
  • How To
  • Python
    • Basics
    • Advanced
    • Built-In Methods
    • Dictionary Methods
    • String Methods
    • List Methods
    • Date and Time
    • Files and Folders
    • Matplotlib
    • Seaborn
    • NumPy
    • Pandas
    • SciPy
    • Errors and Exception
    • Django
  • R
  • Git
  • Powershell
  • Javascript
  • C#
    • Sitecore
  • Node.js
ItsMyCode

Coding Simplified

  • How To
  • Python
    • Basics
    • Advanced
    • Built-In Methods
    • Dictionary Methods
    • String Methods
    • List Methods
    • Date and Time
    • Files and Folders
    • Matplotlib
    • Seaborn
    • NumPy
    • Pandas
    • SciPy
    • Errors and Exception
    • Django
  • R
  • Git
  • Powershell
  • Javascript
  • C#
    • Sitecore
  • Node.js
541
98
0

Home » How To

Browsing Category

How To

91 posts
Remote: Bitbucket Cloud Recently Stopped Supporting Account Passwords For Git Authentication
  • Git
  • How To
  • 3 minute read

[Solved] remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • March 15, 2022
Starting from March 1, 2022, Bitbucket Cloud users will no longer be able to use their account passwords when using Basic authentication for Git over HTTPS and the Bitbucket Cloud…
View Post
[Solved] Err_Http2_Protocol_Error
  • How To
  • General
  • 2 minute read

[Solved] err_http2_protocol_error

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • November 24, 2021
The err_http2_protocol_error occurs for various reasons while using Ng, and it’s one of the most annoying errors that appear all of a sudden either on your browsers such as Chrome,…
View Post
Python Compare Strings A Step-By-Step Guide
  • Python
  • How To
  • 2 minute read

Python Compare Strings: A Step-By-Step Guide

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • November 24, 2021
In Python the strings are compared with == and != operators. These operators compare if the two given strings are equal or not and return true or false based on…
View Post
How To Rename A File In Python
  • Python
  • Files and Folders
  • How To
  • 2 minute read

How to Rename a file in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
The os module in Python comes in handy in performing any file operations such as reading a file, writing into a file etc.. The rename() method is used to rename…
View Post
How To Get File Size In Python
  • Python
  • Files and Folders
  • How To
  • 3 minute read

How to Get File Size in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
There are different ways to get file size in Python. We will be using the os module and the pathlib module to check the file size. OS module in Python…
View Post
Python Write Text File
  • Python
  • Files and Folders
  • How To
  • 4 minute read

Python Write Text File

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
Python provides built-in functions to perform file operations, such as creating, reading, and writing files. There are mainly two types of files that Python can handle, normal text files and…
View Post
Python Read Text File
  • Python
  • Files and Folders
  • How To
  • 4 minute read

Python Read Text file

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
Python provides built-in functions to perform file operations, such as creating, reading, and writing files. There are mainly two types of files that Python can handle, normal text files and…
View Post
How To Copy A File In Python
  • Python
  • Files and Folders
  • How To
  • 3 minute read

How to Copy a File in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
We can copy a file in Python using shutil, os, and subprocess modules. Let’s take a look at each of these modules and the functions it has with examples. Modules…
View Post
How To Create A Directory In Python
  • Python
  • Files and Folders
  • How To
  • 3 minute read

How to Create a Directory in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
The os module is a built-in utility available in both Python 2 and 3 versions, and it provides functions to interact easily with the operating system. The os and os.path modules provide…
View Post
Convert String To Float In Python
  • Python
  • Basics
  • How To
  • 2 minute read

Convert String to Float in Python

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
In this tutorial, we will take a look at how to convert string to float in Python. Convert string to float in Python Usually, in Python, the user input that…
View Post
How To Replace Characters In A String In Python
  • Python
  • Basics
  • How To
  • 1 minute read

How to replace characters in a string in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
If you are looking for replacing instances of a character in a string, Python has a built-in replace() method which does the task for you. The replace method replaces each matching occurrence…
View Post
Python - List Files In A Directory
  • Python
  • Files and Folders
  • How To
  • 2 minute read

Python – List Files in a Directory

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
There are several modules available in Python to list files in a directory or folder. Some of the popular ones we can use are os, pathlib, glob, fnmatch, etc. This…
View Post
Python Convert Bytes To String
  • Python
  • Basics
  • How To
  • 2 minute read

Python Convert Bytes to String

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
In this tutorial, we will take a look at how to convert bytes to string in Python.  We can convert bytes to string using the below methods  Using decode() method…
View Post
Xor In Python
  • Python
  • Built-In Methods
  • How To
  • 1 minute read

XOR in Python

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
XOR Operator in Python is also known as “exclusive or”  that compares two binary numbers bitwise if two bits are identical XOR outputs as 0 and when two bits are different then…
View Post
Python Reverse A List A Step-By-Step Tutorial
  • Python
  • Basics
  • How To
  • 2 minute read

Python Reverse a List: A Step-by-Step Tutorial

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
Reversing a list is a common requirement in any programming language. In this tutorial, we will learn the effective way to reverse a list in Python.  There are 3 ways…
View Post
Python Delete File - Step-By-Step Guide
  • Python
  • Files and Folders
  • How To
  • 3 minute read

Python Delete File – Step-by-Step Guide

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
Python has several built-in modules that allow you to delete a file or remove directories. This tutorial is a step-by-step guide to remove a file or directory using 3 different…
View Post
How To Get File Extension In Python
  • Python
  • Files and Folders
  • How To
  • 2 minute read

How to get file extension in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
In Python, we can extract the file extension using two approaches. Let’s take a look at each of these with examples. Python get file extension using os module splitext() function…
View Post
How To Check And Print Python Version
  • Python
  • Basics
  • How To
  • 1 minute read

How to Check and Print Python Version?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
In this tutorial, you will learn how to print the version of the current Python installation from the script. Print Python Version using sys Module The sys module comes as…
View Post
How To Get Hostname In Python
  • Python
  • Basics
  • How To
  • 2 minute read

How to get hostname in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
There are several ways to get a hostname in Python. The most popular and convenient way is to use the socket module, which provides the BSD socket interface. It’s available…
View Post
How To Generate A Random String Of A Given Length In Python
  • Python
  • Basics
  • How To
  • 2 minute read

How to Generate a random string of a given length in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
In Python, Generating a random string is pretty straightforward. However, there are scenarios where we need to generate a random string that includes alphanumeric characters for a strong password. There…
View Post
How To Round To Two Decimals In Python
  • Python
  • Basics
  • How To
  • 2 minute read

How to round to two decimals in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
This tutorial will learn how to round to two decimals in Python using round() and format() methods. Round to two decimals in Python When you deal with mathematical calculations in…
View Post
How To Find The Length Of List In Python
  • Python
  • Basics
  • How To
  • 2 minute read

Python List length: How to Find Length of List in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
The list in Python is a collection datatype that is ordered and mutable. Lists allow you to store multiple elements in a single variable. A list can have duplicate elements…
View Post
How To Get The Last Element Of A List In Python
  • Python
  • Basics
  • How To
  • 3 minute read

How to Get the Last Element of a List In Python

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
In this tutorial, let us look at the most efficient ways to find the last element in list in Python. What is a List in Python? The list is one…
View Post
How To Check If A File Exists In Python
  • Python
  • Files and Folders
  • How To
  • 2 minute read

How to check if a file exists in Python?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
When you perform a file operation such as reading from a file or writing content to a file, we need to check if a file or directory exists before doing…
View Post
Convert A List To String In Python
  • Python
  • Basics
  • How To
  • 2 minute read

Convert a list to string in Python

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
There are various scenarios where you would need to convert a list in python to a string. We will look into each of these scenarios in depth. Lists are one of…
View Post
Sort Dictionary By Value In Python
  • Python
  • Basics
  • How To
  • 3 minute read

Sort Dictionary by value in Python

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 20, 2022
Dictionary in Python is an unordered collection to store data values in key:value pairs. Since Dictionaries are unordered collections, it is not possible to sort the dictionary in Python. Hence some…
View Post
Fatal: Refusing To Merge Unrelated Histories
  • Git
  • How To
  • 1 minute read

fatal: refusing to merge unrelated histories [Solved]

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 27, 2021
The “fatal: refusing to merge unrelated histories” Git error occurs when two unrelated projects are merged, and two projects are unaware of each other existence and having mismatch commit histories. To provide a little…
View Post
Sitecore
  • Sitecore
  • How To
  • 1 minute read

Optimize Sitecore Media Library and Improve performance

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 29, 2021
Often i get a question asking How do we optimize the Sitecore media library Items and improve the performance of the website. Follow the simple checklist and ensure it is…
View Post
Sitecore Required License Is Missing: Runtime
  • How To
  • Sitecore
  • 2 minute read

Sitecore Required license is missing: Runtime [Solved]

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • September 10, 2021
Sitecore is a paid CMS software that requires a valid license file. When writing the article, Sitecore doesn’t provide any trial or evaluation period to try out and purchase later.…
View Post
Sitecore
  • How To
  • Sitecore
  • 1 minute read

Disable Language Embedding in URLs and Sitecore Links

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
We know that Sitecore is a CMS and it supports multiple languages, hence the generated URL and Sitecore links will have a language appended to it for example(‘en’,’en-US’, etc.,). In this…
View Post
Sitecore
  • How To
  • Sitecore
  • 1 minute read

How to get Sitecore Media image URL in Code

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • January 14, 2022
In many scenarios, we would require Sitecore Image Item absolute URL to bind into the carousel, repeater or any other image component. We may need to read the Image Field…
View Post
Javascript
  • How To
  • Javascript
  • 1 minute read

How to create a JavaScript Dictionary and add key value pairs

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
Dictionary objects are very useful in any programming language. In this article let’s see how to create a JavaScript Dictionary and add key-value pairs. Many programming languages like C# and…
View Post
Sitecore
  • How To
  • Sitecore
  • 2 minute read

How to get the Current Page URL in Sitecore

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
There will be scenarios where you need to restrict/display certain data based on particular URL. In this article let’s take a look at how to get the current page URL…
View Post
Sitecore
  • Sitecore
  • How To
  • Sitecore Tutorial
  • Tutorials
  • 2 minute read

How To Get A Sitecore Items Url?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
In any Sitecore project if we have to link one page to another page we would require a URL of the page. This is one of the common task that…
View Post
Sitecore
  • How To
  • Sitecore
  • Sitecore Tutorial
  • Tutorials
  • 2 minute read

How To Check if The Current Sitecore Page Is the Homepage? 

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
As a Sitecore developer definitely we will come across this scenario where we want to go to the root item that is the home item. In certain situation, we may…
View Post
Sitecore
  • How To
  • Sitecore
  • Sitecore Tutorial
  • Tutorials
  • 2 minute read

How to Schedule Tasks on Sitecore?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
Sitecore has its own task scheduler and we can schedule any tasks or jobs on Sitecore. The approach to schedule tasks on Sitecore is pretty simple. Follow the steps mentioned below…
View Post
Sitecore
  • How To
  • Sitecore
  • 1 minute read

Creating Items from branch template in Sitecore Programmatically

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • November 7, 2021
Branch Templates are mainly used to build the reusable collection of items, or the hierarchy of items. Branch templates are very useful in creating the same structure at any path…
View Post
Sitecore
  • How To
  • Sitecore
  • 3 minute read

Handle any requests and any extensions in Sitecore

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • December 27, 2021
In this article, we will look how to Handle any requests and any extensions in Sitecore without writing any code. With some configuration changes, we could easily allow Sitecore to…
View Post
How To Check If A String Is Null Or Empty In Powershell
  • Powershell
  • How To
  • 2 minute read

How to check if a string is null or empty in PowerShell?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • October 1, 2021
It’s straightforward to check if the string is null or empty in C# and Java. However, in PowerShell, it is slightly tricky as it does not hold a null value.There…
View Post
Sitecore
  • Sitecore
  • How To
  • 2 minute read

Sitecore URL Rewrite and Redirect using IIS rewrite module

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • January 11, 2022
There are many Sitecore URL redirect modules for 301 redirections and URL Rewrite modules in Sitecore Marketplace which you need to install separately. This article demonstrates  Sitecore URL Rewrite and…
View Post
Sitecore
  • Sitecore
  • How To
  • 1 minute read

How do I Access Sitecore settings Programmatically?

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
All the settings of the Sitecore are stored in the config files. Sitecore consists of web.config which stores all the configuration information. Addition to this Sitecore has many config files which…
View Post
Sitecore
  • Javascript
  • How To
  • Sitecore
  • 1 minute read

How to detect Page Editor mode in Sitecore through code

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 26, 2021
f you are a Sitecore developer then definitely in many instances you would need to show or hide some components in the Page Editor mode. So How to detect Page…
View Post
Sitecore
  • How To
  • Sitecore
  • 2 minute read

Handling Multiple Hostnames in Sitecore using Wildcard

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
There will be scenarios where you need to target multiple hostnames to a single website. A typical scenario would be hostname with (www subdomain) and a non-www hostname. For instance : example.com…
View Post
Sitecore
  • How To
  • Sitecore
  • 3 minute read

Dynamically Create robots.txt for Multi-Site in Sitecore

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • January 14, 2022
Sitecore doesn’t give multisite robots.txt out of the box and we need to build this functionality from scratch. In this article, we will learn How to Dynamically Create robots.txt for Multi-Site…
View Post
How To Get An Md5 Checksum In Powershell
  • How To
  • Powershell
  • 2 minute read

How to get an MD5 checksum in PowerShell

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • February 1, 2022
In this article, We will learn How to Generate an MD5 checksum in PowerShell Script. Before that let’s take a look at what exactly is MD5 checksum and why do…
View Post
Pass Command Line Arguments In Powershell Script
  • How To
  • Powershell
  • 2 minute read

Pass Command Line Arguments in PowerShell Script

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • February 1, 2022
PowerShell provides an efficient way to pass command-line arguments by using parameters inside a PowerShell script. PowerShell comes up with a param statement that can be used at the beginning of…
View Post
Node.js
  • Node.js
  • How To
  • 2 minute read

Creating Node.js First Application

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
In this tutorial let us look into how to create the application in Node.js. Basically, there are 3 simple steps to create this simple node.js application. Import Required Modules –…
View Post
Node.js
  • Node.js
  • How To
  • 3 minute read

Node.js Environment Setup

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • August 25, 2021
It’s very easy to setup and configure Node.js Environment on your local machine. There is 2 main software you would require to install to start working on Node.js. The first…
View Post
Sitecore
  • Sitecore
  • How To
  • 2 minute read

Remove Language version of Sitecore Items

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • December 27, 2021
Many times you will come across scenarios where you need to remove specific language version of Sitecore items. Mostly in the multilingual websites, we do come across this kind of…
View Post
Powershell Concatenate String
  • How To
  • Powershell
  • 2 minute read

PowerShell Concatenate String

  • Avatar Of Srinivas RamakrishnaSrinivas Ramakrishna
  • February 1, 2022
Microsft PowerShell scripting is little different from the other Programming languages. In most of the programming languages to concatenate a string you will use the operator “+” but in PowerShell, this…
View Post

Posts navigation

1 2 Next
  • Metrics Converter
  • Sitemap
  • Privacy Policy
  • Cookie Policy
  • Contact Us
541
98
0
0
ItsMyCode
Copyright © 2022· All Rights Reserved