This is a beginners guide on how to collect log files on your linux machine using Grafana Agent and publish them to Grafana Cloud. Disclaimer: I conside myself a beginner in both linux, docker, grafana and yaml - this guide is written for beginners like me. There are multiple ways of installing Grafana Agent. I prefer to run Grafana Agent inside an docker container. Pre: Install docker First,…
Grafana for slack is an easy way to share your grafana panels to slack. It’s a “scratch my own itch” solution, I wanted to make it easy to share a panel on a cron schedule, e.g. every morning to a specific slack channel. It’s well integrated with Slack and only requires your Grafana API key and link to grafana panel. It alsow works well with Grafana Cloud. Note however that it relies on you having…
Sign in with fingerprint - asp.net Using the Passwordless API we can add secure and fast sign in to our existing asp.net apps. The API allows us to add sign in with FaceID, Fingerprint scan or other native methods like the android lock screen or Windows Hello. It makes it easy to consume the complex browser standards WebAuthn and FIDO2. Example on iOS 14: Exampe of Windows 10: Who is this guide…
I’ve recently had the unfortunate task to diagnose and monitor memory and GC related events for our asp.net api running on .net 4.7.2 in Azure App Services (Azure Web app). Information and examples on how to do this is hard to come by and perhaps not relevant due to the difference in azure appservices environment, so I thought I’d summarize my experience in Jan 2020. Note: I’m not sure if this…
In this post, I will describe how you can leverage existing IdentityServer features to generate and support PATs, as well as configuring your API Resources to accept them. Why Personal Access Tokens (PAT)? A PAT is a alternative to your username/password for authentication when working with Automation scripts or curl’ing your API where oAuth might be inconvenient or hard to implement. Reference…
One code snippet I often return to when building something small and I need to select an element or add eventhandler is this: const $ = (selector) => document.querySelector(selector) const $$ = (selector) => document.querySelectorAll(selector) const on = (elem, type, listener) => elem.addEventListener(type,listener) jQuery in three lines of code was originally published by Anders Åberg at Ideas Of…
I have been working on a very exciting side project the last couple of months that will allow you - as a user of a website or app - to signup and login without passwords. This technology is called FIDO2 (Fast IDentity Online) and was designed by the FIDO Alliance together with large tech companies such as Microsoft, Google, Paypal etc. Why it’s cool and you will like it You never have to use…
Over the last couple of months I’ve been building a FIDO2 open source server . I should probably do a larger write-up on the library and FIDO itself some day, but I wanted to write down some things I had to discover and learn. Disclosure: I’m not an expert on FIDO. I implemented a library by reading the specs and asking a ton of questions. Before May 2018 I had never heard of Fido. I might get…
Hello fellow kids & developers! I decided to reverse engineer the Apple iPhone X website to learn how their slick “X” landing page is made. By combining a couple of effects it makes for a very powerful end result. Note: It’s similiar to how I did the Avicii True Stories effect. First things first, this is what we’re dissecting today! Let’s break the gif down: It starts with an X with a smooth…
TL;DR: LocalizedRoutes on GitHub I am currently developing a project where I need to localized and theme my routes. Acutally the same website will every only run on language, but the same code will run multiple websites, so I needed to be able to cusomtize my routes. Since there were very little available online for this, I created a library and open sourced it on Github . Would be cool to write a…
Shoutout to this repo: abergs/ubuntuonwindows . It contains a a collaborative list of good things to know and setup when you run Bash on your Windows 10 machine (Which is natively available since the Windows Anniversary Update). It covers everything from setting up SSH to how to access your files on your windows drive and vice versa. It’s awesome. Have a good one! /Anders Tips and Trix for Bash On…
So there is a cool feature in HTML5 and it’s called contenteditable . It’s a attribute you can place on any element in your page and it will allow your users to change the text inside. This can be useful for a lot of things, but what is even more interesting is the silly things you can do with it. Show a styletag in the body Before diving deeper into contenteditable, there is another weird thing…
The future will in one way or another always become the present. Question is - will you chase it? I’m writing this blog post on board the commuter train between Stockholm and Uppsala. After five years at Caspeco, I now take the next step in my journey. For the next 1½ year, I will attend the Digital Data Strategist program at Hyper Island . I started working for Caspeco as a teenager. I was 19…
One of my last tasks at Caspeco were to build our email service for our new platform. Normally, this could be as simple as Smtp.Send(email) but I wanted to improve the value that it generated so, I really took a deeper approach. First, let me tell you have we do it in our old platform. How we used to do We already make use of a third party emailservice, instead of our own SMTP service. This gives…
The team at Caspeco needed a way to translate exceptions to nice HTTP responses. The exceptions could be thrown by a custom middleware, within the Web Api framework or in our bussiness logic. So we built a thin Owin Middleware to translate all exceptions into nice HTTP responses that makes sense when you read them in the client consuming your api. The result is available as the nuget package…
I was tasked with a very simple task. Moving a ball from the left edge of the screen to the right edge. That’s a simple task, and have been possible for ages using for example jQuery animations. However, the ball had to move smoothly over the screen and back in 0.5 seconds. The problem with smoothly Obviously, it has to have a great performance. So I decided to instead of manipulating the DOM with…
I currently run a couple of projects where we need to implement a Security Service for Authenticating and Authorization users. Two videos by Dominick of ThinkTecture fame: What and Why is Claims and Tokens Dominick Baier - Authentication & Authorization in .NET 4.5 - Claims & Tokens become the standard Model from NDC Conferences on Vimeo . Securing ASP.NET Web APIs and HTTP Services Dominick…
In this article I want to give you a short introduction to Project Orleans . What is Project Orleans? Orleans is a product from the eXtreme Computing division at Microsoft Research. It aims to help developers to develop “Cloud Native” services and it is a combination of theories of how you build large distributed applications plus the tooling and framework to make it very simple in practice.…
I just finished moving all of my old posts! …complete with disqus comments by using disqus URL mapper. Now the azure site is going down and i’ll gain a couple of bucks a month. I Finished moving my old posts! was originally published by Anders Åberg at Ideas Of Anders berg on June 02, 2014.
My short story about saving a couple of bucks a month and how I switched blogging platform. I’m starting a company together with my best friend, Jacob. I’m currently employed at Caspeco and for a while I will only work 60% while working on my startup 40% of normal working hours. As you understand, this puts my salary off by 40%. On top of this I doubled my rent expense due to my (now…