Skip to content

Commit

Permalink
Add 2024/start-syncthing-background-windows.md
Browse files Browse the repository at this point in the history
  • Loading branch information
smack0007 committed Apr 28, 2024
1 parent 4c98dbd commit f0f12d0
Show file tree
Hide file tree
Showing 27 changed files with 313 additions and 281 deletions.
7 changes: 7 additions & 0 deletions blog/2024/start-syncthing-background-windows.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0"><meta name="description" content=""><meta name="author" content="Zachary Snow"><title>Start Syncthing in the Background on Windows</title><base href="https://smack0007.github.io"></base><link rel="stylesheet" type="text/css" href="css/style.css"><link rel="alternate" type="application/rss+xml" title="The Blog of Zachary Snow" href="feed.rss"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"></head><body><div class="wrap"><nav class="navbar navbar-expand-lg navbar-dark bg-dark"><h1><a class="navbar-brand" href="/">The Blog of Zachary Snow</a></h1><button id="navbar-toggler" class="navbar-toggler" type="button" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarSupportedContent"><ul class="navbar-nav mr-auto"><li class="nav-item"><a class="nav-link active" href="index.html">Home<span class="visually-hidden">(current)</span></a></li><li class="nav-item"><a class="nav-link" href="about.html">About</a></li><li class="nav-item"><a class="nav-link" href="tags/index.html">Tags</a></li></ul><div class="social my-2 my-lg-0"><a href="https://twitter.com/smack0007" class="twitter" title="Twitter"><span class="icon-twitter"></span></a><a href="https://github.com/smack0007" class="github" title="Github"><span class="icon-github"></span></a><a href="https://paypal.me/smack0007" class="coffee" title="Buy me a Coffee"><span class="icon-mug"></span></a><a href="feed.rss" class="rss" title="RSS"><span class="icon-rss"></span></a></div></div></nav><main class="container"><div class="posts"><div class="post"><div class="post-header"><h2><a href="blog/2024/start-syncthing-background-windows.html">Start Syncthing in the Background on Windows</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>April 28, 2024</span><span class="tags"><a href="tags/syncthing/index.html"><span class="icon icon-price-tags"></span><span class="tagName">syncthing</span></a><a href="tags/windows/index.html"><span class="icon icon-price-tags"></span><span class="tagName">windows</span></a></span></div></div><div class="content"><p>Just a quick tip for myself (and anyone who is reading this) for the future. To start <a href="https://syncthing.net/">syncthing</a> in
the background on Windows open up the startup apps folder via the run command (Win+R) with <code>shell:startup</code> amd then create
the following shortcut:</p>
<pre><code class="hljs shell">powershell.exe -c &quot;Start-Process -FilePath &#x27;syncthing&#x27; -ArgumentList &#x27;--no-browser&#x27; -WindowStyle Hidden&quot;
</code></pre>
<p>This starts syncthing in the background after a short lived popup opens. <code>--no-console</code> doesn&#39;t seem to work for whatever reason.</p>
</div></div></div><div class="clear"></div></main><footer class="p-13 p-md-5 mt-5 text-center text-muted bg-light"><div class="container"><ul class="links"><li><a href="https://twitter.com/smack0007" class="twitter" title="Twitter">Twitter</a></li><li><a href="https://github.com/smack0007" class="github" title="Github">GitHub</a></li><li><a href="https://paypal.me/smack0007" class="coffee" title="Buy me a Coffee">Buy me a Coffee</a></li><li><a href="feed.rss" class="rss" title="RSS">RSS</a></li></ul><p class="mb-0">The Blog of Zachary Snow</p></div></footer></div><script type="text/javascript">document.getElementById('navbar-toggler').onclick = function(){ document.getElementById('navbarSupportedContent').classList.toggle('collapse'); };</script></body></html>
9 changes: 3 additions & 6 deletions blog/page10.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0"><meta name="description" content=""><meta name="author" content="Zachary Snow"><title>The Blog of Zachary Snow</title><base href="https://smack0007.github.io"></base><link rel="stylesheet" type="text/css" href="css/style.css"><link rel="alternate" type="application/rss+xml" title="The Blog of Zachary Snow" href="feed.rss"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"></head><body><div class="wrap"><nav class="navbar navbar-expand-lg navbar-dark bg-dark"><h1><a class="navbar-brand" href="/">The Blog of Zachary Snow</a></h1><button id="navbar-toggler" class="navbar-toggler" type="button" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarSupportedContent"><ul class="navbar-nav mr-auto"><li class="nav-item"><a class="nav-link active" href="index.html">Home<span class="visually-hidden">(current)</span></a></li><li class="nav-item"><a class="nav-link" href="about.html">About</a></li><li class="nav-item"><a class="nav-link" href="tags/index.html">Tags</a></li></ul><div class="social my-2 my-lg-0"><a href="https://twitter.com/smack0007" class="twitter" title="Twitter"><span class="icon-twitter"></span></a><a href="https://github.com/smack0007" class="github" title="Github"><span class="icon-github"></span></a><a href="https://paypal.me/smack0007" class="coffee" title="Buy me a Coffee"><span class="icon-mug"></span></a><a href="feed.rss" class="rss" title="RSS"><span class="icon-rss"></span></a></div></div></nav><main class="container"><div class="posts"><div class="post"><div class="post-header"><h2><a href="blog/2014/my-experience-with-opengl-vs-direct3d.html">My Experience with OpenGL vs Direct3D</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>November 18, 2014</span><span class="tags"><a href="tags/graphics/index.html"><span class="icon icon-price-tags"></span><span class="tagName">graphics</span></a><a href="tags/opengl/index.html"><span class="icon icon-price-tags"></span><span class="tagName">opengl</span></a><a href="tags/direct3d/index.html"><span class="icon icon-price-tags"></span><span class="tagName">direct3D</span></a></span></div></div><div class="content"><p>I&#39;ve struggled a lot with myself over whether I should use OpenGL or Direct3D. There is no blanket answer to this question that anyone can tell you.
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0"><meta name="description" content=""><meta name="author" content="Zachary Snow"><title>The Blog of Zachary Snow</title><base href="https://smack0007.github.io"></base><link rel="stylesheet" type="text/css" href="css/style.css"><link rel="alternate" type="application/rss+xml" title="The Blog of Zachary Snow" href="feed.rss"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"></head><body><div class="wrap"><nav class="navbar navbar-expand-lg navbar-dark bg-dark"><h1><a class="navbar-brand" href="/">The Blog of Zachary Snow</a></h1><button id="navbar-toggler" class="navbar-toggler" type="button" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarSupportedContent"><ul class="navbar-nav mr-auto"><li class="nav-item"><a class="nav-link active" href="index.html">Home<span class="visually-hidden">(current)</span></a></li><li class="nav-item"><a class="nav-link" href="about.html">About</a></li><li class="nav-item"><a class="nav-link" href="tags/index.html">Tags</a></li></ul><div class="social my-2 my-lg-0"><a href="https://twitter.com/smack0007" class="twitter" title="Twitter"><span class="icon-twitter"></span></a><a href="https://github.com/smack0007" class="github" title="Github"><span class="icon-github"></span></a><a href="https://paypal.me/smack0007" class="coffee" title="Buy me a Coffee"><span class="icon-mug"></span></a><a href="feed.rss" class="rss" title="RSS"><span class="icon-rss"></span></a></div></div></nav><main class="container"><div class="posts"><div class="post"><div class="post-header"><h2><a href="blog/2014/linq-calls-iequalitycomparer-gethashcode-before-equals.html">LINQ calls IEqualityComparer&lt;T&gt;.GetHashCode() before Equals()</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>November 24, 2014</span><span class="tags"><a href="tags/net/index.html"><span class="icon icon-price-tags"></span><span class="tagName">.net</span></a><a href="tags/linq/index.html"><span class="icon icon-price-tags"></span><span class="tagName">linq</span></a></span></div></div><div class="content"><p>This is a problem that has bitten me more than a few times so I thought it was about time to write a blog post about it. It&#39;s one of those problems
that makes you scratch your head for a bit and then the light bulb goes on and you remember you&#39;ve solved this one before. It occurs whenever you
use a LINQ extension method which takes an instance of IEqualityComaparer<T>.</p><a class="readMore" href="blog/2014/linq-calls-iequalitycomparer-gethashcode-before-equals.html">Read More</a></div></div><div class="post"><div class="post-header"><h2><a href="blog/2014/my-experience-with-opengl-vs-direct3d.html">My Experience with OpenGL vs Direct3D</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>November 18, 2014</span><span class="tags"><a href="tags/graphics/index.html"><span class="icon icon-price-tags"></span><span class="tagName">graphics</span></a><a href="tags/opengl/index.html"><span class="icon icon-price-tags"></span><span class="tagName">opengl</span></a><a href="tags/direct3d/index.html"><span class="icon icon-price-tags"></span><span class="tagName">direct3D</span></a></span></div></div><div class="content"><p>I&#39;ve struggled a lot with myself over whether I should use OpenGL or Direct3D. There is no blanket answer to this question that anyone can tell you.
Both APIs have a very different feel and which one you prefer can only be decided on your own.</p><a class="readMore" href="blog/2014/my-experience-with-opengl-vs-direct3d.html">Read More</a></div></div><div class="post"><div class="post-header"><h2><a href="blog/2014/code-from-when-i-was-young-and-stupid.html">Code from when I was young and stupid and needed the money</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>June 18, 2014</span><span class="tags"><a href="tags/old-code/index.html"><span class="icon icon-price-tags"></span><span class="tagName">old-code</span></a><a href="tags/cpp/index.html"><span class="icon icon-price-tags"></span><span class="tagName">c++</span></a></span></div></div><div class="content"><p>We have had 2 interns at work for the past few weeks and one of the tasks we gave them was to implement <a href="http://en.wikipedia.org/wiki/Quick_sort">Quicksort</a>.
This got me to thinking about my youth and some of the code I wrote back then. I&#39;ve decided to post it.</p><a class="readMore" href="blog/2014/code-from-when-i-was-young-and-stupid.html">Read More</a></div></div><div class="post"><div class="post-header"><h2><a href="blog/2014/adding-assembly-references-in-roslyn.html">Adding assembly references in Roslyn</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>April 15, 2014</span><span class="tags"><a href="tags/net/index.html"><span class="icon icon-price-tags"></span><span class="tagName">.net</span></a><a href="tags/csharp/index.html"><span class="icon icon-price-tags"></span><span class="tagName">c#</span></a><a href="tags/roslyn/index.html"><span class="icon icon-price-tags"></span><span class="tagName">roslyn</span></a></span></div></div><div class="content"><p>In the Roslyn preview that was released at Build 2014 the way references to global assmeblies are added was changed. Before the preview I could use code like this:</p>
<pre><code class="hljs csharp"><span class="hljs-keyword">var</span> compilation = Compilation.Create(assemblyName, <span class="hljs-keyword">new</span> CompilationOptions(OutputKind.DynamicallyLinkedLibrary))
Expand All @@ -25,9 +27,4 @@
<p>I ended up writing my own tool I call <a href="http://github.com/smack0007/Gatsby">Gatsby</a> to do it. I also set up the whole deploy process myself involving pushing to <a href="http://github.com/smack0007/zacharysnow.net">Github</a>
which then informs my website to pull from the Github repository. Hopefully that will be a blog post in the not too distance future.</p>
<p>Sorry for any inconvenience.</p>
</div></div><div class="post"><div class="post-header"><h2><a href="blog/2013/using-component-glue-to-build-your-object-graphs-automatically.html">Using Component Glue to build your object graphs automatically</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>July 26, 2013</span><span class="tags"><a href="tags/open-source/index.html"><span class="icon icon-price-tags"></span><span class="tagName">open-Source</span></a><a href="tags/dependency-injection/index.html"><span class="icon icon-price-tags"></span><span class="tagName">dependency-injection</span></a><a href="tags/ioc/index.html"><span class="icon icon-price-tags"></span><span class="tagName">ioc</span></a><a href="tags/csharp/index.html"><span class="icon icon-price-tags"></span><span class="tagName">c#</span></a><a href="tags/net/index.html"><span class="icon icon-price-tags"></span><span class="tagName">.net</span></a></span></div></div><div class="content"><p>Component Glue is an IoC container and you use it of course to wire up your object graphs for you. Component Glue can also build your object graphs for you automatically if there are no interfaces involved. Take this example:</p>
<script src="https://gist.github.com/smack0007/6091538.js"></script>

