Archives

Archives / 2017 / January
  • Windows container types in docker

    Hello everybody,

    today I want to write a few words about two types of containers in windows:

    Windows server containers

    Hyper-V containers

    Windows server containers provide application isolation through process and namespace isolation. Windows server container shares a kernel with the container host and all containres running on the host.

    Hyper-V containers expand on the isolation provided by Windows server containers by running each container in a highly optimized virtual machine. In this configuration kernel of the container host is not shared with other Hyper-V containers.

    more

  • Some notes on usage of docker

    Hello everybody,

    today I want to write a few words about usage of docker for windows.

    First of all, I want to point what is docker at all. There are many ideas of how to explain it, but in my opinion docker is like installed and configured piece of software with needed fragment of operating system. It can be installed software with windows or with Linux fragment. What is also interesting is that Windows 10 with docker for windows knows how to execute Linux docker containers. So it means that from inside of windows you can have nginx Linux server.

    As you can see from my screenshot, docker for windows installed MobyLinuxVM and if there is a need to execute docker contaner for Linux, it … more

  • TypeScript class creation

    Hello everybody,

    today I want to document some demos for class declaration in Angular 2. 

    So, let's say you have following class declared:

    Snippet

    import { Component, Injectable } from '@angular/core'

    import { Http, Response } from '@angular/http'

    @Component({

    })

    export class Config {

        public apiKey: string = 'xxxxxyy117c24d8b9085187163f5d241';

        public url: string = 'https://public-api.blablacar.com/api/v2/trips?key=';

        constructor(private http: Http) {

        }

        getReqUrl(): string{

            return this.url + this.apiKey;

        }

    }

    Then the way to create it is the following:

    Snippet

    findTrips()

    {

        let conf = new Config();

        let url: string  … more

  • Angular 2 property binding

    Hello everybody,

    today I want to write few words about binding in AngularJS 2.

    There are two ways of making one way binding:

    element property binded to template expression

    property interpolation

    I've described it with following picture:

    Two-way Binding

    <input [(ngModel)]='property'>

    And property is decalred in Component class like this:

    export class ClassComponent {

           property: string = "Property value";

    } more

  • Ionic2 running apps

    Hello everybody,

    today I want to document few usefull commands which are usefull in ionic 2.

    Add platform:

    If you need your app to be able to execute on some platform you can use following command:

    ionic platform add xxx

    Where xxx stands for name of platform. It can have following values: windows, android, ios

    Run app

    If you want to run app in emulator, use the following command:

    ionic serve

    this command will execute your app in default browser.

    ionic run android 

    this command will deploy app on your android device and execute it there

    Add page

    ionic generate page specialPage

    this command will generate for you page specialPage with html, scss and ts file. For example when I … more