teleren/devto huggingface dataset:
¿Qué es Bicep?
Tags: devops, bicep, azure, iac
Published: 2022-08-06 04:20:36

Actualmente existen varias herramientas para Infrastructure as Code (IaC), la más conocida de todas es Terraform; estas herramientas nos permiten evitar la complejidad de las plantillas ARM. 
Sin embargo, para los que trabajamos con Azure con cada actualización de la plataforma tenemos q esperar a que los proveedores de dichas herramientas realicen la implementación de los cambios y mejoras.
Para esto en el Ignite 2020 se presentó el proyecto Bicep, el cual fue formalmente presentado 1 año después en el Ignite 2021. Este proyecto al ser del propio Microsoft cubre todos los planes de soporte de Azure y nos permite compilar directamente los archivos bicep a plantillas ARM en JSON. Otra promesa que respalda Microsoft es que todas las características nuevas que se agreguen a la plataforma de Azure estarán disponibles en Bicep al mismo tiempo que sean liberadas.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1i2upjs4eo9h8aue8rw.png)

## Objetivo de Bicep
Al ser un DSL (Domain-Specific Language) su objetivo es simplificar la experiencia en las plantillas ARM con una sintaxis más limpia, modulable y reutilizable para desplegar los recursos de Azure.

## Ventajas
* Compatible con todos los recursos y versiones de API. 
* Sintaxis simple
* Resultados repetibles
* Orquestación
* Modularidad
* Integración con los servicios de Azure
* Sin costo 

Con Bicep no tenemos que utilizar otras herramientas para nuestros proyectos de IaC en Azure, no quiero decir que ya no las utilicemos si no simplemente tener una alternativa sólida para la el despliegue en la plataforma de Azure; además de las ventajas enumeradas tenemos el respaldo que esta proporcionando Microsoft de este lenguaje al hacer más fácil la gestión de las plantillas ARM sin depender de herramientas de terceros. 

En las próximas entregas nos adentraremos más a Bicep. Espero que esta breve introducción haya despertado interés sobre esta alternativa para IaC.
Reasons Why Technology Startups Fail
Tags: webdev, beginners
Published: 2022-08-06 03:34:00

Technology startups are all the rage these days. It seems like everyone has an idea for a new app or a website that is going to change the world. While there are certainly many successful technology startups, there are also many that fail. In this blog post, we will discuss the top 5 reasons why technology startups fail. Hopefully, this information will help you avoid making some of the common mistakes that lead to failure.

 ## Top 5 Reasons Why Technology Startups Fail

## Reason # one: Lack of a clear value proposition

One of the most common reasons why technology startups fail is because they lack a clear value proposition. In other words, they have an idea for a product or service, but they do not have a clear understanding of who their target customer is and what need that product or service will fill. Without this understanding, it is very difficult to create a successful business.

## Reason # two: Poor execution

Another common reason for failure is poor execution. This can manifest itself in many ways, but it essentially boils down to the fact that the team behind the startup does not have the skills or knowledge necessary to bring their product or service to market successfully. This can be a problem with the product itself, the marketing strategy, or even the sales process.

## Reason # three: Lack of capital

Many startups fail because they simply do not have enough money to sustain their business. This can be due to some factors, such as underestimating the costs of development or failing to secure adequate funding from investors. Whatever the reason, lack of capital is often fatal for a startup.

## Reason # four: Inadequate team

Another common cause of failure is an inadequate team. This can mean that the team does not have the right skills and knowledge to execute their vision, or that they are not able to work well together. Either way, a startup needs to have a strong team in order to be successful.

## Reason # five: Poor market timing

Finally, another reason why technology startups fail is poor market timing. This can refer to either launching too early, before the product or service is ready, or launching too late after the market has already been saturated. In either case, it is important to carefully consider the timing of your launch to maximize your chances of success.

Hopefully, this information will help you avoid some of the common mistakes that lead to failure for technology startups. If you have a great idea and a solid plan, you stand a much better chance of succeeding. However, even with the best preparation, there are no guarantees in the business.
Portal Informasi dan Pengetahuan
Published: 2022-08-06 03:29:12

