dummzeuch

Per monitor DPI aware stand alone GExperts Grep

 Delphi, GExperts  Comments Off on Per monitor DPI aware stand alone GExperts Grep
Jan 152022
 

I have just finished making the stand alone GExperts Grep to really be stand alone, that is: It no longer needs the GExperts DLL but contains all the functionality in one executable. It has also been compiled with Delphi 11 Alexandria so it should be per monitor DPI aware.

Another feature is the ability to integrate itself into the Windows Explorer popup menu. Simply open the Options on the Grep Search dialog.

And set the appropriate check marks.

The first one adds an entry to the context menu of the tree view on the Windows Explorer’s left hand side tree view …

… and to the context menu of the background of the right hand side panel.

The second one adds an entry to the context menu of folder entries of the right hand side panel.

You can download it here.

This release is part of the preparation for the GExperts 1.3.20 release which I plan to do within a few weeks. It will still be a Beta for Delphi 11 (but hey: No longer Alpha) but a regular release for all other Delphi versions.

If you find any bugs, please report them!

Discussion about this post in the international Delphi Praxis forum.

 Posted by on 2022-01-15 at 16:48

Drag and Drop from the GExperts Grep Results

 Delphi, GExperts  Comments Off on Drag and Drop from the GExperts Grep Results
Dec 312021
 

Another episode from the series “GExperts features that I didn’t know about”:

It’s possible to drag an entry from the GExperts Grep to any other Windows program, e.g. to the Explorer, which will copy that file to the directory it was dragged to, or to an editor which will open that file.

I just now found out about this because I wondered why it was using Anders Melander’s DropSource unit (version 3.6 from 1999, maybe I should have a look if an update is possible).

Btw: I’m about to make the stand alone Grep tool a real stand alone executable that does not require the GExperts DLL (and its package dependencies). The reason is that I can’t find the cause for an Access Violation that happens in the Delphi 10.4 and 11 DLLs when opening the Grep window from an external program. It’s somewhere in the OnCreate event handler of TDockableForm, for which the source code is not available, so it’s difficult to debug.

 Posted by on 2021-12-31 at 15:36

User cannot change his Samba AD password from Windows

 Samba, Windows, Windows 10  Comments Off on User cannot change his Samba AD password from Windows
Dec 212021
 

Note to self:

If a user cannot change his password on a Samba AD Domain from a Windows (10) computer getting the following error message:

Check that the user didn’t already change the password on the same day because the default setting for minimum password age is 1 (day). To change that setting, use samba-tool:

root:/root# samba-tool domain passwordsettings set --min-pwd-age=0
Minimum password age changed!
All changes applied successfully!

Note that Samba apparently does not support changing this setting (and other password policy settings) with the Windows Group Policy Editor.

To check these settings, also use the samba-tool:

root:/root# samba-tool domain passwordsettings show
Password information for domain 'DC=ad,DC=example,DC=com'

Password complexity: off
Store plaintext passwords: off
Password history length: 0
Minimum password length: 7
Minimum password age (days): 1
Maximum password age (days): 42
Account lockout duration (mins): 30
Account lockout threshold (attempts): 0
Reset account lockout after (mins): 30

(Note that the above are not my actual password settings in a production environment but rather test settings to find out which settings caused the problem.)

 Posted by on 2021-12-21 at 16:59

Registration problems in Delphi Praxis solved

 Delphi  Comments Off on Registration problems in Delphi Praxis solved
Dec 162021
 

There was a technical problem with the software of the international Delphi Praxis forum which prevented many new user registrations. This has now been solved, so creating new user accounts should be possible again.

Here is Daniel’s announcement:

We have solved a technical problem which was due to a misconfiguration of the software. Some – but not all – newly created user accounts were not activated, but intended for manual activation by the admin. Unfortunately, there was no notification and since not all accounts were affected, there were indeed constant new registrations. This way, this bug could remain undetected for too long.

I am very sorry for those who waited in vain for an activation.

Unfortunately, in the queue of accounts that have not been activated, in addition to regular users, you will also find the usual amount of spam bots that every forum has to deal with. Separating these groups cleanly from each other and manually activating only the real users is unfortunately an impossibility.

With this in mind, I made the hard decision to remove all queued accounts. The way is now free for new registrations and I would like to ask all interested people to register again. At the same time I apologize for the double effort.

Verification is now done – as usual with most forums – via an email containing a confirmation link.

See you there.

 Posted by on 2021-12-16 at 10:03

Small improvements to GExperts

 Delphi, GExperts  Comments Off on Small improvements to GExperts
Dec 122021
 

Some of the experts in GExperts have seen small improvements lately:

The Goto expert now allows incremental search in the list by typing in the number field. This feature was contributed by Achim Kalwa.

The Grep search expert now takes the name of the currently selected control on the form designer if it is opened while the form designer is active. Again, this feature was contributed by Achim Kalwa. The idea was from Peter Panettone.

The Todo expert now has a filtering function. The idea was from Peter Panettone, who also provided an implementation. Unfortunately I had to reimplement it because his code did not work with older Delphi versions.

Thanks again to everybody who contributes to the project. I might take a while to commit such changes but I try to do my best.

 Posted by on 2021-12-12 at 16:21

Remember: Windows 10 will automatically restart for updates

 Windows, Windows 10  Comments Off on Remember: Windows 10 will automatically restart for updates
Dec 052021
 

Note to self: If you have anything important running on your Windows 10 computer for a longer time (e.g. over night), make sure to prevent Windows Update to become active. It will force a restart of your computer if it fancies so, regardless of the programs that might still be active.

