Jump to content

Lars Fosdal

Administrators
  • Content Count

    3504
  • Joined

  • Last visited

  • Days Won

    115

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Inherited on Properties and co.

    If it is public, why do you need to use inherited? I think the point just wooshed over my head here. (Not the first time)
  2. @Marco Cantu I wish I as a subscriber could download it without having to reenter information already in your systems.
  3. Lars Fosdal

    Inherited on Properties and co.

    I guess private is not private - unless strict private?
  4. Lars Fosdal

    Inherited on Properties and co.

    That is interesting - and a little disturbing.
  5. BTW; Wouldn't this do the job without putting extra load on the PC? https://www.philips-hue.com/en-nz/p/hue-play-hdmi-sync-box-/8718699707248
  6. Lars Fosdal

    Delphi and the new Apple M1 CPU

    Voted and watched too.
  7. True, although he may need to take into the consideration whether the monitor and game is using HDR or not?
  8. @Der schöne Günther I.e. the overall luminosity of the image? https://stackoverflow.com/questions/7964839/determine-image-overall-lightness Unsure if there needs to be something additional in the equation as mathematical and perceived luminosity might not be the same?
  9. Lars Fosdal

    Free EurekaLog license drawing

    Congratulations, @Attila Kovacs 🙂
  10. Lars Fosdal

    Sidney, RestDebuger and REST

    First rule of fight club - you never talk about fight club. Same thing for beta versions.
  11. Lars Fosdal

    record with null-terminated string

    If the initial description is accurate - you don't really have a record - but a stream? I.e. the length of the string is variable, not fixed and #0 padded? [int flags][int dummy][shortish string#0][int padding][int flags][int dummy][this is a lot longer string#0][int padding] Decoding the stream would have to be done element by element, and it would be necessary to know the format of the string - is it ASCII, ANSI (if so, what codepage) or UTF-8. To put it into a more manageable format, you could use your initial record - but you would have to read it element by element to stuff that record or object structure. This can be done in a number of ways - such as a TFileStream or by going old school BlockRead. A well designed stream would have had the string length as an int before the string - but now you instead have to scan for that #0 termination.
  12. Lars Fosdal

    Getit package manager in 10.4

    Self-repairing problems are the best, Totte 🙂
  13. Lars Fosdal

    Getit package manager in 10.4

    There is a workaround in the following thread.
  14. Lars Fosdal

    Install recent Delphi versions on Windows XP

    We've replaced a lot of expensive industrial PCs with WinMate and Surfaces tablets. They are so much cheaper that the economy of possibly having to replace them more often is a no-brainer. The only exception are trucks that need to operate in -27°C - that is when you need those industrial solutions. Having those tablets on vanilla Windows 10 is a bonus.
  15. Lars Fosdal

    Delphi and the new Apple M1 CPU

    @Hans♫ - How performant is the M1 compared to the i5?
  16. Lars Fosdal

    Hashing Street Addresses ?

    There is one way that can avoid duplicate "hashes" or in this case - ensure a unique key - but it is not super performant, since lookup a database is expensive - but it will give you a fixed length unique identity for a signature. Create a signature table in a DB and add a text field for the signature and a constraint for it to be unique. Add an identity column as either an auto incremented int field, or an auto-generated GUID field. The identity column will be your unique "hash". Edit: If the "hash" will be exposed to third party - the GUID is recommended - since you cannot easily inject randoms GUID to access data - as compared to a sequential id which are predictable.
  17. Lars Fosdal

    Hashing Street Addresses ?

    Even though they may refer to the same physical address? In a warehouse management system, unique client identities and their addresses is a continuous source of "entertainment".
  18. Lars Fosdal

    Hashing Street Addresses ?

    A major difference here is that a coordinate in What3Words is strictly defined. A signature built from combined data from external sources is far more difficult. Consider '1688 High St.' vs '1688 High Street' as an example.
  19. Lars Fosdal

    Hashing Street Addresses ?

    Signature - a unique footprint of data Hash - algorithmic calculation on a signature
  20. Lars Fosdal

    Hashing Street Addresses ?

    It looks like he wants to use a hash as a signature for an address - but that signature is only as good as the code doing signature building and the quality of the supplied data. The algorithm would need to understand ordering, abbreviations, perhaps even common typos.
  21. Lars Fosdal

    Install recent Delphi versions on Windows XP

    I just did an inventory of our warehouse hardware and discovered an Intermec industrial Truck PC running XP that had been overlooked. Hopefully, it will be brought up to ... drumroll ... Win 7 SP 2 soon. I guess it is time to start shopping for some newer truck PCs. Luckily, our truck PC software doesn't seem to have any Win10 specific code in it.
  22. Lars Fosdal

    full screen view capture

    https://blog.mindorks.com/how-to-programmatically-take-a-screenshot-on-android explains how to do it in Java - but the question remains - how to get hold of the parent handle/coordinates in Delphi?
  23. Lars Fosdal

    full screen view capture

    Doh! The risks of reading the Unread Content list and not paying attention which subforum the post is in. My bad.
  24. Lars Fosdal

    full screen view capture

    http://forum.codecall.net/topic/60613-how-to-capture-screen-with-delphi-code/
×