Loading ...

How To Make Pause In Powershell Script Execution

Hello everybody, today I want to make short note about how to make pause untill user press a key in PowerShell execution. Here it is:     Write-Host "Press any key to continue ..."  $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")   Presented code will make a pause. ...

Some Power Shell Notes

Hello everybody, today I want to share few words about powershell usage.  So, recently I've got some tasks which is related to usage of powershell scripts in order to automate some execution. One of discoveries in PowerShell for me was pipelining with usage of Where-Object. Consider followin...

Generate Typescript From Enum

Hello everybody, today I want to share with the world code, which generates typescript from enum declaration. I suppose everything should be understandable from code itself:   using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq;...

Cqrs In In C Most Trivial Possible Example

Hello everybody, today I want to make compendium of CQRS for very simple case. So, at one of the projects I seen following way of implementing code: public class WriteModel { //common properties public int SomeEntity {get;set; } // ID of some entity } public class ReadModel : Wri...

Crud With Mongodb Version 2

Hello everybody, today I want to describe CRUD options in MongoDB version 2. So, let's start with Reading.  In MongoDB reading can be considered as following options: Finding all documnets Filtering Sorting Definitions and builders. Creating documents in MongoDB is simple. You can do it ju...

Svg Drawings

Hello everybody. Today I want to share with you simple way to draw Mutual Style Fund box with help of javascript and svg in html5 with usage of module pattern of javascript.  Recently I had task to make at web site drawings with javascript. After some research I decided to use javascript and...

Module And Revealing Module Design Patterns In Javascript

Hello everybody, today I want to propose you interesting comparison of two design patterns in javascript.  As you probably know, javascript doesn't have idea of public and private members. So in order to implement them some tricks are used. That is module and "revealing module". Take a look...

Enterprise Service Bus

Hello everybody, I continue to publish damp of my understnading of the Universe. Now it will be about Enterprise Service Bus as part of building distributed systems. ESB can be considered as tool for organizing code.  There are two kinds of ESB: 1. Brokered 2. Decentralized.   Features...

Domain Driven Design In One Schema

Hello everybody, today I want to share with you DDD in one schema.  So, when I first time tried to grasp what is DDD, I heard Bounded context, domain model, Entity objects, Value objects, etc.  Then I started to read "Domain-Driven Design: Tackling Complexity in the Heart of Software" o...