<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>other on MXI</title><link>https://mxii.eu.org/categories/other/</link><description>Recent content in other on MXI</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 01 Apr 2020 21:45:11 +0300</lastBuildDate><atom:link href="https://mxii.eu.org/categories/other/index.xml" rel="self" type="application/rss+xml"/><item><title>A case of adapting a CLI test command from *NIX to Windows</title><link>https://mxii.eu.org/2020/04/01/a-case-of-adapting-a-cli-test-command-from-nix-to-windows/</link><pubDate>Wed, 01 Apr 2020 21:45:11 +0300</pubDate><guid>https://mxii.eu.org/2020/04/01/a-case-of-adapting-a-cli-test-command-from-nix-to-windows/</guid><description>&lt;p>There is a package I wanted to publish to npmjs.com. That package provides a CLI tool among other features, and contains tests for that tool. Unfortunately, tests were made with only *NIX in mind, so it wasn&amp;rsquo;t possible to pass all tests and publish the package from Windows.&lt;/p>
&lt;p>The main culprit is inside the following function:&lt;/p>
&lt;pre>&lt;code class="language-javascript">function runWithInputAndExpect (input, args, expectedOutput, done) {
var command = 'echo &amp;quot;' + input.replace(/&amp;quot;/g, '\\&amp;quot;') + '&amp;quot; | node bin/cli.js ' + args;
exec(command, function callback (error, stdout, stderr) {
expect(error).to.be.a('null');
expect(stderr).to.equal('');
expect(stdout).to.equal(expectedOutput + '\n');
done(error);
});
}
&lt;/code>&lt;/pre>
&lt;p>What makes the difference between *NIX and Windows (as far as we concerned here) is how &lt;a href="https://ss64.com/nt/echo.html">&lt;code>echo&lt;/code> command&lt;/a> works. First of all, it keeps the quotes! But after we try to remove them - we will soon discover that the rabbit hole might be quite deep.&lt;/p>
&lt;p>And down the rabbit hole we go:&lt;/p></description></item><item><title>SDRSharp plugin for touch devices, some thoughts on license</title><link>https://mxii.eu.org/2019/11/06/sdrsharp-plugin-for-touch-devices-some-thoughts-on-license/</link><pubDate>Wed, 06 Nov 2019 17:00:00 +0300</pubDate><guid>https://mxii.eu.org/2019/11/06/sdrsharp-plugin-for-touch-devices-some-thoughts-on-license/</guid><description>&lt;p>This project was sitting on my hard drive for several years until now. Last time I made an attempt to clean it up and prepare for publishing to GitHub in 2017.&lt;/p>
&lt;p>Making sure it compiles against all required targets and contains all the required notes - is easy for such a small project. But there was something I just didn&amp;rsquo;t know how to deal with&amp;hellip; More on this below.&lt;/p>
&lt;p>&lt;img src="https://mxii.eu.org/post/2019-11-04-SdrSharp-plugin-for-touch-devices-and-some-thoughts-on-license/screenshot.png" alt="Frequency Navigation plugin screenshot" />&lt;/p>
&lt;p>Back in time, I was playing with RTL-SDR dongles, and the device I was connecting them to was a Microsoft Surface 2 Pro - &amp;ldquo;laptop-but-more-like-a-tablet&amp;rdquo;. I love Microsoft Surface devices, especially that old one, for it&amp;rsquo;s compact size. It is really cool to be able to move around freely, listening what&amp;rsquo;s coming from a dongle, no awkward balancing acts with a classic laptop&amp;hellip;&lt;/p>
&lt;p>Portable use has some UX specifics. Namely, having to use keyboard and mouse is really limiting, and touch screen operation on a tablet device is much more preferred.&lt;/p>
&lt;p>While SDR# had quite clean UI, it was clearly made without such considerations. The core functionality - frequency navigation - was nearly impossible to perform on the go. It is really hard to hit top or bottom of the right digit on the frequency display.&lt;/p>
&lt;p>At the same time, I had some examples of test and measurement equipment in access. These are historically made with very good tactile operation in mind. So I figured I can bring some of that experience to an SDR# plugin.&lt;/p></description></item><item><title>Next folder, previous folder navigation in Explorer with QTTabBar</title><link>https://mxii.eu.org/2018/12/22/next-folder-previous-folder-navigation-in-explorer-with-qttabbar/</link><pubDate>Sat, 22 Dec 2018 12:15:11 +0300</pubDate><guid>https://mxii.eu.org/2018/12/22/next-folder-previous-folder-navigation-in-explorer-with-qttabbar/</guid><description>&lt;p>&lt;a href="http://qttabbar.wikidot.com/">QTTabBar&lt;/a> surprised us with the update recently, after almost three years of silence. &lt;em>(The &lt;a href="http://qttabbar.wikidot.com/change-log">changelog&lt;/a> also points to an importance of having a full copy of your code somewhere outside of your PC. Version control systems to the rescue.)&lt;/em>&lt;/p>
&lt;p>To celebrate this fact, I decided to publish a little custom feature I&amp;rsquo;m using with QTTabBar &amp;mdash; a script and UI buttons to navigate between folders within one common parent folder.&lt;/p>
&lt;p>There are cases when you need to visit a set of folders, and going up and down in the folder structure is getting tedious. That&amp;rsquo;s where magic &amp;ldquo;Next folder&amp;rdquo;, &amp;ldquo;Previous folder&amp;rdquo; buttons come in handy.&lt;/p>
&lt;div class="sidenote">
&lt;p>Navigation pane, a.k.a. tree view can, in principle, be used for that, but it isn&amp;rsquo;t always convenient to use. I can only use it for top level navigation, unless Microsoft will come up with some way to reduce clutter in the tree - not showing subfolders that aren&amp;rsquo;t ascendants or descendants of current folder for example.&lt;/p>
&lt;/div>
&lt;p>My QTTabBar panel looks like this:&lt;/p>
&lt;p>&lt;img src="https://mxii.eu.org/post/2018-12-22-next-folder-previous-folder-with-qttabbar/qttabbar-panel.png" alt="QTTabBar panel screenshot" />&lt;/p>
&lt;p>Two triangles looking in opposite directions are the buttons this post is dedicated to.&lt;/p>
&lt;p>Below is the code and description for the buttons.&lt;/p></description></item><item><title>PowerShell, square brackets and apostrophes</title><link>https://mxii.eu.org/2018/01/08/powershell-square-brackets-and-apostrophes/</link><pubDate>Mon, 08 Jan 2018 02:15:11 +0300</pubDate><guid>https://mxii.eu.org/2018/01/08/powershell-square-brackets-and-apostrophes/</guid><description>&lt;p>This is a follow-up post to the one about &lt;a href="https://mxii.eu.org/2017/03/19/powershell-explorer-square-brackets-and-unicode-paths/">square brackets and Unicode&lt;/a> in PowerShell.&lt;/p>
&lt;p>I discovered recently that there is another PITA character that interferes with my workaround &amp;mdash; it&amp;rsquo;s a single quote, or apostrophe.&lt;/p>
&lt;p>It&amp;rsquo;s fine to start PowerShell inside a folder with an apostrophe in its name, but we have to escape it when using inside Powershell commands or passing into PowerShell from anywhere else.&lt;/p>
&lt;p>Below are my experiments to find the best way to open PowerShell in any folder&amp;hellip; if ever possible.&lt;/p></description></item><item><title>PowerShell, Explorer, square brackets and Unicode paths</title><link>https://mxii.eu.org/2017/03/19/powershell-explorer-square-brackets-and-unicode-paths/</link><pubDate>Sun, 19 Mar 2017 00:55:11 +0300</pubDate><guid>https://mxii.eu.org/2017/03/19/powershell-explorer-square-brackets-and-unicode-paths/</guid><description>&lt;p>Let&amp;rsquo;s make a folder &lt;code>C:\[test]&lt;/code> and try to open PowerShell there from Explorer (using Ribbon or context menu).&lt;/p>
&lt;p>&lt;img src="https://mxii.eu.org/post/2017-03-19-powershell-square-brackets/test-doesnt-exist.png" alt="set-location: Cannot find path 'C:[test]' because it does not exist. At line:1 char:1" />&lt;/p>
&lt;p>Oops!&lt;/p>
&lt;p>Let&amp;rsquo;s see what we can do with this.&lt;/p></description></item><item><title>Circling the square</title><link>https://mxii.eu.org/2016/06/02/circling-the-square/</link><pubDate>Thu, 02 Jun 2016 20:48:23 +0300</pubDate><guid>https://mxii.eu.org/2016/06/02/circling-the-square/</guid><description>&lt;p>I have some more Paint.NET shapes added to collection. Superellipses to be precise. Check the &lt;a href="https://mxii.eu.org/project/paintdotnetstuff/">project page&lt;/a>.&lt;/p>
&lt;p>&lt;a href="https://en.wikipedia.org/wiki/Superellipse">Superellipse&lt;/a> or &lt;a href="https://en.wikipedia.org/wiki/Gabriel_Lamé">Lamé&lt;/a> curve is the shape produced by generalized equation of ellipse, where we change the power factor. It approaches to rectangular shape on large values.&lt;/p>
&lt;p>Also check the video below for a little bit of history of this shape in design.&lt;/p></description></item><item><title>Released some shapes for Paint.NET and converter</title><link>https://mxii.eu.org/2016/04/02/released-some-shapes-for-paint.net-and-converter/</link><pubDate>Sat, 02 Apr 2016 14:34:14 +0300</pubDate><guid>https://mxii.eu.org/2016/04/02/released-some-shapes-for-paint.net-and-converter/</guid><description>Some glitch-art, for starters. Guess what it was supposed to be:
Recently I was doing some simple photo-editing and found that it will be much easier if there were some crop masks. 3x3 grid and things like that.
After looking into Paint.NET forum I discovered that Paint.NET has support for custom shapes. This feature meet my needs almost perfectly.
I think I&amp;rsquo;ve overdid it a bit, and after some research and coding I end up with a bunch of stuff which you can see on a project page.</description></item><item><title>Paint.NET stuff</title><link>https://mxii.eu.org/project/paintdotnetstuff/</link><pubDate>Sat, 02 Apr 2016 14:15:46 +0300</pubDate><guid>https://mxii.eu.org/project/paintdotnetstuff/</guid><description>&lt;p>Collection of custom shapes for raster graphics editor &lt;a href="http://getpaint.net/">Paint.NET&lt;/a> and some tools to assist in custom shape creation process.&lt;/p></description></item></channel></rss>