• Home
  • About Me
  • Privacy Policy
  • Hire me (FullStack Stack Developer)

Bhawani Blog

Menu
  • Home
  • About Me
  • Privacy Policy
  • Hire me (FullStack Stack Developer)
Home  /  Uncategorized  /  Tips & Tricks PART – 1
17 January 2024

Tips & Tricks PART – 1

Written by Bhawani Shankar
Avatar photo
Uncategorized 2 Comments

Introduction:

Hey developers! Ready for some awesome tricks to make your coding life easier?
Today, I’ve got some cool stuff to share that might speed up your development.

1. Flutter Screenshots

If you’re into Flutter, we’ve got a neat trick for you. Use this command to grab a screenshot of your running device which can be your physical device, emulator, simulator

2. SCRCPY -Vysor Alternative

Scrcpy is an open-source application that allows you to display and control Android devices connected to your computer via USB or over a TCP/IP connection. The name “scrcpy” is derived from “screen copy.” It provides a way to mirror your Android device’s screen on your computer and control it using the mouse and keyboard.

Both scrcpy and Vysor are tools designed for screen mirroring and controlling Android devices from a computer. While they share some similarities, they also have differences in terms of features, usage, and licensing. Here are some key features and considerations for both scrcpy and Vysor:

SCRCPY:

  1. Open Source: Scrcpy is an open-source project, which means it is freely available, and users can access and modify its source code.
  2. Low Latency: Scrcpy is known for its low-latency screen mirroring, providing a responsive and smooth experience.
  3. High Quality: It mirrors the Android device’s screen in high quality, allowing for clear visibility and effective control.
  4. Cross-Platform: Scrcpy is compatible with Windows, macOS, and Linux, making it a versatile solution for users on different operating systems.
  5. No Root Required: Scrcpy does not require the Android device to be rooted; it uses Android Debug Bridge (ADB) for connection.

VYSOR:

  1. User Interface: Vysor typically comes with a graphical user interface (GUI) that makes it user-friendly and easy to operate for those who prefer a point-and-click approach.
  2. USB and Wireless Connection: Vysor supports both USB and wireless connections for screen mirroring and control.
  3. Free and Paid Versions: Vysor offers both free and paid versions. The free version may have limitations, while the paid version may include additional features.
  4. Root Access for Full Control: Some advanced features in Vysor, such as controlling certain aspects of the device, may require root access.
  5. Compatibility: Vysor is also compatible with Windows, macOS, and Linux, providing a wide range of options for users.

Comparison:

  • Licensing: Scrcpy is open-source and free to use, while Vysor has both free and paid versions.
  • Control Method: Scrcpy is often used via the command line interface, while Vysor typically provides a graphical user interface for control.
  • Latency: Both scrcpy and Vysor aim for low-latency performance, but individual experiences may vary.

Ultimately, the choice between scrcpy and Vysor may depend on user preferences, the desired feature set, and whether open-source software is a priority. Users are encouraged to try both tools and decide which one better suits their needs.

3. Postman – Postbot – Your AI Testing Buddy

Testing APIs just got easier with Postbot. It’s like having a robot friend who checks big responses for you. Postbot automatically creates test cases for your APIs which just take input as natural language

4. Homebrew

No more headaches installing apps on your computer. Homebrew is a command line tool for your Mac or Linux, you can install/uninstall many tools or SDK with just only one command like below

brew install flutter
brew install node

To install Homebrew on your macOS or Linux system, use the below command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

5. Remove duplicate keys from your object in javascript

Did you get duplicate keys? No problem! Just stringify and parse, and voila – duplicates are gone.

const originalObject = {
  name: 'John Doe',
  age: 30,
  address: '123 Main St',
  age: 30, // Duplicate key
};

const cleanedObject = JSON.parse(JSON.stringify(originalObject));

console.log(cleanedObject);

6. Remove Duplicate Items from your List

Do you want to remove duplicate items from a list? Here is the shortcut, Just convert your list into a set – this will automatically eliminate all duplicate entries. Then, convert the set back into a list. Now you will get your list without duplicate items

const originalList = [1, 2, 3, 3, 4, 5, 5];

const cleanList = [...new Set(originalList)];

console.log(cleanList);

7. ADB CLI – Controlling Android Device without Touching It

  • Install ADB CLI using Homebrew

