Ukieweb

Diary

I write what I learn here

How to Lose 11 Pounds in 3 Weeks [ Intermittent Fasting ]

Unlike other days, today I will be writing about fitness instead of the usual tech stuff.

Losing weight can be a hard and frustrating task for most people especially when they are busy with work, school and other projects. Some of the reasons why people want to lose weight include;

  1. You want that new dress/t-shirt you saw on the store to fit nicely when you but it.
  2. You are planning to go on a vacation (summer break) and you want …

    Read More

How to Setup Kubernetes Cluster on AWS Using KOPS - Full Guide

What is Kubernetes?

Kubernetes is an open-source platform originally designed by Google for automating deployment, scaling, and ochestrating operations of application containers across clusters of hosts, providing container-centric infrastructure. It has many features especially useful for applications running in production like service naming and discovery, load balancing, application health …

Read More

Cloud Architectures Microservice Architecture vs Monlithic Architecture

There are millions of running application today most of which have been developed using a monolithic architecture. With the rise of IoT & Big Data, most of the infrastructure will be in the cloud to save on cost, increase delivery and give room for horizontal scaling.

Horizontal scalability is the ability to increase capacity by connecting multiple hardware or software entities so that they work as a single …

Read More

Laravel Soft Delete Feature

Sometimes you want to delete a record from your application but still have it in your database in case you want to refer to it in the future. How do you achieve this with ease?

Laravel provides a** Soft Deleting feature** using **Eloquent **that is effective and easy to implement. On high level, a deleted_at column that is _nullable _is included in your table and is updated when a user deletes a record. This feature is useful in tracking the records that are getting deleted because …

Read More

Face Recognition Using Microsoft Face Api

Have you wanted to create an application that uses face recognition and you did not know how to do it?

Microsoft has Face and Computer Vision APIs that will help you achieve this in a matter of minutes. Both of these APIs are cloud-based and provides the most advanced algorithms for face detection and recognition.Even better, there is a free version which allows 20 requests per minute.

NOTE: Free trial subscription keys are generated in the westcentralus …

Read More

Creating different versions of Laravel 5 application

Laravel versions have been changing very often. At the time of writing this article the current version is 5.5. The default command for creating a Laravel project laravel new projectName uses the latest version of Laravel. The need for creating a project using previous versions of Laravel becomes key especially when you do not want to upgrade other installations such as PHP 5.6.4to at least PHP 7.0 if you want to use Laravel 5.5. …

Read More

The VPN client agent was unable to create the interprocess communication depot

I was using Cisco AnyConnect Secure Mobility Client to VPN and it would work perfectly. One evening the VPN connection refused even after using the correct credentials. I decided to uninstall the application and install it again. The installation did not complete successfully and threw an error The VPN client agent was unable to create the interprocess communication depot.

Read More

Aggregate Functions In Laravel SQL

Task: Get all users and their contribution total. Every contribution is stored as a row in _contributions _table. Tables:

  1. Contributions- stores user contributions
  2. Users- stores user details

Query: $contributions= DB::table('contributions') ->leftJoin('users', 'users.id', '=', 'contributions.user_id') ->select(DB::raw('SUM(amount) as balance'),'name', 'user_id', 'created_by', 'contribution_date', …

Read More

NoSQL Databases

A new class of databases emerged that follow BASE (basically available, soft state, and eventual consistency). Characteristics and have been dubbed as NoSQL databases. A few examples of NoSQL databases include Amazon’s Dynamo and Google’s BigTable. Eventual consistency can be tolerated as long as the application can tolerate stale data. Applications such as instant messaging, for example, are usually tolerant of the eventual consistency limitations. The typical characteristics of NoSQL …

Read More

Cloud Middleware Features

Cloud Middleware is a software platform that controls and coordinates different cloud services and makes it possible for users to issue service requests, and cloud providers to manage their infrastructure. Cloud Middleware consists of multiple abstraction layers that hides system complexity and enables communication between various applications, services, and devices that are part of a cloud service. There are a number of distinct and important features that cloud middleware provides, which …

Read More