Posts
How to use ExternalItem.ReadWrite.Ownedby
When working with M365 Search, it’s great to follow the principle of least privilege. The ExternalItem.ReadWrite.OwnedBy gives you a way to restrict an application to a single connection.
The problem is that the documentation (mslearn and graph permissions) does not shed any light on how to use this permission. In our project we were about to give up and grant the bolder ExternalItem.ReadWrite.All and then we tried a few things and found a way.
Posts
Remote video monitoring with Raspberry Pi
My Ender 3 v2 3D Printer does not have a webcam to remotely check 3D prints. Sometimes when I am not at home I need to see how things are going. I thought a simple webcam solution would do the trick.
I grabbed my older Raspberry Pi (RPi 2) and set it up as a remote web camera.
Hardware and Software So here is the hardware I am using:
Raspberry Pi 2 (I suppose it should work with any SBC) Wifi dongle (you don’t need it if you have buil-in wifi or you want use an ethernet cable instead) Usb web camera (of course it would also work with a raspberry pi camera) I have the following software installed and configured:
Posts
How to export a Penzu journal
I have used Penzu as my main journal app for many years. Recently when Apple launched its Journal app I have been looking at it and other competitors. Then I realized that I am not able to get my own data from Penzu. There is no reasonable Export function.
So I found my own way to get my journal data. I could name this blog post to something like “How to export the unexportable”, or “How to intercept XHR requests in Puppeteer”, but my case is about Penzu, so I’ll stick to this particular title.
Posts
Proofreading blog drafts using Copilot Sidebar
While working on a blog post, I discovered a way to proofread my drafts in an easy way. This might not be very revolutionary, but it was so convenient that I wanted to share it with the world.
I use Hugo for my static website. On my local computer I can preview it in the browser under localhost:1313. Copilot Sidebar in Edge does the same! This means I can ask it to proofread it.
Posts
Prompts and Modelfiles
I read about Gemma this morning. It is the open source version of Google Gemini. So I started trying it out locally on my raspberry pi where I already have ollama and ollama-webui.
Then I discovered the prompts and modelfiles which I thought were worth a blog post.
Modelfile Let’s start with Modelfiles. You can create your own or browse on OllamaHub.
It’s genious. It reminds Dockerfile with the initial FROM statement.
Posts
How to Read SharePoint Storage Capacity with Graph
Do you want to monitor the storage capacity of your SharePoint Online Environment in an automated way? In this blog post, I will show you how to use Graph to read the storage capacity programmatically and avoid running out of storage space.
Hey SharePoint Admin, have you also gazed at this storage chart in Active Sites section and scratched your head? Sure, it is good, but you cannot use it for automated monitoring.
Posts
Blog Comments are back
I haven’t had comments on my blog since I moved from wordpress. Until now. I just added comments back to my blog and here is how I did it.
The most convinient way is integrating my blog with Github Discussions using giscus.
The giscuss.app page walks you through the setup and authorization process.
I created a new public repository on Github, then I enabled Discussions feature on the repository (Settings -> Features).
Posts
Workload Identity Federation
There is no reason not to switch to Workload Identity Federation for Service Connections in Azure DevOps. Compared to secret-based connections, it offers several compelling benefits:
Firstly, you eliminate the need for secrets. This means no more manual or automatic rotation of secrets, or worse, being caught off guard when secrets expire unnoticed. Secondly, it’s more secure. Secrets used across multiple projects and stored in key vaults or, even worse, in tools like OneNote, are far more susceptible to compromise than the new identity federation approach.
Posts
Prova GPT-SW3
AI Sweden har publicerat den första svenska språkmodellen - GPT-SW3:
Nyheten på Computer Sweden Samlingssida på AI Sweden Språkmodeller från AI Sweden på HuggingFace I det här inlägget vill jag beskriva hur man kommer igång om man vill testa det. Min setup är följande:
En MacBook Pro (men det kan vara vilken dator som helst egentligen) Python 3.8^ + venv (om det lite senare) Visual Studio Code Jupyter Notebook Extension till Visual Studio Code Datoruppsättning Om inte du har gjort det tidigare, installera Visual Studio Code
Posts
Discord Bot From Hello World to Container Apps
Recently I Became Curious About Discord Bots and How They Work.
In this blog post, I am going to write about my learnings. While some parts might be familiar to you, I found it very amusing to start with a simple “Hello, World!” bot, run it locally, deploy it to the cloud, and integrate it with ChatGPT. Along the way, I learned a lot. I hope this post can inspire other people or at least serve as a reference to refresh my memory when I revisit this topic in the future.