Jump to content

pro_imaj

Members
  • Content Count

    23
  • Joined

  • Last visited

Posts posted by pro_imaj


  1. On 7/18/2022 at 7:56 PM, Fritzew said:

    You can use the Google Project.
    It is not so complicated to make a dll with some exports.
    But you will need  VS Studio, Git and Cmake.

    Thanks for the answer.

     

    I haven't used vscode before, I don't know how to convert dll.
    I think I can solve it more easily with an API that I can do with get/post with Postmen, but I haven't found it yet.
    Not being able to integrate directly with Delphi is too bad.


  2. On 18.07.2022 at 16:02, ULIK said:

    Delphi için sorununuzu kutudan çıkaracak bir kitaplık olduğundan şüpheliyim. Ancak zaten bulduğunuz gibi, bunun için Doğrusal Programlamayı kullanabilirsiniz, ancak yine de değerlendirme yöntemini kendi ihtiyaçlarınıza göre ayarlamanız gerekir.

     

    İşte anında bulduğum bazı kütüphaneler:

    https://www.optimalon.com/linear_programming_library.htm

    https://www.alglib.net/linear-programming/

    Thanks for the replies.

    I've seen these examples before someone paid I'll examine in detail.


  3. 56 minutes ago, pro_imaj said:

    Hi,

     

    With Delphi, I am doing research on how to place the incoming orders for a business with the least waste according to the machines in production. The problem is referred to as "1D cutting stock problem" in the literature.
    I have to develop an algorithm from scratch that includes all the conditions, or is there a library / API etc. professional solution that I can use for this issue, I will research it and can anyone who has knowledge about the subject guide me.

    I found a few old studies but I'm looking for more. The work I found; http://delphiforfun.org/programs/Cutting%20Stock.htm

    Thanks in advance for the help.

     

    Google has such a solution for this issue, but it's not in use for delphi, why don't they support Delphi 😞

    https://developers.google.com/optimization

     

    Here is the result of the algorithm I want, but I don't know how to integrate it in delphi.

    https://emadehsan.com/csp/

     

    Does anyone know of a way to run this in delphi?

     

     


  4. Hi,

     

    With Delphi, I am doing research on how to place the incoming orders for a business with the least waste according to the machines in production. The problem is referred to as "1D cutting stock problem" in the literature.
    I have to develop an algorithm from scratch that includes all the conditions, or is there a library / API etc. professional solution that I can use for this issue, I will research it and can anyone who has knowledge about the subject guide me.

    I found a few old studies but I'm looking for more. The work I found; http://delphiforfun.org/programs/Cutting%20Stock.htm

    Thanks in advance for the help.


  5. On 5/17/2020 at 1:52 PM, future21 said:

    Hello, I have to start an augmented reality project that basically using google places captures local sites of interest. Is there a sdk for Delphi or a tutorial on the subject that can help me to start this project? From already thank you very much.

    Hi,

     

    Are there any developments in this regard? Is AR (Augmented Reality) a thing that can be done on the FMX side?

     

    Thanks.


  6. I wrote to the component developer, thank you, the problem is not caused by the component problem Delphi!

    CMD was able to run smoothly when we ran this parameter. GetItCmd.exe -c = useonline


  7. 38 minutes ago, sjordi said:

    From Petit I select LockBox 3.7 and install it without troubles.

    If asked to continue executing the script, say yes.

    You can't contact the developer. TurboPower doesn't exist any longer, for more than 10 years.

    But they were nice enough to release the source code. You might find them on Github and create issues tickets there if required.

     

    By the way, it seems to not support iOS. Only Windows, macOS and Android.

     

    I don't understand why it gives the attached error.
    I try both.

     

    *I use this component to support IOS.

     

     

    Error.PNG


  8. On 9/23/2019 at 8:13 AM, sjordi said:

    I think that the free FMX TurboPower Lockbox offers AES encryption and it works on any platform.
    Did check whether AES256 is supported, but it's worth a look.
    Install it via GetIt

    Hi,

     

    For 10.4, getit gives an error, I could not reach the developer.
    How can I install for 10.4?


  9. Hi,

    I solved the problem permanently, adding the project to pass the following file.

     

    *I add that someone might need it in the future.

     

    unit uFont;
    
    interface
    
    uses
      FMX.Platform, FMX.Graphics;
    
    type
      TmyFMXSystemFontService = class(TInterfacedObject, IFMXSystemFontService)
      public
        function GetDefaultFontFamilyName: string;
        function GetDefaultFontSize: Single;
      end;
    
    implementation
    
    
    
    
    function TmyFMXSystemFontService.GetDefaultFontFamilyName: string;
    begin
      Result := 'Segoe UI';
    end;
    
    function TmyFMXSystemFontService.GetDefaultFontSize: Single;
    begin
      Result := 12;
    end;
    
    procedure InitFont;
    begin
      if TPlatformServices.Current.SupportsPlatformService(IFMXSystemFontService) then
        TPlatformServices.Current.RemovePlatformService(IFMXSystemFontService);
    
      TPlatformServices.Current.AddPlatformService(IFMXSystemFontService, TmyFMXSystemFontService.Create);
    end;
    
    initialization
    
    InitFont;
    
    end.

     

     

    • Like 2
    • Thanks 1

  10. While I can specify the text family with the code below on the VCL side, I could not find out how to do it on the FMX side, so I can solve the problem in this way!

     

    
    Application.Initialize;
    Application.DefaultFont.Name: = 'Segoe UI';

     

    • Like 1

  11. 28 minutes ago, Dave Nottage said:

    I see what the problem is now: it's because selecting Segoe UI at design-time results in the Family value not being stored in the .fmx, because it's the default for Windows.

     

    I'd consider that a design fault, since it does not account for using a font with the same name on platforms other than Windows.

     

    Easiest solution: use something that looks like Segoe UI, but isn't 🙂 Any other solution would seem a bit difficult..

    Yes, I have determined it this way, but the interesting thing is that I had no problems with the same delphi version before, so the source of this problem seems to be xcode.

    It is a very troublesome and unnecessary job that I will have to make a continuous loop for objects in each form to solve the problem 😞


  12. 4 hours ago, Dave Nottage said:

    That's because you have Family in the StyledSettings property set to True in the Object Inspector (i.e. at design time). You need to set it to False

    If I don't press the button, it didn't work!

     

    style.PNG


  13. 40 minutes ago, Dave Nottage said:

    It also works for me just by having the Font.Family property in TextSettings set to the correct value (i.e. Anton) at design time. Using the button and code was just to demonstrate that there's a very obvious change in the font.

     

    I suspect there's something else wrong with your project, which is why I asked to post a test case.

    Hi,

     

    Sample file is attached. If it's normal without pressing the button, you should see the font automatically, but it doesn't.

     

    Thanks.

     

    Project1.zip


  14. 18 hours ago, Dave Nottage said:

    I'm using Delphi 10.3.3, the latest released version of Xcode (11.4), building against the latest iOS SDK (13.4) and it works on my iPhone X which has iOS 13.4.

     

    I've attached my test project (which uses the Anton font, from here: https://fonts.google.com/specimen/Anton). Perhaps if you have a test project, you could attach it so it might be discovered what is going wrong.

     

     

    CustomFontDemo.zip

     

    Hi,

     

    You are super! The deficiency I made was the codes that you added to the button, and it worked without any problem.

    But the problem is this; I already set the fonts of all objects to "Segoe UI" so there are too many forms and objects. The font of all objects such as edits, labels, grids, etc.

    What is the easiest way to apply the code you collectively write on the ios side with the "Segoe UI" set on Delphi side.

     

    Thank you for your attention.


  15. 22 hours ago, Dave Nottage said:

    Yes, as per the article.

     

    Make sure you're actually deploying the font files (Project|Deployment in the Delphi IDE), and to the correct Remote Path. i.e:  .\

     

    Also make sure that the entries in info.plist.TemplateiOS.xml match exactly with the actual filename - filenames are case sensitive on iOS.

    Thank you for your answer.

     

    My conclusion on this issue;
    There is a mismatch problem between the latest version of Delphi (10.3.3) and the latest version of xcode. No problem when compiling the same project in older xcode versions.

    So I think this problem will be solved when 10.4 is released. I spent all 10 days rebuilding everything including the computer to solve this problem and the final result I got was negative.

     

    I am continuing the project. I will recompile the ios project with the new version in 10.4 version.

     

    Thanks.


  16. 7 hours ago, Dave Nottage said:

    Your info.plist.TemplateiOS.xml file is incorrect. Instead of:

    
    <key>Segoe UI</key>

    It should be:

    
    <key>UIAppFonts</key>

    As per the article

    Have you tried and seen the correct result?
    It is also tried as you said, but the result is negative!


  17. I formatted the computer, reinstalled everything but my problem is still not resolved.

     

    Problem is this;
    Delphi fmx uses Segoe UI as the standard font family, which is how I used the whole project. But macOs replaces this font with Helvetica Nue, which looks very bad.

    Is there an easy way to make the Segoe UI the font of the project I compiled by macOs?


  18. 16 minutes ago, Dave Nottage said:

    Please indicate what you mean by "before", e.g. was it a different version of Delphi? Deploying to a device with a different version of iOS, if so, which version(s)? Were your applications deploying the custom fonts?

    Hi,

     

    Everything is the same on the Delphi side. I made the last updates on the macOS, Xcode and ios phone I saw the result.

     

    macOs: 10.15.4
    Xcode: 11.4
    ios: 13.4.1

     

    The app uses the Segoe UI font, before it was running by the macos without installing this font.

     

    Thank you for the answer.


  19. 7 hours ago, vfbb said:

    No, the problem is not with delphi, yo can see the full list of default font of the iOS https://developer.apple.com/fonts/system-fonts/

    The current default font is Helvetica Neue. If you put a font family name that not exists, the iOS will load the Helvetica Neue font.

    To avoid install custom font, the best you can do is find a similar default font to use in the iOS

    Thank you for the answer.

     

    But before I was developing with the same font without any problems, I published the applications to the app store and there was no problem.

    If I apply the solution you said, I will have to deal with it while compiling to the android side at this time, whereas in the past, I was working smoothly with the same font on both windows and Andriod and iOS without doing anything like this.

     

    * Now the problem is not only with this font, none of the fonts in Windows are not working by ios!

     

    Thank you.


  20. Hi,

    I am using Edit and Label Segoe UI font in Delphi FMX project. While it looks properly on Windows, there are standard fonts on the ios side. How can I fix this.

     

    * I was viewing correctly on my ios phone without any additional settings before. I am facing this problem after the macOS renewal but I think the problem is in Delphi.

    I would appreciate your help.

     

    Delphi: 10.3.3
    macOS: 10.15.4
    xcode: 11.4

×