Jump to content

Lars Fosdal

Administrators
  • Content Count

    3416
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Is it possible to see Git current working branch in IDE?

    Not really well versed in SourceTree, but GitKraken is very explicit about it. Otherwise, git rev-parse --abbrev-ref HEAD in your working folder, according to https://stackoverflow.com/questions/6245570/how-to-get-the-current-branch-name-in-git
  2. Lars Fosdal

    Delphi Version in profile

    Well, I am staying on 10.4 a bit longer... 😛
  3. I am with @Anders Melander - If you need XP compatible software, you need to use an older Delphi. Cutting technical debt is vital to simplify any system.
  4. Lars Fosdal

    Generic Type Inference

    Have these been reported in the QP?
  5. Lars Fosdal

    D10.4.2 weirdness since recent Win 10 update

    Can't say that I have noticed anything like that.
  6. Lars Fosdal

    Is anybody but me using monitors with different scaling?

    My computer is a Lenovo P52 with a 15.6" 4K screen (which is absolutely a waste at that size), which is set up to 200% scaling. My main display is a 31.5" 4K monitor at 100% scaling. I can't imagine not working off a 4K screen. So much more code on screen.
  7. Lars Fosdal

    RAD Studio 11 Alexandria is now available

    Keep it on topic and civil, please.
  8. Lars Fosdal

    RAD Studio 11 Alexandria is now available

    Based on previous experiences, I used the 10.4.2 LicenseManager to remove all the licenses, then re-registered during installation of Alexandria. Both 11 and 10.4.2 had a valid license after that. But, YMMV.
  9. There are workarounds for large files and binaries. https://www.perforce.com/blog/vcs/how-git-lfs-works
  10. Lars Fosdal

    RAD Studio 11 Alexandria is now available

    For subscription users, both the web installer and the iso is available on https://my.embarcadero.com. The details on what is new: https://www.embarcadero.com/products/rad-studio/whats-new-in-11-alexandria Note that not all GetIt components have been updated for Alexandria yet. Also - at the point of writing - the docwiki is down for the update. It can be installed in parallell with 10.4.x or older, but remember not to mix your versions. Forms modified in 11 may then break for 10.4.
  11. Both. I have scratchpad documents for work-in-progress designs and other notes. My Greenshot (screenshot clipper) also automatically copies screenshots there - so that I can make any number of screenshots in a row without having to think about storing them as I "shoot". It does mean that I have to go in and clear that folder from time to time 😄 So, why not a just the local copy? Well, sometimes I need to access this while on my phone (a question arises, an idea pops up, etc when I'm not near my work computer).
  12. I also use Google Drive as a scratch pad for various purposes. Autosave and versioning rules!
  13. Code, scripts, configurations, schemas, graphics, etc in git Any kind of Office 365 Docs in Teams/SharePoint (where they also are versioned) System documentation in Confluence and Ardoq. Executables are archived and placed in staging folders on the file server by the build server.
  14. Lars Fosdal

    Maximum static memory

    In that case, use index arrays and reorder the indexes instead of shuffling values.
  15. Lars Fosdal

    Maximum static memory

    Are you using arrays of records? How large records? Are you shuffling whole records when sorting? If so, why not have an array of pointers to records, and shuffle the pointers instead of the actual data?
  16. Then twiddle thumbs until Delphi 12...
  17. Is there a tidy way to avoid this conundrum?
  18. Lars Fosdal

    TPopupMenu with group headers

    Perhaps post a suggestion on https://quality.embarcadero.com ?
  19. Lars Fosdal

    TPopupMenu with group headers

    Good point.
  20. BTW: What is the setting of this one? https://docwiki.embarcadero.com/RADStudio/Sydney/en/Server_Class_LifeCycle
  21. I'd try to find the classes that handles DB connectivity and see where in the codepath you are when the connection is dropped. Somewhere in that callstack there must be a logical explanation. Otherwise, add a watchdog connection that keeps things alive? Brute force, I know... but...
  22. Surely there must be some sort of mechanism that governs the lifetime of a DS session?
  23. Lars Fosdal

    TPopupMenu with group headers

    Nice idea, @chkaufmann and nglthach. I had to change it around a little to get it to work, as I instantiate the menu items at runtime. Since I don't assign an OnClick handler, I don't need to disable the entry. I mucked around with colors for a while. Currently using Bold White on DarkGrey which works "ok" for both light and dark themes. type TMenuItemGroup = class(TMenuItem) protected procedure DoAdvancedDrawItem(Sender: TObject; ACanvas: TCanvas; ARect: TRect; State: TOwnerDrawState); public constructor Create(AOwner: TComponent); override; end; constructor TMenuItemGroup.Create(AOwner: TComponent); begin Inherited; OnAdvancedDrawItem := DoAdvancedDrawItem; end; procedure TMenuItemGroup.DoAdvancedDrawItem(Sender: TObject; ACanvas: TCanvas; ARect: TRect; State: TOwnerDrawState); begin ACanvas.Brush.Color := TColors.Darkgrey; // TColors.SysHighlight; // TColors.Darkblue; ACanvas.FillRect(ARect); ACanvas.Font.Color := TColors.White; // TColors.SysHighlightText; // TColors.White; ACanvas.Font.Style := [fsBold]; ACanvas.TextRect(ARect, ARect.Left + 3, ARect.Top + 3, StripHotkey(Caption)); end;
  24. It may be because the datasnap server tears down the connection when nobody is using it. It may be configurable. What is the setting of Server.KeepAlive ?
×