Skip to content

Instantly share code, notes, and snippets.

View theabhayprajapati's full-sized avatar

Abhay Prajapati theabhayprajapati

View GitHub Profile

Practical one RCP (Remote Procedure Call).

Client join server and sending messages.

//Client.java

public class Client {

  private static final String HOST = "127.0.0.1";
https://docs.google.com/presentation/d/1ruT4VkPrGlpgW0zEYlxGcFXrGCPjf6T9k26Drgmq-ec/edit?usp=drivesdk
https://docs.google.com/presentation/d/177rsn92KvS30xfmlfCUgwNb9_0MXw0Z3/edit?usp=sharing&ouid=107849661615759621927&rtpof=true&sd=true

To install Gradle 7 on Ubuntu with Java 1.8 already installed

  1. Open a terminal window.

  2. Update the package list:

    sudo apt update
    
  3. Install wget if it's not already installed:

How to use Java version which is installed by intellj on machine through terminal

what happend is then you install java version from interllj it will installed what but it will not make it accesble for terninal to use it

for using this you can do this thing.

  1. Go to intellij open project strucutre and check for jdk
  2. open that and get the path from it
  3. copy that path and do like this
@theabhayprajapati
theabhayprajapati / chrome.md
Created September 23, 2023 13:48
Removing "Mangaged By Google Tag" from fedora Google Chrome.
removing /etc/opt/chrome/policies/managed/00_gssapi.json works only until next OS (Fedora 35) reboot.

go to /etc/opt/chrome and check if policies is having file similar to 00_gssapi.json or *.json

then come back and delete that folder

cd ../..
@theabhayprajapati
theabhayprajapati / gcm.md
Created September 23, 2023 13:01
Downloading GCM( GIT credintial manager ) on fedora 38
@theabhayprajapati
theabhayprajapati / main.md
Created September 15, 2023 16:58
If you are working on a projects in spring boot that has it's own packages custom built and if you make changes to those files, folder how to use start using that one?

If you are working on a projects in spring boot that has it's own packages custom built and if you make changes

to those files, folder how to use start using that one?

if you make changes on your packages(modules) java packages like common, every java projects larger ones have have there own custom version of packages like common, it generatlly includes common classes, auth method.

If your are working on sometype of featues which need changes in that you should make the changes in that then move to your terminal and root dir of your project.

@theabhayprajapati
theabhayprajapati / .zshrc.md
Last active February 7, 2024 18:24
Make zsh shell to load faster. if you have nvm install

MAKE ZSH load faster

#.zshrc
export NVM_DIR="$HOME/.nvm"
#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
# alias nvm="unalias nvm; [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"; nvm $@"

setState Methods

setState is having 2 params first is for updating the state and the second is the callback function which only update if this setState is updated and rendered into the DOM.

    () => {
    this.setState((state, props) => {
        return {name: "Abhay"}
 }, () => {