Mengenal situs portal tudepoin yang merupakan penyedia informasi berita terkini terbaru terupdate di tanah air mencakup beberapa kategori untuk mempermudah minat pembaca akan Informasi yang didapat https://tudepoin.com/ bisa langsung di akses melalui google yang tentunya semua artikel ada disana
Gartner Recognizes CyberSecOp - Ranked 2nd for Security Consulting Worldwide.
Published: 2022-08-06 03:26:56

CYBERSECOP RECEIVES THE HIGHEST OVERALL SCORE ON GARTNER PEER INSIGHTS FOR SECURITY CONSULTING SERVICES, WORLDWIDE IN 2022. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xpdzh1ifa2b8elcrihif.png)
 
 
June 8, 2022 - CyberSecOp today announced that its Security Consulting Services received a 4.9 out of 5 overall rating from Gartner Peer Insights, placing CyberSecOp in the top two on Gartner’s Security Consulting Services Worldwide category. 

"Peer reviews are extremely valuable for evaluating any purchase decision," said Josh Bauer, Executive Director at Loxo Oncology/Lilly.  “CyberSecOp appears to actively and continuously listen to us as a customer to ensure they deliver innovative solutions and a valuable user experience."

“CyberSecOp is honored to receive our current ranking status and client feedback, and we will continue to prioritize customer satisfaction across the board."  Vincent LaRocca, CEO & Co-Founder.

2022 GARTNER PEER INSIGHT

Gartner Peer Insights is the firm's platform for rating and reviewing enterprise technology solutions by end-user professionals for end-user professionals. Through user-contributed reviews from people who have actually used the services, the rating system combines expert opinions and peer insights. Peer Insights User Reviews offers a suite of interactive features for technology buyers, including the ability to customize evaluation criteria to create a quadrant view tailored to the user's goals and priorities. The platform employs rigorous methodologies, processes, and quality standards to deliver unbiased research and authentic peer reviews.

WHAT IS GARTNER’S RESEARCH?

Gartner research: Trusted insight for executives and their teams

Gartner research, which includes in-depth proprietary studies, peer and industry best practices, trend analysis, and quantitative modeling, enables us to offer innovative approaches that can help you drive stronger, more sustainable business performance.

Gartner research is unique, thanks to: 

**Independence and objectivity**

Our independence as a research firm enables our experts to provide unbiased advice you can trust.

**Actionable insights**

Gartner’s research is unbiased, containing vital takeaways and recommendations for impactful next steps.

