Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Marco van de Voort via lazarus
Op 2019-08-12 om 11:13 schreef Anthony Walter via lazarus: Yes, in C#. Personally I find ASP.NET or Core easier to use than a CGI executable Well, something like ISAPI dlls are inbetween those for a long,long time. -- ___ lazarus

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Ryan Joseph via lazarus
> On Aug 11, 2019, at 9:05 PM, Anthony Walter via lazarus > wrote: > > Ryan, > > My sites are built on my custom web class library that optionally uses > templates to generate content. Templates are simple fill in the blank page > type text files which use reflection to pull properties of

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Marcos Douglas B. Santos via lazarus
On Mon, Aug 12, 2019 at 6:36 AM Michael Van Canneyt via lazarus wrote: > > [...] FPC+Lazarus effectively covers all scenarios :-) No doubt about that for sure. Marcos Douglas -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
In C# to define a property you write: visibility typename propname { [visibility] get; [visibility] set; } -or- public int Age { get; set; } This means you have a read write property that does nothing special. You could also write ... private int age; public int Age { get { return age; } set {

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Graeme Geldenhuys via lazarus
On 12/08/2019 9:33 am, Anthony Walter via lazarus wrote: > public IEnumerable SearchItems { get; set; } I don't know C# at all, but am curious regarding this. What does that "get" and "set" do? It that a shorthand syntax for implementing getters and setters of a field variable?

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Michael Van Canneyt via lazarus
On Mon, 12 Aug 2019, Anthony Walter via lazarus wrote: I use FPC for a lot of web stuff, but generally not for servers. In this project I am using an FPC program to create the database and download updates using my TClientSocket class. For long running stuff, which I may typically host on an

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
I use FPC for a lot of web stuff, but generally not for servers. In this project I am using an FPC program to create the database and download updates using my TClientSocket class. For long running stuff, which I may typically host on an Amazon cloud server with Linux, I'll generally either use

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Michael Van Canneyt via lazarus
On Mon, 12 Aug 2019, Anthony Walter via lazarus wrote: Yes, in C#. Personally I find ASP.NET or Core easier to use than a CGI executable. I assumed you wrote your classes for FPC. If you use the Microsoft stack, then my remarks are of no importance. Michael. --

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
Yes, in C#. Personally I find ASP.NET or Core easier to use than a CGI executable. Also the ability to dynamically compose anonymous objects, write linq expressions, and use reflection can be quite powerful. The object formatting system is C#, where everything is an object and custom formatters

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Michael Van Canneyt via lazarus
Ah, but this is C# ? I don't think you need more code in FPC to do the same. But if there are proposals to reduce the amount of code in FPC even more, I'm open for suggestions. Michael. On Mon, 12 Aug 2019, Anthony Walter via lazarus wrote: Michael, Here is an example of how easy it is.

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
Michael, Here is an example of how easy it is. public class CodeSearch : TemplateHandler { private static readonly string searchSql = "search.sql".LoadResourceText(); protected override void Run(Templates templates, StringBuilder output) { SearchItems

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Michael Van Canneyt via lazarus
On Sun, 11 Aug 2019, Anthony Walter via lazarus wrote: Ryan, My sites are built on my custom web class library that optionally uses templates to generate content. Templates are simple fill in the blank page type text files which use reflection to pull properties of a objects into the

Re: [Lazarus] getlazarus.org search request

2019-08-11 Thread Anthony Walter via lazarus
Ryan, My sites are built on my custom web class library that optionally uses templates to generate content. Templates are simple fill in the blank page type text files which use reflection to pull properties of a objects into the template. Here is how a template is formatted: Search Results:

Re: [Lazarus] getlazarus.org search request

2019-08-11 Thread Ryan Joseph via lazarus
> On Aug 11, 2019, at 1:51 PM, Anthony Walter via lazarus > wrote: > > Currently there is no custom formatting applied as this is meant to be an > AJAX request to create populate suggestions. As this is an API like RESTful > function is this good enough for you or do want a "pretty" result

Re: [Lazarus] getlazarus.org search request

2019-08-11 Thread Ryan Joseph via lazarus
> On Aug 11, 2019, at 1:51 PM, Anthony Walter via lazarus > wrote: > > Ryan, > > I was going to modify my project to allow for RESTful queries, when I > realized it already does this. The url and format are as follows: > > https://docs.getlazarus.org/?method=codesearch=TStringList

Re: [Lazarus] getlazarus.org search request

2019-08-11 Thread Anthony Walter via lazarus
Ryan, I was going to modify my project to allow for RESTful queries, when I realized it already does this. The url and format are as follows: https://docs.getlazarus.org/?method=codesearch=TStringList Alternate request for xml format:

Re: [Lazarus] getlazarus.org search request

2019-08-09 Thread Anthony Walter via lazarus
Ryan, that is a good idea and I can absolutely add a search page that pulls a string from RESTful query string and returns a friendly hyperlinked summary of the most useful results. Also, I don't know if you know this, but you can edit Lazarus settings to open up https://docs.getlazarus.org to the

[Lazarus] getlazarus.org search request

2019-08-08 Thread Ryan Joseph via lazarus
getlazarus.org has a really excellent search feature but I’d like to make a request (I think the owner posts here which is why I’m asking). Could an additional API be added so that we could use 3rd party editors with it? In particular what I’d like to do is being able to send a HTTP request