<?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>code &#8211; An Autonomous Agent</title>
	<atom:link href="/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>/</link>
	<description>exploring the noosphere</description>
	<lastBuildDate>Sun, 12 Aug 2018 03:51:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.2.3</generator>
	<item>
		<title>Mastering Bitcoin – Andreas M. Antonopoulos</title>
		<link>/2018/08/mastering-bitcoin-andreas-m-antonopoulos/</link>
				<comments>/2018/08/mastering-bitcoin-andreas-m-antonopoulos/#disqus_thread</comments>
				<pubDate>Sun, 12 Aug 2018 03:51:56 +0000</pubDate>
		<dc:creator><![CDATA[anautonomousagent]]></dc:creator>
				<category><![CDATA[andreas antonopoulos]]></category>
		<category><![CDATA[bitcoin]]></category>
		<category><![CDATA[blockchain]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">/?p=2550</guid>
				<description><![CDATA[I’ve been following Bitcoin since 2011 but sadly never researched its technical foundations. A few weeks ago I decided to dive into the subject. Mastering Bitcoin, by Andreas M. Antonopoulos, clearly explains the fundamental designs of Bitcoin. The book is well written and an excellent entry point for developers new to the subject. Many sites [&#8230;]]]></description>
								<content:encoded><![CDATA[<div class="post-content">
<p>I’ve been following Bitcoin since 2011 but sadly never researched its technical foundations. A few weeks ago I decided to dive into the subject. <a href="http://a.co/4VbZiYq">Mastering Bitcoin</a>, by Andreas M. Antonopoulos, clearly explains the fundamental designs of Bitcoin. The book is well written and an excellent entry point for developers new to the subject. Many sites and people recommend this book and rightly so, because after reading it, I feel that I have a new understanding and appreciation of everything blockchain related. While it is detailed and technical — geared towards an audience familiar with programming and Internet technologies, it can be a great resource for those wanting an intellectual challenge.</p>
<p>If you decide to purchase the book, make sure you do it on <a href="https://purse.io/shop">purse.io</a> with Bitcoin. Purse is now where I make any purchases for books or things I would have bought directly from Amazon.</p>
</div>
]]></content:encoded>
							<wfw:commentRss>/2018/08/mastering-bitcoin-andreas-m-antonopoulos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>WordPress Application as Static Site Generator</title>
		<link>/2017/09/wordpress-appliction-as-static-site-generator/</link>
				<comments>/2017/09/wordpress-appliction-as-static-site-generator/#disqus_thread</comments>
				<pubDate>Mon, 11 Sep 2017 23:58:10 +0000</pubDate>
		<dc:creator><![CDATA[anautonomousagent]]></dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">/?p=1935</guid>
				<description><![CDATA[While there are currently nice tools which exist to generate static websites, such as Hugo or Jekyll, there is also WordPress combined with a static site generating plug-in. Thus, WordPress can be used just like Hugo and Jekyll to create a set of static files to be hosted on the web via a service like [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>While there are currently nice tools which exist to generate static websites, such as Hugo or Jekyll, there is also WordPress combined with a static site generating plug-in. Thus, WordPress can be used just like Hugo and Jekyll to create a set of static files to be hosted on the web via a service like IPFS or Github pages.</p>
<p>I was forced to investigate this topic thanks to Openshift 3, Redhat&#8217;s new upgrade for their web application hosting platform. For the past three years this site and two others have been running on Openshift&#8217;s version 2 for basically free (around $2.00 per month for total).</p>
<p>But Redhat decided to discontinue Openshift 2 and in the process switch their target customers away from the little guys. Normal people just wanting to blog cannot afford the $50 per month they want for their paid platform hosting account. And just to download their development kit requires filling out private information like phone number, address, and clicking a promise check-box that you agree you are using <a href="https://developers.redhat.com/products/cdk/overview/">their CDK</a> for development only. They are now as frustrating as Oracle, where you can&#8217;t download an old Java version without filling out the same identifying information.</p>
<p>Well, I then started to look around for WordPress hosting, expecting that I could get-by paying a small fee each month &#8211; around $5 for all sites. Nope &#8212; nothing, everywhere that I looked they wanted an exorbitant amount just to host a WordPress application. Namecheap was the best I found, 10 for the first year for three sites and then 50 per year after that. So it then seemed like a no-brainer to create a static site and put it on either IPFS or Github, which would be free. Github does have some restrictions like 1GB storage and I think they even have a monthly bandwidth limit. Since Github is free and since this site is not that popular, it was perfect. IPFS would also be nice, but I have a slow Internet connection and I already host one IPFS site and an <a href="https://www.openbazaar.org/">Openbazaar</a> storefront. And in any-case, with a static site it is rather simple to transfer or simultaneously host on other services.</p>
<p>I had been thinking for some time about switching to static websites, and now I was being forced to actually make the switch. Sacrificing the comment and search functionality in WordPress for a static site was something I didn&#8217;t mind, but for some people this might not be an option. Although, on second thought, you could use Disqus or Discourse and a third party search engine. I then spent about a day installing WordPress on my local desktop and transferring all data from my existing sites to the local install. This was near pain-free, although it may be headache for some who are unfamiliar with the internal structure of WordPress or terminal commands. You just have to follow the instructions listed below with the knowledge that online instructions are not always 100% correct due to differences in operating system versions, previously installed programs, etc&#8230;</p>
<p>And if you are copying existing WordPress data, be sure to export only the necessary tables correctly and remember to transfer all your previous uploads. Once you have the code on your Github repository, you just need to set the CNAME properties on Github and your domain name provider correctly and you are up and running.</p>
<p>Directions:</p>
<p><a href="https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04">How to install WordPress on Ubuntu 14.04</a></p>
<p><a href="https://www.tecmint.com/install-wordpress-on-ubuntu-16-04-with-lamp/">How to install WordPress 4.7 on Ubuntu 16.10/16.04 Using LAMP Stack</a></p>
<p><a href="https://hackernoon.com/set-up-ssl-on-github-pages-with-custom-domains-for-free-a576bdf51bc">Set Up SSL on Github Pages With Custom Domains for Free</a></p>
<p><a href="https://askubuntu.com/questions/48362/how-to-enable-mod-rewrite-in-apache">How to enable mod_rewrite in Apache?</a></p>
<p>Github repositories:</p>
<p><a href="https://github.com/anautonomousagent/anautonomousagent.github.io">An Autonomous Agent</a></p>
<p><a href="https://github.com/solaranamnesis/solaranamnesis.github.io">Solar Anamnesis</a></p>
]]></content:encoded>
							<wfw:commentRss>/2017/09/wordpress-appliction-as-static-site-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Removing Bad, Hot, Dead Pixels &#8211; GIMP</title>
		<link>/2016/12/removing-bad-pixels-gimp/</link>
				<comments>/2016/12/removing-bad-pixels-gimp/#disqus_thread</comments>
				<pubDate>Fri, 16 Dec 2016 19:38:57 +0000</pubDate>
		<dc:creator><![CDATA[anautonomousagent]]></dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">https://anautonomousagent.com/?p=1682</guid>
				<description><![CDATA[My 5MP A3550UPA Omax CCD has about 20 bad (hot or dead) pixel groups in every image. They seem to be identical through time and are noticeable on my raw images. Typically, the panoramas I create are composed of between 80 and 200 individual images that I stitch together manually. Before stitching I go through [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>My 5MP <a href="http://www.microscopenet.com/omax-50mp-high-sensitivity-digital-camera-microscope-with-reduction-lens-p-10085.html" target="_blank">A3550UPA Omax</a> CCD has about 20 bad (hot or dead) pixel groups in every image. They seem to be identical through time and are noticeable on my raw images. Typically, the panoramas I create are composed of between 80 and 200 individual images that I stitch together manually. Before stitching I go through the images with the GIMP blur tool in order to remove these bad CCD pixels. Thus, I have to blur between 1,600 and 4,000 pixel groups. A tedious task! This takes between one and two weeks to complete, depending on my free time.</p>
<div id="attachment_1691" style="width: 310px" class="wp-caption alignnone"><a href="https://anautonomousagent.com/wp-content/uploads/2016/12/bad-ccd-1.png"><img aria-describedby="caption-attachment-1691" class="size-medium wp-image-1691" src="https://anautonomousagent.com/wp-content/uploads/2016/12/bad-ccd-1-300x239.png" alt="Bad CCD Example" width="300" height="239" srcset="/wp-content/uploads/2016/12/bad-ccd-1-300x239.png 300w, /wp-content/uploads/2016/12/bad-ccd-1-768x611.png 768w, /wp-content/uploads/2016/12/bad-ccd-1-900x716.png 900w, /wp-content/uploads/2016/12/bad-ccd-1.png 929w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1691" class="wp-caption-text">Bad CCD Example &#8211; Blue</p></div>
<p>My patience for this corrective task has run dry. Since I knew that GIMP was theoretically capable of performing such a repetitive task via a custom script, I decided to develop such a script. The final result is a tiny piece of code. Its brevity masks the hours of frustration and hopeless despair I encountered while learning <a href="http://www.scheme.com/tspl4/" target="_blank">Scheme</a> and integrating the commands into GIMP as a valid working procedure. My work has paid off. I now have a script which corrects all my bad pixels.</p>
<p><a href="https://github.com/bigttrott/gimp/blob/master/fix-bad-ccd/script/script-fu-fix-bad-ccd-pixels.scm" target="_blank">Github &#8211; Bad CCD Fix Script</a></p>
<p>At first I tried to develop a script based on layer masks and Gaussian blurring. The results were never what I wanted. For instance a Gaussian blur mask on only the bad pixels still contained some of the original RGB color information from the bad pixels. I then tried doing the Gaussian blur preceded by a selection remove of the bad pixels. However, this had a problem &#8211; the Gaussian blur is not fully colored in the removed bad pixel areas, i.e. transparency issues remain in the removed pixel holes. The final result had colors were not quite correct.</p>
<div id="attachment_1693" style="width: 310px" class="wp-caption alignleft"><a href="https://anautonomousagent.com/wp-content/uploads/2016/12/bad-ccd-5.png"><img aria-describedby="caption-attachment-1693" class="size-medium wp-image-1693" src="https://anautonomousagent.com/wp-content/uploads/2016/12/bad-ccd-5-300x229.png" alt="Gaussian Blur Without Bad Pixel" width="300" height="229" srcset="/wp-content/uploads/2016/12/bad-ccd-5-300x229.png 300w, /wp-content/uploads/2016/12/bad-ccd-5-768x586.png 768w, /wp-content/uploads/2016/12/bad-ccd-5.png 845w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1693" class="wp-caption-text">Gaussian Blur Without Bad Pixel</p></div>
<div id="attachment_1692" style="width: 310px" class="wp-caption alignright"><a href="https://anautonomousagent.com/wp-content/uploads/2016/12/bad-ccd-6.png"><img aria-describedby="caption-attachment-1692" class="wp-image-1692 size-medium" src="https://anautonomousagent.com/wp-content/uploads/2016/12/bad-ccd-6-300x129.png" alt="Isolate the Pixel" width="300" height="129" srcset="/wp-content/uploads/2016/12/bad-ccd-6-300x129.png 300w, /wp-content/uploads/2016/12/bad-ccd-6-768x330.png 768w, /wp-content/uploads/2016/12/bad-ccd-6-1024x441.png 1024w, /wp-content/uploads/2016/12/bad-ccd-6-900x387.png 900w, /wp-content/uploads/2016/12/bad-ccd-6.png 1155w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1692" class="wp-caption-text">Isolate the Pixel</p></div>
<p>I thought I had reached a brick wall and that I may have to do the pixel correction manually as before.</p>
<p>After a little research I found the work of Dr. Paul Harrison, who has created an amazing GIMP Python plugin designed for complex pixel correction. You can read about this plugin and all its cool features at <a href="http://blog.patdavid.net/2012/08/getting-around-in-gimp-heal-selection.html" target="_blank">Pat David&#8217;s blog</a>.</p>
<p>The final code flows from this discovery and the entire script is centered around the Heal Selection plugin. The script loops through a set of images and prepares them for the Heal Selection function.</p>
<p>The selection is based off a static file containing the black points in the precise locations of the bad CCD pixels. The script takes this reference file and using the GIMP &#8220;Alpha to Selection&#8221; creates a selection based on the black points.</p>
<div id="attachment_1695" style="width: 310px" class="wp-caption alignnone"><a href="https://anautonomousagent.com/wp-content/uploads/2016/12/bad-ccd-2.png"><img aria-describedby="caption-attachment-1695" class="size-medium wp-image-1695" src="https://anautonomousagent.com/wp-content/uploads/2016/12/bad-ccd-2-300x254.png" alt="Black Point Example" width="300" height="254" srcset="/wp-content/uploads/2016/12/bad-ccd-2-300x254.png 300w, /wp-content/uploads/2016/12/bad-ccd-2-768x651.png 768w, /wp-content/uploads/2016/12/bad-ccd-2.png 775w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-1695" class="wp-caption-text">Black Point Example</p></div>
<p>The manual GIMP steps for the script are:</p>
<ol>
<li>Open the image</li>
<li>Add the &#8220;black points&#8221; PNG image as a layer</li>
<li>Right click on the &#8220;black points&#8221; layer and click &#8220;Alpha to Selection&#8221;</li>
<li>Merge layers, aka flatten</li>
<li>Click Heal Selection plugin and enter desired parameters</li>
<li>Clear selection</li>
<li>Save</li>
</ol>
<p>Thanks to this script I can turn a week or two of work into an hour or less. <strong>NOTE:</strong> <strong>I was only able to successfully run the script via the GIMP internal console</strong>.</p>
<p>I have included test images and example commands in the <a href="https://github.com/bigttrott/gimp/tree/master/fix-bad-ccd/test" target="_blank">Github folder</a>.</p>
]]></content:encoded>
							<wfw:commentRss>/2016/12/removing-bad-pixels-gimp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>A Few Interesting Projects</title>
		<link>/2016/05/a-few-interesting-projects/</link>
				<comments>/2016/05/a-few-interesting-projects/#disqus_thread</comments>
				<pubDate>Wed, 04 May 2016 17:55:32 +0000</pubDate>
		<dc:creator><![CDATA[anautonomousagent]]></dc:creator>
				<category><![CDATA[bitcoin]]></category>
		<category><![CDATA[blockchain]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[ethereum]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[ipfs]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">https://anautonomousagent.com/?p=1540</guid>
				<description><![CDATA[This post is aimed at people who are perhaps unaware of some new technologies and platforms. I have listed the ones I think have great potential to benefit an open society. If you have any others which are of similar scope, please let me know. Will add to these links as I continue to research. [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>This post is aimed at people who are perhaps unaware of some new technologies and platforms. I have listed the ones I think have great potential to benefit an open society.<br />
If you have any others which are of similar scope, please let me know. Will add to these links as I continue to research.</p>
<p>Update (06-12-2016):</p>
<p><a href="http://sia.tech/" target="_blank">Sia</a> &#8211; Will someone develop a MySQL version to run a database that exists on Sia? I imagine hosting a WordPress site on IPFS, and the database for the site will be on Sia, I think that is a correct way to view the future of WordPress&#8230;?</p>
<p><a href="https://steem.io/" target="_blank">Steem</a></p>
<p><a href="https://github.com/ligi/IPFSDroid" target="_blank">IPFSDroid</a> &#8211; IPFS for Android, eventually I imagine it will support a full node on a cell phone!</p>
<p>Update (05-11-2016):</p>
<p><a href="http://akasha.world/" target="_blank">AKASHA PROJECT</a></p>
<p>IPFS:</p>
<p><a href="https://ipfs.io/" target="_blank">InterPlanetary File System</a> and <a href="https://ipfs.io/blog/" target="_blank">IPFS Blog</a></p>
<p><a href="https://speakerdeck.com/jbenet/ipfs-at-dotscale" target="_blank">Juan Batiz-Benet slide deck</a></p>
<p>Ethereum:</p>
<p><a href="https://www.ethereum.org/" target="_blank">Ethereum</a> and <a href="https://blog.ethereum.org/" target="_blank">Ethereum Blog</a></p>
<p><a href="https://dappsforbeginners.wordpress.com/tutorials/introduction-to-development-on-ethereum/">Developing Dapps</a></p>
<p>Synereo:</p>
<p><a href="http://www.synereo.com/" target="_blank">Synereo</a> and <a href="http://blog.synereo.com/" target="_blank">Synereo Blog</a></p>
<p>Others:</p>
<p><a href="https://anautonomousagent.com/2016/04/follow-my-vote-online-voting-platform/">Follow My Vote</a></p>
<p>Kim Dotcom&#8217;s MegaNet (link and status pending&#8230;)</p>
<h6>Videos:</h6>
<p>Juan Batiz-Benet at DEVCON1:</p>
<div class="youtube"
     id="ewpIi1y_KDc"
     style="width: 100%; height: 360px;">
</div>
<p>Ethereum for Dummies &#8211; Dr. Gavin Wood at DEVCON1:</p>
<div class="youtube"
     id="U_LK0t_qaPo"
     style="width: 100%; height: 360px;">
</div>
<p>MegaNet Kim Dotcom on RT:</p>
<div class="youtube"
     id="2fVl06phBGg"
     style="width: 100%; height: 360px;">
</div>
]]></content:encoded>
							<wfw:commentRss>/2016/05/a-few-interesting-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Nerdy Method to Encode Email Address to Avoid Spam</title>
		<link>/2016/04/nerdy-method-to-encode-email-address-to-avoid-spam/</link>
				<comments>/2016/04/nerdy-method-to-encode-email-address-to-avoid-spam/#disqus_thread</comments>
				<pubDate>Thu, 07 Apr 2016 13:07:09 +0000</pubDate>
		<dc:creator><![CDATA[anautonomousagent]]></dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">https://anautonomousagent.com/?p=1496</guid>
				<description><![CDATA[Contact Email (spam robots&#8230; try to solve this!): Supply modulus N: 13503701 Decryption Key d: 2273 Ciphertext Message in numeric form: 8207129 334600 4505190 12801374 7109281 11118282 2016909 11164527 5778177 7691883 10206105 12801374 10206105 2976139 7669811 Decrypt Email Here NOTE: To encode your own email you must first find two prime numbers and then follow [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>Contact Email (spam robots&#8230; try to solve this!):</p>
<p>Supply modulus N: 13503701</p>
<p>Decryption Key d: 2273</p>
<p>Ciphertext Message in numeric form:</p>
<p>8207129 334600 4505190 12801374 7109281 11118282 2016909 11164527 5778177 7691883 10206105 12801374 10206105 2976139 7669811</p>
<p><a href="https://www.cs.drexel.edu/~introcs/Fa11/notes/10.1_Cryptography/RSA_Express_EncryptDecrypt.html" target="_blank">Decrypt Email Here</a></p>
<p>NOTE: To encode your own email you must first find two prime numbers and then follow the steps listed in this <a href="https://www.cs.drexel.edu/~introcs/Fa11/notes/10.1_Cryptography/RSAWorksheetv4d.html" target="_blank">RSA Worksheet</a>.</p>
]]></content:encoded>
							<wfw:commentRss>/2016/04/nerdy-method-to-encode-email-address-to-avoid-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Code: The Hidden Language of Computer Hardware and Software &#8211; Charles Petzold</title>
		<link>/2013/10/code-the-hidden-language-of-computer-hardware-and-software-charles-petzold/</link>
				<comments>/2013/10/code-the-hidden-language-of-computer-hardware-and-software-charles-petzold/#disqus_thread</comments>
				<pubDate>Sun, 20 Oct 2013 22:37:00 +0000</pubDate>
		<dc:creator><![CDATA[anautonomousagent]]></dc:creator>
				<category><![CDATA[alan turing]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[charles babbage]]></category>
		<category><![CDATA[charles petzold]]></category>
		<category><![CDATA[claude shannon]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[information theory]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">https://anautonomousagent.com/?p=140</guid>
				<description><![CDATA[I recently entered a computer science reading frenzy and have a few books in this category which I wish to read. Code, by Charles Petzold&#160;provides a readable, accessible, and concise account of the fundamental concepts supporting the hardware and software enabling you to read this post. So important are these concepts to our daily lives, [&#8230;]]]></description>
								<content:encoded><![CDATA[<div style="clear: both; text-align: center;"><a href="//anautonomousagent.com/wp-content/uploads/2013/10/C88011.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="//anautonomousagent.com/wp-content/uploads/2013/10/C88011.jpg" width="220" /></a></div>
<p>I recently entered a computer science reading frenzy and have a few books in this category which I wish to read. <a href="//amzn.com/0735611319" target="_blank"><i>Code</i></a>, by <a href="//en.wikipedia.org/wiki/Charles_Petzold" target="_blank">Charles Petzold</a>&nbsp;provides a readable, accessible, and concise account of the fundamental concepts supporting the hardware and software enabling you to read this post. So important are these concepts to our daily lives, I think that this book should be required reading in all high schools.</p>
]]></content:encoded>
							<wfw:commentRss>/2013/10/code-the-hidden-language-of-computer-hardware-and-software-charles-petzold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
