Posts
thacoon
Cancel

Use Rocket's managed state within request guards

The problem Request guards represents some validation policy and is one of Rocket’s most powerful instruments. You can read more about guards in the docs. For example you can use guards to add aut...

Rocket (Rust) - Trait is not implemented compilation error for a type that it has implemented

The problem I needed to use the 0.5.0-dev version of Rocket as I wanted to use the new async features. As this version is not yet published you need to point Cargo to a git repository. However, I ...

Launch jupyter lab with specific Python Version via docker

Build jupyter lab image At first we create a custom jupyter lab docker image. Create a file called Dockerfile and add the following content: 1 2 3 4 5 6 7 8 9 10 11 12 FROM python:3.8 EXPOSE 888...

Default Props in React and Typescript

Lately I started to do some frontend related stuff and started working with React. At the start when using JS I was using PropTypes for typechecking. When using Proptypes it is easy to create optio...

Developing a browser extension with Create React App and Tailwind CSS

1. Create new app Create a new app via create-react-app with the following command. 1 npx create-react-app my-browser-extension --template typescript Or for Typescrip support run this command: ...