Using your alphabet, how many three letter words are possible if there are no repeated letters and the word must start with a vowel (A,E,I,O,U)?Read more
Using your alphabet, how many three letter words are possible if there are no repeated letters and the word must start with a vowel (A,E,I,O,U)?Read more
Suppose that I have two services Person Service and Company Service and I want to maintain links between them for example a Person is linked to Company because he works there or he owns the company etc. So I will go ahead and create a database table like PersonId, CompanyId, RelationType Now the business logicRead more
This post is closely related to the post Localization principle in supersymmetry and can be considered as a continuation of it, although independent. In § 9.3 of the book “Mirror symmetry” (K. Hori et al.) the authors formulate the following general localization principle for computation of integrals over supermanifolds: Assume there is some supersymmetry transformationRead more
Learning about the Liskov principle, I do understand that preconditions can be weakened and postconditions can be stronger in subtypes. However, I do not understand how invariants can be stronger in the subtype? If the base class says e.g. the Speed must be lower than 100 al the time, and then a subtype says SpeedRead more
The famous maximum principle of Hamilton states the following. Let $ C$ be a convex $ O(n)$ -invariant subset of the space of algebraic curvature operators. Then if it is invariant under the ODE $ $ \dot{R} = R^2 + R^\#,$ $ (where $ R^\#$ is quadratic in $ R$ and is defined in termsRead more
I have implemented merge sort algorithm on divide and conquer principle. When I pass an array to my program, that array is divided into sub-arrays, I apply bubble sort on each of the sub-array. Now I have sorted sub array, I merge the sorted sub-arrays I do step 2 and 3, till I have anRead more
Environment:SharePoint 2013, Workflow:Visual studio 2013 Declarative Workflow. I’m trying to assigning task to user’s UPN (User Principle Name) instead of their EmailID but workflow getting suspended. Workflow can assign task to user’s email id successfully also workflow can successfully send email to EmailID as well as UPN also, but workflow get suspended while assign taskRead more
Let $ (\Omega,\mathbb P)$ be a probability space supporting independent random variables $ U_n,n=1,2,\cdots,N$ and $ V$ . Let the filtration be given by $ \mathcal F_n=\mathcal F_n^{U,V}$ . Consider the following optimization problem $ $ \mathbb E (\sum_{n=1}^NU_n P_n)\rightarrow \max $ $ where the maximization is taken over all martingale of the form $Read more
There exist a number of articles/blogs explaining the Dependency Inversion Principle (DIP) using Swift; to name a few (top Google hits): GitHub/ochococo/OOD-Principles-In-Swift – The Dependency Inversion Principle, clean-swift.com / Dependency Inversion – A Little Swifty Architecture Now, Swift is widely described (even by Apple) as a protocol-oriented programming language, rather that an OOP language; soRead more
I try to write “clean code” for most of the time. But practically find it very hard, meaning – gradually business requirements changes dramatically or the business requirement which seems like just a condition force to modify existing code. If we go for “extend” instead of “modify” approach, implementation seems clean. But feels like toRead more