The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for October, 2017

It’s about world Cassette Store Day…

Posted by jpluimers on 2017/10/08

The Compact Cassette has been on a comeback path for a few years now and around this time of the year, I expect the [WayBack] Cassette Store Day to happen (check out https://www.facebook.com/CassetteStoreDay/ for the exact date).

So it’s time to re-share the The Daily Drawing by Lorie Ransom on the right.

[WayBackThe Daily Drawing by Lorie Ransom for Mar 13, 2017 | Read Comic Strips at GoComics.com

–jeroen

Background info:

 

Posted in Fun, Geeky, History | Leave a Comment »

15 Useful ‘sed’ Command Tips and Tricks for Daily Linux System Administration Tasks

Posted by jpluimers on 2017/10/06

In this article we will review sed, the well-known stream editor, and share 15 tips to use it in order to accomplish the goals mentioned earlier, and more.

I like it because 15 Useful ‘sed’ Command Tips and Tricks for Daily Linux System Administration Tasks has a lot of screenshots showing what each expression actually does.

–jeroen

Posted in *nix, *nix-tools, Power User, sed | Leave a Comment »

AI in Voice Assistants: I’m not impressed

Posted by jpluimers on 2017/10/06

I started thinking about writing this post way before [WayBack] When +Google Assistant gets a mind of their own… – Jeroen Wiert Pluimers – Google+.

Though I’ll focus on Google Assistant, the competition (Alexa, Cortana, Siri) have about the same level of incompetence.

Though living in The Netherlands, I use the English version of Google Assistant as it won’t be available in the foreseeable future: [WayBack] Google Assistant in het Nederlands voorlopig toekomstmuziek.

This means that I cannot use Dutch words for destinations, but find English ones.

  • This fails: navigate to Schiphol trainstation
  • This works: navigate to Amsterdam Airport Arrivals

The odd thing is that after switching phones, the latter wants to perform this navigation by public traffic, whereas my former phone it would default to navigation for driving by car.

Basically the only interactions that work sort of OK are calling persons and navigating to places.

Appointments

  • what's my next appointment succeeds
  • what's my current appointment (in case you are late, for instance because of traffic conditions) fails

Calling persons

This allows for aliases to persons like my wife, my brother and my mother. But often it:

  • forgets about an alias asking who that alias is for
  • asks for confirmation of an alias
  • totally misses the alias (so when asking to call my wife mobile, it sometimes presents search results, for instance on “How to spy on my wife’s calls tracking for free”)

After defining these aliases, these actions usually work OK:

  • call my brother mobile
  • call my mother at home

Navigation to places

Contrary to calling, where you can define many aliases, you can only define 2 navigation aliases: home and work. Which means these all fail:

  • navigate to my brother at work
  • navigate to my mother at home

Heck, even the simple variations fail:

  • navigate to my brother
  • navigate to my mother

A cool feature would be navigate to my next appointment, but that fails too. No surprise though, as the simpler navigation commands fail.

The best way I found to navigate is to – just before you leave – search on Google Maps in your browser for the route, then open Navigation on your phone (this presumes they use the same account).

Also, since switching phones, I have to indicate how I want to navigate:

  • navigate home by car
  • navigate to Amsterdam Airport Arrivals by car

Stuff that hardly works

Starting applications is a pain.

Examples that work

  • start pokemon go

These work unreliably:

  • start navigation sometimes opens the map, but at other times asks where to navigate to

These fail at all:

  • start dialer (opens a Google search, but fails to start the stock Android Dialer App)
  • start ex-dialer (my dialer of choice: ExDialer)
  • start player FM (fails to locate Player.FM)

Conclusion so far

It is far from intuitive what kinds of phrases will work, sometimes work or will fail.

I could do a search for how to better phrase my requests, but average users won’t

The Google Voice Assistant still has a long way to go to become useable.

–jeroen

Posted in Google, Google AI, Power User | 2 Comments »

nojhan/liquidprompt: A full-featured & carefully designed adaptive prompt for Bash & Zsh

Posted by jpluimers on 2017/10/05

Wow: nojhan/liquidprompt: A full-featured & carefully designed adaptive prompt for Bash & Zsh

This is really useful!

via:

Sort of tanslated from the first “via” (note that “mit Alles und Scharf” is hard to translate; it’s somewhere between “everything but the kitchen sink, but done right” and “right on the money”):

Bash Prompt Overkill: https://github.com/nojhan/liquidprompt is a Bash “Prompt doing it all right”-extension, which doesn’t care how much any feature costs as we have cores, gigabytes and SSD.

Liquid Prompt automagically recognises context and enables a plethora of features in the prompt when needed based on that context.

It’s like pixie dust for your prompt.

You can configure everything, but you don’t have to: the out of the box experience is already like pixie dust for your prompt.

It works on OS X too and is part of homebrew:

$ brew install liquidprompt
==> Using the sandbox
==> Downloading https://github.com/nojhan/liquidprompt/archive/v_1.11.tar.gz
==> Downloading from https://codeload.github.com/nojhan/liquidprompt/tar.gz/v_1.11
######################################################################## 100.0%
==> Caveats
Add the following lines to your bash or zsh config (e.g. ~/.bash_profile):
  if [ -f /usr/local/share/liquidprompt ]; then
    . /usr/local/share/liquidprompt
  fi
If you'd like to reconfigure options, you may do so in ~/.liquidpromptrc.
A sample file you may copy and modify has been installed to
  /usr/local/share/liquidpromptrc-dist
Don't modify the PROMPT_COMMAND variable elsewhere in your shell config;
that will break things.
==> Summary
🍺  /usr/local/Cellar/liquidprompt/1.11: 7 files, 125.6K, built in 3 seconds
[jeroenp:~/Versioned] 10s $

–jeroen

Read the rest of this entry »

Posted in *nix, *nix-tools, Apple, bash, bash, Development, Mac OS X / OS X / MacOS, Power User, Scripting, Software Development | Leave a Comment »

Visual Studio Code – getting started – some links

Posted by jpluimers on 2017/10/05

It might sound like I’m late in the game, but remember that blog posts are usually scheduled like a year in advance.

So I found out a long time ago (I think it’s Matthijs ter Woord who attended me) about Visual Studio Code.

At the start [WayBack] it was more limited (from memory something like C#, TypeScript, Java Script languages and frameworks Node.js and ASP.NET 5) than my other development environments but now it’s much richer.

It’s based on the Electron framework which I kew from the Atom.io editor and Koush‘s framework Electron Chrome that wraps Chrome Apps in Electron so he ensured Vysor would live after Google will kill Chrome Apps.

Oh it’s free and runs multi-platform which I like a lot (and was one of the reasons to start using Atom.io): Mac OS X, Windows and Linux are supported.

So here are a few links to get started:

I got reminded a while back** that it is now supported by OmniPascal [WayBack] which I like because of my Turbo Pascal -> VAX/VMS -> csh -> Delphi -> AS/400 -> .NET background.

Like Visual Studio Code is updated often, the Omni Pascal blog [WayBack] shows regular updates and I like it a lot better than the Lazarus IDE (I’m not a visual RAD person: I’m a RAD code person) especially the refactorings.

So start playing with it. I will post more about my Visual Studio Code experience in due time.

–jeroen

** via [WayBackFinally: OmniPascal 0.11.0 released – Implement an interface via key stroke …

Posted in .NET, ASP.NET, C#, Delphi, Development, JavaScript/ECMAScript, Node.js, Omni Pascal, Pascal, Scripting, Software Development, TypeScript, Visual Studio and tools, vscode Visual Studio Code | 1 Comment »

reStructuredText Interpreted Text Roles

Posted by jpluimers on 2017/10/04

There is so much great stuff in reStructuredText, take for instance [WayBackreStructuredText Interpreted Text Roles where basically can create your own role (for instance :csharp: or :delphi: roles based on :code: for syntax-highlighted code blocks given the right syntax highlighters).

I got there via this great piece by[WayBackChris who answered [WayBackInline code highlighting in reStructuredText – Stack Overflow:

Having looked into this some more I stumbled upon the document reStructuredText Interpreted Text Roles. From this document:

Interpreted text uses backquotes (`) around the text. An explicit role marker may optionally appear before or after the text, delimited with colons. For example:

This is `interpreted text` using the default role.

This is :title:`interpreted text` using an explicit role.

It seems that there is a code role, so you can simply type

:code:`a = b + c`

to render an inline code block. To get syntax highlighting you can define a custom role. For example

.. role:: bash(code)
   :language: bash

which you can then use like so:

Here is some awesome bash code :bash:`a = b + c`.

Note, the document I link to makes no mention of the version of docutils to which it refers. The code role is not available in docutils 0.8.1 (which is the only version I have to test against).

–jeroen

Posted in .NET, C#, Delphi, Development, Lightweight markup language, reStructuredText, Software Development | Leave a Comment »

Which hashing algorithm is best for uniqueness and speed? – Software Engineering Stack Exchange

Posted by jpluimers on 2017/10/04

Tested algorithms:

Source: [WayBackWhich hashing algorithm is best for uniqueness and speed? – Software Engineering Stack Exchange

via: [WayBackToday’s topic of study: HashtablesMy view of hash tables is heavily influenced by an oral doctoral exam question my boyfriend in college had: “why or … – Lars Fosdal – Google+:

My view of hash tables is heavily influenced by an oral doctoral exam question my boyfriend in college had: “why or why not would you use a random number generator to dither an image?

–jeroen

I archived the non-wikipedia references:

Murmur2 graph:

Read the rest of this entry »

Posted in Algorithms, Development, Software Development | Leave a Comment »

A bit of Kylix history…

Posted by jpluimers on 2017/10/03

Chris Rolliston: +Larry Hengen The Kylix IDE was a fork of the Delphi IDE and used WineLib. It was the applications you built with the Kylix IDE that were QT based.

Via [WayBack] I don’t mean to Whine but, if WINE is mature enough, why doesn’t EMBT officially test and support WINE for development on Mac OS/X and Linux for… – Larry Hengen – Google+

There is a bit of C++BuilderX history as well (which was based on JBuilder).

–jeroen

 

Posted in Delphi, Development, History, Kylix, Software Development | Leave a Comment »

Building OpenSSL on Windows

Posted by jpluimers on 2017/10/03

Some very interesting links:

–jeroen

Posted in C, C++, Development, Software Development, Visual Studio C++ | Leave a Comment »

Mercury13/curl4delphi: A little libcURL binding for Delphi XE2+. Supports “easy” interface only. See wiki for more documentation.

Posted by jpluimers on 2017/10/03

Interesting: Mercury13/curl4delphi: A little libcURL binding for Delphi XE2+. Supports “easy” interface only. See wiki for more documentation.

via: Curl: Delphi binding [WayBack]

–jeroen

Posted in Delphi, Delphi XE2, Development, Software Development | Leave a Comment »