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,835 other subscribers

Archive for the ‘Software Development’ Category

When you are stuck, use “Oblique strategies – defeat creative block”

Posted by jpluimers on 2020/06/10

Sometimes you are stuck. Then this often helps, even outside the music industry:

[WayBack] Oblique strategies – defeat creative block: Draw random Oblique Strategy cards to break through creative block.

These are disruptive which is the whole point being stuck.

Obey the first and only rule: pick the first card and apply what it says.

  • Do NOT fall for the urge to draw multiple cards.
  • Do NOT make a list of all cards then choose from it.

Both above failures kill the randomness of the above strategy.

More on them at [WayBack] Oblique Strategies – Wikipedia

Via:

–jeroen

Read the rest of this entry »

Posted in Agile, Development, LifeHacker, Power User, Software Development | Leave a Comment »

One day I will dig in the various ways that bash can do evaluation, for now: there is eval, “ and $() and I’m not sure when to choose which.

Posted by jpluimers on 2020/06/10

A while ago, I had to execute a series of aliases of which the names were stored in an array. A simple for loop with en eval call did the job.

Then I found out there are at least two more ways of evaluation in bash, so here are just a few links giving me a head start if I ever dig this up again:

Note that looping over parameters is different than over an array: [WayBack] Loop through an array of strings in Bash? – Stack Overflow

ou can use it like this:

## declare an array variable
declare -a arr=("element1" "element2" "element3")

## now loop through the above array
for i in "${arr[@]}"
do
   echo "$i"
   # or do whatever with individual element of the array
done

# You can access them using echo "${arr[0]}", "${arr[1]}" also

Also works for multi-line array declaration

declare -a arr=("element1" 
                "element2" "element3"
                "element4"
                )

–jeroen

Posted in *nix, *nix-tools, bash, bash, Development, Power User, Scripting, Software Development | Leave a Comment »

Configuration files – Installation and configuration – Plastic SCM Community

Posted by jpluimers on 2020/06/09

The PlasticSCM GUI does not allow you to edit the paths of Workspaces (you can either rename a workspace or delete edit; no other editing options are available).

Luckily you can do this by hand editing the configuration files in %LocalAppData%\plastic4, though this is largely undocumented

Some of those configuration files are explained in [WayBack] Configuration files – Installation and configuration – Plastic SCM Community, but plastic.workspaces is not, so here are the steps:

Read the rest of this entry »

Posted in Development, PlasticSCM, Software Development, Source Code Management | Leave a Comment »

pip install –user and your path

Posted by jpluimers on 2020/06/09

I’ve added this to my ~/.bashrc to stuff installed by pip install --user is accessible from interactive shells:

# set PATH so it includes user's private python "pip --user" bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$PATH:$HOME/.local/bin"
fi

The addition is at the end of the path. It is a choice: it means machine installs take prevalence over user installs. That’s usually what I want. For more considerations (including non-interactive shells), see [WayBack] bash – How to correctly add a path to PATH? – Unix & Linux Stack Exchange.

The --user installs do not affect the full system, nor other users.

Further reading:

–jeroen

Posted in Development, Python, Scripting, Software Development | Leave a Comment »

bash + sed: quadruple backslash for proper escaping within an alias

Posted by jpluimers on 2020/06/09

This is part of a bash alias where I had to use quadruple backslash in order to escape it for sed:

# The sed with quad //// is to prevent 'unterminated substitute in regular expression':
alias x='... | sed "s/=.*/ \\\\/"'

This is needed because bash will escape \\\\ into \\ which sed then escapes to \.

The easiest way to find this is to replace the sed with echo to see the expansion.

References:

–jeroen

Posted in *nix, *nix-tools, bash, bash, Development, Power User, Scripting, sed, Software Development | 2 Comments »

Thread.Destroy deadlocks in finalization of COM+ dll’s…

Posted by jpluimers on 2020/06/04

Reminder to self that this is still broken:

[WayBack] Thread.Destroy deadlocks in finalization of COM+ dll’s This serious bug still exists in Delphi 10.2 after 12 years being reported! http://qc.embarcade… – 丽丽乌克 – Google+

Original report:

It was posted by Bart van der Werf, who also posted a workaround that is inside those WayBack links.

–jeroen

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

Why Is SQLite Coded In C

Posted by jpluimers on 2020/06/04

Old, but still an interesting read: [WayBack] Why Is SQLite Coded In C and [WayBack] Appropriate Uses For SQLite.

TL;DR: SQLite – mainly competing with fopen has few dependencies and uses C in a boring way. I think that’s good.

Via: [WayBack] Why Is SQLite Coded In C – ThisIsWhyICode – Google+

–jeroen

Posted in C, Database Development, Development, Software Development, SQLite | Leave a Comment »

Shell Extensions (.NET)

Posted by jpluimers on 2020/06/04

Over time it seems that Shell Extensions (.NET) [WayBack] have become possible.

In the past this was recommended against because Shell Extensions can be loaded by any process having a file dialog open, even if these did not expect .NET framework(s) to be hosted in-process.

It looks like that restriction has been alleviated with .NET 4.x where it is possible to in-process host multiple .NET frameworks: [WayBack] CLR Inside Out: In-Process Side-by-Side

Related:

–jeroen

Posted in .NET, Development, Software Development | Leave a Comment »

Some links on hooking anonymous methods to Delphi events

Posted by jpluimers on 2020/06/03

On my reading list are these:

–jeroen

Posted in Conferences, Delphi, Development, Event, Software Development | Leave a Comment »

Methodologies are dead, long live methodologies – Mosh Choen – Medium

Posted by jpluimers on 2020/06/03

Worth re-reading every now and then: [WayBack] Methodologies are dead, long live methodologies – Mosh Choen – Medium.

Use your common sense, and assess your common sense is still based on thinking, not coloured.

Via: [WayBack] Mosh Choen (ik5) – Google+

–jeroen

Posted in Development, Software Development | Leave a Comment »