Jump to content

Lars Fosdal

Administrators
  • Content Count

    3303
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Timer game delphi 7

    A VCL:TTimer / FMX:TTimer is something that produces an event after a given interval, so not what you are looking for when you want to measure an interval. A TStopWatch is handy for measuring an interval. A TTimeSpan is an interval and has numerous methods for converting to various time units var t: TStopWatch; time: TTimeSpan; whenever you want to start measuring t := TStopWatch.StartNew; When you want to measure time := t.Elapsed; Alternatively t.Stop; time := t.Elapsed; Have a look at the TTimeSpan doc for how to get the various time units. Your Button1Click does not solve your problem since nothing else can happen while you are inside that code. Sometimes it helps to clarify how to solve a problem by writing the solution in regular text. That is as far as I will go in solving homework assignments.
  2. Lars Fosdal

    Timer game delphi 7

    Use TStopWatch from System.Diagnostics / System.TimeSpan.
  3. Lars Fosdal

    Build managed dll in Delphi

    You can't make managed code with Delphi. What you can make is an unmanaged DLL that can be wrapped from managed code in .NET. Oxygene is native .NET.
  4. Lars Fosdal

    MAP2PDB - Profiling with VTune

    I was just wondering... Does C++Builder also output .map files? What if you had a C++ project that would build in both VS and RAD Studio and compared the VS .pdb with the map2pdb .pdb to spot any differences in structure and loading times?
  5. Try starting LicenseManager.exe and see if you have any stale or invalid licenses around. Delete those if any, and try again?
  6. I am temporarily disabled due to a fractured (bone fully severed at 75° acute angle) upper left arm after slipping on black ice. A nice clean fracture according to the doctors. No surgery or fancy stabilization planned, and the doctors want me to let the body handle it on its own, varying between letting it hang free and using a sling. Typing one handed on Android is somewhat frustrating, so I'll be less active until the worst pain phase is over.
  7. Lars Fosdal

    I will be less active for a few weeks

    Thank you. I hope so too. The feeling of fatigue seems to diminish day by day, so I hope it stays that way. I have tripled the intake of Vitamin D enriched Cod liver oil, just to be sure 🙂
  8. Lars Fosdal

    I will be less active for a few weeks

    Update: I am no longer one-armed, but have about 1.65+ arms 😉 Mobility is decent and pain is limited, but there will be weeks of training to get back the strength and full use. To add insult to injury, I also caught the SARS-Cov-2 English mutation around March 16th, but I was lucky and got a very light progression, almost like a mild flu - but with an unusual amount of fatigue. Wife and stepson also got it, and they lost all sense of taste and smell, while I kept mine. Wife is currently getting her smell/taste back, but stepson still complains about food having no smell/taste or wrong taste, and that toothpaste tastes awful. We have no idea where we got it from, but I was visiting the hospital on that date, so it may even have been from there. The hardest part has been the fatigue. All my adult life, I have never been one to take a nap during the day, and typically have slept around 7 hours every night. The last weeks I've slept 7-8 hours during the night, and on several occasions 3-4 hours in the afternoon. I've been drained, both physically and mentally, and I still tire quickly, but it gets better every day. I highly recommend NOT contracting this shit! Keep your distance, wear that mask, wash those hands - and get vaccinated.
  9. Lars Fosdal

    Scalable IDE Toolbar icons?

    It is a fully working third party component for scalable icons. Edit: I missed that you wanted it specifically for the IDE. I don't know if that is on the road map.
  10. Lars Fosdal

    Scalable IDE Toolbar icons?

    https://github.com/EtheaDev/SVGIconImageList
  11. Lars Fosdal

    FireDac Batchmove

    PowerShell + dbatools is also useful - and free.
  12. I would divide this into f.x. Employee and Role, and perhaps have an extra Contract class connected to the role. I don't see a need for multiple inheritance, but having polymorphic roles and contracts looks natural.
  13. Lars Fosdal

    FireDac Batchmove

    Is it possible to setup the second server as a trusted server on the first? If so, you can use sp_AddServer and sp_AddSynonym to create "virtual" remote tables and do all your copying in SQL from the primary server. If not, ApexSQL Data Diff is great for partial replications. If the tables have a "Time Changed" field, then you would be able to limit the amount of data that you need to pump on each sync.
  14. Looking forward to learn how it works out for you.
  15. @aehimself You need to have the unit as high as possible in the .dpr uses list to ensure that finalization is run as late as possible.
  16. https://pastebin.com/YCiqiNAq Pretty simple but effective. Hasn't failed me yet.
  17. Lars Fosdal

    Install flag to say it's for ALL USERS?

    PAM can be used to grant your user account temporary Local Admin rights if supported by policies. That would solve your problem @David Schwartz
  18. Lars Fosdal

    10.4.2 issue maybe

    Does contain a frame or form with visual inheritance?
  19. Lars Fosdal

    Install flag to say it's for ALL USERS?

    @David Schwartz - Do you know if your org supports use of PAM - Privileged Access Management? That could solve your installation woes. https://docs.microsoft.com/en-us/microsoft-identity-manager/pam/privileged-identity-management-for-active-directory-domain-services
  20. Lars Fosdal

    Sql Server Filtered Index

    @Dany Marmur Partitioning is what it sounds like. Like a disk can be partitioned in multiple file systems, a database table can be partitioned into multiple files. You can do this horizontally - divide up by rows - or vertically - divide up by columns. We use a horisontal partition scheme to split the transaction and movement data of each lot created, processed, stored, moved, and delivered in our 40+ warehouses by warehouse. That is many thousands of rows per day per site, and regulation says the data must be stored for certain period of time past the article expiration date. It is used for tracking purposes if a bad batch should reach the market. We would know who got it, where it has been, where it was made, and from which tanks the raw material came. Another similar database tracks who delivered to those tanks, but that is a much smaller amount of data. To oversimplify - you can use a partition key to decide how to divide the records in a table between multiple "physical" files and hence multiple indexes. If a query includes the partition key, the result set would come from one (or more) of the table partitions - giving the secondary keys a much smaller index to deal with. Partitioning gives you query performance if the partition is well designed. If the result set spans multiple partitions - each of the partition queries can be run in parallel since there is no overlap in the data, and the result set will be a union of those queries. The expression index doesn't really lack anything - partitioning is purely for dealing with massively large tables. For examples of the principles of partitioning - take a look at https://www.sqlshack.com/database-table-partitioning-sql-server/
  21. Lars Fosdal

    Sql Server Filtered Index

    Well, we have a database table that is partitioned on a key - simply because the amount of data is so staggeringly huge. Multi segment indexes makes sense if the table is really large, or the index is very complex.
  22. Lars Fosdal

    Delphi 10.4.2 first impressions

    Is there a QP for this? I'd be happy to vote it up.
  23. Lars Fosdal

    Delphi 10.4.2 first impressions

    @FredS My customers also must deal with the bugs that me and the team creates, and we are dependent on them to provide a reproducible bug for us to fix the problem. Complex software will be complex.
  24. Lars Fosdal

    Delphi 10.4.2 first impressions

    Ah, ok - I never really used it that way. That behaviour is consistent with what I see. So, [dot] used to double as [enter] before?
  25. Lars Fosdal

    Install flag to say it's for ALL USERS?

    Working around AD policies is mission impossible. Depending on the rules, the AD policies may decide to nix your changes to the registry and/or file system. But - installing components to a public folder / public registry key by default would be a nice start. @David Schwartz - I know the pain you are in. I used to depend on LAPS to get stuff done, and that doesn't really help for installation of components. Luckily we managed to broker a deal where us devs got local admin rights, in exchange for treating the internet with extreme paranoia.
×