Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. difficult to reconcile these two snippets
  2. David Heffernan

    Using lame_enc.dll to encode to MP3

    Did you submit a PR for these changes?
  3. David Heffernan

    Using lame_enc.dll to encode to MP3

    Did you submit a PR for these changes?
  4. David Heffernan

    2022 Stack Overflow Developer Survey

    These sort of shitty posts are precisely why SO ask these questions.
  5. I guess you should just hire a programmer to do the work for you, if you don't know where to start. You already suggested this. Do a kickstarter or similar.
  6. David Heffernan

    2022 Stack Overflow Developer Survey

    I presume that they are concerned that their community isn't discriminating against any particular groups of people.
  7. It's just a lexicographic order. If the primary comparison is equal, move on to the secondary etc until you separate the teams.
  8. David Heffernan

    Windows APIs?

    Delphi can access all Windows APIs and the best reference is MSDN.
  9. David Heffernan

    ExtractFileDir

    Er, yes, that's what I meant to type
  10. David Heffernan

    ExtractFileDir

    Isn't it ExtractFileName(ExtractFileDir(ExeName))
  11. David Heffernan

    Maximized the main form

    Does this happen with a brand new VCL app with a single form that does nothing? If not then the answer is specific to your code.
  12. David Heffernan

    Maximized the main form

    This should not be necessary. It also seems like there would be scenarios which this would stop the user doing things they want to do.
  13. David Heffernan

    TortoiseGit with Delphi 10 Seattle

    Why would you try to put these two together. You use TortoiseGit inside explorer surely.
  14. David Heffernan

    Does ProgressBar Inside StatusBar Still Working?

    I also owner draw into a status bar panel for this need. It's pretty straightforward.
  15. David Heffernan

    Survey of Delphi Versions in use??

    No they don't. I'm talking about actual statisticians as in a branch of mathematics.
  16. David Heffernan

    New Delphi job opportunity

    It just seems so weird to me that there is such a thing as a Delphi developer. Are companies really not prepared to teach people? How can it be harder to learn a new language than to learn a new code base? Nothing here computes to me.
  17. David Heffernan

    Exception class EConvertError issue

    Bug in your code. Show a minimal reproduction.
  18. David Heffernan

    ImageLists. One or Multiple??

    As an aside what annoys me about image lists in Delphi is that they lump all images in one big dfm blob. I like to keep my icons in icon files and link them as a resource. Then load them up at runtime. It means that when you need to update one you just change the ico file in one place. But then you don't get to see icons at design time. I'd like to have my icons in resources and see them at design time. Such a system must be possible.
  19. David Heffernan

    A question for thread reference

    Multithreading in Python is inevitably blocked by the GIL. Nothing you can do about it. No magic solution. See countless discussions of this topic on the broader internet. In other words the issue is not related to Delphi or p4d but is a fundamental design choice in Python.
  20. David Heffernan

    Survey of Delphi Versions in use??

    This question is the one that drives statisticians around the world completely mad. You need to decide on your goals before deciding what data to collect.
  21. David Heffernan

    Record / Class

    Why return a pointer to self? You just risk having that pointer outlive the record instance. Make this a constructor or a static class function that returns a new instance. BTW I remembered wrongly before. No need for a helper to implement a static class function that returns rTxt.
  22. David Heffernan

    Record / Class

    The final function can't be right. It should be a static class function, but that's not enough. What would it return? A pointer to what instance? You'd need to allocate an instance somewhere. I'd use a helper record to get around the inability to forward declare value types.
  23. David Heffernan

    Survey of Delphi Versions in use??

    When polling you need a methodology. If you poll the entire population, it's easy. But if you poll just a sample, then you need to choose the sample carefully so that it is representative, and you need to follow up non respondents. There is a lot of science in polling to get meaningful data. A self selecting poll on a site like this will not tell you very much if anything about the overall population. But perhaps you just want to know what active members of this site use. And even if that's what you want, it will be hard to impossible to get accurate data
  24. David Heffernan

    How to get json array from string?

    Quite odd to copy some code from an SO question that is in the wrong language. This code is Java.
  25. David Heffernan

    Getting PID of winword.exe based on filename

    Which means the original idea was doomed.
×