-
Content Count
3416 -
Joined
-
Last visited
-
Days Won
113
Everything posted by Lars Fosdal
-
Is it possible to see Git current working branch in IDE?
Lars Fosdal replied to Mike Torrettinni's topic in Delphi IDE and APIs
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 -
Well, I am staying on 10.4 a bit longer... 😛
-
Delphi 11 Windows XP compatibility tweak
Lars Fosdal replied to mitzi's topic in RTL and Delphi Object Pascal
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. -
Have these been reported in the QP?
-
D10.4.2 weirdness since recent Win 10 update
Lars Fosdal replied to David Schwartz's topic in General Help
Can't say that I have noticed anything like that. -
Is anybody but me using monitors with different scaling?
Lars Fosdal replied to dummzeuch's topic in GExperts
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. -
RAD Studio 11 Alexandria is now available
Lars Fosdal replied to Darian Miller's topic in General Help
Keep it on topic and civil, please. -
RAD Studio 11 Alexandria is now available
Lars Fosdal replied to Darian Miller's topic in General Help
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. -
What everyhing else do you put under source control, apart from Delphi projects?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
There are workarounds for large files and binaries. https://www.perforce.com/blog/vcs/how-git-lfs-works -
RAD Studio 11 Alexandria is now available
Lars Fosdal replied to Darian Miller's topic in General Help
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. -
What everyhing else do you put under source control, apart from Delphi projects?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
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). -
What everyhing else do you put under source control, apart from Delphi projects?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
I also use Google Drive as a scratch pad for various purposes. Autosave and versioning rules! -
What everyhing else do you put under source control, apart from Delphi projects?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
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. -
In that case, use index arrays and reorder the indexes instead of shuffling values.
-
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?
-
Generics compiler Error "Incompatible Types"
Lars Fosdal replied to luebbe's topic in Algorithms, Data Structures and Class Design
Then twiddle thumbs until Delphi 12... -
Generics compiler Error "Incompatible Types"
Lars Fosdal replied to luebbe's topic in Algorithms, Data Structures and Class Design
Is there a tidy way to avoid this conundrum? -
Perhaps post a suggestion on https://quality.embarcadero.com ?
-
Good point.
-
Datasnap Connection Too Slow When No Other Software is Connected to the Database on the Server
Lars Fosdal replied to MikeMon's topic in Network, Cloud and Web
BTW: What is the setting of this one? https://docwiki.embarcadero.com/RADStudio/Sydney/en/Server_Class_LifeCycle -
Datasnap Connection Too Slow When No Other Software is Connected to the Database on the Server
Lars Fosdal replied to MikeMon's topic in Network, Cloud and Web
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... -
Datasnap Connection Too Slow When No Other Software is Connected to the Database on the Server
Lars Fosdal replied to MikeMon's topic in Network, Cloud and Web
Surely there must be some sort of mechanism that governs the lifetime of a DS session? -
Datasnap Connection Too Slow When No Other Software is Connected to the Database on the Server
Lars Fosdal replied to MikeMon's topic in Network, Cloud and Web
I am talking about the server-side KeepAlive setting? -
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;
-
Datasnap Connection Too Slow When No Other Software is Connected to the Database on the Server
Lars Fosdal replied to MikeMon's topic in Network, Cloud and Web
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 ?