PinnedReact Components rendered twice — any way to fix this?Many developer have implemented a similar functional component and have seen this behavior. Some have even opened a bug report in the official React repository. The reason why this happens is an intentional feature of the React.StrictMode. …Reactjs3 min readReactjs3 min read
Apr 20Multiple calls to Jest mock returns last call props for all callsIn JavaScript, when you pass an object as an argument to a function, the function receives a reference to the original object in memory, rather than a copy of the object. …Mock4 min readMock4 min read
Oct 14, 2022Port forward with DevContainer and Docker ComposeThe Problem You need multiple containers for your development setup and use a docker-compose.yml file to declare the requirements for your services. After starting the setup you see the port for one service in the VSCode ports tab but none of the ports from the other service containers. If you have no…Devcontainer5 min readDevcontainer5 min read
Jun 3, 2022Howto handle index key specification without a key length and key was too longYou create your datastructure and define a table which will allow UPSERT (insert if document not exists) and get one of this errors: 1170 BLOB/TEXT column 'document_id' used in key specification without a key length Specified key was too long; max key length is 3072 bytes The Problem When creating an index…Sql4 min readSql4 min read
Mar 24, 2022Member-onlyMicrosoft Teams App fails to open from SafariYou open a link from an E-Mail or calendar entry for a Microsoft Teams Meeting and normally you would klick on the Button “Open your Teams app” to proceede to open the Meeting in the local installed Microsoft Teams Application. Nothing visual happens, which is frustration! If you are more…Mac2 min readMac2 min read
Sep 13, 2021Docker Desktop License — should I pay?Executive Summery You are not required to subscribe to a payed license if your company has fewer than 250 employees and less than $10 million annual revenue — stop reading now! …Docker4 min readDocker4 min read
May 28, 2021Member-onlyDocker compose up build fails to update containerThe Problem if you try the following command to update your service after changes and it works for you with some projects but not with all projects I can help you to fix the problem and understand the reason behind this behaviour: Let’s explain what this command is requested to do: up…Docker5 min readDocker5 min read
May 27, 2021Member-onlyDocker fails with OCI runtime create failedThe Problem docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: “/hello”: stat /hello: no such file or directory: unknown. if you try the simples possible image and get this error you have found the information to solve your problem.Docker2 min readDocker2 min read
May 3, 2021GMail out of space? Delete the attachments, not the emails!127Mich RodzMacOS User can delete all Attachments from multiple selected Emails with the integrated Mail App…MacOS User can delete all Attachments from multiple selected Emails with the integrated Mail App from Apple https://macpaw.com/de/how-to/delete-mail-attachments1 min read1 min read
Feb 12, 2021ReScript an awsome Option dismissed!Before I will tell you the WHY I should list the reasons I was looking into ReScript: functional programming support for strict types pattern matching This is basic stuff, but as a programming language is used in a production setup there are some more requirements: Code Editor language support test driven development access to many libraries solving…Functional Programming6 min readFunctional Programming6 min read