Extremely Serious

Month: December 2021

Unlinking Uphold Wallet with Brave

Identifying your Custodian member and Wallet Payment IDs [^1]

On the brave browser where you've successfully verified an uphold wallet.

  1. Type in on your brave browser address bar the following:

    brave://rewards-internals
  2. Select the General info tab.

  3. Note the Wallet payment ID from the the Wallet info section.

    Include this information in the description of the request form.

  4. Note the Custodian member ID from the External wallet info section.

  5. Create a request to Wallet Unlinking Request form

[^1]: How can i verify my browser on a new device have reached the lifetime limit

Ubuntu Stops Resolving Address

Issue

Pinging any known working internet address is returning the following message:

Temporary failure in name resolution

Example

Pinging www.google.com as follows:

ping: www.google.com: Temporary failure in name resolution

Resolution

Check where you /etc/resolve.conf is pointing using the following command:

 ls -al /etc | grep resolv.conf

If it is not pointing to /run/systemd/resolve/resolv.conf. Do the following:

sudo rm /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf  /etc/resolv.conf
sudo systemctl restart systemd-resolved.service

Regex Capture Groups with Java

The following java code extracts the group, artifact and version using regex capture groups:

import java.util.regex.Pattern;

public class Main {

    public static void main(String ... args) {
        //Text to extract the group, artifact and version
        var text = "org.junit.jupiter:junit-jupiter-api:5.7.0";

        //Regex capture groups for Group:Artifact:Version
        var pattern = "(.*):(.*):(.*)"; 

        var compiledPattern = Pattern.compile(pattern);
        var matcher = compiledPattern.matcher(text);
        if (matcher.find( )) {
            System.out.println("Whole text: " + matcher.group(0) );
            System.out.println("Group: " + matcher.group(1) );
            System.out.println("Artifact: " + matcher.group(2) );
            System.out.println("Version: " + matcher.group(3) );
        } else {
            System.out.println("NO MATCH");
        }
    }
}

Output

Whole text: org.junit.jupiter:junit-jupiter-api:5.7.0
Group: org.junit.jupiter
Artifact: junit-jupiter-api
Version: 5.7.0