Browsed by
Category: Code

PendingIntent on S+ devices

PendingIntent on S+ devices

One of my Android apps includes a widget that auto-updates both at a fixed interval (AlarmService) and when tapping on the widget. In the past this was accomplished with something like this (C# Xamarin): This has worked for years just fine, not realizing that S+ devices (or anything targeting version 31 or above) on Android requires a PendingIntentFlag value in that GetBroadcast call. A brief search returned how “easy” this is, just add in a flag for PendingIntentFlags.UpdateCurrent or PendingIntentFlags.Mutable…

Read More Read More

Azure DevOps Error MAUI0000: System.IO.IOException: The process cannot access the file ‘D:\a\1\s\obj\Release\net6.0-android\resizetizer\r\drawable\icon.png’ because it is being used by another process.

Azure DevOps Error MAUI0000: System.IO.IOException: The process cannot access the file ‘D:\a\1\s\obj\Release\net6.0-android\resizetizer\r\drawable\icon.png’ because it is being used by another process.

This was driving me nuts for a few days, and unfortunately there’s very little documentation online on .Net MAUI…I’m hoping because it’s still relatively new. Don’t get me started on how frustrating both .Net MAUI and Xamarin can be…I’m sure you already know.

My latest project – OAQ

My latest project – OAQ

Several years ago I took a Raspberry Pi 2 B+ and turned it into SLRPi – the SETI listener for Raspberry Pi. It was a custom build of Debian Jessie and a custom build of BOINC for the SETI project. You can read more about that effort here. Earlier this year it was announced that this phase of the project was ending. After 20 years of collecting data it was time for them to do some data mining and look…

Read More Read More

Http 404 in facebook link image preload

Http 404 in facebook link image preload

Just in case I ever forget (or if you get stuck on this), if you have a site you’re trying to either link to or shortlink to so you can post the link in a FB post and have the image automatically load, but for whatever reason it keeps saying “404 not found” in the FB post, do this: First, go to the target URL and delete the cache for that page. Either reset the OutputCache duration, delete the cache…

Read More Read More

Automated JS unit testing in VS Code

Automated JS unit testing in VS Code

I love using VS Code, and i want to be more diligent about unit testing especially with JavaScript. There didn’t seem to be an obvious way to do this in VS Code, so I cobbled together a few resources that ended up working well. It does require you have node.js installed on your machine first, so get that then proceed. By the way, for those of you familiar with unit testing this may seem remedial and possibly outdated. It’s new…

Read More Read More