This is an excerpt, please read the whole article here:
https://wasi0013.com/2019/12/26/tweaking-data-personalization-settings-of-your-google-account-to-minimize-your-shared-data/

Ever wondered how Google knows what you are looking for? Or, had a creepy feeling that Google knows more about you than you know yourself? If so, read on!

Download & Backup all your Google Data

Before, I begin, I think it will be fun to know, what data Google already collected about you. Your daily activities in Google Products can be seen here:

https://myactivity.google.com/myactivity

If you use Android/Apple or any smart devices with Google sign in their app activities will also get listed here!

You can also download all of your Google Data and create…


This is an excerpt. Please, read the Full Article here:

https://wasi0013.com/2019/10/04/how-to-download-a-file-from-a-website-link-using-python-script-or-code-snippet/

In this article, I’m going to demonstrate some code snippets that you can utilize to download files from the Internet using Python. I’m assuming you have a strong basic knowledge of python. I’m going to use some python libraries that are available on the python package index (pip). The codes given in this tutorial is written using Python 3 and tested on a Linux machine. Since it is written in python it should work on other Operating Systems as well.

Download Small File Using Requests

If you are downloading tiny files you can simply…


‘ভালো প্রোগ্রামিং কি?’ — এ নিয়ে দু’টি কথা

This article was originally posted in my personal blog. You can find the English version here

প্রোগ্রাম সবাই লিখে, বিশেষ করে আমরা যারা কম্পিউটার সায়েন্স কিংবা ওয়েব ডিজাইন ও ডেভেলপমেন্ট এর সাথে জড়িত তাঁরা সবাই কম বেশী প্রোগ্রামিং করে থাকি। তবে, ভালো প্রোগ্রাম লিখতে কিন্তু সবাই পারে না।

এর অন্যতম কারণ হলো ভালো কোড লিখতে হলে সময় ও রিসোর্স লাগে। কিন্তু প্রায়শঃ বিভিন্ন কোম্পানীতে কিংবা কর্মক্ষেত্রে এই বাড়তি সময় ব্যয়কে অপচয় মনে করা হয়। মজার ব্যাপার হলো — দেখতে ও পড়তে বিশ্রী এমন কোড দিয়েও কিন্তু দিব্যি কাজ চালিয়ে নেয়া যায়। যেটা ঐ সব ক্ষেত্রে, ঋণাত্মক প্রভাবকের ভূমিকা পালন করে।…


image collected from awesome content/freepik

In this article, I’m gonna talk about four python books that I found extremely helpful to harness the power of python.

If you are just getting started with Python, I will suggest you to buy and read them sequentially.

  • Start with python doc it’s free!
    Python’s Documentation is well maintained. It even contains tutorials that will help you to get familiarize with basic python syntax. Whenever you are stuck it is always a good idea to check out the docs first. As most of the time, you will find whatever you are looking for within the python doc!
  • Automate the…


For last couple of years or so, I extensively used virtualenv for maintaining a sand boxed environment for my Python projects with all the dependencies. I followed the typical pattern consisting of creating requirements.txt and updating it time to time by pip freeze > requirements.txt.

It enables you to experiment with different python modules without making changes to system. For any projects, all you have to do is create an environment first! using virtualenv command (Of course, you will have to install it first, if you don’t have it already).

virtualenv -p <your_python_path> <virtual_environment_name>

e.g

virtualenv -p /usr/bin/python3.6 .env

After…


In this article, I will share 5 simple tips that will help you to improve automation of your web scraping bot or crawler that you wrote using python selenium. But, first let me briefly introduce you with python’s selenium module in case, if you are not familiar with it:

It is actually a python binding for the API of Selenium Web Drivers. For example, you will be able to conveniently access the API of Selenium Web drivers like Firefox, Chrome, PhantomJS, etc. Using this module, you can use web driver API to simulate all sorts of actions that you can…


In this article, I’m gonna write about the fastest way that I’ve discovered so far to backup and restore a Postgresql database using terminal (that worked for me)
I’m using Ubuntu 16.04 LTS for this tutorial, and I already have postgresql along with pgadmin III installed. Although, it is not required to have pgadmin III installed in your machine. I’m just gonna create a new db with it so no big deal. You can do it with a simple psql command if you don’t have pgadmin III.

Backup A Postgres DB:

I prefer pg_dump command for this part. I open up my terminal change…


Making a Stand Alone Executable from a Python Script using PyInstaller

This article is also available in English. Please, click here to read the English version.

পাইথন স্ক্রিপ্টকে এক্সিকিউটেবলে রূপান্তর করার অনেক গুলো উপায় রয়েছে। উদাহরণ স্বরূপ নিচের মডিউলগুলো চেক করুন:

পাইথন ২ স্ক্রিপ্ট এর জন্যে আমি py2exe ব্যবহার করতাম। ছোটখাটো স্ক্রিপ্টকে খুব সহজেই এক্সিকিউটেবল এ কনভার্ট করার জন্যে খুবই কার্যকরী একটি টুল এটা। কিন্তু একটাই সমস্যা, এটা শুধু পাইথন ২ সাপোর্ট করতো! তাই, আমি পাইইন্সটলার এ সুইচ করি। যদিও, py2exe এখন পাইথন ৩ সাপোর্ট করা শুরু করেছে, py2exe নিয়ে আরেকটি আর্টিকেল লেখার ইচ্ছে আছে তবে সেটি আরেকদিন।

এই আর্টিকেলটি পাইন্সটলারের জন্যেই নিবেদিত। অসাধারণ এটুলটি স্পেশালি উইন্ডোজ ইউজারদের জন্যে…


Problem Description: I don’t know how but, all my desktop icons and files disappeared. Also, the desktop became non-clickable. Rebooting didn’t fix it. The files were accessible via nautilus / File Manager.

Solution: I tried many things and failed. Then my intuition started to tingle and say something is wrong with the cache… So I thought of deleting the cache. Removing the desktop sessions stored in the .cache of my home folder and then logging out of the system I logged in and it worked like a charm!


Found a pretty neat solution for changing screen brightness from terminal. Just open up, your terminal (ctrl+alt+t) and then type

xbacklight -set 100

It will set your screen brightness to 100%. You can set any value ranging from 0 to 100. If you don’t have xbacklight package pre-installed then fetch it using the apt:

sudo apt update
sudo apt install xbacklight

There you go! Now you can use xbacklight from terminal. Simple! isn’t it?

Change Screen Brightness using xbacklight from terminal (Ubuntu 16.04 LTS)

Note: I have tested it on Ubuntu 16.04 LTS. But, it should work on other Linux distributions as well. Also, don’t hesitate to suggest/comment other ways to change brightness that you prefer(if there any) !

ওয়াসী (Wasi)

CEO Founder, Dreamcatcher IT

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store