-
Content Count
3586 -
Joined
-
Last visited
-
Days Won
176
Everything posted by David Heffernan
-
IsValidDate fails after the Year 9999
David Heffernan replied to Nigel Thomas's topic in RTL and Delphi Object Pascal
No. -
We don't need to read the files, and we don't need to write in all supported formats. I guess the only real complication I can see here is the PNG format for 256px images.
-
Generic from the RTL for sorted list of objects
David Heffernan replied to dummzeuch's topic in RTL and Delphi Object Pascal
Sad to see two lookups rather than one when the key is not in the dictionary. But that's the sort of thing that happens when your collection choice is limited. Given those constraints, I doubt this can be bettered. Confused actually. Your previous posts have rejected writing new code because it needs to be tested. -
You could search for a library with support for this. Otherwise the ico format is very simple and comprehensively documented.
-
Generic from the RTL for sorted list of objects
David Heffernan replied to dummzeuch's topic in RTL and Delphi Object Pascal
I don't think there is any generic collection that meets your needs in the rtl. Perhaps you'll just have to give up. -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
Why let lack of knowledge get in the way of offering suggestions? -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
In a language without exceptions, how do you implement your proposed solution? Answer, you can't. -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
In a programming language that didn't have exceptions. Like C. It's then up to the programmer to check if the operation failed. Inspect the FPU status word to do that. -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
Floating point exceptions got masked by the library you used. We've covered this hundreds of times here and elsewhere. Some websearch will reveal more. -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
There's an awful lot of misunderstanding here. In order to help you we'd need to see some concrete examples. -
Tlist<T> growth strategy is bad.
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Even so, you'd still be spending time in the heap allocator which would be undesirable. -
CryptoLib4Pascal in Delphi 10.4
David Heffernan replied to Vilabostan's topic in Delphi IDE and APIs
Yes. The package in this library is a runtime package for use if you are using runtime packages rather than a monolithic executable. Just include the source code for the library and compile it. There is a sample program that does this. -
CryptoLib4Pascal in Delphi 10.4
David Heffernan replied to Vilabostan's topic in Delphi IDE and APIs
Why do you need design time packages for a cryptography library? -
Does ChatAI make StackOverflow obsolete ?
David Heffernan replied to david_navigator's topic in Tips / Blogs / Tutorials / Videos
deleted (why can't we delete posts) -
Does ChatAI make StackOverflow obsolete ?
David Heffernan replied to david_navigator's topic in Tips / Blogs / Tutorials / Videos
What AI could do is the websearch that so many askers on SO don't do, and thus avoid there being so many duplicate questions posted. That would be a plus. -
Does ChatAI make StackOverflow obsolete ?
David Heffernan replied to david_navigator's topic in Tips / Blogs / Tutorials / Videos
I think the answer to the original question is no -
So scale them higher than recommended which is exactly what I do, 14/10*150=210. Problem solved. I wish there was an option to vote against QP issues.
-
Doesn't this depend on what scaling you use in the monitor, in other words what dpi you use. I mean, one point is 1/72 inch. But it will be much smaller if you say your 4k monitor has 96dpi. Rather than sizing your fonts differently, shouldn't you just set the dpi appropriately? I use an editor font size of 9 or 10 but a font scaling of 175% or 200%.
-
You should read about the Python GIL which is liable to be an issue
-
Does ChatAI make StackOverflow obsolete ?
David Heffernan replied to david_navigator's topic in Tips / Blogs / Tutorials / Videos
I'd live to see it answer some of the questions that have been answered on SO, but without being able to refer to SO. In short, no, AI is still a long way from making human though obsolete. It can be a really power tool to use alongside it. -
"Always break line between else and if" vs. comments
David Heffernan replied to uligerhardt's topic in GExperts
Personally I think it's much clearer like this: procedure MyProcedure(a, b: Boolean); begin if a then begin if b then Beep else Beep end else begin if b // Kommentar then Beep else Beep; end; end; -
TDateTimeHelper from D11 that can be used in D10.4?
David Heffernan replied to David Schwartz's topic in RTL and Delphi Object Pascal
I support the current release of my software which is current for a year. When the new version comes out, we stop updating and supporting the previous version. I think that's pretty common. It is frustrating if you are on an older version, but my clients don't mind because they are happy to upgrade. Delphi is somewhat bug riddled and updating can be fraught. The Embarcadero policy would be better if the software wasn't so buggy and new versions weren't so risky. -
Close application during form create??
David Heffernan replied to Ian Branch's topic in General Help
I'd terminate the process -
For a DLL that can be used by hosts outside your control, it's wrong to force the caller to be in console mode. You are hosted by another process which makes its own decisions.
-
A comprehensive guide to Delphi programming language functions and procedures
David Heffernan replied to pouyafar's topic in VCL
What are you talking about? How about some plain speaking rather than writing cryptic messages.