teleren/devto huggingface dataset:
Transpiler vs Compiler
Published: 2022-01-11 09:14:17

Hey there again we meet today hope you are doing well in this pandemic as yesterday i told about that today we gonna disscuss about transpiler and compiler so put your seat belt and stay focussed 😂

Transpiler::

Transpiling is a specific term for taking source code written in one language and transforming into another language that has a similar level of abstraction.

For example lets take babel which it converts every es6 or es6+ code in to es5 code which every browser can perform its task by fully functionality so this is how transpiler works

 Some examples of transpilers:

Emscripten: Transpiles C/C++ to JavaScript


Babel: Transpiles ES6+ code to ES5 (ES6 and ES5 are different versions or generations of the JavaScript language)



Compiler::

Compiling is the general term for taking source code written in one language and transforming into another.

For example lets take the famous gcc editor which runs c programs here its take program only in one language but it gives the ouput in many forms


now a fomo(fear of missing out) may be created about the word abstraction lets discuss about it the 

Abstraction::

Abstraction is the property by virtue of which only the essential details are displayed to the user. The trivial or the non-essentials units are not displayed to the user. Ex: A car is viewed as a car rather than its individual components. so this is what we call abstraction so a compiler or a transpiler doesnt understand about our english language which is also called as high level language so we have to convert that into binary code which is also called as low level code by this way we can perform all operations to get a better understanding you have to read about levels of abstraction and levels of language so thats all for today catch you next time and have a great day.....
CBS Sports Digital : Evolution du workflow de Production Live
Tags: aws, mediaentertainement, awsfrmedia
Published: 2022-01-11 09:03:45

