ict.ken.be

Delivering solid user friendly software solutions since the dawn of time.

npx react-native start gives invalid regular expression 

Categories: Nodejs Reactjs

Most likely your 'node_modules\metro-config\src\defaults\blacklist.js' has an invalid regular expression.

You can correct it with the expression below

var sharedBlacklist = [
  /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.*\/__tests__\/.*/
];

However, it's more likely that you just downloaded an older react-native example and are trying to run this with a different version than intended.

You could ensure that you install all the package.json dependencies fixed to the version the example was build with.

Or you could upgrade all packages to their latest version and fix any issues that might come from that.

At least with the second option you are ready to go with all the latest tools.

Playstation 

Categories: Notes

Glossary

  • ELF: Extensible Linking Format is the file format commonly used for Playstation binaries. Eg. BOOT.ELF
  • ESR : This is not an abbriviation but a way to load dvd copies. I prefer using network loading with OPL as the whole point is to not only spare your dvd roms but also your playstation laser. Remeber that you need to patch your dvd iso before burning it.
  • FMCB : FreeMcBoot allows for booting your playstation into software installed onto your memory card. Which allows you to copy software from a usb-drive. It's kind of catch-22 as to be able to install the initial software on your memory card you need to have a card that has FMCB installed. If you can't buy an initial copy there are tricks to exploit the dvd loading and install it like this, but that's kind of tedious.
  • GSM : Graphics Synthetizer Mode Selector you might need to get some specific games working. You can learn about the workings, but it's mostly enough to just lookup the mode in the tables at PS2-home.
  • OPL : Open PS2 Loader, far the easiest way to manage playing games over the network. Doesn't work for all games, but use it whenever possible to spare your ps2 laser.
  • SMB : Server Message Block aka Samba allows you to setup a network between your PS2 and pc.
  • SMS : Simple Media System allows for playing videos. Nice, but not very useful since we all have tablets now.
  • MagicGate : Brand of original PS2 memory cards that is needed to run FMCB, watch out as often the bigger ones are fake and will not work. Use an original 8MB for your first experiments.
  • uLaunchElf : Your basic file browser that allows you to run executables.

Configuration

Some screenshots of playstation 2 fmcb and opl settings over network.

References

Reactjs 

Categories: Reactjs

Just some basic react cheatsheet

  • import React from "react"
  • use an expression to put comments
{/* you can use this to commend inside your jsx */}
  • useĀ a fragment if you want to quickly include an exiting html structure with more then one element at the root
<>
<h1>Some header<h1>
<h2>Some subheader<h2>
</>

Error: endpoint data missing from graphql config when using gatsby with vscode 

Most likely you installed the GraphQL extension for VSCode to add syntax highlighting to your graphql queries. Then you noticed the codelens 'Execute Query' and got one of the following errors:

  • Error: endpoint data missing from graphql config
  • ConfigNotFoundError: ".graphqlconfig" file is not available in the provided config directory

To solve this issue, you need to create a .graphqlconfig file in your project root folder.

Tricky part is figuring out what you need to put in there for using Gatsby.

So here is an example:

{
  "name": "Gatsby Schema",
  "schemaPath": "schema.graphql",
  "extensions": {
    "endpoints": {
      "Remote GraphQL Endpoint": {
        "url": "http://localhost:8000/___graphql",
        "headers": {
          "user-agent": "JS GraphQL"
        },
        "introspect": true
      }
    }
  }
}

Upgrading Nodejs package.json dependencies 

Categories: Javascript Nodejs

Doing a minor update

  • npm update

Doing a major update

Ensure you have the 'check updates' module installed, which will give you the ncu command.

npm install -g npm-check-updates
  • npm outdated
  • ncu -u
  • npm update
  • npm install

If you keep getting: NCU Real Time Weather is Running......

You installed the module called ncu and will need to uninstall this one first.

npm uninstall ncu -g
npm install -g npm-check-updates -- force
Page 3 of 43 << < 1 2 3 4 5 6 7 8 9 10 20 40 > >>