Posts

Artificial Computation Intelligence

  Components of Problem Formulation Initial State - Is the starting configuration of system. Actions - The permissible moves or operations that can be performed in the problem space. Transition Model - Describes the result of applying specific action in a given state. Goal State - Desired configuration that indicates problem has been solved. Cost function - numerical cost for each action. Task is to setup an automated traffic monitoring system that should be equipped with 10 cameras at each intersection to detect traffic violoations and detect license plates to cross verify with stolen vehicle database. What is the problem formulation for this, provide PEAS description, which agent architecture will fit this ? PEAS Description: Performance Measure: The system's performance is measured by its accuracy in detecting traffic violations, identifying license plates, and cross-verifying them with the stolen vehicle database. Additionally, the efficiency of the system in processing and ana...

Linear Algebra Concepts

Vector Spaces Rank of matrix is the number of non zero rows in REF form. Alternatively rank of matrix is = total number of columns - total number of dependent columns. In the REF form, If a column of a matrix can be expressed in terms of other columns then it is a dependent vector. The vectors on the left most side with leading 1 at the col number position ( 1 at 1st row 1st col, 1 at 2nd row 2nd col, likewise) then such columns are linearly independent columns. For linerarly independence a1v1+a2v2+a3v3=0 where v1,v2,v3 are vectors and a1,a2,a3 are scalars. Span of a vector space is all the possible vectors which can be formed using the basis vectors. Basis vectors are linearly independent vectors which can span the vector space. Column space is all possible set of vectors formed by the column vectors. Row space is all possible set of vectors formed by the row vectors. Dimension of a row space or column space is equal to its rank. Null space or kernel of a matrix is any vector x which ...

DevOps Tools

 HELM Helm is a Kubernetes package manager used for installing and managing K8s applications. Charts are Helm packages which contain k8s manifest. And each chart can have its child charts as well. Application can be shared using Helm charts avoids rebuilding apps from scratch . Helm create 'chart name' -- will create a helm chart.     Contains Chart.yaml Values.yaml templates dir - contains k8s manifest files

Deploying Springboot project to Podman container

  • Get a VM with Podman • Login to VM • Run podman login /artifactory.global.standardchartered.com/artifactory/docker-release/ ○ Enter BankID and Pwd ○ Login Succeeded • To pull an image use podman pull reponame/imagename • Reponame  =  artifactory.global.standardchartered.com/ • Podman pull artifactory.global.standardchartered.com/nginx:latest (this works) • Without sudo it fails with error -  processing tar file(potentially insufficient UIDs or GIDs available in user namespace •  sudo podman pull  artifactory.global.standardchartered.com/nginx:latest - this work fine and image is now available locally • To create a container from local image ○ Sudo podman create --name "somename" imageid ○ Creates a pod but doesn’t run • To start a local container --> sudo podman start "container name" •  sudo podman run -d --name nginx-app -p 8080:80 -d  artifactory.global.standardchartered.com/nginx:latest curl localhost...

Instagram Design

  Instagram design Top Features 1.      User registration/login 2.      Feeds on home page from fav people 3.      View Comments/Add comment 4.      Create post 5.      Reels 6.      Keyword search   Data store – User Profiles 1.      Millions of users 2.      Users linked with each – Graph DB Data storge – User content - Relational 1.      User ID 2.      Content ID 3.      Content URL 4.      Uploaded date time   Create Post – Rest API – ·        Content Upload – Reviewed – Virus Check - Categorized – Tagged – Stored. ·        Storage – in S3 IA and eventually moved to other S3 buckets ·        Content cach...

TOGAF1

   Scope of organizations impacted Maturity assessment, gaps, and resolution approach Roles and responsibilities for architecture team(s) Constraints on architecture work Re-use requirements Budget requirements Requests for change Governance and support strategy Architecture Principles Identify the key stakeholders and their concerns/objectives, and define the key business requirements to be addressed in the architecture engagement.  Based on the stakeholder concerns, business capability requirements, scope, constraints, and principles, create a high-level view of the Baseline and Target Architectures. The Architecture Vision typically covers the breadth of scope identified for the project, at a high level. Informal techniques are often employed. A common practice is to draw a simple solution concept diagram that illustrates concisely the major components of the solution and how the solution will result in benefit for the enterprise. Develop the business case for the arch...