[Read more](https://cybersecop.com/news/2022/6/8/gartner-recognizes-cybersecop-ranked-3rd-for-security-consulting-worldwide)
What kind of platform is S.O.???
Tags: watercooler, stackoverflow
Published: 2022-08-06 03:21:14

![Thanks for the feedback! You need at least 125 [reputation](https://stackoverflow.com/help/whats-reputation) to cast a vote, but your feedback has been recorded.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dy3f1deeh7tmvpqisl61.png)

In some contexts this can make sense, but this can only add to the already existing toxicity.
This gatekeeping is sooo unnecessary.

**Is** my feedback even really being recorded? 🧐
Paracetamol.js💊| #179: Explica este código JavaScript
Tags: javascript, webdev, spanish, programming
Published: 2022-08-06 03:19:39

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```js
const persona = {
  nombre: "Cris",
  saludo() {
    return `Hola, ${nombre}`
  }
}

console.log(persona.saludo())
```

A. `Hola Cris`
B. `Hola undefined`
C. `SyntaxisError`
D. `ReferenceError: nombre is not defined`

Respuesta en el primer comentario.

---

Respuesta:
D. `ReferenceError: nombre is not defined`

Para poder acceder a una propiedad desde un método de un objeto, es necesario hacer uso de la variable especial `this` que apunta al contexto actual donde se ejecuta la función.

Como no especificamos que la variable `nombre` que necesitamos es la que esta dentro del objeto `persona`, javascript intentara acceder a la variable `nombre` desde el objeto global `window` y como no hay ninguna propiedad `nombre` en `window` entonces muestra `ReferenceError: nombre is not defined`.

Para solucionar esto, basta con usar `this`:

```js
saludo() {
  return `Hola, ${this.nombre}`
}
console.log(persona.saludo()) // Hola Cris
```
Search in Rotated Sorted Array (Leetcode 33)
Tags: binarysearch, leetcode, algorithms, foolishhungry
Published: 2022-08-06 03:04:00

![Search in Rotated Sorted Array (Leetcode 33)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ypexqrk0tdf163wmy80x.png)**Problem**
There is an integer array nums sorted in ascending order (with distinct values).

Prior to being passed to your function, nums is possibly rotated at an unknown pivot index `k (1 <= k < nums.length)` such that the resulting array is `nums[k], nums[k+1], ..., nums[n-1], nums[0], nums[1], ..., nums[k-1]` `(0-indexed)`. For example, `[0,1,2,4,5,6,7]` might be rotated at pivot index 3 and become `[4,5,6,7,0,1,2]`.

Given the array nums after the possible rotation and an integer target, return the index of target if it is in nums, or -1 if it is not in nums.

You must write an algorithm with O(logn) runtime complexity.

```
Example 1:

Input: nums = [4,5,6,7,0,1,2], target = 0
Output: 4
```
```
Example 2:

Input: nums = [4,5,6,7,0,1,2], target = 3
Output: -1
```
```
Example 3:

Input: nums = [1], target = 0
Output: -1
```
`Source: Leetcode`

Constraints:
```
1 <= nums.length <= 5000
-104 <= nums[i] <= 104
All values of nums are unique.
nums is an ascending array that is possibly rotated.
-104 <= target <= 104
```

**How to solve this interesting problem?**

If a sorted array is not rotated, it is easy to find a target value using Binary Search algorithm. Because, we know the target value will be somewhere between the first and the last element of the array. But if we rotate the array, the array no longer remains sorted, right? 

[Read more in our blog Foolish Hungry dot com ... :)](https://foolishhungry.com/search-in-rotated-sorted-array/)
Linux – Bash – Scripting
Published: 2022-08-06 02:55:08


To understand the bash scripting… One must be aware of the Top 100 Linux commands with hands on practice. You can study this from Youtube, Google surf.

Bash Scripting

1.	Open your Linux Shell or Terminal

2.	To find what type of shell you are using type

         shiva@hypo-cloudeva:~$ echo $PATH
/home/shiva/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

3.	What is Shebang ?
#!/bin/bash  this is known as Shebang and whenever you write a script it must start with Shebang.

Let’s see an example of executing a script

shiva@hypo-cloudeva:~$ mkdir scriptapril24-2022  -- creating a directory or folder
shiva@hypo-cloudeva:~$ cd scriptapril24-2022/ -- navigating inside the directory or folder
shiva@hypo-cloudeva:~/scriptapril24-2022$ nano basicshellscript.sh  -- creating a file using nano editor
shiva@hypo-cloudeva:~/scriptapril24-2022$ chmod 744 basicshellscript.sh  -- giving executable permission to the file
inside the file we are typing an echo command.. echo command repeats whatever you typed inside the echo
example –
shiva@hypo-cloudeva:~/scriptapril24-2022$ nano basicshellscript.sh
You will type the below inside the nano editor
#!/bin/bash

echo "hello world"
---------------------------------------------------------------------------
shiva@hypo-cloudeva:~/scriptapril24-2022$ ./basicshellscript.sh  -- we are running the script here 
hello world --- the script gets executed and returns the output (echo command)


shiva@hypo-cloudeva:~/scriptapril24-2022$ 
bash basicshellscript.sh -- this is another way of executing script
hello world --- output of echo command inside the script

Lets see how a script can ask user to input data

shiva@hypo-cloudeva:~/scriptapril24-2022$ 
nano basicshellscript.sh

inside the nano editor type the below
#!/bin/bash
echo "hello world"
echo "what is your name"
read name   --- this read command in nano editor of script asks for input
echo "how are you dong today"
read answer -- this read command in nano editor of script asks for input
echo "Is scripting is fun"
read reply -- this read command in nano editor of script asks for input
echo "have a good one"

PFB ..

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4d48xr8pad2bsxh75z7y.png)
 
 

Output – PFB 

shiva@hypo-cloudeva:~/scriptapril24-2022$ 
bash basicshellscript.sh
hello world
what is your name
Aravind-Shiva
how are you dong today
very well
Is scripting is fun
definitely
have a good one

-- article to be continued 

(The word document I created earlier is replicated here)
How to enable Jumbo frames in AWS EC2 Windows Server!!
Tags: ec2, windows
Published: 2022-08-06 02:25:17

Jumbo frames has high MTU value ( Maximum transmission unit).

When you enable Jumbo frames the MTU value will be 9000.

Jumbo frames are enabled to transmit packets of large size.

Suppose when you have a Onpremise Server and You want to transfer packet from Onpremise to AWS EC2 which is linked using a Site to Site VPN.

The first step will be to enable Network share (SMB) and then try to transmit a data from onpremise to AWS Windows EC2 using copy -paste method.

If you face the below error while accessing the AWS EC2 from Onpremise then you must enable Jumbo frames on both Servers. Please note this requires downtime for 2–3 mins.

**Error** -

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ozddyi3crxpegwpv1fh7.png)
 


Steps to enable Jumbo Frames :

In the run command type ncpa.cpl and a window appears showing your Ethernet

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/15diiiqq0k1nbtij9rl1.png)
 

