Archives

Archives / 2017 / June
  • 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

    more

  • 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:

    Logging

    Authorization

    Validation

    Exception handling

    Caching

    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:

    Overview

    ProjectPathErrorsWarningsMessages

    Documentation

    Source\Documentation.shfbproj

    1

    0

    0

    ConveyorSubsystem.Documentation

    Source\ConveyorSubsystem.Documentation.shfbproj

    1

    0

    0

    PISubsystem.Documentation

    Source\PISubsystem.Documentation.shfbproj

    1

    0

    0

    SSubsystem.Documentation

    Source\SSubsystem.Documentation.shfbproj

    1

    0

    0

    Subsystem.Documentation

    Source\Subsystem.Documentation.shfbproj

    1

    0

    0

    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 'https://dist.nuget.org/win-x86-commandline/v4.1.0/nuget.exe' -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 1.4.0.65

    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