Author Archives: Gurmeet Singh

Integer To String Conversion

Integer To String Conversion

This is a quick tutorial on how you can convert from int data type to string data type in C++, Java, Python, PHP, JavaScript, Swift, and C#. Int To String Conversion In Different Programming Languages Integer to String Conversion is one of the most basic aspects of programming that you might have ever needed at […]

How To Get Substring Of A String In Python?

Generate Substrings Python

This is a quick tutorial on how you can generate different types of substrings from an existing string in python using string slicing method. Getting Different Substrings Of A String In Python Consider the following code. I’ve stored my name into a string variable fullString. Now, the following lines of code illustrate how you can […]

Add Text To Image In PHP (Using GD Library)

Add Text To Image With PHP Using GD Library

This is a detailed tutorial on how you can add text to image in PHP using the GD library. It allows writing any text with any font on any image background. This is also one of my favorite topics in PHP. This thing has once helped me in generating thousands of images for a website […]

<, >, ≤ and ≥ Symbols – Usage & Meaning

<, >, ≤ And ≥ Symbols

This article explains the meaning of &lt;, &gt;, &le; and &ge; symbols in HTML. Find out why they are used and when you should use them and how. Meaning Symbol Meaning &lt; Less-Than Sign (<) &gt; Greater-Than Sign (>) &le; Less-than or Equals sign ( ≤ ) &ge; Greater-than or Equals sign ( ≥ ) […]

Iterate JavaScript Array In Different Ways

JavaScript Array Iteration

This is a quick tutorial explaining different ways to loop through an array in JavaScript. It’s for all people looking for a foreach loop in JavaScript. Well, most of the people find themselves in trouble when asked for a JavaScript Array Iteration. Unlike most of the other programming languages, looping through an array in Javascript […]

How To Get Current Time In Python?

Get Current Time In Python

This is a quick tutorial on how to get the current time in python. The most common and simplest ways to get time in python are discussed here with examples. Using the datetime package Python comes with a pre-installed datetime package. All you need to do is to import this package in your python program […]

Rename Git Branch – Locally & Remotely

Rename Git Branch Locally & Remotely

This is a quick tutorial on how you can rename a git branch locally as well as remotely. First, you have to rename it locally and the have to push the changes to the remote repository. Renaming Local Git Branch If you want to rename the current local branch, use the following git branch command. […]

How To Upgrade A Python Package With PIP?

Python PIP Upgrade Or Update Package

This is a Quick Tutorial on how you can easily update or upgrade already installed python packages using pip. Just run this single line command. pip install [package_name] –upgrade or Shortly, pip install [package_name] -U Example. pip install bs4 –upgrade or pip install bs4 –U Here, bs4 is the pip directory name of the module […]

Octal To Decimal Conversion In Python

Octal Decimal Conversion Python

This is a quick tutorial on how you can convert an octal number to decimal in Python. The vice-versa i.e. Decimal To Octal Conversion in Python is also explained. Octal To Decimal Conversion You can use the int function in python with base 8 to convert an octal number to its decimal form. The syntax […]