24 August 2023

Windows: get parentprocess ID / name

Powershell command to get parent processes of all processes with a given name (javaw.exe):

Get-CimInstance Win32_Process -Filter "Name = 'javaw.exe'" | select ParentProcessId

Or in a script. TYhis one takes the process name as a parameter and also shows the , this time with the parent process name: 

$targetProcessName = $args[0]

$targetProcessName = $args[0]
$targetProcesses = Get-CimInstance -ClassName Win32_Process -Filter "Name = '$targetProcessName'"

foreach ($process in $targetProcesses) {
    $parentProcessId = $process.ParentProcessId
    $parentProcess = Get-CimInstance -ClassName Win32_Process -Filter "ProcessId = $parentProcessId"
    Write-Output "Process: $($process.processId) $($process.Name), Parent Process: $($ParentProcessId)    $($parentProcess.Name)"
}

8 August 2023

Jetbrains 2023.2 releases

Some highlights:

more info....

4 August 2023

Java 21 LTS releases september 19th 2023

With the upcoming new LTS (Long Term Support)  release of Java, Java 21, quite some preview features of earlier releases are finally completed.  These are the most important goodies we get withe the new LTS release:

  • record pattern matching: destructuring for records
  • several switch enhancements
    • type and pattern matching
    • null matching
    • more complex tests using case ... when ... constructs
  • SequencedCollection: extra operations on first and last elements for collections for which the order of the elements is known.
  • lightweight threads 
  • text manipulation methods
    • String::splitWithDelimitors
    • SringBuilder::repeat
    • Character eomji methods

More info...