Profile

Cover photo
Silvio Clecio
Attends UNOPAR, Petrolina - PE
Lives in Petrolina, PE
175 followers|37,372 views
AboutPostsPhotosYouTube

Stream

Silvio Clecio

Shared publicly  - 
2
Edwin Yip's profile photo
 
Thanks for sharing, I've reposted it in the Delphi Developers group.
Add a comment...
[Lazarus] Lazarus Release 1.4.2. Mattias Gaertner nc-gaertnma at netcologne.de. Tue Jul 14 13:15:54 CEST 2015. Previous message: [Lazarus] Can't load client library libmysql.dll; Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] ...
17
Add a comment...

Silvio Clecio
owner

Discussão  - 
 
I have plans to implement something like 'Brook Language' (Brool, that's it, BrooL). Imagine this script:

const
  le = LineEnding;
  script =
    'person.persontype.thetype=sometype' + le +
    'person.id=1' + le +
    'person.name=Silvio Clécio' + le +
    'person.docs[0].number=DOC.1' + le +
    'person.docs[0].authors[0]=Chico' + le +
    'person.docs[0].authors[1]=Cesar' + le +
    'person.docs[1].number=DOC.2' + le +
    'person.docs[1].authors[0]=Waldir' + le +
    'person.docs[1].authors[1]=Gilson' + le +
    'person.phones.notes[0]=Call Gilson please' + le +
    'person.phones.notes[1]=Call to 99 9 999-9999' + le +
    'person.phones[0].number=88 9 8888-8888' + le +
    'person.phones[1].number=99 9 9999-9999';

It can populate this objects:

var
  n: string;
  s: string = '';
  doc: TDoc;
  author: TAuthor;
  pho: TPhone;
  per: TPerson;
  psr: TBrookObjectParser;
  src: TStrings;
begin
  per := TPerson.Create;
  psr := TBrookObjectParser.Create(nil);
  src := TStringList.Create;
  try
    src.Text := script;
    psr.Parse(per, src);
    s := 'Type: ' + per.PersonType.TheType + le;
    s += 'ID: ' + IntToStr(per.Id) + le;
    s += 'Name: ' + per.Name + le;
    s += 'Docs: ' + le;
    for doc in per.Docs do
    begin
      s += ' ' + doc.Number + le;
      for author in doc.Authors do
        s += '  by ' + author.Name + le;
    end;
    s += 'Phones: ' + le;
    for pho in per.Phones do
      s += ' ' + pho.Number + le;
    s += 'Notes: ' + le;
    for n in per.Phones.Notes do
      s += ' ' + n + le;
    WriteLn('All object values: ');
    WriteLn(s);
  finally
    src.Free;
    per.Free;
    psr.Free;
  end;
end;

---

  { TAuthor }

  TAuthor = class
  private
    FName: string;
  published
    property Name: string read FName write FName;
  end;

  { TAuthors }

  TAuthors = specialize TFPGList<TAuthor>;

---

  { TDoc }

  TDoc = class
  private
    FAuthors: TAuthors;
    FNumber: string;
  public
    constructor Create;
    destructor Destroy; override;
  published
    property Number: string read FNumber write FNumber;
    property Authors: TAuthors read FAuthors write FAuthors;
  end;

  { TDocs }

  TDocs = specialize TFPGList<TDoc>;

  { TDocsParserItem }

  TDocsParserItem = specialize TBrookParserItem<TDocs, TDoc>;

---

  { TPersonType }

  TPersonType = class
  private
    FTheType: string;
  published
    property TheType: string read FTheType write FTheType;
  end;

  { TPerson }

  TPerson = class
  private
    FDocs: TDocs;
    FId: Integer;
    FName: string;
    FPersonType: TPersonType;
    FPhones: TPhones;
  public
    constructor Create;
    destructor Destroy; override;
  published
    property PersonType: TPersonType read FPersonType;
    property Id: Integer read FId write FId;
    property Name: string read FName write FName;
    property Docs: TDocs read FDocs write FDocs;
    property Phones: TPhones read FPhones write FPhones;
  end;

---

  { TPhone }

  TPhone = class
  private
    FNumber: string;
  published
    property Number: string read FNumber write FNumber;
  end;

  { TPhones }

  TPhones = class(specialize TFPGList<TPhone>)
  private
    FNotes: TStrings;
  public
    constructor Create;
    destructor Destroy; override;
    property Notes: TStrings read FNotes write FNotes;
  end;

---

So, you can create dynamically some HTML controls, enjoying Brool in your inputs, for example:

static input:

<input type="text" name="person.name"/>

inputs dynamically created via JS:

<input type="text" name="doc[0].number"/>
<input type="text" name="doc[1].number"/>
...
<input type="text" name="doc[N].number"/>

And all content would sent via URI: "person.name=ABC&doc[0].number=123&doc[1].number=456...doc[N].number=NNN", avoiding any problems with conversion of "values to HTTP / HTTP to values".

See this topic formated here: http://pastebin.com/hfkjAAW4
1
Leonardo M. Ramé's profile photoSilvio Clecio's profile photoFernando Baroni's profile photo
6 comments
 
Amazing!
Add a comment...

Silvio Clecio
owner

Discussão  - 
 
Welcome, friends. G+ seems a nice platform to discuss ideas about Brook.
5
Fernando Baroni's profile photo
 
I agree, also G+ is beautiful :)
Add a comment...

