<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="https://marko.github.io/projects-and-ponderings/feed.xml" rel="self" type="application/atom+xml" /><link href="https://marko.github.io/projects-and-ponderings/" rel="alternate" type="text/html" /><updated>2022-06-27T07:42:22+00:00</updated><id>https://marko.github.io/projects-and-ponderings/feed.xml</id><title type="html">Projects and ponderings</title><subtitle>This is where I post about stuff I do, big and small. Probably mostly coding and config.
</subtitle><author><name>Filip Marko</name></author><entry><title type="html">Restore flutterw</title><link href="https://marko.github.io/projects-and-ponderings/2022/06/26/restore-flutterw.html" rel="alternate" type="text/html" title="Restore flutterw" /><published>2022-06-26T00:00:00+00:00</published><updated>2022-06-26T00:00:00+00:00</updated><id>https://marko.github.io/projects-and-ponderings/2022/06/26/restore-flutterw</id><content type="html" xml:base="https://marko.github.io/projects-and-ponderings/2022/06/26/restore-flutterw.html">&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;flutterw&lt;/code&gt; uses a git submodule to sync the Flutter version. I ran an upgrade prematurely, that I had to restore. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git restore&lt;/code&gt; doesn’t handle submodules.&lt;/p&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git submodule update 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>Filip Marko</name></author><summary type="html">flutterw uses a git submodule to sync the Flutter version. I ran an upgrade prematurely, that I had to restore. git restore doesn’t handle submodules. git submodule update</summary></entry><entry><title type="html">Flutter vertical spacing</title><link href="https://marko.github.io/projects-and-ponderings/2022/05/24/flutter-vertical-spacing.html" rel="alternate" type="text/html" title="Flutter vertical spacing" /><published>2022-05-24T00:00:00+00:00</published><updated>2022-05-24T00:00:00+00:00</updated><id>https://marko.github.io/projects-and-ponderings/2022/05/24/flutter-vertical-spacing</id><content type="html" xml:base="https://marko.github.io/projects-and-ponderings/2022/05/24/flutter-vertical-spacing.html">&lt;div class=&quot;language-dart highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;/// Inserts a [SizedBox] of height [gap] between each [Widget] in [children]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;List&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Widget&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;verticalSpacing&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;double&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;gap&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Iterable&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Widget&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;children&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;children&lt;/span&gt;
      &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;expand&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;item&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sync&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;SizedBox&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;height:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;gap&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;item&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;o&quot;&gt;})&lt;/span&gt;
      &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;skip&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
      &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toList&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>Filip Marko</name></author><summary type="html">/// Inserts a [SizedBox] of height [gap] between each [Widget] in [children] List&amp;lt;Widget&amp;gt; verticalSpacing(double gap, Iterable&amp;lt;Widget&amp;gt; children) { return children .expand((item) sync* { yield SizedBox(height: gap); yield item; }) .skip(1) .toList(); }</summary></entry><entry><title type="html">Git root commit</title><link href="https://marko.github.io/projects-and-ponderings/2022/01/25/git-root-commit.html" rel="alternate" type="text/html" title="Git root commit" /><published>2022-01-25T00:00:00+00:00</published><updated>2022-01-25T00:00:00+00:00</updated><id>https://marko.github.io/projects-and-ponderings/2022/01/25/git-root-commit</id><content type="html" xml:base="https://marko.github.io/projects-and-ponderings/2022/01/25/git-root-commit.html">&lt;p&gt;Rebasing to change the first commit isn’t possible. I now insert a null root commit.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-git&quot;&gt;git commit --allow-empty -m root
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you’ve already started adding real commits, move it with&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-git&quot;&gt;git rebase -i --root
&lt;/code&gt;&lt;/pre&gt;</content><author><name>Filip Marko</name></author><summary type="html">Rebasing to change the first commit isn’t possible. I now insert a null root commit. git commit --allow-empty -m root</summary></entry><entry><title type="html">logcat –pid</title><link href="https://marko.github.io/projects-and-ponderings/2022/01/21/android-logging.html" rel="alternate" type="text/html" title="logcat –pid" /><published>2022-01-21T00:00:00+00:00</published><updated>2022-01-21T00:00:00+00:00</updated><id>https://marko.github.io/projects-and-ponderings/2022/01/21/android-logging</id><content type="html" xml:base="https://marko.github.io/projects-and-ponderings/2022/01/21/android-logging.html">&lt;p&gt;A few days ago I had to capture live logs from an Android app I couldn’t edit. There were no sensible tags to grep for. Luckily logcat supports filtering by process id!&lt;/p&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;adb logcat &lt;span class=&quot;nt&quot;&gt;--pid&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;adb shell pidof &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; app.bundle.id&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>Filip Marko</name></author><summary type="html">A few days ago I had to capture live logs from an Android app I couldn’t edit. There were no sensible tags to grep for. Luckily logcat supports filtering by process id! adb logcat --pid=$(adb shell pidof -s app.bundle.id)</summary></entry><entry><title type="html">Blogging with github pages</title><link href="https://marko.github.io/projects-and-ponderings/2022/01/09/my-first-blog-post.html" rel="alternate" type="text/html" title="Blogging with github pages" /><published>2022-01-09T00:00:00+00:00</published><updated>2022-01-09T00:00:00+00:00</updated><id>https://marko.github.io/projects-and-ponderings/2022/01/09/my-first-blog-post</id><content type="html" xml:base="https://marko.github.io/projects-and-ponderings/2022/01/09/my-first-blog-post.html">&lt;p&gt;I’m currently working through the github pages/jekyll guide. I’m impressed so far.&lt;/p&gt;</content><author><name>Filip Marko</name></author><summary type="html">I’m currently working through the github pages/jekyll guide. I’m impressed so far.</summary></entry><entry><title type="html">Renaming Windows user folder</title><link href="https://marko.github.io/projects-and-ponderings/2022/01/09/renaming-windows-user-folder.html" rel="alternate" type="text/html" title="Renaming Windows user folder" /><published>2022-01-09T00:00:00+00:00</published><updated>2022-01-09T00:00:00+00:00</updated><id>https://marko.github.io/projects-and-ponderings/2022/01/09/renaming-windows-user-folder</id><content type="html" xml:base="https://marko.github.io/projects-and-ponderings/2022/01/09/renaming-windows-user-folder.html">&lt;p&gt;A few years ago I switched from a local Windows account to signing in with my Microsoft account. 
The user folder name (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;C:\Users\&amp;lt;name&amp;gt;&lt;/code&gt;) has remained unchanged since then.
Today I finally decided to change it. Here’s how:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Logged in on a different admin account&lt;/li&gt;
  &lt;li&gt;Found the SID for my primary account with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wmic useraccount get name,SID&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Used regedit to change the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ProfileImagePath&lt;/code&gt; to my new username at &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\&amp;lt;SID&amp;gt;&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Renamed the user profile folder&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This was probably stupid. At least two programs broke (OneDrive and VSCode). Reinstalled them instead of troubleshooting.&lt;/p&gt;</content><author><name>Filip Marko</name></author><summary type="html">A few years ago I switched from a local Windows account to signing in with my Microsoft account. The user folder name (C:\Users\&amp;lt;name&amp;gt;) has remained unchanged since then. Today I finally decided to change it. Here’s how:</summary></entry></feed>