{"@attributes":{"version":"2.0"},"channel":{"title":"Marcus' Blog","link":"https:\/\/mbuffett.com\/","description":"Recent content on Marcus' Blog","generator":"Hugo","language":"en","lastBuildDate":"Mon, 19 Oct 2026 12:00:00 +0000","item":[{"title":"Spending 10 months building the most human-like chess bot","link":"https:\/\/mbuffett.com\/posts\/most-human-chess-bot\/","pubDate":"Mon, 19 Oct 2026 12:00:00 +0000","guid":"https:\/\/mbuffett.com\/posts\/most-human-chess-bot\/","description":"<style>\n.oxi-figure { display: block; width: 100%; margin: 28px 0; }\n.oxi-figure figcaption { font-size: 0.85rem; opacity: 0.75; margin-top: 6px; }\n.oxi-chart { width: 100%; height: auto; display: block; font-family: Inter, -apple-system, \"Segoe UI\", sans-serif;\n --surface: #fff; --ink: #222; --muted: #6f6f6f; --grid: #e6e6e6; --axis: #cfcfcf;\n --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #6250d6; --s5: #e87ba4; --human: #8a8a8a; }\nbody.dark-theme .oxi-chart { --surface: #292a2d; --ink: #e8e8ec; --muted: #a9a9b3; --grid: #35373b; --axis: #4e4e57;\n --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #9085e9; --s5: #d55181; --human: #9a9aa3; }\n.oxi-dark { display: none; } body.dark-theme .oxi-light { display: none; } body.dark-theme .oxi-dark { display: block; }\n.oxi-chart .oxi-tick-bg { fill: #d0d4da; } body.dark-theme .oxi-chart .oxi-tick-bg { fill: oklch(38% 0.0101 243); }\n.oxi-chart .oxi-fill-good, .oxi-chart .oxi-yes { fill: oklch(60% 0.17 141); } body.dark-theme .oxi-chart .oxi-fill-good, body.dark-theme .oxi-chart .oxi-yes { fill: oklch(73.5% 0.1736 141); }\n.oxi-chart .oxi-fill-mid { fill: oklch(68% 0.15 76); } body.dark-theme .oxi-chart .oxi-fill-mid { fill: oklch(75% 0.1494 76); }\n.oxi-chart .oxi-fill-bad, .oxi-chart .oxi-no { fill: oklch(60% 0.17 22); } body.dark-theme .oxi-chart .oxi-fill-bad, body.dark-theme .oxi-chart .oxi-no { fill: oklch(70% 0.1648 22); }\n.oxi-chart .oxi-stat { fill: var(--ink); font-variant-numeric: tabular-nums; }\n.oxi-chart .oxi-glyph { fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }\n.oxi-figure { overflow-x: auto; }\n.oxi-chart text { fill: var(--ink); font-size: 12px; letter-spacing: 0; }\n.oxi-chart .oxi-tick { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }\n.oxi-chart .oxi-axis-label { fill: var(--muted); font-size: 11.5px; }\n.oxi-chart .oxi-title { fill: var(--ink); font-size: 12.5px; font-weight: 600; }\n.oxi-chart .oxi-barlabel { font-size: 9.5px; fill: var(--muted, currentColor); }\n.oxi-chart .oxi-grid { stroke: var(--grid); stroke-width: 1; }\n.oxi-chart .oxi-ref { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 3 3; }\n.oxi-chart .oxi-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }\n.oxi-chart .oxi-dot { stroke: var(--surface); stroke-width: 2; }\n.oxi-chart .oxi-bar { stroke: none; }\n.oxi-chart .oxi-end { fill: var(--ink); font-size: 11.5px; font-variant-numeric: tabular-nums; }\n.oxi-chart .oxi-legend { fill: var(--ink); font-size: 11.5px; }\n.oxi-chart .s1.oxi-line { stroke: var(--s1); } .oxi-chart .s1.oxi-dot, .oxi-chart .s1.oxi-bar { fill: var(--s1); }\n.oxi-chart .s2.oxi-line { stroke: var(--s2); } .oxi-chart .s2.oxi-dot, .oxi-chart .s2.oxi-bar { fill: var(--s2); }\n.oxi-chart .s3.oxi-line { stroke: var(--s3); } .oxi-chart .s3.oxi-dot, .oxi-chart .s3.oxi-bar { fill: var(--s3); }\n.oxi-chart .s4.oxi-line { stroke: var(--s4); } .oxi-chart .s4.oxi-dot, .oxi-chart .s4.oxi-bar { fill: var(--s4); }\n.oxi-chart .s5.oxi-line { stroke: var(--s5); } .oxi-chart .s5.oxi-dot, .oxi-chart .s5.oxi-bar { fill: var(--s5); }\n.oxi-chart .human.oxi-line { stroke: var(--human); } .oxi-chart .human.oxi-dot, .oxi-chart .human.oxi-bar { fill: var(--human); }\n.oxi-chart .oxi-dot:hover, .oxi-chart .oxi-bar:hover { opacity: 0.8; }\n.oxi-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }\n.oxi-tile { padding: 14px 16px; border-radius: 10px; background: rgba(127,127,127,0.10); }\n.oxi-tile .v { font-size: 1.7rem; font-weight: 600; line-height: 1.1; }\n.oxi-tile .l { font-size: 0.8rem; opacity: 0.75; margin-top: 4px; }\n.oxi-play { border-radius: 12px; overflow: hidden; background: rgba(127,127,127,0.10); margin: 24px 0; }\n.oxi-play iframe { width: 100%; height: 640px; border: 0; display: block; }\n.oxi-play .cta { padding: 14px 16px; font-size: 0.9rem; }\n.oxi-play .cta a { font-weight: 600; }\n.oxi-vs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 20px 0; font-size: 0.85rem; }\n.oxi-vs > div { padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,0.10); }\n.oxi-vs b { display: block; margin-bottom: 4px; }\n@media (max-width: 684px) { .oxi-vs { grid-template-columns: 1fr; } .oxi-tiles { grid-template-columns: 1fr 1fr; } .oxi-play iframe { height: 560px; } }\n<\/style>\n\n<figure class=\"oxi-figure\"><svg class=\"oxi-chart\" style=\"width:716px;max-width:none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 716 214\" role=\"img\" aria-labelledby=\"t-scorecard\"><title id=\"t-scorecard\">Chessbook-1, Maia-3 and Allie 2.0 at a glance<\/title><desc>Capability scorecard: a 0-100 grade per measurement, and whether the model has the capability at all.<\/desc>\n<text class=\"oxi-tick\" x=\"176.0\" y=\"24\" text-anchor=\"middle\">Predicting<\/text>\n<text class=\"oxi-tick\" x=\"176.0\" y=\"39\" text-anchor=\"middle\">human moves<\/text>\n<text class=\"oxi-tick\" x=\"296.0\" y=\"24\" text-anchor=\"middle\">Matching<\/text>\n<text class=\"oxi-tick\" x=\"296.0\" y=\"39\" text-anchor=\"middle\">strength<\/text>\n<text class=\"oxi-tick\" x=\"416.0\" y=\"24\" text-anchor=\"middle\">Time scramble<\/text>\n<text class=\"oxi-tick\" x=\"416.0\" y=\"39\" text-anchor=\"middle\">play<\/text>\n<text class=\"oxi-tick\" x=\"536.0\" y=\"24\" text-anchor=\"middle\">Predicting<\/text>\n<text class=\"oxi-tick\" x=\"536.0\" y=\"39\" text-anchor=\"middle\">think time<\/text>\n<text class=\"oxi-tick\" x=\"656.0\" y=\"24\" text-anchor=\"middle\">Predicting<\/text>\n<text class=\"oxi-tick\" x=\"656.0\" y=\"39\" text-anchor=\"middle\">who wins<\/text>\n<line class=\"oxi-grid\" x1=\"0\" x2=\"716\" y1=\"52\" y2=\"52\"\/>\n<text class=\"oxi-legend\" x=\"0\" y=\"75.0\" font-weight=\"600\">Chessbook-1<\/text>\n<text class=\"oxi-tick\" x=\"0\" y=\"91.0\">199M parameters<\/text>\n<g><title>96 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"156.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"160.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"164.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"168.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"172.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"176.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"180.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"184.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"188.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"192.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>81 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"276.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"280.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"284.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"288.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"292.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"296.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"300.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"304.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"308.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"312.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>84 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"396.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"400.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"404.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"408.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"412.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"416.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"420.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"424.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"428.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"432.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>98 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"516.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"520.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"524.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"528.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"532.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"536.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"540.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"544.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"548.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"552.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>97 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"636.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"640.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"644.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"648.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"652.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"656.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"660.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"664.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"668.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"672.5\" y=\"74.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<line class=\"oxi-grid\" x1=\"0\" x2=\"716\" y1=\"104\" y2=\"104\"\/>\n<text class=\"oxi-legend\" x=\"0\" y=\"127.0\" font-weight=\"600\">Maia-3<\/text>\n<text class=\"oxi-tick\" x=\"0\" y=\"143.0\">79M parameters<\/text>\n<g><title>85 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"156.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"160.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"164.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"168.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"172.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"176.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"180.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"184.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"188.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"192.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>56 \/ 100<\/title><rect class=\"oxi-fill-mid\" x=\"276.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"280.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"284.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"288.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"292.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"296.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"300.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"304.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"308.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"312.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>57 \/ 100<\/title><rect class=\"oxi-fill-mid\" x=\"396.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"400.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"404.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"408.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"412.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"416.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"420.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"424.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"428.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"432.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><circle class=\"oxi-no\" cx=\"536.0\" cy=\"130.0\" r=\"8.5\"><title>No<\/title><\/circle><path class=\"oxi-glyph\" d=\"M532.7 126.7 L539.3 133.3 M539.3 126.7 L532.7 133.3\"\/><\/g>\n<g><title>80 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"636.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"640.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"644.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"648.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"652.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"656.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"660.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"664.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"668.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"672.5\" y=\"126.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<line class=\"oxi-grid\" x1=\"0\" x2=\"716\" y1=\"156\" y2=\"156\"\/>\n<text class=\"oxi-legend\" x=\"0\" y=\"179.0\" font-weight=\"600\">Allie 2.0<\/text>\n<text class=\"oxi-tick\" x=\"0\" y=\"195.0\">5.6B parameters<\/text>\n<g><title>99 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"156.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"160.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"164.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"168.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"172.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"176.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"180.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"184.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"188.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"192.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>48 \/ 100<\/title><rect class=\"oxi-fill-mid\" x=\"276.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"280.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"284.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"288.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-mid\" x=\"292.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"296.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"300.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"304.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"308.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"312.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>99 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"396.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"400.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"404.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"408.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"412.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"416.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"420.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"424.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"428.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"432.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>73 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"516.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"520.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"524.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"528.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"532.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"536.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"540.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"544.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"548.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-tick-bg\" x=\"552.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<g><title>99 \/ 100<\/title><rect class=\"oxi-fill-good\" x=\"636.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"640.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"644.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"648.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"652.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"656.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"660.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"664.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"668.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><rect class=\"oxi-fill-good\" x=\"672.5\" y=\"178.0\" width=\"3\" height=\"8\" rx=\"0.5\"\/><\/g>\n<line class=\"oxi-grid\" x1=\"0\" x2=\"716\" y1=\"212\" y2=\"212\"\/>\n<\/svg>\n<\/figure>\n\n<p>Everyone knows playing against an engine like Stockfish is nothing like playing a human. The existing human-like models (Allie 2.0, Maia-3) weren&rsquo;t quite right for my use case, and I became a bit obsessed with making the best one.<\/p>"},{"title":"Improving in chess is hard. I built the world's most human-like chess AI to help me.","link":"https:\/\/mbuffett.com\/posts\/chess-move-prediction\/","pubDate":"Fri, 31 Oct 2025 12:16:47 +0100","guid":"https:\/\/mbuffett.com\/posts\/chess-move-prediction\/","description":"<img src=\"https:\/\/mbuffett.com\/OxiOrigin.png\" class=\"center\"\/>\n<p>Getting better at chess is <em>really hard<\/em>. My theory is that it&rsquo;s at least partially because of the feedback lag. Imagine learning to play the violin, but you have to play each song with earplugs in, then listen to the recording after. This is roughly what chess learning feels like, outside of focused drills. You play a game, ignorant of which moves are good and bad, then you get feedback from the computer at the end of the game \u2013 way past the point where you made the move. I don&rsquo;t think this is compatible with how humans learn, generally.<\/p>"},{"title":"An honest review of my last year building Chessbook","link":"https:\/\/mbuffett.com\/posts\/chessbook-year-review-2024\/","pubDate":"Wed, 26 Feb 2025 12:16:47 +0100","guid":"https:\/\/mbuffett.com\/posts\/chessbook-year-review-2024\/","description":"<p>Last year, I quit my job to work full-time on a chess app I created. It\u2019s my first time working full-time on a project of my own, and it\u2019s been both terrifying and gratifying.<\/p>\n<p>To close out my first year, I\u2019m sharing an honest account of the mistakes I\u2019ve made as a founder as well as the the things I felt I did well.<\/p>\n<div class=\"flex items-center justify-between flex-row w-full\">\n \n <h2 style=\"display: inline-block; margin: 0;\">Marketing<\/h2>\n \n <div class=\"ml-6 flex-shrink-0\">\n <span class=\"font-semibold text-xl\">\n <span class=\" text-red-600\">2<\/span>\/5\n <\/span>\n <\/div>\n<\/div>\n\n<p>Ugh. I&rsquo;ve tried paid ads virtually everywhere (Meta, X\/Twitter, Reddit, Google), I&rsquo;ve tried affiliate programs, word-of-mouth stuff like free merch to people going to tournaments and clubs, running chess tournaments, sponsoring streamers&hellip;<\/p>"},{"title":"My Deep-cut Book Recs","link":"https:\/\/mbuffett.com\/posts\/deep-cut-book-recs\/","pubDate":"Wed, 01 Jan 2025 21:14:31 -0500","guid":"https:\/\/mbuffett.com\/posts\/deep-cut-book-recs\/","description":"<img src=\"https:\/\/mbuffett.com\/deep_cut_books.png\" class=\"center\"\/>\n<p>Here are some lesser-known books I&rsquo;ve loved, that you won&rsquo;t find in typical recommendation lists \u2013 the deep-cuts.<\/p>\n<h3 id=\"replacing-guilt-minding-our-way\">Replacing Guilt: Minding Our Way<\/h3>\n<p>This book is all about the role of guilt. When is it useful, when is it not, what can be done about it.<\/p>\n<p>This could have easily been packaged like a best-selling pop-psychology book \u2013 padded to 200 pages with a sampling of the same anecdotes we&rsquo;ve all read 100 times, fitting a narrative to the life of a celebrity or two to lend credibility, and repeating the same core message a hundred times. Instead it felt like reading a well-organized journal entry. I both respect the author for taking the path less traveled, and love the format for its own sake. I wish more books like this existed. It&rsquo;s sort of in a class of its own.<\/p>"},{"title":"Treat your onboarding users like toddlers","link":"https:\/\/mbuffett.com\/posts\/onboarding-babies\/","pubDate":"Thu, 12 Dec 2024 12:16:47 +0100","guid":"https:\/\/mbuffett.com\/posts\/onboarding-babies\/","description":"<p>One of the biggest realizations I&rsquo;ve had when building <a href=\"https:\/\/chessbook.com\">Chessbook<\/a> is that onboarding a user is <em>really<\/em> hard. A user that&rsquo;s coming in from some generic marketing, or from a blog post they found, or from organic search&hellip; well, the closest mental model is that they&rsquo;re precocious toddlers.<\/p>\n<p>They won&rsquo;t read more than a couple sentences of explanation. Usually they&rsquo;ll skip that entirely and just hit the shiniest button. You have to keep snapping your fingers in front of their face every 10 seconds or so, or they&rsquo;ll <del>walk away<\/del> close the tab. If they experience any friction, there&rsquo;s about a 50\/50 chance of them just deciding to go <del>play with a different toy<\/del> scroll Twitter instead.<\/p>"},{"title":"How I prevent myself from committing temporary code to production","link":"https:\/\/mbuffett.com\/posts\/prevent-temporary-code-production\/","pubDate":"Thu, 12 Dec 2024 02:32:08 +0100","guid":"https:\/\/mbuffett.com\/posts\/prevent-temporary-code-production\/","description":"<p>I have a chronic problem of committing debug code to production. I often adjust code while testing out assumptions, reproducing issues, or trying alternative ways of implementing a feature or fixing a bug. When I&rsquo;m committing thousands of lines per week, and with no-one reviewing my commits, occasionally some of this code slips through.<\/p>\n<p>A couple months ago I had one particularly annoying piece of debugging code make it to production. We ended up in a loop of fetching user&rsquo;s data when they visited the site. This caused a whole host of issues, including mobile app slowness, and over-fetching from an external service we rely on.<\/p>"},{"title":"Locality of Behaviour, over the Single Responsibility Principle","link":"https:\/\/mbuffett.com\/posts\/locality-over-single-responsibility-principle\/","pubDate":"Thu, 05 Dec 2024 13:14:19 +0100","guid":"https:\/\/mbuffett.com\/posts\/locality-over-single-responsibility-principle\/","description":"<blockquote>\n<p><strong>Bob<\/strong>: This is where I keep all the notes I wrote in red pen, and likewise for all my blue notes, my green notes, and my purple notes<\/p>\n<p><strong>Alice<\/strong>: Doesn&rsquo;t this split your chemistry notes up into 3 different piles? Why not keep those together?<\/p>\n<p><strong>Bob<\/strong>: <em>gasp<\/em> \u2013 and break the Single Color Principle?<\/p>\n<\/blockquote>\n<p><strong>Disclaimer<\/strong> The shitty part of becoming a more senior engineer is your opinions become a mystifying web of &ldquo;it depends&rdquo; \u2013 a pile of vague intuitions and bag of exceptions, the kind that drove proponents of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Expert_system#:~:text=Expert%20systems%20are%20designed%20to,successful%20forms%20of%20AI%20software.\">expert systems<\/a> insane. You don&rsquo;t get to have simple &ldquo;this thing bad&rdquo; opinions anymore. So either I get wrapped up in that and never write down my opinions at all, or I write a dissertation. Here&rsquo;s a very lossily-compressed version of my thoughts instead, optimized more for enjoyment to write\/read, than Truth. &ldquo;Useful, not true&rdquo; as Derek Sivers says.<\/p>"},{"title":"A Made-up Name is Better Than No Name","link":"https:\/\/mbuffett.com\/posts\/a-made-up-name\/","pubDate":"Sat, 30 Nov 2024 13:14:19 +0100","guid":"https:\/\/mbuffett.com\/posts\/a-made-up-name\/","description":"<p>In working on Chessbook recently, I often found myself referring to (position, move) pairs. Specifically positions that are stored as EPDs, and moves that are stored in San notation.<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\"><code class=\"language-rust\" data-lang=\"rust\"><span style=\"display:flex;\"><span><span style=\"color:#66d9ef\">let<\/span> difficulty_by_epd_san <span style=\"color:#f92672\">=<\/span> <span style=\"color:#75715e\">\/\/...;\n<\/span><\/span><\/span><span style=\"display:flex;\"><span><span style=\"color:#75715e\"><\/span><span style=\"color:#66d9ef\">let<\/span> existing_epd_sans <span style=\"color:#f92672\">=<\/span> <span style=\"color:#75715e\">\/\/...;\n<\/span><\/span><\/span><span style=\"display:flex;\"><span><span style=\"color:#75715e\"><\/span><span style=\"color:#66d9ef\">let<\/span> unique_moves_by_epd_san <span style=\"color:#f92672\">=<\/span> <span style=\"color:#75715e\">\/\/...;\n<\/span><\/span><\/span><span style=\"display:flex;\"><span><span style=\"color:#75715e\"><\/span><span style=\"color:#66d9ef\">fn<\/span> <span style=\"color:#a6e22e\">epd_san_plus_to_condition<\/span>((epd, san_plus): <span style=\"color:#66d9ef\">&amp;<\/span>(String, String)) -&gt; <span style=\"color:#a6e22e\">_<\/span> <span style=\"color:#75715e\">\/\/...;\n<\/span><\/span><\/span><\/code><\/pre><\/div><p>I got so used to thinking of these things together as pairs, and wished I had a name for it. I couldn&rsquo;t think of an existing name that worked well and wasn&rsquo;t a mouthful like <code>MoveFromPosition<\/code>. So I made up a name. Anything that&rsquo;s an EPD and a San, is now a Kep. Because that&rsquo;s the first thing that popped in my head. It&rsquo;s a short, made-up name to nicely refer to a position string and a move notation.<\/p>"},{"title":"Creating an optimized keyboard layout for the next generation of the Datahand","link":"https:\/\/mbuffett.com\/posts\/optimizing-datahand-layout\/","pubDate":"Wed, 30 Oct 2024 13:14:19 +0100","guid":"https:\/\/mbuffett.com\/posts\/optimizing-datahand-layout\/","description":"<p>Ever seen this keyboard? This was called the Datahand, it was a radical new approach to keyboards that mostly only existed within a small community of RSI sufferers. It cost $2,000 in 1993, which is north of $4,000 today, so you really had to <em>need<\/em> this thing to justify the price. Even now there&rsquo;s a small community that continues to use these.<\/p>\n<img src=\"https:\/\/mbuffett.com\/datahand.png\" class=\"center\"\/>\n<p>For a long time after Datahand shut down production, there was no real replacement. Then Morgan Venable, alias Claussen, created <a href=\"https:\/\/svalboard.com\">Svalboard<\/a>. It&rsquo;s a modern take on the same formula, created by a consumer electronics professional whose career was saved by the Datahand decades ago. In fact, the creator of Datahand even uses a Svalboard nowadays!<\/p>"},{"title":"The 2030 Rust Update","link":"https:\/\/mbuffett.com\/posts\/rust-2030\/","pubDate":"Thu, 29 Aug 2024 00:27:55 +0200","guid":"https:\/\/mbuffett.com\/posts\/rust-2030\/","description":"<p>Welcome to the end-of-year update for the Rust language. 2030 has been a huge year for us, with some huge wins but also a couple setbacks. We&rsquo;d like to highlight some of these moments and look back on the past year of work on Rust.<\/p>\n<h2 id=\"async-woes\">Async woes<\/h2>\n<p>Despite our best efforts, there are still some large issues with async rust. Async traits come with significant limitations, async closures aren&rsquo;t supported, error messages can be cryptic, it&rsquo;s easy to accidentally block the executor, and many crates only work with specific runtimes.<\/p>"},{"title":"A Bunch of Programming Advice I'd Give To Myself 15 Years Ago","link":"https:\/\/mbuffett.com\/posts\/programming-advice-younger-self\/","pubDate":"Sat, 29 Jun 2024 12:39:27 +0200","guid":"https:\/\/mbuffett.com\/posts\/programming-advice-younger-self\/","description":"<p>I finally have the feeling that I&rsquo;m a decent programmer, so I thought it would be fun to write some advice with the idea of &ldquo;what would have gotten me to this point faster?&rdquo; I&rsquo;m not claiming this is great advice for everyone, just that it would have been good advice for me.<\/p>\n<h2 id=\"if-you-or-your-team-are-shooting-yourselves-in-the-foot-constantly-fix-the-gun\">If you (or your team) are shooting yourselves in the foot constantly, fix the gun<\/h2>\n<p>I can&rsquo;t tell you how many times I&rsquo;ve been on a team and there&rsquo;s something about the system that&rsquo;s very easy to screw up, but no one thinks about ways to make it harder to make that mistake.<\/p>"},{"title":"Abstractions Are The Best, Abstractions Are The Worst","link":"https:\/\/mbuffett.com\/posts\/abstractions-best-worst\/","pubDate":"Sat, 15 Jun 2024 23:20:45 +0200","guid":"https:\/\/mbuffett.com\/posts\/abstractions-best-worst\/","description":"<h2 id=\"abstractions-are-the-best\">Abstractions are the best<\/h2>\n<blockquote>\n<p>Your code will be safer and more readable. It will prevent entire classes of bugs. It will be easier to add new features.<\/p>\n<\/blockquote>\n<p>You can inject dependencies at runtime to make testing easy.<\/p>\n<p>You can swap out your third party dependencies.<\/p>\n<p>You can adapt quicker to business logic changes.<\/p>\n<p>You can treat X and Y as the same thing. They&rsquo;re both forms of Z, after all.<\/p>"},{"title":"Managing My Motivation, as a Solo Dev","link":"https:\/\/mbuffett.com\/posts\/maintaining-motivation\/","pubDate":"Wed, 05 Jun 2024 17:38:46 +0200","guid":"https:\/\/mbuffett.com\/posts\/maintaining-motivation\/","description":"<p>One of the biggest sticking points of being a solo dev is maintaining motivation. I&rsquo;ve been keeping a journal entry about how to hack my motivation, what works and what doesn&rsquo;t. Here are the things that have worked.<\/p>\n<h3 id=\"convert-external-sources-to-motivation\">Convert external sources to motivation<\/h3>\n<p>I&rsquo;ve always known that I&rsquo;m more extrinsically than intrinsically motivated, so I have a couple systems that help to give me bursts of external motivation. For example, the Money Bots, which pop up every time someone subscribes.<\/p>"},{"title":"Processing 6 Billion Chess Games in Less Than 2 Hours","link":"https:\/\/mbuffett.com\/posts\/ingesting-chess-games\/","pubDate":"Tue, 26 Mar 2024 18:14:22 -0600","guid":"https:\/\/mbuffett.com\/posts\/ingesting-chess-games\/","description":"<h2 id=\"background\">Background<\/h2>\n<p>I run a chess site, <a href=\"https:\/\/chessbook.com\">https:\/\/chessbook.com<\/a>. We ingest a <em>ton<\/em> of games, nearly 6 billion, to power our various statistics. Our current database has about 900 million lines. We&rsquo;re working on our next evolution of this database, and that entails re-ingesting all these games, but going much deeper on each game.<\/p>\n<p>Our existing solution was already pretty optimized, you can&rsquo;t get through 1.6 terabytes of data in a reasonable timeframe without <em>some<\/em> optimization, but we needed to really squeeze more performance out of it this time, as we bumped up the amount of data that it was going to get from each of these 6 billion games. We needed to fit what we needed into memory, and to do it in a reasonable timeframe. I don&rsquo;t want to be waiting around for weeks for this to finish, only to notice a data issue at the end and have to wait weeks again as we re-run everything. Quick feedback loops are essential to development, I wanted this ingestion job to take less than a day ideally.<\/p>"},{"title":"Compressing Chess Moves Even Further, To 3.7 Bits Per Move","link":"https:\/\/mbuffett.com\/posts\/compressing-chess-moves-even-further\/","pubDate":"Thu, 14 Mar 2024 14:48:39 -0600","guid":"https:\/\/mbuffett.com\/posts\/compressing-chess-moves-even-further\/","description":"<p>I wrote <a href=\"https:\/\/mbuffett.com\/posts\/compressing-chess-moves\/\">a post<\/a> yesterday about how to compress chess\nmoves. I was pretty happy with my hand-rolled compression scheme, which\nachieved a per-move size of 9.5 bits. I almost just rolled with it, but I&rsquo;ve\nbeen thoroughly nerd-sniped here, so I took another crack at it.<\/p>\n<h2 id=\"to-know-the-board-state-or-not\">To know the board state or not<\/h2>\n<p>One of the main considerations in compressing chess moves is how much\nchess-specific computation you want to do. One of the most optimal forms of\ncompression is actually to evaluate the position, use an engine\nlike Stockfish, and then store the index of the move. This isn&rsquo;t really a\nviable method though, the CPU cost is insane. But that&rsquo;s just to highlight what\none end of the spectrum looks like.<\/p>"},{"title":"Compressing Chess Moves for Fun and Profit","link":"https:\/\/mbuffett.com\/posts\/compressing-chess-moves\/","pubDate":"Wed, 13 Mar 2024 14:48:39 -0600","guid":"https:\/\/mbuffett.com\/posts\/compressing-chess-moves\/","description":"<p>UPDATE: I&rsquo;ve written a <a href=\"https:\/\/mbuffett.com\/posts\/compressing-chess-moves-even-further\/\">new post<\/a> with a new technique which is about 2.5x more efficient than this approach<\/p>\n<p>Chess notation has come a long way since <a href=\"https:\/\/en.wikipedia.org\/wiki\/Descriptive_notation\">descriptive\nnotation<\/a>, now we have nice\nand decipherable Standard Algebraic Notation, like <code>Qxf7<\/code> (queen takes on\nf7) or <code>Nf3<\/code> (knight takes on f3).<\/p>\n<p>This is a great text format, but a massive waste of\nspace if you&rsquo;re trying to store a lot of these. <code>Qxf7<\/code> takes 4 bytes, or 32 bits. Let&rsquo;s do some rough back-of-the-envelope math of how much information is actually being transmitted though.\nThis move affects one of 6 pieces (3 bits), this move is also a capture (1\nbit), and it specifies a destination squuare (64 possibilities == 6 bits). Add those up, you get 10 bits. Far from the 32 bits that the textual representation needs.<\/p>"},{"title":"How useless is memorizing openings, as an amateur Lichess player?","link":"https:\/\/mbuffett.com\/posts\/chess-openings-useless\/","pubDate":"Thu, 27 Jan 2022 04:38:22 +0000","guid":"https:\/\/mbuffett.com\/posts\/chess-openings-useless\/","description":"<p>I recently downloaded Lichess&rsquo; database of all December &lsquo;21 games.\nAfter using it to generate puzzles for my chess training site, I realized I\ncould also use it to find out something I&rsquo;ve been wondering a long time: how\nuseless, exactly, is it for me to memorize chess openings?<\/p>\n<p>I&rsquo;m ~1700 on Lichess, so I chose the ELO range of games for these statistics as\n1600-1900. The generated database has 10 million games, and 26 million opening lines, at\na max depth of 12 half-moves. Along with the opening database, it takes up most\nof the space on my computer.<\/p>"},{"title":"Generating Chess Puzzles Fast with Rust and Stockfish","link":"https:\/\/mbuffett.com\/posts\/generating_chess_puzzles\/","pubDate":"Sat, 15 Jan 2022 06:34:24 -0800","guid":"https:\/\/mbuffett.com\/posts\/generating_chess_puzzles\/","description":"<p>Generally, chess puzzles will present you with a position and ask you to find\nthe best move. There&rsquo;s only one, and all other moves are losing. These\nare great, but I&rsquo;ve been thinking of a different\nstyle of puzzle that I&rsquo;d like to practice with. What I want is a chess position,\nthen two moves presented as options; one is a blunder, and one is the best move.\nThe idea is to train my ability to spot blunders, like regular puzzles train\nyour ability to find forcing lines.<\/p>"},{"title":"Book Review 2021","link":"https:\/\/mbuffett.com\/posts\/book-review-2021\/","pubDate":"Tue, 04 Jan 2022 12:42:13 -0500","guid":"https:\/\/mbuffett.com\/posts\/book-review-2021\/","description":"<p>The annual book review, 2021 edition. Ratings are solely about how much I\nenjoyed the book. I&rsquo;m not reviewing these books like a critic, if the book has\na bunch of tropes or something, but it kept me hooked from start to finish, I&rsquo;m\nnot going to mark it down. For example, I actually love reading books with a\nMary Sue main character, so my rating is going to be divorced from a book\ncritics review there.<\/p>"},{"title":"Scattered Thoughts on Why I Waste My Own Time","link":"https:\/\/mbuffett.com\/posts\/wasting_time\/","pubDate":"Wed, 10 Nov 2021 16:23:31 +0100","guid":"https:\/\/mbuffett.com\/posts\/wasting_time\/","description":"<p>I spend way too much time on reddit, hacker news, twitter, feedly, coinbase,\nrobinhood, email, etc. I&rsquo;d like to spend time on things that are more\nmeaningful - chess, digital painting, side projects, reading, video games,\nexercising, meditating, etc. This has been a problem for years.<\/p>\n<p>This post is only slightly adapted from my personal notes, so excuse the lack\nof structure; I didn&rsquo;t want to try to twist this jumble of thoughts into a\nnarrative.<\/p>"},{"title":"Thoughts on chess improvement, after gaining 600 points in 6 months","link":"https:\/\/mbuffett.com\/posts\/chess_improvement_thoughts\/","pubDate":"Wed, 06 Oct 2021 21:32:28 +0200","guid":"https:\/\/mbuffett.com\/posts\/chess_improvement_thoughts\/","description":"<p>I played chess briefly with my friends in high school, where I had a rating of\naround 1100 online. I gave up the game for about 10 years, then picked it back\nup again recently, in May. I&rsquo;ve tried a ton of different approaches in the past\n6 months, switching things up whenever I stopped seeing results. I&rsquo;ve improved\nfrom 1238 to 1802, and based on my win rate currently I think I&rsquo;ve got another\n50 points in me before I plateau again. From what I&rsquo;ve seen online, this is\nsolid improvement for an &ldquo;adult improver&rdquo;, so I figured I&rsquo;d write up some\nthoughts\/observations.<\/p>"},{"title":"An Incomplete Explanation of the Proc Macro That Saved Me 4000 Lines of Rust","link":"https:\/\/mbuffett.com\/posts\/incomplete-macro-walkthrough\/","pubDate":"Tue, 04 May 2021 14:48:47 -0700","guid":"https:\/\/mbuffett.com\/posts\/incomplete-macro-walkthrough\/","description":"<p>Recently I&rsquo;ve been working on a project to surface census data via a GraphQL\nAPI, mostly as a way to learn GraphQL. I did end up learning GraphQL, but I also\nended up learning a lot about proc macros. I was using Juniper, which creates a\nGraphQL schema using structs like this:<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\"><code class=\"language-rust\" data-lang=\"rust\"><span style=\"display:flex;\"><span><span style=\"color:#75715e\">#[derive(GraphQLObject, Copy, Clone, Debug)]<\/span>\n<\/span><\/span><span style=\"display:flex;\"><span><span style=\"color:#66d9ef\">struct<\/span> <span style=\"color:#a6e22e\">Demographics<\/span> {\n<\/span><\/span><span style=\"display:flex;\"><span> female: Option<span style=\"color:#f92672\">&lt;<\/span><span style=\"color:#66d9ef\">i32<\/span><span style=\"color:#f92672\">&gt;<\/span>,\n<\/span><\/span><span style=\"display:flex;\"><span> male: Option<span style=\"color:#f92672\">&lt;<\/span><span style=\"color:#66d9ef\">i32<\/span><span style=\"color:#f92672\">&gt;<\/span>,\n<\/span><\/span><span style=\"display:flex;\"><span>}\n<\/span><\/span><\/code><\/pre><\/div><p>The problem, is that the census data I was looking to surface had <em>way<\/em> too many\nvariables, I would have had to write out 207 structs, with a total of 352\nfields. Here&rsquo;s a <a href=\"https:\/\/gist.github.com\/marcusbuffett\/693026a0a8923bec98e67259f5e71a66\">nice tree-view of the census\ndata<\/a>,\ncourtesy of the <a href=\"https:\/\/github.com\/birchb1024\/frangipanni\">frangipanni<\/a> tool.\nObviously, I didn&rsquo;t want to write out all these structs and fields by hand, even\nwith some fancy vim macros that would have been too much tedious work for a side\nproject that&rsquo;s supposed to be fun.<\/p>"},{"title":"How Much of the Hitchhiker's Guide to the Galaxy Can You Fit on a QR Code?","link":"https:\/\/mbuffett.com\/posts\/qr-code-hitchhikers-guide\/","pubDate":"Sun, 28 Mar 2021 12:14:18 -0600","guid":"https:\/\/mbuffett.com\/posts\/qr-code-hitchhikers-guide\/","description":"<p>I&rsquo;ve been dealing with QR codes recently, as one of my side projects generates\nthem, and I got curious about how much data you can really fit in a QR code.\nSpecifically, I wondered how much of my favorite book I could fit on one QR\ncode.<\/p>\n<h2 id=\"qr-code-versions\">QR Code versions<\/h2>\n<p>QR Codes have different versions, but they&rsquo;re not versions as you&rsquo;d generally\nthink about them, version in this case just means a particular size. Version 1\nhas 21 rows of &ldquo;modules&rdquo;, or dots, and 21 columns of modules. Version 2 is\n25x25, version 3 is 29x29, etc. The highest version in the spec is version 40,\nwhich is composed of 177x177 modules. So an upper bound for the bytes we have to\nwork with is 3916 ( 177 * 177 \/ 8 ), but there is some overhead to each QR\ncode. Some modules are used for alignment, some are used for position (the large\nsquares in the corners), and some are used for metadata like version and format\ninformation. The biggest overhead takes the form of error correction.<\/p>"},{"title":"Unironically Using Kubernetes for my Personal Blog","link":"https:\/\/mbuffett.com\/posts\/kubernetes-setup\/","pubDate":"Tue, 16 Mar 2021 18:39:04 -0600","guid":"https:\/\/mbuffett.com\/posts\/kubernetes-setup\/","description":"<p>There&rsquo;s no shortage of posts like <a\nhref=\"https:\/\/pythonspeed.com\/articles\/dont-need-kubernetes\/\">\u201cLet\u2019s use\nKubernetes!\u201d Now you have 8 problems<\/a>, or <a\nhref=\"https:\/\/thenewstack.io\/do-i-really-need-kubernetes\/\">Do I Really Need\nKubernetes?<\/a>, which tend to argue that unless you&rsquo;re orchestrating 1000\ncontainers, you&rsquo;re good without Kubernetes. Also, I thought this tweet was hilarious:<\/p>\n<p>So&hellip; Hi, I&rsquo;m the guy using Kubernetes for my blog and small side projects,\nhere&rsquo;s why I love it (to the extent one can love a deploy tool).<\/p>\n<h2 id=\"you-dont-need-all-that-complexity\">&ldquo;You don&rsquo;t need all that complexity&rdquo;<\/h2>\n<p>Undoubtedly, Kubernetes is doing a <em>lot<\/em> under the hood. But as an end-user, I&rsquo;m\nnot exposed to that complexity. After spending a couple hours learning the key\nconcepts through the official tutorial, it really is very easy to use\nday-to-day.<\/p>"},{"title":"My Experience Switching to Gatsby, from Next.js","link":"https:\/\/mbuffett.com\/posts\/gatsby-vs-nextjs-quick-thoughts\/","pubDate":"Tue, 01 Dec 2020 23:54:30 -0500","guid":"https:\/\/mbuffett.com\/posts\/gatsby-vs-nextjs-quick-thoughts\/","description":"<p>Just some quick thoughts on Gatsby and Next.js, after trying both for a project\nI worked on recently (<a href=\"https:\/\/theconnection.page\/\">this one<\/a>). I&rsquo;ve been a\nNext.js user for about a year, and for this project I tried to use Gatsby, with\nlimited success.<\/p>\n<h2 id=\"hot-reloading\">Hot-reloading<\/h2>\n<p>Hot-reloading started out pretty shaky for me when I first tried Next.js\nabout a year ago. But since 9.4 it&rsquo;s been spot-on. Gatsby hot-reloading mostly\nworked well, although if there was an error, the page wouldn&rsquo;t reload after\nfixing the code. Since errors happen all the time in development, it got pretty\nannoying to have to manually refresh after fixing every error.<\/p>"},{"title":"CRUD with Rocket and Sled","link":"https:\/\/mbuffett.com\/posts\/rocket-sled-tutorial\/","pubDate":"Thu, 22 Oct 2020 17:17:43 -0400","guid":"https:\/\/mbuffett.com\/posts\/rocket-sled-tutorial\/","description":"<p>In my last project I used <a href=\"http:\/\/sled.rs\/\">Sled<\/a> and\n<a href=\"https:\/\/rocket.rs\/\">Rocket<\/a>. I had to piece together how to use the two from a\nfew different places so I put together this quick guide in case it helps others.<\/p>\n<p>The full code for this walkthrough is availabe\n<a href=\"https:\/\/github.com\/marcusbuffett\/rocket_sled_tutorial\">here<\/a>, if you want to\nfast-forward to the finished product. A lot of this ends up being about error\nhandling, so that using sled in endpoints is more ergonomic. If you don&rsquo;t care\nto dive into error handling, you may want to skip those sections.<\/p>"},{"title":"Creating a Snake Clone in Rust, with Bevy","link":"https:\/\/mbuffett.com\/posts\/bevy-snake-tutorial\/","pubDate":"Thu, 15 Oct 2020 10:17:49 -0400","guid":"https:\/\/mbuffett.com\/posts\/bevy-snake-tutorial\/","description":"<p><a href=\"https:\/\/bevyengine.org\/\">Bevy<\/a> has seen rapid adoption recently, but the\nlearning resources are still fairly scarce. This is an attempt to provide a next\nstep after the Bevy book. The final product looks like this:<\/p>\n<video autoplay loop muted playsinline class=\"bevy_img\">\n <source src=\"https:\/\/mbuffett.com\/bevy_snake\/new_gifs\/game_over.mp4\" type=\"video\/mp4\" \/>\n<\/video>\n<p>It&rsquo;s about 300 lines of Rust, so buckle in; this is a lengthy walkthrough. If\nyou want to fast-forward to the finished code, the code lives\n<a href=\"https:\/\/github.com\/marcusbuffett\/bevy_snake\">here<\/a>. For each\nsection there&rsquo;s a diff at the top, which should make it easier to determine\nwhere to place snippets of code, when it&rsquo;s not clear.<\/p>"},{"title":"Thoughts on Structured Editing: Breaking Away from Syntax","link":"https:\/\/mbuffett.com\/posts\/structured-editing-syntax\/","pubDate":"Sat, 26 Sep 2020 21:55:45 -0400","guid":"https:\/\/mbuffett.com\/posts\/structured-editing-syntax\/","description":"<p>I was aimlessly browsing Github and came across\n<a href=\"https:\/\/github.com\/kneasle\/sapling\">sapling<\/a>, a very early-stage structured\neditor. It was inspired by <a href=\"http:\/\/shtanton.com\/ex.html\">this blog post<\/a>, which\ntalks about structured editing.<\/p>\n<p>Structured editing has had my interest for a while. I&rsquo;ve put a lot of time and\neffort into getting really good at text editing, but I&rsquo;m holding out hope that\nin 10 years plaintext editing will be outdated. The idea behind structured\nediting is to edit code instead of text, so instead of &ldquo;move cursor to next\nparentheses, delete in parentheses&rdquo;, you&rsquo;d have operations like &ldquo;change function\nargument&rdquo;.<\/p>"},{"title":"Migrating from Redux to Pullstate","link":"https:\/\/mbuffett.com\/posts\/redux-to-pullstate\/","pubDate":"Thu, 24 Sep 2020 16:35:12 -0400","guid":"https:\/\/mbuffett.com\/posts\/redux-to-pullstate\/","description":"<p>Recently I migrated my side-project from Redux, which I&rsquo;ve used in every\nReact project for the past four years, to\n<a href=\"https:\/\/github.com\/lostpebble\/pullstate\">pullstate<\/a>, here is my tale.<\/p>\n<h2 id=\"problems-with-redux\">Problems with Redux<\/h2>\n<p>Feel free to <a href=\"https:\/\/mbuffett.com\/posts\/redux-to-pullstate\/#introducing-pullstate\">skip this part<\/a> if you already know the pain points of Redux,\nthere&rsquo;s nothing in here that hasn&rsquo;t been discussed a million times before. These\nare the problems as I see them, most important first:<\/p>\n<p><strong>The boilerplate<\/strong>. Oh man, the boilerplate. Want to add a counter? First, add\nthe field to your interface (I&rsquo;m assuming TypeScript), add a default value,\ncreate a new action type for the incrementing, write an action\ncreator, add the case to your reducer, add the dispatcher hook to your\ncomponent, dispatch your action creator. It&rsquo;s exhausting just to list the\nsteps, nevermind actually doing it for every bit of state you need to keep track\nof.<\/p>"},{"title":"As a hobbyist rust developer, I want to think less about error handling","link":"https:\/\/mbuffett.com\/posts\/rust-less-error-handling\/","pubDate":"Tue, 08 Sep 2020 18:50:58 -0400","guid":"https:\/\/mbuffett.com\/posts\/rust-less-error-handling\/","description":"<p>I saw the call for blog posts in <a href=\"https:\/\/blog.rust-lang.org\/2020\/09\/03\/Planning-2021-Roadmap.html\">the 2021 rust\nroadmap<\/a>, so I\nfigured I&rsquo;d throw in my 2 cents, since I&rsquo;ve been working on a project recently\nthat uses rust on the backend. As the title suggests, I&rsquo;ve been finding myself\nspending too much time on error handling.<\/p>\n<p>I want to preface this by saying I&rsquo;m just using rust for hobby projects. If I\nwere writing rust in production or for a larger project I probably wouldn&rsquo;t\ncare that error handling takes some work to get right, I&rsquo;d be more willing to put in the time\nto learn more about the best practices. As it stands though, I just want to code\nthe happy path and getting stuck on error-handling to get the compiler to accept\nwhat I&rsquo;m writing can rob me of motivation.<\/p>"},{"title":"Unconventional React Things: Styling Edition","link":"https:\/\/mbuffett.com\/posts\/unconventional-react\/","pubDate":"Mon, 10 Aug 2020 14:05:15 -0700","guid":"https:\/\/mbuffett.com\/posts\/unconventional-react\/","description":"<p>I&rsquo;ve developed an unusual approach to styling in my React code. It&rsquo;s sort of a functional, atomic css approach. Other methods I&rsquo;ve used are BEM + separate css files, styled components, and tailwind. By far this is the one that lets me move fastest on my personal projects (I haven&rsquo;t yet subjected anybody at work to dealing with it). Without further ado.<\/p>\n<h2 id=\"element-styling\">Element Styling<\/h2>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\"><code class=\"language-tsx\" data-lang=\"tsx\"><span style=\"display:flex;\"><span><span style=\"color:#66d9ef\">const<\/span> <span style=\"color:#a6e22e\">buttonStyles<\/span> <span style=\"color:#f92672\">=<\/span> <span style=\"color:#a6e22e\">s<\/span>(<span style=\"color:#a6e22e\">caps<\/span>, <span style=\"color:#a6e22e\">px<\/span>(<span style=\"color:#a6e22e\">s6<\/span>), <span style=\"color:#a6e22e\">py<\/span>(<span style=\"color:#a6e22e\">s5<\/span>), <span style=\"color:#a6e22e\">clickable<\/span>);\n<\/span><\/span><span style=\"display:flex;\"><span><span style=\"color:#66d9ef\">const<\/span> <span style=\"color:#a6e22e\">activeStyles<\/span> <span style=\"color:#f92672\">=<\/span> <span style=\"color:#a6e22e\">s<\/span>(<span style=\"color:#a6e22e\">buttonStyles<\/span>, <span style=\"color:#a6e22e\">bg<\/span>(<span style=\"color:#e6db74\">&#34;green&#34;<\/span>), <span style=\"color:#a6e22e\">fg<\/span>(<span style=\"color:#a6e22e\">light0<\/span>));\n<\/span><\/span><span style=\"display:flex;\"><span><span style=\"color:#66d9ef\">const<\/span> <span style=\"color:#a6e22e\">inactiveStyles<\/span> <span style=\"color:#f92672\">=<\/span> <span style=\"color:#a6e22e\">s<\/span>(<span style=\"color:#a6e22e\">buttonStyles<\/span>, <span style=\"color:#a6e22e\">bg<\/span>(<span style=\"color:#a6e22e\">light0<\/span>), <span style=\"color:#a6e22e\">shadow<\/span>);\n<\/span><\/span><span style=\"display:flex;\"><span><span style=\"color:#66d9ef\">return<\/span> (\n<\/span><\/span><span style=\"display:flex;\"><span> &lt;<span style=\"color:#f92672\">Row<\/span> <span style=\"color:#a6e22e\">style<\/span><span style=\"color:#f92672\">=<\/span>{<span style=\"color:#a6e22e\">s<\/span>(<span style=\"color:#a6e22e\">fullWidth<\/span>, <span style=\"color:#a6e22e\">alignCenter<\/span>)}&gt;\n<\/span><\/span><span style=\"display:flex;\"><span> &lt;<span style=\"color:#f92672\">div<\/span> <span style=\"color:#a6e22e\">style<\/span><span style=\"color:#f92672\">=<\/span>{<span style=\"color:#a6e22e\">s<\/span>(<span style=\"color:#a6e22e\">weightSemiBold<\/span>, <span style=\"color:#a6e22e\">f1<\/span>, <span style=\"color:#a6e22e\">fg<\/span>(<span style=\"color:#a6e22e\">dark6<\/span>))}&gt;<span style=\"color:#a6e22e\">Do<\/span> <span style=\"color:#a6e22e\">you<\/span> <span style=\"color:#a6e22e\">have<\/span> <span style=\"color:#a6e22e\">a<\/span> <span style=\"color:#a6e22e\">PS4<\/span><span style=\"color:#f92672\">?<\/span>&lt;\/<span style=\"color:#f92672\">div<\/span>&gt;\n<\/span><\/span><span style=\"display:flex;\"><span> &lt;<span style=\"color:#f92672\">Spacer<\/span> <span style=\"color:#a6e22e\">width<\/span><span style=\"color:#f92672\">=<\/span>{<span style=\"color:#a6e22e\">s7<\/span>} \/&gt;\n<\/span><\/span><span style=\"display:flex;\"><span> &lt;<span style=\"color:#f92672\">div<\/span> <span style=\"color:#a6e22e\">style<\/span><span style=\"color:#f92672\">=<\/span>{<span style=\"color:#a6e22e\">s<\/span>(<span style=\"color:#a6e22e\">roundedLeft<\/span>, <span style=\"color:#a6e22e\">hasPS4<\/span> <span style=\"color:#f92672\">?<\/span> <span style=\"color:#a6e22e\">activeStyles<\/span> : <span style=\"color:#66d9ef\">inactiveStyles<\/span>)}&gt;\n<\/span><\/span><span style=\"display:flex;\"><span> <span style=\"color:#a6e22e\">yes<\/span>\n<\/span><\/span><span style=\"display:flex;\"><span> &lt;\/<span style=\"color:#f92672\">div<\/span>&gt;\n<\/span><\/span><span style=\"display:flex;\"><span> &lt;<span style=\"color:#f92672\">div<\/span> <span style=\"color:#a6e22e\">style<\/span><span style=\"color:#f92672\">=<\/span>{<span style=\"color:#a6e22e\">s<\/span>(<span style=\"color:#a6e22e\">roundedRight<\/span>, <span style=\"color:#a6e22e\">hasPS4<\/span> <span style=\"color:#f92672\">?<\/span> <span style=\"color:#a6e22e\">inactiveStyles<\/span> : <span style=\"color:#66d9ef\">activeStyles<\/span>)}&gt;\n<\/span><\/span><span style=\"display:flex;\"><span> <span style=\"color:#a6e22e\">no<\/span>\n<\/span><\/span><span style=\"display:flex;\"><span> &lt;\/<span style=\"color:#f92672\">div<\/span>&gt;\n<\/span><\/span><span style=\"display:flex;\"><span> &lt;\/<span style=\"color:#f92672\">Row<\/span>&gt;\n<\/span><\/span><span style=\"display:flex;\"><span>);\n<\/span><\/span><\/code><\/pre><\/div><p>The <code>s<\/code> function is at the heart of the approach. It just takes objects and merges them:<\/p>"},{"title":"Programming and Tacit Knowledge","link":"https:\/\/mbuffett.com\/posts\/all-tacit-knowledge\/","pubDate":"Wed, 05 Aug 2020 07:36:38 -0700","guid":"https:\/\/mbuffett.com\/posts\/all-tacit-knowledge\/","description":"<p>The Commonplace blog has been\n<a href=\"https:\/\/commoncog.com\/blog\/tacit-knowledge-is-a-real-thing\/\">writing<\/a> a\n<a href=\"https:\/\/commoncog.com\/blog\/how-to-learn-tacit-knowledge\/\">lot<\/a> on <a href=\"https:\/\/commoncog.com\/blog\/three-kinds-of-tacit-knowledge\/\">tacit\nknowledge<\/a> recently.\nAs someone who&rsquo;s been programming for a long time (8ish years), these articles\nresonated deeply. I won&rsquo;t go into too much detail what tacit\nknowledge is about, since the above posts do such a good job with it. If you&rsquo;re\nnot familiar, check them out.<\/p>\n<h2 id=\"explicit-knowledge-vs-tacit-knowledge\">Explicit knowledge vs tacit knowledge<\/h2>\n<p>Essentially, explicit knowledge is that which can be transferred verbally. For\nexample, I could tell someone the method name for pushing to an array in\nJavaScript, what version of Python <code>print<\/code> went from a keyword to a function,\nand the range of HTTP status codes that represent success. Maybe they&rsquo;d need to\ndo some spaced repetition learning or something, but they can just memorize\nthese bits.<\/p>"},{"title":"Why I Self-Host My Website Analytics","link":"https:\/\/mbuffett.com\/posts\/why-i-self-host-my-analytics\/","pubDate":"Mon, 03 Aug 2020 20:54:48 -0700","guid":"https:\/\/mbuffett.com\/posts\/why-i-self-host-my-analytics\/","description":"<p>Recently I made the switch to self-hosted analytics, after being a long-term\nGoogle Analytics user. Almost every website you visit will have a Google\nAnalytics tracker on it. I think there are idealogical and technical reasons to\nopt for self-hosted analytics instead.<\/p>\n<h3 id=\"tracking-efficacy\">Tracking efficacy<\/h3>\n<p>This one&rsquo;s quick. You&rsquo;re more likely to get analytics for a given user if you&rsquo;re\nusing self-hosted analytics, than if you&rsquo;re using Google Analytics. About <a href=\"https:\/\/www.statista.com\/statistics\/804008\/ad-blocking-reach-usage-us\/\">26%\nof\npeople<\/a>\nare running adblockers now, a large percentage of which will also block tracking\nscripts, like GA. Having your analytics on <code>analytics.yourdomain.com<\/code> makes\nyour requests less likely to be blocked.<\/p>"},{"title":"Replacing ngrok with ktunnel","link":"https:\/\/mbuffett.com\/posts\/ktunnel-ngrok-replace\/","pubDate":"Sat, 01 Aug 2020 10:19:26 -0700","guid":"https:\/\/mbuffett.com\/posts\/ktunnel-ngrok-replace\/","description":"<p><a href=\"https:\/\/ngrok.com\/\">ngrok<\/a> is a tool that proxies traffic from a\nsubdomain (like <a href=\"http:\/\/2fb551c6b2fd.ngrok.io\">http:\/\/2fb551c6b2fd.ngrok.io<\/a>) to a port on your localhost. I&rsquo;ve\nbeen using it off and on for years. There&rsquo;s a couple use cases I&rsquo;ve used it for:<\/p>\n<ul>\n<li>Forward web traffic to a local next.js \/ webpack server, to show a website in\nprogress without having to deploy it. This way I can send an ngrok link to a\nfriend\/coworker and they can see the latest.<\/li>\n<li>Forward api traffic from a device (ex. an iPhone if I&rsquo;m working on an iOS app) to my\nlocal api server.<\/li>\n<\/ul>\n<p>It&rsquo;s been very useful, but recently I&rsquo;ve switched to\n<a href=\"https:\/\/github.com\/omrikiei\/ktunnel\"><code>ktunnel<\/code><\/a>. <code>ktunnel<\/code> deploys a service on\nkubernetes, which will proxy traffic to a local port of your choice. It&rsquo;s more\nwork to set up than <code>ngrok<\/code>, so it won&rsquo;t be worth the hassle for a lot of\npeople, but there&rsquo;s a few upsides to self-hosting.<\/p>"},{"title":"The CLI tools I use while doing full-stack dev","link":"https:\/\/mbuffett.com\/posts\/cli-tools\/","pubDate":"Tue, 14 Jul 2020 04:38:22 +0000","guid":"https:\/\/mbuffett.com\/posts\/cli-tools\/","description":"<p>I&rsquo;ve been working on a web project for a few months now and thought I&rsquo;d take stock of the tools I&rsquo;ve been using. So I went through my <code>zsh_history<\/code> (fun fact, since March I&rsquo;ve run 3,950 commands for this project). These are only the &ldquo;generic&rdquo; tools, I&rsquo;ve excluded any stack-specific tools, like <code>ghci<\/code>, <code>pgcli<\/code>, <code>docker<\/code>, <code>spago<\/code>, etc. I&rsquo;ve also excluded obvious tools and built-ins, like <code>ssh<\/code>, <code>scp<\/code>, and <code>git<\/code>.<\/p>\n<h1 id=\"htmljscss-beautifyhttpswwwnpmjscompackagejs-beautify\"><a href=\"https:\/\/www.npmjs.com\/package\/js-beautify\">{html,js,css}-beautify<\/a><\/h1>\n<p>When I&rsquo;m on the frontend, it&rsquo;s not uncommon to deal with minified code. I&rsquo;ll often pipe <code>curl<\/code>&rsquo;s output into one of these, before redirecting it into a file, ex. <code>curl www.google.com | html-beautify &gt; google.html<\/code>.<\/p>"},{"title":"Setting up tmux and kitty for true color support","link":"https:\/\/mbuffett.com\/posts\/setting-up-tmux-and-kitty-for-true-color-support\/","pubDate":"Wed, 08 Jan 2020 16:49:41 +0000","guid":"https:\/\/mbuffett.com\/posts\/setting-up-tmux-and-kitty-for-true-color-support\/","description":"<p>I&rsquo;ve been using kitty and tmux together for years and recently realized my setup for true colors was broken, thanks to neovim&rsquo;s <code>:checkhealth<\/code> command. After some searching and trial and error, the setup I ended up at was this:<\/p>\n<ol>\n<li>Remove any <code>export TERM<\/code> lines from <code>.zshrc<\/code>, <code>.bashrc<\/code>, etc.<\/li>\n<li>Set these options in tmux:<\/li>\n<\/ol>\n<pre tabindex=\"0\"><code>set -g default-terminal &#34;screen-256color&#34;\nset-option -sa terminal-overrides &#34;,xterm-kitty:RGB&#34;\n<\/code><\/pre><ol start=\"3\">\n<li>Kill tmux, close kitty, reopen and true color support should be enabled<\/li>\n<\/ol>"},{"title":"My Year in Books: 2019","link":"https:\/\/mbuffett.com\/posts\/my-year-in-books-2019\/","pubDate":"Thu, 26 Dec 2019 22:26:25 +0000","guid":"https:\/\/mbuffett.com\/posts\/my-year-in-books-2019\/","description":"<p>This is just a rapid-fire summary of the books I&rsquo;ve read this year and what I thought about them. Note that the links in here are affiliate links. Any profit will be donated to the <a href=\"https:\/\/www.amazonconservation.org\/\">Amazon Conservation Association<\/a>, in the rare event people read this and buy a book. Without further ado.<\/p>\n<h4 id=\"the-name-of-the-windhttpswwwamazoncomgpproduct0756404746refas_li_tlieutf8camp1789creative9325creativeasin0756404746linkcodeas2tagmbuffett-20linkided2dc868d44a6ea8087108b6009fcbb9-by-patrick-rothfuss\"><a href=\"https:\/\/www.amazon.com\/gp\/product\/0756404746\/ref=as_li_tl?ie=UTF8&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0756404746&amp;linkCode=as2&amp;tag=mbuffett-20&amp;linkId=ed2dc868d44a6ea8087108b6009fcbb9\">The Name of the Wind<\/a> by Patrick Rothfuss<\/h4>\n<p>Became one of my favorite fantasy books. Very interesting magic system, world, and narration style. If Mary Sues bother you, then maybe steer clear.<\/p>"},{"title":"Scraping Goodreads Sitemaps with Haskell","link":"https:\/\/mbuffett.com\/posts\/scraping-goodreads-sitemaps-with-haskell\/","pubDate":"Wed, 30 Oct 2019 05:27:03 +0000","guid":"https:\/\/mbuffett.com\/posts\/scraping-goodreads-sitemaps-with-haskell\/","description":"<p>Recently I acquired a project, <a href=\"https:\/\/nowwhatdoiread.com\">Now What Do I Read?<\/a>. One of the steps in acquiring the data was to scrape the sitemaps of <a href=\"https:\/\/goodreads.com\">Goodreads<\/a>. The project was written in Go, and I decided to rewrite it in Haskell, mostly to mix it up a bit. Writing everything in Python and JavaScript gets old eventually, quick as it may be.<\/p>\n<p>This will probably turn into a series in which I go through the rest of the process of rewriting the project in Haskell. The intended audience is those with a passing familiarity with Haskell.<\/p>"},{"title":"Setting up Neovim for Haskell, as of October 2019","link":"https:\/\/mbuffett.com\/posts\/setting-up-neovim-for-haskell-as-of-october-2019\/","pubDate":"Tue, 29 Oct 2019 16:48:29 +0000","guid":"https:\/\/mbuffett.com\/posts\/setting-up-neovim-for-haskell-as-of-october-2019\/","description":"<p>I started a Haskell rewrite of a project, and after not having used Haskell for a long time, found the process of setting up my Vim environment to be a pain.<\/p>\n<p>There&rsquo;s nothing exciting here, but by the end of this quick guide you should have:<\/p>\n<ul>\n<li>Haskell + Stack installed<\/li>\n<li>Autocompletion, go to definition, type lookups, and more via HIE and CoC<\/li>\n<li>GHCi via Intero (it does more, but overlaps with HIE a bit)<\/li>\n<li>Local hoogle<\/li>\n<\/ul>\n<p>For vim packages, I&rsquo;m going to assume you&rsquo;re using vim-plug, replace <code>Plug<\/code> with your plugin manager of choice if you&rsquo;re using something else.<\/p>"},{"title":"Creating a basic chess AI with Python","link":"https:\/\/mbuffett.com\/posts\/chess-ai\/","pubDate":"Sun, 10 May 2015 04:38:22 +0000","guid":"https:\/\/mbuffett.com\/posts\/chess-ai\/","description":"<p>Recently, I made a chess program in Python and published the source on github\n<a href=\"https:\/\/github.com\/marcusbuffett\/command-line-chess\">here<\/a>. The code is just\nunder 1000 lines, about 20% of which is dedicated to the AI. In this post I\u2019ll\ncover how the AI works, what each part does. and why it works like that. You can\njust read through, or download the code and mess around with it as you read. The\nAI is all in the AI.py file, although it might help to look at the other files\nto see what the classes that the AI depend on do.<\/p>"}]}}