Jump to content


Popular Content

Showing content with the highest reputation on 01/26/21 in all areas

  1. Mateus Vicente

    RAD 10.4 Android KeyboardType NumbersAndPunctuation not working

    @John van de Waeter the solution for your problem is add unit FMX.VirtualKeyboard.iOS.pas to the project and comment out two lines near the bottom of the file, on "function TCocoaVirtualKeyboardService.HideVirtualKeyboard: Boolean;": //if FTransient then // <- comment out this // Exit(False); // <- and this More info here: https://quality.embarcadero.com/browse/RSP-30045
  2. darnocian

    ANN: Sempare Template Engine for Delphi

    I tried to provide flexibility in many places. https://github.com/sempare/sempare-delphi-template-engine/blob/master/docs/configuration.md begin var ctx := Template.Context; ctx.StartToken := '{{'; ctx.EndToken := '}}'; Assert.IsEqual('hello', Template.Eval(ctx, '{{ if true }}hello{{else}}bye{{end}}')); end; There is a restriction however. Must be 2 characters in length. It will work as long as it doesn't conflict with any of the other tokens (no validation is done on this however, so you just need to check if you do override) There is also a global override where you can set GDefaultOpenTag and GDefaultCloseTag. These are defined in Sempare.Template.Context.pas. Once set, you don't have to explicitly create a context if you don't need one.
  3. Gustav Schubert

    Documentation drawings

    I created a Wiki to explain how documentation drawings could be done so that they are live (interactive). The example code is in Delphi. https://github.com/federgraph/documentation-drawings
  4. Read the documentation. In the core, it is merge. The selection of sub-arrays is not via a pivot but step-forward as long as ordered, from position 0 onward. When the source is random, simple types will be sorted with QuickSort.
  5. Lars Fosdal

    High processor due to internal loop

    @Sonjli - Did you read this article? https://blog.grijjy.com/2020/10/07/an-xml-dom-with-just-8-bytes-per-node/ Not sure how that lib would fare with regards to CPU usage - but it should be fast enough. Edit: Doh... I didn't realize Neslib was the lib in the article 😛 Need more coffee.
  6. I have just published Delphi sorting routines that ought to be similar in speed to TIMsort, for arrays of simple types, strings and objects. The focus has been on large (10M+) real-world situations, where there is already some order in the data. The documentation explains how to use in case you do not want generics. The software is free: https://sourceforge.net/projects/fast-stable-sorting-in-delphi/ Hope it is of use.
  7. Some one is asking for my themes, so I thought its better to create a new post to benefit any one who like them, I called them "Nature" themes, one Nature original theme and one Nature Warm theme, you may use Delphi IDE theme editor (https://github.com/RRUZ/delphi-ide-theme-editor) to apply them: Please click Like if you enjoy it. Nature warm (based on my Nature original theme): File: c0d3r-YW-Nature-warm.theme.xml