Loading ...

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...

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. &nbs...

How To Execute Bash Docker Image Of Cent Os

Hello, 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...

Bind9 In Centos

Hello everybody, recently I've got a task to configure Bind9 on CentOS. While doing this I have found some hardly documented features of CentOS. File locations and defaults By default bind9 is has name named. It means that you can start it with command systemctl. For example you can get status of...

Content Of Ping Command According To Wireshark

Hello everybody, today I want to share few words about usage of Wireshark and what it discovers about ping. As usually everyboydy who want to check does he have internet connection tries to enter command prompt and ping some web site. If ping is successful then person believes he has internet con...

How To Execute Some Process In Dockerfile

Hello everybody, today I want to share another piece of code, that proved to be helpful for me in creating docker containers. Here it is: Start-Process c:\sdksetup.exe -ArgumentList '/Quiet /NoRestart' -Wait; \ First time when I seen it I was sceptical. Why I should use Start-Process instead of j...

One More Example Of Selectors

Hello everybody, today I want to present one more example of selectors, but the one, that has multiple fields in it.  Consider following code: using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using...

How To Copy Folder In Dockerfile

Hello everybody, recently I had following issue: copy folder dotnet-dev-win-x64.1.0.1 into c:\Program Files\Dotnet in container. After different dancing and triings I've found following command that worked: COPY ["dotnet-dev-win-x64.1.0.1", "c:/Program Files/dotnet"] Are you facing unique ch...

How Pagesource In Acumatica Works

Hello everybody, recently I was asked by one friends of mine, how pageSource in Acumatica works, i.e. how to code/decode pagesource contents.  After different methods of trial and error I've created following C# code in order to code/decode pageSource: Snippet private static string...

Working With Nuget In Visual Studio 2015

Hello everybody, today I want to describe some useful from my prospective commands for working with Nuget. First of all, I want to say that you can work with Nuget as usually with usage of wizard, but if wizard fails for some unknown reason, console can give you interesting facts, that otherwise...