2. Right click the Ethernet and choose properties. Shown below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfpjyyf6dqodj8oj2h30.png)
 


3. Once the properties is opened … Choose Internet Protocol Version 4 and click configure

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a76xuucmkefppqejwy2j.png)
 


4. Once configure is clicked a new window opens, out of the available tabs click on Advanced

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdgdlxkbsay6718u2p40.png)
 


5. Once after clicking advanced a new window opens, choose Jumbo packet and then choose value as 9015

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yx2h73d1wpvbrfpkn5ia.png)
 


6. Click on apply , close the window, go to cmd prompt and type the below to see the MTU value.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/npy6pmz48v38dinb3s8q.png)
 


The above figure means the MTU value is changed to 9001.

You will be able to transfer the data from Onpremise to AWS EC2 at ease.

Happy learning!

(Since medium blog is not free, I have replicated my medium blog here)
How to connect to an EC2 Private Instance via SSM Port Forwarding !
Tags: ec2, ssm
Published: 2022-08-06 02:14:53


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2pf4igew76n4x4o6ipal.PNG)

**AWS Cli installation in Windows and Linux**

1. https://awscli.amazonaws.com/AWSCLIV2.msi — download this in Windows machine

2. curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o “awscliv2.zip”

unzip awscliv2.zip

1. sudo ./aws/install

Links from AWS for the above — Installing or updating the latest version of the AWS CLI — AWS Command Line Interface (amazon.com)

**AWS Session Manager Installation in Windows and Linux**

1. https://s3.amazonaws.com/session-manager-downloads/plugin/latest/windows/SessionManagerPluginSetup.exe — — copy this URL and paste it in browser and download it/run it — For windows machine 64 bit

2. curl “https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm" -o “session-manager-plugin.rpm”

3. sudo yum install -y session-manager-plugin.rpm — — run this and above command in Linux terminal

Policies to be applied for a IAM user to access the private EC2 instance via session manager from your local machine

1. Configure IAM user in your laptop using

2. $ aws configure

3. AWS Access Key ID [None]: accesskey to be copy and pasted here

4. AWS Secret Access Key [None]: secretkey to be copy and pasted here

5. Default region name [None]: the region of your EC2 machine to be entered here for example for Mumbai ap-south-1

6. Default output format [None]: click on Enter

the EC2 instance must have an IAM role with permission to invoke Systems Manager API. For this example, I am using AmazonSSMManagedInstanceCore.
Attach this role to your EC2 instance

**Permission of IAM user to access Session Manager via Laptop Cli** :

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nwmkk1mafdtk4b2vzc75.png)
 

Command to execute from your laptop to access Windows Private EC2 instance –

aws ssm start-session — target (copy paste your instance id here) — document-name AWS-StartPortForwardingSession — parameters “portNumber”=[“3389”],”localPortNumber”=[“9090”]

Port 9090,3389 must be allowed in security group of EC2 instance

**For more information pls check** –

