Jump to content

Lars Fosdal

Administrators
  • Content Count

    3250
  • Joined

  • Last visited

  • Days Won

    107

Everything posted by Lars Fosdal

  1. gammel (Nor) = alter (Ger), but the etymologi is proto-german. Interestingly enough: age (Eng) = alder (Nor), which descends from aldr (old Nor), which again stems from alter (Ger)
  2. A good way to share sources and projects, is to use GitHub or similar.
  3. Lars Fosdal

    WideString.c_bstr() operation in 11.2

    @Roger Cigol Did you switch to the new compiler?
  4. I had to try it, @Attila Kovacs Lars Fosdal: write a poem about clouds in old norse My bad for imprecise instructions as it wrote a poem about "clouds in old norse" rather than about "clouds" in old norse. Lars Fosdal: på gammelnorsk So I asked it to translate it to old norse - and albeit I am not 100% fluent, it is mostly understandable and looks credible. I fed finally fed that to Google Translate, which identified it as Icelandic - and that language is indeed closely related to Old Norse. Not perfect, but not half bad either. It can be a fantastic tool, that can create even more fantastic bullshit unless you are careful with your parameters and your proof reading.
  5. Lars Fosdal

    More precise countdown

    @johnnydp - What is the time precision that you need? Do you need start/one-shot/stop precision, or do you need start/repeat task every interval until/stop? If you are talking more accurate than 15.6ms (Windows default), you are most likely looking at highly CPU intensive custom code or kernel driver assisted timing. In addition, you need to factor in the code required to "complete" the event.
  6. That is great, because YAML - Yikes Awful Markup Language
  7. Lars Fosdal

    Unsupported 16-bit resource in *.RC file

    There is another possible cause: Some of your D6 .dfm files may be saved in binary format, and not as a text .dfm. In D6, open the .dfm files and see if you can view / save them as text.
  8. Lars Fosdal

    New Installation of Rad Studio 10.2 (Tokyo)

    That is about as relevant as commenting "Buy a Volkswagen" on a "How do I fix my Mercedes" post.
  9. Lars Fosdal

    Alphabet Index for navigation on ListView?

    /off-topic I am an Android user. I like apps that work the way Android works. The contact list in Android 13 f.x. shows the current letter group and lets you scroll faster or slower within the current group or to the next or previous group. My suggestion would be that you let the OS "playbook" decide how to navigate in the "native" way, rather to have one solution for all platforms? /on-topic I don't know what kind of component you would use for the letter list, but I assume it is a panel. You have the list of letters - BFTZ - i.e. you have the sizes you need? ch = Client window height n = number of letters ih = character height + spacing height TopOffset = (ch - (n * ih)) div 2; CharPos = 1 .. n CharOffset = TopOffset + ((CharPos - 1) * ih) From this you should be able to create the boxes that you need to do rendering and hit testing on?
  10. Lars Fosdal

    A book about Object Pascal Style Guide

    Less duplicated code -> less work to fix a duplicated error Less duplicated code -> less work to modify a duplicated behaviour Less code -> less chance for errors Less code -> easier to maintain Easier to maintain -> easier to add new features Modern quality code -> shorter time to market
  11. Lars Fosdal

    Alphabet Index for navigation on ListView?

    I assume you want to "stretch" the alphabet to vertically fill the available space. Is this a touch interface or a desktop UI? Is it possible that you could need to scroll the Alphabet list as well? I.e. make the vertical list longer than the height of the screen? It could become awfully fiddly on a mobile display otherwise.
  12. Lars Fosdal

    your own DB vs. 3rd-party?

    The more "fancy" you go, the more unusual challenges you'll meet. I like vanilla. It goes with everything, and the problems I get, have already been solved by others. I think the real question is - Do I need actual SQL abilities or do I just need a basic keystore (key = value(s)). If you need SQL, you need to know - How scalable does it need to be - Do I want to go free/self-hosted or paid/hosted (or the variations in between) - Usually, you get what you pay for. If you just need a keystore, someone else needs to chip in, as I've only done SQL DBs. MongoDB was all the rage for a while in the web store world. Not sure if it has been superceeded by something newer and more shiny? This is true - but even so, enterprise solutions are swinging heavily towards cloud hosting and third party services. That is worth noticing.
  13. Lars Fosdal

    IsValidDate fails after the Year 9999

    The next Y2K like problem is already in 2038, when the 32-bit int that holds a Unix timestamp wraps to a negative number. Aka The Epochalypse.
  14. Lars Fosdal

    A book about Object Pascal Style Guide

    Is it possible to do a divide and conquer - split up the problem into multiple revisions - modernize bit by bit, or is it a house of cards...
  15. Lars Fosdal

    Cross platform HTTP client with proxy support?

    I have a MBP M1 Pro, but I don't have a proxy service to try it on, otherwise I would.
  16. Lars Fosdal

    Cross platform HTTP client with proxy support?

    h:=THTTPClient.Create; h.ProxySettings.Create(<IP>,<PORT>,<USER>,<PASS>); h.Get(<URL>); h.Free; The AV problem is that line two should have read: h:=THTTPClient.Create; h.ProxySettings := TProxySettings.Create(<IP>,<PORT>,<USER>,<PASS>); h.Get(<URL>); h.Free; but, as the documentation says - it would not have made a difference, as the OS settings always take effect on MacOS (and iOS).
  17. Lars Fosdal

    Cross platform HTTP client with proxy support?

    But, it looks like you are correct. MacOS and iOS doesn't allow the app to override the settings in the OS. Platform Behavior Windows The HTTP Client uses the system proxy settings. You can bypass the system proxy settings and you can also provide alternative proxy settings for the HTTP Client. To bypass the system proxy settings, create proxy settings for the HTTP Client and specify http://direct as the URL. macOS The HTTP Client always uses the system proxy settings. Even if you provide alternative proxy settings for the HTTP Client, the HTTP Client uses the system proxy settings. iOS The HTTP Client always uses the system proxy settings. Even if you provide alternative proxy settings for the HTTP Client, the HTTP Client uses the system proxy settings. Android The HTTP Client uses the system proxy settings. You cannot bypass those settings, but you can provide alternative proxy settings for the HTTP Client. Linux The HTTP Client uses the system proxy settings. You cannot bypass those settings, but you can provide alternative proxy settings for the HTTP Client.
  18. Lars Fosdal

    Cross platform HTTP client with proxy support?

    I found this issue: https://quality.embarcadero.com/browse/RSP-40392 which appears to be the same, and it is in status Open. The example code looks a bit weird, though.
  19. Lars Fosdal

    Cross platform HTTP client with proxy support?

    @softtouch- ref. THttpClient on Mac - Access Violation - did you register an issue on the Quality portal?
  20. Lars Fosdal

    A book about Object Pascal Style Guide

    But... so much shit to clean up, and no time allocated to doing it... I'd go nuts.
  21. Find out where that attribute is declared and include the file? or... is this relevant: https://docwiki.embarcadero.com/RADStudio/Sydney/en/Workaround_for_C%2B%2B11_Attributes_(Clang-enhanced_C%2B%2B_Compilers)
  22. Lars Fosdal

    A book about Object Pascal Style Guide

    I'd be looking for a new job with a competent manager. This sounds like an ulcer-inducing task.
  23. Lars Fosdal

    Convert Png To ico fmx delphi

    The iOS sizes are weird, and needs manual rescaling - so I get the sarcasm from @Anders Melander There was a thread with another Delphi tool that made icons, but I can't recall which post.
  24. Lars Fosdal

    FileOpen dialog not showing all files

    Wow, that IS weird.
  25. Lars Fosdal

    400 Bad Request ,nginx/1.14.0

    I recently bought https://www.charlesproxy.com/ for debugging some https header issues. Easy to use and invaluable insights. It has a somewhat annoying trial version that may help you spot the difference between the Firefox and Delphi headers.
×