Jump to content

corneliusdavid

Members
  • Content Count

    627
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by corneliusdavid

  1. Your record structure would have a lot of string fields, one for each possible type of data you want to save; it'd also have a DateTime field so you could record when the snapshot of your system was taken. The key is to be consistent in how you store the data; for example, the network adapter information should always be stored in the same field(s) requiring some way of identifying them (or lumping all network adapters in one big memo field, perhaps). I'd probably create a detail table for some fields, like the storage section in your screen-shot above. You could have a field for GUID to identify each disk and then the main table would have a summary of how many disks and the total GB. You could use something like Mitec System Information components to scan your computer every time it booted up and if something changed, add an entry to your database with a new date/time stamp. Later, you could go through and see various changes over time as you scan the records. You could also filter on certain fields to see when something changed. It's really important that you evaluate what and how often your data will change and what you want to do with it later. If this is a product you're building for others, definitely store it in a database; if it's just a one-time information gathering tool for your self over the next six months as your play around with different hardware configurations, just manually enter stuff into a spreadsheet. It really depends on your usage requirements and how much time you have.
  2. I'd be tempted to throw it in a small SQLite database. You could add date/time stamp and add to it over time, then even do queries on it to see history of specific changes or compare with other systems. Then again, maybe that's overkill.
  3. corneliusdavid

    Best Delphi AI

    You asked this last May. Are you looking for a different kind of answer or new responses or just refreshing the question since this technology is so new and moving so fast? I don't use AI very often but Claude is the one I signed up for and like it. It helps jump-start Delphi coding in some cases; but it's really great at building HTML pages for web projects integrated with a Delphi web server.
  4. corneliusdavid

    Saving Explicit Properties??

    I think what you might be seeing is standard behavior of the IDE saving property values. If the property has a default value, and that's the current setting of that property, it won't save to the DFM, it'll only save if it's different than the default or if there is no default. For example, a blank VCL application's Form might look initially like this: object Form1: TForm1 Left = 0 Top = 0 Caption = 'Form1' ClientHeight = 324 ClientWidth = 401 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -12 Font.Name = 'Segoe UI' Font.Style = [] TextHeight = 15 end If you check AlphaBlend, AutoScroll, and AutoSize in the Object Inspector, the DFM will look like this: object Form1: TForm1 Left = 0 Top = 0 Width = 417 Height = 363 AlphaBlend = True AutoScroll = True AutoSize = True Caption = 'Form1' Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -12 Font.Name = 'Segoe UI' Font.Style = [] TextHeight = 15 end This has the three additional properties because they're no longer the default value. If you uncheck them in the Object Inspector and save the form, it reverts back to the first one. Is this perhaps what you're seeing?
  5. corneliusdavid

    Code signing in a remotely working team?

    I bought a 3-year cert in Nov, 2022 so still have another year left on mine. But I'll definitely be looking at your offering. I've got a couple of YubiKeys already--sounds great!
  6. corneliusdavid

    Saving Explicit Properties??

    Once enabled, be sure and click Configure... You can individually turn each one (left, top, width, height) on/off.
  7. corneliusdavid

    Saving Explicit Properties??

    In the GExperts Plug-in's Configuration, there's an option:
  8. Delphi 12.2 introduced a new text-processing engine, WebStencils, that can be used in WebBroker and other applications to generate HTML and other template-based text. To get my head around how to work with this, I wrote a couple of small WebBroker applications, one using PageProducers and the other doing the same thing using WebStencils. You can read about it in my latest blog entry, Introducing WebStencils and download the projects from Github. I hope this is useful for learning about this new text-processing engine.
  9. corneliusdavid

    Work-around for TEdit vertical alignment problem

    I agree with Uwe but if you really want the space around your edit area, perhaps put the edit box in a panel, check AlignWithMargins, and turn off the border for the text box.
  10. corneliusdavid

    Free wizard component?

    There's a demo of how to do this on GetIt.
  11. corneliusdavid

    Get It UI control ?

    https://blog.marcocantu.com/blog/2021-february-new-vcl-controls-1042.html
  12. corneliusdavid

    Delphi 12.2 available for download

    I saw this yesterday as well for programs that were compiled with "Link with runtime packages" checked. The programs ran fine from the IDE but when I copied the .EXE out to a network share and tried to run it from there, I got the error. Not only did I need to recopy the BPLs from the newer version of Delphi, I also had to add two or three. After building the program, select Project > Information for <projname> and look through the list of packages that are used by that program.
  13. corneliusdavid

    Delphi 12. Structure window, tab control

    Thanks for the correction, Uwe. Yes.
  14. corneliusdavid

    Delphi 12. Structure window, tab control

    Using the Structure Pane? No. The TTabControl and its tabs are one control, the tabs don't even show in the Structure Pane. The TTabControl is there for backwards compatibility; you should use TPageControl in new applications.
  15. corneliusdavid

    Using Deplhi TWebmodule with parameter

    What would be the benefit to doing this extra work rather than letting WebBroker parse it for you into QueryFields?
  16. corneliusdavid

    Using Deplhi TWebmodule with parameter

    I haven't used either of these in a WebBroker app but I think the asterisk will match any URI; for example, both /getname/list and /getname/edit. I don't remember seeing ":id" on the end of PathInfo in any examples; not sure what that's for.
  17. corneliusdavid

    Using Deplhi TWebmodule with parameter

    The pathname should not contain the asterisk, just /getname You don't have to "create" the parameters, by simply accessing the URL with something like /getname?ssn=123456789&dob=19990531, the TWebActionItem parses out the URI and creates the parameters for you. Then, you just access them in your event handler like this: procedure TMyWebApp.ActionHandler(Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean); var SSN: string; DOB: string; begin if Request.QueryFields.Count >= 2 then begin SSN := Request.QueryFields.Values['ssn']; DOB := Request.QueryFields.Values['dob']; ... The "?" starts the beginning of the list of parameters; the "&" separates the parameters. On a side note, you should never pass private info this way (using the GET method on the URL); instead you should put them in a POST BODY. But that's a different topic.
  18. corneliusdavid

    Getit Package Manager working?

    Do you have it filtered?
  19. corneliusdavid

    Two CE Versions on same PC

    Good to know!
  20. corneliusdavid

    Two CE Versions on same PC

    While I don't use CE and don't have an official answer for you, I would highly doubt this is possible--don't jeopardize your current installation! The CE FAQ doesn't answer this specific question but the fact that 1) it doesn't allow Delphi & C++Builder (only one or the other) and 2) doesn't allow CE and a paid version on the same machine, I'm almost positive it wouldn't allow two different CE versions to coexist. You could, however, install a virtual machine, and try it out there as it would be a completely separate environment.
  21. corneliusdavid

    Which of the 3 LLMs might be the best to try in 12.2?

    I believe each has a free trial or limited mode; try them out to see what works best for you, then sign up for that one. I posed similar questions to each and thought the response from Claude was the best.
  22. corneliusdavid

    Delphi 12.2 available for download

    Right+Click in the Code Editor and select "Smart CodeInsight" and select "AI Chat".
  23. corneliusdavid

    SQLite with Delphi 7

    It looks like ZeosLib is still active: https://sourceforge.net/projects/zeoslib/ I have no experience with it but recent updates says it supports Delphi 7 through 12.
  24. If you purchased "support" I think you may have purchased the wrong thing. Support is for Embarcadero to help you with programming questions. I think what you wanted is "Update Subscription" or maybe even "Maintenance Update" if that actually updates from an old version (which I didn't think they offer anymore). You'll need to contact your sales rep and explain what you really wanted/need and ask for clarification of what you purchased; if it's not what you thought it was, I hope they'll let you change it to the subscription.
  25. corneliusdavid

    Delphi 12.2 available for download

    I get an error message about FMXLinux not found when I start 12.2. Not actually sure how to disable/reinstall it yet.
×