hsauro
Members-
Content Count
102 -
Joined
-
Last visited
-
Days Won
2
Everything posted by hsauro
-
Your best bet given your requirements is lua, mentioned previously. Used a lot in gaming apps.
-
Label1.refresh should work I think at least on windows it should.
-
Delphi CE 10.4.2 - Command Line Compilation
hsauro replied to PawelPepe's topic in Delphi IDE and APIs
That makes sense. -
Delphi CE 10.4.2 - Command Line Compilation
hsauro replied to PawelPepe's topic in Delphi IDE and APIs
Are you saying that it would be illegal to ask a friend to compile Delphi source code on their own copy and send me the exe? -
Has anyone had any experience in connecting FireDAC to MongoDB Atlas? I can connect to the database easily using the MongoDB atlas compass application and I can also easily connect to it from python using pymongo, but I can't fathom how to connect to it via Delphi. I am using Delphi Pro 11.1, so I assume it has the capabilities to connect. I noticed someone asked a similar question last year on StackOverflow, but there was no response. If I have to I can call python from Delphi. https://stackoverflow.com/questions/68401095/connection-to-mongodb-atlas-with-delphi What I have done is copied over the two monogo specific DLLs I need, added a FDConnection to a VCl windows and double click that to bring up a dialog box and enter the details but I can't seem to get it to work. The main error is failing to resolve mongodb+srv which I believe is the server name
-
I managed to get REST API working on MongoDB atlas.
-
I just had another thought, MongoDB has a rest API which might do the trick.
-
Do you know whether this will work on the Mac? I noticed it needs a couple of DLLs. I wonder if there are equivalent dylibs?
-
As an experiment I set up my own mongodb on a spare linux machine. I can connect from other clients except Delphi. My conclusion is that mongo support for Delphi is probably broken.
-
Community Edition expiring again, no new keys
hsauro replied to Nigel Thomas's topic in Delphi IDE and APIs
Of course it’s their product to do as they wish but I would have thought increasing the developer community would be a priority especially for attracting a younger generation. A student or hobbyist isn’t going to pay $1600 when there are other less expensive options. The alternative options tend however to be less productive but the current generation doesn’t know this. Without a pool of skilled Delphi developers a company will just use other development environments where they can get the expertise. I think the community edition serves an important service and should be directed specifically to those interested in developing open source code or hobbyists who Ike to try out new software. I wholeheartedly agree that if someone makes money out Delphi then they are obliged to purchase the full version. The threshold for making money can be debated, but the current $5000 is a little on the low side I think. -
Community Edition expiring again, no new keys
hsauro replied to Nigel Thomas's topic in Delphi IDE and APIs
François Piette wanted me to forward this message from Delphi Developer on facebook, so here it is (note I'm the messenger) "I think that the 3 registrations is for the same serial number that you get for one year. You get a new one each year. Why do you need more than 3 registration? Did you reformat your computer? If you have to reformat so often then consider making a full bakcup right after a fresh install with everything you need and then when you feel necessary to refresh you computer, don't reformat but restore your backup. Your Delphi registration will still be there." -
Community Edition expiring again, no new keys
hsauro replied to Nigel Thomas's topic in Delphi IDE and APIs
I agree, what it means is the company hasn’t thought this through properly. I suspect there is a tension between the embarcardero employees we know and who’d like to see the Delphi community to grow and upper management who see the short term loss of dollars and probably would like to see the community edition go away. What we have is a compromise between the two groups. -
Community Edition expiring again, no new keys
hsauro replied to Nigel Thomas's topic in Delphi IDE and APIs
Can you create a new user account with a new name or does it check the ip address where the community version is installed? -
Interfaces - Time to face my ignorance.
hsauro replied to AlanScottAgain's topic in RTL and Delphi Object Pascal
Most articles will explain the properties of interfaces but rarely why and when you’d use them. Someone pointed me to this article (search for interfaces) and it helped me a lot to understand why they can be useful. http://www.unigui.com/doc/online_help/user-interface.htm?fbclid=IwAR12Yq3agChFOoUvH4OE8K9gHApA6y-p6NdIHejeRKSxjEmmEMwOhpP0CNw -
Newly released book: Delphi Legacy Projects
hsauro replied to Bill Meyer's topic in Tips / Blogs / Tutorials / Videos
How are you publishing it, kdp or something else like ingramspark or a separate publisher? -
Python installer ( with PIP) vs. Chocolatey vs. Conda vs. Anaconda vs. Microconda
hsauro replied to Rollo62's topic in Python4Delphi
I looked around and didn’t find any immediate answer but can the embedded python be used on Mac OS in a similar way? I’m interested in distributing python with a Delphi App on the Mac and windows. -
FMX has a TGradient non-visual class, I’ve used it in the past. Might be worth looking at, though I notice your referring to TColor rather than TAlphaColor so it might not be applicable.
-
Ah, I see what you mean.
-
I just tried it on D 11.1 Prof and I successfully replaced a TButton with a TEdit, no error message.
-
Thank for your hard work!
-
I'm using DelphiWrapper to expose an API in a Delphi application that Python can run methods from. So far it works ok. It's a very primitive plugin system. My question is whether there is a way for a Delphi method to return a python list to the python caller using delphiwrapper. eg In python: mylist = delphiAPI.getlist() where mylist might be a list of strings ['red', 'dog', 'rock'] At the moment I export two more primitive methods, one method to get the number of items and another method to get the ith item. I then create a small Python function that builds a python list using those more primitive methods. I was wondering if there was another way to do this using DelphiWrapper. In the long term, it would also be nice to return and pass to Delphi numpy arrays but I imagine that would be much more difficult.
-
Return list from Delphi to python using DelphiWrapper
hsauro replied to hsauro's topic in Python4Delphi
Thanks that worked. -
Return list from Delphi to python using DelphiWrapper
hsauro replied to hsauro's topic in Python4Delphi
Thanks, I'll take that into account One other question I have, how can I check if a python script I import has a given function? eg p = Import (mypythoncode) p.myfunction() Is there a check I make to see if myfunction() is defined in mypythoncode other than actually trying to call it and trapping the exception? I should add that myfunction() isn't part of a class. -
Return list from Delphi to python using DelphiWrapper
hsauro replied to hsauro's topic in Python4Delphi
That worked, thanks, I should have tried it first. For those who are interested. all I did was declare my method at the Delphi end as: function TObj.getlist : TStringList; begin result := TStringList.Create; result.Add ('abc); etc end I assume the TStringList is reference-counted at the python end and I shouldn't care about dreeing it? Then at the python end, I just called x = obj.getList() It comes back as a TString type but you can convert it to a python list using list(x) or x.ToList(). As a TString type, it does have all the methods you'd expect for a Delphi TString type, eg x.Add ('A long string') -
I would post it as an issue to the DelphiVCl GitHub repo. The error shows it can find the moduledefs.json file.