<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Misc &#8211; Harry Jackson</title>
	<atom:link href="http://127.0.0.1:8090/category/misc/feed" rel="self" type="application/rss+xml" />
	<link>http://127.0.0.1:8090</link>
	<description>Parent, Painter, Programmer</description>
	<lastBuildDate>Thu, 02 Mar 2023 04:16:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Publishing from Obsidian to WordPress</title>
		<link>http://127.0.0.1:8090/obsidian-to-wordpress.htm</link>
					<comments>http://127.0.0.1:8090/obsidian-to-wordpress.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Thu, 02 Mar 2023 03:28:58 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/?p=600</guid>

					<description><![CDATA[I partially published this post from Obsidian using the WordPress plugin. It was actually easier to setup than I expected with the main hurdle being Basic Authentication. There are still a lot of missing things from the integration that require a fair amount of manual work. Beware If you&#8217;re site is not using TLS i.e &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/obsidian-to-wordpress.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Publishing from Obsidian to WordPress"</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I <strong>partially</strong> published this post from <a href="https://obsidian.md/" target="_blank" rel="noreferrer noopener">Obsidian</a> using the <a href="https://wordpress.com/" target="_blank" rel="noreferrer noopener">WordPress</a> plugin. It was actually easier to setup than I expected with the main hurdle being Basic Authentication. There are still a lot of missing things from the integration that require a fair amount of manual work.</p>



<h2 class="wp-block-heading">Beware</h2>



<p class="wp-block-paragraph">If you&#8217;re site is not using TLS i.e it doesn&#8217;t start with https as follows <em>https://[example.com]</em> then using basic authentication is about as secure as Pampers Splashers, you might get away with using it for a while but eventually something really nasty is going to happen and you&#8217;ll wish you&#8217;d secured your application using TLS.</p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="225" height="225" src="http://127.0.0.1:8090/wp-content/uploads/2023/03/pampers-splashers.jpeg" alt="" class="wp-image-604" srcset="http://127.0.0.1:8090/wp-content/uploads/2023/03/pampers-splashers.jpeg 225w, http://127.0.0.1:8090/wp-content/uploads/2023/03/pampers-splashers-150x150.jpeg 150w, http://127.0.0.1:8090/wp-content/uploads/2023/03/pampers-splashers-100x100.jpeg 100w" sizes="(max-width: 225px) 100vw, 225px" /></figure>



<h2 class="wp-block-heading">Problems</h2>



<p class="wp-block-paragraph">The steps where as follows.</p>



<pre class="wp-block-code"><code>
1. Install the miniorange WordPress REST plugin and enable Basic Auth.
2. Install the Obsidian wordpress plugin and test the connection. 
3. Enable the wordpress icon on the left menu in Obsidian.
4. Write this post.
</code></pre>



<p class="wp-block-paragraph">The only problem I had was the following error</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">{&#8220;status&#8221;:&#8221;error&#8221;,&#8221;error&#8221;:&#8221;MISSING_AUTHORIZATION_HEADER&#8221;,&#8221;code&#8221;:&#8221;401&#8243;,&#8221;error_description&#8221;:&#8221;Authorization header not received. Either authorization header was not sent or it was removed by your server due to security reasons.&#8221;}%</p>
</blockquote>



<p class="wp-block-paragraph">This was fixed by add the following snippet to my apache.conf</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">RewriteCond %{HTTP:Authorization} ^(.)<br>RewriteRule ^(.) &#8211; [E=HTTP_AUTHORIZATION:%1]<br>SetEnvIf Authorization &#8220;(.*)&#8221; HTTP_AUTHORIZATION=$1</p>
</blockquote>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">I think the WordPress obsidian plugin has a lot of potential but it needs a some polish. It could be good at pushing a body of text up quickly and convert it manually to a finished post but it&#8217;s still a fair amount of effort.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/obsidian-to-wordpress.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress Authorization header not received</title>
		<link>http://127.0.0.1:8090/594.htm</link>
					<comments>http://127.0.0.1:8090/594.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Thu, 02 Mar 2023 03:20:14 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/?p=594</guid>

					<description><![CDATA[If you are getting this error when trying to get miniorange basic authentication to work. Authorization header not received. Either authorization header was not sent or it was removed by your server due to security reasons. Try using the following in your apache2.conf file. Note RewriteEngine On needs to be enabled before these settings.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">If you are getting this error when trying to get miniorange basic authentication to work.</p>



<p class="wp-block-paragraph"><strong>Authorization header not received. Either authorization header was not sent or it was removed by your server due to security reasons.</strong></p>



<p class="wp-block-paragraph">Try using the following in your apache2.conf file. Note <strong>RewriteEngine On</strong> needs to be enabled before these settings.</p>



<pre class="wp-block-code"><code>RewriteCond %{HTTP:Authorization} ^(.) 
RewriteRule ^(.) - &#91;E=HTTP_AUTHORIZATION:%1]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/594.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>New Relic Guided installation</title>
		<link>http://127.0.0.1:8090/new-relic-guided-installation.htm</link>
					<comments>http://127.0.0.1:8090/new-relic-guided-installation.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 01 Mar 2023 16:59:55 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/?p=591</guid>

					<description><![CDATA[I just installed New Relic to play around with it a bit and I noticed that the default installer will try and install a bunch of crap that will, at least in my case fail. HAProxy and MySQL are two that fail miserably because in one case the HAProxy is not setup the way New &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/new-relic-guided-installation.htm" class="more-link">Continue reading<span class="screen-reader-text"> "New Relic Guided installation"</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I just installed New Relic to play around with it a bit and I noticed that the default installer will try and install a bunch of crap that will, at least in my case fail. HAProxy and MySQL are two that fail miserably because in one case the HAProxy is not setup the way New Relic expects and MySQL us in a Docker container that New Relic is also not expected. In order to get around this you need to install specific parts of new relic. See docs here <a href="https://docs.newrelic.com/docs/infrastructure/host-integrations/installation/new-relic-guided-install-overview/">https://docs.newrelic.com/docs/infrastructure/host-integrations/installation/new-relic-guided-install-overview/</a></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/new-relic-guided-installation.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>.inputrc stopped working</title>
		<link>http://127.0.0.1:8090/inputrc-stopped-working.htm</link>
					<comments>http://127.0.0.1:8090/inputrc-stopped-working.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 01 Mar 2023 16:51:37 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/?p=589</guid>

					<description><![CDATA[I&#8217;m trying to bite the bullet and move from bash to zsh in order to avoid further pain in the future as Apple are phasing out Bash on the mac. A major feature that I use a lot on bash is search completion in .inputrc. Zsh broke this for me and using command line is &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/inputrc-stopped-working.htm" class="more-link">Continue reading<span class="screen-reader-text"> ".inputrc stopped working"</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I&#8217;m trying to bite the bullet and move from bash to zsh in order to avoid further pain in the future as Apple are phasing out Bash on the mac. </p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">A major feature that I use a lot on bash is search completion in .inputrc. Zsh broke this for me and using command line is like pulling teeth without it ie in bash you woul dadd the following to .inputrc</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">&#8220;\e[A&#8221;: history-search-backward<br>&#8220;\e[B&#8221;: history-search-forward<br>&#8220;\e[C&#8221;: forward-char<br>&#8220;\e[D&#8221;: backward-char</p>



<p class="wp-block-paragraph">In zsh this not longer works as expected. To get normal behavior back I had to add the following to .zsh</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">bindkey &#8220;^R&#8221; history-incremental-search-backward<br>bindkey &#8220;\e[A&#8221; history-beginning-search-backward<br>bindkey &#8220;\e[B&#8221; history-beginning-search-forward</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/inputrc-stopped-working.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>YOU MAN &#8211; BIRDCAGE</title>
		<link>http://127.0.0.1:8090/you-man-birdcage.htm</link>
					<comments>http://127.0.0.1:8090/you-man-birdcage.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Tue, 07 Jun 2022 04:45:12 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/?p=584</guid>

					<description><![CDATA[Absolutely brilliant piece of music. Cannot believe I&#8217;ve not heard this earlier.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Absolutely brilliant piece of music. Cannot believe I&#8217;ve not heard this earlier.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="YOU MAN - BIRDCAGE" width="525" height="295" src="https://www.youtube.com/embed/s9N5l96IoY4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/you-man-birdcage.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Vespa Search Engine</title>
		<link>http://127.0.0.1:8090/vespa-search-engine.htm</link>
					<comments>http://127.0.0.1:8090/vespa-search-engine.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 27 Sep 2017 04:16:38 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/?p=527</guid>

					<description><![CDATA[I just heard that Oath have released the Vespa Search Engine open source. When I was in Yahoo! it was used for everything. I predict that a company will exist in a few months selling it as a service. I think Vespa was one of the best written pieces of infrastructure at Yahoo! that I &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/vespa-search-engine.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Vespa Search Engine"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I just heard that Oath have released the <a href="https://vespa.ai" target="_blank" rel="noopener">Vespa Search Engine open source</a>. When I was in Yahoo! it was used for everything. I predict that a company will exist in a few months selling it as a service.</p>
<p>I think Vespa was one of the best written pieces of infrastructure at Yahoo! that I worked on. It was well documented for an internal app and it was blazingly fast. The guys working on it were also super smart. It will be interesting to see where it goes but I think it will be a contender in the search space</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/vespa-search-engine.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Making Oil paint &#8211; Demo at Los Altos Art Club</title>
		<link>http://127.0.0.1:8090/making-oil-paint-demo-at-los-altos-art-club.htm</link>
					<comments>http://127.0.0.1:8090/making-oil-paint-demo-at-los-altos-art-club.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 09 Aug 2017 22:48:29 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/blog/?p=447</guid>

					<description><![CDATA[I did a demo at Los Altos Art Club making oil paint. It was good fun and everyone there got to use the mull to see just how hard it can be to push it around on the glass slab. I was originally going to mull some watercolor as well but the cleanup of both &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/making-oil-paint-demo-at-los-altos-art-club.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Making Oil paint &#8211; Demo at Los Altos Art Club"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I did a demo at <a href="https://www.losaltosartclub.org/" target="_blank" rel="noopener">Los Altos Art Club</a> making oil paint. It was good fun and everyone there got to use the mull to see just how hard it can be to push it around on the glass slab. I was originally going to mull some watercolor as well but the cleanup of both would have taken the demo well past the hour so I decided to just do oil. I picked Burnt Umber since it makes lovely paint with linseed oil and nothing else.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/making-oil-paint-demo-at-los-altos-art-club.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Find powers of 3</title>
		<link>http://127.0.0.1:8090/function-to-find-powers-of-3.htm</link>
					<comments>http://127.0.0.1:8090/function-to-find-powers-of-3.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 11 May 2016 06:07:56 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=411</guid>

					<description><![CDATA[I saw this question somewhere and thought I&#8217;d jot down an answer. I&#8217;m sure there&#8217;s a bit twiddling method to do this but I think this is about as fast as you&#8217;re going to get&#8230; int power_of_3(uint32_t n) { switch(n) { case 1: return 1;break; case 3: return 1;break; case 9: return 1;break; case 27: &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/function-to-find-powers-of-3.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Find powers of 3"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I saw this question somewhere and thought I&#8217;d jot down an answer. I&#8217;m sure there&#8217;s a bit twiddling method to do this but I think this is about as fast as you&#8217;re going to get&#8230;</p>
<pre>
  int power_of_3(uint32_t n) {
    switch(n) {
      case 1: return 1;break;
      case 3: return 1;break;
      case 9: return 1;break;
      case 27: return 1;break;
      case 81: return 1;break;
      case 243: return 1;break;
      case 729: return 1;break;
      case 2187: return 1;break;
      case 6561: return 1;break;
      case 19683: return 1;break;
      case 59049: return 1;break;
      case 177147: return 1;break;
      case 531441: return 1;break;
      case 1594323: return 1;break;
      case 4782969: return 1;break;
      case 14348907: return 1;break;
      case 43046721: return 1;break;
      case 129140163: return 1;break;
      case 387420489: return 1;break;
      case 1162261467: return 1;break;
      case 3486784401: return 1;break;
    };  
    return 0;
  }
</pre>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/function-to-find-powers-of-3.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Self Portrait WIP</title>
		<link>http://127.0.0.1:8090/self-portrait-wip.htm</link>
					<comments>http://127.0.0.1:8090/self-portrait-wip.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 01 Apr 2015 21:41:16 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/blog/?p=441</guid>

					<description><![CDATA[This is a self portrait that&#8217;s about half way complete. I did two of these side by side one of which I did while using the reference upside down to see what it would look like.]]></description>
										<content:encoded><![CDATA[<p>This is a self portrait that&#8217;s about half way complete. I did two of these side by side one of which I did while using the reference upside down to see what it would look like.</p>
<p><img decoding="async" class="alignnone size-medium wp-image-459" src="http://127.0.0.1:8090/wp-content/uploads/2015/04/IMG_4501-Selfy_px-186x300.jpg" alt="" width="186" height="300" srcset="http://127.0.0.1:8090/wp-content/uploads/2015/04/IMG_4501-Selfy_px-186x300.jpg 186w, http://127.0.0.1:8090/wp-content/uploads/2015/04/IMG_4501-Selfy_px-768x1237.jpg 768w, http://127.0.0.1:8090/wp-content/uploads/2015/04/IMG_4501-Selfy_px.jpg 807w" sizes="(max-width: 186px) 100vw, 186px" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-443" src="http://127.0.0.1:8090/blog/wp-content/uploads/2017/09/IMG_4501-Selfy_px-186x300.jpg" alt="" width="186" height="300" /></p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/self-portrait-wip.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Acrylic Self Portrait</title>
		<link>http://127.0.0.1:8090/acrylic-self-portrait.htm</link>
					<comments>http://127.0.0.1:8090/acrylic-self-portrait.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Thu, 05 Mar 2015 02:01:35 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://127.0.0.1:8090/?p=469</guid>

					<description><![CDATA[This is one of the first portraits I did, it&#8217;s an acrylic and it looks half finished, the reason I didn&#8217;t keep working on it was that Jenny said she liked it the way it was. The idea behind the composition was from a famous painting done by Gustave Courbet called The Desperate Man.]]></description>
										<content:encoded><![CDATA[<p>This is one of the first portraits I did, it&#8217;s an acrylic and it looks half finished, the reason I didn&#8217;t keep working on it was that Jenny said she liked it the way it was. The idea behind the composition was from a famous painting done by <a href="https://en.wikipedia.org/wiki/Gustave_Courbet">Gustave Courbet</a> called <a href="https://commons.wikimedia.org/wiki/File:Gustave_Courbet_-_Le_D%C3%A9sesp%C3%A9r%C3%A9.JPG">The Desperate Man</a>. </p>
<p>
<a href='http://127.0.0.1:8090/wp-content/uploads/2017/09/IMG_1253.jpg'><img loading="lazy" decoding="async" width="2448" height="3264" src="http://127.0.0.1:8090/wp-content/uploads/2017/09/IMG_1253.jpg" class="attachment-full size-full" alt="" srcset="http://127.0.0.1:8090/wp-content/uploads/2017/09/IMG_1253.jpg 2448w, http://127.0.0.1:8090/wp-content/uploads/2017/09/IMG_1253-225x300.jpg 225w, http://127.0.0.1:8090/wp-content/uploads/2017/09/IMG_1253-768x1024.jpg 768w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a>
</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/acrylic-self-portrait.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
