<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mikhail Rumpel</title>
    <description>The latest articles on DEV Community by Mikhail Rumpel (@mikhailrumpel).</description>
    <link>https://dev.to/mikhailrumpel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F599401%2F838fd95c-87c2-471b-82fc-1743573b7321.jpeg</url>
      <title>DEV Community: Mikhail Rumpel</title>
      <link>https://dev.to/mikhailrumpel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mikhailrumpel"/>
    <language>en</language>
    <item>
      <title>MarkText - free minimalistic desktop markdown editor</title>
      <dc:creator>Mikhail Rumpel</dc:creator>
      <pubDate>Wed, 14 Sep 2022 09:29:14 +0000</pubDate>
      <link>https://dev.to/mikhailrumpel/marktext-free-minimalistic-desktop-markdown-editor-3cfc</link>
      <guid>https://dev.to/mikhailrumpel/marktext-free-minimalistic-desktop-markdown-editor-3cfc</guid>
      <description>&lt;p&gt;After Typora being pay-ware, i stopped to use offline editor (only Obsidian still in use). My requirements was very short:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Visual styles of markdown text (WYSIWYG)&lt;/li&gt;
&lt;li&gt;Shortcuts for basic word-like operations&lt;/li&gt;
&lt;li&gt;freeware&lt;/li&gt;
&lt;li&gt;not too bloat&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And I didn find any software except Typora! &lt;br&gt;
Now I restart my research and found &lt;a href="https://github.com/marktext/marktext"&gt;MarkText&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is just cool! &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rmbC8dF9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x3p8z6237u2a5lr0dd6r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rmbC8dF9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x3p8z6237u2a5lr0dd6r.png" alt="Image description" width="641" height="485"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Easy. Pretty. No ugly preview, just easy editor box.&lt;/p&gt;

&lt;p&gt;Thanks, Luo Ran and contributors!&lt;/p&gt;

</description>
      <category>markdown</category>
      <category>editor</category>
      <category>casual</category>
    </item>
    <item>
      <title>First usage golang benchmarks in Ubuntu WSL</title>
      <dc:creator>Mikhail Rumpel</dc:creator>
      <pubDate>Wed, 27 Jul 2022 13:22:38 +0000</pubDate>
      <link>https://dev.to/mikhailrumpel/first-usage-golang-benchmarks-in-ubuntu-wsl-1e32</link>
      <guid>https://dev.to/mikhailrumpel/first-usage-golang-benchmarks-in-ubuntu-wsl-1e32</guid>
      <description>&lt;p&gt;Hi there! &lt;/p&gt;

&lt;p&gt;Some days ago I first time faces with benchmarks in go and did hands-on for my class. If you use Windows + WSL Ubuntu for Golang, my experience would be useful for you.&lt;/p&gt;

&lt;p&gt;I faced couple of problems with components, lets talk about&lt;/p&gt;

&lt;h2&gt;
  
  
  No Graphvis for pprof
&lt;/h2&gt;

&lt;p&gt;I made my first profile&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ go test -bench=BenchmarkGetDomainStat -cpuprofile=cpu -memprofile=mem
$ go tool pprof -http="localhost:8080" cpu

Serving web UI on http://localhost:8080
Failed to execute dot. Is Graphviz installed?
exec: "dot": executable file not found in $PATH

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no Graphviz. Google it up, we have to install graphviz:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo apt install graphviz gv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you get some fails like I:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/ghostscript/ghostscript-x_9.26~dfsg+0-0ubuntu0.18.04.15_amd64.deb  404  Not Found [IP: 91.189.91.38 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;just update and repeat:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo apt-get update
$ sudo apt install graphviz gv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Whoa! You have your graphviz and pprof ready to show you cool graphs.&lt;/p&gt;

&lt;h2&gt;
  
  
  No benchstat
&lt;/h2&gt;

&lt;p&gt;I installed Go 1.17.1 and forget about anything. But in case of benchmarks i want to compare two results:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ benchstat benchmarks/00 benchmarks/01
benchstat: command not found
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;WTF? there is no benchstat installed by default, lets fix it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ go get golang.org/x/perf/cmd/benchstat
go: downloading golang.org/x/perf v0.0.0-20220722155240-3d85ee92886d
go get: added golang.org/x/perf v0.0.0-20220722155240-3d85ee92886d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;also go get informs me about deprecating and offers to use 'go install'. Good idea for trying next time&lt;/p&gt;

&lt;p&gt;Now lets check result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ benchstat benchmarks/00 benchmarks/01
name             old time/op  new time/op  delta
GetDomainStat-8   1.15s ±75%   0.36s ±11%  -69.05%  (p=0.000 n=10+10)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Cool, benchstat is avaible and my optimizations work well&lt;/p&gt;

&lt;p&gt;I hope my googling is helpful and will save few minutes for you, my dear Windows WSL gophers!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
