Blog

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

  • How to add to docker image dot net sdk and other useful staff

    Hello everybody,

    today I want to write few rakes of Dockerfile.

    First of all I want to document how to install dot net sdk 1.1. It isn't installable by chocolatey, so I had to use following workaround:

    RUN Invoke-WebRequest 'https://download.microsoft.com/download/1/1/4/114223DE-0AD6-4B8A-A8FB-164E5862AF6E/dotnet-dev-win-x64.1.0.3.exe' -OutFile dotnetDev.exeRUN .\dotnetDev.exe /Silent /Full

    Another issue, that I faced was installing of Git, or for containers I prefer MinGit. It can be achieved in the following way:

    RUN Invoke-WebRequest 'https://github.com/git-for-windows/git/releases/download/v2.12.2.windows.2/MinGit-2.12.2.2-64-bit.zip' -OutFile MinGit.zip

    RUN Expand-Archive c:\ … more

  • Virtual machine management service

    If you see following error message:

    Virtual machine management service is running and that you are authorized to connect to the server.

    You need to check "Hyper-V Virtual Machine Management" and start it up. more

  • How to make grid to locate all available space

    Hello everybody,

    toda I want to document one simple how-to issue. Recently I've spent some time in figuring how to make grid to locate all available space.

    Below goes how to make it:

    <AutoSize Container="Window" Enabled="True" MinHeight="400" />

    You can add it somewhere before end of px:PXGrid tag. For example like this:

          <AutoSize Container="Window" Enabled="True" MinHeight="400" /> </px:PXGrid>

    more

  • Working with Dockerfile

    Hello everybody,

    today I want to write a few words about Dockerfile. 

    So, as usually for developer it will not be enough just ordinary docker images. Quite often they need to add some more features to docker images. One of the useful ways to organize it can be creating Dockerfile. 

    Dockerfile in itself just a text file with instructions. Of course that instructions are docker specific. And it's similar to making program say in C#. While after C# program I need to execute compiler, with Dockerfile I need to execute command docker build. You can consider docker build as compiler from Docker. 

    Executed image is a container. 

    Dockerfile has build instructions. 

    Some docker instructions … more

  • How to analyze condition of your docker under windows

    Hello everybody,

    today I want to share one more piece of search, which I've found today.

    My current situation with docker is the following: it refuses to be executed.

    In order to see, why, following command can be used:

    wget https://github.com/Microsoft/Virtualization-Documentation/raw/master/windows-server-container-tools/Debug-ContainerHost/Debug-ContainerHost.ps1 -UseBasicParsin | iex

    This command gave me following output:

    Describing Windows Version and Prerequisites [+] Is Windows 10 Anniversary Update or Windows Server 2016 86ms [+] Has KB3192366, KB3194496, or later installed if running Windows build 14393 17ms [+] Is not a build with blocking issues 16ms [+] Has 'Containers' … more

  • WCF RabbitMQ binding

    Hello everybody,

    recently I've spent plenty of time with the following task: Create Publisher/Subscriber application that via WCF send/receive messages from RabbitMQ. As foundation for my code I've used code from Dieg web site, just modified binding.

    Bindings were modified in App.config files. 

    Below goes bindings declarations:

    <system.serviceModel>

    <extensions>

    <bindingExtensions>

    <add name="rabbitMQBinding"

    type="RabbitMQ.ServiceModel.RabbitMQBindingSection, RabbitMQ.ServiceModel, Version=3.5.7.0, Culture=neutral,PublicKeyToken=null"/>

    </bindingExtensions>

    </extensions>

    <client>

    <endpoint address="soap.amq:///myqueue" … more

  • Some notes about MSMQ

    Hello everybody,

    today I want to document few features of MSMQ.

    First of all I want to say that MSMQ is ancient technology. It started it's life from Windows 95 as windows service. So for time of writing of this blog post it already had 22 years! 

    General principle of working of MSMQ is save - forward activity. Store message, forward it to something. By default MSMQ is stored in memory. But you can also store it on disk.

    There are two kinds of Queues in MSMQ : public and private. 

    Public has following features:

    Active directory is used for publishing

    Clients can ask Active Directory for search, manipulate, send messages

    Integrated with windows security

    Private has following … more

  • How to configure WCF for MSMQ

    Hello everybody,

    today I want to document how to configure WCF for usage with MSMQ.

    Of course I suppose you know how to add in windows features MSMQ at each instance where WCF service will work.

    So, first of all, let's see how to configure basic interface:

    [ServiceContract(SessionMode = SessionMode.Required)]

    public interface IService1

    {

    [OperationContract(IsOneWay = true)]

    void GetData(int value);

    [OperationContract(IsOneWay = true)]

    void GetDataUsingDataContract(CompositeType composite);

    // TODO: Add your service operations here

    }

    Take not on two features of each method: 

    Each method has IsOneWay set to true in … more

  • Subtle difference between Html.TextAreaFor and Html.EditorFor

    Hello everybody,

    today I want to document one gotcha related to difference between Html.TextAreaFor and Html.EditorFor.

    Recently I've had a requirement to add hint text to text fields. In Html world there are two ways to create input field which accepts text: <input type="text" /> and <textarea>some text </textarea>. In MVC world you can create those tags with help of Html.TextAreaFor and Html.EditorFor.

    I've had challenges with trying to apply attribute placeholder to TextAreaFor. EditorFor was pretty simplte to google and find:

    @Html.EditorFor(model => model.YourName, new { htmlAttributes = new { @class = "form-control", placeholder="Your name" } })

    But finally after a research I've … more

  • How to manage docker from C# with SSH

    Hello everybody,

    today I want to write a few words about how to work with Docker with help of C#.

    Recently I've got a challenge to find the way how to manage Docker. Initially I've tried Docker.Dotnet library. It has quite interesting options for management of docker, but from my own prospective it's not very convenient for management.  After some trial/error efforts I've decided to try another option. I tried using SSH connection in order to manage linux instance with Docker. In order to have access to CentOs I've used SSH.Net.

    In order to have option for mocking of SSH I've created following interface:

    public interface ISshManager

    {

    string IpHost { get; set; } … 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)gmail.com

Job information

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