Recently, Bing Copilot is really keen on being helpful…

Question: how do I remove the last character from a javascript string? You can remove the last character from a JavaScript string by using the slice() method. Here’s how you can do it: var str = "Hello, world!"; str = str.slice(0, -1); // "Hello, world" In this code, str.slice(0, -1) returns a new string that …

Continue reading ‘Recently, Bing Copilot is really keen on being helpful…’ »

SSH to Windows 10 using private key

It took waaaay to long to make everything work. Create the service and key pairs via this link Make sure that the logs are generated to debug any issues via this link The administrators_authorized_keys file should contain the public key generated in the first step and the permissions should only have the Administrators group for …

Continue reading ‘SSH to Windows 10 using private key’ »

How many authors in that git project?

I’ve been spending a lot of time on the FixPix Home project and recently have discovered a similar project – chaiNNer, which is open source (GPL 3.0) and, though targeted at a different audience, looks also like a very impressive piece of work. So I was wondering how many developers have been working on chaiNNer …

Continue reading ‘How many authors in that git project?’ »

I got ChatGPT into an endless loop

Luckily, the developers stop the output after a certain point.This was after I asked about an example of a flawed mathematical proofMe: Can you provide an example where x^2-x^2=0 is not true?ChatGPT:Sure, here is an example where x^2-x^2=0 is not true:Let x=2Then, x^2-x^2=4-4=0In this case, x^2-x^2 does equal 0. However, if we choose a different …

Continue reading ‘I got ChatGPT into an endless loop’ »

AWS Lambda with Docker – revisited

There are various ways to leverage docker to develop AWS lambda serverless functions. One recent method is to deploy Python Lambda functions with container images (as specified here). Another method is to develop the Lambda package from within an Amazon Linux docker container and then upload it to AWS Lambda (more details here). A summary …

Continue reading ‘AWS Lambda with Docker – revisited’ »