-
Content Count
3504 -
Joined
-
Last visited
-
Days Won
115
Everything posted by Lars Fosdal
-
Where is the Welcomepage directory in Delphi 11 Alexandria?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
I don't think so. I still have the welcome page, but GetIt is not loading data for me either. -
Where is the Welcomepage directory in Delphi 11 Alexandria?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
One per Package you disabled. -
Where is the Welcomepage directory in Delphi 11 Alexandria?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
At your own risk - Under Rename $(BDS)\Bin\WelcomePageIDE280.bpl to f.x. XXX-$(BDS)\Bin\WelcomePageIDE280.bpl When you start Delphi 11, it will state that the package can't be found and asks if you want to try to load it again on next start. Voila - no welcome page. You can do the same with the other WelcomePage packages as well since they then no longer are used. -
C++ or Delphi?
-
read integer value from database, best practice ?
Lars Fosdal replied to FranzB's topic in Databases
@mvanrijnen - I don't use Interbase, so I can't say for sure, but in SQL Server they differ slightly. -
Ctrl+F3 seems to be "built in" as a synonym for Ctrl+Alt+S. Search Entire Scope seems to follow most recently used state. F6 - No idea. Would it be possible to grab the hotkey from elsewhere in the IDE?
-
Didn't support multi threading IIRC The closest it came, was non-preemptive multitasking. https://en.wikipedia.org/wiki/Cooperative_multitasking But, DPMI allowed you do actual concurrent programming. I had true multitasking COM port threads in some of my Borland Pascal DOS apps.
-
No. FastMM has different heaps for small vs large allocations. FastMM can grab very large chunks of memory from Windows and suballocate according to what you need. https://docwiki.embarcadero.com/RADStudio/Sydney/en/Memory_Management#The_FastMM_Memory_Manager_.28Win32_and_Win64.29 The guesswork from the memory manager on how your allocations may be resized, will impact how much memory it allocates and can explain the "overuse" of memory. Also, how your data is represented decides how much data needs to be rearranged on sort. The larger the chunks are that need to be rearranged, the higher the time cost. To rephrase: Less moving of data = better performance. Again, without actual code, it is not possible to theorize on the bottlenecks of your bucket sort vs quick sort comparison.
-
Menu captions with images are hard to read under Windows 11
Lars Fosdal replied to Tom Mueller's topic in VCL
"Ouch! - that bit!" Eight bits = 1 byte here as well? /disappearing backwards into the hedge -
Are you using Delphi 11 with mainstream projects?
Lars Fosdal replied to Clément's topic in Delphi IDE and APIs
Nope. As always, we are waiting for Update 1 before we re-evaluate. -
Having a fast SSD doesn't hurt, nor does it hurt to have source and output on different drives, but I wish I could get a CPU that had a core that could be clocked really high, since the compilers mostly are single core intensive.
-
In that case, @David Schwartz, it is probably the DI book, as you speculated above. https://www.amazon.com/Dependency-Injection-Delphi-Nick-Hodges/dp/1941266223 The other approach, using interfaces vs include files- has been touched here: https://stackoverflow.com/questions/1011006/separating-interface-and-implementation-classes-in-delphi and interfaces are discussed in Nick's Coding in Delphi and IIRC in the good old "Delphi in a Nutshell" by Ray Lischner.
-
Installer (Innosetup) - welcome page yes or no?
Lars Fosdal replied to Mike Torrettinni's topic in Delphi Third-Party
I like installers that have proper parameter support - including /Silent -
Delphi 11.0 has a different form Caption offset than Delphi 10.4
Lars Fosdal replied to Tom Mueller's topic in VCL
OwnerDraw? Edit: i.e. handle WM_NCPAINT and WM_NCACTIVATE, etc. yourself. -
Working with SVG in OpenXML SDK in Delphi
Lars Fosdal replied to misc_bb's topic in Delphi Third-Party
Have you tried using an XML lint tool or validator to check the integrity of the XML file? The MS Word Error is inconclusive to whether it is a structural error, character set error, or logical error in the XML. -
Dependency Injection. Works like charm unless you need absolute raw performance. I use that quite a bit for pluggable capabilities. I am not a fan of .inc files at all. I use platform specific units and ifdef the uses statements. I do have a xplatform unit that ifdefs the various implementations - many of who simply raise Exception.Create('Not implemented'); 😛
-
I am not confused. I am frustrated. I want both. Most of all, I want 64-bit debuggers that understand threads and make it easy and robust to focus debugging on specific threads, and that doesn't suddenly stop breaking on breakpoints or break on "invisible" breakpoints in Indy, or just purely stop responding completely. I'd love to be able to "disable" exception breaks for specific threads and only for those threads. I want the broken HighDPI properly and finally fixed. I want the code generation significantly improved for 64-bit. I want RTL, VCL and FireMonkey to be rock solid and efficient. But - also ... I want Generics constraints for enumerated types so that I can use enumerated type and set type operators. I want proper nullable type support, including the relevant operators. I want ARM support for Windows. I want ARM/Linux support for Raspberry PI. I want the static code analysis capabilities of FixInsight and similar, to be built into the DSP. I want a package manager that really works, unlike GetIt which is just a glorified downloader and installer. I want Swagger support for APIs.
-
read integer value from database, best practice ?
Lars Fosdal replied to FranzB's topic in Databases
If a column is nullable, it is a good practice (for T-SQL) to use stuff like ISNULL(MyString, '') or ISNULL(MyInt, 0) in queries, particularly if there are totals or min/max operators in the query or view. -
Object Pascal Handbook - Delphi 10.4 Sydney Edition - Marco Cantù (2020) - 571pg
Lars Fosdal replied to a topic in Tips / Blogs / Tutorials / Videos
The link appears to work for me. -
How to manage feature changes during release cycle?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
If you avoid this, one of the branches will be left unfixed. You always must fix it in both places. The question really boils down to which model you use. -
How to manage feature changes during release cycle?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
I guess it is because conceptual explanations tend to look at time starting from the top, going down - while actual systems tend to show recent events on top, going back in time as you move downwards. Ref. email inboxes, Windows Event Viewer, GitKraken, etc 😉 For the graphical view, it also makes sense to have the main branch + longest living branches on the left, since the number of branches varies. -
Is there a Delphi lib that can generate an RFC-4122 UUID?
Lars Fosdal replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
The RFC describes four variant formats, and the MS GUID is variant 2. I am simply wondering if there is another implementation than the MS one available to me in case the MS one is not compatible with IBMs requirements. uses System.SysUtils; var guid: TGuid; sguid: string; begin if CreateGUID(guid) = S_OK then sguid := 'urn:uuid:' + guid.ToString.ToLower; -
How to manage feature changes during release cycle?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
As long as what you push to the shared repository, compiles 🙂 It is very annoying if teammates commit code that doesn't compile. -
How to manage feature changes during release cycle?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
Correct. Most UIs for git visualize branches and merges. -
How to manage feature changes during release cycle?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
They are. GitKraken supports implements the GitFlow convention, simplifying the execution of that workflow.