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 July, 2020

networking – Whitelist Windows Update Servers – Super User

Posted by jpluimers on 2020/07/31

For my link archive: networking – Whitelist Windows Update Servers – Super User

Because there are brain dead routers that do not allow for wildcards, or whitelisting only a certain protocol for a URL, call windowsupdate.microsoft.com a URL, but then also accept http://www.windowsupdate.microsoft.com.

–jeroen

Posted in Firewall, Infrastructure, Power User, Windows | Leave a Comment »

If your Samba logon script does not get executed – twm’s blog

Posted by jpluimers on 2020/07/31

… even though you can open and read it fine in an editor: You should check its Linux access permissions. If it is not marked as executable, this might be the cause. Change it with chmod like …

Source for my link archive: [WayBackIf your Samba logon script does not get executed – twm’s blog.

Via: [WayBack] … even though you can open and read it fine in an editor: You should check its Linux access permissions. If it is not marked as executable, this might b… – Thomas Mueller (dummzeuch) – Google+

–jeroen

Posted in *nix, *nix-tools, Power User, samba SMB/CIFS/NMB | Leave a Comment »

Try locking your PC next time

Posted by jpluimers on 2020/07/31

Everyone falls for social engineering. A while ago I got too and my home page got changed into [WayBack] Try locking your PC next time after being lured away from my machine without locking it.

--jeroen

PS: there are many YouTube versions (as long as 24 hours) of this as well, see [Wayback/Archive] Gandalf Sax | Know Your Meme (via [Wayback/Archive] On this day 11 years ago, the first known video of Gandalf smiling and nodding along with the Epic Sax Guy music on loop was posted to YouTube. : KnowYourMeme).

[WayBack]

Posted in Power User, Security | Leave a Comment »

Getting Started with Azure Event Grid Scenarios | Serverless360 Blog

Posted by jpluimers on 2020/07/30

For my link list, especially because how it categorises the various kinds of messages: [WayBackGetting Started with Azure Event Grid Scenarios | Serverless360 Blog:

  • messaging, which conveys an intent
  • eventing, which conveys a fact
    • series events, which represent a stream of events belonging together (like telemetry, logging, or streaming data)
    • discrete events, which are independent, and report some type of state change

If you use Azure, these solutions then apply to the categories:

  • messaging: Azure Event Bus
  • series events: Azure Event Hub
  • discrete events: Azure Event Grid

Related:

–jeroen

Posted in Cloud Development, Development, Software Development, Windows Azure | Leave a Comment »

Running Visual Studio Code on macOS from the terminal

Posted by jpluimers on 2020/07/30

For running Visual Studio Code from the terminal, you need to do a few extra steps as from Running Visual Studio Code on macOS: Get Visual Studio Code up and running on Mac (macOS):

Launching from the Command Line

You can also run VS Code from the terminal by typing ‘code’ after adding it to the path:

  1. Launch VS Code.
  2. Open the Command Palette (⇧⌘P) and type ‘shell command’ to find the Shell Command: Install ‘code’ command in PATH command.

macOS shell commands

  • Restart the terminal for the new $PATH value to take effect. You’ll be able to type ‘code .’ in any folder to start editing files in that folder.

Note: If you still have the old code alias in your .bash_profile (or equivalent) from an early VS Code version, remove it and replace it by executing the Shell Command: Install ‘code’ command in PATH command.

To manually add VS Code to your path:

cat << EOF >> ~/.bash_profile
# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF

This is what the code command is and does:

$ which code
/usr/local/bin/code
$ ls -alh `which code`
lrwxr-xr-x  1 jeroenp  admin    68B Apr 16 13:24 /usr/local/bin/code -> /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
$ cat `which code`
#!/usr/bin/env bash
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

function realpath() { /usr/bin/python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"; }
CONTENTS="$(dirname "$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")")"
ELECTRON="$CONTENTS/MacOS/Electron"
CLI="$CONTENTS/Resources/app/out/cli.js"
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
exit $?

–jeroen

 

Posted in Development, Software Development, Visual Studio and tools | Leave a Comment »

Bogus W1036 ? 

Posted by jpluimers on 2020/07/30

Reminder to self for checking if this still fails:

[WayBack] Bogus W1036 ? Documentation: … “If you do not explicitly initialize a global variab… – Stefan Glienke – Google+

Documentation: http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Variables_(Delphi)

“If you do not explicitly initialize a global variable, the compiler initializes it to 0.”

{$APPTYPE CONSOLE}

var
  i: Integer;
begin
  Writeln(i);
end.

Error:

[DCC Warning] Project1.dpr(6): W1036 Variable 'i' might not have been initialized

–jeroen

Posted in Delphi, Development, Software Development | 2 Comments »

Searching github commits

Posted by jpluimers on 2020/07/29

Finding the github commit search page was not obvious to me as the main page only allows searching for repositories, and commit pages insides repositories do not have a search box:

Luckily there are two search pages that can search issues:

You can get to both by stumbling on [WayBack] About searching on GitHub – User Documentation, then clicking “Search using a visual interface”

The first search page has built-in help which I have included below, though not explaining how to search for commits which are in [WayBack] Searching commits – User Documentation, and certainly does not tell you need to add type=commitsto the search box.

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, GitHub, LifeHacker, Power User, Software Development, Source Code Management | Leave a Comment »

UAC elevation steps

Posted by jpluimers on 2020/07/29

Just in case I need to explain this to someone, as it has been a long time ago I did this: [WayBack] windows – Is there a single UAC binary? – Super User.

Via: [WayBack] Jeroen Wiert Pluimers: Is there a UAC binary? – Google+

Most important reference: [WayBack] How User Account Control Works | Microsoft Docs

  1. Logon:
  2. Elevation steps: decision tree in the various pieces:
  3. Elevation confirmation via consent.exe
  4. Consent example prompt:

 

–jeroen

Posted in Development, Power User, Security, Software Development, Windows, Windows Development | Leave a Comment »

On my research list: “git merge –no-ff”

Posted by jpluimers on 2020/07/29

I need to put some time in understanding git merge --no-ff.

Some links to get started:

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

Using LEDs as mains indicator lights on 120V and 230V (live demos) – YouTube

Posted by jpluimers on 2020/07/28

I love the “bigclive” YouToube channel: it is full of neat ideas, and wise tips on disassembled electrical gadgets. Most of his videos involve soldering or/and making schematics of the things he tears apart or builds.

This one is on Using LEDS as mains indicator lights on 120V and 230V (live demos):

Modern LEDs are bright enough at low current to use as directly mains powered indicators with minimal circuitry. The slight downside is that with a simple resistor circuit the vast majority of the power gets wasted as heat. But the current is so low anyway that it doesn’t really matter. Here are some simple ways to drive LEDs from 110V to 240V with minimal circuitry. I tend to recommend running resistors at around half their rating at worst as it means they will last a long time and not discolour too much with age.

His [WayBack] bigclive.com web-site is very small and shows some of his projects.

You can follow him on either youTube or on the the BigCliveDotCom reddit channel.

–jeroen

Read the rest of this entry »

Posted in Development, Hardware Development | Leave a Comment »