Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 05/11/23 in all areas

  1. Ali Dehban

    ChatGPT plug-in for RAD Studio.

    Hello, everybuddy. Recently I made a plug-in for Delphi to use ChatGPT inside the IDE. The main service is ChatGPT but it's actually multi-AI support, you can get responses from three different sources, compare and decide. I hope this can be helpful and accelerate your work. Repository: https://github.com/AliDehbansiahkarbon/ChatGPTWizard Key features: - Free text question form. - Dockable question form. - Inline questions(in the editor). - Context menu options to help you to find bugs, write tests, optimize code, add comments, etc... - Class view. - Predefined Questions for class view. - History to save your tokens on OpenAI ! - Fuzzy string match searches in the history. - Animated letters(Like the website). - Proxy server options. - Supports Writesonic AI (https://writesonic.com) - Support YouChat (https://you.com) Short Video 1: Short Video 2 - Inline Questions: Full Video (ver. 2.0):
  2. Stefan Glienke

    Decrement a value by 1 each time a function is called

    Cannot be - if it's decremented by more than 1 then because the method was called more than once, simple as that. If the method is being called from multiple threads you need to use AtomicDecrement though. If you don't know from where the method is being called unexpectedly, use a data breakpoint on MyValue and the debugger will stop as soon as its being modified
  3. David Schwartz

    Something like SimpleNote with an API?

    This is crazy ... I have a car and I want to put a radio in it. You're saying, "instead of a car, just get a radio and walk." Most others are saying, "Instead of a radio, why not install a whole radio station in the car and ... be your own DJ ... while you're driving." Why is it so hard to get people to answer questions that are asked rather than first reinterpreting the questions and then offering an answer to their own interpretation? CLIENT: I'm thinking about setting up a blog to publish some poetry online, what do you recommend? DELPHI PROGRAMMER 1: if you like writing, just use Word. DELPHI PROGRAMMER 2: Blogs are nice, but you're really better off making videos. Then you can monetize them on YouTube. DELPHI PROGRAMMER 3: Microsoft has this thing called SharePoint that's great for writing stuff that you can share with your co-workers. DELPHI PROGRAMMER 4: I hate blogs. Why not just publish your poems in a book? DELPHI PROGRAMMER 5: Instead of poetry, you could go with SciFi. Trekkies would eat it up.
  4. Vandrovnik

    Loop a Delay in a thread??

    That will loop the code (x+1) times 🙂
  5. Use a different event. Or only count down after a significant amount of frames...
  6. Lajos Juhász

    OpenToolsAPI challenge.

    It should be possible with Delphi 11.3 https://github.com/Embarcadero/RADStudio11Demos/tree/main/Object Pascal/ToolsAPI/Editor Demos
  7. ANN: StyleControls VCL v. 5.20 just released! https://www.almdev.com StyleControls VCL is a powerful, stable package of components, which uses Classic drawing, system Themes, GDI+ and VCL Styles. This package contains the unique solutions to extend standard VCL controls and also has many unique, advanced controls to create applications with UWP / Fluent UI design. Also with this package you can really improve applying and using of VCL Styles in your application. In new version we added new controls and features! Also you can still order our products with good discount now!
  8. dummzeuch

    GExperts Favorites as WP-Plugin

    I just applied your patch in revision #4028
  9. Remy Lebeau

    FMX-TTreeview: Intercept click on Expand-button

    Too bad FMX's TTreeViewItem doesn't have a ShowButtons property, like VCL's TTreeNode does. So unfortunately, in FMX you have no choice but to populate the immediate child nodes just for TTreeViewItem to decide for itself whether or not to display its expand button (ie, when its VisibleCount is > 0). You don't need to scan the full 2nd level right away, though. When creating a new TTreeViewItem, just scan enough to discover its 1st subfolder and then stop scanning. You can't accomplish that with any of the TDirectory methods, but you can with FindFirst()/FindNext(). Or, you could just use a dummy child node instead, no scanning needed. Either way, when the TTreeViewItem is then expanded for the first time, you can then (remove the dummy and) do a full scan of the 2nd level to finish populating the TTreeViewItem with all of the child nodes as needed.
  10. David Schwartz

    Something like SimpleNote with an API?

    hmmm ... let me give an example of something similar I've been thinking about. I drive for rideshare services and I keep a little 2"x3.5" notpad in the car that I use to document each "shift" when I go out driving. When I begin a shift, I note the start mileage and time; later I enter the end mileage and time; as well as any relevant details I want to record during that shift. When I get home, I update it and tear it off the pad, take it to my computer, enter the details into a spreadsheet, and toss it in a pile with the rest of the little slips of paper from earlier shifts. I was thinking of making an app that's very similar to this other one where it has a variety of different functions, as well as a tab for notes. In that case, I'd hit a button that says, "New Shift" and it gives me a clean place to write. It logs the time, the previous END mileage (if I haven't driven anywhere since then, it's the same), and lets me make notes. When I'm done, I'd click "End Shift" and it enters the time, asks me for the current mileage, and then I click OK and it would whisk it away to something like Apple's Notes app -- SimpleNote or something similar. I'd sit down at my desk, and that little page of notes would have been added to the list of notes on the Notes-like app -- as opposed to a little slip of paper from a notepad. If for some reason I'm out and about and need that info, and I have my laptop with me, I can simply open the Notes-like app and the whole pile of virtual slips of paper from the notepad would be there for me to look at. So there's two parts to it: one simulates a little notepad that lets me take some notes, where I remove that sheet at the end of the shift, enter the data into my spreadsheet, and put the slip of paper onto a pile with the others. The second part is something that represents that pile of collected slips of paper that gets replicated automatically on whatever devices I want to install the Notes-like app on. There are some obvious enahncements that could be made in this case, but for the purpose I'm asking about, this is really all there is to it. I need something very simple to take one small page of notes on while I'm on my "work shift". That simple page of notes gets saved to a larger collection in a bigger app that lets me manage the stack of notes that accumulate over time. That's pretty much it. In this case, my app is doing something specific and someone might want to take some notes from time to time. It's NOT a fancy note-taking app that does other stuff. Its an app that does something specific that someone might want to capture some short notes, and have them collected in a central common app for review later, like a small notebook. But you don't carry the notebook around with you. Rather, there's a little notepad of empty sheets; you can write some notes on the top sheet, tear it off, stick it in your pocket or wherever, and it finds its way to a collection of earlier sheets of notes -- only in this case, the data is sent electronically to a simple collection rather than on a little sheet of paper. This is exactly the sort of use case that Apple's notes or SimpleNote is for, except you have to run that app and add a note and deal with all the others that are there as well.
  11. Thank you! So I will have to resort to the brute force approach. In the future I think I will have to handle at least 50 messages / second with peaks of 100 up to 200 messages / second (sometimes they are time-critical), which I am thinking to send using multiple threads and possibly multiple FireBase service accounts. I think I will almost need a separate machine to do all this - if the project expands. I don't know which limits are set by Google for those who send messages through this method, I may have some (unpleasant) surprises in the future. Thank you again for all your help and your libraries!
  12. Sherlock

    How convert an android app into an i-phone app?

    Please also note that any "custom" Java snippets or Android specific code will not migrate without making a fuss.
  13. Dave Nottage

    How convert an android app into an i-phone app?

    One that supports the latest version of iOS, if possible. It appears this is iPhone 7. That said, the support for later iOS versions for that device might soon disappear. See here: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/IOS_Mobile_Application_Development That's usually not a requirement, however there might be some specific arrangement they're referring to that I'm unaware of. The only cost should be for the Apple Developer program
Ă—