How to make money online?

 There are many ways to make money online, and the best method for you will depend on your skills, interests, and resources. Here are some options to consider:

  1. Freelancing: If you have a skill that you can offer online, such as writing, graphic design, or programming, you can find freelance work on websites like Upwork, Fiverr, or Freelancer.

  2. Freelancing is a great way to make money online, especially if you have a skill that you can offer to clients. Here are some tips for getting started as a freelancer:

    • Identify your skills: Consider your strengths and areas of expertise. What services can you offer to clients? Examples include writing, graphic design, programming, video editing, social media management, and more. 
    • Create a portfolio: Develop a portfolio that showcases your work and highlights your skills. You can create a website or use a platform like Behance or Dribbble to display your portfolio. 
    • Find clients: There are many ways to find clients as a freelancer. You can use freelance job platforms like Upwork, Fiverr, or Freelancer to find projects. You can also reach out to potential clients directly through social media, email, or LinkedIn. 
    • Set your rates: Determine how much you will charge for your services. Research what other freelancers in your industry are charging and adjust your rates accordingly. Be sure to communicate your rates clearly to clients upfront. 

How to block / allow local internet access using proxy server (Local Machine)

 To block or allow local internet access using a proxy server on a local machine, you can follow these steps:

  1. Install a proxy server software on your local machine. There are many free and paid options available, such as Squid, CCProxy, and WinGate.
  2. Configure the proxy server to allow or block local internet access. This process varies depending on the proxy server software you choose, but most proxy servers have options to specify rules for network traffic. You may need to consult the documentation for your chosen proxy server software to learn how to configure these rules.

What is Obfuscation in Java?

 Obfuscation in Java is the process of making the code difficult to understand or reverse-engineer by obscuring its purpose, logic, and structure. It involves renaming classes, methods, and variables with meaningless names, removing comments and unnecessary white spaces, and restructuring the code to make it hard to follow.

The main purpose of obfuscation is to protect the intellectual property of the code, making it more difficult for others to copy, modify or steal it. It is particularly important for commercial software where source code protection is critical to prevent reverse engineering, hacking or piracy.

How to mock static object inside an Interface by using JUnit5 in Java?

 Mocking static objects inside an interface using JUnit5 requires the use of a mocking framework. One popular mocking framework in Java is Mockito. Here are the steps to mock a static object inside an interface using JUnit5 and Mockito:

Add the Mockito library to your project. You can do this by adding the following dependency to your build file:

Java code obfuscation using Proguard

 Java code obfuscation is a technique used to protect the intellectual property of software developers by making the source code of their applications harder to understand and reverse-engineer. One popular tool for obfuscation is Proguard, which is a free, open-source tool that can be used to shrink, optimize, and obfuscate Java code.

Here are the steps to obfuscate your Java code using Proguard:

How to solve Proguard NotSerializableException in Java Application?

ProGuard is a tool used in Java development to help optimize and obfuscate code. It can sometimes cause issues with serialization if it strips out classes or fields that are necessary for serialization.

A NotSerializableException is typically thrown when an object is not serializable. In other words, when an object cannot be written to a stream and then reconstructed from that stream later.

To resolve this issue with ProGuard, you can do the following:

Trading View Pine Script for Moving Average + EMA + Previous Day High and Low

Trading View free version chart only allows max 3 indicators. So I hereby adding an Pine Script for the following indicators

1) Moving Average - 5 (Period)

2) Moving Average - 20 (Period)

3) Exponential Moving Average - 200 (Period)

4) Previous Day High and Low