notes on electronic projects and other things

Quick note about objects in PowerShell

I decided to move this note out from another post.

It’s a kind of summary on a question “Why [PSCustomObject]@{} syntax is the preferred way to create objects in PS”. After looking into StackOverflow (one, two) and some other resources (three), I decided to test and write it down for myself.

Nothing really new here. I only hope it will work as a good summary.

Update: Select-Object examples. Additional links.

Ways to measure execution time in PowerShell

Ok, back to business. No electronics at least for a few posts though.

It will be clear later why I became interested in this topic. But it is, on its’ own, worth for a post, so here it is.


The canonical way to measure how long something runs in PowerShell is to use Measure-Command cmdlet.

> Measure-Command { "do stuff" }

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 0
Ticks             : 7436
TotalDays         : 8,60648148148148E-09
TotalHours        : 2,06555555555556E-07
TotalMinutes      : 1,23933333333333E-05
TotalSeconds      : 0,0007436
TotalMilliseconds : 0,7436

One notable downside of this is that you see no output from a command. Time span is returned instead.

What else can we do?

Circling the square

I have some more Paint.NET shapes added to collection. Superellipses to be precise. Check the project page.

Superellipse or Lamé curve is the shape produced by generalized equation of ellipse, where we change the power factor. It approaches to rectangular shape on large values.

Also check the video below for a little bit of history of this shape in design.

GNURadio on Windows

Recently updated GNURadio for Windows is said to becoming usable. GRC, all the drivers and whatever else bundled with a single installer.

Unfortunately, I’m too busy now to play with it. More electronics-related posts to be published somewhere in June. Stay tuned.

3D Printer building and first prints

Short log of building “Makeblock Constructor I” 3D printer.

Few issues were solved in order to bring it into fully working state.

Released some shapes for Paint.NET and converter

Some glitch-art, for starters. Guess what it was supposed to be:

guess what

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’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.