# How to Tag a Docker Image on Codefresh

Docker tags are unique alias to your Image ID that make it easy to manage version control, refer to your image and releases, the tags look like these “my_docker_image:3” where “my_docker_image” is the docker image name and “3” is the tag, its always after the colon(:).

Tagging a docker image is easy with the following command

`docker build -t repository/image:tag .`

The above command tells Docker to build the image from the Dockerfile and tag it with the tag you specified. Remember…

# Problem

Given an integer array `nums` sorted in non-decreasing order, return .

Example 1:

`Input: nums = [-4,-1,0,3,10]Output: [0,1,9,16,100]Explanation: After squaring, the array becomes [16,1,0,9,100].After sorting, it becomes [0,1,9,16,100].`

Example 2:

`Input: nums = [-7,-3,2,3,11]Output: [4,9,9,49,121]`

Solution

First step: first learn about “squared number” then start coding.
Square number = is the result when a number has been multiplied by itself
Example:
3 Squared= 3 × 3 = 9

# Problem

There is a large pile of socks that must be paired by color. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are.

Example

There is one pair of color and one of color . There are three odd socks left, one of each color. The number of pairs is.

Function Description

Complete the sockMerchant function in the editor below.

sockMerchant has the following parameter(s):

• int n: the number of socks in the pile
• int ar[n]: the colors of each sock

Returns

• int: the number of pairs

Input…

# Find Numbers with Even Number of Digits

This is a Leetcode Data Structure / Algorithm problem, to solve this problem you need to understand what an even number is.

Problem

Given an array `nums` of integers, return how many of them contain an even number of digits.

Example 1:

`Input: nums = [12,345,2,6,7896]Output: 2Explanation: 12 contains 2 digits (even number of digits). 345 contains 3 digits (odd number of digits). 2 contains 1 digit (odd number of digits). 6 contains 1 digit (odd number of digits). 7896 contains 4 digits (even number of…`

# Max Consecutive Ones (Kotlin) Solutions

I am currently learning Data structure and Algorithms deeper in kotlin and I decided to start with Leetcode.

The problem

Given a binary array `nums`, return `1`.

Example 1:

`Input: nums = [1,1,0,1,1,1]Output: 3Explanation: The first two digits or the last three digits are consecutive 1s. The maximum number of consecutive 1s. The maximum number of consecutive 1s is 3.`

Solution:

The first step is to understand the problem and think of the best possible way to solve it. …

# Building a technical documentation static site for open source projects

Documentation is an important aspect of software development, design, and other aspects of tech. All codebase requires some form of documentation. From a simple README to full documentation.

It becomes necessary to use a nice & scalable system to generate, maintain, and deploy the documentation in some projects. That’s where come in handy. They are easy to use, versatile, and extremely user-friendly. They are mostly used to document APIs, database schemas, and other information by organizations.

Static Site Generator

A static site generator is a tool that generates a full static HTML website based on raw data…

# Create New Release is greyed out in Google Play Console

Possible Problem

This usually happens if you have a draft release for some reason, you will have to delete it first. Obviously no clue about it from the UI, you need to guess it.

Click on the “Releases” tab, it will show you the draft release and you can delete it from there by clicking on the “Discard” button

Most Android developers using Android emulators on average it consumes 2 GB of ..RAM so if possible use an actual Android device these will reduce your resource load on your computer, or use an Android emulator online like https://appetize.io/
Running your Android apps on your 2Gb or 4Gb Ram Computer using an Emulator is a disaster waiting to happen 😩😭.

# How to add a visitor counter on your GitHub profile with one line of Markdown

We have all wished we know the count of people that have visited our blog, social media profiles (Twitter, LinkedIn, Facebook) but not all have such features. As a developer that has a GitHub account, knowing the number of persons that visit your profile should be one of your wishes, especially for those that are applying for so many jobs 😉😉😉😉.

In this short article, you will learn how to add a “visitor’s counter” to your GitHub profile. you can add a counter to your GitHub profile with the following line of Markdown

`![Visitor Count](https://profile-counter.glitch.me/{YOUR USER}/count.svg)`

you can also check out my Github profile: github profile

Thank you for reading my article.

Let’s connect on