To control your Android device from your computer, you can use the Android Debug Bridge (ADB) command-line tool. If you haven’t installed ADB, you can do so with Homebrew by running the following command:

brew install --cask android-platform-tools

This command will install the Android Platform Tools package, which includes ADB.

  • Access Phone’s Shell

After installing ADB, you can access your Android device’s shell directly from the command line. This can be useful for various tasks and commands. To enter the shell, use the following command:

adb shell

This opens a shell prompt where you can interact with your device’s file system and execute commands.

  • Install Apps

ADB allows you to install Android apps (APK files) onto your device from your computer. Use the following command structure to install an app:

adb install /path/to/app.apk

Replace “/path/to/app.apk” with the actual path to the APK file you want to install.

  • Uninstall Apps

If you want to remove an installed app from your Android device, you can use ADB to uninstall it. Replace “package_name” with the actual package name of the app you want to uninstall. You can find the package name in the app’s details or by using other ADB commands.

adb uninstall package_name

8. Whitecodel Auto Link 

This is a package for Flutter developers, This script automates the process of building and uploading Flutter APK and IPA files to Diawi.
Now you don’t need to upload the APK or IPA files to Diwai manually it automaticaly upload and gives you links for APK and IPA files in your terminal

whitecodel_auto_link <token> <buildType> <releaseType>

Package link:

https://pub.dev/packages/whitecodel_auto_link: Tips & Tricks PART – 1

Tell Us Your Tip and Share the Benefits:

How much did you already know? Drop a comment below and let’s see who’s already a coding wizard!

And hey, for those who tried these tips, share your benefits below! Let’s celebrate the victories and make coding even more awesome together.

Conclusion:

Hope these tricks make your coding journey a bit more fun and a lot more efficient. Happy coding, and may your projects be full of awesome surprises!

Share On
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Whatsapp
Avatar photo
Bhawani Shankar
Connect on Facebook Connect on Twitter Connect on Linkedin

Hey i am a professional web developer and programmer. i am expert in following. 1. Python. 2. Django. 3. Php. 4. Laravel. 5. Mongodb. 6. Bootstrap. 7. Nodejs. 8. React Native. 9. Electron 10. Flutter and many more.

 Previous Article kalyug kalyug kalyug 😈 
Next Article   Flutter Interview Questions (2024) PART – 1

Related Posts

  • Flutter Interview Questions (2024) PART – 1

    January 26, 2024
  • kalyug kalyug kalyug 😈 

    September 27, 2022
  • The Power of our subconscious mind | Reprogram your mind | How to be happy

    March 17, 2021
0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Vaishnavi singh
Vaishnavi singh
1 year ago

Great information sir

1
Reply
Bhawani Shankar
Author
Bhawani Shankar
1 year ago
Reply to  Vaishnavi singh

Thank you, Vaishnavi Singh! I’m glad you enjoyed my post and took the time to leave a comment. Your positive feedback means a lot to me!

0
Reply

Categories

  • Computer Science (5)
    • Computer Science Beginners (3)
    • Comupter Networking (1)
  • Electron-JS (1)
  • Flutter (1)
  • Full Stack Development (1)
  • Motivation (1)
  • Nodejs (1)
  • Personal Blog (5)
  • Software (1)
    • Computer Software (1)
  • Uncategorized (5)

Recent Posts

  • Flutter Interview Questions (2024) PART – 1
  • Tips & Tricks PART – 1
  • kalyug kalyug kalyug 😈 
  • Still, I’m unhappy
  • Should you start your own IT company? 🤔

Recent Comments

  • Bholu saini on About Me
  • Bhawani Shankar on Tips & Tricks PART – 1
  • Vaishnavi singh on Tips & Tricks PART – 1
  • Bholu Saini on B.Tech a curse or boon
  • Kapil Banshiwal on Should you start your own IT company? 🤔

Calendar

October 2025
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Jan    

Archives

  • January 2024
  • September 2022
  • August 2022
  • December 2021
  • October 2021
  • March 2021
  • August 2020

Categories

  • Computer Science
  • Computer Science Beginners
  • Computer Software
  • Comupter Networking
  • Electron-JS
  • Flutter
  • Full Stack Development
  • Motivation
  • Nodejs
  • Personal Blog
  • Software
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© Copyright 2020. Blog by Bhawani Shankar.
wpDiscuz