Skip to content

Instantly share code, notes, and snippets.

@kfreezen
kfreezen / TestApp.build.log
Created May 9, 2019 13:17
Build Log for Xamarin.Mac report
Building TestApp (Debug)
Build started 5/9/2019 9:00:10 AM.
__________________________________________________
Project "/Users/kent/Projects/TestApp/TestLibrary/TestLibrary.csproj" (Build target(s)):
Building with tools version "Current".
Target "_CheckForUnsupportedTargetFramework" skipped, due to false condition; ('$(_UnsupportedTargetFrameworkError)' == 'true') was evaluated as ('' == 'true').
Target _CollectTargetFrameworkForTelemetry:
Task "Telemetry"
@kfreezen
kfreezen / windbg-net-go.md
Created February 26, 2019 20:29
Using WinDBG to debug .NET / Golang interop

Using WinDBG with .NET and Golang

Make sure you have WinDBG (I prefer WinDBG Preview from Microsoft Store on Windows 10)

The next step is to download (PssCor4)[https://download.microsoft.com/download/2/C/E/2CE778CF-3A42-48FE-9EFF-4C76B4ECB147/Psscor4.EXE] and extract it to a folder (e.g. E:\debug).

Once you have that done, you can go to windbg and start the process from there.

Once the first breakpoint is hit in WinDBG, (should happen on start by default) run the following command.

@kfreezen
kfreezen / datagridcomboboxcolumn-singleclick.markdown
Last active August 2, 2023 08:14
DataGridComboBoxColumn single-click edit. Commit edit after selection changed

I experienced some frustration with lack of other examples on getting select boxes to work on WPF DataGrid.

The first problem I encountered was that combo boxes did not have single-click to edit. That's what the Setters are for.

The next problem was that once I selected an item in a combobox, the combobox would not leave edit mode if I clicked directly into the next row. That's what the LostFocus and GotFocus events fix.

<!-- XAML -->
<DataGridComboBoxColumn
    ItemsSource="{Binding Source=Blah}"
@kfreezen
kfreezen / ssl-certs.markdown
Last active October 10, 2020 18:12
Creating a trusted SSL certificate chain on Ubuntu with openssl

Trusted SSL on localhost

I'll try to tell you how to get yourself a nice green "Secure" button on your localhost.

1. Lay the ground work

I stored everything in .ssl in my home folder. To be really secure, make sure you apply proper permissions to this folder.

mkdir .ssl
chmod -R 700 .ssl