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 4,262 other subscribers

Archive for June 15th, 2021

PlasticSCM: delete a changeset

Posted by jpluimers on 2021/06/15

Every now and then you really goof up the final changeset in a series of changesets that are in a branch.

I have yet to figure out how to delete that changeset, other than keeping the branch stale and merge from the last good changeset to a new branch.

This seems hard to do given these from [Archive.is] plasticscm delete changeset – Google Search:

Deleting the branch fails because there is still a changeset on it:

Deleting the changeset fails because the option is greyed out:

It does not happen that often, though there are now about a few % of the branches stale because of this.

–jeroen

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

Needle fear / prikangst

Posted by jpluimers on 2021/06/15

An interesting Dutch thread on fear of needles and how to cope with it is at [Archive.is] Jerry Vermanen on Twitter: “Even iets heel anders. Mijn vaccinatieafspraak komt dichterbij. Maar ik ben doodsbang voor naalden. Hoe hebben andere mensen met dezelfde angst dit aangepakt?”

The question came because of COVID-19 vaccinations.

Since I have needle fear and I am autistic, I posted a sub-thread ([Archive.is] Jeroen Wiert Pluimers on Twitter: “Ik heb mijn “maar je ziet er helemaal niet autistisch uit” T-Shirt aangetrokken (dank @biancatoeps !) … “) with how it works best in my case, which I have translated below just in case it can help other people.

Having gotten my second AstraZeneca shot on Sunday 2021-06-14, and had drawn blood for cardiologist check-up on Monday 2021-06-15 I know these work for me:

I put on my “but you don’t look autistic at all” T-Shirt (thanks [Archive.is] @biancatoeps !)

In addition, I report it in advance and briefly discuss how it works best for me.

They are very happy with that, by the way.

because many have that fear, but don’t say it (just assume that 1 in 3 people has a fear of injection, I’ll look for a link about that in a moment).

In addition to [Archive.is] Eveline Meijer on Twitter: “Nog niet gevaccineerd, maar vaak genoeg geprikt en ik ben er ook bang voor. Ik meld dit vaak bij degene die de prik zet en dat ik de naald vooral niet wil zien. Dus andere kant op kijken en proberen rustig te ademen. Dan komt het bij mij meestal wel goed.… “

first what works for me, and what I do:

  1. give a brief explanation of what they are going to do and how
  2. indicate my preferred arm
  3. tell them they should stop talking to me a few seconds before putting the needle in
  4. look away from where they sting, focus on something else so that I focus on breathing
  5. say “yes” if they can start

You’re certainly not alone, and it’s great that you’re talking about it before now. Hopefully these tips will help making it easier for you in the future.

This states that more than 35% has fear plus some tips: [Wayback] Bang voor naalden? Deze app helpt bij prikangst | RTL Nieuws (which mentions the app [Wayback] AINAR – Artificial Intelligence for Needle Anxiety Reduction)

Good luck for when you get vaccinated. I will get the 2nd shot this afternoon and it will be fine (:

Later: Got shot 2 of AstraZeneca. A little light-headed because the anxiety subsides. Waiting for half an hour now as I’m allergic to NSAIDs: just to be on the safe side.

Notes:

Some interesting bits from the Dutch thread at [Wayback] Thread by @JerryVermanen: Even iets heel anders. Mijn vaccinatieafspraak komt dichterbij. Maar ik ben doodsbang voor naalden. Hoe hebben andere mensen met dezelfde angst dit aangepakt?:

  • [Wayback] AINAR – Artificial Intelligence for Needle Anxiety Reduction

    Welcome to AINAR!

    The AINAR game application makes it possible to learn controlling your needle fear. The AINAR app is making use of state of the art technology in Artificial Intelligence and biofeedback.

    THIS SITE DOES NOT CONTAIN IMAGES OF NEEDLES!

  • Tell them, and when getting the shot, look the other way and focus on breathing.
  • Seek distraction: make some small talk, play on your phone.
  • Look forward to the treat you give yourself afterwards: ice cream, LEGO, whatever.
  • Compartmentalise the event slots (before shot, during shot, after shot) and try to put your fears only in the middle slot.
  • Get the single shot Janssen vaccin (only having fear once instead of twice).
  • If the pain triggers your fear, try lidocaine skin cream (consult with your doctor first as it is a anesthetic that causes loss of feeling in the skin and surrounding tissues that prevents pain).
  • Take a support person or support animal with you (first ask if that is allowed).
  • Fear can enhance the pain sense, so if you can lessen the fear, the pain likely lessens too.

Dutch sub-thread: [Wayback] Thread by @jpluimers: @JerryVermanen Ik heb mijn “maar je ziet er helemaal niet autistisch uit” T-Shirt aangetrokken (dank @biancatoeps !)…

–jeroen

Read the rest of this entry »

Posted in LifeHacker, Power User | Leave a Comment »

Delphi Basics : FindCmdLineSwitch command07

Posted by jpluimers on 2021/06/15

Since I keep forgetting about this, and there is the Embarcadero documentation for it has had no examples added in Delphi 2007 or later: [WayBack] Delphi Basics : FindCmdLineSwitch command

Example code : Saerch the program parameters for 3 switches
begin
// Before running this code, use the Run/parameters menu option
// to set the following command line parameters : /def abc /ghi
ShowMessage(CmdLine);     // Show the execution command + parameters

// How many parameters were passed?
ShowMessage(‘There are ‘+IntToStr(ParamCount)+’ parameters’);

// Scan for parm1, parm2 and parm3 parameters
if FindCmdLineSwitch(‘abc’)
then ShowMessage(‘abc found’)
else ShowMessage(‘abc NOT found’);

if FindCmdLineSwitch(‘def’)
then ShowMessage(‘def found’)
else ShowMessage(‘def NOT found’);

if FindCmdLineSwitch(‘ghi’)
then ShowMessage(‘ghi found’)
else ShowMessage(‘ghi NOT found’);
end;
Show full unit code
   “C:\Program files\Borland\Delphi7\Projects\Project1.exe” /def abc /ghi
There are 3 parameters
abc NOT found
def found
ghi found

Related: [WayBack] delphi – How to read value of ParamStr with different deliminators? – Stack Overflow

Unchanged Embarcadero Delphi 2007 documentation:

For comparison, the Delphi 10.2 Rio documentation:

The really odd thing? The really versatile TCommandParser class got ditched after Delphi XE6: On the Delphi TCommandParser class for parsing command-lines and arguments (via: Suggestions for how to define command line parameters – Stack Overflow).

–jeroen

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