Skip to content

Instantly share code, notes, and snippets.

@kentcb
kentcb / App.xaml
Created February 19, 2017 00:02
Mahapps DataGrid Styling Issue
<Application x:Class="App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MyApp"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
  • My blog is here, repository here
  • Up until fairly recently, everything worked fine. I think my last blog post (around early July) broke things
  • Root page works and stylesheets are resolved correctly (e.g. http://kent-boogaart.com/public/css/poole.css)
  • Clicking on any blog post causes that same style sheet to be loaded incorrectly from http://kent-boogaart.com/blog/public/css/poole.css
  • Everything works fine when running Jekyll locally (3.1.6), only fails when deployed to GitHub pages
  • Here is the relevant line in my include
  • Here is the value of site.baseurl (/)
  • I've forced a re-publish to no avail (just in case this was a Jekyll bug that has since been patched)
  • Could maybe work around this by changing [the permalink](https://github.com/kentcb/kentcb.github.io
This file has been truncated, but you can view the full file.
[PCLMock.CodeGeneration.XmlBasedGenerator] Loading XML input file 'C:\Users\Kent\Repository\QUT\Src\UnitTests\Mocks.xml'.
[PCLMock.CodeGeneration.Models.Configuration] Created configuration with the following rules:
- Namespaces matching 'QUT\.(?<remainder>.*)' will be replaced with 'QUT.UnitTests.${remainder}'.
- Namespaces matching '(?<name>.+)' will be replaced with '${name}.Mocks'.
- Names matching 'I(?<name>[A-Z].*)' will be replaced with '${name}'.
- Names matching '(?<name>[A-Z].*)\<.*\>' will be replaced with '${name}'.
- Names matching '(?<name>.+)' will be replaced with '${name}Mock'.
- Interfaces matching 'QUT\.Services\..*' will be 'included.
- Interfaces matching 'QUT\.ViewModels\..*' will be 'included.
- Plugin with assembly-qualified name 'PCLMock.CodeGeneration.Plugins.Collections, PCLMock.CodeGeneration' will be applied.
@kentcb
kentcb / Program.cs
Created November 12, 2017 22:21
Method Group Performance Test
using System;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Jobs;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Running;
namespace BenchmarkDotNetHarness
{
class Program
{
@kentcb
kentcb / ItemsWorking.txt
Created December 22, 2017 11:32
Working Items List
Compile: Academic\AcademicWeekItemViewModel.cs
Compile: ActivatableReactiveObject.cs
Compile: Calculator\GPACalculatorViewModel.cs
Compile: Calendar\AllDayEventViewModel.cs
Compile: Calendar\AssignmentEventViewModel.cs
Compile: Calendar\CalendarEventViewModel.cs
Compile: Calendar\CalendarMode.cs
Compile: Calendar\CalendarViewModel.cs
Compile: Calendar\DateViewModel.cs
Compile: Calendar\EditAssignmentEventViewModel.cs
@kentcb
kentcb / ItemsFailing.txt
Created December 22, 2017 11:34
Failing Items List
This file has been truncated, but you can view the full file.
Compile: Academic\AcademicWeekItemViewModel.cs
Compile: ActivatableReactiveObject.cs
Compile: Calculator\GPACalculatorViewModel.cs
Compile: Calendar\AllDayEventViewModel.cs
Compile: Calendar\AssignmentEventViewModel.cs
Compile: Calendar\CalendarEventViewModel.cs
Compile: Calendar\CalendarMode.cs
Compile: Calendar\CalendarViewModel.cs
Compile: Calendar\DateViewModel.cs
Compile: Calendar\EditAssignmentEventViewModel.cs
@kentcb
kentcb / main.log
Last active January 17, 2018 11:00
Latexmk: This is Latexmk, John Collins, 12 Dec. 2017, version: 4.54c.
Rule 'pdflatex': File changes, etc:
Changed files, or newly in use since previous run(s):
'03_Getting_Started.tex'
'codeblocks.tex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -synctex=1 -interaction=nonstopmode -file-line-error -recorder "c:\Users\Kent\Repository\ReactiveUIBook\LaTeX\main.tex"'
[09:05:34]: Spawning C:\Users\kent\Repository\flutter\bin\cache\dart-sdk\bin\dart.exe with args ["C:\\Users\\kent\\Repository\\flutter\\bin\\cache\\dart-sdk\\bin\\snapshots\\analysis_server.dart.snapshot","--client-id=Dart-Code.dart-code","--client-version=2.11.2"]
[09:05:34]: ==> {"id":"1","method":"server.setSubscriptions","params":{"subscriptions":["STATUS"]}}
[09:05:34]: ==> {"id":"2","method":"analysis.setAnalysisRoots","params":{"excluded":[],"included":["c:\\Users\\Kent\\Repository\\<<redacted>>\\src"]}}
[09:05:34]: ==> {"id":"3","method":"analysis.updateContent","params":{"files":{"c:\\Users\\Kent\\Repository\\<<redacted>>\\src\\lib\\features\\timesheet\\ui.dart":{"content":"import 'dart:async';\r\nimport 'dart:core';\r\nimport 'dart:core' as core;\r\n\r\nimport 'package:flutter/material.dart';\r\nimport 'package:flutter_redux/flutter_redux.dart';\r\nimport 'package:meta/meta.dart';\r\nimport 'package:redux/redux.dart';\r\nimport 'package:<<redacted>>/features/login/actions.dart';\r\nimport 'package:<
@kentcb
kentcb / reactive_refresh_indicator.dart
Last active February 17, 2021 02:21
A better RefreshIndicator for flutter
// Copyright 2014 The Chromium Authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following
Module directory does not exist.
NuGet.config not found.
Analyzing build script...
Analyzing /bitrise/src/build.cake...
Processing build script...
Installing addins...
Found package 'Cake.Git 0.19.0' in '/bitrise/src/tools/Addins'.
Package Cake.Git.0.19.0 has already been installed.
Successfully installed 'Cake.Git 0.19.0' to /bitrise/src/tools/Addins
Executing nuget actions took 34.16 ms