profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/j05u3/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Josué (Josh) j05u3 TuRuta Lima, Peru http://stackoverflow.com/users/2469583/vanflyheight Mainly a mobile and backend dev, but I like to "lurk on everything" lol. World Finalist in ACM ICPC 2016.

GPC-UNI/Programacion-Competitiva 22

Material de programación competitiva elaborado por el Grupo de Programación Competitiva UNI (GPC-UNI)

j05u3/geometric-median 1

Android app for finding the geometric median (also known as spatial median) between a list of markers set in over a map.

j05u3/agar.io-bot 0

Agar.io Bot Framework for Bot Developers

j05u3/analyst-ui 0

OTv2: a web-based Open Traffic data analysis tool

j05u3/apache-log-parser 0

Parses log lines from an apache log

j05u3/app_tracking_transparency 0

A Flutter plugin to show ios 14+ tracking authorization dialog.

j05u3/batphone 0

The Serval Mesh app for Android. EXPERIMENTAL SOFTWARE.

issue commentrehooks/local-storage

TypeError: Class constructor CustomEvent cannot be invoked without 'new'

@jharrilim the fix is released under 2.4.3 version on npm. I don't have org access to rehooks to add you as a contributor to npm. Didn't focus on this, as I was busy with my day job and don't really use this package anymore. Thanks for keeping it maintained. I'll try to be more active with publishing.

Thanks! Btw, out of curiosity, do you use another package or another way to handle reactive local storage? or you just meant you don't code this kind of features anymore.

cohancarpentier

comment created time in 14 days

startedrehooks/local-storage

started time in 14 days

issue commentMetaMask/metamask-mobile

switchEthereumChain RPC call results in -32601 error code

Thanks, sorry for not updating here, I ended up doing this:

    try {
      // TODO: it would be great to check if the nework is installed already
      // (without trying to change), so we can explain better to the user 
      // (I mean: 
      // In case the wallet has the network installed just say
      // "Switch network" instead of "Add and switch network")
      // maybe look here: https://metamask.github.io/api-playground/api-documentation/
      // but I don't think it is a priority for now

      // check if the chain to connect to is installed
      await ethereum.request({
        method: 'wallet_switchEthereumChain',
        params: [{
          chainId:
            chainParameters.chainId
        }], // chainId must be in hexadecimal numbers
      });

      return true;

    } catch (switchErrorCaught) {
      const switchError = switchErrorCaught as any;

      // in case of network not added to wallet yet
      if (checkForUnrecognizedOrNotAddedNetwork(switchError)) {
        try {

          await ethereum.request({
            method: 'wallet_addEthereumChain', // this also switches to that network after adding it
            // if the user adds the network but rejects the switch to it, then 
            // this doesnt throw any error 
            params: [
              chainParameters,
            ],
          });
          // console.log("finished adding network"); // shows always after adding & switching (or rejecting switching)
          
          // making sure the user actually changed to the network requested
          const checkResult = await checkCurrentNetwork(chainParameters);
          if (checkResult === true) return true;
          return false;

        } catch (addError) {
          const addErrorAny = addError as any;
          if (addErrorAny.code === 4001) { // user rejected
            ;
          } else { // other
            Sentry.captureException(addError);
            alert("Error while adding network " + chainParameters.chainName + " 🙀");
          }
        }
      } else if (switchError.code === 4001) { // user rejected
        ;
      } else {
        Sentry.captureException(switchError);
        alert("🙀 Error while switching to network: " + chainParameters.chainName 
        + ". If you are on mobile check that your Metamask app is updated (must be at least the version 3.3.0)");
      }
    }

With the recognition function being:

function checkForUnrecognizedOrNotAddedNetwork(switchError: any) {
  console.log(switchError);
  // This error code indicates that the chain has not been added to MetaMask
  // if it is not, then install it into the user MetaMask
  if (switchError.code === 4902) {
    return true;
  }

  const message = (switchError.message as string) ?? "";
  const testString = "Unrecognized chain ID";
  if (message.toLowerCase().includes(testString.toLowerCase())) {
    return true;
  }

  return false;
}
davidcallanan

comment created time in a month

issue commentMetaMask/metamask-mobile

switchEthereumChain RPC call results in -32601 error code

Same happens to me, how did you ended up solving it?

davidcallanan

comment created time in a month

startedtrufflesuite/truffle

started time in a month

issue commentflrs/blend_modes

Wrong transparency results in some specific cases

Is it maybe related to this?

nico00

comment created time in 2 months

push eventj05u3/fenwick-tree-redis

dependabot[bot]

commit sha 29e1928926be48a45db5e24fdd6969ae4793e2f5

chore(deps): bump path-parse from 1.0.6 to 1.0.7 Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/jbgutierrez/path-parse/releases) - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7) --- updated-dependencies: - dependency-name: path-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>

view details

Josué (Josh)

commit sha b2e1a30e76536bc9de6375a3da0652f0c5bddc69

Merge pull request #18 from j05u3/dependabot/npm_and_yarn/path-parse-1.0.7 chore(deps): bump path-parse from 1.0.6 to 1.0.7

view details

push time in 2 months

PR merged j05u3/fenwick-tree-redis

chore(deps): bump path-parse from 1.0.6 to 1.0.7 dependencies

Bumps path-parse from 1.0.6 to 1.0.7. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/jbgutierrez/path-parse/commits/v1.0.7">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

0 comment

1 changed file

dependabot[bot]

pr closed time in 2 months

startedethereum/solidity

started time in 3 months

startedj05u3/solidity

started time in 3 months