dummzeuch

Turn off Notepad++ annoyance

 none  Comments Off on Turn off Notepad++ annoyance
Mar 302019
 

I like the open source editor Notepad++, but it has one default setting that drives me crazy: When you close it, it remembers the current “session”. This means that when it gets started the next time, it will re-open all the files you had open when you closed it the last time.

The setting for turning off that behavior is hidden somewhere in the complex Preferences dialog and I keep forgetting where.

So, here you go, future me: It’s on the “Backup” page:

 Posted by on 2019-03-30 at 16:19

Don’t give the user any information!

 Windows, Windows 10, Windows 7  Comments Off on Don’t give the user any information!
Mar 282019
 

… seems to be the motto of Microsoft.

How else can you explain that a recent update of Windows 7 and Windows 10, that broke older versions of one of our programs (no idea yet what exactly is the problem, but the error code indicates an out of memory error) has different effects.

Windows 7 shows a dialog that the program could not be started and even gives some additional information. But that’s not good enough, the user could be irritated by telling him a program has crashed. So Windows 10 goes a step further and simply does … nothing. The program starts (as you can verify in the task manager), but nothing appears on the screen.

If you have administrator privileges, you can look into the event log (If know how to do that). If you haven’t or don’t know how to, you are lost.

<sarcasm>Great feature, guys!</sarcasm>

 Posted by on 2019-03-28 at 16:04

Seagate Barracuda drives again

 none  Comments Off on Seagate Barracuda drives again
Mar 232019
 

Our tests are done and the result is: The new 2 TB drives are as fast as the old ones. So, no worry. The only drawback is that they are smaller. They don’t fit as nicely into the drive enclosures as the old ones. On the other hand, that means they take up less space when stored.

 Posted by on 2019-03-23 at 17:09

dzEditorLinendsFix 1.0.4 released

 Delphi  Comments Off on dzEditorLinendsFix 1.0.4 released
Mar 232019
 

This is nothing to write home about, really, just a small change:

Previously when starting the tool, the main window was shown for a short time before it got hidden. Now that no longer happens.

Don’t now what this is about? You are probably lucky then and don’t need this tool. But if you still want to know, go to the dzEditorLinenedsFix page.

 Posted by on 2019-03-23 at 11:43

Seagate Barracuda drives

 none  Comments Off on Seagate Barracuda drives
Mar 152019
 

In December 2017 I wrote about the new model of 2 TB Seagate Barracuda drives becoming unusable for us because writing performance dropped significantly after a few seconds of continuous writing to them. We do a lot of this because there are several cameras on our measurement vehicles that write one picture every metre while we are doing road condition surveys at 80 km/h (that results in about 20 pictures per second). These new drives just were not up to that demand. Our guess was that it was caused by Seagate reducing the number of platters in the drives and adding some RAM cache to make up for it. This works mostly fine for normal office work where you rarely copy large amounts of data.

That problem disappeared because for whatever reason the old model reappeared on the market again. So for 2018 we could just buy that old model and everything just worked.

Unfortunately with the arrival of 2019 we are back to square one: The old model is only available in small amounts of remaining stock. We will test the new model again and see whether it has been improved, but somehow I doubt it.

EDIT: Our tests are done and the result is: The new 2 TB drives are as fast as the old ones. So, no worry. The only drawback is that they are smaller. They don’t fit as nicely into the drive enclosures as the old ones. On the other hand, that means they take up less space when stored.

 Posted by on 2019-03-15 at 10:56

GnuGetText.pas using Utf8ToUnicodeString instead of Utf8ToWideString

 Delphi  Comments Off on GnuGetText.pas using Utf8ToUnicodeString instead of Utf8ToWideString
Mar 092019
 

A few weeks ago, Sue King contacted me because there was a problem with using dxGetText together with the Nexus DB components.

For Unicode aware Delphi versions gnugettext.pas declares a function utf8decode which calls System.UTF8ToWideString. After replacing a call to utf8decode with UTF8ToUnicodeString the problem went away.

Since I don’t want to break backwards compatibility with non Unicode Delphi versions I have now changed gnugettext.utf8decode to call UTF8ToUnicodeString instead of UTF8ToWideString.

I can’t see any problem with this change but I am far from being an expert on Unicode related issues. So, if you find any problem with this change, please comment on the corresponding topic in the international Delphi Praxis forum.

 Posted by on 2019-03-09 at 14:11

GExperts Grep can use the MAP file

 Delphi, GExperts  Comments Off on GExperts Grep can use the MAP file
Mar 032019
 

The GExperts Grep Search expert has various options to tell it which files to search:

  • The current file
  • All files in project
  • All files in project group
  • A directory list (separated by semicolon)

That sounds like an exhaustive list, but it isn’t. Both, project and project group, were only searching files explicitly listed in the project(s). Files that were linked into the project using the search path, were not searched.

Until now, that is: There is now an option to use the MAP file instead of the DPR file for project search.

The MAP file is created by the linker and contains a list of all source files linked into the program. By default, that file is not created though, you must explicitly enable it on the Linker page of the project options.

The least detailed setting “Segments” is sufficient for the new Grep functionality. If there is no MAP file, it falls back to the original method of searching files listed in the DPR file.

Beware that this will also search units located in the RTL / VCL and FMX source directories. This might not be what you want. I plan to add some more flexibility in the future.

There is no release yet and it might take a while until I feel like doing one, but you can always compile your own GExperts DLL. Make sure you delete the existing directory AppData\roaming\GExperts\DelphiXXX\UsesExpertCache when you replace the DLL with the new one.

Discussion about this post at https://en.delphipraxis.net/topic/793-gexperts-grep-can-use-the-map-file/

 Posted by on 2019-03-03 at 12:19

GExperts error: PrivateGXMenuActionManager is not nil upon creation

 Delphi, GExperts  Comments Off on GExperts error: PrivateGXMenuActionManager is not nil upon creation
Mar 012019
 

If you get the error “PrivateGXMenuActionManager is not nil upon creation” when starting your IDE, check the entries under

HKCU\Software\Embarcadero\BDS\<version>\Expert

There are most likely two entries for GExperts. Remove one and the error should go away.

These entries come from

  1. The installer (GExperts=”path\to\dll”), because it always uses GExperts as the name for the entry.
  2. The Expert Manager (GExpertsXxx=”path\to\dll”), because it uses the name of the dll file for the entry.

Yes, this is a bug. And it has been fixed on 2019-03-02.

Discussion about this post here: https://en.delphipraxis.net/topic/785-gexperts-error-privategxmenuactionmanager-is-not-nil-upon-creation/

 Posted by on 2019-03-01 at 10:34

Delta Chat is now available in Google Play

 Android  Comments Off on Delta Chat is now available in Google Play
Feb 242019
 

Delta Chat, a chat program that uses e-mail as the transport protocol and supports end to end encryption, is now available in the beta channel of Google Play.

If you are already using an older version, you will have to backup your data, uninstall it, install the new version and import the data.

This worked flawlessly for me

I’m using it with an separate e-mail account which I have created for it, so it does not clutter my existing e-mail, but in theory it should be able to coexist.

 Posted by on 2019-02-24 at 18:26