Congratulations!

[Valid Atom 1.0] This is a valid Atom 1.0 feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://gdamore.blogspot.com/atom.xml

  1. <?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7528831701633643336</id><updated>2024-03-12T21:03:20.876-07:00</updated><category term="-"/><category term="--"/><category term="afe GLDv3"/><category term="atom"/><category term="blogger"/><category term="feedburner"/><category term="illumos arcmsr"/><category term="illumos gsoc"/><category term="joyent illumos zfs"/><category term="mxfe GLDv3"/><category term="oracle opensolaris"/><category term="rss"/><category term="sdcard"/><category term="zfs nexenta fma"/><title type='text'>/dev/dump</title><subtitle type='html'>Stack backtraces from the mind of Garrett.  Symbolic debugger not included.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://garrett.damore.org/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default?alt=atom&amp;start-index=26&amp;max-results=25'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15319934747521320351</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>352</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-2712453512608765114</id><published>2018-12-10T11:47:00.002-08:00</published><updated>2018-12-10T11:47:59.721-08:00</updated><title type='text'>Golang sync.Cond vs. Channel... </title><content type='html'>The backstory here is that mostly I love the &lt;a href=&quot;http://golang.org/&quot;&gt;Go&lt;/a&gt; programming language.&lt;br /&gt;
  2. &lt;br /&gt;
  3. But I&#39;ve been very dismayed by certain statements from some of the core Go team members about topics that have significant ramification for my concurrent application design.&amp;nbsp; Specifically, &lt;a href=&quot;https://github.com/golang/go/issues/9578&quot;&gt;bold statements&lt;/a&gt; to the effect that &quot;&lt;a href=&quot;https://tour.golang.org/concurrency/2&quot;&gt;channels&lt;/a&gt;&quot; are the way to write concurrent programs, and deemphasizing condition variables.&amp;nbsp; (In one case, there is even a &lt;a href=&quot;https://github.com/golang/go/issues/21165&quot;&gt;proposal&lt;/a&gt; to remove condition variables entirely from Go2!)&lt;br /&gt;
  4. &lt;br /&gt;
  5. &lt;h3&gt;
  6. The Go Position&lt;/h3&gt;
  7. &lt;br /&gt;
  8. Essentially, the Go team believes very strongly in a design principle that can be stated thusly:&lt;br /&gt;
  9. &lt;br /&gt;
  10. &quot;&lt;i style=&quot;color: #222222; font-family: Arial, sans-serif;&quot;&gt;Do not communicate by sharing memory; instead, share memory by communicating.&quot;&lt;/i&gt;&lt;br /&gt;
  11. &lt;br /&gt;
  12. This design principle underlies the design of channels, which behave very much like UNIX pipes, although there are some very surprising semantics associated with channels, which I have found limiting over the years.&amp;nbsp; More on that below.&lt;br /&gt;
  13. &lt;br /&gt;
  14. Certainly, if you can avoid having shared memory state, but instead pass your entire state between cooperating parties, this leads to a simpler, lock free (sort of -- channels have their own locks under the hood!) design.&amp;nbsp; When your work is easily expressed as a pattern of pipelines, this is a better design.&lt;br /&gt;
  15. &lt;br /&gt;
  16. &lt;h3&gt;
  17. The Real World&lt;/h3&gt;
  18. &lt;br /&gt;
  19. The problem is that sometimes (frequently in the real world) your design cannot be expressed this way.&amp;nbsp; &amp;nbsp;Imagine a game engine, dealing with events from the network,&amp;nbsp; multiple players, input sources, physics, modeling, etc.&amp;nbsp; One simple design is to use a single engine model, with a single go routine, and have events come in via many channels.&amp;nbsp; Then you have to create a giant select loop to consume events.&amp;nbsp; This is typical of large event driven systems.&lt;br /&gt;
  20. &lt;br /&gt;
  21. There are some problems with this model.&lt;br /&gt;
  22. &lt;br /&gt;
  23. &lt;br /&gt;
  24. &lt;ol&gt;
  25. &lt;li&gt;&amp;nbsp;Adding channels dynamically just isn&#39;t really possible, because you have a single hard coded select loop.&amp;nbsp; Which means you can&#39;t always cope with changes in the real world.&amp;nbsp; &amp;nbsp;(For example, if you have a channel for inputs, what happens when someone plugs in a new controller?)&lt;/li&gt;
  26. &lt;li&gt;Any processing that has to be done on your common state needs to be in that giant event loop.&amp;nbsp; For example, updates to lighting effects because of an in game event like a laser beam needs to know lots of things about the model -- the starting point of the laser beam, the position of any possible objects in the path of the laser, and so forth.&amp;nbsp; And then this can update the state model with things like whether the beam hit an object, causing a player kill, etc.&lt;/li&gt;
  27. &lt;li&gt;Consequently, it is somewhere between difficult and impossible to really engage multiple CPU cores in this model.&amp;nbsp; (Modern multithreaded games may have an event loop, but they will also make heavy use of locks to access shared state, in order to permit physics calculations and such to be done in parallel with other tasks.)&lt;/li&gt;
  28. &lt;/ol&gt;
  29. &lt;br /&gt;
  30. &lt;br /&gt;
  31. So in the real world, we sometimes have to share memory still.&lt;br /&gt;
  32. &lt;br /&gt;
  33. &lt;h3&gt;
  34. Limitations of Channels&lt;/h3&gt;
  35. &lt;br /&gt;
  36. There are some other specific problems with channels as well.&lt;br /&gt;
  37. &lt;br /&gt;
  38. &lt;br /&gt;
  39. &lt;ul&gt;
  40. &lt;li&gt;Closed channels cannot be closed again (panic if you do), and writing to a closed channel panics.&amp;nbsp;&lt;/li&gt;
  41. &lt;li&gt;This means that you cannot easily use go channels with multiple writers.&amp;nbsp; Instead, you have to orchestrate closing the channel with some other outside synchronization primitive, such as a mutex and flag, or a wait group.)&amp;nbsp; This semantic also means that close() is &lt;i&gt;not idempotent&lt;/i&gt;.&amp;nbsp; That&#39;s a really unfortunate design choice.&lt;/li&gt;
  42. &lt;li&gt;It&#39;s not possible to broadcast to multiple readers simultaneously with a channel other than by closing it.&amp;nbsp; For example, if I am going to want to wake a bunch of readers simultaneously (such as to notify multiple client applications about a significant change in a global status), I have no easy way to do that.&amp;nbsp; I either need to have separate channels for each waiter, or I need to hack together something else (for example adding a mutex, and allocating a fresh replacement channel each time I need to do a broadcast.&amp;nbsp; The mutex has to be used so that waiters know to rescan for a changed channel, and to ensure that if there are multiple signalers, I don&#39;t wake them all.)&lt;/li&gt;
  43. &lt;li&gt;Channels are &lt;i&gt;slow&lt;/i&gt;.&amp;nbsp; More correctly, select with multiple channels is slow.&amp;nbsp; This means that designs where I have multiple potential &quot;wakers&quot; (for different events) require the use of separate channels, with separate cases within a select statement.&amp;nbsp; For performance sensitive work, the cost of adding a single additional case to a select statement was found to be quite measurable.&lt;/li&gt;
  44. &lt;/ul&gt;
  45. There are other things about channels that are unfortunate (for example no way to peek, or to return an object to channel), but not necessarily fatal.&lt;br /&gt;
  46. &lt;br /&gt;
  47. What does concern me is the false belief that I think the Go maintainers are expressing, that channels are a kind of panacea for concurrency problems.&lt;br /&gt;
  48. &lt;br /&gt;
  49. Can you convert any program that uses shared state into one that uses channels instead?&amp;nbsp; Probably.&lt;br /&gt;
  50. &lt;br /&gt;
  51. Would you want to?&amp;nbsp; No.&amp;nbsp; For many kinds of problems, the constructs you have to create to make this work, such as passing around channels of channels, allocating new channels for each operation, etc. are fundamentally harder to understand, less performant, and more fragile than a simpler design making use of a single mutex and a condition variable would be.&lt;br /&gt;
  52. &lt;br /&gt;
  53. &lt;a href=&quot;https://kaviraj.me/understanding-condition-variable-in-go/&quot;&gt;Others&lt;/a&gt; have written on this as well.&lt;br /&gt;
  54. &lt;br /&gt;
  55. &lt;h3&gt;
  56. Channels Are Not A Universal Cure&lt;/h3&gt;
  57. &lt;div&gt;
  58. &lt;br /&gt;&lt;/div&gt;
  59. It &lt;a href=&quot;http://dtrace.org/blogs/wesolows/2014/12/29/golang-is-trash/&quot;&gt;has been said before&lt;/a&gt; that the Go folks are guilty of ignoring the work that has been done in operating systems for the past several decades (or maybe rather of being guilty of NIH). I believe that the attempt to push channels as the solution over all others is another sign of this.&amp;nbsp; We (in the operating system development community) have ample experience using threads (true concurrency), mutexes, and condition variables to solve large numbers of problems with real concurrency for &lt;i&gt;decades, and doing so scalably&lt;/i&gt;.&amp;nbsp;&lt;br /&gt;
  60. &lt;br /&gt;
  61. It takes a lot of hubris for the Golang team to say we&#39;ve all been doing it wrong the entire time.&amp;nbsp; Indeed, if you look for condition variables in the implementation of the standard Go APIs, &lt;a href=&quot;https://github.com/golang/net/blob/e514e69ffb8bc3c76a71ae40de0118d794855992/http2/pipe.go#L18&quot;&gt;you&lt;/a&gt; &lt;a href=&quot;https://github.com/golang/go/blob/42257a262c94d839364113f2dbf4057731971fc1/src/runtime/os_darwin.go#L30&quot;&gt;will&lt;/a&gt; &lt;a href=&quot;https://github.com/golang/crypto/blob/a49355c7e3f8fe157a85be2f77e6e269a0f89602/ssh/buffer.go#L17&quot;&gt;find&lt;/a&gt; &lt;a href=&quot;https://github.com/golang/leveldb/blob/259d9253d71996b7778a3efb4144fe4892342b18/leveldb.go#L76&quot;&gt;them&lt;/a&gt;.&amp;nbsp; Really, this is a tool in the toolbox, and a useful one, and I personally find it a bit insulting that the Go team seems to treat this as a tool with sharp edges with which I can&#39;t really be trusted.&lt;br /&gt;
  62. &lt;br /&gt;
  63. I also think there is a recurring disease in our industry to try to find a single approach as a silver bullet for all problems -- and this is definitely a case in point.&amp;nbsp; Mature software engineers understand that there are many different problems, and different tools to solve them, and should be trusted to understand when a certain tool is or is not appropriate.&lt;br /&gt;
  64. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/2712453512608765114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=2712453512608765114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/2712453512608765114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/2712453512608765114'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/12/golang-synccond-vs-channel.html' title='Golang sync.Cond vs. Channel... '/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-3737755355297793857</id><published>2018-12-01T11:33:00.001-08:00</published><updated>2018-12-01T11:33:41.950-08:00</updated><title type='text'>Go modules, so much promise, so much busted</title><content type='html'>Folks who follow me may know that &lt;a href=&quot;http://golang.org/&quot;&gt;Go&lt;/a&gt; is one of my favorite programming languages.&amp;nbsp; The ethos of Go has historically been closer to that of C, but seems mostly to try to improve on the things that make C less than ideal for lots of projects.&lt;div&gt;
  65. &lt;br /&gt;&lt;/div&gt;
  66. &lt;div&gt;
  67. One of the challenges that Go has always had is it&#39;s very weak support for versioning, dependency management, and vendoring.&amp;nbsp; The Go team&#39;s historic promise and premise (called the &lt;a href=&quot;https://golang.org/doc/go1compat&quot;&gt;Go1 Promise&lt;/a&gt;) was that the latest version in any repo should always be preferred. This has a few ramifications:&lt;/div&gt;
  68. &lt;div&gt;
  69. &lt;br /&gt;&lt;/div&gt;
  70. &lt;div&gt;
  71. &lt;ul&gt;
  72. &lt;li&gt;No breaking changes permitted in a library, or package, ever.&lt;/li&gt;
  73. &lt;li&gt;The package should be &quot;bug-free&quot; at master.&amp;nbsp; (I.e. regression free.)&lt;/li&gt;
  74. &lt;li&gt;The package should live forever.&lt;/li&gt;
  75. &lt;/ul&gt;
  76. &lt;/div&gt;
  77. &lt;div&gt;
  78. &lt;br /&gt;&lt;/div&gt;
  79. &lt;div&gt;
  80. For small projects, these are noble goals, but over time it&#39;s been well demonstrated that this doesn&#39;t work. APIs just too often need to evolve (perhaps to correct earlier mistakes) in incompatible ways. Sometimes its easier to discard an older API than to update it to support new directions.&lt;/div&gt;
  81. &lt;div&gt;
  82. &lt;br /&gt;&lt;/div&gt;
  83. &lt;div&gt;
  84. Various 3rd party solutions, such as &lt;a href=&quot;http://gopkg.in/&quot;&gt;gopkg.in&lt;/a&gt;, have been offered to deal with this, by providing some form of semantic versioning support.&lt;/div&gt;
  85. &lt;div&gt;
  86. &lt;br /&gt;&lt;/div&gt;
  87. &lt;div&gt;
  88. Recently, go1.11 was released with an opt-in new feature called &quot;&lt;a href=&quot;https://github.com/golang/go/wiki/Modules&quot;&gt;modules&lt;/a&gt;&quot;.&amp;nbsp; The premise here is to provide a way for packages to manage dependencies, and to break away from the historic pain point of $GOPATH.&lt;/div&gt;
  89. &lt;div&gt;
  90. &lt;br /&gt;&lt;/div&gt;
  91. &lt;div&gt;
  92. Unfortunately, with go modules, they have basically tossed the Go1 promise out the window.&amp;nbsp;&lt;/div&gt;
  93. &lt;div&gt;
  94. &lt;br /&gt;&lt;/div&gt;
  95. &lt;div&gt;
  96. Packages that have a v2 in their import URL (like my &lt;a href=&quot;http://github.com/nanomsg/mangos-v2&quot;&gt;mangos version 2&lt;/a&gt; package) are assumed to have certain layouts, and are required to have a new &lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;go.mod&lt;/span&gt; module file to be importable in any project using modules.&amp;nbsp; This is a new, unannounced requirement, and it broke my project from being used with any other code that wants to use modules.&amp;nbsp; (As of right now this is still broken.)&lt;/div&gt;
  97. &lt;div&gt;
  98. &lt;br /&gt;&lt;/div&gt;
  99. &lt;div&gt;
  100. At the moment, I&#39;m believing that there is no way to correct my repository so that it will be importable by both old code, and new code, using the same import URL.&amp;nbsp; The &quot;magical&quot; handling of &quot;v2&quot; in the import path seems to preclude this.&amp;nbsp; (I suspect that I probably need different contradictory lines in my HTML file that I use to pass &quot;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;go-imports&lt;/span&gt;&quot;, depending on whether someone is using the new style go modules, or the old style $GOPATH imports.)&lt;/div&gt;
  101. &lt;div&gt;
  102. &lt;br /&gt;&lt;/div&gt;
  103. &lt;div&gt;
  104. The old way of looking at vendored code is no longer used.&amp;nbsp; (You can opt-in to it if you want still.)&lt;/div&gt;
  105. &lt;div&gt;
  106. &lt;br /&gt;&lt;/div&gt;
  107. &lt;div&gt;
  108. It&#39;s entirely unclear how &lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;godoc&lt;/span&gt; is meant to operate the presence of modules.&amp;nbsp; I was trying to setup a new repo for a v2 that might be module safe, but I have no idea how to direct godoc at a specific branch.&amp;nbsp; Google and go help doc were unhelpful in explaining this.&lt;/div&gt;
  109. &lt;div&gt;
  110. &lt;br /&gt;&lt;/div&gt;
  111. &lt;div&gt;
  112. This is all rather frustrating, because getting away from $GOPATH seems to be such a good thing.&lt;/div&gt;
  113. &lt;div&gt;
  114. &lt;br /&gt;&lt;/div&gt;
  115. &lt;div&gt;
  116. At any rate, it seems that go&#39;s modules are not yet fully baked.&amp;nbsp; I hope that they figure out a way for existing packages to automatically be supported without requiring reorganizing repos.&amp;nbsp; (I realize that this is already true for most packages, but for some -- like my mangos/v2 package -- that doesn&#39;t seem to hold true).&lt;/div&gt;
  117. &lt;div&gt;
  118. &lt;br /&gt;&lt;/div&gt;
  119. </content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/3737755355297793857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=3737755355297793857' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/3737755355297793857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/3737755355297793857'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/12/go-modules-so-much-promise-so-much.html' title='Go modules, so much promise, so much busted'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-2634434695144952901</id><published>2018-06-19T13:57:00.001-07:00</published><updated>2018-06-19T13:57:42.142-07:00</updated><title type='text'>Letter to Duncan Hunter (Immigration)</title><content type='html'>(Congressman Duncan Hunter is my Representative in the House.&amp;nbsp; Today I sent the letter below to him through the congressional email posting service (which verifies that I&#39;m his constituent).&amp;nbsp; A copy is here for others to read.&amp;nbsp; I encourage everyone, especially those in districts with Republican congressional representation to write a similar letter and send it to their congressman via the site at house.gov -- you can look up your own representative on the same site.)&lt;br /&gt;
  120. &lt;br /&gt;
  121. Congressman Hunter,&lt;br /&gt;
  122. &lt;br /&gt;
  123. I have read your &quot;position&quot; statement with respect to the administrations &quot;Zero Tolerance&quot; treatment towards immigration, and the separation of families seeking asylum, and I am *most* dismayed by the position you have taken.&lt;br /&gt;
  124. &lt;br /&gt;
  125. I would encourage you to start by reading the full text of the following court order, which describes the reprehensible actions taken by the administration: https://t.co/adhGO6BDJR&lt;br /&gt;
  126. &lt;br /&gt;
  127. This is not hearsay, but legal findings by a US Court.&lt;br /&gt;
  128. &lt;br /&gt;
  129. Your claim that &quot;most asylum seekers&quot; are not being broken up is disturbing, because it also indicates that you believe it is okay to separate families &quot;sometimes&quot;.&amp;nbsp; The reality is that there are cases where separation is warranted to protect the children, but there is ample evidence that this is not the case in many of these separations.&amp;nbsp; (See the above court case.)&lt;br /&gt;
  130. &lt;br /&gt;
  131. Not only that, but we know of cases where families have been separated for doing nothing wrong than presenting themselves fully legally at a border crossing and petitioning for asylum.&lt;br /&gt;
  132. &lt;br /&gt;
  133. Even in misdemeanor cases of illegal entry, the punishment of breaking families up -- while both children and parents are held separately for deportation proceedings, is both cruel and unusual punishment, and entirely unnecessary.&lt;br /&gt;
  134. &lt;br /&gt;
  135. It is also my belief that these separations create more risk to the United States, making us less safe.&amp;nbsp; Some of these children will remember the horrible ways that they were treated as criminals by our country.&amp;nbsp; How many will radicalize as a result later in life?&amp;nbsp; Just one is too many, and utterly unnecessary.&lt;br /&gt;
  136. &lt;br /&gt;
  137. Furthermore, the use of the misery of these families as some kind of political card to achieve ends is both morally reprehensible and of dubious value -- the border wall is a boondoggle and will have little effective value. The real problem of immigration is the attraction of millions of jobs -- jobs that should be filled *legally*.&amp;nbsp; (So mandatory eVerify, with criminal prosecution against *EMPLOYERS* who violate rather than against poor immigrants is the real fix to that problem.&amp;nbsp; You backed mandatory eVerify, an action which I applaud.)&lt;br /&gt;
  138. &lt;br /&gt;
  139. The ends -- a border wall -- do NOT justify the means, which have been amply and justifiably compared with the approach used by Nazi Germany in the 1930s, when dealing with Jewish families.&lt;br /&gt;
  140. &lt;br /&gt;
  141. As a nation we are embarrassed by our Internment of Japanese Americans during the same time frame, and the US government has been called to account for that in the past.&amp;nbsp; Yet even in the midst of world war our leaders did not stoop to separating parents from the children, or to use children as some kind of pawns in a larger political scheme.&lt;br /&gt;
  142. &lt;br /&gt;
  143. Indeed, these actions are more akin to those used by terrorists -- literally using &quot;terror&quot; (in this case fear of breaking a family up, which any parent knows is amongst the most terrible things to be contemplated) to achieve political ends.&lt;br /&gt;
  144. &lt;br /&gt;
  145. Please think long and hard about your decision to stand with Trump in this regard.&amp;nbsp; If you stand with him here -- as an agent of terror and tyranny, then I cannot in good conscience stand with you.&lt;br /&gt;
  146. &lt;br /&gt;
  147. You have a unique opportunity to break from the party lines, and demonstrate moral courage here -- an opportunity which if taken would certainly win back my support.&amp;nbsp; &amp;nbsp;Or you can side with forces evil in supporting actions that numerous industry and business leaders have called &quot;morally reprehensible&quot; and &quot;inhumane&quot;.&lt;br /&gt;
  148. &lt;br /&gt;
  149. The choice is yours to make.&amp;nbsp; For now.&lt;br /&gt;
  150. &lt;div&gt;
  151. &lt;br /&gt;&lt;/div&gt;
  152. </content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/2634434695144952901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=2634434695144952901' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/2634434695144952901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/2634434695144952901'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/06/letter-to-duncan-hunter-immigration.html' title='Letter to Duncan Hunter (Immigration)'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-3515984913819585807</id><published>2018-06-09T22:43:00.000-07:00</published><updated>2018-06-09T22:43:35.621-07:00</updated><title type='text'>Self Publishing Lessons</title><content type='html'>Over the past several weeks I&#39;ve learned far more than I ever wanted to about the self publishing process.&amp;nbsp; I&#39;m posting some of my findings here in the hopes that they may help others.&amp;nbsp;&lt;br /&gt;
  153. &lt;br /&gt;
  154. &lt;h2&gt;
  155. TLDR;&lt;/h2&gt;
  156. &lt;br /&gt;
  157. If you&#39;re going with eBooks, and you should, consider using an author website to sell it &quot;early&quot;, and once your book is finished publish it with Kindle Direct Publishing and Smashwords.&amp;nbsp; Keep the author website / store up even after, so you can maximize returns.&amp;nbsp; Price your eBook between $2.99 and $9.99.&lt;br /&gt;
  158. &lt;br /&gt;
  159. If you&#39;re going to go with Print, start with Amazon Kindle Direct Publishing first, unless you&#39;re only needing a small run of books printed only in the USA (in which case TheBookPatch.com looks good).&amp;nbsp; Once you&#39;re book is really done, and you&#39;re ready to branch out to see it available internationally and from other bookstores, publish it with Ingram Spark.&lt;br /&gt;
  160. &lt;br /&gt;
  161. Get and use your own ISBNs (From MyIdentifiers.com -- buy 10 at a time), and make sure you opt out of Kindle Select!&lt;br /&gt;
  162. &lt;br /&gt;
  163. More details are below.&lt;br /&gt;
  164. &lt;br /&gt;
  165. &lt;h2&gt;
  166. eBook Formats&lt;/h2&gt;
  167. &lt;br /&gt;
  168. Let&#39;s start with ebook formats first.&amp;nbsp; Be aware that I&#39;m writing this from California, with no &quot;nexus&quot; elsewhere, and electronic goods (when they are purely electronic) are not taxable here.&amp;nbsp; That means I haven&#39;t worried much about accounting for VAT or Sales Tax, because I don&#39;t have to.&lt;br /&gt;
  169. &lt;br /&gt;
  170. &lt;h3&gt;
  171. Leanpub&lt;/h3&gt;
  172. &lt;br /&gt;
  173. Leanpub is how I started out, but they&#39;ve altered there terms several times.&amp;nbsp; Right now their royalties are not substantially less than anyone else (they used to be), and you can get an even higher return selling through your own store (such as Selz.com).&amp;nbsp; The one thing they have over everyone else is their Markua tools, and their focus on helping authors in the early stages -- you can &quot;publish&quot; before the book is complete on Leanpub.&amp;nbsp; I&#39;m not sure how useful Markua is to other people -- I don&#39;t use it at all.&amp;nbsp; If you have a book in progress, this will let you sell copies early.&amp;nbsp; But, they do take a cut -- 80%. Frankly, their business model seems a bit iffy right now, and I wouldn&#39;t like to put too many eggs in that basket.&amp;nbsp; You won&#39;t need an ISBN at Leanpub.&amp;nbsp; They pay 80% royalties, allow free updates (to a limit most authors are unlikely to hit).&amp;nbsp; Leanpub has very limited reach, and doesn&#39;t distribute to anywhere else.&lt;br /&gt;
  174. &lt;br /&gt;
  175. &lt;h3&gt;
  176. Author Website&lt;/h3&gt;
  177. &lt;br /&gt;
  178. The cheapest and most cost effective way to sell your ebooks is to open your own author store.&amp;nbsp; Sites like Selz.com will let you do this for free, and only charge reasonable transaction fees.&amp;nbsp; With this approach you can get about 95% of the book sales.&amp;nbsp; You can publish as soon as you want, send updates as often as you want, and don&#39;t need ISBNs or anything like that. On the downside, you have to do a little more work to set things up.&amp;nbsp; You&#39;ll also have limited reach, and pretty much look like a fly by night operation.&amp;nbsp; If you want to &quot;pre-publish&quot; before a work is complete, this is a way to do that, without paying that 20% to Leanpub.&amp;nbsp; You can &lt;i&gt;also&lt;/i&gt;&amp;nbsp;leave this store open, and point to it from your personal author pages, even after you are working with the larger distributers.&lt;br /&gt;
  179. &lt;br /&gt;
  180. &lt;h3&gt;
  181. Ingram Spark&lt;/h3&gt;
  182. &lt;br /&gt;
  183. Ingram Spark&#39;s ebook distribution service gets broad reach through relationships with the various outlets.&amp;nbsp; You can use them to get to Apple, Kobo, even Amazon.&amp;nbsp; And yet I would &lt;i&gt;not&lt;/i&gt;&amp;nbsp;recommend doing this.&amp;nbsp; First off they charge to set up the book, typically $25.&amp;nbsp; Then if you want to make a revision to the book, it&#39;s another $25.&amp;nbsp; And then you&#39;re typically going to set it up so that you get only 45% of the royalties (or 40% if you really messed up and didn&#39;t opt out of the Amazon agreement.) . Furthermore, I found that their conversion of my ePub to Kindle format was inferior, leading to a poor reading experience on those devices.&amp;nbsp; (I have some complex layout, and custom fonts, as the book is technical in nature.)&amp;nbsp; &amp;nbsp;I had much better luck generating my own .mobi format and working with Amazon directly.&amp;nbsp; &amp;nbsp;Their service takes forever to get back to you -- I&#39;m still waiting while I try to remove my eBook from their distribution.&amp;nbsp; In short, I would not use Ingram Spark for eBook.&amp;nbsp; You also will need an ISBN if you use Ingram Spark.&lt;br /&gt;
  184. &lt;br /&gt;
  185. &lt;h3&gt;
  186. Amazon (Kindle Direct Publishing)&lt;/h3&gt;
  187. &lt;br /&gt;
  188. Using the Kindle Direct Publishing was pretty easy, and this let me provide a .mobi file that was optimized for Kindle, addressing issues caused by converting from ePub.&amp;nbsp; (To be fair most authors won&#39;t have these problems.)&amp;nbsp; If you want to reach Kindle readers (and you do!), you should just set up a KDP account.&amp;nbsp; One word though -- &lt;i&gt;don&#39;t opt-in to Kindle Select!!&lt;/i&gt;&amp;nbsp; Amazon is great, for distributing to Amazon customers.&amp;nbsp; But you don&#39;t want to give away your exclusivity.&amp;nbsp; &amp;nbsp; There is a weird set of rules about royalties with KDP though.&amp;nbsp; If you want to get their best 70% (which won&#39;t be in all markets, but the main ones) you need to set your List Price between $2.99 and $9.99, inclusive.&amp;nbsp; (Other values are used for other currencies.)&amp;nbsp; Deducted from your 70% rate is the cost to transfer the data to the user, which turns out to be pretty cheap -- less than a dollar typically.&amp;nbsp; (But if you&#39;re only selling a $2.99 book, make sure you keep the file sizes down, or this will hurt your rates.)&amp;nbsp; You can opt for a flat 35% royalty instead, which might make sense if your book is heavy on content, and its required if your book is outside the price points.&amp;nbsp; (This is why you never see ebooks listed for $11.99 or something like that on Amazon.)&lt;br /&gt;
  189. &lt;br /&gt;
  190. &lt;h3&gt;
  191. Smashwords&lt;/h3&gt;
  192. &lt;br /&gt;
  193. I just set up my account with Smashwords, and I&#39;m thrilled so far.&amp;nbsp; It looks like you&#39;ll get about 80% royalties through their own store, and 60% if your book is bought through one of their partners -- which includes just about everyone -- including Apple, GooglePlay, Kobo, etc.&amp;nbsp; This gets you pretty much everywhere, &lt;i&gt;except&lt;/i&gt;&amp;nbsp;Amazon.&amp;nbsp; But you did set up a KDP account already right?&amp;nbsp; They take the royalty, and you&#39;re done.&amp;nbsp; There is one fairly severe draw back to Smashwords -- they want you to upload your manuscript as a specially formatted Word document.&amp;nbsp; (They do have direct ePub though, which you can use if you want.&amp;nbsp; I did this because I don&#39;t have a Word version of my book, and it would be difficult to get one -- it was authored in Asciidoctor.)&amp;nbsp; &amp;nbsp;You will need an ISBN to get into their expanded distribution program, of course.&amp;nbsp; They will offer to sell you one, but I recommend you not do that and use your own.&amp;nbsp; (Especially if you&#39;re uploading your own ePub.)&lt;br /&gt;
  194. &lt;br /&gt;
  195. &lt;h3&gt;
  196. Direct Retailer Accounts&lt;/h3&gt;
  197. &lt;br /&gt;
  198. You can maximize royalties by setting up direct accounts with companies like Apple, Kobo,&amp;nbsp; and Barnes&amp;amp;Noble.&amp;nbsp; In my experience, it just isn&#39;t worth it.&amp;nbsp; Dealing with these all is a headache, and it takes forever.&amp;nbsp; Some, like Google Play Store, are almost impossible to get into.&amp;nbsp; As the list gets large, the percentage of your distribution that are covered here diminishes, consider whether that extra 10% royalty rate is worth the headache.&amp;nbsp; Some of these will need ISBNs, and the pricing and royalties will all vary of course.&lt;br /&gt;
  199. &lt;br /&gt;
  200. &lt;h2&gt;
  201. Printed Books&lt;/h2&gt;
  202. &lt;br /&gt;
  203. If you&#39;ve spent a lot of time making a great book, you probably want to see it in print format, right?&amp;nbsp; Nothing is quite the same to an author as being asked to sign a physical copy of professionally bound book of their own work.&amp;nbsp; Note that it takes some extra effort to set up a book for print -- you&#39;ll need to ensure that you have a press-ready PDF (I had to purchase a copy of Adobe Acrobat DC so that I could properly preflight my files), and setting up the cover can be a challenge if you&#39;re not a designer.&lt;br /&gt;
  204. &lt;br /&gt;
  205. Note that details such as print margins, paper weight, and hence cover sizes, can vary between the different printers.&amp;nbsp; Be prepared to spend a lot of time if you decide to go down this road, and to have to spend a lot of time for &lt;i&gt;each&lt;/i&gt;&amp;nbsp;printer you use.&lt;br /&gt;
  206. &lt;br /&gt;
  207. &lt;h3&gt;
  208. TheBookPatch.com&lt;/h3&gt;
  209. &lt;br /&gt;
  210. After doing some research, I decided to give these guys a shot at printing my first version.&amp;nbsp; I was really impressed with the quality -- while the first printing of my book had a number of issues, none of them were the fault of TheBookPatch -- they were all on me.&amp;nbsp; The problem with these guys is that they are &lt;i&gt;tiny.&amp;nbsp; &lt;/i&gt;Almost nobody has ever heard of them, and you won&#39;t get be getting this listed at places like Barnes&amp;amp;Noble.&amp;nbsp; Additionally, they are rather expensive, particularly if you want to send books to places overseas.&amp;nbsp; At one point I wanted to send one copy of my book to the Netherlands.&amp;nbsp; The shipping cost was going to be about $80.&amp;nbsp; Needless to say, my relationship with TheBookPatch came to an abrupt end.&amp;nbsp; (I&#39;d still recommend giving these guys a shot if you&#39;re printing books for your own use here in the USA.)&amp;nbsp; &amp;nbsp;One big advantage is that they were able to put together an attractive cover using their website cover designer, with no special skills.&amp;nbsp; You also don&#39;t need an ISBN to print through TheBookPatch.com.&lt;br /&gt;
  211. &lt;br /&gt;
  212. &lt;h3&gt;
  213. Ingram Spark&lt;/h3&gt;
  214. &lt;br /&gt;
  215. Ingram Spark has the best rates internationally, and is reputed to have excellent print quality.&amp;nbsp; My book is available from them.&amp;nbsp; They charge $49 to set it up, and $25 for updates.&amp;nbsp; This is super annoying, so I wouldn&#39;t publish with them until and unless you know that you&#39;re ready and need international distribution or want to see your printed book available via Barnes&amp;amp;Noble or other retailers.&amp;nbsp; They&#39;re also &lt;i&gt;slow&lt;/i&gt;.&amp;nbsp; I ordered 3 copies of my book a week ago, and they only confirmed that they are shipping them today.&amp;nbsp; If you&#39;re serious about selling printed books widely, I would definitely go with them.&amp;nbsp; But unless you anticipate the volume, I&#39;d hold off.&amp;nbsp; You will need an ISBN as well.&amp;nbsp; With Ingram Spark, you set up your royalty rates which are usually 45% of &lt;b&gt;net&lt;/b&gt;.&amp;nbsp; &amp;nbsp;Typically this means you&#39;ll get something like a 20-25% actual royalty, depending on the book.&lt;br /&gt;
  216. &lt;br /&gt;
  217. &lt;h3&gt;
  218. Amazon KDP&lt;/h3&gt;
  219. &lt;br /&gt;
  220. Now available for authors, you can use Amazon Print on Demand.&amp;nbsp; After setting up the layout, and doing the work to ensure the quality is good -- which can take some effort -- it&#39;s pretty easy.&amp;nbsp; Amazon will sell you an ISBN if you want one -- I&#39;m not sure if they are required for print books or not.&amp;nbsp; (I already had one from my Ingram Spark journey.)&amp;nbsp; Amazon gives a much better royalty, of 60% of &lt;b&gt;net&lt;/b&gt;, and their printing costs for small runs seem to be fairly inexpensive, as is shipping.&amp;nbsp; For example, my 430 page, 2 lb (7.5&quot;x9.25&quot; paperback) book cost about $6 to print, and about $10 to ship.&amp;nbsp; That means that as my list price is $49.95, I can expect to receive about $20.&amp;nbsp; Amazon will cut into their own margins to discount the book as well, to optimize the price.&amp;nbsp; Having said all that, I&#39;m still waiting for my proof, which Amazon apologized for taking an extra day or two to print -- I should be getting it in a couple of days (I opted for the cheap shipping -- you can&#39;t use your Prime account to ship author proofs which are made available to you &lt;i&gt;at cost&lt;/i&gt;).&amp;nbsp; Their paper is thicker than Ingram&#39;s and so I had to redesign the cover, and their margins are stricter (my page numbers fell outside their strict .5&quot; margins), so I wound up having to re-do the whole layout.&amp;nbsp; It would have been better if I had started with Amazon first.&lt;br /&gt;
  221. &lt;br /&gt;
  222. There are other print-on-demand players, but I&#39;ve heard enough complaints about print quality when using them, that I just avoided them.&amp;nbsp; After all, if you&#39;re bothering to put your book into print, you want the results to reflect all the effort you put into it.&lt;br /&gt;
  223. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/3515984913819585807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=3515984913819585807' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/3515984913819585807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/3515984913819585807'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/06/self-publishing-lessons.html' title='Self Publishing Lessons'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-4008668063095415098</id><published>2018-06-04T20:56:00.001-07:00</published><updated>2018-06-04T20:56:47.153-07:00</updated><title type='text'>Altering the deal... again....</title><content type='html'>(No, this is not about GitHub or Microsoft... lol.)&lt;br /&gt;
  224. &lt;br /&gt;
  225. Back in March (just a few months ago), I signed up on &lt;a href=&quot;http://leanpub.com/&quot;&gt;Leanpub&lt;/a&gt; to publish the &lt;a href=&quot;http://staysail.tech/books/nng_reference/index.html&quot;&gt;NNG Reference Manual&lt;/a&gt;.&amp;nbsp; I was completely in the dark about how to go about self-publishing a book, and a community member pointed me at Leanpub.&lt;br /&gt;
  226. &lt;br /&gt;
  227. Leanpub charged $99 to set up, back in March, and offered a 90% (minus 50 cents) royalty rate.&amp;nbsp; On top of it they let me choose a price from free, or $0.99 to $99.&amp;nbsp; Buyers could choose within that range.&amp;nbsp; This looked great, although I was a bit hesitant to spend the $99 since there was no way to try their platform out.&lt;br /&gt;
  228. &lt;br /&gt;
  229. Note that at this time I was not interested (and am still not interested) in their authoring tools based on Markua.&amp;nbsp; I had excellent tooling already in &lt;a href=&quot;http://asciidoctor.org/&quot;&gt;Asciidoctor&lt;/a&gt;, plus a bunch of home-grown tools (that I&#39;ve since further expanded upon) to markup and layout the book, plus previewing, etc.&lt;br /&gt;
  230. &lt;br /&gt;
  231. Everything was great, and I made sales ranging from $0.99 to $20.&amp;nbsp; Not a lot of sales, but enough to nearly recoup my $99 investment.&amp;nbsp; Now, I wasn&#39;t looking at this as a money making venture, but as a way to help support my work around NNG -- having a professionally produced reference manual was something I considered an important step for NNG.&lt;br /&gt;
  232. &lt;br /&gt;
  233. Shortly after I created the book and published, Leanpub changed the minimum price that buyers could pay to $4.99.&amp;nbsp; We&#39;re talking about a digital good here.&amp;nbsp; First time the deal was altered....&lt;br /&gt;
  234. &lt;br /&gt;
  235. Then in April, they introduced a new SaaS pricing model, where I could have ditched the $99 fee.&amp;nbsp; So I&#39;m feeling like a chump, but hey at least I have that 90% royalty rate, right?&amp;nbsp; (By this time I&#39;d sold enough to cover that initial $99 outlay, thanks to generous supporters from the NNG community.) . Deal altered &lt;i&gt;again&lt;/i&gt;.&lt;br /&gt;
  236. &lt;br /&gt;
  237. Then they introduced a freemium model in May, where I really could have skipped that $99 outlay.&amp;nbsp; But they told me that I was grandfathered, so I could keep my 90% rate, so I was getting &lt;i&gt;something&lt;/i&gt;&amp;nbsp;for that $99 I spent originally.&amp;nbsp; Deal altered third time?&lt;br /&gt;
  238. &lt;br /&gt;
  239. Now, they&#39;ve told me that they&#39;ve changed their mind, and no, they aren&#39;t going to let me keep that grandfathered rate.&amp;nbsp; Deal altered &lt;b&gt;again?!?&lt;/b&gt;&lt;br /&gt;
  240. &lt;br /&gt;
  241. They posted a &lt;a href=&quot;https://leanpub.com/grandfathering&quot;&gt;long essay&lt;/a&gt; explaining why they &quot;had&quot; to do this.&amp;nbsp; I get it, their old business model wasn&#39;t working.&amp;nbsp; But in the past 3 months they&#39;ve made not one, not two, but &lt;i&gt;three&lt;/i&gt; changes to their pricing and business model.&amp;nbsp; They&#39;ve made promises, and gone back on their word.&lt;br /&gt;
  242. &lt;br /&gt;
  243. But it&#39;s ok, because at 80% I&#39;m making more than with Amazon, right?&amp;nbsp; Well, no, not really.&amp;nbsp; I won&#39;t repeat the calculations here, but it turns out that I would have made slightly more money with Amazon.&amp;nbsp; Now, that&#39;s partly due to the fact that my sales have been quite slow (as they were predicted to be -- this is a really niche book -- a reference manual for a product that isn&#39;t even 1.0 yet.)&lt;br /&gt;
  244. &lt;br /&gt;
  245. The thing is, I&#39;m slightly irked about the loss of income, but I&#39;m much more angry about the lack of respect they&#39;ve given us, their authors and customers.&amp;nbsp; Clearly, their promises don&#39;t carry much weight.&amp;nbsp; They&#39;ve offered lifetime free Pro accounts to customers who were with them long enough to have at least $500 in royalties, but everyone else is out of luck.&amp;nbsp; As to those lifetime pro accounts -- well, it&#39;s &quot;lifetime, or until we change our mind&quot;.&amp;nbsp; &amp;nbsp;Which seems to occur about once a month.&lt;br /&gt;
  246. &lt;br /&gt;
  247. Now Leanpub isn&#39;t some big bad company, but their attitude and thinking reflected in how they&#39;ve handled this process shows clear alignment with the same thought processes that those big bad companies have.&amp;nbsp; As an author you&#39;re not a valued partner to them -- you&#39;re a source of revenue, with very little effort on their part required to support you.&lt;br /&gt;
  248. &lt;br /&gt;
  249. I&#39;ve started rethinking my use of Leanpub obviously.&lt;br /&gt;
  250. &lt;br /&gt;
  251. It seems like I can make use of &lt;a href=&quot;https://selz.com/&quot;&gt;Selz&lt;/a&gt; which seems to have really good support for selling digital goods like eBooks (and even has a Pay What You Want option!), and with my small number of digital goods will only charge me the transaction processing costs -- either 2.9% or 3.9% depending on location.&amp;nbsp; (Digital goods are not taxable in California.)&amp;nbsp; So what was I gaining from Leanpub again?&lt;br /&gt;
  252. &lt;br /&gt;
  253. For Kindle and iBooks, it also looks like dealing with Amazon and Apple directly look like a better deal than Leanpub.&amp;nbsp; You get their expanded distribution, and yes, you only get 70% royalties, but you don&#39;t have to pay any recurring fees.&amp;nbsp; Unless you&#39;re doing large volumes, the math on these works out better than any of the Leanpub paid plans.&lt;br /&gt;
  254. &lt;br /&gt;
  255. &amp;nbsp;(IngramSpark, where I have also posted the book, also works, but I&#39;ve had less than satisfactory results with their epub-&amp;gt;mobi conversion, so I can&#39;t recommend using them for Kindle at least, and I think the royalties you get from dealing directly with Apple are superior anyway.)&lt;br /&gt;
  256. &lt;br /&gt;
  257. This all seems like a lot of work, but I hope this helps other authors who might be considering using Leanpub.&lt;br /&gt;
  258. &lt;br /&gt;
  259. (There is one feature which is nice on Leanpub, which is the ability to publish an incomplete work in progress, and then keep updating it.&amp;nbsp; But let&#39;s face it, you can do that equally well from your own website and something like Selz.)&lt;br /&gt;
  260. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/4008668063095415098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=4008668063095415098' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4008668063095415098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4008668063095415098'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/06/altering-deal-again.html' title='Altering the deal... again....'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-5545029275759344419</id><published>2018-06-04T15:46:00.000-07:00</published><updated>2018-06-04T15:46:12.130-07:00</updated><title type='text'>Not Abandoning GitHub *yet*</title><content type='html'>The developer crowds are swarming off of GitHub in the wake of today&#39;s announcement that Microsoft has agreed to purchase GH for $7.5B.&lt;div&gt;
  261. &lt;br /&gt;&lt;/div&gt;
  262. &lt;div&gt;
  263. I&#39;ve already written why I think this acquisition is good for neither GitHub nor Microsoft.&amp;nbsp; I don&#39;t think it&#39;s good for anyone else either... but maybe at least it alerts us all to the dangers of having all our eggs in the same basket.&lt;/div&gt;
  264. &lt;div&gt;
  265. &lt;br /&gt;&lt;/div&gt;
  266. &lt;div&gt;
  267. At the moment my repositories will &lt;i&gt;not&lt;/i&gt;&amp;nbsp;be moving.&amp;nbsp; The reason for this is quite simple -- while the masses race off of GitHub, desperate for another safe harbor, the panic that this has created is overwhelming alternative providers.&amp;nbsp; GitLab reported a 10X growth.&amp;nbsp; While this might be good for GitLab, its not good for people already on GitLab, as there was already quite a well understand performance concern around GitLab.com.&lt;/div&gt;
  268. &lt;div&gt;
  269. &lt;br /&gt;&lt;/div&gt;
  270. &lt;div&gt;
  271. At least in the short term, GitHub&#39;s load will decrease (at least once all the code repo exports are done), I think.&amp;nbsp;&lt;/div&gt;
  272. &lt;div&gt;
  273. &lt;br /&gt;&lt;/div&gt;
  274. &lt;div&gt;
  275. The other thing is that Microsoft has come out and made some pretty strong promises about not altering the GitHub premise, and the &quot;new leadership&quot; over there is ostensibly quite different from the old.&amp;nbsp; (Having said that, there is a &lt;b&gt;lot&lt;/b&gt;&amp;nbsp;of bad blood and history between FOSS and Microsoft. A lot of the current generation of millenials don&#39;t have that history, but some of us haven&#39;t forgotten when Steve Ballmer famously said &quot;Linux is a cancer&quot;, and when Microsoft used every dirty trick in the book to try to kill all competitors, including open source software.&amp;nbsp; If Microsoft had had its way back in the 90s and 00s, the Internet would have been a company shanty-town, and Linus Torvalds would have been a refugee outlaw.&lt;/div&gt;
  276. &lt;div&gt;
  277. &lt;br /&gt;&lt;/div&gt;
  278. &lt;div&gt;
  279. Thankfully that didn&#39;t happen.&lt;/div&gt;
  280. &lt;div&gt;
  281. &lt;br /&gt;&lt;/div&gt;
  282. &lt;div&gt;
  283. Microsoft is trying to clean its image up, and maybe it is reformed now, but the thing we all have to remember is that Microsoft is beholden first, foremost, and exclusively to it&#39;s shareholders.&amp;nbsp; Rehabiliting it&#39;s image is critical to business success today, but at it&#39;s roots Microsoft still has those same obligations.)&lt;/div&gt;
  284. &lt;div&gt;
  285. &lt;br /&gt;&lt;/div&gt;
  286. &lt;div&gt;
  287. The past couple of years of good behavior doesn&#39;t undo decades of rottenness; many of us would have been thrilled to see Microsoft enter chapter 11 as the just dessert for its prior actions.&lt;/div&gt;
  288. &lt;div&gt;
  289. &lt;br /&gt;&lt;/div&gt;
  290. &lt;div&gt;
  291. Microsoft was losing mindshare to OSS and software like Git (and companies like GitHub). Purchasing GitHub is clearly an effort to become relevant again.&amp;nbsp; &amp;nbsp;The real proof will be seen if Microsoft and GitHub are still as FOSS friendly in two years as they are today.&amp;nbsp; Promises made today are cheap.&lt;/div&gt;
  292. &lt;div&gt;
  293. &lt;br /&gt;&lt;/div&gt;
  294. &lt;div&gt;
  295. But I&#39;m willing to let them have the benefit of the doubt, understanding that I retain my options to depart at any time.&amp;nbsp; I won&#39;t be creating *new* repositories there, and my private one&#39;s will be moving off of GitHub because I don&#39;t want Microsoft to have access to my proprietary work.&amp;nbsp; (Probably they can still get it from backups at GitHub, but we do what we can...)&lt;/div&gt;
  296. &lt;div&gt;
  297. &lt;br /&gt;&lt;/div&gt;
  298. &lt;div&gt;
  299. But my open source stuff is still there.&amp;nbsp; For now.&lt;/div&gt;
  300. &lt;div&gt;
  301. &lt;br /&gt;&lt;/div&gt;
  302. &lt;div&gt;
  303. That means mangos, NNG, nanomsg, and tcell remain.&amp;nbsp; For now.&lt;/div&gt;
  304. &lt;div&gt;
  305. &lt;br /&gt;&lt;/div&gt;
  306. &lt;div&gt;
  307. It&#39;s up to Microsoft and GitHub to see if they stay.&lt;/div&gt;
  308. &lt;div&gt;
  309. &lt;br /&gt;&lt;/div&gt;
  310. &lt;div&gt;
  311. &amp;nbsp;- Garrett&lt;/div&gt;
  312. &lt;div&gt;
  313. &lt;br /&gt;&lt;/div&gt;
  314. </content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/5545029275759344419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=5545029275759344419' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/5545029275759344419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/5545029275759344419'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/06/not-abandoning-github-yet.html' title='Not Abandoning GitHub *yet*'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-6277133528282402365</id><published>2018-06-03T18:57:00.000-07:00</published><updated>2018-06-03T18:57:04.175-07:00</updated><title type='text'>Microsoft Buying GitHub Would be Bad</title><content type='html'>So apparently &lt;a href=&quot;https://www.bloomberg.com/news/articles/2018-06-03/microsoft-is-said-to-have-agreed-to-acquire-coding-site-github&quot;&gt;Microsoft wants to buy GitHub&lt;/a&gt;.&lt;br /&gt;
  315. &lt;br /&gt;
  316. This is a &lt;i&gt;huge&lt;/i&gt; mistake for both companies, and would be tragic for pretty much everyone involved.&lt;br /&gt;
  317. &lt;br /&gt;
  318. GitHub has become &lt;i&gt;the&lt;/i&gt; open source hosting site for code, and for a number of companies, it also hosts private repositories.&amp;nbsp; It&#39;s the place to be if you want your code to be found and used by other developers, and frankly, its so much of a &lt;i&gt;de facto&lt;/i&gt;&amp;nbsp;standard for this purpose that many tools and services work better with GitHub.&lt;br /&gt;
  319. &lt;br /&gt;
  320. GitHub was founded on the back of Git, which was invented by Linus Torvalds to solve source code management woes for the Linux kernel. (Previously the kernel used an excellent tool called BitKeeper for this job, but some missteps by the owners of BitKeeper drove the Linux team away from it.&amp;nbsp; It looks like GitHub is making similar, albeit different, commercial missteps.)&lt;br /&gt;
  321. &lt;br /&gt;
  322. Microsoft already has their own product, &lt;a href=&quot;https://www.visualstudio.com/team-services/&quot;&gt;Visual Studio Team Services&lt;/a&gt;, which competes with GitHub, but which frankly appeals mostly to Microsoft&#39;s own developer base.&amp;nbsp; I don&#39;t think it is widely used by Linux developers for example.&lt;br /&gt;
  323. &lt;h2&gt;
  324. &lt;br /&gt;&lt;/h2&gt;
  325. &lt;h2&gt;
  326. Implications for Open Source&lt;/h2&gt;
  327. &lt;br /&gt;
  328. Microsoft has been much more &quot;open source friendly&quot; of late, but I have to admit I still don&#39;t trust them.&amp;nbsp; I&#39;m hardly alone in this.&lt;br /&gt;
  329. &lt;br /&gt;
  330. It also is a breach of sorts of an unwritten trust that the open source community has placed in them.&amp;nbsp; There is much bad blood between Microsoft and open source software.&amp;nbsp; Many of the most treasured open source systems exist directly in conflict to proprietary systems.&amp;nbsp; Think about software like Samba, and Wine and OpenOffice.&amp;nbsp; These were created as &lt;i&gt;alternatives&lt;/i&gt;&amp;nbsp;to Microsoft.&amp;nbsp; Being acquired by Microsoft means that these projects will feel compelled to abandon GitHub.&lt;br /&gt;
  331. &lt;br /&gt;
  332. As this happens, many tools and services that offer services that are tailored to GitHub (automated code review, CI/CD, etc.) are going to be rushing to find a way to offer services for alternatives, as their client base runs screaming from GitHub.&amp;nbsp; (Back in February of 2016 I &lt;a href=&quot;http://garrett.damore.org/2016/02/leaving-github.html&quot;&gt;tried to leave GitHub&lt;/a&gt;, because of philosophical differences of opinion with their leadership.&amp;nbsp; I abandoned the effort after discovering that too many of the external support services I used for these open source projects were either GitHub only, or could only be converted away from GitHub with large amounts of additional effort and big negative impact for my users.)&lt;br /&gt;
  333. &lt;br /&gt;
  334. This is a watershed moment for GitHub.&lt;br /&gt;
  335. I predict in as little as 6 months nobody will be creating new open source projects on GitHub.&lt;br /&gt;
  336. &lt;br /&gt;
  337. Unfortunately, it&#39;s probably already too late for GitHub.&amp;nbsp; Unless they were to come out and immediately deny any acquisition attempts, and make some public announcements recognizing the trust they&#39;ve been given, and asserting the importance of honoring it, nobody will trust them any more.&lt;br /&gt;
  338. &lt;h2&gt;
  339. &lt;br /&gt;&lt;/h2&gt;
  340. &lt;h2&gt;
  341. Implications for Commercial Use&lt;/h2&gt;
  342. &lt;br /&gt;
  343. This is also going to harm commercial customers, driving them away.&lt;br /&gt;
  344. &lt;br /&gt;
  345. Microsoft has many commercial ventures which overlap with those of almost everyone doing anything in software.&amp;nbsp; GitHub being acquired by Microsoft will in one fell swoop make GitHub a direct&amp;nbsp;&lt;i&gt;competitor&lt;/i&gt;&amp;nbsp;with vast amounts of their own customer base.&amp;nbsp; (Essentially, your either a Microsoft competitor, or a partner.&amp;nbsp; And often both.)&lt;br /&gt;
  346. &lt;div&gt;
  347. &lt;br /&gt;&lt;/div&gt;
  348. If you&#39;re using GitHub for private repositories, it probably is time to rethink that.&amp;nbsp; Unless you trust Microsoft not to do evil.&amp;nbsp; (They&#39;ve never even made any such promises.)&amp;nbsp; This also means, I think that it might be time to reconsider hosting your private data with &lt;i&gt;anyone&lt;/i&gt;&amp;nbsp;else.&amp;nbsp; GitLab and BitBucket look better to be sure, but what&#39;s to prevent another large company from acquiring them?&lt;br /&gt;
  349. &lt;br /&gt;
  350. It&#39;s time to reconsider the cost of hosting in the cloud.&amp;nbsp; I&#39;ve been expecting a move back to on-premises storage and hosting for some time now, but this will only accelerate that.&lt;br /&gt;
  351. &lt;h2&gt;
  352. &lt;br /&gt;&lt;/h2&gt;
  353. &lt;h2&gt;
  354. Implications for Microsoft&lt;/h2&gt;
  355. &lt;br /&gt;
  356. Microsoft will spend quite a lot of money to acquire GitHub.&amp;nbsp; But instead of acquiring a goose that lays golden eggs, they are going to have one that needs to be fed and turns that into fecal material.&lt;br /&gt;
  357. &lt;br /&gt;
  358. At the same time, while this may help bolster some of the technology in VSTS in the short term, the reality is that most of the best stuff isn&#39;t that hard to build, and most of what GitHub has can be done on any cloud based system with sufficient storage and compute.&amp;nbsp; Most of their tech is not tied to Windows, almost certainly.&lt;br /&gt;
  359. &lt;br /&gt;
  360. The VSTS team will no doubt be impacted, and there will be a lot of pain and suffering attempting to more tightly integrate VSTS with the new adopted child.&amp;nbsp; I&#39;m sure there are redundancies that will be eliminated, but I expect part of what is going to happen is a shift in focus from providing the best experience for Visual Studio developers and making things work well on Azure, to figuring out how to more tightly integrate GitHub&#39;s toolset into theirs.&amp;nbsp; Can you imagine trying to reconcile the differences between VSTS and GitHub&#39;s issue tracking systems?&amp;nbsp; Yikes!&lt;br /&gt;
  361. &lt;br /&gt;
  362. The uncertainty will annoy customers, and I suspect will drive them away from the existing VSTS stack.&amp;nbsp; Whey they leave, they probably won&#39;t be moving to GitHub.&lt;br /&gt;
  363. &lt;br /&gt;
  364. Like the proverbial dog with the bone looking at his reflection in the water while on the bridge, instead of having one bone, Microsoft&#39;s greed will leave it with none (at least in this space.)&lt;br /&gt;
  365. &lt;br /&gt;
  366. I&#39;m sure that the founders and investors of GitHub will make a mint taking Microsoft&#39;s money.&amp;nbsp; Normally I&#39;d applaud anyone with plans to part Microsoft from some of it&#39;s funds.&amp;nbsp; But this move is just plain bad business.&lt;br /&gt;
  367. &lt;h2&gt;
  368. &lt;br /&gt;&lt;/h2&gt;
  369. &lt;h2&gt;
  370. Anti-Trust Violations?&lt;/h2&gt;
  371. &lt;br /&gt;
  372. As I mentioned above, Microsoft has their own product, Visual Studio Team Services, which competes with GitHub.&amp;nbsp; This alleged acquisition of GitHub seems to me to fly in the face of anti-trust rules.&amp;nbsp; Microsoft clearly has been trying to make inroads into the open source community with projects like Visual Studio Code and Linux support for VSTS, so I would hope that the regulatory bodies involved would examine this with great scrutiny.&lt;br /&gt;
  373. &lt;br /&gt;
  374. Of course, if GitHub is for sale, many of the same concerns &lt;i&gt;except&lt;/i&gt;&amp;nbsp;the antitrust legislation would apply.&amp;nbsp; It would be a Bad Thing (tm) if GitHub were to be acquired by Facebook, Google, or Amazon, for example, for most of the same reasons that being acquired by Microsoft would be bad.&lt;br /&gt;
  375. &lt;br /&gt;
  376. Now please pardon me while I go back to setting up &lt;a href=&quot;https://gogs.io/&quot;&gt;gogs&lt;/a&gt; on my own systems...&lt;br /&gt;
  377. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/6277133528282402365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=6277133528282402365' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/6277133528282402365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/6277133528282402365'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/06/microsoft-buying-github-would-be-bad.html' title='Microsoft Buying GitHub Would be Bad'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-7480280191192932403</id><published>2018-05-22T11:06:00.001-07:00</published><updated>2018-05-22T13:04:51.722-07:00</updated><title type='text'>No, Nanomsg is NOT dead</title><content type='html'>There seems to have been some pretty misleading data out on the Internet, indicating that &quot;&lt;a href=&quot;http://nanomsg.org/&quot;&gt;nanomsg&lt;/a&gt; is dead&quot;.&amp;nbsp; The main culprit here is a &quot;&lt;a href=&quot;http://sealedabstract.com/rants/nanomsg-postmortem-and-other-stories/&quot;&gt;postmortem&lt;/a&gt;&quot; by Drew Crawford.&amp;nbsp; Unfortunately comments are apparently not working on that post according to Drew himself.&lt;br /&gt;
  378. &lt;br /&gt;
  379. The thing is this (apologies to Samuel Clemens):&amp;nbsp; &quot;reports of the death of nanomsg have been greatly exaggerated&quot;.&lt;br /&gt;
  380. &lt;br /&gt;
  381. So it&#39;s time to set the record straight.&lt;br /&gt;
  382. &lt;br /&gt;
  383. I&#39;ve been working hard on nanomsg, and the Scalability Protocols that are intrinsic to nanomsg for quite some time.&amp;nbsp; It has been generally occupied my full time paid job for approximately the past year.&amp;nbsp; I&#39;ve been working on this stuff part time for longer than that.&lt;br /&gt;
  384. &lt;br /&gt;
  385. The main focus during this time has been a complete rewrite of the core library, known as&amp;nbsp;&lt;a href=&quot;http://github.com/nanomsg/nng&quot;&gt;NNG&lt;/a&gt;.&amp;nbsp; NNG, or nanomsg-next-gen, aims to be a far superior version of nanomsg, with significant new capabilities, greatly improved reliability, scalability, extensibility, and maintainability.&amp;nbsp; It is wire compatible with legacy nanomsg and &lt;a href=&quot;http://github.com/go-mangos/mangos&quot;&gt;mangos&lt;/a&gt;, and retains a backwards compatible API (though it also offers a newer API which should be quite a lot easier to use).&lt;br /&gt;
  386. &lt;br /&gt;
  387. During all this time, I&#39;ve continued to act as the maintainer for nanomsg, although at this point I&#39;d say that nanomsg itself is in sustaining mode, as I&#39;m very focused on having NNG stand in as a full replacement for nanomsg.&lt;br /&gt;
  388. &lt;br /&gt;
  389. We&#39;ve also published the first &lt;a href=&quot;https://leanpub.com/nngmanual&quot;&gt;NNG book&lt;/a&gt;, which is really just the reference manual.&amp;nbsp; There are over 400 pages (actually about 650 in the 7.5&quot;x9.25&quot; printed edition, which I&#39;ve not put up yet) of detailed API documentation available.&amp;nbsp; (Let me know if you&#39;re interested in the print edition -- it costs me about $35 to produce, but I&#39;m willing to make it available for folks that are willing to pay for it.&amp;nbsp; Admittedly the electronic version is probably a lot more useful since it has working hyperlinks and supports searching.)&amp;nbsp; Oh, and by the way, the book also covers the legacy API used with legacy libnanomsg.&lt;br /&gt;
  390. &lt;br /&gt;
  391. I&#39;m working on the second NNG book, which will be much more of a &quot;how-to&quot; (backed up with case studies and code) now.&amp;nbsp; (This will take some time to come to market.&amp;nbsp; At the moment these books are a secondary effort, since the time spent on them is time spent away from working on the code itself or on related commercial activities.)&lt;br /&gt;
  392. &lt;br /&gt;
  393. There have been more contributors to NNG of late, and interest is picking up as NNG itself is already on final countdown for its FCS approach.&amp;nbsp; (The first beta release, 1.0.0-beta.1 was released last week.&amp;nbsp; I expect to release a 2nd beta today, and then the final release will probably come a week or so later, depending upon beta test results of course.)&lt;br /&gt;
  394. &lt;br /&gt;
  395. The work I&#39;ve done for NNG has also inspired me to make further improvements to mangos.&amp;nbsp; Over the course of the next few months you can expect to see further harmonization between these two projects as NNG gains support for the STAR protocol from mangos, and mangos gains some new capabilities (such as optional separable contexts to enable much easier development of concurrent applications.)&lt;br /&gt;
  396. &lt;br /&gt;
  397. So, if you&#39;ve heard that &quot;nanomsg is dead&quot;, now you know better.&amp;nbsp; In fact, I&#39;d venture to say that the project is healthier and more alive than it ever was.&lt;br /&gt;
  398. &lt;br /&gt;
  399. Furthermore, in many respects the new NNG project is far more robust, scalable, and stable than I believe nanomsg or ZeroMQ have &lt;i&gt;ever&lt;/i&gt;&amp;nbsp;been.&amp;nbsp; (This because NNG has been designed with a serious eye towards production readiness from the first line of code.&amp;nbsp; Every error case is carefully considered.)&lt;br /&gt;
  400. &lt;br /&gt;
  401. If you haven&#39;t looked at any this stuff lately, give it another look!&lt;br /&gt;
  402. &lt;br /&gt;
  403. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/7480280191192932403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=7480280191192932403' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/7480280191192932403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/7480280191192932403'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/05/no-nanomsg-is-not-dead.html' title='No, Nanomsg is NOT dead'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-5739691938382858634</id><published>2018-01-23T09:50:00.004-08:00</published><updated>2018-01-23T09:50:46.925-08:00</updated><title type='text'>Why I&#39;m Boycotting Crypto Currencies</title><content type='html'>Unless you&#39;ve been living under a rock somewhere, you probably have heard about the crypto currency called &quot;Bitcoin&quot;.&amp;nbsp; Lately its skyrocketed in &quot;value&quot;, and a number of other currencies based on similar mathematics have also arisen.&amp;nbsp; Collectively, these are termed cryptocurrencies.&lt;br /&gt;
  404. &lt;br /&gt;
  405. The idea behind them is fairly ingenious, and based upon the idea that by solving &quot;hard&quot; problems (in terms of mathematics), the currency can limit how many &quot;coins&quot; are introduced into the economy.&amp;nbsp; Both the math and the social experiment behind them is something that on paper looks really interesting.&lt;br /&gt;
  406. &lt;br /&gt;
  407. The problem is that the explosion of value has created a number of problems, and as a result I won&#39;t be accepting any of these forms of currencies for the foreseeable future.&lt;br /&gt;
  408. &lt;br /&gt;
  409. First, the market for each of these currencies is controlled by a relatively small number of individuals who own a majority of the outstanding &quot;coins&quot;.&amp;nbsp; The problem with this is that by collusion, these individuals can generate &quot;fake&quot; transactions, which appear to drive up demand on the coins, and thus lead to a higher &quot;value&quot; (in terms of what people might be willing to pay).&amp;nbsp; The problem is that this is a &quot;bubble&quot;, and the bottom will fall right out if enough people try to sell their coins for hard currency.&amp;nbsp; As a result, I believe that the value of the coins is completely artificial, and while a few people might convert some of these coins into hard cash for a nice profit, the majority of coin holders are going to be left out in the cold.&lt;br /&gt;
  410. &lt;br /&gt;
  411. Second, the &quot;cost&quot; of performing transactions for some of these currencies is becoming prohibitively expensive.&amp;nbsp; With most transactions of real currency, its just a matter of giving someone paper currency, or running an electronic transaction that normally completes in milliseconds.&amp;nbsp; Because of the math associated with cryptocurrencies, the work to sign block chains becomes prohibitive, such that for some currencies transactions can take a lot of time -- and processors are now nearly obliged to charge what would be extortionary rates just to cover their own costs (in terms of electricity and processing power used).&lt;br /&gt;
  412. &lt;br /&gt;
  413. The environmental impact, and monumental waste, caused by cryptocurrencies cannot be overstated.&amp;nbsp; We now have huge farms of machines running, consuming vast amounts of power, performing no useful work except to &quot;mine&quot; coins.&amp;nbsp; As time goes on, the amount of work needed to mine each coin grows significantly (an intentional aspect of the coin), but what this means is that we are burning large amounts of power (much of which is fossil-fuel generated!) to perform work that has no useful practical purpose.&amp;nbsp; &amp;nbsp;Some might say something similar about mining precious metals or gems, but their a many many real practical applications for metals like gold, silver, and platinum, and gems like diamonds and rubies as well.&lt;br /&gt;
  414. &lt;br /&gt;
  415. Finally, as anyone who wants to build a new PC probably realizes, the use of computing hardware, and specifically &quot;GPUs&quot; (graphical processing units, but which also can be used to solve many numerical problems in parallel) have increased in cost dramatically -- consumer grade GPUs are generally only available today for about 2x-3x their MSRPs.&amp;nbsp; This is because the &quot;miners&quot; of cryptocurrencies have snapped up every available GPU.&amp;nbsp; The upshot of this is that the supply of this hardware has become prohibitive for hobbyists and professionals alike.&amp;nbsp; Indeed, much of this hardware would be far far better used in HPC arenas where it could be used to solve real-world problems, like genomic research towards finding a cure for cancer, or protein folding, or any number of other interesting and useful problems which solving would benefit mankind as a whole.&amp;nbsp; It would not surprise me if a number of new HPC projects have been canceled or put on hold simply because the supply of suitable GPU hardware has been exhausted, and putting some of those projects out of budget reach.&lt;br /&gt;
  416. &lt;br /&gt;
  417. Eventually, when the bottom does fall out of those cryptocurrencies, all that GPU hardware will probably wind up filling land-fills, as many people won&#39;t want to buy used GPUs, which may (or may not) have had their lifespans shortened.&amp;nbsp; (One hopes that at least the eWaste these cause will be recycled, but we know that much eWaste winds up in landfills in third world countries.)&lt;br /&gt;
  418. &lt;br /&gt;
  419. Crypto-curency mining is probably one of the most self-serving and irresponsible (to humanity and our environment) activities one can take today, while still staying in the confines of the law (except in a few jurisdictions which have sensibly outlawed cryptocurrencies.)&lt;br /&gt;
  420. &lt;br /&gt;
  421. It&#39;s my firm belief that the world would be far better off if crypto-currencies had never been invented.</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/5739691938382858634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=5739691938382858634' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/5739691938382858634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/5739691938382858634'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2018/01/why-im-boycotting-crypto-currencies.html' title='Why I&#39;m Boycotting Crypto Currencies'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-6814406495840619395</id><published>2017-11-22T17:32:00.003-08:00</published><updated>2017-11-30T10:42:12.606-08:00</updated><title type='text'>Small Business Accounting Software Woes</title><content type='html'>I&#39;m so disappointed with the online accounting software options available to me; and I&#39;ve spent &lt;i&gt;far &lt;b&gt;fa&lt;/b&gt;&lt;/i&gt;r too much time in the past couple of days looking for an accounting solution for my new business.  The current state of affairs makes me wonder if just using a spreadsheet might be as easy.&lt;br /&gt;
  422. &lt;br /&gt;
  423. I am posting my experiences here for two reasons.&lt;br /&gt;
  424. &lt;ol&gt;
  425. &lt;li&gt;To inform others who might have similar needs, and&lt;/li&gt;
  426. &lt;li&gt;To inform the hopefully smart people at these companies, so maybe they will improve their products.&lt;/li&gt;
  427. &lt;/ol&gt;
  428. Let me start with a brief summary of my needs:&lt;br /&gt;
  429. &lt;br /&gt;
  430. &lt;ul&gt;
  431. &lt;li&gt;Track time (esp. billable hours)&lt;/li&gt;
  432. &lt;li&gt;Tracked time should include date, and project/client, and some description of work performed.&lt;/li&gt;
  433. &lt;li&gt;Multiple currency support.  I have international clients that I need to bill in their preferred currency.&lt;/li&gt;
  434. &lt;li&gt;Invoicing and payment tracking for above.&lt;/li&gt;
  435. &lt;li&gt;Payroll -- preferably integrated with someone like &lt;a href=&quot;https://gusto.com/&quot;&gt;Gusto&lt;/a&gt;.&lt;/li&gt;
  436. &lt;li&gt;Support for two employees with plans to grow.&amp;nbsp;&lt;/li&gt;
  437. &lt;li&gt;Double-entry accounting (including bank reconciliation) for my accountant.&lt;/li&gt;
  438. &lt;li&gt;Affordable -- I&#39;m a &lt;i&gt;small&lt;/i&gt;&amp;nbsp;business owner.&lt;/li&gt;
  439. &lt;/ul&gt;
  440. That&#39;s it.  Nothing super difficult, right?&amp;nbsp; You&#39;d think there would be dozens of contenders who could help me.&lt;br /&gt;
  441. &lt;br /&gt;
  442. You&#39;d be wrong.&lt;br /&gt;
  443. &lt;br /&gt;
  444. Here&#39;s what I looked at, and their deficiencies:&lt;br /&gt;
  445. &lt;br /&gt;
  446. &lt;h4&gt;
  447. &lt;a href=&quot;http://www.freshbooks.com/&quot;&gt;Freshbooks&lt;/a&gt;&amp;nbsp;&lt;/h4&gt;
  448. &lt;a href=&quot;https://www.bing.com/th?id=A4703f29460ecbae785b6b801e5b59d18&amp;amp;w=110&amp;amp;h=110&amp;amp;c=7&amp;amp;rs=1&amp;amp;qlt=95&amp;amp;pcl=f9f9f9&amp;amp;cdv=1&amp;amp;pid=16.1&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;110&quot; data-original-width=&quot;110&quot; src=&quot;https://www.bing.com/th?id=A4703f29460ecbae785b6b801e5b59d18&amp;amp;w=110&amp;amp;h=110&amp;amp;c=7&amp;amp;rs=1&amp;amp;qlt=95&amp;amp;pcl=f9f9f9&amp;amp;cdv=1&amp;amp;pid=16.1&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  449. &lt;br /&gt;
  450. I really like most of what Freshbooks has to offer, and this was my starting point.  Super easy to use, an integration with &lt;a href=&quot;https://gusto.com/&quot;&gt;Gusto&lt;/a&gt;, and their invoicing solution is super elegant.  Unfortunately, their lack of reconciliation and double-entry accounting (or any of the other &quot;real&quot; accounting stuff) disqualifies them.  Adding to the problem, I already use them for my personal consulting business (where I&#39;ve been a happy user), and they don&#39;t have support for multiple business on their &quot;Classic Edition&quot;.&lt;br /&gt;
  451. &lt;br /&gt;
  452. Then there is the whole confusion between &quot;New Freshbooks&quot; and &quot;Classic Freshbooks&quot;.&lt;br /&gt;
  453. &lt;br /&gt;
  454. This is a company that states they intend to continue to keep two separate software stacks, with about 90% functionality overlap, running ~forever.  Why? Because they have some features (and some integrations) that they lack in the new one. (I&#39;ve been informed that my use patterns indicate that I should stay on the &quot;Classic&quot; edition forever because of my heavy use of Time Tracking.)
  455.  
  456. Some of us with real world software engineering experience know how costly and hateful it is to have multiple simultaneous versions of a product in production.  Freshbook&#39;s approach here, with no plans to merge the functionality, is about the most boneheaded decision I&#39;ve seen engineering management take.&lt;br /&gt;
  457. &lt;br /&gt;
  458. Being stuck on the &quot;Classic Edition&quot; makes me feel like a loser, but really it&#39;s a sign that their own product is the loser.&amp;nbsp; I have to believe at some point one product or the other is going to be a dead end.&lt;br /&gt;
  459. &lt;br /&gt;
  460. &lt;h4&gt;
  461. &lt;a href=&quot;https://quickbooks.intuit.com/online/&quot;&gt;Quickbooks Online&lt;/a&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  462. &lt;a href=&quot;https://quickbooks.intuit.com/online/&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.bing.com/th?id=A7dd06b14cf008dc8cc3c275777455440&amp;amp;w=110&amp;amp;h=110&amp;amp;c=7&amp;amp;rs=1&amp;amp;qlt=80&amp;amp;pcl=f9f9f9&amp;amp;cdv=1&amp;amp;pid=16.1&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;110&quot; data-original-width=&quot;110&quot; src=&quot;https://www.bing.com/th?id=A7dd06b14cf008dc8cc3c275777455440&amp;amp;w=110&amp;amp;h=110&amp;amp;c=7&amp;amp;rs=1&amp;amp;qlt=80&amp;amp;pcl=f9f9f9&amp;amp;cdv=1&amp;amp;pid=16.1&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  463. &lt;/h4&gt;
  464. &lt;br /&gt;
  465. This is a product that is well recommended, and probably one of the most widely used.  It has so much capability.  It also lacks the &quot;hacked together by a bunch of different engineering teams that didn&#39;t talk to each other&quot; feeling that their desktop product has.  (Yes, I have experience with Quickbooks Pro, too.  Sad to say.)&amp;nbsp; It&#39;s probably a good thing I can&#39;t look at their code behind the curtain.&lt;br /&gt;
  466. &lt;br /&gt;
  467. The biggest, maybe even only, failing they have for my use case is their inability to bill against clients that are in a different currency.  Wait, they are multicurrency capable, right?&amp;nbsp; Uh, no they aren&#39;t.  If I can&#39;t record my billable hours against a client in another country in their preferred currency, then whatever you think your &quot;multicurrency&quot; support is doesn&#39;t count. I have international clients that demand billing in their local currency.&amp;nbsp; So this is a non-starter for me.  This feature has been asked for before from them, and they have ignored it.  Major, and honestly unexpected, fail.&lt;br /&gt;
  468. &lt;br /&gt;
  469. Cost wise they aren&#39;t the cheapest, but this one feature absence is a show stopper for me, otherwise I&#39;d probably have settled here.&lt;br /&gt;
  470. &lt;br /&gt;
  471. &lt;h4&gt;
  472. &lt;a href=&quot;https://www.xero.com/&quot;&gt;Xero&lt;/a&gt;&lt;/h4&gt;
  473. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  474. &lt;a href=&quot;https://www.bing.com/th?id=Abbb615bc6471c8c98a9107d4aed0a199&amp;amp;w=110&amp;amp;h=110&amp;amp;c=7&amp;amp;rs=1&amp;amp;qlt=95&amp;amp;pcl=f9f9f9&amp;amp;cdv=1&amp;amp;pid=16.1&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;110&quot; data-original-width=&quot;110&quot; src=&quot;https://www.bing.com/th?id=Abbb615bc6471c8c98a9107d4aed0a199&amp;amp;w=110&amp;amp;h=110&amp;amp;c=7&amp;amp;rs=1&amp;amp;qlt=95&amp;amp;pcl=f9f9f9&amp;amp;cdv=1&amp;amp;pid=16.1&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  475. &lt;br /&gt;
  476. Xero is another of the main companies, and in Gartner&#39;s magic quadrant as their leader in the sector.  I didn&#39;t actually try them out -- though I did research.  Their shortcomings for me were: price (multi-currency support requires me to pay $70 / month, which is about 2x all the others), and lack of time tracking.  Sure, I can add an integration from some other company like Tsheets, for another $20 / month.  But now this solution is like 3x the cost of everyone else.&lt;br /&gt;
  477. &lt;br /&gt;
  478. One feature that Xero includes for that $70 is payroll processing -- but only for a handful of states (California is one), and I can&#39;t seem to find any reviews for folks who have used them.&amp;nbsp; &amp;nbsp;If I want to use an outside company with a longer track record and broader coverage across states, like SurePayroll or Gusto or ADP, I will wind up paying double.&lt;br /&gt;
  479. &lt;br /&gt;
  480. If Xero would change their menu somewhat (make it ala carte), we&#39;d be able to work together.  Let me integrate with Gusto, and not have to pay exorbitant fees for multi-currency support.  Add time tracking and it would be even better.&lt;br /&gt;
  481. &lt;br /&gt;
  482. Arguably I could stop being such a penny pincher, and just go with Xero + Tsheets or somesuch.  Outside of the crazy expensive options for companies that can afford a full time accountant (Sage, NetSuite, looking at you!), this was the most expensive option.&amp;nbsp; I&#39;d also have to use Xero&#39;s payroll service, and I&#39;m not sure&lt;br /&gt;
  483. &lt;h4&gt;
  484. &lt;/h4&gt;
  485. &lt;h4&gt;
  486. &lt;a href=&quot;https://zipbooks.com/&quot;&gt;ZipBooks&lt;/a&gt;&lt;/h4&gt;
  487. &lt;br /&gt;
  488. &lt;a href=&quot;https://tse1.mm.bing.net/th?id=OIP.pYz5QsJGR3hh1YGXDMUhkAEyDM&amp;amp;w=230&amp;amp;h=160&amp;amp;c=7&amp;amp;qlt=90&amp;amp;o=4&amp;amp;pid=1.7&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;160&quot; data-original-width=&quot;230&quot; height=&quot;139&quot; src=&quot;https://tse1.mm.bing.net/th?id=OIP.pYz5QsJGR3hh1YGXDMUhkAEyDM&amp;amp;w=230&amp;amp;h=160&amp;amp;c=7&amp;amp;qlt=90&amp;amp;o=4&amp;amp;pid=1.7&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;At first blush, ZipBooks looked like a great option.  On paper they have everything I need -- they even partnered with Gusto, and claim to have multicurrency support.&amp;nbsp; Amazingly, they are even &lt;b&gt;free&lt;/b&gt;&lt;i&gt;.&amp;nbsp; &lt;/i&gt;Of course if you elect to use some of their add-ons, you pay a modest fee, but from a pure price perspective, this looks like the cheapest.&lt;br /&gt;
  489. &lt;br /&gt;
  490. Unfortunately, as I played with their system, I found a few major issues.  Their multi-currency support is a bit of an inconvenient joke. They don&#39;t let you set a per-client currency.  Instead you change the currency for the entire account, then generate invoices in that currency (or accept payments), then have to switch back to the home currency.  This is account wide, so you better not have more than one person access the account at a time.  The whole setup feels really hinky, and to be honest I just don&#39;t trust it.&lt;br /&gt;
  491. &lt;br /&gt;
  492. Second, their bank integration is (as of today) broken -- meaning the website gives me conflict errors before I even can select a bank (I wanted to see if my business bank -- a regional smaller bank -- is on their list).  So, not very reliable.&lt;br /&gt;
  493. &lt;br /&gt;
  494. Finally, their support is nearly non-existent.  I sent several questions to them through their on-line support channel, and got back a message &quot;ZipBooks usually responds in a day&quot;.  A day.  Other companies I looked at took maybe 10-20 minutes to respond -- I still have not received a response from ZipBooks.&lt;br /&gt;
  495. &lt;br /&gt;
  496. I need a service that supports real multicurrency invoicing, is reliable, and with reachable support. Three strikes for ZipBooks.&amp;nbsp; Damn, I really wanted to like these guys.&lt;br /&gt;
  497. &lt;br /&gt;
  498. &lt;h4&gt;
  499. &lt;a href=&quot;https://www.kashoo.com/home&quot;&gt;Kashoo&lt;/a&gt;&lt;/h4&gt;
  500. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  501. &lt;a href=&quot;https://www.kashoo.com/hs-fs/hubfs/kashoo_logo_BR_2.png?t=1511390404361&amp;amp;width=225&amp;amp;name=kashoo_logo_BR_2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;65&quot; data-original-width=&quot;225&quot; height=&quot;57&quot; src=&quot;https://www.kashoo.com/hs-fs/hubfs/kashoo_logo_BR_2.png?t=1511390404361&amp;amp;width=225&amp;amp;name=kashoo_logo_BR_2.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  502. &lt;br /&gt;
  503. Kashoo was well reviewed, but I had some problems with them.  First their only payroll integration is with SurePayroll.  I hate being locked in, although I could probably overlook this.  Second, they don&#39;t have any time tracking support. Instead they partner with Freshbooks, but only the &quot;Classic Edition&quot; (and apparently no plans to support the &quot;New Freshbooks&quot;.)&amp;nbsp; A red flag.&lt;br /&gt;
  504. &lt;br /&gt;
  505. And, that brings in the Freshbooks liability (only one company, so I can&#39;t have both my old consulting business and this new one on the same iOS device for example), and I&#39;d have to pay for Freshbooks service too.&lt;br /&gt;
  506. &lt;br /&gt;
  507. On the plus side, the Kashoo tech support (or pre-sales support?) was quite responsive.&amp;nbsp; I don&#39;t think they are far off the mark.&lt;br /&gt;
  508. &lt;br /&gt;
  509. &lt;h4&gt;
  510. &lt;a href=&quot;https://tse1.mm.bing.net/th?id=OIP.Z5dPEloKGAzqx_c79tp9rgEsCo&amp;amp;w=188&amp;amp;h=105&amp;amp;c=8&amp;amp;rs=1&amp;amp;qlt=90&amp;amp;pid=3.1&amp;amp;rm=2&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;105&quot; data-original-width=&quot;188&quot; height=&quot;110&quot; src=&quot;https://tse1.mm.bing.net/th?id=OIP.Z5dPEloKGAzqx_c79tp9rgEsCo&amp;amp;w=188&amp;amp;h=105&amp;amp;c=8&amp;amp;rs=1&amp;amp;qlt=90&amp;amp;pid=3.1&amp;amp;rm=2&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://www.waveapps.com/&quot;&gt;Wave Accounting&lt;/a&gt;&amp;nbsp;&lt;/h4&gt;
  511. &lt;br /&gt;
  512. Wave is another free option, but they offer payroll (although full service only in five states) as an add-on.&amp;nbsp; (They also make money on payment processing, if you use that.)&amp;nbsp; Unfortunately, they lacked support for integrations, time tracking, or multi-currency support.&amp;nbsp; I&#39;d like to say close but no cigar, but really in this case, it&#39;s just &quot;no cigar&quot;.&amp;nbsp; (I guess you get what you pay for...)&lt;br /&gt;
  513. &lt;br /&gt;
  514. &lt;h4&gt;
  515. &lt;a href=&quot;http://www.zoho.com/books&quot;&gt;Zoho Books&lt;/a&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  516. &lt;a href=&quot;http://www.zoho.com/books&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://tse1.mm.bing.net/th?id=OIP.iNwlihSOU5uUVMVUxAEvFQD0CC&amp;amp;w=190&amp;amp;h=105&amp;amp;c=8&amp;amp;rs=1&amp;amp;qlt=90&amp;amp;pid=3.1&amp;amp;rm=2&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;105&quot; data-original-width=&quot;190&quot; height=&quot;110&quot; src=&quot;https://tse1.mm.bing.net/th?id=OIP.iNwlihSOU5uUVMVUxAEvFQD0CC&amp;amp;w=190&amp;amp;h=105&amp;amp;c=8&amp;amp;rs=1&amp;amp;qlt=90&amp;amp;pid=3.1&amp;amp;rm=2&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  517. &lt;/h4&gt;
  518. &lt;br /&gt;
  519. Zoho Books is another strong option, well regarded.&amp;nbsp; So far, it seems to have everything I need &lt;i&gt;except&lt;/i&gt;&amp;nbsp;any kind of payroll support.&amp;nbsp; I&#39;d really love it if they would integrate with Gusto.&amp;nbsp; I was afraid that I would need to set up with Zoho Project and pay another service fee, but it looks -- at least so far from my trial, like this won&#39;t be necessary.&lt;br /&gt;
  520. &lt;br /&gt;
  521. So my feature request is for integration with Gusto.&amp;nbsp; In the meantime, I&#39;ll probably just handle payroll expenses by manually copying the data from Gusto.&lt;br /&gt;
  522. &lt;br /&gt;
  523. &lt;h3&gt;
  524. Conclusion&lt;/h3&gt;
  525. &lt;br /&gt;
  526. So many, so close, and yet nothing actually hits the mark.&amp;nbsp; &amp;nbsp;(These aren&#39;t all the options I looked at, but they are the main contenders.&amp;nbsp; Some weren&#39;t offered in the US, or were too expensive, or self-hosted.&amp;nbsp; For now I&#39;m going to try Zoho.&amp;nbsp; I will try to update this in a few months when I have more experience.&lt;br /&gt;
  527. &lt;br /&gt;
  528. &lt;h3&gt;
  529. &lt;i&gt;Updates: (As of Nov. 30, 2017)&amp;nbsp;&lt;/i&gt;&lt;/h3&gt;
  530. &lt;br /&gt;
  531. &lt;ol&gt;
  532. &lt;li&gt;Zoho has since introduced Zoho Payroll, and they contacted me about it.&amp;nbsp; It&#39;s only available for California at this time, and has some restrictions.&amp;nbsp; I personally don&#39;t want to be an early adopter for my payroll processing service, so I&#39;m going to stick with Gusto for now.&amp;nbsp; &amp;nbsp;Zoho&#39;s representative did tell me that they welcome other payroll processing companies to develop integrations for Zoho Books.&amp;nbsp; &amp;nbsp;I hope Gusto will take notice.&lt;/li&gt;
  533. &lt;li&gt;ZipBooks also contacted me.&amp;nbsp; They apologized for the delays in getting back to me -- apparently their staff left early for Thanksgiving weekend.&amp;nbsp; They indicated that they have fixed whatever bug caused me to be unable to link my bank account.&amp;nbsp; Their COO also contacted me, and we had a long phone call, mostly to discuss my thoughts and needs around multi-currency support.&amp;nbsp; I&#39;m not quite ready to switch to them, but I&#39;d keep a close eye on them.&amp;nbsp; They do need to work to improve their initial customer service experience, in my opinion.&lt;/li&gt;
  534. &lt;li&gt;It looks like my own multi-currency needs may be vanishing, as my primary external customer has agreed to be billed in USD and to pay me in USD.&amp;nbsp; That said, I want to keep the option open for the future, as I may have other international customers in the future.&lt;/li&gt;
  535. &lt;li&gt;None of the other vendors reached out to me, even though I linked to them on Twitter.&amp;nbsp; The lack of response itself is &quot;significant&quot; in terms of customer service, IMO.&amp;nbsp;&lt;/li&gt;
  536. &lt;/ol&gt;
  537. </content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/6814406495840619395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=6814406495840619395' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/6814406495840619395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/6814406495840619395'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2017/11/small-business-accounting-software-woes.html' title='Small Business Accounting Software Woes'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-8033006439090643695</id><published>2017-11-14T13:06:00.004-08:00</published><updated>2017-11-14T13:14:43.346-08:00</updated><title type='text'>TLS close-notify .... what were they thinking?</title><content type='html'>&lt;h2&gt;
  538. Close-Notify Idiocy?&lt;/h2&gt;
  539. &lt;br /&gt;
  540. &lt;a href=&quot;https://www.ietf.org/rfc/rfc4346.txt&quot;&gt;TLS&lt;/a&gt; (and presumably SSL) &lt;i&gt;&lt;a href=&quot;https://tools.ietf.org/html/rfc5246#section-7.2.1&quot;&gt;require&lt;/a&gt;&lt;/i&gt; that implementations send a special disconnect message, &quot;close-notify&quot;, when closing a connection.&amp;nbsp; The precise language (from TLS v1.2) reads:&lt;br /&gt;
  541. &lt;br /&gt;
  542. &lt;blockquote class=&quot;tr_bq&quot; style=&quot;break-before: page; font-size: 13.3333px;&quot;&gt;
  543. The client and the server must share knowledge that the connection is&lt;br /&gt;
  544. ending in order to avoid a truncation attack.  Either party may&lt;br /&gt;
  545. initiate the exchange of closing messages.&amp;nbsp;&lt;/blockquote&gt;
  546. &lt;blockquote class=&quot;tr_bq&quot; style=&quot;break-before: page; font-size: 13.3333px;&quot;&gt;
  547. close_notify&amp;nbsp;&lt;/blockquote&gt;
  548. &lt;blockquote class=&quot;tr_bq&quot; style=&quot;break-before: page; font-size: 13.3333px;&quot;&gt;
  549. This message notifies the recipient that the sender will not send&lt;br /&gt;
  550. any more messages on this connection.  Note that as of TLS 1.1,&lt;br /&gt;
  551. failure to properly close a connection no longer requires that a&lt;br /&gt;
  552. session not be resumed.  This is a change from TLS 1.0 to conform&lt;br /&gt;
  553. with widespread implementation practice.&amp;nbsp;&lt;/blockquote&gt;
  554. &lt;blockquote class=&quot;tr_bq&quot; style=&quot;break-before: page; font-size: 13.3333px;&quot;&gt;
  555. Either party may initiate a close by sending a close_notify alert.&lt;br /&gt;
  556. Any data received after a closure alert is ignored.&amp;nbsp;&lt;/blockquote&gt;
  557. &lt;blockquote class=&quot;tr_bq&quot; style=&quot;break-before: page; font-size: 13.3333px;&quot;&gt;
  558. Unless some other fatal alert has been transmitted, each party is&lt;br /&gt;
  559. required to send a close_notify alert before closing the write side&lt;br /&gt;
  560. of the connection.  The other party MUST respond with a close_notify&lt;br /&gt;
  561. alert of its own and close down the connection immediately,&lt;br /&gt;
  562. discarding any pending writes.  It is not required for the initiator&lt;br /&gt;
  563. of the close to wait for the responding close_notify alert before&lt;br /&gt;
  564. closing the read side of the connection.&lt;/blockquote&gt;
  565. &lt;br /&gt;
  566. This has to be one of the stupider designs I&#39;ve seen.&lt;br /&gt;
  567. &lt;br /&gt;
  568. The stated reason for this is to prevent a &quot;truncation attack&quot;, where an attacker terminates the session by sending a clear-text disconnect (TCP FIN) message, presumably just before you log out of some sensitive service, say GMail.&lt;br /&gt;
  569. &lt;br /&gt;
  570. The stupid thing here is that this is for WebApps that want to send a logout, and don&#39;t want to wait for confirmation that logout had occurred before sending confirmation to the user.&amp;nbsp; So this logout is unlike every other RPC.&amp;nbsp; What...?!?&lt;br /&gt;
  571. &lt;br /&gt;
  572. &lt;h3&gt;
  573. Practical Exploit?&lt;/h3&gt;
  574. &lt;br /&gt;
  575. It&#39;s not even clear how one would use this attack to compromise a system... an attacker won&#39;t be able to hijack the actual TLS session unless they already pwned your encryption.&amp;nbsp; (In which case, game over, no need for truncation attacks.)&amp;nbsp; The idea in the truncation attack is that one side (the server?) still thinks the connection is alive, while the other (the browser?) thinks it is closed.&amp;nbsp; I guess this could be used to cause extra resource leaks on the server... but that&#39;s what keep-alives are for, right?&lt;br /&gt;
  576. &lt;br /&gt;
  577. &lt;h3&gt;
  578. Bugs Everywhere&lt;/h3&gt;
  579. &lt;br /&gt;
  580. Of course, close-notify is the source of &lt;i&gt;many&lt;/i&gt;&amp;nbsp;bugs (pretty much none of them security critical) in TLS implementations.&amp;nbsp; Go ahead, Google... I&#39;ll wait...&amp;nbsp; Java, Microsoft, and many others have struggled in implementing this part of the RFC.&lt;br /&gt;
  581. &lt;br /&gt;
  582. Even the TLS v1.1 authors recognized that &quot;widespread implementation practice&quot; is simply to ignore this part of the specification and close the TCP channel.&lt;br /&gt;
  583. &lt;br /&gt;
  584. So you may be asking yourself, why don&#39;t implementations send the close-notify ... after all sending a single message seems pretty straight-forward and simple, right?&lt;br /&gt;
  585. &lt;br /&gt;
  586. &lt;h3&gt;
  587. Semantic Overreach&lt;/h3&gt;
  588. &lt;br /&gt;
  589. Well, the thing is that on many occasions, the application is closing down.&amp;nbsp; Historically, operating systems would just close() their file descriptors on &lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;exit&lt;/span&gt;().&amp;nbsp; Even for long running applications, the quick way to abort a connection is ... &lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;close&lt;/span&gt;().&amp;nbsp; With no notification.&amp;nbsp; Application developers expect that &lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;close&lt;/span&gt;() is a non-blocking operation on network connections (and most everywhere else)&lt;sup&gt;&lt;a href=&quot;#footnote1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;br /&gt;
  590. &lt;br /&gt;
  591. Guess what, you now &lt;i&gt;cannot exit&lt;/i&gt;&amp;nbsp;your application without sending this, without breaking the RFC.&amp;nbsp; &amp;nbsp;That&#39;s right, this RFC changes the semantic of &lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;exit&lt;/span&gt;(2).&amp;nbsp; Whoa.&lt;br /&gt;
  592. &lt;br /&gt;
  593. That&#39;s a little presumptive, dontcha think?&lt;br /&gt;
  594. &lt;br /&gt;
  595. Requiring implementations to send this message means that now &lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;close&lt;/span&gt;() grows some kind of new semantic, where the application has to stop and wait for this to be delivered.&amp;nbsp; Which means TCP has to be flowing and healthy.&amp;nbsp; The only other RFC compliant behavior is to block and wait for it flow.&lt;br /&gt;
  596. &lt;br /&gt;
  597. What happens if the other side is stuck, and doesn&#39;t read, leading to a TCP flow control condition?&amp;nbsp; You &lt;i&gt;can&#39;t&lt;/i&gt;&amp;nbsp;send the message, because the kernel TCP code won&#39;t accept it -- write() would block, and if you&#39;re in a non-blocking or event driven model, the event will simply never occur.&amp;nbsp; Your close() now blocks forever.&lt;br /&gt;
  598. &lt;br /&gt;
  599. Defensively, you &lt;b&gt;must&lt;/b&gt;&amp;nbsp;insert a timeout somehow -- &lt;i&gt;in violation of the RFC.&lt;/i&gt;&amp;nbsp; Otherwise your TCP session could block forever.&amp;nbsp; And now you have to contemplate how long to hold the channel open?&amp;nbsp; You&#39;ve already decided (for whatever other reason) to abort the session, but you now have to wait a while ... how long is too long?&amp;nbsp; And meanwhile this open TCP sits around consuming buffer space, an open file descriptor, and perhaps other resources....&lt;br /&gt;
  600. &lt;br /&gt;
  601. &lt;h3&gt;
  602. A Bit of Sanity&lt;/h3&gt;
  603. &lt;br /&gt;
  604. The sensible course of action, treating a connection abort for any reason as an implicit close notification, was simply &quot;not considered&quot; from what I can tell.&lt;br /&gt;
  605. &lt;br /&gt;
  606. In my own application protocols, when using TLS, I may violate this RFC &lt;b&gt;with prejudice&lt;/b&gt;&lt;i&gt;&lt;b&gt;. &lt;/b&gt;But then I also am not doing stupid things in the protocol like TCP connection reuse.&lt;/i&gt;&amp;nbsp; If you close the connection, all application state with that connection goes away.&amp;nbsp; Period.&amp;nbsp; Kind of ... logical, right?&lt;br /&gt;
  607. &lt;br /&gt;
  608. Standards bodies be damned.&lt;br /&gt;
  609. &lt;br /&gt;
  610. &lt;blockquote&gt;
  611. &lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a name=&quot;footnote1&quot;&gt;1.&lt;/a&gt; The exception here is historical tape devices, which might actually perform operations like rewinding the tape automatically upon close().  I think this semantic is probably lost in the mists of time for most of us.&lt;/span&gt;&lt;/blockquote&gt;
  612. </content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/8033006439090643695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=8033006439090643695' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/8033006439090643695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/8033006439090643695'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2017/11/tls-close-notify-what-were-they-thinking.html' title='TLS close-notify .... what were they thinking?'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-1447562051210370837</id><published>2017-11-08T22:42:00.002-08:00</published><updated>2017-11-08T22:42:50.219-08:00</updated><title type='text'>CMake ExternalProject_add In Libraries</title><content type='html'>First off, I&#39;m a developer of open source application libraries, some of which are fairly popular.&lt;br /&gt;
  613. &lt;br /&gt;
  614. &lt;blockquote class=&quot;tr_bq&quot;&gt;
  615. TLDR: Library developers should &lt;i&gt;not&lt;/i&gt;&amp;nbsp;use ExternalProject_Add, but instead rely on FindPackage, demanding that their downstream developers pre-install their dependencies.&lt;/blockquote&gt;
  616. &lt;br /&gt;
  617. I recently decided to try to add TLS v1.2 support to one of my messaging libraries, which is written in C and configured via CMake.&lt;br /&gt;
  618. &lt;br /&gt;
  619. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  620. &lt;a href=&quot;https://cmake.org/cmake/img/CMake-JPEG.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;800&quot; data-original-width=&quot;800&quot; height=&quot;200&quot; src=&quot;https://cmake.org/cmake/img/CMake-JPEG.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  621. &lt;br /&gt;
  622. &lt;br /&gt;
  623. The best way for me to do this -- so I thought -- would be to add a dependency in my project using a sub project, bringing in a 3rd party (also open source) library -- &lt;a href=&quot;https://tls.mbed.org/&quot;&gt;Mbed TLS&lt;/a&gt;.&lt;br /&gt;
  624. &lt;br /&gt;
  625. Now the Mbed TLS project is also configured by CMake, so you&#39;d think this would be relatively straight-forward to include their work in my own.&amp;nbsp; You&#39;d be mistaken.&lt;br /&gt;
  626. &lt;br /&gt;
  627. CMake includes a capability for configuring external projects, even downloading their source code (or checking out the stuff via git) called &lt;a href=&quot;https://cmake.org/cmake/help/v3.0/module/ExternalProject.html&quot;&gt;ExternalProjects&lt;/a&gt;.&lt;br /&gt;
  628. &lt;br /&gt;
  629. This looks super handy -- and it &lt;i&gt;almost&lt;/i&gt;&amp;nbsp;is.&amp;nbsp; (And for folks using CMake to build &lt;i&gt;applications&lt;/i&gt;&amp;nbsp;I&#39;m sure this works out well indeed.)&lt;br /&gt;
  630. &lt;br /&gt;
  631. Unfortunately, this facility needs a lot of work still -- it only runs at &lt;i&gt;build&lt;/i&gt;&amp;nbsp;time, not &lt;i&gt;configuration&lt;/i&gt;&amp;nbsp;time.&lt;br /&gt;
  632. &lt;br /&gt;
  633. It also isn&#39;t immediately obvious that &lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ExternalProject_Add()&lt;/span&gt; just creates the custom target, without making any dependencies upon that target.&amp;nbsp; I spent a number of hours trying to understand why my ExternalProject was not getting configured.&amp;nbsp; Hip hip hurray for CMake&#39;s amazing debugging facilities... &lt;i&gt;&lt;b&gt;not&lt;/b&gt;!&amp;nbsp; &lt;/i&gt;It&#39;s sort of like trying to debug some bastard mix of m4, shell, and Python.&amp;nbsp; Hint, &lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Add_Dependencies()&lt;/span&gt;&amp;nbsp;is the clue you need, may this knowledge save you hours lack of it cost me.&amp;nbsp; Otherwise, enjoy the spaghetti.&lt;br /&gt;
  634. &lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
  635. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://www.crazyfreevector.com/uploads/120115/1_155014_1.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.crazyfreevector.com/uploads/120115/1_155014_1.gif&quot; data-original-height=&quot;350&quot; data-original-width=&quot;399&quot; height=&quot;175&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  636. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Bon Apetit, CMake lovers!&lt;/td&gt;&lt;/tr&gt;
  637. &lt;/tbody&gt;&lt;/table&gt;
  638. &lt;br /&gt;
  639. So once you&#39;re configuring the dependent library, how are you going to link your own library against the dependent?&lt;br /&gt;
  640. &lt;br /&gt;
  641. Well, if you&#39;re building an application, you just link (hopefully statically), have the link resolved at compile time, and forget about it forever more.&lt;br /&gt;
  642. &lt;br /&gt;
  643. But if you&#39;re building a &lt;i&gt;library&lt;/i&gt;&amp;nbsp;the problem is harder.&amp;nbsp; You can&#39;t include the dependent library directly in your own.&amp;nbsp; There&#39;s no portable way to &quot;merge&quot; archive libraries or even dynamic libraries.&lt;br /&gt;
  644. &lt;br /&gt;
  645. Basically, your consumers are going to be stuck having to link against the dependent libraries as well as your own (and in the right order too!)&amp;nbsp; You want to make this easier for folks, but you just &lt;i&gt;can&#39;t.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
  646. &lt;i&gt;(My kingdom for a C equivalent to the Golang solution to this problem.&amp;nbsp; No wonder Pike et. al. got fed up with C and invented Go!)&lt;/i&gt;&lt;br /&gt;
  647. &lt;i&gt;&lt;br /&gt;&lt;/i&gt;
  648. &lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
  649. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://rs717.pbsrc.com/albums/ww173/prestonjjrtr/Funny/GopherYayDance.gif~c200&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://rs717.pbsrc.com/albums/ww173/prestonjjrtr/Funny/GopherYayDance.gif~c200&quot; data-original-height=&quot;200&quot; data-original-width=&quot;200&quot; height=&quot;200&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  650. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;And Gophers everywhere rejoiced!&lt;/td&gt;&lt;/tr&gt;
  651. &lt;/tbody&gt;&lt;/table&gt;
  652. &lt;br /&gt;Making matters worse, the actual library (or more, as in the aforementioned TLS software there are actually &lt;i&gt;3&lt;/i&gt;&amp;nbsp;separate libraries -- libmbedcrypto, libmbedx509, and libmbedtls) is located somewhere deeply nested in the build directory.&amp;nbsp; &amp;nbsp;Your poor consumers are never gonna be able to figure it out.&lt;br /&gt;
  653. &lt;br /&gt;
  654. There are two solutions:&lt;br /&gt;
  655. &lt;br /&gt;
  656. a) Install the dependency as well as your own library (and tell users where it lives, perhaps via pkgconfig or somesuch).&lt;br /&gt;
  657. &lt;br /&gt;
  658. b) Just forget about this and make users pre-install the dependency explicitly themselves, and pass the location to your configuration tool (CMake, autotools, etc.) explicitly.&lt;br /&gt;
  659. &lt;br /&gt;
  660. Of these two, &quot;a&quot; is easier for end users -- as long as the application software doesn&#39;t also want to use functions in that library (perhaps linking against a *different* copy of the library).&amp;nbsp; If this happens, the problem can become kind of intractable to solve.&lt;br /&gt;
  661. &lt;br /&gt;
  662. So, we basically punt, and make the user deal with this.&amp;nbsp; Which tests days for many systems is handled by packaging systems like debian, pkg-add, and brew.&lt;br /&gt;
  663. &lt;br /&gt;
  664. After having worked in Go for so long (and admittedly in kernel software, which has &lt;i&gt;none&lt;/i&gt;&amp;nbsp;of these silly userland problems), the current state of affairs here in C is rather disappointing.&lt;br /&gt;
  665. &lt;br /&gt;
  666. Does anyone out there have any other better ideas to handle this (I mean besides &quot;develop in &lt;i&gt;Y&lt;/i&gt;&quot;, where &lt;i&gt;Y&lt;/i&gt; is some language besides C)?</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/1447562051210370837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=1447562051210370837' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/1447562051210370837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/1447562051210370837'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2017/11/cmake-externalprojectadd-in-libraries.html' title='CMake ExternalProject_add In Libraries'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-4819076148015241232</id><published>2017-11-08T22:07:00.001-08:00</published><updated>2017-11-08T22:07:45.708-08:00</updated><title type='text'>Licensing... again....</title><content type='html'>Let me start by saying this... I hate the GPL.&amp;nbsp; Oh yeah, and a heads up, I am just a software engineer, and not a lawyer.&amp;nbsp; Having said that....&lt;br /&gt;
  667. &lt;br /&gt;
  668. I&#39;ve released software under the GPL, but I never will again.&amp;nbsp; Don&#39;t get me wrong, I love open source, but GPL&#39;s license terms are unaccountably toxic, creating an island that I am pretty sure that original GPL authors never intended.&lt;br /&gt;
  669. &lt;br /&gt;
  670. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  671. &lt;a href=&quot;https://3.bp.blogspot.com/-Xd4QS223h_A/WgPwesGdeKI/AAAAAAAAAeo/xJPbwPYwpisJtJib85jiUob8V10iyyfwwCLcBGAs/s1600/antignu.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;525&quot; data-original-width=&quot;507&quot; height=&quot;200&quot; src=&quot;https://3.bp.blogspot.com/-Xd4QS223h_A/WgPwesGdeKI/AAAAAAAAAeo/xJPbwPYwpisJtJib85jiUob8V10iyyfwwCLcBGAs/s200/antignu.png&quot; width=&quot;193&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  672. &lt;br /&gt;
  673. &lt;h4&gt;
  674. My Problem....&lt;/h4&gt;
  675. &lt;br /&gt;
  676. So I started by wanting to contemplate a licensing change for a new library I&#39;m working on, to move from the very loose and liberal &lt;a href=&quot;https://directory.fsf.org/wiki/License:X11&quot;&gt;MIT&lt;/a&gt; license, to something with a few characteristics I like -- namely patent protection and a &quot;builtin&quot; contributor agreement.&amp;nbsp; &amp;nbsp;I&#39;m speaking of course of the well-respected and well-regarded &lt;a href=&quot;http://www.apache.org/licenses/LICENSE-2.0&quot;&gt;Apache License 2.0.&lt;/a&gt;&lt;br /&gt;
  677. &lt;br /&gt;
  678. The problem is, I ran into a complete and utter roadblock.&lt;br /&gt;
  679. &lt;br /&gt;
  680. I want my software to be maximally usable by as many folks as possible.&lt;br /&gt;
  681. &lt;br /&gt;
  682. There is a large installed base of software released under the &lt;a href=&quot;https://www.gnu.org/licenses/gpl-2.0.html&quot;&gt;GPLv2&lt;/a&gt;.&amp;nbsp; (Often without the automatic upgrade clause.)&lt;br /&gt;
  683. &lt;br /&gt;
  684. Now I&#39;m not a big fan of &quot;viral licenses&quot; in general, but I get that folks want to have a copy-left that prevents folks from including their work in closed source projects.&amp;nbsp; I get it, and it&#39;s not an entirely unreasonable position to hold, even if I think it limits adoption of such licensed software.&lt;br /&gt;
  685. &lt;br /&gt;
  686. My problem is, that the GPLv2&#39;s terms are incredibly strict, prohibiting any other license terms being applied by any other source in the project.&amp;nbsp; This means that you can&#39;t mix GPLv2 with pretty much &lt;i&gt;anything&lt;/i&gt;&amp;nbsp;else, except the very most permissive licenses.&amp;nbsp; The patent grant &amp;amp; protection clauses breaks GPLv2.&amp;nbsp; (In another older circumstance, the CDDL had similar issues which blocks ZFS from being distributed with the Linux kernel proper.&amp;nbsp; The CDDL also had a fairly benign choice-of-venue clause for legal action, which was also deemed incompatible to the GPLv2.)&lt;br /&gt;
  687. &lt;br /&gt;
  688. So at the end of the day, GPLv2 freezes innovation and has limited my &lt;i&gt;own actions&lt;/i&gt;&amp;nbsp;because I would like to enable people who have GPLv2 libraries to use my libraries.&amp;nbsp; We even have an ideological agreement -- the &lt;a href=&quot;https://www.gnu.org/licenses/license-list.html#apache2&quot;&gt;FSF actually &lt;i&gt;recommends&lt;/i&gt;&amp;nbsp;the Apache License 2.0!&lt;/a&gt;&amp;nbsp; And yet I can&#39;t use it; I&#39;m stuck with a very much inferior MIT license in order to let GPLv2 folks play in the pool.&lt;br /&gt;
  689. &lt;br /&gt;
  690. Wait, you say, what about the &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.en.html&quot;&gt;GPLv3&lt;/a&gt;?&amp;nbsp; It fixed these incompatibilities, right?&amp;nbsp; &amp;nbsp;Well, yeah, but then it went and added &lt;i&gt;other&lt;/i&gt;&amp;nbsp;constraints on use which are even more chilling than the GPLv2.&amp;nbsp; (The &lt;a href=&quot;http://www.linfo.org/tivoization.html&quot;&gt;anti-Tivoization&lt;/a&gt; clause, which is one of the more bizarre things I&#39;ve seen in any software license, applying only to equipment intended primarily &quot;consumer premises&quot;.&amp;nbsp; What??)&lt;br /&gt;
  691. &lt;br /&gt;
  692. The GPL is the FOSS movements worst enemy, in my opinion.&amp;nbsp; Sure, Linux is everywhere, but I believe that this is in &lt;i&gt;spite&lt;/i&gt;&amp;nbsp;of the GPLv2 license, rather than as a natural by product.&amp;nbsp; The same result could have been achieved under a liberal, or a file-based copyleft.&lt;br /&gt;
  693. &lt;br /&gt;
  694. &lt;h4&gt;
  695. GPL in Support of Proprietary Ecosystems&lt;/h4&gt;
  696. &lt;br /&gt;
  697. In another turn of events, the GPL is now being used by &lt;i&gt;commercial&lt;/i&gt;&amp;nbsp;entities in a bait-and-switch.&amp;nbsp; In this scheme, they hook the developer on their work under the GPL.&amp;nbsp; But when the developer wants to add some kind of commercial capability and retain the source confidentially, the developer cannot do that -- &lt;i&gt;unless the developer pays the original author a fee for a special commercial license.&lt;/i&gt;&amp;nbsp; &amp;nbsp; For a typical example, have a look at&amp;nbsp;&lt;a href=&quot;https://www.wolfssl.com/license/&quot;&gt;the WolfSSL license page&lt;/a&gt;.&lt;br /&gt;
  698. &lt;br /&gt;
  699. Now all that is fine and dandy legal as you please.&amp;nbsp; But, in this case, the GPL isn&#39;t being used to promote open source at all.&amp;nbsp; Instead, it has become an enabler for monetization of closed source, and frankly leads to a richer &lt;i&gt;proprietary&lt;/i&gt;&amp;nbsp;software ecosystem.&amp;nbsp; I don&#39;t think this was what the original GPL authors had intended.&lt;br /&gt;
  700. &lt;br /&gt;
  701. Furthermore, because the author of this proprietary software needs to be able to relicense the code under commercial terms, they are very very unlikely to accept contributions from third parties (e.g. external developers) -- unless those contributors are willing to perform a copyright assignment or sign a contributor agreement giving the commercial entity very broad relicensing rights.&lt;br /&gt;
  702. &lt;br /&gt;
  703. So instead of becoming an enabler for open collaboration, the GPL just becomes another tool in the pockets of commercial interests.&lt;br /&gt;
  704. &lt;br /&gt;
  705. The GPL Needs to Die&lt;br /&gt;
  706. &lt;br /&gt;
  707. If you love open source, and you want to enhance innovation, please, &lt;i&gt;please&lt;/i&gt;&amp;nbsp;don&#39;t license your stuff under GPL unless you have no other choice.&amp;nbsp; If you can relicense your work under other terms, please do so!&amp;nbsp; Look for a non-viral license with the patent protections needed for both your and your downstreams.&amp;nbsp; I recommend either the Mozilla Public License (if you need a copyleft on your own code), or the Apache License (which is liberal but offers better protections over BSD or MIT or similar alternatives.)</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/4819076148015241232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=4819076148015241232' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4819076148015241232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4819076148015241232'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2017/11/licensing-again.html' title='Licensing... again....'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-Xd4QS223h_A/WgPwesGdeKI/AAAAAAAAAeo/xJPbwPYwpisJtJib85jiUob8V10iyyfwwCLcBGAs/s72-c/antignu.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-4932888243302548895</id><published>2016-10-24T21:53:00.000-07:00</published><updated>2016-10-24T21:53:03.943-07:00</updated><title type='text'>MacOS X Mystery (Challenge)</title><content type='html'>(Maybe my MacOS X expert friends will know the answer.)&lt;br /&gt;
  708. &lt;br /&gt;
  709. This is a mystery that I cannot seem to figure out. &amp;nbsp;I think its a bug in the operating system, but I cannot seem to figure out the solution, or even explain the behavior to my satisfaction.&lt;br /&gt;
  710. &lt;br /&gt;
  711. Occasionally, a shell window (iTerm2) will appear to &quot;forget&quot; my identity. &lt;br /&gt;
  712. &lt;br /&gt;
  713. For example:&lt;br /&gt;
  714. &lt;br /&gt;
  715. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;% whoami&lt;/span&gt;&lt;br /&gt;
  716. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;501&lt;/span&gt;&lt;br /&gt;
  717. &lt;br /&gt;
  718. That&#39;s half right... The same command in other window is more correct:&lt;br /&gt;
  719. &lt;br /&gt;
  720. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;% whoami&lt;/span&gt;&lt;br /&gt;
  721. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;garrett&lt;/span&gt;&lt;br /&gt;
  722. &lt;br /&gt;
  723. Further, id -a reports differently:&lt;br /&gt;
  724. &lt;br /&gt;
  725. The broken window:&lt;br /&gt;
  726. &lt;br /&gt;
  727. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;% id -a&lt;/span&gt;&lt;br /&gt;
  728. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;uid=501 gid=20(staff) groups=20(staff),501,12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)&lt;/span&gt;&lt;br /&gt;
  729. &lt;br /&gt;
  730. The working one:&lt;br /&gt;
  731. &lt;br /&gt;
  732. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;% id -a&lt;/span&gt;&lt;br /&gt;
  733. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;uid=501(garrett) gid=20(staff) groups=20(staff),501(access_bpf),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)&lt;/span&gt;&lt;br /&gt;
  734. &lt;br /&gt;
  735. It appears that the shell (and this broken behavior seems to be inherited by child shells, by the way), somehow loses the ability to map numeric Unix ids to login names.&lt;br /&gt;
  736. &lt;br /&gt;
  737. So I tried another command:&lt;br /&gt;
  738. &lt;br /&gt;
  739. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;% dscl . -read /Users/garrett&lt;/span&gt;&lt;br /&gt;
  740. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Operation failed with error: eServerError&lt;/span&gt;&lt;br /&gt;
  741. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  742. The same works properly in my other window (I&#39;m not posting the entire output, since its really long).&lt;br /&gt;
  743. &lt;br /&gt;
  744. I am wondering what could possibly be different. &amp;nbsp;The behavior doesn&#39;t seem to depend on environment variables (I&#39;ve tried stripping those out).&lt;br /&gt;
  745. &lt;br /&gt;
  746. I&#39;m thinking that there is something in the process table (in the MacOS X equivalent of the uarea?) that gives me access to directory services -- and that this is somehow clobbered. &amp;nbsp;As indicated, whatever the thing is, it appears to be inherited across fork(2).&lt;br /&gt;
  747. &lt;br /&gt;
  748. I thought maybe I could figure this out with DTrace or dtruss... but Apple have crippled DTrace on the platform and this is one of those binaries that I am unable to introspect. &amp;nbsp;Arrgh!&lt;br /&gt;
  749. &lt;br /&gt;
  750. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;sudo dtruss dscl . -read /Users/garrett&lt;/span&gt;&lt;br /&gt;
  751. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Password:&lt;/span&gt;&lt;br /&gt;
  752. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;dtrace: system integrity protection is on, some features will not be available&lt;/span&gt;&lt;br /&gt;
  753. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  754. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;dtrace: failed to execute dscl: dtrace cannot control executables signed with restricted entitlements&lt;/span&gt;&lt;br /&gt;
  755. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  756. Btw, I&#39;m running the latest MacOS X:&lt;br /&gt;
  757. &lt;br /&gt;
  758. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;% uname -a&lt;/span&gt;&lt;br /&gt;
  759. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Darwin Triton.local 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64&lt;/span&gt;&lt;br /&gt;
  760. &lt;br /&gt;
  761. So, for my MacOS X expert friends -- anyone know how directory services &lt;i&gt;really&lt;/i&gt;&amp;nbsp;works? &amp;nbsp;(As in how it works under the hood?) &amp;nbsp;I don&#39;t think we&#39;re in UNIX land anymore, Toto!&lt;br /&gt;
  762. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/4932888243302548895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=4932888243302548895' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4932888243302548895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4932888243302548895'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2016/10/macos-x-mystery-challenge.html' title='MacOS X Mystery (Challenge)'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-4956875839204442298</id><published>2016-10-24T11:44:00.002-07:00</published><updated>2016-10-24T11:44:58.610-07:00</updated><title type='text'>Security Advice to IoT Firmware Engineers</title><content type='html'>Last Friday (October 16, 2016), a &lt;a href=&quot;https://www.wired.com/2016/10/internet-outage-ddos-dns-dyn/&quot;&gt;major DDoS&lt;/a&gt; attack brought down a number of sites across the Internet. &amp;nbsp;My own &lt;a href=&quot;http://www.saucelabs.com/&quot;&gt;employer&lt;/a&gt; was amongst those affected by the wide spread DNS outage.&lt;br /&gt;
  763. &lt;br /&gt;
  764. It turns out that the sheer scale (millions of unique botnet members) was made possible by the IoT, and rather shoddy engineering practices.&lt;br /&gt;
  765. &lt;br /&gt;
  766. Its time for device manufacturers and firmware engineers to &quot;grow up&quot;, and learn how to properly engineer these things for the hostile Internet, so that they don&#39;t have to subsequently issue recalls when their customers&#39; devices are weaponized by attackers without their owners knowledge.&lt;br /&gt;
  767. &lt;br /&gt;
  768. This blog is meant to offer some advice to firmware engineers and manufacturers in the hope that it may help them prevent their devices from being used in these kinds of attacks in the future.&lt;br /&gt;
  769. &lt;h4&gt;
  770. &lt;br /&gt;&lt;/h4&gt;
  771. &lt;h4&gt;
  772. Passwords&lt;/h4&gt;
  773. &lt;div&gt;
  774. &lt;br /&gt;&lt;/div&gt;
  775. &lt;div&gt;
  776. Passwords are the root of most of the problems, and so much of the advice here is about improving the way these are handled.&lt;/div&gt;
  777. &lt;h4&gt;
  778. &lt;br /&gt;&lt;/h4&gt;
  779. &lt;h4&gt;
  780. No Default Passwords&lt;/h4&gt;
  781. &lt;br /&gt;
  782. The idea of using a simple default password and user name, like &quot;admin/admin&quot;, is a practice from the 90&#39;s, and is intended to facilitate service personnel, and eliminate management considerations from dealing with many different passwords. &amp;nbsp;Unfortunately, this is probably the single biggest problem -- bad usernames and passwords. &amp;nbsp;Its far worse in an IoT world, where there are many thousands, or even millions, of devices that have the same user name and password.&lt;br /&gt;
  783. &lt;br /&gt;
  784. The proper solution is to allocate a unique password to each and every device. &amp;nbsp;Much like we already do manage unique MAC addresses, we need every device to have a unique password. &amp;nbsp;(Critically, the password must &lt;i&gt;not&lt;/i&gt;&amp;nbsp;be derived from the MAC address though.)&lt;br /&gt;
  785. &lt;br /&gt;
  786. My advice is to simply have a small amount of ROM that is factory burned with either a unique password, or a numeric key that can be used to create one. &amp;nbsp;(If you have enough memory to store a dictionary in generic firmware -- say 32k words, you can get very nice human manageable default passwords by storing just four 16-bit numbers, each representing an index into the dictionary (so only 15 bits of unique data, but thats 60 bits of total entropy, which is plenty to ensure that every device has its own password -- and only requires storing a 64-bit random number in ROM.)&lt;br /&gt;
  787. &lt;br /&gt;
  788. Then you have nice human parseable passwords like &quot;bigger-stampede-plasma-pandering&quot;. &amp;nbsp;These can be printed on the same sticker that MAC passwords are typically given. &amp;nbsp;(You could also accept a hexadecimal representation of the underlying 64-bit value, or just use that instead of human readable passwords if you are unable to accommodate an English dictionary. &amp;nbsp;Devices localized for use in other countries could use locale-appropriate dictionaries as well.)&lt;br /&gt;
  789. &lt;h4&gt;
  790. &lt;br /&gt;&lt;/h4&gt;
  791. &lt;h4&gt;
  792. Mandatory Authorization Delay&lt;/h4&gt;
  793. &lt;br /&gt;
  794. Second, IoT devices should inject a minimum delay after password authentication attempts (regardless of whether successful or otherwise). &amp;nbsp;Just a few seconds is enough to substantially slow down dictionary attacks against poorly chosen end-user passwords. &amp;nbsp;(2 seconds means that only 1800 unique attempts can be performed per hour under automation - 5 seconds reduces that to 720. &amp;nbsp;It will be difficult to iterate a million passwords against a device that does this.)&lt;br /&gt;
  795. &lt;h4&gt;
  796. &lt;br /&gt;&lt;/h4&gt;
  797. &lt;h4&gt;
  798. Strong Password Enforcement&lt;/h4&gt;
  799. &lt;br /&gt;
  800. User chosen passwords should not be a single dictionary word; indeed, the default should be to use a randomly generated password using the same dictionary approach above (generate a 64-bit random number, break into chunks, and index into a stock dictionary). &amp;nbsp;It may be necessary to provide an end-user override, but it should be somewhat difficult to get at by default, and when activate should display large warnings about the compromise to security that user-chosen passwords typically represent.&lt;br /&gt;
  801. &lt;h4&gt;
  802. &lt;br /&gt;&lt;/h4&gt;
  803. &lt;h4&gt;
  804. Networks&lt;/h4&gt;
  805. &lt;div&gt;
  806. &lt;br /&gt;&lt;/div&gt;
  807. &lt;div&gt;
  808. Dealing with the network, and securing the use of the network, is the other part of the problem that IoT vendors need to get right.&lt;/div&gt;
  809. &lt;h4&gt;
  810. &lt;br /&gt;&lt;/h4&gt;
  811. &lt;h4&gt;
  812. Local Network Authentication Only&lt;/h4&gt;
  813. &lt;br /&gt;
  814. IoT devices generally know the network they are on; if the device has a separate management port or LAN-only port (like a WiFi Router), it should only by default allow administrator access from that port.&lt;br /&gt;
  815. &lt;br /&gt;
  816. Devices with only a single port, or that exist on a WiFi network, should prevent administrator access from &quot;routed&quot; networks, by default. &amp;nbsp; That is, devices should not allow login attempts from a remote IP address that is not on a local subnet, by default. &amp;nbsp;While this won&#39;t stop many attacks (especially those on public WiFis), it makes attacking them from a global botnet, or managing them as part of a global botnet, that much harder. &amp;nbsp; (Again, there has to be a provision to disable this limitation, but it should present a warning.)&lt;br /&gt;
  817. &lt;h4&gt;
  818. &lt;br /&gt;&lt;/h4&gt;
  819. &lt;h4&gt;
  820. Encrypted Access Only&lt;/h4&gt;
  821. &lt;br /&gt;
  822. Use of unsecured channels (HTTP or telnet) is unacceptable in this day and age. &amp;nbsp;TLS and/or SSH are the preferred ways to do this, and will let your customers deploy these devices somewhat more securely.&lt;br /&gt;
  823. &lt;br /&gt;
  824. &lt;h4&gt;
  825. Secure All Other Ports&lt;/h4&gt;
  826. &lt;br /&gt;
  827. Devices should disable any network services that are not specifically part of the service they offer, or intrinsic to their management. &amp;nbsp; System administrators have known to do this on systems for decades now, but it seems some firmwares still have stock services enabled that can be used as attack vectors.&lt;br /&gt;
  828. &lt;h4&gt;
  829. &lt;br /&gt;&lt;/h4&gt;
  830. &lt;h4&gt;
  831. Don&#39;t Advertise Yourself&lt;/h4&gt;
  832. &lt;br /&gt;
  833. This one is probably the hardest. &amp;nbsp;&lt;a href=&quot;https://threatpost.com/multicast-dns-vulnerability-could-lead-to-ddos-amplification-attacks/111936/&quot;&gt;mDNS&lt;/a&gt; and device discovery over &quot;standard&quot; networks is one of the ways that attackers find devices to target. &amp;nbsp;Its far far better to have this disabled by default -- if discovery is needed during device configuration, then it can be enabled briefly, when the device is being configured. &amp;nbsp;Having a &quot;pairing&quot; button to give end-users the ability to enable this briefly is useful -- but mDNS should be used only with caution.&lt;br /&gt;
  834. &lt;h4&gt;
  835. &lt;br /&gt;&lt;/h4&gt;
  836. &lt;h4&gt;
  837. Secure Your Channel Home&lt;/h4&gt;
  838. &lt;br /&gt;
  839. Devices often want to call-home for reporting, or web-centric command &amp;amp; control. &amp;nbsp;(E.g. remote management of your thermostat.) &amp;nbsp;This is one of the major attack vectors. &amp;nbsp; (If you can avoid calling home altogether, this is even better!)&lt;br /&gt;
  840. &lt;br /&gt;
  841. Users must be able to disable this function (it should be disabled by default in fact). &amp;nbsp;Furthermore, the channels must be properly secured entirely through your network, with provision for dealing with a compromise (e.g. leaked private keys at the server side). &amp;nbsp;Get a security expert to review your protocols, and your internal security practices.&lt;br /&gt;
  842. &lt;h4&gt;
  843. &lt;br /&gt;&lt;/h4&gt;
  844. &lt;h4&gt;
  845. Mesh Securely&lt;/h4&gt;
  846. &lt;br /&gt;
  847. Building local mesh networks of devices, e.g. to create a local cloud, means having strong pairing technology. &amp;nbsp;The strongest forms of this require administrator action to approve -- just like pairing a bluetooth keyboard or other peripheral.&lt;br /&gt;
  848. &lt;br /&gt;
  849. If you want to automate secure mesh provisioning, you have to have secure networking in place -- technologies like VPN or &lt;a href=&quot;https://www.zerotier.com/&quot;&gt;ZeroTier&lt;/a&gt; can help build networking layers that are secure by default.&lt;br /&gt;
  850. &lt;h4&gt;
  851. &lt;br /&gt;&lt;/h4&gt;
  852. &lt;h4&gt;
  853. Don&#39;t Invent Your Own Protocols&lt;/h4&gt;
  854. &lt;br /&gt;
  855. The roadside is littered with the corpses of protocols and products that attempted to invent their own protocols or use cryptography in non-standard ways. &amp;nbsp;The best example of this is &lt;a href=&quot;https://en.wikipedia.org/wiki/Wired_Equivalent_Privacy&quot;&gt;WEP&lt;/a&gt;, which took a relatively secure crypto layer (RC4 was not broken at the time), but deployed it naively and brokenly. &amp;nbsp;RC4 got a very bad rap for this, but it was actually WEP that was broken. &amp;nbsp;(Since then, RC4 itself has been shown to have some weaknesses, but this is relatively new compared to the brokenness that was WEP.) &lt;br /&gt;
  856. &lt;h4&gt;
  857. &lt;br /&gt;&lt;/h4&gt;
  858. &lt;h4&gt;
  859. General Wisdoms&lt;/h4&gt;
  860. &lt;div&gt;
  861. &lt;br /&gt;&lt;/div&gt;
  862. &lt;div&gt;
  863. Next we have some advice that most people should already be aware of, but yet bears repeating.&lt;/div&gt;
  864. &lt;h3&gt;
  865. &lt;br /&gt;&lt;/h3&gt;
  866. &lt;h4&gt;
  867. Don&#39;t Rely on Obscurity&lt;/h4&gt;
  868. &lt;br /&gt;
  869. Its an old adage that &quot;security by obscurity is no security at all&quot;. &amp;nbsp;Yet we often see naive engineers trying to harden systems by making them more obscure. &amp;nbsp;This really doesn&#39;t help anything long term, and can actually hinder security efforts by giving a false sense of security or creating barriers to security analysis.&lt;br /&gt;
  870. &lt;h4&gt;
  871. &lt;br /&gt;&lt;/h4&gt;
  872. &lt;h4&gt;
  873. Audit&lt;/h4&gt;
  874. &lt;br /&gt;
  875. Get an independent security expert to audit your work. &amp;nbsp;Special focus should be paid to the items pointed out above. &amp;nbsp;This should include a review of the product, as well as your internal practices around engineering, including secure coding, use of mitigation technologies, and business practices for dealing with keying material, code signing, and other sensitive data.&lt;br /&gt;
  876. &lt;div&gt;
  877. &lt;br /&gt;&lt;/div&gt;
  878. </content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/4956875839204442298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=4956875839204442298' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4956875839204442298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4956875839204442298'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2016/10/security-advice-to-iot-firmware.html' title='Security Advice to IoT Firmware Engineers'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-4945004197183723437</id><published>2016-05-14T09:24:00.000-07:00</published><updated>2016-05-14T09:24:35.297-07:00</updated><title type='text'>Microsoft Hates My Name (Not Me, Just My Name)</title><content type='html'>In order to debug &lt;a href=&quot;http://www.nanomsg.org/&quot;&gt;nanomsg&lt;/a&gt; problems on Windows, I recently installed a copy of Windows 8.1 in a VMWare guest VM, along with Visual Studio 14 and CMake 3.5.2. &amp;nbsp;(Yes, I&#39;ve entered a special plane of Hell, reserved for just for people who try to maintain cross-platform open source software. &amp;nbsp;I think this one might be the tenth plane, that Dante skipped because it was just too damned horrible.)&lt;div&gt;
  879. &lt;br /&gt;&lt;/div&gt;
  880. &lt;div&gt;
  881. Every time I tried to build, I got bizarre errors from the CMake / build process ... like this:&lt;/div&gt;
  882. &lt;div&gt;
  883. &lt;br /&gt;&lt;/div&gt;
  884. &lt;div&gt;
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892. &lt;blockquote class=&quot;tr_bq&quot;&gt;
  893. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Cannot evaluate the item metadata &quot;%(FullPath)&lt;/span&gt;&lt;/blockquote&gt;
  894. &lt;div class=&quot;p1&quot;&gt;
  895. &lt;br /&gt;&lt;/div&gt;
  896. &lt;div class=&quot;p1&quot;&gt;
  897. Turns out that when I created my account, using the &quot;easy&quot; installation in VMWare, it created my Windows account using my full name. &amp;nbsp;&quot;&lt;b&gt;Garrett D&#39;Amore&lt;/b&gt;&quot;. &amp;nbsp;Turns out that the software is buggy, and can&#39;t cope with the apostrophe in my full name, when it appears in a filesystem path.&amp;nbsp;&lt;/div&gt;
  898. &lt;div class=&quot;p1&quot;&gt;
  899. &lt;br /&gt;&lt;/div&gt;
  900. &lt;div class=&quot;p1&quot;&gt;
  901. Moving the project directory to C:\Projects\nanomsg solved the problem.&lt;/div&gt;
  902. &lt;div class=&quot;p1&quot;&gt;
  903. &lt;br /&gt;&lt;/div&gt;
  904. &lt;div class=&quot;p1&quot;&gt;
  905. Really Microsoft? &amp;nbsp;This is 2016. &amp;nbsp;I expected programs to struggle and for me to find bugs in programs (often root exploits &amp;nbsp;-- all hackers should try using punctuation in their login and personal names) with the apostrophe in my name back in the 1990s. &amp;nbsp;Not in this decade.&lt;/div&gt;
  906. &lt;div class=&quot;p1&quot;&gt;
  907. &lt;br /&gt;&lt;/div&gt;
  908. &lt;div class=&quot;p1&quot;&gt;
  909. Not only that, but the error message was so incredibly cryptic that it took a Google search to figure out that it was a problem with the path. &amp;nbsp;(Other people encountered this problem with paths &amp;gt; 260 characters. &amp;nbsp;I knew that wasn&#39;t my problem, but I hypothesized, and proved, that it was my name.) &amp;nbsp;I have no idea how to file a bug on Visual Studio to Microsoft. &amp;nbsp;I&#39;m not a paying user of it, so maybe I shouldn&#39;t complain, and I really have no recourse. &amp;nbsp;Still, they need to fix this.&lt;/div&gt;
  910. &lt;div class=&quot;p1&quot;&gt;
  911. &lt;br /&gt;&lt;/div&gt;
  912. &lt;div class=&quot;p1&quot;&gt;
  913. Normally, I&#39;d never intentionally create a path with an apostrophe in it, but in this case I was being lazy and just accepted some defaults. &amp;nbsp;I staunchly refuse to change my&amp;nbsp;&lt;i&gt;name&lt;/i&gt;&amp;nbsp;because some software is too stupid to cope with it -- this is a pet peeve for me.&amp;nbsp;&lt;/div&gt;
  914. &lt;div class=&quot;p1&quot;&gt;
  915. &lt;br /&gt;&lt;/div&gt;
  916. &lt;div class=&quot;p1&quot;&gt;
  917. We&#39;re in the new millennium, and have been for a decade and half. &amp;nbsp;Large numbers of folks with heritage from countries like Italy, France, and Ireland have this character in their surname. &amp;nbsp;(And more recently -- since like the 1960s! -- the African-American community has been using this character in their &lt;b&gt;first&lt;/b&gt;&amp;nbsp;names too!) &amp;nbsp;If your software can&#39;t accommodate this common character in names, then it&#39;s broken, and you need to fix it. &amp;nbsp;There are literally millions of us that are angered by this sort of brokenness every day; do us all a favor and make your software just a little less rage inducing by letting us use the names we were born with please.&lt;/div&gt;
  918. &lt;div class=&quot;p1&quot;&gt;
  919. &lt;br /&gt;&lt;/div&gt;
  920. &lt;div class=&quot;p1&quot;&gt;
  921. &lt;br /&gt;&lt;/div&gt;
  922. &lt;div class=&quot;p1&quot;&gt;
  923. &lt;br /&gt;&lt;/div&gt;
  924. &lt;/div&gt;
  925. </content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/4945004197183723437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=4945004197183723437' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4945004197183723437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4945004197183723437'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2016/05/microsoft-hates-my-name-not-me-just-my.html' title='Microsoft Hates My Name (Not Me, Just My Name)'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-8365365563163650994</id><published>2016-02-23T12:03:00.000-08:00</published><updated>2016-02-23T12:03:13.379-08:00</updated><title type='text'>Leaving github</title><content type='html'>&lt;div class=&quot;p1&quot;&gt;
  926. &lt;span class=&quot;s1&quot;&gt;(Brief reminder that this represents my own personal opinion, not necessarily that of any employer or larger open source project.)&lt;/span&gt;&lt;/div&gt;
  927. &lt;div class=&quot;p1&quot;&gt;
  928. &lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  929. &lt;div class=&quot;p1&quot;&gt;
  930. &lt;span class=&quot;s1&quot;&gt;I am planning to move my personal git repositories (including &lt;a href=&quot;http://github.com/go-mangos/mangos&quot;&gt;mangos&lt;/a&gt;, &lt;a href=&quot;http://github.com/gdamore/tcell&quot;&gt;tcell&lt;/a&gt;, &lt;a href=&quot;http://github.com/gdamore/govisor&quot;&gt;govisor&lt;/a&gt;, &lt;a href=&quot;http://github.com/gdamore/less-fork&quot;&gt;less-fork&lt;/a&gt;, etc.) &amp;nbsp;from &lt;a href=&quot;http://github.com/&quot;&gt;GitHub&lt;/a&gt; to &lt;a href=&quot;http://gitlab.com/&quot;&gt;GitLab.com&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  931. &lt;div class=&quot;p2&quot;&gt;
  932. &lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
  933. &lt;div class=&quot;p1&quot;&gt;
  934. &lt;span class=&quot;s1&quot;&gt;The reasons for this are fairly simple. &amp;nbsp;They have nothing to do whatsoever with technology. &amp;nbsp;I love the GitHub platform, and have been a happy user of it for years now. I would dearly love it if I could proceed with GitHub. &amp;nbsp;Fortunately GitLab seems to have &lt;a href=&quot;https://about.gitlab.com/comparison/&quot;&gt;feature parity&lt;/a&gt; with GitHub (and a growing user and project base), so I&#39;m not trapped.&lt;/span&gt;&lt;/div&gt;
  935. &lt;div class=&quot;p2&quot;&gt;
  936. &lt;br /&gt;&lt;/div&gt;
  937. &lt;div class=&quot;p2&quot;&gt;
  938. The reason for leaving GitHub is because of the&amp;nbsp;&lt;a href=&quot;http://beforeitsnews.com/opinion-conservative/2016/02/githubs-anti-white-agenda-3102938.html&quot;&gt;hostility&lt;/a&gt;&amp;nbsp;of it&#39;s&amp;nbsp;leadership towards certain classes of people makes me feel that I cannot in good conscience continue to support them. In particular, their HR department is &lt;a href=&quot;http://www.techinsider.io/github-the-full-inside-story-2016-2&quot;&gt;engaging&lt;/a&gt; in what is nothing less than race&amp;nbsp;&lt;a href=&quot;http://static4.businessinsider.com/image/56b3d2f12e526555008b505e-791-385/danilo%20campos-tweet.png&quot;&gt;warfare&lt;/a&gt; against white people. &amp;nbsp;(Especially men, but even white women are being discriminated against.) By the way, I&#39;d take the same position if the hostility were instead towards any other racial or gender group other than my own.&lt;/div&gt;
  939. &lt;div class=&quot;p2&quot;&gt;
  940. &lt;br /&gt;&lt;/div&gt;
  941. &lt;div class=&quot;p1&quot;&gt;
  942. &lt;span class=&quot;s1&quot;&gt;I&#39;m not alone in asking GitHub to fix this; yet they&#39;ve remained silent on the matter, leading me to believe that the problematic policies have support within the highest levels of the company. &amp;nbsp;(Github itself is &lt;a href=&quot;http://www.businessinsider.com/github-identity-crisis-2016-2&quot;&gt;in trouble&lt;/a&gt;, and I have doubts about its &lt;a href=&quot;http://thenextweb.com/dd/2016/02/04/reports-indicate-github-is-having-major-issues-regarding-the-companys-future/#gref&quot;&gt;future&lt;/a&gt;, as both &lt;a href=&quot;http://thenextweb.com/dd/2016/01/19/frustrated-developers-from-the-webs-biggest-projects-say-github-isnt-listening/&quot;&gt;developers&lt;/a&gt; and employees are leaving in droves.)&lt;/span&gt;&lt;/div&gt;
  943. &lt;div class=&quot;p1&quot;&gt;
  944. &lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  945. &lt;div class=&quot;p1&quot;&gt;
  946. &lt;span class=&quot;s1&quot;&gt;Post &lt;a href=&quot;https://en.wikipedia.org/wiki/Tom_Preston-Werner&quot;&gt;Tom Preston-Werner&lt;/a&gt;, GitHub&#39;s leadership apparently sees the company as a platform for prosecuting the Social Justice War, and it even has a &lt;a href=&quot;http://cs.sfsu.edu/jobs/attachments/15/Social_Impact_Intern.pdf&quot;&gt;Social Impact Team&lt;/a&gt; just to that effect.&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;In GitHub&#39;s own words:&lt;/span&gt;&lt;/div&gt;
  947. &lt;blockquote class=&quot;tr_bq&quot;&gt;
  948. &lt;span class=&quot;s1&quot;&gt;&quot;T&lt;/span&gt;he Social Impact team will be focused
  949. on these three areas: - Diversity &amp;amp; Inclusion - both internally and within the Open Source Community - Community
  950. Engagement - we have a net positive impact in local and online communities via partnerships - Leveraging GitHub
  951. for Positive Impact - supporting people from varied communities to use GitHub.com in innovative ways&quot;&lt;/blockquote&gt;
  952. &lt;div class=&quot;p2&quot;&gt;
  953. &lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;It&#39;s no accident that they list &quot;Diversity &amp;amp; Inclusion&quot; as the first item here either. &amp;nbsp;Apparently this has been&amp;nbsp;&lt;a href=&quot;https://github.com/dear-github/dear-github&quot;&gt;more of a priority for GitHub than improving their platform&lt;/a&gt; or addressing long standing customer issues.&lt;/div&gt;
  954. &lt;div class=&quot;p2&quot;&gt;
  955. &lt;br /&gt;&lt;/div&gt;
  956. &lt;div class=&quot;p1&quot;&gt;
  957. &lt;span class=&quot;s1&quot;&gt;Those of you who have followed me know that I’m strongly in favor of &lt;i&gt;&lt;b&gt;inclusion&lt;/b&gt;&lt;/i&gt;, and making an environment friendly for &lt;i&gt;&lt;b&gt;all&lt;/b&gt;&lt;/i&gt; people, regardless of race or gender or religion (provided your religion respects my basic rights -- religious fundamentalist nut-jobs need not apply).&lt;/span&gt;&lt;/div&gt;
  958. &lt;div class=&quot;p1&quot;&gt;
  959. &lt;br /&gt;&lt;/div&gt;
  960. &lt;div class=&quot;p2&quot;&gt;
  961. Lack of diversity cannot be fixed through exclusion. &amp;nbsp;Attempts to do so are inherently misguided. &amp;nbsp;Furthermore, as a company engages in &lt;i&gt;any exclusive hiring practices&lt;/i&gt;&amp;nbsp;they are inherently limiting their own access to talent. &amp;nbsp;Racist or sexist (or ageist) approaches are self-destructive, and companies that engage in such behavior deserve to fail.&lt;/div&gt;
  962. &lt;div class=&quot;p2&quot;&gt;
  963. &lt;br /&gt;&lt;/div&gt;
  964. &lt;div class=&quot;p2&quot;&gt;
  965. The way to fix an un-level playing field is to level the playing field -- not to swing it back in the other direction. &amp;nbsp;You can&#39;t fix social injustice with more injustice; we should guarantee equal opportunity not equal results.&lt;/div&gt;
  966. &lt;div class=&quot;p2&quot;&gt;
  967. &lt;br /&gt;&lt;/div&gt;
  968. &lt;div class=&quot;p2&quot;&gt;
  969. There are plenty of people of diverse ethnic backgrounds who have overcome significant social and economic barriers to achieve success. &amp;nbsp;And many who have not. &amp;nbsp;News flash -- you will find white men and women in both lists, as well as blacks, latinos, women, gays, and people of &quot;other gender identification&quot;. &amp;nbsp;Any hiring approach or policy (written or otherwise) that only looks at the color of a person&#39;s skin or gender is unfair, and probably illegal outside of a very limited few and specific instances (e.g. casting for movie roles).&lt;/div&gt;
  970. &lt;div class=&quot;p2&quot;&gt;
  971. &lt;br /&gt;&lt;/div&gt;
  972. &lt;div class=&quot;p2&quot;&gt;
  973. &amp;nbsp;Note that this does not mean that I do not support efforts to reach out to encourage people from other groups to engage more in technology (or any other field). &amp;nbsp;As I said, I encourage efforts to include &lt;i&gt;everyone&lt;/i&gt;&amp;nbsp;-- the larger talent pool that we can engage with, the more successful we are likely to be. &amp;nbsp;And we should do everything we can as a society and as an industry to make sure that the talent pool is as big as we can make it.&lt;/div&gt;
  974. &lt;div class=&quot;p2&quot;&gt;
  975. &lt;br /&gt;&lt;/div&gt;
  976. &lt;div class=&quot;p2&quot;&gt;
  977. We should neither exclude any future&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Marie_Curie&quot;&gt;Marie Curie&lt;/a&gt; or &lt;a href=&quot;http://www.biography.com/people/daniel-hale-williams-9532269&quot;&gt;Daniel Hale Williams&lt;/a&gt; from achieving the highest levels of success, nor should we exclude a future&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/Isaac_Newton&quot;&gt;Isaac Newton&lt;/a&gt;&amp;nbsp;just because of his race or gender.&amp;nbsp; The best way to avoid that, is to be inclusive of everyone, and make sure that everyone has the best opportunities to achieve success possible.&lt;/div&gt;
  978. &lt;div class=&quot;p2&quot;&gt;
  979. &lt;br /&gt;&lt;/div&gt;
  980. &lt;div class=&quot;p1&quot;&gt;
  981. &lt;span class=&quot;s1&quot;&gt;Sadly I will probably be labeled racist or sexist, or some other -ist, because I&#39;m not supportive of the divisive agendas supported by people like&amp;nbsp;&lt;a href=&quot;http://www.usatoday.com/story/tech/columnist/2015/02/12/women-of-color-diversity-tech-silicon-valley-nicole-sanchez/23298945/&quot;&gt;Nicole Sanchez&lt;/a&gt;&amp;nbsp;and Danilo Libre, and because I am a heterosexual white middle class male (hence automatically an entitled enemy in their eyes.) &amp;nbsp;It seems that they would rather have me as an enemy rather than a friendly supporter -- at least that is what their actions demonstrate. &amp;nbsp;It&#39;s certainly easier to apply an -ist label than to engage in rationale dialogue.&lt;/span&gt;&lt;/div&gt;
  982. &lt;div class=&quot;p1&quot;&gt;
  983. &lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  984. &lt;div class=&quot;p1&quot;&gt;
  985. &lt;span class=&quot;s1&quot;&gt;I am however deeply supportive of efforts to reach out to underrepresented groups in early stages. &amp;nbsp;Show more girls, blacks, and latinos filling the role of technophiles in popular culture (movies and shows) that market towards children. &amp;nbsp;Spend money (wisely!) to improve education in poorer school districts. &amp;nbsp;Teach kids that they truly can be successful regardless of color or gender, and make sure that they have the tools (including access to technology) to &lt;i&gt;achieve success&amp;nbsp;based on merit, not because of their grouping.&lt;/i&gt;&amp;nbsp; These efforts have to be made at the primary and secondary school levels, where inspiration can have the biggest effects. &amp;nbsp;(By the way, these lessons apply equally well to white boys; teaching children to respect one another as individuals rather than as labels is a good thing, in all directions.)&lt;/span&gt;&lt;/div&gt;
  986. &lt;div class=&quot;p1&quot;&gt;
  987. &lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  988. &lt;div class=&quot;p1&quot;&gt;
  989. &lt;span class=&quot;s1&quot;&gt;By the time someone in is choosing a college or sitting in front of a recruiter, it&#39;s far too late (and far too expensive). &amp;nbsp;The only tools that can be applied at later stages are only punitive in nature, and therefore the only reasonable thing to do at this late stage is to punish unjust behaviors (i.e. zero tolerance towards bigotry, harassment, and so forth.)&lt;/span&gt;&lt;/div&gt;
  990. &lt;div class=&quot;p1&quot;&gt;
  991. &lt;br /&gt;&lt;/div&gt;
  992. &lt;div class=&quot;p2&quot;&gt;
  993. I&#39;ll have more detail as to the moves of the specific repos over the coming days.&lt;/div&gt;
  994. &lt;div class=&quot;p2&quot;&gt;
  995. &lt;br /&gt;&lt;/div&gt;
  996. &lt;div class=&quot;p2&quot;&gt;
  997. PS: &amp;nbsp;GitLab does&amp;nbsp;&lt;a href=&quot;https://about.gitlab.com/2016/02/02/gitlab-diversity-sponsorship/&quot;&gt;support&lt;/a&gt;&amp;nbsp;diversity as well, which is a good thing, but they do it without engaging in the social justice war, or exclusive policies.&lt;/div&gt;
  998. &lt;div&gt;
  999. &lt;br /&gt;&lt;/div&gt;
  1000. &lt;div class=&quot;p2&quot;&gt;
  1001. &lt;br /&gt;&lt;/div&gt;
  1002. </content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/8365365563163650994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=8365365563163650994' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/8365365563163650994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/8365365563163650994'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2016/02/leaving-github.html' title='Leaving github'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-3668235664676989390</id><published>2016-01-06T10:43:00.000-08:00</published><updated>2017-11-08T22:47:22.613-08:00</updated><title type='text'>Stepping Down</title><content type='html'>&lt;blockquote class=&quot;tr_bq&quot;&gt;
  1003. &lt;i&gt;Updated Nov 9, 2017: When I originally posted this, nearly two years ago, things were different.&amp;nbsp; As folks may know, I returned back to leadership of nanomsg, and have since released several significant updates including version 1.0.0 and follow ups.&amp;nbsp; I&#39;m also in the process of a complete architectural redesign and rewrite (&lt;a href=&quot;https://github.com/nanomsg/nng&quot;&gt;nng&lt;/a&gt;), which is fast nearing completion.&amp;nbsp; This post is left here for posterity, but if you&#39;ve wandered here via search-engine, be certain that the nanomsg community is alive and well.&lt;/i&gt;&lt;/blockquote&gt;
  1004. &lt;br /&gt;
  1005. (Quick reminder that this blog represents my own opinion, and not necessarily that of any open source project or employer.)&lt;br /&gt;
  1006. &lt;br /&gt;
  1007. For nearly a year, I&#39;ve been primary maintainer of &lt;a href=&quot;http://www.nanomsg.org/&quot;&gt;nanomsg&lt;/a&gt;, a library of common lightweight messaging patterns written in C.&lt;br /&gt;
  1008. &lt;br /&gt;
  1009. I was &lt;a href=&quot;https://www.freelists.org/post/nanomsg/New-fork-was-Re-Moving-forward,1&quot;&gt;given&lt;/a&gt; this mantle when I &lt;a href=&quot;https://www.freelists.org/post/nanomsg/Moving-forward&quot;&gt;asked&lt;/a&gt; for the nanomsg community to take some action to get forward progress on some changes I had to fix some core bugs, one of which was a protocol bug. &amp;nbsp;(I am also the creator of &lt;a href=&quot;https://github.com/go-mangos&quot;&gt;mangos&lt;/a&gt;, a wire-compatible library supporting the same patterns written in Go, which is why I came to care about fixing nanomsg.)&lt;br /&gt;
  1010. &lt;br /&gt;
  1011. Today, I am stepping down as maintainer.&lt;br /&gt;
  1012. &lt;br /&gt;
  1013. There are several reasons for this, but the most relevant right now is my frustration with this community, and its response to what I believed to be a benign &lt;a href=&quot;https://www.freelists.org/post/nanomsg/Adopting-a-CoC&quot;&gt;proposal&lt;/a&gt;, that to adopt a &lt;a href=&quot;http://contributor-covenant.org/version/1/3/0/code_of_conduct.md&quot;&gt;Code of Conduct&lt;/a&gt;, in an attempt to make the project more inviting to a broader audience.&lt;br /&gt;
  1014. &lt;br /&gt;
  1015. I was unprepared for the backlash.&lt;br /&gt;
  1016. &lt;br /&gt;
  1017. And frankly, I haven&#39;t got enough love of the project to want to continue to lead it, when its clearly unwilling to codify what are frankly some sound and reasonable communication practices.&lt;br /&gt;
  1018. &lt;br /&gt;
  1019. As maintainer, I could have just enforced my will upon the project, but since the project existed before I came to it, that doesn&#39;t feel right. &amp;nbsp;So instead, I&#39;m just stepping down.&lt;br /&gt;
  1020. &lt;br /&gt;
  1021. I&#39;m not sure who will succeed me. &amp;nbsp;I can nominate a party, but at this point there are several other parties with git commit privileges to the project; I think they should nominate one. &amp;nbsp;Martin (the founder) still has administrative privileges as well.&lt;br /&gt;
  1022. &lt;br /&gt;
  1023. &lt;i&gt;To be clear, I think both sides of the Code of Conduct are &lt;b&gt;wrong&lt;/b&gt; -- a bunch of whinny kids really.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
  1024. &lt;i&gt;&lt;br /&gt;&lt;/i&gt;
  1025. On the one side, we have people who seem to feel that the existence of a document means something.&lt;br /&gt;
  1026. &lt;br /&gt;
  1027. I think that&#39;s a stupid view; it may have meaning when you have larger democratic projects and you need therefore written rules to justify actions -- and in that case a Code of Conduct is really a way to justify punishing someone, rather than prevention or education. &amp;nbsp;To those of you who think you need such a document in order to participate in a project -- I think you&#39;re acting like a bunch of spineless wimps.&lt;br /&gt;
  1028. &lt;br /&gt;
  1029. This isn&#39;t to say you should have to put up with abuse or toxic conduct. &amp;nbsp;But if you think a document creates a &quot;safe space&quot;, you&#39;re smoking something funny. &amp;nbsp;Instead, look at the actual conduct of the project, and the actions of leadership. &amp;nbsp;A paper Code of Conduct isn&#39;t going to fix brokenness, and I have my doubts that it can prevent brokenness from occurring in the first place.&lt;br /&gt;
  1030. &lt;br /&gt;
  1031. If the leadership needs a CoC to correct toxic behavior, then the leadership of the project is busted. &amp;nbsp;Strong leadership leads by example, and takes the appropriate action to ensure that the communities that they lead are pleasant places to be. &amp;nbsp; (That&#39;s not necessarily the same as being conflict-free; much technical goodness comes about as a consequence of heartfelt debate, and developers can be just as passionate about the things they care about as anyone else. &amp;nbsp;Keeping the tone of such debate on topic and non-personal and professional is one of the signs of good leadership.)&lt;br /&gt;
  1032. &lt;br /&gt;
  1033. On the other side, are those who rail against such a document. &amp;nbsp;Are you so afraid of your own speech that you don&#39;t think you can agree to a document that basically says we are to treat each other respectfully? &amp;nbsp;The word I use for such people is &quot;chickenshit&quot;. &amp;nbsp; If you can&#39;t or won&#39;t agree to be respectful towards others in the open source projects I lead, then I don&#39;t want your involvement.&lt;br /&gt;
  1034. &lt;br /&gt;
  1035. There&#39;s no doubt that there exists real abuse and intolerance in open source communities, and those who would cast aspersions on someone because of race, religion, physical attribute, or gender (or preference), are themselves slime, who really only underscore for everyone else their own ignorance and stupidity. &amp;nbsp;I have no tolerance for such bigotry, and I don&#39;t think anyone else should either.&lt;br /&gt;
  1036. &lt;br /&gt;
  1037. Don&#39;t misunderstand me; I&#39;m not advocating for CoCs. &amp;nbsp;I think they are nearly worthless, and I resent the movement that demands that every project adopt one. &amp;nbsp;But I equally resent the strenuous opposition to their existence. &amp;nbsp;If a CoC does no good, it seems to me that it does no harm either. &amp;nbsp;So even if it is just a placebo effect, if it can avoid conflict and make a project more widely acceptable, then its worth having one, precisely because the cost of doing so is so low.&lt;br /&gt;
  1038. &lt;br /&gt;
  1039. Yes, this is &quot;slacktivism&quot;.&lt;br /&gt;
  1040. &lt;br /&gt;
  1041. I&#39;ve been taught that actions speak louder than words though.&lt;br /&gt;
  1042. &lt;br /&gt;
  1043. So today I&#39;m stepping down.&lt;br /&gt;
  1044. &lt;br /&gt;
  1045. I&#39;m retaining my BDFL of mangos, of course, so I&#39;ll still be around the nanomsg community, but I will be giving it far less of my energy.&lt;br /&gt;
  1046. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/3668235664676989390/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=3668235664676989390' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/3668235664676989390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/3668235664676989390'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2016/01/stepping-down.html' title='Stepping Down'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-2789136103532913749</id><published>2015-12-11T10:46:00.002-08:00</published><updated>2015-12-11T10:52:21.420-08:00</updated><title type='text'>What Microsoft Can Do to Make Me Hate Windows a Little Less</title><content type='html'>Those who know me know that I have little love for Microsoft Windows. &amp;nbsp;The platform is a special snowflake, and coming from a Unix background (real &lt;a href=&quot;http://www.illumos.org/&quot;&gt;UNIX&lt;/a&gt;, not Linux, btw), every time I&#39;m faced with Windows I feel like I&#39;m in some alternate dimension where everything is a little strange and painful.&lt;br /&gt;
  1047. &lt;br /&gt;
  1048. I have to deal with Windows because of applications. &amp;nbsp;My wife runs Quickbooks (which is one of the more chaotic and poorly designed bits of software I&#39;ve run across), the kids have video games they like. &amp;nbsp;I&#39;ve had to run it myself historically because some expense report site back at former employer AMD was only compatible with IE. &amp;nbsp;I also have a flight simulator for RC aircraft that only works in Windows (better to practice on the sim, no glue needed when you crash, just hit the reset button.)&lt;br /&gt;
  1049. &lt;br /&gt;
  1050. All of those are merely annoyances, and I keep Windows around on one of my computers for this reason. &amp;nbsp;It&#39;s not one I use primarily, nor one I carry with me when I travel.&lt;br /&gt;
  1051. &lt;br /&gt;
  1052. But I also have created and support software that runs on Windows, or that people want to use on Windows. &amp;nbsp;Software like &lt;a href=&quot;http://www.nanomsg.org/&quot;&gt;nanomsg&lt;/a&gt;, &lt;a href=&quot;http://github.com/gdamore/mangos&quot;&gt;mangos&lt;/a&gt;, &lt;a href=&quot;http://github.com/gdamore/tcell&quot;&gt;tcell&lt;/a&gt;, etc. &amp;nbsp;This is stuff that supports other developers. &amp;nbsp;Its free and open software, and I make no money from any of it.&lt;br /&gt;
  1053. &lt;br /&gt;
  1054. Supporting that software is a pain on Windows, largely due to the fact that I don&#39;t have a Windows license to run Windows in a VM. &amp;nbsp;The only reason I&#39;d buy such a license for my development laptop would be to support my free software development efforts. &amp;nbsp;Which would actually help and benefit the Windows ecosystem.&lt;br /&gt;
  1055. &lt;br /&gt;
  1056. I rely on &lt;a href=&quot;http://www.appveyor.com/&quot;&gt;AppVeyor&lt;/a&gt; (which is an excellent service btw) to help me overcome my lack of a Windows instance on my development system. &amp;nbsp;This has allowed me to support some things pretty well, but the lack of an interactive command line means that some experiments are nigh impossible for me to try; others make me wait for the CI to build and test this, which takes a while. &amp;nbsp;Leading to lost time during the development cycle, all of which make me loathe working on the platform even more.&lt;br /&gt;
  1057. &lt;br /&gt;
  1058. Microsoft can fix this. &amp;nbsp;In their latest &quot;incarnation&quot;, they are claiming to be open source friendly, and they&#39;ve even made big strides here in supporting open source developers. &amp;nbsp;&lt;a href=&quot;http://techcrunch.com/2014/11/12/microsoft-makes-visual-studio-free-for-small-teams/&quot;&gt;Visual Studio is free&lt;/a&gt; (as in beer). &amp;nbsp;Their &lt;a href=&quot;https://code.visualstudio.com/download&quot;&gt;latest code editor&lt;/a&gt; is even open source. &amp;nbsp;The .Net framework itself is &lt;a href=&quot;http://techcrunch.com/2014/11/12/microsoft-takes-net-open-source-and-cross-platform/&quot;&gt;open source&lt;/a&gt;.&lt;br /&gt;
  1059. &lt;br /&gt;
  1060. But the biggest barrier is the license for the platform itself. &amp;nbsp;I&#39;m simply not going to run Windows on the bare metal -- I&#39;m a Mac/UNIX guy and that is not going to change. &amp;nbsp;But I can and would be happier to occasionally run Windows to better support that platform in a VM, just like I do for &lt;a href=&quot;http://www.illumos.org/&quot;&gt;illumos&lt;/a&gt; or Linux or FreeBSD.&lt;br /&gt;
  1061. &lt;br /&gt;
  1062. So, Microsoft, here&#39;s your chance to make me hate your platform a little less. &amp;nbsp;Give open source developers access to free Windows licenses; to avoid cannibalizing your business you could have license terms that only allow these free licenses to be used when Windows is run in a virtual machine for non-commercial purposes. &amp;nbsp;This is a small thing you could do, to extend your reach to a set of developers who&#39;ve mostly abandoned you.&lt;br /&gt;
  1063. &lt;br /&gt;
  1064. (And Apple, there&#39;s a similar lesson there for you. &amp;nbsp;I&#39;m a devoted MacOS X fan, but imagine how much wider your developer audience could be if you let people run MacOS X in a VM for non-commercial use?)&lt;br /&gt;
  1065. &lt;br /&gt;
  1066. In the meantime, if you use software I develop, please don&#39;t be surprised if you find that I treat Windows as a distinctly second class citizen. &amp;nbsp;After all, its no worse than how Microsoft has treated me as an open source developer.</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/2789136103532913749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=2789136103532913749' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/2789136103532913749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/2789136103532913749'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2015/12/what-microsoft-can-do-to-make-me-hate.html' title='What Microsoft Can Do to Make Me Hate Windows a Little Less'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-1493228101611806802</id><published>2015-12-08T16:41:00.000-08:00</published><updated>2015-12-08T16:42:33.526-08:00</updated><title type='text'>On Misunderstandings</title><content type='html'>Yesterday there was a flurry of activity on Twitter, and in retrospect, it seems that some have come away with interpretations of what I said that are other than what I intended. &amp;nbsp;Some of that misunderstanding is pretty unfortunate, so I&#39;d like to set the record straight on a couple of items now.&lt;br /&gt;
  1067. &lt;br /&gt;
  1068. First off, let me begin by saying that this blog, and my Twitter account, are mine alone, and are used by me to express my opinions. &amp;nbsp;They represent neither &lt;a href=&quot;http://www.illumos.org/&quot;&gt;illumos&lt;/a&gt; nor &lt;a href=&quot;http://www.lucera.com/&quot;&gt;Lucera&lt;/a&gt;, nor anyone or anything else.&lt;br /&gt;
  1069. &lt;br /&gt;
  1070. Second, I have to apologize for it seems that I&#39;ve come across as somehow advocating either against diversity (whether in the community or in the workplace) or in favor of toxicity.&lt;br /&gt;
  1071. &lt;br /&gt;
  1072. Nothing could be further from the truth. &amp;nbsp;I believe strongly in diversity and an inclusive environment, both for illumos, and in the work place. &amp;nbsp;I &lt;a href=&quot;https://www.youtube.com/watch?v=302C7TaCsSY&amp;amp;feature=youtu.be&amp;amp;list=PLH8r-Scm3-2VmZhZ76tFPAhPOG0pvmjdA#t=13m30s&quot;&gt;talked about this at illumos day last year&lt;/a&gt;&amp;nbsp;(see about 13:30 into the video, slides &lt;a href=&quot;http://us-east.manta.joyent.com/illumos/public/events/illumosday2014/gdamore.pdf&quot;&gt;here&lt;/a&gt;), and I&#39;ve also put my &lt;a href=&quot;http://garrett.damore.org/2014/10/supporting-women-in-open-source.html&quot;&gt;money where my mouth&lt;/a&gt; is. &amp;nbsp;Clearly, it hasn&#39;t been enough, and I think we all can and should do better. &amp;nbsp;I&#39;m interested in finding ways to increase the diversity in illumos in particular, and the industry in general. &amp;nbsp;Feel free to post your suggestions in the comments following this blog.&lt;br /&gt;
  1073. &lt;br /&gt;
  1074. Additionally, no, I don&#39;t believe that anyone should have to put up with &quot;high performing toxic people&quot;. &amp;nbsp;The illumos community has appropriately censured people for toxic behavior in the past, and I was supportive of that action back then, and still am now. &amp;nbsp;Maintaining a comfortable work place and a comfortable community leads to increased personal satisfaction, and that leads to increased productivity. &amp;nbsp;Toxicity drives people away, and that flies in the face of the aforementioned desire for diversity (as well as the unstated ones for a growing and a healthy community.)&lt;br /&gt;
  1075. &lt;br /&gt;
  1076. Finally, I didn&#39;t mean to offend anyone. &amp;nbsp;If I&#39;ve done so in my recent tweets, please be assured that this was not intentional, and I hope you&#39;ll accept my heartfelt apology.&lt;br /&gt;
  1077. &lt;br /&gt;
  1078. Thanks.</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/1493228101611806802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=1493228101611806802' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/1493228101611806802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/1493228101611806802'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2015/12/on-misunderstandings.html' title='On Misunderstandings'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-6042188200741696921</id><published>2015-10-19T04:29:00.001-07:00</published><updated>2015-10-19T04:29:36.762-07:00</updated><title type='text'>A Space Shooter in Curses</title><content type='html'>Some of you who follow me may know that I have recently built a pretty nifty framework for working with terminals. &amp;nbsp;ANSI, ASCII, VT100, Windows Console, etc. &amp;nbsp;Its called &lt;a href=&quot;http://github.com/gdamore/tcell&quot;&gt;Tcell&lt;/a&gt;, and located on github. &amp;nbsp;(Its a Go framework though.) &amp;nbsp;It offers many of the same features as curses, though it is most definitely not a clone of curses.&lt;br /&gt;
  1079. &lt;br /&gt;
  1080. Anyway, I decided it should be possible to write a game in this framework, so I wrote one.&lt;br /&gt;
  1081. &lt;br /&gt;
  1082. I give you &lt;a href=&quot;http://github.com/gdamore/proxima5&quot;&gt;Escape From Proxima 5&lt;/a&gt;, a 2D multi-axis scrolling space shooter written entirely in Go, designed to operate in your text terminal&lt;br /&gt;
  1083. &lt;br /&gt;
  1084. The game is fairly primordial, but there is a playable level complete with enemies and hazards. &amp;nbsp; It&#39;s actually reasonably difficult to get past just this first level.&lt;br /&gt;
  1085. &lt;br /&gt;
  1086. Mostly the idea here is that you can get a sense of what the game engine is capable of, and see Tcell in action.&lt;br /&gt;
  1087. &lt;br /&gt;
  1088. As part of this, I wrote a pretty complete 2D game engine. &amp;nbsp;Its got rich sprite management with collision detection, palettes, an events subsystem, scrolling maps, and support for keyboards and mice. &amp;nbsp;Its also got pretty nice extensibility as assets are defined in YAML files that are converted and compiled into the program. &amp;nbsp;(I guess an asset editor needs to be written. :-)&lt;br /&gt;
  1089. &lt;br /&gt;
  1090. The code is &lt;a href=&quot;https://github.com/gdamore/proxima5/blob/master/LICENSE&quot;&gt;Apache 2 licensed&lt;/a&gt;, so feel free to borrow bits for your own projects. &amp;nbsp;I&#39;d love to hear about it.&lt;br /&gt;
  1091. &lt;br /&gt;
  1092. Anyway, I thought I&#39;d post this here. &amp;nbsp;I made two videos. &amp;nbsp;The longer one, at about 3:30, shows most of the features of the game, animated sprites, some nice explosions, gravity effects, beam field effects, etc.&lt;br /&gt;
  1093. &lt;br /&gt;
  1094. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1095. &lt;iframe width=&quot;320&quot; height=&quot;266&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/jNxKTCmY_bQ/0.jpg&quot; src=&quot;https://www.youtube.com/embed/jNxKTCmY_bQ?feature=player_embedded&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;
  1096. &lt;br /&gt;
  1097. &lt;br /&gt;
  1098. The second video shows what this looks like on less rich terminals -- say a VT100 with only 7-bit ASCII characters available. &amp;nbsp;The richer your locale, the nicer it will look. &amp;nbsp;But it falls down as gracefully as one can expect.&lt;br /&gt;
  1099. &lt;br /&gt;
  1100. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1101. &lt;iframe width=&quot;320&quot; height=&quot;266&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/DiOPBBM7-Xc/0.jpg&quot; src=&quot;https://www.youtube.com/embed/DiOPBBM7-Xc?feature=player_embedded&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;
  1102. &lt;br /&gt;
  1103. Btw, this framework is now basically design complete, so it should be super easy to product a lot of simples kinds of games -- for example a clone of Missile Command or Space Invaders should be doable in an afternoon. &amp;nbsp; What makes this game a little bigger is the number if different kinds of objects and object interactions we can have.</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/6042188200741696921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=6042188200741696921' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/6042188200741696921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/6042188200741696921'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2015/10/a-space-shooter-in-curses.html' title='A Space Shooter in Curses'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/jNxKTCmY_bQ/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-2568373107269807122</id><published>2015-10-05T00:02:00.001-07:00</published><updated>2015-10-05T00:02:07.569-07:00</updated><title type='text'>Fun with terminals, character sets, Unicode, and Go</title><content type='html'>As part of my recent work on &lt;a href=&quot;http://github.com/gdamore/tcell&quot;&gt;Tcell&lt;/a&gt;, I&#39;ve recently added some pretty cool functionality for folks who want to have applications that can work reasonably in many different locales.&lt;br /&gt;
  1104. &lt;br /&gt;
  1105. For example, if your terminal is running in UTF-8, you can access a &lt;i&gt;huge&lt;/i&gt; repertoire of glyphs / characters.&lt;br /&gt;
  1106. &lt;br /&gt;
  1107. But if you&#39;re running in a non-UTF-8 terminal, such as an older ISO 8859-1 (Latin1) or KOI8-R (Russian) locale, you might have problems. &amp;nbsp;Your terminal won&#39;t be able to display UTF-8, and your key strokes will probably be reported to the application using some 8-bit variant that is incompatible with UTF-8. &amp;nbsp;(For ASCII characters, everything will work, but if you want to enter a different character, like Я (Russian for &quot;ya&quot;), you&#39;re going to have difficulties.&lt;br /&gt;
  1108. &lt;br /&gt;
  1109. If you work on the console of your operating system, you probably have somewhere around 220 characters to play with. &amp;nbsp;You&#39;re going to miss some of those glyphs.&lt;br /&gt;
  1110. &lt;br /&gt;
  1111. &lt;a href=&quot;http://golang.org/&quot;&gt;Go&lt;/a&gt; of course works with UTF-8 natively. &amp;nbsp;Which is just awesome.&lt;br /&gt;
  1112. &lt;br /&gt;
  1113. Until you have to work in one of these legacy environments. &amp;nbsp; And some of the environments are not precisely &quot;legacy&quot;. &amp;nbsp;(&lt;a href=&quot;http://gb18030.com/&quot;&gt;GB18030&lt;/a&gt; has the same repertoire as UTF-8, but uses a different encoding scheme and is legally mandatory within China.)&lt;br /&gt;
  1114. &lt;br /&gt;
  1115. If you use Tcell for your application&#39;s user interface, this is now &quot;fixed&quot;.&lt;br /&gt;
  1116. &lt;br /&gt;
  1117. Tcell will attempt to convert to characters that the user&#39;s terminal understands on output, provided the user&#39;s environment variables are set properly ($LANG, $LC_ALL, $LC_CTYPE, per POSIX). &amp;nbsp;It will also convert the user&#39;s key strokes from your native locale to UTF-8. &amp;nbsp;This means that YOU, the application developer, can just worry about UTF-8, and skip the rest. &amp;nbsp;(Unless you want to add new Encodings, which is entirely possible.)&lt;br /&gt;
  1118. &lt;br /&gt;
  1119. Tcell even goes further.&lt;br /&gt;
  1120. &lt;br /&gt;
  1121. It will use the alternate character set (ACS) to convert Unicode drawing characters to the characters supported by the terminal, if they exist -- or to reasonable ASCII fallbacks if they don&#39;t. &amp;nbsp;(Just like &lt;a href=&quot;https://www.gnu.org/software/ncurses/&quot;&gt;ncurses&lt;/a&gt;!)&lt;br /&gt;
  1122. &lt;br /&gt;
  1123. It will also cope with both East Asian full-width (or ambiguous width) characters, and even properly handles combining characters. &amp;nbsp;(If your terminal supports it, these are rendered properly on the terminal. &amp;nbsp;If it doesn&#39;t, Tcell makes a concerted effort to make a best attempt at rendering -- preserving layout and presenting the primary character even if the combining character cannot be rendered.)&lt;br /&gt;
  1124. &lt;br /&gt;
  1125. The Unicode (and non-Unicode translation) handling capabilities in Tcell far exceed any other terminal handling package I&#39;m aware of.&lt;br /&gt;
  1126. &lt;br /&gt;
  1127. Here are some interesting screen caps, taken on a Mac using the provided unicode.go test program.&lt;br /&gt;
  1128. &lt;br /&gt;
  1129. First the UTF-8. &amp;nbsp;Note the Arabic, the correct spacing of the Chinese glyphs, and the correct rendering of Combining characters. &amp;nbsp;(Note also that emoji are reported as width one, instead of two, and so take up more space than they should. &amp;nbsp;This is a font bug on my system -- Unicode says these are Narrow characters.)&lt;br /&gt;
  1130. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1131. &lt;a href=&quot;http://2.bp.blogspot.com/-rjWRfJf7fdI/VhIbnMqvMDI/AAAAAAAAASY/lTm-emmCBXs/s1600/Screen%2BShot%2B2015-10-04%2Bat%2B11.39.27%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;http://2.bp.blogspot.com/-rjWRfJf7fdI/VhIbnMqvMDI/AAAAAAAAASY/lTm-emmCBXs/s320/Screen%2BShot%2B2015-10-04%2Bat%2B11.39.27%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1132. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1133. Then we run in ISO8859-1 (Latin 1). &amp;nbsp;Here you can see the accented character available in the Icelandic word, and some terminal specific replacements have been made for the drawing glyphs. &amp;nbsp;ISO 8859-1 lacks most of the unusual or Asian glyphs, and so those are rendered as &quot;?&quot;. &amp;nbsp;This is done by Tcell -- the terminal &lt;i&gt;never sees the raw Unicode/UTF-8&lt;/i&gt;. &amp;nbsp;That&#39;s important, since sending the raw UTF-8 could cause my terminal to do bad things.&lt;/div&gt;
  1134. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1135. &lt;br /&gt;&lt;/div&gt;
  1136. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1137. Note also that the widths are properly handled, so that even though we cannot display the combining characters, nor the full-width Chinese characters, the widths are correct -- 1 cell is taken for the combining character combinations, and 2 cells are taken by the full width Chinese characters.&lt;/div&gt;
  1138. &lt;br /&gt;
  1139. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1140. &lt;a href=&quot;http://2.bp.blogspot.com/-oKVdqXaBLAc/VhIbnMxJm9I/AAAAAAAAASc/pJyhgD11qbQ/s1600/Screen%2BShot%2B2015-10-04%2Bat%2B11.39.56%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;http://2.bp.blogspot.com/-oKVdqXaBLAc/VhIbnMxJm9I/AAAAAAAAASc/pJyhgD11qbQ/s320/Screen%2BShot%2B2015-10-04%2Bat%2B11.39.56%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1141. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1142. Then we show off legacy Russian (KOI8-R): &amp;nbsp; Here you can see Cyrillic is rendered properly, as well as the basic ASCII and the alternate (ACS) drawing characters (mostly), while the rest are filled with place holder ?&#39;s.&lt;/div&gt;
  1143. &lt;br /&gt;
  1144. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1145. &lt;a href=&quot;http://1.bp.blogspot.com/-GJJRxtcEelw/VhIbnvifseI/AAAAAAAAASg/3S2Y0ZTCS8c/s1600/Screen%2BShot%2B2015-10-04%2Bat%2B11.40.30%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;http://1.bp.blogspot.com/-GJJRxtcEelw/VhIbnvifseI/AAAAAAAAASg/3S2Y0ZTCS8c/s320/Screen%2BShot%2B2015-10-04%2Bat%2B11.40.30%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1146. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1147. And, for those of you in mainland China, here&#39;s GB18030: &amp;nbsp;Its somewhat amusing that the system font seems to not be able to cope with the combining enclosure here. &amp;nbsp;Again, this is a font deficiency in the system.&lt;/div&gt;
  1148. &lt;br /&gt;
  1149. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1150. &lt;a href=&quot;http://4.bp.blogspot.com/-aoI93OH10UY/VhIbn-C8rwI/AAAAAAAAASo/l3BUPzRi_-M/s1600/Screen%2BShot%2B2015-10-04%2Bat%2B11.40.55%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;http://4.bp.blogspot.com/-aoI93OH10UY/VhIbn-C8rwI/AAAAAAAAASo/l3BUPzRi_-M/s320/Screen%2BShot%2B2015-10-04%2Bat%2B11.40.55%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1151. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1152. &lt;br /&gt;&lt;/div&gt;
  1153. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1154. As you can see, we have a lot of rendering options. &amp;nbsp;Input is filtered and converted too. &amp;nbsp;Unfortunately, the mouse test program I use to verify this doesn&#39;t really show this (since you can&#39;t see what I typed), but the Right Thing happens on input too.&lt;/div&gt;
  1155. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1156. &lt;br /&gt;&lt;/div&gt;
  1157. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1158. Btw, those of you looking for mouse usage in your terminal should be very very happy with Tcell. &amp;nbsp;As far as I can tell, Tcell offers improved mouse handling on stock XTerm over every other terminal package. &amp;nbsp;This includes live mouse reporting, click-drag reporting, etc. &amp;nbsp; Here&#39;s what the test program looks like on my system, after I&#39;ve click-dragged to create a few boxes:&lt;/div&gt;
  1159. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1160. &lt;br /&gt;&lt;/div&gt;
  1161. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1162. &lt;a href=&quot;http://2.bp.blogspot.com/-fWvW5opT0es/VhIdItdKqJI/AAAAAAAAATE/7Ojc0L1SpB0/s1600/Screen%2BShot%2B2015-10-04%2Bat%2B11.47.13%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;306&quot; src=&quot;http://2.bp.blogspot.com/-fWvW5opT0es/VhIdItdKqJI/AAAAAAAAATE/7Ojc0L1SpB0/s320/Screen%2BShot%2B2015-10-04%2Bat%2B11.47.13%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1163. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1164. &lt;br /&gt;&lt;/div&gt;
  1165. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1166. &lt;br /&gt;&lt;/div&gt;
  1167. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1168. I&#39;m super tempted to put all this together to write an old DOS-style game. &amp;nbsp;I think Tcell has everything necessary here to be used as the basis for some really cool terminal hacks.&lt;/div&gt;
  1169. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1170. &lt;br /&gt;&lt;/div&gt;
  1171. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1172. Give it a whirl if you like, and let me know what you think.&lt;/div&gt;
  1173. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1174. &lt;br /&gt;&lt;/div&gt;
  1175. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/2568373107269807122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=2568373107269807122' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/2568373107269807122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/2568373107269807122'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2015/10/fun-with-terminals-character-sets.html' title='Fun with terminals, character sets, Unicode, and Go'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-rjWRfJf7fdI/VhIbnMqvMDI/AAAAAAAAASY/lTm-emmCBXs/s72-c/Screen%2BShot%2B2015-10-04%2Bat%2B11.39.27%2BPM.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-9177932589493626125</id><published>2015-10-02T22:25:00.000-07:00</published><updated>2015-10-02T22:25:06.667-07:00</updated><title type='text'>Tcell  - Terminal functionality for Pure Go apps</title><content type='html'>Introducing &lt;a href=&quot;http://github.com/gdamore/tcell&quot;&gt;Tcell&lt;/a&gt; &amp;nbsp;- Terminal functionality for Pure Go apps&lt;br /&gt;
  1176. &lt;br /&gt;
  1177. As part of the work I&#39;ve done on &lt;a href=&quot;http://github.com/gdamore/govisor&quot;&gt;govisor&lt;/a&gt;, I had a desire for rich terminal functionality so that I could build a portable curses-style management application.&lt;br /&gt;
  1178. &lt;br /&gt;
  1179. This turned out to be both easier and harder than I thought.&lt;br /&gt;
  1180. &lt;br /&gt;
  1181. Easier, because there was an implementation to start from --&amp;nbsp;&lt;a href=&quot;http://github.com/nsf/termbox-go&quot;&gt;termbox-go&lt;/a&gt;, but harder because that version wasn&#39;t portable to the &lt;a href=&quot;http://www.illumos.org/&quot;&gt;OS I cared most about&lt;/a&gt;, and fell short in some ways that I felt were important. &amp;nbsp;(Specifically, reduced functionality for mice, colors, and Unicode.)&lt;br /&gt;
  1182. &lt;br /&gt;
  1183. This led me to create my own library; I&#39;ve made some very very different design choices. &amp;nbsp;These design choices have let me both support more platforms (pretty much all POSIX platforms and Windows are included), increase support for a much richer set of terminals and terminal capabilities, etc.&lt;br /&gt;
  1184. &lt;br /&gt;
  1185. The work is called &quot;&lt;a href=&quot;http://github.com/gdamore/tcell&quot;&gt;Tcell&lt;/a&gt;&quot; (for terminal cells, which is the unit we operate on -- if you don&#39;t like the name ... well I&#39;m open to suggestions. &amp;nbsp;I freely admit that I suck at naming -- and its widely &lt;a href=&quot;http://martinfowler.com/bliki/TwoHardThings.html&quot;&gt;acknowledged&lt;/a&gt; that naming is one of the &quot;hard&quot; problems in computer science.)&lt;br /&gt;
  1186. &lt;br /&gt;
  1187. As part of this work, I&#39;ve implemented a full Terminfo string parser/expander in Go. &amp;nbsp;This isn&#39;t quite as trivial as you might think, since the parameterized strings actually have a kind of stack based &quot;&lt;a href=&quot;http://invisible-island.net/ncurses/man/terminfo.5.html#h3-Parameterized-Strings&quot;&gt;minilanguage&lt;/a&gt;&quot;, including conditionals, in them.&lt;br /&gt;
  1188. &lt;br /&gt;
  1189. Furthermore, I&#39;ve wound up exploring lots more about mice, and terminals, and the most common emulators. &amp;nbsp;As a result, I think I have created a framework that can support very rich mouse reporting, key events, colors, and Unicode. &amp;nbsp;Of course, the functionality will vary somewhat by platform and terminal (your &lt;a href=&quot;https://en.wikipedia.org/wiki/VT52#/media/File:Terminal-dec-vt52.jpg&quot;&gt;vt52&lt;/a&gt; isn&#39;t going to support rich colors, Unicode, or even a mouse, after all. &amp;nbsp;But Xterm can, as can most modern emulators.)&lt;br /&gt;
  1190. &lt;br /&gt;
  1191. This work would be a nice basis for portable readline implementations, getpassphrase, etc. &amp;nbsp;Or a full up curses implementation. &amp;nbsp;It does support a compatibility mode for termbox, and most termbox applications work with only changing the import line. &amp;nbsp; I still need to change govisor, and the topsl panels library, to use tcell, but part of that work will be including much more capable mouse reporting, which tcell now facilitates.&lt;br /&gt;
  1192. &lt;br /&gt;
  1193. Admittedly, if you cannot tolerate cgo in any of your work -- this isn&#39;t for you -- yet. &amp;nbsp;I will probably start adding non-cgo implementations for particular ports such as Linux, Darwin, and FreeBSD. &amp;nbsp;But for other platforms there will always be cgo as a fallback. &amp;nbsp;Sadly, unless the standard Go library evolves to add sufficient richness that all of the termios functionality are available natively on all platforms (which is a real possibility), cgo will remain necessary. &amp;nbsp;(Note that Windows platform support does &lt;i&gt;not&lt;/i&gt; use CGO.)</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/9177932589493626125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=9177932589493626125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/9177932589493626125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/9177932589493626125'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2015/10/tcell-terminal-functionality-for-pure.html' title='Tcell  - Terminal functionality for Pure Go apps'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-4853466830148344524</id><published>2015-09-22T12:05:00.001-07:00</published><updated>2015-09-22T12:05:49.293-07:00</updated><title type='text'>On Go, Portability, and System Interfaces</title><content type='html'>I&#39;ve been noticing more and more lately that we have a plethora of libraries and programs written for Go, which don&#39;t work on one platform or another. &amp;nbsp;The root cause of these is often the use of direct system call coding to system calls such as ioctl(). &amp;nbsp;On some platforms (illumos/solaris!) there is no such system call.&lt;br /&gt;
  1194. &lt;br /&gt;
  1195. &lt;h3&gt;
  1196. The Problems&lt;/h3&gt;
  1197. &lt;br /&gt;
  1198. But this underscores a far far worse problem, that has become common (mal)-practice in the &lt;a href=&quot;http://www.golang.org/&quot;&gt;Go&lt;/a&gt; community. &amp;nbsp;That is, the coding of system calls directly into high level libraries and even application programs. &amp;nbsp;For example, it isn&#39;t uncommon to see something like this (taken from &lt;a href=&quot;http://github.com/nsf/termbox-go&quot;&gt;termbox-go&lt;/a&gt;):&lt;br /&gt;
  1199. &lt;blockquote class=&quot;tr_bq&quot;&gt;
  1200. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;func&lt;/span&gt; tcsetattr(fd uintptr, termios *syscall_Termios) &lt;span style=&quot;color: #cc0000;&quot;&gt;error&lt;/span&gt; {&lt;/span&gt;&lt;br /&gt;
  1201. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r, _, e := syscall.Syscall(syscall.SYS_IOCTL,&lt;/span&gt;&lt;br /&gt;
  1202. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fd, uintptr(syscall_TCSETS), uintptr(unsafe.Pointer(termios)))&lt;/span&gt;&lt;br /&gt;
  1203. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if r != 0 {&lt;/span&gt;&lt;br /&gt;
  1204. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #cc0000;&quot;&gt;return&lt;/span&gt; os.NewSyscallError(&quot;&lt;span style=&quot;color: blue;&quot;&gt;SYS_IOCTL&lt;/span&gt;&quot;, e)&lt;/span&gt;&lt;br /&gt;
  1205. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
  1206. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #cc0000;&quot;&gt;return nil&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1207. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
  1208. &lt;br /&gt;
  1209. This has quite a few problems with it.&lt;br /&gt;
  1210. &lt;ol&gt;
  1211. &lt;li&gt;It&#39;s not platform portable. &amp;nbsp;This function depends on a specific implementation of &lt;a href=&quot;http://pubs.opengroup.org/onlinepubs/009695399/functions/tcsetattr.html&quot;&gt;tcsetattr&lt;/a&gt;() that is done in terms of specific ioctl()s. &amp;nbsp;For example, TCSETS may be used on one platform, but on others TIOCSETA might be used.&lt;/li&gt;
  1212. &lt;li&gt;It&#39;s not Go portable, since SYS_IOCTL isn&#39;t implemented on platforms like &lt;a href=&quot;http://www.illumos.org/&quot;&gt;illumos&lt;/a&gt;, even though as a &lt;a href=&quot;http://pubs.opengroup.org/onlinepubs/9699919799/&quot;&gt;POSIX&lt;/a&gt; system we do have a working tcsetattr().&amp;nbsp;&lt;/li&gt;
  1213. &lt;li&gt;The code is actually pretty unreadable, and somewhat challenging to write the first time correctly.&lt;/li&gt;
  1214. &lt;li&gt;The code uses unsafe.Pointer(), which is clearly something we ought to avoid.&lt;/li&gt;
  1215. &lt;li&gt;On some platforms, the details of the ioctls are subject to change, so that the coding above is actually fragile. &amp;nbsp;(In illumos &amp;amp; Solaris system call interfaces are &quot;undocumented&quot;, and one must use the C library to access system services. &amp;nbsp;This is our &quot;stable API boundary&quot;. &amp;nbsp;This is somewhat different from Linux practice; the reasons for this difference is both historical and related to the fact that Linux delivers only a kernel, while illumos delivers a system that includes both the kernel and core libraries.)&lt;/li&gt;
  1216. &lt;/ol&gt;
  1217. &lt;b&gt;&lt;i&gt;How did we wind up in this ugly situation?&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
  1218. &lt;br /&gt;
  1219. The problem I believe stems from some misconceptions, and some historical precedents in the Go community. &amp;nbsp; First the Go community has long touted static linking as one of its significant advantages. &amp;nbsp;However, I believe this has been taken too far.&lt;br /&gt;
  1220. &lt;br /&gt;
  1221. Why is static linking beneficial? &amp;nbsp;The obvious (to me at any rate) reason is to avoid the dependency nightmares and breakage that occurs with other systems where many dynamic libraries are brought together. &amp;nbsp;For example, if A depends directly on both B and C, and B depends on C, but some future version of B depends on a newer version of C that is incompatible with the version of C that A was using, then we cannot update A to use the new B. &amp;nbsp;And when the system components are shared across the entire system, the web of dependencies gets to be so challenging that managing these dependencies in real environments can become a full time job, consuming an entire engineering salary.&lt;br /&gt;
  1222. &lt;br /&gt;
  1223. You can get into surprising results where upgrading one library can cause unexpected failures in some other application. &amp;nbsp;So the desire to avoid this kind of breakage is to encode the entire binary together, in a single stand-alone executable, so that we need never have a fear as to whether our application will work in the future or not. &amp;nbsp;As I will show, we&#39;ve not really achieved this with 100% statically linked executables in Go, though I&#39;ll grant that we have greatly reduced the risk.&lt;br /&gt;
  1224. &lt;br /&gt;
  1225. This is truly necessary because much of the open source ecosystem has no idea about interface stability nor versioning interfaces. &amp;nbsp;This is gradually changing, such that we now have ideas like semver coming around as if they are somehow new and great ideas. &amp;nbsp;The reality is that commercial operating system vendors have understood the importance of stable API boundaries for a very very long time. &amp;nbsp;Some, like Sun, even made legally binding promises around the stability of their interfaces. &amp;nbsp;However, in each of these cases, the boundary has to a greater or lesser extent been at the discretion of the vendor.&lt;br /&gt;
  1226. &lt;br /&gt;
  1227. Until we consider standards such as POSIX 1003.1. &amp;nbsp;Some mistakenly believe that POSIX defines system calls. &amp;nbsp;It does not. &amp;nbsp;It defines a C function call interface. &amp;nbsp;The expectation is that many of these interfaces have 1:1 mappings with system calls, but the details of those system calls are completely unspecified by POSIX.&lt;br /&gt;
  1228. &lt;br /&gt;
  1229. Basically, the Go folks want to minimize external dependencies and the web of failure that can lead to. &amp;nbsp;Fixing that is a goal I heartily agree with. &amp;nbsp;However, we cannot eliminate our dependency on the platform. &amp;nbsp;And using system calls directly is actually worse, because it moves our dependency from something that is stable and defined by standards bodies, to an interface that is undocumented, not portable, and may change at any time.&lt;br /&gt;
  1230. &lt;br /&gt;
  1231. If you&#39;re not willing to have a dynamic link dependency on the C library, why would you be willing to have a dependency on the operating system kernel? &amp;nbsp;In fact, the former is far safer than the latter! (And on Solaris, you don&#39;t have a choice -- the Go compiler always links against the system libraries.)&lt;br /&gt;
  1232. &lt;br /&gt;
  1233. &lt;b&gt;&lt;i&gt;Harmful results that occur with static linking&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
  1234. &lt;br /&gt;
  1235. If the application depends on a library that has a critical security update, it becomes necessary to recompile the application. &amp;nbsp;If you have a low level library such as a TLS or HTTP client, and a security fix for a TLS bug is necessary (&lt;i&gt;and we&#39;ve never ever ever had any bugs in TLS or SSL implementation, right?&lt;/i&gt;), this could mean recompiling a very large body of software to be sure you&#39;ve closed the gaps.&lt;br /&gt;
  1236. With statically linked programs, even knowing which applications need to be updated can be difficult or impossible. &amp;nbsp;They defy the most easy kinds of inspection, using tools like ldd or otool to see what they are built on top of.&lt;br /&gt;
  1237. &lt;br /&gt;
  1238. What is also tragic, is that static executables wind up encoding the details of the kernel system call interface into the binary. &amp;nbsp;On some systems this isn&#39;t a big deal because they have a stable system call interface. &amp;nbsp;(Linux mostly has this -- although glibc still has to cope with quite a few differences here by handling ENOSYS, and don&#39;t even get me started on systemd related changes.) &amp;nbsp;But on systems like Solaris and illumos, we&#39;ve historically considered those details a private implementation detail between libc and kernel. &amp;nbsp;And to prevent applications from abusing this, we don&#39;t even deliver a static libc. &amp;nbsp;This gives us the freedom to change the kernel/userland interface fairly freely, without affecting applications.&lt;br /&gt;
  1239. &lt;br /&gt;
  1240. When you consider standards specifications like POSIX or X/OPEN, this approach makes a lot of sense. &amp;nbsp;They standardize the C function call interface, and leave the kernel implementation up to the implementor.&lt;br /&gt;
  1241. &lt;br /&gt;
  1242. But statically linked Go programs break this, badly. &amp;nbsp;If that kernel interface changes, we can wind up breaking all of the Go programs that use it, although &quot;correct&quot; programs that only use libc will continue to work fine.&lt;br /&gt;
  1243. &lt;br /&gt;
  1244. &lt;b&gt;&lt;i&gt;The elephant in the room (licensing)&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
  1245. &lt;br /&gt;
  1246. The other problem with static linking is that it can create a license condition that is very undesirable. &amp;nbsp;For example, glibc is LGPL. &amp;nbsp;That means that per the terms of the LGPL it must be possible to relink against a different glibc, if you link statically.&lt;br /&gt;
  1247. &lt;br /&gt;
  1248. Go programs avoid this by not including any of the C library statically. Even when cgo is used, the system libraries are linked dynamically. &amp;nbsp;(This is usually the C library, but can include things like a pthreads library or other base system libraries.)&lt;br /&gt;
  1249. &lt;br /&gt;
  1250. In terms of the system, the primary practice for Go programmers has been to use licenses like MIT, BSD, or Apache, that are permissive enough that static linking of 3rd party Go libraries is usually not a problem. &amp;nbsp;I suppose that this is a great benefit in that it will serve to help prevent GPL and LGPL code from infecting the bulk of the corpus of Go software.&lt;br /&gt;
  1251. &lt;br /&gt;
  1252. &lt;h3&gt;
  1253. The Solutions&lt;/h3&gt;
  1254. &lt;br /&gt;
  1255. The solution here is rather straightforward.&lt;br /&gt;
  1256. &lt;br /&gt;
  1257. First, we should not eschew use of the C library, or other libraries that are part of the standard system image. &amp;nbsp;I&#39;m talking about things like libm, libc, and for those that have them, libpthread, libnsl, libsocket. &amp;nbsp;Basically the standard libraries that every non-trivial program has to include. &amp;nbsp;On most platforms this is just libc. &amp;nbsp;If recoded to use the system&#39;s tcsetattr (which is defined to exist by POSIX), the above function looks like this:&lt;br /&gt;
  1258. &lt;blockquote class=&quot;tr_bq&quot;&gt;
  1259. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// include &amp;lt;termios.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;import&lt;/span&gt; &quot;&lt;span style=&quot;color: blue;&quot;&gt;C&lt;/span&gt;&quot;&lt;br /&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;import&lt;/span&gt; &quot;&lt;span style=&quot;color: blue;&quot;&gt;os&lt;/span&gt;&quot;&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;
  1260. &lt;blockquote class=&quot;tr_bq&quot;&gt;
  1261. &lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;func&lt;/span&gt; tcsetattr(f *os.File, termios *C.struct_termios) &lt;span style=&quot;color: #cc0000;&quot;&gt;error&lt;/span&gt; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _, e := C.tcsetattr(C.int(f.Fd(), C.TCSANOW, termios)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #cc0000;&quot;&gt;return&lt;/span&gt; e&lt;br /&gt;}&lt;/span&gt;&lt;/blockquote&gt;
  1262. The above implementation will cause your library or program to dynamically link against and use the standard C library on the platform. &amp;nbsp;And it works on all POSIX systems everywhere and because it uses a stable documented standard API, it is pretty much immune to breakage from changes elsewhere in the system. &amp;nbsp;(At least any change that broke this implementation would also break so many other things that the platform would be unusable. &amp;nbsp;Generally we can usually trust people who make the operating system kernel and C library to not screw things up too badly.)&lt;br /&gt;
  1263. &lt;br /&gt;
  1264. What would be even better, and cleaner, would be to abstract that interface above behind some Go code, converting between a Go struct and the C struct as needed, just as is done in much of the rest of the Go runtime. &amp;nbsp;The logical place to do this would be in the standard Go system libraries. &amp;nbsp;I&#39;d argue rather strongly that core services like termio handling ought to be made available to Go developers in the standard system libraries that are part of Go, or perhaps more appropriately, with the &lt;a href=&quot;http://golang.org/x/sys/unix&quot;&gt;golang.org/x/sys/unix&lt;/a&gt; repository.&lt;br /&gt;
  1265. &lt;br /&gt;
  1266. In any event, if you&#39;re a Go programmer, please consider NOT directly calling syscall interfaces, but instead using higher level interfaces, and when those aren&#39;t already provided in Go, don&#39;t be afraid to use cgo to access standard functions in the C library. &amp;nbsp;Its far far better for everyone that you do this, than that you code to low level system calls.&lt;br /&gt;
  1267. &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/4853466830148344524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=4853466830148344524' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4853466830148344524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/4853466830148344524'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2015/09/on-go-portability-and-system-interfaces.html' title='On Go, Portability, and System Interfaces'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7528831701633643336.post-1719934006778171557</id><published>2015-09-20T09:12:00.000-07:00</published><updated>2015-09-20T09:12:30.638-07:00</updated><title type='text'>Announcing govisor 1.0</title><content type='html'>I&#39;m happy to announce that I feel I&#39;ve wrapped up &lt;a href=&quot;https://github.com/gdamore/govisor&quot;&gt;Govisor&lt;/a&gt; to a point where its ready for public consumption.&lt;br /&gt;
  1268. &lt;br /&gt;
  1269. Govisor is a service similar to &lt;a href=&quot;http://supervisord.org/&quot;&gt;supervisord&lt;/a&gt;, in that it can be used to manage a bunch of processes. &amp;nbsp;However, it is much richer in that it understands process dependencies, conflicts, and also offers capabilities for self-healing, and consolidated log management.&lt;br /&gt;
  1270. &lt;br /&gt;
  1271. It runs as an ordinary user process, and while it has some things in common with programs like init, upstart, and Solaris SMF, it is not a replacement for any of those things. &amp;nbsp;Instead think of this is a portable way to manage a group of processes without requiring root. &amp;nbsp;In my case I wanted something that could manage a tree of microservices that was deployable by normal users. &amp;nbsp;Govisor is my answer to that problem.&lt;br /&gt;
  1272. &lt;br /&gt;
  1273. Govisor is also written entirely in Go, and is embeddable in other projects. &amp;nbsp;The REST server interface uses a stock http.ServeHTTP interface, so it can be used with various middleware or frameworks like the Gorilla toolkit.&lt;br /&gt;
  1274. &lt;br /&gt;
  1275. Services can be implemented as processes, or in native Go.&lt;br /&gt;
  1276. &lt;br /&gt;
  1277. Govisor also comes with a nice terminal oriented user interface (I&#39;d welcome a JavaScript based UI, but I don&#39;t write JS myself). &amp;nbsp;Obligatory screen shots below.&lt;br /&gt;
  1278. &lt;br /&gt;
  1279. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1280. &lt;a href=&quot;http://2.bp.blogspot.com/--OsvnfzSNow/Vf7aqMw3zXI/AAAAAAAAARo/uOMtOvw4Sbg/s1600/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.41%2BAM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;http://2.bp.blogspot.com/--OsvnfzSNow/Vf7aqMw3zXI/AAAAAAAAARo/uOMtOvw4Sbg/s320/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.41%2BAM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1281. &lt;br /&gt;
  1282. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1283. &lt;a href=&quot;http://4.bp.blogspot.com/-CMEYrpreVpM/Vf7aqKZg4XI/AAAAAAAAARs/dxOBJaHO3us/s1600/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.54%2BAM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;http://4.bp.blogspot.com/-CMEYrpreVpM/Vf7aqKZg4XI/AAAAAAAAARs/dxOBJaHO3us/s320/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.54%2BAM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1284. &lt;br /&gt;
  1285. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1286. &lt;a href=&quot;http://3.bp.blogspot.com/-dksNAi_KdmY/Vf7aqPY3DNI/AAAAAAAAARw/kJmKwFt1wDU/s1600/Screen%2BShot%2B2015-09-20%2Bat%2B9.09.11%2BAM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;http://3.bp.blogspot.com/-dksNAi_KdmY/Vf7aqPY3DNI/AAAAAAAAARw/kJmKwFt1wDU/s320/Screen%2BShot%2B2015-09-20%2Bat%2B9.09.11%2BAM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1287. &lt;br /&gt;
  1288. Which actually brings up the topic of &quot;&lt;a href=&quot;https://github.com/gdamore/topsl&quot;&gt;tops&#39;l&lt;/a&gt;&quot; &amp;nbsp;(which is a contraction of top-sail, often used in sailing). &amp;nbsp;Govisor depends the package tops -- &quot;terminal oriented panels support library&quot;), which provides a mid-level API for interacting with terminals. &amp;nbsp; I created topsl specifically to help me with creating the govisor client application. &amp;nbsp;I do consider topsl ready for use by Govisor, but I advise caution if you want to use it your own programs -- its really young and there are probably breaking changes looming in its future.&lt;br /&gt;
  1289. &lt;br /&gt;
  1290. The documentation is a bit thin on the ground, but if you want to help or have questions, just let me know! &amp;nbsp;In the meantime, enjoy!</content><link rel='replies' type='application/atom+xml' href='http://garrett.damore.org/feeds/1719934006778171557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7528831701633643336&amp;postID=1719934006778171557' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/1719934006778171557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7528831701633643336/posts/default/1719934006778171557'/><link rel='alternate' type='text/html' href='http://garrett.damore.org/2015/09/announcing-govisor-10.html' title='Announcing govisor 1.0'/><author><name>Garrett D&#39;Amore</name><uri>http://www.blogger.com/profile/12381273059232810608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/--OsvnfzSNow/Vf7aqMw3zXI/AAAAAAAAARo/uOMtOvw4Sbg/s72-c/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.41%2BAM.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid Atom 1.0" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//gdamore.blogspot.com/atom.xml

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda