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,708 other followers

Archive for June 20th, 2019

To use the – undocumented – GetItCmd.exe CLI version of the GetIt package manager, run rsvars.bat first – via G+

Posted by jpluimers on 2019/06/20

Interesting observation on [WayBack] How do you use the CLI version of GetIt Package Manager. I always get a “no items were found.” response. As usual, the EMBT wiki is total rubbish and do… – Graeme Geldenhuys – Google+.

What you need for GetItCmd, is to run rsvars.bat for your Delphi version first, which is exactly what [WayBackRun-Dependend-rsvars-From-Path.bat – which I wrote a while ago – does.

I did not even know that there was a CLI equivalent of [WayBack] GetIt – RAD Studio , but it is there, totally undocumented: GetItCmd apart from two filename references on the French and German docwiki:

Apart from that, I could only find these links:

Another odd thing: rsvars.bat is also not documented, and has just one reference in the docwiki: [WayBack] Using CMake with C++ Builder – RAD Studio.

The use of rsvars.bat is simple: it sets the below environment variables (some older versions set less variables, like missing PLATFORM or PlatformSDK) for use with the IDE (bds32.exe), msbuild and GetIt.

BDS
BDSINCLUDE
BDSCOMMONDIR
FrameworkDir
FrameworkVersion
FrameworkSDKDir
PATH
LANGDIR
PLATFORM
PlatformSDK

(some of these are set to empty to they at least exist)

Later on, Marco Cantu reacted

The command line version of GetIt is not stable, so it was never “promoted” to being a feature. It was a tentative feature, we likely removed the English doc, but translations remained — so having that documentation is kind of an error. We ship is as we use it, with a specific command that works and is safe. In other words, use it as your own risk, as it is not an official feature.

So apparently, the only way that GetIt works, is through a specific command in GetItCmd. From an architectural point of view that gives me a  “lets get this tick on the feature matrix done no matter what the architectural consequences are” feeling.

–jeroen

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

How to test if an executable exists in the %PATH% from a windows batch file? – Stack Overflow

Posted by jpluimers on 2019/06/20

I needed a solution inside a batch file for git similar to [WayBack] How to test if an executable exists in the %PATH% from a windows batch file? – Stack Overflow which became this:

where /q git || echo Cound not find git on the PATH %PATH%. && goto :eof

I could have expanded this to find the install location, but for now this is sufficient.

When it is needed, I should read [WayBack] Programmatically (not manually) finding the path where Git is installed on a Windows system – Stack Overflow

–jeroen

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

Splitting user settings from your Delphi projects:  DprojSplitter by Uwe Raabe

Posted by jpluimers on 2019/06/20

Reminder to self to try this out: [WayBackWorking in a team? DprojSplitter might be helpful! | The Art of Delphi Programming.

The most recent version (covering a wider range of Delphi versions) was at [WayBackDprojSplitter for Delphi XE2 to XE6 available | The Art of Delphi Programming.

DprojSplitter handles the current build configuration and current plattform. In addition these settings are handled, too (found in CommonOptionStrs):

sDebugger_RunParams,
sDebugger_RemoteRunParams,
sDebugger_HostApplication,
sDebugger_RemotePath,
sDebugger_RemoteHost,
sDebugger_EnvVars,
sDebugger_SymTabs,
sDebugger_Launcher,
sDebugger_RemoteLauncher,
sDebugger_IncludeSystemVars,
sDebugger_UseLauncher,
sDebugger_UseRemoteLauncher,
sDebugger_CWD,
sDebugger_RemoteCWD,
sDebugger_RemoteDebug,
sDebugger_DebugSourcePath,
sDebugger_LoadAllSymbols,
sDebugger_LoadUnspecifiedSymbols,
sDebugger_SymbolSourcePath

Heck, you can even configure the ones to split: [WayBackConfiguring DprojSplitter to Your Needs | The Art of Delphi Programming

–jeroen

via:

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

Some links about the TCP SACK PANIC attacks on Linux and FreeBSD Kernels

Posted by jpluimers on 2019/06/20

The TCP SACK vulnerabilities as found by Netflix: [WayBack] security-bulletins/2019-001.md at master · Netflix/security-bulletins · GitHub.

Easy, but slow workaround from [WayBack] linux – How to disable TCP SACK for CentOS? – Super User:

Temporary (until boot):

echo "0" > /proc/sys/net/ipv4/tcp_sack

Permanent (even after boot):

echo "net.ipv4.tcp_sack = 0" >> /etc/sysctl.conf
sysctl -p

Coverage:

–jeroen

Posted in *nix, *nix-tools, Communications Development, Development, Internet protocol suite, Power User, Security, TCP | Leave a Comment »

 
%d bloggers like this: