Posts

Partnering up with ChatGPT

Image
A little late to the party, I've finally started to consider ChatGPT in my daily life. Here's an interaction that I hadn't previously thought of, but that I found useful: In computer science, what's the word indicating that something is happening only once? The word that indicates that something is happening only once in computer science is "singleton." A singleton is a design pattern in object-oriented programming that restricts the instantiation of a class to a single instance and ensures that there is only one instance of the class throughout the application. The singleton pattern is commonly used in situations where a single object is required to coordinate actions across the system. That's not what I'm looking for. This word is used in messaging to handle duplicate requests I believe the word you are looking for is "idempotent". In computer science, an operation or function is considered idempotent if it can be applied multiple times wit

IRequestCultureFeature returns null in ASP.NET Core 6

... unless you first register its use in your service configuration: app. UseAuthorization (); app. UseRequestLocalization (); // <-- app . MapControllerRoute ( That's all, folks!

How to uninstall Mudlet

Here's a weird one for you. When I tried to install Microsoft Teams on my laptop, instead of installing the software, it launched Mudlet . Now, I'm a fan of the app, but ... that's weird and unwelcome. Trying to uninstall Mudlet didn't help - Teams simply reinstalled - and started Mudlet again (somehow). Googling provided little help. I tried running CCleaner , but that didn't solve the issue either. After a fair bit of digging, I found the following solution: Both products use the Squirrel installation system (and that's where things break down). Delete the Squirrel package cache ( %LocalAppData%\SquirrelTemp ) Delete the Mudlet folder in %LocalAppData%\Microsoft (what's it doing there to begin with?) You should then be able to install Microsoft Teams and actually use THAT app.

Now everyone can have their own, free, website!

Image
I'm super excited about - allowing anyone to write down their thoughts and have them  published on a variety of websites. NOT SOCIAL MEDIA WEBSITES, but websites the author actually controls/owns. And it's free. And you don't have to be a developer to use it!

How to work from home

Image
Get an animal that wakes you up early in the morning. I have a cat who wakes me up at 4am. Spend time in the morning tending to your animal and yourself, feeding both of you. That is: Cook your breakfast or otherwise prepare a tasty one. If you're not a breakfast person, prepare lunch. Clean up after yourself. If you can, do you food shopping in the morning. Ask yourself: What other things can I get done (or partially done - tinkering / puttering is fine!) in the morning hours? Eat and drink in the kitchen / dining area, or outside your home. The only exception is water, which you may bring into your office. Prepare a dedicated space where you do work. If you cannot dedicate a whole room, dedicate a part of an area. Avoid dedicating parts of the kitchen or parts of your bedroom. Spend energy optimising your spaces. Don't wait for someone else to approve spending on your office space. Spend money wisely to improve your work area. If you can get some of the money back from your e

@Jeffdelaney23 is doing a great job sharing knowledge!

Image
I've been enjoying  Jeff Delaney  videos for a while now and am impressed that he's still going at it after  5 years of publishing on YouTube . Most recently, I watched his gzip file compression in 100 seconds and by now, I'm a dedicated subscriber! I've also (finally?) realized lately that this Swag thing is not a pain in the ass at all, but instead is a great way of supporting them, showing that you're supporting them and opening up for conversations with the yet-non-believers. If you're wearing a fancy Fireship.io t-shirt , someone is likely to ask what that is - well, more likely than if you hadn't worn it at all. What I'm trying to say is - if you truly appreciate a content creator's works (e.g. is a regular subscriber), please support them by buying their stuff !

Practical WebAssembly by @sendilkumarn

Image
I was lucky enough to get my hands on a copy of Practical WebAssembly  by  Sendil Kumar Nellaiyapen  (Engineering Manager at Uber). I found the book very informative, sharing insights on the WebAssembly we use today, but also just-enough technical details behind the scenes to fully appreciate where we've come. Running the examples on Windows, however, I found that the book lacked some clarity. Here's what I figured out. To run the examples in Chapter 1, you'll need to download and install the  LLVM  compiler infrastructure ( from GitHub ), e.g. the  14.0.6 release for Windows . There's no need to build the toolchain from source. Once installed, you'll have access to  clang ,  emcc  and other tools. I found the output on Windows was different than the examples (presumably from a Mac). The  sum.c  example, looked like this after compilation by clang: ; ModuleID = 'sum.c' source_filename = "sum.c" target datalayout = "e-m:w-p270:32:32-p271:32:32-