Guess what happened last night? I not only lost some work but it also aborted a critical maintenance task running for our server infrastructure, which means I have to repeat that task next weekend and endanger company data for another week.

Judging by the results of search for "prevent windows reboot" I am not the first one who got hit by this "feature".

(And to add insult to injury I was now looking for the settings to disable automatic updates for a while and can’t bloody find it. Entering "Windows Update" into the search field of the control panel doesn’t find it.
The search box in the start menu does find it though. WTF?)

Of course as of Windows 10 users can no longer prevent Windows Update to restart their computer (We’re Microsoft, we know best 🙁 ). They have only the following options:

  1. Pause Windows Update for 7 days.
  2. Pause Windows Update until a fixed date, which can be up to about 1 month into the future.
  3. Set the “active hours”, that is the times between which Windows Update will not restart your computer. That period is limited to up to 18 hours.

On Windows 10 professional (home users are out of luck) there are some settings in the Local Group Policy Editor which might help here, but I haven’t yet figured out what to set. One that looks promising is:

No auto-restart with logged on users for

Specifies that to complete a scheduled installation, Automatic Updates will wait for the computer to be restarted by any user who is logged on, instead of causing the computer to restart automatically.

If the status is set to Enabled, Automatic Updates will not restart a computer automatically during a scheduled installation if a user is logged in to the computer. Instead, Automatic Updates will notify the user to restart the computer.

Be aware that the computer needs to be restarted for the updates to take effect.

If the status is set to Disabled or Not Configured, Automatic Updates will notify the user that the computer will automatically restart in 5 minutes to complete the installation.

Note: This policy applies only when Automatic Updates is configured to perform scheduled installations of updates. If the “Configure Automatic Updates” policy is disabled, this policy has no effect.

But unfortunately that policy is already enabled and obviously didn’t prevent the restart last night. I guess that’s what the “Note” is about. The Configure Automatic Updates policy is disabled. I guess I’ll have to figure out what to configure there.

But why is there no option like "Don’t restart if a user is logged on and a program is running."? For their own programs (e.g. Explorer or anything MS Office) they could create fancier solutions as "If a program is running but doing nothing, notify it (e.g. an Explorer window or MS Word with an unchanged document) and restart it afterwards.".

If I remember correctly there is some Win32 API option to prevent manual shutdowns or restarts. Maybe that will also prevent a restart caused by Windows Update.

Edit: Within a few minutes after I posted this, several people have made me aware of Ulrich Decker’s Reboot-Blocker tool. Thanks everybody!

 Posted by on 2021-12-05 at 11:56

Toolbars in GExperts for Delphi 11 dialogs are now scaled

 Delphi, GExperts  Comments Off on Toolbars in GExperts for Delphi 11 dialogs are now scaled
Nov 272021
 

Just a quick info on the state of GExperts for Delphi 11:
I went through all the dialogs and now the toolbars and also the icons in the menus should be scaled properly. They don’t really look nice because they are simply enlarged using the method Ĺ˝arko Gajić described, but I don’t really want to spend time on redesigning them all.

 Posted by on 2021-11-27 at 17:39

GExperts 1.3.19 Alpha 2 for Delphi 11 Patch 2

 Delphi, GExperts  Comments Off on GExperts 1.3.19 Alpha 2 for Delphi 11 Patch 2
Nov 262021
 

Embarcadero has released a second patch (called November Patch) for Delphi 11 which seems to fix several issues that blocked further progress on GExperts for Delphi 11. So here it is, fresh out of the compiler: The second Alpha version of GExperts for Delphi 11.

Please keep in mind: This is not even a Beta version! There will be bugs and these will not only be UI glitches but functionality failures!

You have been warned!

You will most likely need the Delphi 11 November patch for GExperts 1.3.19 Alpha 2 to work. I have not tried it with the unpatched IDE and I won’t support it.

If you still want to try it, you can download it here.

Please report any bugs on SourceForge!

There are no updates for older Delphi versions yet, but you can always get the sources and compile your own DLL.

Also, if you want to try and fix some bugs in the Delphi 11 version yourself, see the link above. I’ll gladly accept patches.

 Posted by on 2021-11-26 at 12:11

There will be no GExperts release for Delphi 11

 Delphi, GExperts  Comments Off on There will be no GExperts release for Delphi 11
Nov 072021
 

After wasting days and more days of my valuable spare time on trying to get the high DPI display problems sorted out for GExperts for Delphi 11, I give up now.

I’ll wait for Delphi 11.1 or at least some additional patches before I spend any more time on this.

If somebody else wants to give it a try, feel free to do that. You know where the source code is.

 Posted by on 2021-11-07 at 14:23

GExperts 1.3.19 Alpha for Delphi 11

 Delphi, GExperts  Comments Off on GExperts 1.3.19 Alpha for Delphi 11
Oct 242021
 

After several weeks trying to get the GExperts UI to look acceptable under Delphi 11 on high DPI monitors, here it is: The first Alpha version of GExperts for Delphi 11.

Please keep in mind: This is not even a Beta version! There will be bugs and these will not only be UI glitches but functionality failures!

You have been warned!

If you still want to try it, you can download it here.

Please report any bugs on SourceForge!

There are no updates for older Delphi versions yet, but you can always get the sources and compile your own DLL.

Also, if you want to try and fix some bugs in Delphi 11 yourself, see the link above. I’ll gladly accept patches.

 Posted by on 2021-10-24 at 18:04