SSM Port Forwarding — Private Windows RDP Access — YouTube

New — Port Forwarding Using AWS System Manager Session Manager | AWS News Blog (amazon.com)

To connect to your private EC2 instance follow the below from your laptop

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/68qtgnd7sjacaigtdeo1.png)
 
(Since medium blog is not free, I have replicated my medium blog here)
Steps to create site to site VPN in AWS
Tags: aws
Published: 2022-08-06 02:10:26


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/37c9ry6nmc7z2b5pk1xz.PNG)

1. First create Virtual Private Gateway and attach it to the VPC
2. Create customer Gateway with the inputs shared to us by the customer
3. Create a Site to Site VPN with the details shared to us by the customer
4. Choose the Customer Gateway and Virtual Private Gateway which you created earlier while creating a site to site VPN.
5. Choose the Subnet which is attached to the VPC ie the EC2 which is associated with Private Subnet,
Navigate to its route table and add routes by choosing the on-prem CIDR, point it towards Virtual Private Gateway
6. Go to site to site VPN and download the configuration file while doing this it will ask fill up the details as shared by the customer such as on-premise Firewall name, version and send the downloaded file to the on-premise firewall admin.

The Details you ask the customer before creating a Site to Site VPN are as follows.

1.Onpremise CIDR -
2.Firewall Public IP :
3.Name of the Firewall -
4.Private IP range of Onpremise site location :
5.Contact details of On-premise Network/Firewall Admin.

(Since medium blog is not free, I have replicated my medium blog here)
Glimpse of ECS,EKS, Fargate ( Serverless)
Published: 2022-08-06 02:07:33



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/foofdqasv4ob2p4pt4iw.PNG)



Two containers in AWS == ECS, EKS, EKS aka K8s — — 8 stands for ubernet

EKS is complex rich

In ECS tasks are containers that runs on underlying compute but the tasks are isolated

In EKS collection of containers are called Pods

**ECS can be launched in two ways**

1.EC2

2.Fargate

using EC2 we are responsible for patching and manual scale in and scale out

Fargate is fully automated

In ECS you can allocate CPU and memory for your containers

ECS integrates with VPC, Security groups, EBS, Load balancers

ECS can be integrated with Cloudtrail and Cloudwatch

ECS supports ALB, NLB

ECS + ELB — Distributes traffic evenly across tasks in your service

ALB routes HTTP/HTTPS traffic (Layer 7)

NLB routes TCP traffic (Layer4)

**ECS components** -


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/awjuynyz7zoltqufzxnj.PNG)


1.Cluster — Logical collection of ECS resources it can be EC2 instances or Fargate instances

2. Task Definition — Defines your application, similar to dockerfile, It can contain multiple containers, two containers needs to run together you can place them in same task definition.

3. Container definition — It defines the container’s CPU, Memory and port mappings

4. Task — This is a single working copy of a container, it can be web container or DB

5. Service — Allows task definition to be scaled by adding tasks, defines minimum and maximum value

6. Registry — Storage for container images ex Elastic container registry or Docker hub helps to used to download images to create containers

Fargate — Serverless, container engine

**When you launch ECS using Fargate you get the below**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gilv4jot379rh959gyef.PNG)




It works with both ECS and EKS

ECS security has EC2 instance role when its applied it gets applied to the all tasks that runs inside the EC2

Task role — this can be defined and limited to the particular task in order to access other resources such as S3, Dynamo DB, etc

**When you Launch a ECS in console, the following things gets created**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/59z5stp1hg30cf0r583w.PNG)

**If you initiate ECS you get this**
1. As a first step choose the image for your ECS, choose a name for this cluster

2. It automatically creates VPC and two subnets

3. IT creates a Cloudwtach log group

4. IT creates a cloudformation stack

5. The task has both Public and Private IP

When you launch a EC2 to use ECS choose Amazon AMI with ECS this can be found under community AMI

Choose IAM role as Ecsinstancerole

Now the ECS agent needs to communicate with our ECS cluster,

**Under advanced details type** -

#/bin/bash

echo ECS_CLUSTER=give your cluster name here >> /etc/ecs/ecs.config

(Since medium blog is not free, I have replicated my medium blog here)