CBS Sports Digital *diffuse 30,000 évènements live par an*. En pic, CBS Sports diffuse plus de 500 évènement dans la journée. Ils ont donc un besoin d’adaptation de leur workload ainsi que d’Elasticité. L’ensemble fonctionne maintenant sur AWS avec l’utilisation de AWS Media Services Live. Entre la signature d’un contrat et le premier match, il se passe maintenant moins de 6 mois. CBS Sports Digital a travaillé conjointement avec *Grass Valley Agile Media Processing Platform* (AMPP) et AWS. Ils ont simplifier leurs operations avec différents modèles (1 opérateur pour n matches)
*Source*: [AWS re:Invent 2021 - Transforming broadcast production, playout, and fan experiences](https://youtu.be/sLg6Nnw6R0g?t=1407)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nfquixfvzfonfda5kioz.png)
To do a Code task or not! 
Tags: beginners, programming, hiring, github
Published: 2022-01-11 08:45:19

I as a Senior Software Engineer, when think of applying for a job, few things come to my min.

1. What if as a Senior I don't fullfil the expectation?
2. What if I was presented a Live Coding Challenge? 
3. What if I was given a Coding Task?

So after some thinking, I realised it all comes to judge me based on my coding skills. 

When you work on a real challenge you use StackOverflow, Google etc etc. (Copy & Paste works in most cases, except some complex business logic)

But as you code for an interview offline or online, you think about Copy & Paste method. In live coding you can't even do that. For offline coding you can get inspired from some logic you find online.

My question is, what should be the ideal approach to these problems during job interviews?

Should coding is good metric to judge someone? Live coding makes sense? Or Git repos with some code exploring should be a metric.

Share your thoughts, experiences, Lets learn together.
What are WordPress development services? 
Tags: c, webdev, devops, discuss
Published: 2022-01-11 08:44:47

WordPress allows you to create your website for free or at a lower cost than others. However, it needs experts if you want to customize it or generate revenue from it. These [WordPress development services](https://www.wordpresssupport.co/wordpress-website-development-services/) are associated with WordPress web designers, content writers, and SEO experts. They help you with digital solutions, ranking your website, add and customizing plugins and themes for your WordPress website.
Cloud Based post production
Tags: aws, mediaentertainement, awsfrmedia
Published: 2022-01-11 08:38:55

AWS continue d’affiner le concept de **Content Lake** d’une façon globale en intégrant les différentes fonctions de production.Les partenaires technologique SAAS, editeurs de logiciels  gravitent au plus prêt du contenu hébergé sur le Cloud et ouvert / accessible à cet “ecosystème” tout en ayant un haut niveau de sécurité. 
Pour être au plus pret de la donnée et du fait de la pandémie,  les clients M&E déploient des workstations Cloud à la demande soit en les manageant par eux même soit via un point d’accès unique grâce à des partenaires comme Arch Platform (Solution managée) et LeoStream (connection broker).
_Source:_ 
* [Session AWS Reinvent 2021 : A new reality for content production](https://www.youtube.com/watch?v=VwsAJKsmNno)
* [MoviLabs Vision 2030](https://movielabs.com/prodtech/ML_2030_Vision.pdf)
Daily Routine
Tags: discuss, growth, personal, improvement
Published: 2022-01-11 08:26:36

---
title: Daily Routine
published: true
description: You will never change your life until you change something you do daily
tags: discuss, growth, personal, improvement
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n1pfhgmaqrju83fwr8f3.jpg
---

_Originally published on [my blog](https://www.nikola-breznjak.com/blog/daily-thoughts/daily-routine/)._

John Maxwell said, and a lot of others agree:
> You will never change your life until you change something you do daily. The secret of your success is found in your daily routine.

I'd add that it works in the opposite direction too. Meaning, the reason for your failures can be found in your daily routine. Do you wake up and scroll X (where X is whatever 'un-social' app you use these days) or do you wake up and do something good for yourself like read, exercise, take a (cold) shower, write a sentence of gratitude in [your journal](https://www.nikola-breznjak.com/blog/daily-thoughts/journaling/), etc.?

One thing that stayed with me for years now (habit alert!) has been so-called life SAVERS from the book [Miracle Morning](https://amzn.to/3tgHcC6) by Hal Elrod. Try it out and see if it sticks for you.

What's your daily routine?

---

This is [why I write](https://www.nikola-breznjak.com/blog/daily-thoughts/why-do-i-write-these-daily-thoughts-posts/) these 'daily thoughts' posts.
Project 99 - React Redux Typescript Notes Web App
Tags: react, redux, typescript
Published: 2022-01-11 08:23:04

*Hey! I'm on a mission to make 100 React.js projects. Please follow my dev.to profile or my [twitter](https://www.twitter.com/jwhubert91) for updates and feel free to reach out if you have questions. Thanks for your support!*

Link to today's deployed app: [Link](https://project-99-react-redux-typescript-notes-app.netlify.app/)
Link to the repo: [github](https://github.com/jwhubert91/project99_reactReduxNotesApp)

![React redux notes web application](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ua32c49asmpxv6s2ayci.png)

Inspired by [this](https://www.youtube.com/watch?v=WpvIihorarA) awesome tutorial.

**If you like projects like this and want to stay up to date with more, check out my Twitter [@jwhubert91](https://twitter.com/jwhubert91), I follow back! See you tomorrow for another project.**
Hello everyone
Tags: javascript, devops, programming
Published: 2022-01-11 08:08:34

Hello everyone, my name is Anton!! Closer to the age of 30, I was able to answer the question that was asked in childhood: "Who do you want to become when you grow up?"
I realized that I had to learn programming and set myself the goal of becoming a Full stack developer, now I am working together with a training site "js.coderslang.com " I will describe my path in my profile, subscribe, we will be friends))
Today's Daily Humor For Devs - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2022-01-11 08:00:10

---
title: "Today's Daily Humor For Devs - Daily Developer Jokes"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12592cb43a5.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ What did the Class say in court when put on trial?

___A:___ I strongly object!
 -->
What is GitOps?
Tags: gitops, devops
Published: 2022-01-11 07:48:34

There is a lot of terminology these days, between DevOps, SecOps, DevSecOps, and GitOps.  It can be hard to keep track of everything and the benefits of each approach.  Let's explore GitOps.

## What is GitOps?

GitOps is a set of best practices designed to help manage infrastructure and application configuration using Git. Git is an open source version control system.

GitOps is built around the Developer experience. But it can help the Operations teams manage infrastructure. Using the same processes and tools that Developers use for software development.  When using GitOps, Git is the central tool but all other tools can be chosen as needed.

GitOps uses a central Git repository that contains the entire state of the system.  It uses Git pull requests to automatically manage and deploy infrastructure or software.

The Git repository gives you a trail of changes that can be auditable.

## Why do you need GitOps?

The main benefit of GitOps is about accountability and automation. Using version control for your infrastructure and software makes it traceable.

Want to find out why changes to the network were made? Or when a version of software was rolled out to a certain environment or customer?  You have that trace log within your Git repository.

Automation is the second key benefit, once you have your changes approved, you kick off the deployment of those changes right away. In a repeatable consistent manner. 

## GitOps vs DevOps?

There is a lot of overlap between GitOps and DevOps but there are a lot of differences as well.DevOps is a culture that focuses on Continuous Integration (CI)/Continuous Delivery (CD) but isn't attached to any tool.  Where as GitOps is an approach that focuses on deployment of infrastructure and software using Git as the main tool.

GitOps focusses mainly on doing DevOps correctly where as DevOps's main focus on automation and frequent deployments.

GitOps also focusses on correctness, and is quite a strict approach, where as DevOps is less strict and is open to more flexibility.

## How GitOps integrates with DevOps

Because there are a lot of shared principles between GitOps and DevOps, it can be quite easy to adopt a GitOps workflow into your DevOps practices. 

Git is one of the most popular, if not the most popular, version control tool.  So as more companies adopt the use of that tool the easier it is to adopt the overall workflow of GitOps.

Storing all your configuration and system states within Git and as Infrastructure as Code can significantly increase productivity.  Being able to roll out changes quickly or roll back from changes quickly.

## Is GitOps just for Kubernetes?

No it's isn't just for Kubernetes.  GitOps is often associated with Kubernetes because it's configuration can be entirely declarative in the form of YAML manifests. And lends itself very well to being stored inside version control.

## 

If you are looking to learn more about Git, or learn some tips and tricks that can help enhance your knowledge, check out my Git for everyone series of blogs.
5 TOOLS I WISH I KNEW EARLIER
Tags: webdev, beginners, programming, tutorial
Published: 2022-01-11 07:36:31

1. [GingerSauce ](https://gingersauce.co/)
  
   Ginger Sauce is one of the best tool to create Brand books.

2. [Loading](https://loading.io/)

    Loading has huge variety of animation, from simple to complex.

3. [LetsEnhance](https://letsenhance.io/)
     An AI powered tool that helps to improve image quality and enhance it.

4.  [Genial](https://genial.ly/)
    Genial is the tool for creating infographics, presentations, interactive images and animations.

5.  [PandaDoc](https://www.pandadoc.com/)
    PandaDoc provides templates like contract, form, proposals, quotes for you
A11y tips: hide elements for all users
Tags: a11y, tips, html
Published: 2022-01-11 07:32:50

**To hide content for all users** (sighted, screen reader and keyboard) there are several techniques that we can use with some differences between them:

## HTML attribute `hidden`

The item and everything it contains is removed from view for the user, from the accessibility tree, and from the tab order. **It's as if it doesn't exist in HTML**: you can't see it, the screen reader doesn't announce anything, and you can't tab to it.

As [Monica Dinculescu points out](https://meowni.ca/hidden.is.a.lie.html), using the `hidden` attribute to hide an element can cause problems when interacting with our CSS, but at the same time she proposes a solution.

```
<div hidden>
  <p>This content won't be shown</p>
</div>
```

## CSS `display: none`

It has the same effect as the previous one, with the only difference that here **we need the CSS to be loaded** so that the element is hidden, while with the `hidden` attribute the element will never be shown no matter there is CSS.

```
<div style="display: none;">
  <p>This content won't be shown</p>
</div>
```

### CSS `visibility: hidden`

The effect is the same as the previous ones with the difference that here **the element is hidden from sighted users but maintaining its dimensions** (`width` and `height`), with which an empty space appears that does not show anything, neither the element nor its content.

```
<div style="visibility: hidden;">
  <p>This content won't be shown but it'll take up space</p>
</div>
```
Inline function in cpp
Tags: cpp
Published: 2022-01-11 07:28:17

## **Inline function :**

- whenever a function is called it tasks a lot of extra time in executing a series of instruction for task such as

1. Jumping to the function

2.Saving Register

3.pushing argument into the stack and returning to the calling function

- Above task is executed either the function is small or big

- So whenever the function is small these task become overhead one solution is use macro and second is that inline function concept

- inline when it is invoke. that is the compiler replaces the function call with the corresponding function code.

 **To make a function Inline**

```
#include <iostream>
using namespace std;
inline int square(int a)
{
    return a*a;
}
int main()
{
    cout << "The square of 2 is: " <<square(2)<<;
    return 0;
} 
```

## Reminder:

- Remember that the inline keyword sends the request, not a command, to the compiler 

- The compiler may ignore this request if the function definition is too long & too complicated.

- then compiler will treat the function as a normal function.




- Thanks For Reading

- Happy Coding
Register an application in Azure AD, generate and store a secret in Azure Key Vault using PowerShell
Tags: azure, powershell, keyvault
Published: 2022-01-11 06:44:36

My exposure to **PowerShell** over the past few months has definitely made me appreciate the finer things in life. 

I've always been a **You Can't PowerShell Your Way Through Life** type of guy which kind of works on once of use cases but when you have tasks that are repeatable, using the GUI takes time and it becomes a hindrance. My new mindset is ***If you have to do something more than once***, it's time to script or automate it where possible.  

I have created a fair share of Azure AD Applications using the GUI, then had to generate a client secret, set an expiry date for that secret, copy and paste the value into 1 Password, then navigate towards Azure Key Vault and import the secret. As you can imagine, that's a pretty mundane task with a lot of clicking.

As with anything in the field of tech, you start of by channeling your inner Google-Fu to see if there are others that have walked down the path you are embarking on ***(Research, cough cough)***. I spent a considerable amount of time reading docs and blog posts, most of which only catered to certain aspects of this challenge. 

I came across a pretty insightful [blog post](https://dev.to/omiossec/azure-ad-app-registration-an-introduction-46gg) by Olivier Miossec that laid a solid foundation.

<br>

**Prerequisites:**

[Application Administrator AD Role](https://docs.microsoft.com/en-us/azure/active-directory/roles/permissions-reference#application-administrator)

<br>

[Access to an existing Azure Key Vault](https://docs.microsoft.com/en-us/azure/key-vault/general/basic-concepts)
<br>
The script requires you to authenticate to Azure Active Directory, once authenticated a few variables are declared and passed through commands that first creates the application in Azure AD, generates a secret and sets an expiry date. 
<br>
The secret value is then converted from a plain text password to a secure string, you are then prompted to authenticate against Azure and last but not least the last command stores the secret generated earlier in Azure Key Vault.
<br>
I have added the script below in it's entirety, you'll notice that I have excluded the Redirect URI as it is an optional parameter. 
<br>
{% gist https://gist.github.com/AdrianM10/f17ba4d041aba7fcad6294a5858c399a %}
<br>
Remember to automate / script all the mundane and repeatable tasks. Life's too short.
What is Amazon S3 bucket
Tags: aws, s3, cloud, storage
Published: 2022-01-11 06:44:00

S3 is relatively different from normal storage. It is an **object storage**.

> What is an Object storage ?
 Object storage is a data storage architecture for large stores of unstructured data. It designates each piece of data as an object, keeps it in a separate storehouse, and bundles it with metadata and a unique identifier for easy access and retrieval.

S3 is an unstructured data that eliminates the problem scaling of limitless storage.

#### what is bucket ?
A **bucket** is a container for objects. An object is a file and any metadata that describes that file.

<center>**OR**</center>

Bucket can be consider as folder and the object can be considered as file that you upload

<br>
<br>

#### Things to keep in mind while working with S3 : 

- If you want to modify a file on S3 then you need to modify that file on local and reupload it

- Bucket name should be globally unique across the AWS

- maximum size of a single object can be 5TB
- by default you can create 100 buckets per account but you can increase it upto 1000 according to your need

AWS will keep your data in 3 AZ(Availability Zone) for security purpose.
For some reason if one of the AZ is down or crashed then you data is still secure in other two.

### Types of S3 storage :

####1. Amazon S3 Standard : 

- If you frequently want to do I/O operations or on hourly basis then S3 standard is best option.

####2. Amazon S3 Standard-Infrequent Access (Amazon S3 Standard-IA) :

- If you are access data less frequently like in a week or in a month then S3 standard infrequent is best.

####3. Amazon S3 intelligent-Tiering : 
- At the time of storing the data you don't know how frequently you are going to access it then you can.

- It will analyze the access pattern and then according that it will store the to S3 standard or on S3 standard-infrequent Access because it is costly to store data in S3 standard compare to S3 infrequent

####4. Amazon S3 One Zone-Infrequent Access (Amazon S3 One Zone-IA) :
- If you store data in a Region it will replicate your data in three availability zone in a region. but class won't store your data in 3 AZ's.

- You can store non critical data in this.

####5. Amazon S3 Glacier :

- If you want to access data in a month or a year then you can prefer this locations

####6. Amazon S3 Glacier Deep Archive :
- If you want to store data for 7 to 10 years or more then that you can go with it
- it is the cheapest option in all the S3 classes



I will be posting more content regarding AWS and many more make sure to follow me.

Dev.to : https://dev.to/abhishekpakhare97

Github : https://github.com/AbhiPakhare

Twitter : https://twitter.com/abhi_pakhare_

Linkedin : https://www.linkedin.com/in/abhishek-pakhare/
Two method for finding the given number is palindrome or not
Tags: cpp
Published: 2022-01-11 06:40:13

https://www.freecodecamp.org/news/everything-you-need-to-know-about-cookies-for-web-development/

- Method 1
- Basically we can sole the palindrome problem in two way

- first is by using the reminder concept means that we can find the number using modulo operator and reverse the number and if given number is equal to that number then we can say number is palindrome.

```
 if(x<0) return false;
         if(x==0) return true;
         if(x%10==x) return true;
        if(x/10==0) return false;
        
      
         while(x>0)
         {
              rem=x%10;
            n=n*10+rem;
             x=x/10;
            
         }
         if(n==y)
             return true;
         else
             return false;
 }
```

- Method 2:

- This method is used when number is given using the Linked List or array form or vector form

- For example number is given in the linked list then we can create a vector v and store the value in vector and check from left pointing value and from right and if at least one number which is not equal the return false and if not then return true after the termination of loop

**Algo 2 :**

```
ListNode *temp=head;
        vector<int> v;
        while(temp!=NULL)
        {
            v.push_back(temp->val);
            temp=temp->next;
        }
        int n=v.size()-1;
        for(int i=0;i<v.size()/2;i++)
        {
            if(v[i]!=v[n])
                return false;
            n--;
        }
        return true;
```
 Thanks for reading 
Happy Coding