Posts by Faruque Ahamed Mollick

Author Biographical Info:

Preview image before uploading with HTML file input field 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

Get time difference between two times in PHP using DateTime class

By Faruque Ahamed Mollick

Today in this post, we are going to see how to calculate and then get the time difference between two times in PHP. You may notice on social media network like Facebook shows a pos.... Read More

Display HTML code on web page in PHP

By Faruque Ahamed Mollick

Many of newbies PHP developers find that when they try to show HTML code on the web page using print or echo, the browser will convert the code, run it and output the HTML instead .... Read More

Bind a function to a Tkinter button – Python GUI

By Faruque Ahamed Mollick

In this post, I am going to tell you how to bind a function to a Tkinter button. That means we will see how to add an event to the button. So let’s begin… Adding an eve.... Read More

Separate textarea value per line in PHP after submitting HTML form

By Faruque Ahamed Mollick

Suppose you have an HTML form and the form contains a textarea. Now you want to get each line of the textarea content and process them separately in PHP for some purpose. So you ha.... Read More

Play mp3 audio in Python

By Faruque Ahamed Mollick

When we install Python on our windows system, it already contains the winsound which will able to play sound. But it only able to play sound with “.wav” extension and i.... Read More

Get maximum and minimum number from a list in Python

By Faruque Ahamed Mollick

Today in this Python related post, I am going to show you how we can get the maximum and minimum number from a list. For example, suppose, we have a list in Python that is given be.... Read More