Jump to content

Die Holländer

Members
  • Content Count

    248
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Die Holländer

  1. Die Holländer

    Obfuscating secrets

    Maybe you can consider to use the CredentialManager of Windows. Stored info is encrypted based on your Windows User login of the machine. It's only readable (by every application) when the user is logged in. It's very easy to read and write to it from Delphi with 2 or 3 functions/procedures.
  2. Die Holländer

    Update issue

    I learned that lesson.. For a long time, since I use Delphi for my company in a business situation I don't take any risk anymore to upgrade or installing a new Delphi version on the same development machine. (read: most of the time uninstalling and installing) Although people telling me that 2 versions of Delphi or upgrading is no problem.. So, I forced my systemmanager to give me a clean machine and I start installing the upgrade or new version from scratch leaving my development machine as it is. This means that I also have to setup the other (helper) software I use but I never had this problem of Delphi not starting anymore.
  3. Die Holländer

    Minimizing Forms

    Has this something to do with the Application.MainFormOnTaskbar := True; statement in the .dpr main project file?
  4. Die Holländer

    Using Dymo LabelWriter from Delphi

    I just finished a small project using a billing receipt printer (like a Dymo printer but with long paper) with also the possibility to export the output to a PDF file. I have used the HTMLViewer component that has a print capability and in combination with the Synopse PDF exporter it is easy to export the output to PDF because SynPDF is also working with TMeta canvas, like the HTMLViewer. The nice thing is that with the HTMLViewer you can format a nice output using HTML in your Delphi code. Send you HTML string to the canvas of the HTMLViewer and print it. In my case the customer maybe want to get the receipt with email, so I export the output to PDF and attach it to an e-mail. HTMLViewer Synopse SynPDF
  5. Die Holländer

    Unit dependency viwer

    Nice. 👍
  6. Die Holländer

    Unit dependency viwer

    First version nice arranged, now overlapping..
  7. Die Holländer

    Unit dependency viwer

  8. Die Holländer

    Unit dependency viwer

    Very nice project. Visually I like the first release the most. OK, some Units appear quite far away from the center in the first release but that seems to fit with the use of them. (more unimportant than the main units in the center) On the last version and the one before every unit is more in the center but also overlapping and making some parts of the screen very messy. The extra Unit dependencies screen is now showing black circles without text and I don't know what they are.
  9. Die Holländer

    curl-example for POST works, Delphi code throws an 404

    Is it only me wondering why people are using more and more inline variable declarations in Delphi code? with TIdHTTP.Create(nil) do try var FIdSSLIOHandlerSocketOpenSSL:TIdSSLIOHandlerSocketOpenSSL:=TIdSSLIOHandlerSocketOpenSSL.Create(nil); var Params: TIdMultiPartFormDataStream;
  10. Die Holländer

    Deep links to open the app

    If you want to avoid the Browser Popup.. URLAllowlist.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\URLAllowlist] "1"="myapp://*" [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\URLAllowlist] "1"="myapp://*" [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox\WebsiteFilter\Exceptions] "1"="myapp://*"
  11. Die Holländer

    Database

    Is this a question? Normally a site is written for a web browser, so it doesn't matter if it is for Android, because all the browsers can use it. You can write a web server in Delphi using systems like DataSnap or MorMot. If you mean you want a Android App then you can use Delphi FireMonkey framework (FMX) to create an app for Android. In both cases put your database in a cloud, like Azure and let the website or App connect to it. Delphi FireDac works very nice with cloud databases. Delphi enterprise version with FireDac can easily connect to MS-SQL databases and then you will be also able to use the MS-Database Tools. The MS-SQL Management Studio has now all the Azure tools integrated to connect to the cloud database.
  12. Die Holländer

    Unit dependency viwer

    Very Nice !! Now I can impress my management even more..
  13. Die Holländer

    FireDAC

    Which edition do you own? MSSQL is supported in Enterprise and Architect Editions https://www.embarcadero.com/products/rad-studio/firedac
  14. Hi Remy, Your site (Lebeau Software) is not available anymore. Are you planning to continue with the site?
  15. Die Holländer

    looking for a "special" checkbox component

  16. Die Holländer

    looking for a "special" checkbox component

    Its also a bit silly to compare a full user-info input screen with a single drop-down or touch button.. 🤪
  17. Die Holländer

    D4P TStringGrid setting cell values

    Some components have DelphiVCL4Python-specific implementations to access their attributes. For example, to set header text for our first column here, using the SetCells() method as StringGrid.SetCells(0,0,"To-Do") is the Python equivalent of the Delphi Object Pascal StringGrid.Cells[0,0]:= Str("To-Do"); and the C++ StringGrid->Cells[0][0] = Str("To-Do"); introduction to pyscripter the best free python ide
  18. MS-SQL database has a special implementation "FileTables" to handle the file-system in combination with the database.
  19. Die Holländer

    search between two dates

    If you use the TDateTimePicker component to select a date then take care of the Time part of the component (see object inspector) because Delphi sneaky adds the current time when you drop the component on the form.. If you have a time part also in the database table field then be sure your SQL does the right query when doing things like <=, = , >= if the time part of the component is set on 00:00:00.
  20. Die Holländer

    Calling python scripts. Returning python output.

    >>What I am looking for is the very, very basic of what Python4Delphi should offer to python programmers checking out Delphi. But that is exactly what the demo 1 is doing. Open your .py file (here with extra button-click) and click a button to execute the script and show the output in a memo. This demo is Gui based, so no output to a shell or something but to a visual component TMemo. Please tell why you don't find that very, very basic. (2 lines of code.) Maybe you want to execute a non GUI Delphi executable with two parameters and write the Python output to a shell??
  21. Die Holländer

    ChatGPT Example

    Just an idea.. Since the most OpenAI development I see in Python we can consider to use this development environment in combination with Delphi.. Search for "python" in Delphi GetIT package manager. https://www.embarcadero.com/new-tools/python/delphi-4-python
  22. Hello, I can't find in the IDE a way to set the compiler/builder to create/use the both directories when I switch between Release and Debug Build. In one of my projects it's going ok. I switch from Release build configuration to Debug and after build/compile there are two directories (Release and Debug) with the executable. But one of my projects this is not working and the switch is always compile/build into the Debug directory. When I switch to Release Build Configuration it is also using the Debug directory. What do I have to change in the IDE for this project, so that it is using the proper directory when switching?
  23. Project Options -> Building -> Delphi Compiler -> Menu Target Release configuration -> Output directory = .\$(Platform)\$(Config)
  24. If you pull the latest official Git Docker/PAServer buildfile it will use Ubuntu Jammy (22) and the latest PAServer. If you pull another version from GIT it will use Ubuntu Bionic (18) but with also an older PAServer that can't be used by the latest Delphi. Main problem: It seems that the Indy http components don't work on the latest Ubuntu 22 version because it raises SSL errors. My idea is to use the Ubuntu 18 version and make a dockerfile for building a dockerimage with the latest PAServer that I can use with Delphi 11.3 I made a dockerfile like the official one on Git but changed it using Ubuntu Bionic and PAServer for Delphi 11.3 (see under) I run the build command of docker to create the image: sudo docker build -t "delphidev:Dockerfile" . and the image is created in Windows Docker Desktop. I run the image to create the container but.. The last CMD should start paserver_docker.sh but whatever I do the container raises the error : paserver_docker.sh: no such file or directory. or /bin/sh: 1: ./paserver_docker.sh: not found. If I list the files in the container the paserver_docker.sh is there and everything in the image seems ok. I have no idea what the problem is. To make our life more easy: Is there a Pull from GIT with a lower Ubuntu version (18) AND the latest PAServer, so that the PAServer is working with Delphi 11 AND the indy HTTP components are working? I also tried to use the latest docker/PAServer and lower the SSL library in the image but that failed too.. Anyone??? Dockerfile: FROM ubuntu:bionic # bionic is the code name of 18.04, bionic-20230308 ARG password=hello ENV PA_SERVER_PASSWORD=$password RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get -yy install \ build-essential \ libcurl4-openssl-dev \ libcurl3-gnutls \ libgl1-mesa-dev \ libgtk-3-bin \ libosmesa-dev \ xorg ### Install PAServer ADD https://altd.embarcadero.com/releases/studio/22.0/113/LinuxPAServer22.0.tar.gz ./paserver.tar.gz RUN tar xvzf paserver.tar.gz RUN mv PAServer-22.0/* . COPY paserver_docker.sh ./paserver_docker.sh RUN chmod +x paserver_docker.sh # PAServer EXPOSE 64211 # broadwayd EXPOSE 8082 CMD ./paserver_docker.sh
  25. Die Holländer

    Try to create Docker image with latest PAServer but on Ubuntu 18

    This thread continues here: delphipraxis Indy forum
×