<p>In After.cs, you can see that Component Glue is able to build the entire object graph for us. This will include all future dependencies as well so long as interfaces don&#39;t come into play. Should an interface be needed, you can just bind that single component.</p>
<p>This is a very powerful thing. If one component needs to take on a dependency, just ask for it in the constructor and Component Glue will handle it for you.</p>
</div></div></div><div class="clear"></div><nav aria-label="Page navigation"><ul class="pagination justify-content-center"><li class="page-item"><a href="blog/page11.html" class="page-link older">Older</a></li><li class="page-item"><a href="blog/page9.html" class="page-link newer">Newer</a></li></ul></nav></main><footer class="p-13 p-md-5 mt-5 text-center text-muted bg-light"><div class="container"><ul class="links"><li><a href="https://twitter.com/smack0007" class="twitter" title="Twitter">Twitter</a></li><li><a href="https://github.com/smack0007" class="github" title="Github">GitHub</a></li><li><a href="https://paypal.me/smack0007" class="coffee" title="Buy me a Coffee">Buy me a Coffee</a></li><li><a href="feed.rss" class="rss" title="RSS">RSS</a></li></ul><p class="mb-0">The Blog of Zachary Snow</p></div></footer></div><script type="text/javascript">document.getElementById('navbar-toggler').onclick = function(){ document.getElementById('navbarSupportedContent').classList.toggle('collapse'); };</script></body></html>
Loading

0 comments on commit f0f12d0

Please sign in to comment.