Silvio Clecio

commented on a video on YouTube.
Shared publicly  - 
 
Cara, parabéns pelo vídeo, está com uma qualidade excelente, me ajudou bastante aqui! (y)
 ·  Translate
1
Add a comment...

Silvio Clecio

Shared publicly  - 
1
Add a comment...
Have him in circles
175 people
Humberto Santos's profile photo
Fabiano Feliciano's profile photo
José Ferreira Neto's profile photo
Nilton Araújo's profile photo
Sistema Duall's profile photo
Ana Monrroy's profile photo
Mosh Choen (ik5)'s profile photo
Guionardo Furlan's profile photo
Guilherme Gute's profile photo

Silvio Clecio

Shared publicly  - 
 
Last week we announced that we've turned on TurboFan for certain types of JavaScript. In this post we wanted to dig deeper into the design of TurboFan. Performance has always been at the core of V8’s strategy. TurboFan combin...
1
Add a comment...

Silvio Clecio

Shared publicly  - 
2
1
Osvaldo T Crispim Filho's profile photo
Add a comment...
 
[ANN] Brook 3.0.0 release!

The Brook team is glad to announce the release 3.0.0.

This version was compiled and tested successfully with Free Pascal 2.6.4. Here is the list of changes between version 2.6.4 and 3.0.0 of the Brook:

https://github.com/silvioprog/brookframework/compare/57f8e01868dbec9708129bc789940df2a93c1637...v3.0.0 (or short URL here: http://goo.gl/kr9oX0)

The release is available for download on Github:

https://github.com/silvioprog/brookframework/releases/tag/v3.0.0

Or through the "Latest Release" button on the project home page:

http://silvioprog.github.io/brookframework/

Minimum requirements:

Free Pascal 2.6.4. If you prefer the Lazarus interface, choose the 1.2.2 version.

Enjoy!
6
1
Marc Hanisch (dubst3pp4)'s profile photo
Add a comment...

Silvio Clecio

commented on a video on YouTube.
Shared publicly  - 
 
Where can I download this form builder? Thank you!
1
Alberto Paiva's profile photo
 
Olá Silvio, vendo seu comentário resolvi procurar e encontrei aqui http://www.trirand.com/blog/?p=864 uma explicação sobre o produto e aqui um demo: http://www.trirand.com/blog/jqform/ . Achei muito interessante!
 ·  Translate
Add a comment...

Silvio Clecio

Shared publicly  - 
 
Papa argentino? Vish, só falta agora el Diego Maradona virar secretário geral. É fim de mundo mesmo!
 ·  Translate
1
José Benedito (JB)'s profile photoSilvio Clecio's profile photo
2 comments
 
Kkk...
Add a comment...

Silvio Clecio

General Discussion  - 
 
Hello,

Yesterday I created a script to install the Lazarus and Free Pascal on Mint 14.1 - 64 bit. The installation is done from sources downloaded via Github.

For those who want to download the Mint, here is the link to the torrent:

http://torrents.linuxmint.com/torrents/linuxmint-14.1-mate-dvd-64bit.iso.torrent

To download the ISO via torrent you need a torrent client, so you can use the uTorrent:

http://www.utorrent.com

To run the script is very simple, just follow the steps below:

wget -c http://silvioprog.com.br/download/install_fpc_lazarus_svn_version.tar.gz

tar -vzxf install_fpc_lazarus_svn_version.tar.gz

./install_fpc_lazarus_svn_version.sh

Be patient because the installation may take several minutes.

Enjoy!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
5
1
Dorin Duminica's profile photo
Add a comment...
People
Have him in circles
175 people
Humberto Santos's profile photo
Fabiano Feliciano's profile photo
José Ferreira Neto's profile photo
Nilton Araújo's profile photo
Sistema Duall's profile photo
Ana Monrroy's profile photo
Mosh Choen (ik5)'s profile photo
Guionardo Furlan's profile photo
Guilherme Gute's profile photo
Work
Occupation
Desenvolvimento de aplicativos Android, websites e webservices.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Petrolina, PE
Story
Tagline
Todo homem deveria ter duas mulheres: uma para pregar os botões que a outra arranca.
Bragging rights
Se focado
Education
  • UNOPAR, Petrolina - PE
    Análise e Desenvolvimento de Sistemas, 2014 - present
Basic Information
Gender
Male
Looking for
Friends, Networking
Other names
silvioprog