MySQL. function to count ratio. Example from project

Was needed to count progress of finished / all elements,below is an example how to do this…

 

Posted in Delphi | Leave a comment

Delphi. FireMonkeyStyles

 

Posted in Delphi, FireMonkey | Leave a comment

Delphi. FastReportVCL – merge / concat many reports

I needed report from runtime and disign time to be merged, so below is simpliest way to do this…

example of use

 

Building a composite report (batch printing)
In some cases it is required to organize printing of several reports at once, or
capsulate and present several reports in one preview window. To perform this, there are
tools in FastReport, which allow building a new report in addition to an already existing
one. The «TfrxReport.PrepareReport» method has the optional «ClearLastReport»
Boolean parameter, which is equal to «True» by default. This parameter defines whether it
is necessary to clear pages of the previously built report. The following code shows how to
build a batch from two reports:
frxReport1.LoadFromFile(‘1.fr3’);
frxReport1.PrepareReport;
frxReport1.LoadFromFile(‘2.fr3’);
frxReport1.PrepareReport(False);
frxReport1.ShowPreparedReport;
We load the first report and build it without displaying. Then we load the second
one into the same «TfrxReport» object and build it with the «ClearLastReport» parameter,
equal to «False». This allows the second report to be added to the one previously built.
After that, we display a finished report in the preview window.

Posted in Delphi, FastReport | Leave a comment

Delphi. FastReportVCL – change language to Russian, example

for exmaple we will change language of previewer to russian

  1. find dir where languages are (for ex.)
  2. open cmd and type
  3.  type

    you will recieve Russian.frc file
  4. In runtime call

     
Posted in Delphi, FastReport | Leave a comment

C#. BipartiteGraph

Seidgwicksource

Git

Bipartite.cs

Graph.cs

Bag.cs

test

 

Posted in C# | Leave a comment

C#. DegreeOfSeparation

Source in Sagewick

Git

strange thing but realized it…, shows shortest ways from source to other points, using BFS

 

Posted in C# | Leave a comment

C#.Algo.SymbolGraph

Git

SymbolGraph.cs

// switched to C# Dictionary in spite of SequentialSymbolTable

SymbolTable – doesn’t work to symbol graph because of contains method

Graph.cs

Bag.cs

Test

 

Posted in C# | Leave a comment

C#. Algo.Graph. ClosableVertexSearch

testGraph  – which verticles are closable? We have 3 groups! 7 and 8 closable ! 0 and 7 not !

Git

Graph.cs

Bag.cs

Test.cs

 

Posted in C# | Leave a comment

С#.Algo.Graph.BreathFindSearch

testGraph

Git

Graph.cs

Bag.cs

Test

 

Posted in C# | Leave a comment

С#.Algo.Graph.DepthFindSearch

testGraph

Git

Graph.cs