Posts

Showing posts from August, 2024

Activate Python Virtual Environment to keep each project using separate Packages

Image
Activate python terminal virtual environment When you're working on multiple Python projects, it's really important to keep the different packages (or dependencies) for each project separate. This is because sometimes, one project might need a different version of a package than another project. If you don't separate them, things can get mixed up and cause problems. In other programming languages like Java with Maven or JavaScript with Node.js, you don't really have to worry about this because they handle it automatically. But in Python, you need to use something called a virtual environment for each project. Here’s how you can do it: 1. Create a virtual environment for your project by opening your terminal (or command prompt) and typing: python -m venv myenv Replace "myenv" with whatever name you want to give your virtual environment. 2. Activate the virtual environment: - On Windows, type: myenv\Scripts\activate - On macOS and Linux, type: so...

Allow PS1 Scripts Execution on Windows Terminal PowerShell

Image
Windows Terminal PowerShell To allow the execution of scripts ( .ps1 files) on your system, you'll need to change the execution policy. You can do this by running as an Administrator and using the following command: 1. Open as Administrator: - Press Win + X and select Windows (Admin) or Windows Terminal (Admin) if you're on a newer version of Windows. 2. Change Execution Policy: - To allow the execution of scripts, run: Set-ExecutionPolicy RemoteSigned - This policy allows scripts created on your local computer to run, but scripts downloaded from the internet must be signed by a trusted publisher. 3. Confirm the Change: - will prompt you to confirm the change. Type Y and press Enter to proceed. I think Windows is the best operating system because it's super easy to use, and most people are already familiar with it. Plus, it runs all kinds of programs, from games to school stuff. Now, they've got this new thing called Microsoft Windows Terminal. It...

Introducing Kafka Web Client: A User-Friendly Interface for Kafka Clusters

Image
Kafka explorer web client Hey everyone! I’m super excited to share with you a project I’ve been working on – the Kafka Web Client ! It’s a web-based tool that makes it easier to connect with Kafka clusters, send messages, and listen to topics. If you’ve ever worked with Kafka, you know it can be a bit tricky, but this client aims to make everything a whole lot simpler with a clean and responsive UI. What is Kafka Web Client? The Kafka Web Client is like a bridge between you and your Kafka brokers. It gives you a neat, user-friendly interface where you can easily connect to Kafka brokers, send messages to topics, and even listen to real-time messages as they come in. It’s built using some awesome technologies like Express , Kafka-Node , Socket.io , and SQLite on the backend, and Tailwind CSS and jQuery on the frontend. Cool Features You’ll Love Here’s a quick look at some of the neat features: - Connect to Kafka Brokers : You can manage connections to different Kafka broker...

JavaScript Code to Migrate Your Blogger Content to SQL

Image
Export blogger post to MySQL Are you thinking about moving your blog from Blogger to something more powerful? We’ve got something new called Blogger to SQL Dump that can help make this change super easy! What is Blogger to SQL Dump? Blogger to SQL Dump is a handy tool made with Node.js. It lets you log in with your Google account, pick any of your Blogger blogs, and turn all your blog posts into an SQL file. This is really useful if you want to move your blog to platforms like WordPress, Drupal, or even your own website with a database. Cool Features - Safe Google Log-in : You can log in securely with your Google account to see your blogs. - All Your Blogs in One Place : You can see all your Blogger blogs and pick which one you want to export. - Easy Export : With just one click, you can download all your blog posts as an SQL file, ready to go into your new website. - Simple to Use : The tool has a clear and easy-to-use interface, so you won’t get lost! Why Use Blogger to SQL Dump? M...

How to make shortcut key Ctrl + Alt + T to open Windows terminal

Image
Windows Desktop Shortcut Today, I'm going to share a cool trick on how to open the Windows Terminal using only shortcut keys! We’re going to set the shortcut as Ctrl + Alt + T so you can do it super fast without touching the mouse. Here's how you can do it: 1. Create a Shortcut for Windows Terminal ( wt.exe ): - Right-click on your desktop or in a folder where you want the shortcut. - Select New > Shortcut. In the location field, enter the path to wt.exe: Copy file path: C:\Users\YOUR_USER_NAME\AppData\Local\Microsoft\WindowsApps\wt.exe OR C:\Windows\System32\wt.exe - Click Next, then name the shortcut (e.g., "Windows Terminal"). - Click Finish to create the shortcut. 2. Assign Ctrl + Alt + T to the Shortcut: - Right-click the shortcut you just created and select Properties. - In the Shortcut tab, find the Shortcut key field. - Click inside the field and press Ctrl + Alt + T on your keyboard. This will automatically set the shortcut key to Ctrl ...

How to Switch Between Account in Google Platform: Drive, Docs, YouTube, Gmail

Image
Google Products We use Google a lot, becoming increasingly dependent on their services. Google offers many web-based platforms, such as Google Docs, which can replace Microsoft Office. Often, we have more than one Google account – one for work and another for personal use. It's not convenient to have them running on the same browser, but there's a trick to switch between those accounts. The trick lies in the URL. When you open Google Docs, you'll notice the URL https://docs.google.com/u/0 . By changing the 0 to 1, the URL becomes https://docs.google.com/u/1 , and it will switch to your second account. If you have a third account, change the 1 to 2, and continue increasing the number for additional accounts. The number in the URL ( u/0/ or u/1/ ) represents the user account context within the Google Docs environment. Google allows users to be signed in to multiple Google accounts simultaneously in a single browser session. The number indicates which user account is ...

The World is Destroyed by The Apps and The Internet

Image
Dystopian future on earth and the doom of humanity As a developer, I've been reflecting on the impact of apps, social media, and the internet in general, and sometimes it feels like the negative aspects outweigh the positives. While software can indeed help people, it often seems like its benefits primarily serve those who are already well-off, making the rich richer and widening the gap between the wealthy and the poor. Software doesn't alleviate poverty or end world hunger. Its impact is more about providing conveniences to those who can afford them, rather than creating substantial change for those in need.  Moreover, software can sometimes divide us as social creatures. People might become more selfish, spending time on distracting entertainment apps instead of engaging in real communication. It also provides a platform for bad actors to spread propaganda and misinformation. Social media Influencers Recently, I've come across some revelations about Mr. Beast, one of the...

Change GitLab Account on your local Git configuration on Windows

Image
The amazing Gitlab Recently, I created a new GitLab account and wanted to switch to it on my local machine. When pushing to a remote repository, the credentials from the first account are still being used. Typically, you need to remove the old user credentials and then authorize the new account. Here's how to do that on Windows. 1. Remove Stored Credentials If you've been using HTTPS for authentication, your credentials might be stored in the Windows Credential Manager. Removing these old credentials is the first step to ensure that your local machine asks for the new ones. Using Windows Credential Manager Open Credential Manager: Press Win + S , type "Credential Manager" and open it. Find GitLab Credentials: Navigate to the "Windows Credentials" tab and look for entries related to GitLab, which are likely named something like git:https://gitlab.com . Remove these entries to delete the stored credentials. Remove these credentials 2. Update Git Use...

Popular posts from this blog

ERROR 1348 Column Password Is Not Updatable When Updating MySQL Root Password

How To Create Spring Boot Project Using Netbeans

Spring Kafka - How to use ReplyingKafkaTemplate send and reply synchronously