Author Archives: Stanislav_Panteleev

Delphi. What is difference to TProcedure, TMethod = procedure of object and TAnonMethod = reference to procedure ?

Source Let us consider the following three type declarations:

Posted in Без рубрики | Comments Off on Delphi. What is difference to TProcedure, TMethod = procedure of object and TAnonMethod = reference to procedure ?

Postgre. How to install someones db

Simple swap of the data folders on turned off services of postgres if you have someones db files like this go to registry and find there smth with postgres words

Posted in Без рубрики | Comments Off on Postgre. How to install someones db

C#.TelegramCommands.LearnEngine

engineGit

Posted in Без рубрики | Comments Off on C#.TelegramCommands.LearnEngine

Algo. Minimum Number of Operations to Move All Balls to Each Box

Source You have n boxes. You are given a binary string boxes of length n, where boxes[i] is ‘0’ if the ith box is empty, and ‘1’ if it contains one ball.

Posted in Без рубрики | Comments Off on Algo. Minimum Number of Operations to Move All Balls to Each Box

Algo. Group the People Given the Group Size They Belong To

Source There are n people that are split into some unknown number of groups. Each person is labeled with a unique ID from 0 to n – 1.

Posted in Без рубрики | Comments Off on Algo. Group the People Given the Group Size They Belong To

Algo. Build Array from Permutation

Source Given a zero-based permutation nums (0-indexed), build an array ans of the same length where ans[i] = nums[nums[i]] for each 0 <= i < nums.length and return it. A zero-based permutation nums is an array of distinct integers from 0 to nums.length – 1 (inclusive).

Posted in Без рубрики | Comments Off on Algo. Build Array from Permutation

Algo. Concatenation of Array

source Given an integer array nums of length n, you want to create an array ans of length 2n where ans[i] == nums[i] and ans[i + n] == nums[i] for 0 <= i < n (0-indexed). Specifically, ans is the concatenation of two nums arrays.

Posted in Без рубрики | Comments Off on Algo. Concatenation of Array

Js.Webpack.SimpleExample

CREATING THE PROJECT ! What is webpack? Tool that zip our code to speedup the load of the web page. So in our code we shouild have src and out directories accordingly. Lets create our simple project with the following … Continue reading

Posted in Без рубрики | Comments Off on Js.Webpack.SimpleExample

Delphi.DeepEqualsTemplate

Here is the template for deep equals of objects through rtti. You can expand it or customize

Posted in Без рубрики | Comments Off on Delphi.DeepEqualsTemplate

Delphi.Serialization with neon lib

I used neon library, below the example here is github of my test of this library, lib works nice !!! how to use? download sources and provide delphi path to source folder. Thats it!

Posted in Без рубрики | Comments Off on Delphi.Serialization with neon lib