-
Content Count
3565 -
Joined
-
Last visited
-
Days Won
120
Everything posted by Lars Fosdal
-
Organizing enums
Lars Fosdal replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Well, we have thousands of meaningful and reasonably obvious names (within their context) - but yeah - remembering them gets harder every year. Age takes its toll. 😛 But - Code Insight should work whether you are assigning or passing as a parameter. Unfortunately, it has often put the enumerated values a long way down the list of candidates. We've only started using 10.4.1, so the jury is still out on this issue, but the LSP has been less than rock solid so far. -
Are we talking about MS SQL Server T-SQL - or is there a TSQL class somewhere? Regardless of which - I'd say go for FireDAC.
-
Large address space awareness. How to test properly?
Lars Fosdal replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
IMO, the > 2Gb 32-bit trick is an errorprone kludge. We are also dependent on 32-bit DLLs - but are considering going the extra length to isolate them behind an API of some sort. -
Double-dabble to convert binary to decimal
Lars Fosdal replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
@limelect Press to insert code without having the editor destroying it. -
@Anders Melander - Would you need to clone that SVG imagelist if you need to use different sizes of icons at the same time?
-
Related: A good source of SVG icons: https://www.flaticon.com/
-
Automatically killing a service when stuck
Lars Fosdal replied to Thijs van Dien's topic in Windows API
Absolutely. But nevertheless a goal. You need to KNOW the challenges with each component, and know how to work around them. Restarting is an option, but it should be a choice, not a result of a crash. As for "A network socket that couldn't connect" - Do you have to restart your services for that reconnect to happen? -
Migration from BDE paradox to TFDtable or other options
Lars Fosdal replied to Javier TarÃ's topic in Databases
In this case - you just may have to. The mechanisms are so completely different from Paradox to SQL, especially for large tables. You could in theory write a wrapper that can emulate locate and SetRange - but that would be a stumbling block. -
Migration from BDE paradox to TFDtable or other options
Lars Fosdal replied to Javier TarÃ's topic in Databases
Back before 2006, I had literally terabytes of data in Paradox tables on client sites. It initially used local tables on the client, the moved to shared tables on a file server, before I wrote a client/server middleware type of access method that got rid of a LOT of sharing/concurrency issues. I was very happy to leave that in the back mirror. If you want to keep the Paradox tables but change the access method - I'd question if it is worth the hassle. If you are going to migrate, why not do it properly? -
Best type for data buffer: TBytes, RawByteString, String, AnsiString, ...
Lars Fosdal replied to Rollo62's topic in Algorithms, Data Structures and Class Design
I'd have a TBytes buffer and a list/array on the side where the parser breaks down the offset, "type" and method for extracting the buffer content in the appropriate form. If you use a circular buffer - it is slightly more complex - but not exceedingly so. The list/array on the side could also be circular. -
Best type for data buffer: TBytes, RawByteString, String, AnsiString, ...
Lars Fosdal replied to Rollo62's topic in Algorithms, Data Structures and Class Design
Another factor for your choice: TBytes - zero based indexes AnsiString/RawByteString - one based indexes So - doing over will be a pain. -
Contributing to projects on GitHub with Subversion
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
o.0 - I have it running on several machines, and haven't seen that trick yet. Auto-upgrade, yes, but not auto uninstall. -
Best type for data buffer: TBytes, RawByteString, String, AnsiString, ...
Lars Fosdal replied to Rollo62's topic in Algorithms, Data Structures and Class Design
How are the strings delimited in the buffer? IMO, if you need to copy the strings out of the buffer to work with them anyways, you might as well future-proof for non-ascii and copy to a regular string with the appropriate routine. That can allow you to sanity check the string in context of format, and handle abnormalities. -
Best type for data buffer: TBytes, RawByteString, String, AnsiString, ...
Lars Fosdal replied to Rollo62's topic in Algorithms, Data Structures and Class Design
What format is the string source? UTF-8? Ansi? How are string buffers measured? Byte/word length? Character length? Zero terminated? -
Best type for data buffer: TBytes, RawByteString, String, AnsiString, ...
Lars Fosdal replied to Rollo62's topic in Algorithms, Data Structures and Class Design
TBytes. -
Contributing to projects on GitHub with Subversion
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
GitHub. We are moving world+dog to the cloud. Current SVN is on-site, and requires maintenance. -
Contributing to projects on GitHub with Subversion
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
The organization wants us to switch from SVN to GitHub, but most of use have very limited experience with git - so it is a learning curve that I expect will yield some hard-earned experiences. However, I think we'd want to go all in, instead of this in-between solution? -
First impressions, based solely on the visuals: All sides have the same color, which gives you little to no contrast. You don't have a highlighting color for the contour. Perhaps slightly darker sides would help, and maybe a lighting source to enhance contrasts?
-
That second one was bad.
-
I see that the second option in the answer is the same as mine.
-
I.e. that server does not produce valid Json.
-
We do use it at work. It is pretty uncomplicated to use, but yeah, a lot of features and settings to be explored to master it fully.
-
@dummzeuch Have you tried the free Solo version of Continua CI? It is full featured but limited to one task at a time. Beats batch files by a mile.
-
Automatically killing a service when stuck
Lars Fosdal replied to Thijs van Dien's topic in Windows API
"Let it crash" is not on my list of stability strategies. -
What if you test it on the Form/Frame OnKeyDown and check if the Sender is that Combo? Would you then be able to instruct the Combo to do the "Enter thing"?