Posts by Faruque Ahamed Mollick

Author Biographical Info: Not available

Handle broken image URL on our web page in jQuery

By Faruque Ahamed Mollick

We generally show images on the web page using HTML img tag. In the HTML image tag, we have to pass the image URL into the “src” attribute. But when the image on that .... Read More

Tuples in Python with examples

By Faruque Ahamed Mollick

A Tuple in Python is a collection of immutable objects that are separated by commas. Here immutable objects mean those objects that can’t be changed or update. Tuples in Pyth.... Read More

Python | Select a random item from a list in Python

By Faruque Ahamed Mollick

Here in this article, I am going to let you know how to select a random item from a list and get its value in Python. I am going to show the easiest way of getting a random item fr.... Read More

Get a random item from an array in JavaScript

By Faruque Ahamed Mollick

Suppose we have an array in JavaScript. Now we have to get a random item from our array. An array will allow you to store multiple values in a single variable. Here I am going to s.... Read More

Get each item from a JavaScript array

By Faruque Ahamed Mollick

Arrays in JavaScript are used to store multiple values in a single variable. If you have a list of items, then you can use an array to easily store it instead of using multiple va.... Read More

How to print each item from a Python list?

By Faruque Ahamed Mollick

A list in Python may look similar like an array. A list is a collection that is ordered and also changeable. In Python programming language, lists are written with square brackets..... Read More

Preview image before uploading in jQuery

By Faruque Ahamed Mollick

I hope you are familiar with the HTML file input field. From the file input field, users can choose any file that needs to be uploaded. Did you ever think of how it was if the user.... Read More

Convert RGB to Binary Image in Python (Black and White)

By Faruque Ahamed Mollick

A binary image is the type of image where each pixel is black or white. You can also say the pixels as 0 or 1 value. Here 0 represents black and 1 represents a white pixel. I often.... Read More