Jump to content

dummzeuch

Members
  • Content Count

    2992
  • Joined

  • Last visited

  • Days Won

    107

Everything posted by dummzeuch

  1. dummzeuch

    ssh tunnel with ssh-pascal

    Unfortunately the problem persists. I'll have a deeper look into it later. Thanks a lot.
  2. Including a full unit will definitely work, as long as it contains ifdefs that hide parts of it from the compiler. I have used this trick for many years to create pseudo templates long before Delphi had generics. The linked blog post explains it in depth.
  3. You could use includes from different units for testing. Lets say this is the unit you want to test: {$IFNDEF UNIT_TESTING} unit ToTest; interface uses Whateever, isNecesssary; function AlwaysAvailable(): TSomeType; function NotAlwaysAvaialble(): TSomeOtherType; implementation uses Other, Units; {$ENDIF} function AlwaysAvailable(): TSomeType; begin // implementation here end; {$IFDEF USE_EVERYTHING} function NotAlwaysAvaialble(): TSomeOtherType; begin // implementation here end; {$ENDIF} {$IFNDEF UNIT_TESTING} end. {$ENDIF} Instead of directly using this unit in the unit tests, you use two (or more) different units that include that unit, e.g.: unit UnitForTesting1; interface uses Whateever, isNecesssary; function AlwaysAvailable(): TSomeType; function NotAlwaysAvaialble(): TSomeOtherType; implementation uses Other, Units; implementation {$DEFINE UNIT_TESTING} {$DEFINE USE_EVERYTHING} {$I 'ToTest'} end. and unit UnitForTesting2; interface uses Whateever, isNecesssary; function AlwaysAvailable(): TSomeType; implementation uses Other, Units; implementation {$DEFINE UNIT_TESTING} {$I 'ToTest'} end. I haven't tested this, but it should work. On the other hand, this makes the testing code quite confusing and might lead to code not being tested as intended.
  4. @Jim McKeeth has updated the GExperts documentation a bit. It’s far from finished but that’s better than the totally outdated one on gexperts.org. I have now exported it as webhelp and checked it in to subversion. You can read it at my newly created domain help.gexperts.de. (The domain is temporary only for now. I got it cheap but I’m not sure I will keep it.)
  5. dummzeuch

    Updated Webhelp for GExperts available

    Thanks, fixed. The forum software inserted that link automatically and when I changed the text the link didn't get updated.
  6. dummzeuch

    Updated Webhelp for GExperts available

    new download link https://svn.code.sf.net/p/gexperts/code/trunk/Binaries/GExperts.chm @Ian Branch open file properties and select "unblock".
  7. dummzeuch

    Updated Webhelp for GExperts available

    Hm, interesting. I found no way to actually configure this in Help and Manual. But when resetting some options to the default, this line was inserted automatically. Previously there was a line <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> Which I could also find nowhere. It was probably inserted automatically. I have just committed a new .chm file. Try if it works for you.
  8. dummzeuch

    Updated Webhelp for GExperts available

    Works fine here: I downloaded the file form that link, saved it to the default download folder and opened it with a double click. I got two warnings regarding "unsafe" file from the internet and then it simply showed its content. Since I have no idea how these files/the viewer works, I can't say what the problem on your side might be.
  9. dummzeuch

    Updated Webhelp for GExperts available

    Unfortunately I just found that Webhelp as single export and Webhelp as part of a batch export are different. No idea why.
  10. dummzeuch

    Updated Webhelp for GExperts available

    https://svn.code.sf.net/p/gexperts/code/trunk/Documentation/GExperts.chm
  11. dummzeuch

    Updated Webhelp for GExperts available

    https://svn.code.sf.net/p/gexperts/code/trunk/Documentation/GExperts.pdf
  12. dummzeuch

    Updated Webhelp for GExperts available

    That's correct, there isn't any.
  13. dummzeuch

    Buying a mini pc to install Delphi

    They possibly are. I was referring to those that are also sold from small Chinese companies or possibly individuals directly to Europe via Amazon or other online marketplaces. They seem to just put every buzzword they can find into the description, sometimes even conflicting ones.
  14. dummzeuch

    Buying a mini pc to install Delphi

    I that case, he should buy the PC without or with a small SSD and then upgrade it.
  15. dummzeuch

    Buying a mini pc to install Delphi

    Both seem to be OK to me. The thing with those China produced mini PCs is that the descriptions contain every buzzword on the planet and are not necessary correct, so you better read the reviews and questions/answers too. Even though the descriptions say the OS is DOS, they might still come with Windows 11 pre installed. But you should be wary about that installation. See my previous answer regarding that issue.
  16. dummzeuch

    Buying a mini pc to install Delphi

    The Mac Mini could qualify as a mini PC. But yeah it doesn't really answer the question.
  17. dummzeuch

    Buying a mini pc to install Delphi

    I am using a Fujitsu Esprimo Q920 (released in 2014!) with an i5 mobile processor, 16 GB of RAM and an SSD running Windows 10 for Delphi development (all versions from Delphi 6 -blindingly fast - to Delphi 12 - rather slow but usable). I bought it cheap in a refurbished deal on Amazon.de. It's far from being a rocket, but fine for my hobby software development needs. I also installed Proxmox on a cheap mini PC with an Intel N95 processor, 16 GB of RAM and an SSD I got from Geekbuying (came with Windows 11). I am running a Windows 10 virtual machine on it on which I'm testing GExperts on Delphi 12. That setup is definitely not what I would want to use at work, but again, for hobby software development it is kinda OK. If you leave out the virtual machine part but run Windows directly on the hardware it is faster than the Q920. So: Given enough RAM and an SSD I think basically any current mini PC is OK for that purpose. This may depend on whether you want to use some third party tools and components though. These can slow down the IDE quite a bit. And of course you may think I'm crazy for using such a low powered setup. 😉 Regarding Geekbuying: Beware that that's a platform like Amazon market place. So there are black sheep there. I bought a BMAX mini PC with pre installed Windows 11 from them and it turned out that The pre installed Windows 11 came with some rather dubious software additions, so I tried to do a fresh install. Which turned up that ... the computer does not meet Windows 11 minimum requirements (no TPM, unsupported processor). They must have installed it using the tricks you can find on the web. Which means that it would have had problems with the next major update. But even with these tricks ... the license cannot be used to do a fresh Windows 11 installation. I tried to get a refund but they kept on sending demands for proof (pictures and even a video using some Chinese service) and then simply ignored me. So I definitely don't recommend buying there. (The hardware is rather nice though, if you don't want to install Windows on it.)
  18. dummzeuch

    SSl witout any DLL

    Interesting project. You can also buy the sources. But they use Digital River to sell their licenses ...
  19. dummzeuch

    Delphi 12.2 Patch 1

    A Delphi installation without GExperts is broken. 😉 You are probably right: I should not regard something as a Delphi bug unless I can confirm it is not cause by a 3rd party, and GExperts is a 3rd party, even though that's stretching the meaning as that 3rd party is myself.
  20. dummzeuch

    Delphi 12.2 Patch 1

    On that computer there has never been a Delphi 12 installation (only 2007, XE2 and 10.2). The only addon is GExperts. No additional components. I think that's a pretty clean installation.
  21. dummzeuch

    Delphi 12.2 Patch 1

    I hereby take that back: 12.2 Patch1 is not a total catastrophe, but I no longer classify the glitches I am experiencing as minor. Every few times I want to run the program in the debugger, the IDE freezes with 100% CPU on one core and has to be killed and restarted. That's a major annoyance. And this is a new project which only uses components that come preinstalled with Delphi 12.2 Patch1 and which is not large at all. I'll stick with Delphi 2007 and 10.x for other projects for now.
  22. dummzeuch

    Delphi 12.2 Patch 1

    I have been using it for about a week now and don't see any such problems. So either I have got a very special installation or you have one. edit: There are quite a few minor glitches though, but it's getting better.
  23. dummzeuch

    Delphi 12.2 Patch 1

    That's the bpl incompatibility problem of Delphi 12.2 that the patch 1 was meant to solve. Unfortunately you now get an error if you have any 3rd party bpls or experts that were compiled with Delphi 12.2. Older ones (compiled with Delphi 12.0 or 12.1) do not have that problem. Solution: If you have the source code, recompile those packages / experts. If you don't have the source code, contact the person/company that supplied those binaries for an update
  24. For years I have trained myself to press Shift+F2 to open the GExperts Rename Component Expert. This worked fine for all Delphi IDEs up to 10.2 and I think even in Delphi 12.2 (but I am not sure because I didn't use it very often). Now, in Delphi 12.2 patch 1, all of a sudden, pressing Shift+F2 on a (VCL) form opens and focuses the Object Inspector . Is that something that's supposed to happen? Is it documented anywhere? It's not in the list of Default IDE keyboard shortcuts in the online help. That one says that F11 opens and focuses the Object Inspector, which is wrong because F11 switches between Object Inspector, the form and the source code as it has done since eternity. The only expert installed in this IDE is GExperts.
  25. dummzeuch

    Delphi 12.2 Patch 1

    Multiline string literals are actually supported by the GExperts code formatter. https://blog.dummzeuch.de/2023/11/26/gexperts-code-formatter-now-supports-multi-line-string-literals-but/ https://blog.dummzeuch.de/2023/12/04/that-was-easier-than-i-thought-yeah-right/ But there are some Generics constructs that it can't handle.
×