Skip to main content

Posts

Showing posts from April, 2023

How to use ChatGPT in Whatsapp

ChatGPT is a powerful natural language generation model that can create realistic and engaging text from a given prompt. It can be used for various purposes, such as writing stories, jokes, lyrics, code, and more. But did you know that you can also use chatGPT to spice up your whatsapp conversations? In this blog post, I will show you how you can make chatGPT work in your whatsapp using a simple Python script. You will need some basic programming skills and a few tools to get started. Here are the steps: 1. Install the required libraries. You will need to install the transformers library from Hugging Face, which provides an easy way to access chatGPT and other pre-trained models. You will also need to install selenium, which is a tool for automating web browsers. You can use pip to install them: pip install transformers pip install selenium 2. Load the chatGPT model and tokenizer. You can use the transformers library to load the chatGPT model and tokenizer with a few lines of code. You

How to create a 3d Rubic's cube in python using tkinter

 In this blog post, I will show you how to create a 3d rubic's cube in python using tkinter, a standard GUI library for python. Tkinter provides various widgets and methods to create graphical user interfaces. A 3d rubic's cube is a popular puzzle game that consists of a cube with six faces, each divided into nine smaller squares of different colors. The goal is to rotate the faces of the cube until each face has only one color. To create a 3d rubic's cube in python using tkinter, we will need to use the following steps: 1. Import the tkinter module and create a root window. 2. Create a canvas widget to draw the cube on. 3. Define the coordinates and colors of the vertices and faces of the cube. 4. Define a function to draw the cube on the canvas using polygons. 5. Define a function to rotate the cube along the x, y or z axis using matrix multiplication. 6. Define a function to handle keyboard events and call the rotation function accordingly. 7. Bind the keyboard events to

How to create a simple CLI password manager using python with encryption

Password managers are useful tools that help you store and manage your passwords securely. They can also generate strong and random passwords for you, so you don't have to remember them or use the same password for multiple accounts. However, some people may not trust third-party password managers or may want to have more control over their own data. In this blog post, I will show you how to create a simple command-line interface (CLI) password manager using python with encryption. The basic idea is to use a python module called cryptography to encrypt and decrypt your passwords using a master password that only you know. You will also use another module called click to create a user-friendly CLI that allows you to add, update, delete and view your passwords. The passwords will be stored in a JSON file that will be encrypted and decrypted on the fly. To get started, you will need to install the cryptography and click modules using pip: pip install cryptography click ``` Then, you w