Jump to content

Lars Fosdal

Administrators
  • Content Count

    3480
  • Joined

  • Last visited

  • Days Won

    114

Everything posted by Lars Fosdal

  1. Lars Fosdal

    String memory usage

    I sort of assumed that 16777619 in that code was a prime, but wanted to check... ChatGPT 4o mini said "No". So, I asked CoPilot in Norwegian - and it said "No" (Nei) On a whim, I then asked it in English LLMs - Lovely Lying Machines.
  2. Lars Fosdal

    What is your Update Process?

    I have very few packages (The Parnassus debacles, FastReports, FMXLinux) and a couple of non-packaged (TMS VCL UI Pack, EurekaLog), so I usually just do it manually. As for FD connections, I have my own wrapper lib that gets the connection points from configs per app (which can be retrieved from wherever I want),
  3. Lars Fosdal

    Delphi developer needed in Denmark

    While I don't disagree with the characterization of LinkedIn, I do find it handy to keep in touch with people I've worked with. I've practiced some restraint on adding people, so my list is mostly limited to people I've actually been in touch with. Also, it has become a fairly interesting place to follow certain companies.
  4. Lars Fosdal

    Delphi 12.2 Patch 1

    Had to reinstall TMS VCL UI Pack, but EurekaLog appears to be ok...
  5. Lars Fosdal

    creating a frame at runtime

    I use a global function GetNextInstanceNumber to get and increment a integer variable and just set the name to Self.ClassName+'_'+GetNextInstanceNumber.ToString;
  6. Lars Fosdal

    Delphi 12.2 Patch 1

    Make sure to uninstall the Parnassus plugins before installing the patch.
  7. Lars Fosdal

    creating a frame at runtime

    Note that the Frame instance should have its parent set to Owner as well.
  8. It seems you can emulate auto increment, using a trigger and a generator?
  9. https://quality.embarcadero.com/browse/RSP-41961 The process of cleaning up circular references can be quite challenging, as we today have no good tool to discover and track the unit interdependcy. "Blatant" circular references are explicitly forbidden, but since we can include units both in the interface and the implementation section - it is quite easy to circumvent this rule. Another challenge is when you inadvertently drag in a massive collection of units into your project, because someone needed a structure or function from a specific unit - which again uses other units, which uses others again - and so forth. The discovery of where this unit is included, and when in the compilation it is parsed, would be significantly helped by a simple build log. A sequential log of the compilation of each unit in the application - indicating where it first was necessary to compile another unit to complete the current unit. I suggested it could look something like this - more comments in the QP issue. Pls vote/comment if you find it interesting. unit1 compiling... unit2 compiling... unit3 compiling... unit3 compiled (lines, warnings, hints) unit2 compiled (lines, warnings, hints) unit1 compiled (lines, warnings, hints)
  10. How about an untyped Multiplier and MULTIPLIED_CONSTANT = 1E-11 * NativeInt(MULTIPLIER); ?
  11. Lars Fosdal

    Delphi 12.2 available for download

    Naturally, I forgot about the Parnassus components, otherwise no issues - although FMXLinux was absent in GetIt?
  12. Lars Fosdal

    What are you using AI code-gen tools for that's working well?

    I mostly use CoPilot to extract the stuff I need from massive amounts of documentation. I sometimes use it to summarize key info from a large text. I currently don't use it much for programming, but I would like to use it for explaining "what does this do", or for getting suggestions to improve code.
  13. Works the same way for Uwe for me as well. Ad-blocker issue?
  14. Lars Fosdal

    Delphi Documentation website issues

    It is hard, even in smaller companies. Erosion of responsiblilty...
  15. Lars Fosdal

    Delphi Documentation website issues

    And back... something is not right. Error 503 Service Unavailable Service Unavailable Guru Meditation: XID: 578335475 Varnish cache server
  16. Lars Fosdal

    Delphi Documentation website issues

    Correction: Tried again - got an error message from the Varnish layer. Gone again now...
  17. Lars Fosdal

    Delphi Documentation website issues

    Can't say I see these issues right now?
  18. Lars Fosdal

    Minimum Viable Product (MVP)

    @lope Will there be an ERP, backoffice/accounting system behind the POS solution, or is it intended to be a single software solution? Will you need multiple stations? Multiple sign-ins? Scanners? Weights? Many of your suggested MVP items typically belong to an ERP or backoffice solution. There probably also are a number of existing POS solutions to be found - so unsure why anyone would start reinventing the wheel. I mean, the absolute MVP is a simple till and handwritten receipts with carbon copies...
  19. FYI - Removed the other post, which appeared to be in the wrong sub-forum.
  20. Lars Fosdal

    Watch me coding in Delphi on YouTube

    It may LOOK like a ternary, but looks deceive. It does NOT behave like a ternary op. Both expressions will be evaluated/executed - and not one or the other. The only place I use it, is when I want to emit const values, dependant on an expression.
  21. You are exposing the db endpoint on the network.
  22. Connecting directly to an SQL db from a mobile device is a bad idea. There should be a service in between that offers a REST API to serve the mobile app.
  23. Lars Fosdal

    UK Remote Delphi Developer

    I think you need more detail to attract candidates.
  24. Xiaomi maintain their own Android fork. Can that be a factor?
×