Here I document some issues for searching of which I spent more then 15 minutes

  • EMA in jForex. Full code

    Hello everybody,

    recently one of my readers asked me to show whole code of taking value of ema.

    Here it is:

    package jforex;

    import java.util.*;

    import com.dukascopy.api.*;

    public class CountSamples implements IStrategy {

    private IEngine engine;

    private IConsole console;

    private IHistory history;

    private IContext context;

    private IIndicators indicators;

    private IUserInterface userInterface;

    public void onStart(IContext context) throws JFException {

    this.engine = context.getEngine();

    this.console = context.getConsole();

    this.history = context.getHistory();

    this.context = context;

    this.indicators = context.getIndicators();

    this.userInterface = … more

  • How to make sales

    Recently friend of mine shared with me how he makes sales. 

    Here is his algorithm:

    Introduce to your potential customer ( linkedin, facebook )

    Send useful advices

    Send 3 useful advices according to your topic of activity

    Call to him. It shouldn't be call for sales. Just clarify what questions he has or which tasks he tries to solve

    Send sample of project

    Send useful advises

    Propose for him diagnostics and solution of most prioritized task

    Invite him on master class or webinar

    Sned him link on article in your blog

    Tell him about your services

    Send him useful advices

    Send him sample of project or feedback from customer


  • Interception

    Hello everybody,

    today I want to write few words about Interception.

    First of all one of the questions that requires consideration can be why we may need interception at all? Need in interception arises in cases when we have some kind of logic, that is dispersed around whole application. Some candidates for interception can be:




    Exception handling


    Performance collecting and analysis

    etc.... . So, after knowing at which places interception can be used following statement can be considered as explanation: interception is inserting code between calling code and target object. Code can be inserted before or after method call. If code is … more

  • shfbproj file format for Visual Studio 2015

    Hello everybody,

    today I'd like to say few words about project file of format shfbproj.

    Recently at one project I had to face following error message:




























    So, I started to dig about it. 

    After some research I found that shfbproj stands for … more

  • How to install latest nuget in Dockerfile for windows

    Hello everybody,

    today I want to write few words about how to instal latest Nuget into Windows docker container. For this purpose you can use following commands:

    RUN mkdir c:\NugetRUN Invoke-WebRequest '' -OutFile 'c:\Nuget\nuget.exe'; \ $env:PATH = $env:PATH + 'c:\Nuget\;c:\Nuget'; \ Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $env:PATH more

  • How to find file with powershell

    Hello everybody,

    today I want to document one simple trick. Recently I've configured docker container and faced following issue with nuget.

    For nuget I've used following command from powershell:

    nuget install MSBuildTasks -Version

    Nuget installed MSBuildTasks, and I didn't know where exactly nuget placed file MSBuild.Community.Tasks.Targets. So, I needed to find it. With help of following command:

    Get-ChildItem -Path C:\ -Filter MSBuild.Community.Tasks.Targets -Recurse

    I was able to execute search on the whole drive C for the file MSBuild.Community.Tasks.Targets and successfully find where Nuget placed that file. more

  • How to get response from Walmart

    Hello everybody,

    today I want to share with the world another piece of code, producing of which took me significant amount of efforts, getting response from Walmart.

    Yesterday I've posted code that signs provided by Walmart credentials.

    And today I decided to post code that retrieves orders information from Walmart.

    private void MakeRequests()


    HttpWebResponse response;

    if (Request_marketplace_walmartapis_com(out response))





    private bool Request_marketplace_walmartapis_com(out HttpWebResponse response)


    response = null;



    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https:// … more

  • Walmart signer

    Hello everybody,

    today I want to preserve at my blog piece of code that almost eaten my brain. Walmart signer. 

    using System;

    using System.Collections.Generic;

    using System.ComponentModel;

    using System.Linq;

    using System.Text;

    using System.Threading.Tasks;

    using System.Globalization;

    using Org.BouncyCastle.Crypto.Parameters;

    using Org.BouncyCastle.Security;

    namespace Walmart


    public class WallmartSigner


    /// <summary>

    /// Begining of time according to Java world.

    /// </summary>

    private static readonly DateTime JanuaryFirst1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);

    /// <summary>

    /// … more

  • How to measure size of Vector

    Hello everybody,

    today  I want to share with everybody information about function that is known as norm. Here it is:

    ||x|| p = ( Σ(|x|i)p) p -1

    For p ∈ R, p ≥ 1

    Also it is named as Lp norm. On intuition level it measures distance from some beginning point to locatio of x.

    L2 norm is often named Euclidian norm. Also due to heavy usage L2  is presented just as ||x|| with skipped 2. It means that if you see ||x|| it was intended to show you ||x||2.

    Sometime you can find L∞ norm. It is nothing more then maximum value of vector. 

    ||x||∞= maxi|xi|.


  • How to execute bash docker image of Cent OS


    recently I had a need to execute CentOS image with bash. Following command proved helpful for me:

    docker run -i -t --rm centos /bin/bash

    Then at executed image you can do whatever you want. For example I had  a need to validate DNS server activity. 

    For this purpose I had to find what provides dig.

    Following command told me what:

    yum whatprovides dig

    And next command installed:

    yum install bind-utils more

General information

Greetings to everybody stopping at my blog. Purpose of this web site is to be google of my brain. Everything I found useful, or of possible beneficial for usage in future I've save here at this blog

Contact information

If you want to contact me more on any subject printed at this web stie, you can email me: zaletskiy(at)

Job information

If to speak in general, I'm developer. For now I work as team lead in company GlobalLogic.