teleren/devto huggingface dataset:
What is Two-way binding in Angular?
Tags: angular, frontend
Published: 2023-07-03 08:01:26

Two-way binding in Angular is a data-binding technique that enables synchronization of data between a component's view and its underlying model. It allows changes made to the data in either the view or the model to be automatically reflected in the other, creating a bidirectional flow of data.

In Angular, two-way binding is denoted by the [(ngModel)] directive. It is commonly used with form controls such as input fields, checkboxes, and select dropdowns. The [(ngModel)] directive combines both property binding and event binding into a single syntax, facilitating the synchronization of data.

**Here's an example of two-way binding using [(ngModel)] in an Angular template:**

```html
<input [(ngModel)]="name" />
```

In this example, the input field is bound to a variable named "name" in the component's model. Any changes made to the input field will automatically update the "name" variable, and conversely, any changes to the "name" variable will be reflected in the input field.

Two-way binding simplifies the process of managing and updating data in Angular applications. It eliminates the need for manually listening to events and updating the model or view separately. With two-way binding, the view and the model stay in sync, providing a seamless and efficient way to handle user input and update application state. By obtaining [Angular Course](https://www.edureka.co/angular-training), you can advance your career in Angular. With this course, you can demonstrate your expertise in applications using React concepts such as Angular Modules, Components, Databinding, Angular Forms, Angular Directives and Pipes, Services and Dependency Injection (DI), many more fundamental concepts, and many more critical concepts among others. 

It's important to note that two-way binding using [(ngModel)] requires the FormsModule to be imported in the Angular module and the [(ngModel)] directive to be used within a form element or a component that supports two-way binding.

Additionally, two-way binding can be customized using additional features such as input validation, data transformation, and event handling. Angular provides mechanisms to extend and enhance two-way binding functionality to meet specific application requirements.
TIL how to create Azure Prometheus datasources with Ansible
Tags: todayilearned, ansible, azure, grafana
Published: 2023-10-02 19:19:52

---
title: TIL how to create Azure Prometheus datasources with Ansible
published: true
date: 2023-07-03 08:00:00 UTC
tags: TIL,ansible,azure,grafana
canonical_url: https://www.zufallsheld.de/2023/07/03/til-how-to-create-grafana-azure-prometheus-datasources/
---

Since I spent some time today on this, I’d rather write it down. Creating a Prometheus datasource that uses Azure Authentication was not straight forward.

Here’s the end result:

```
---
- name: Create a datasource in Grafana
  hosts: localhost
  gather_facts: false
  tasks:
    - name: Create prometheus datasource
      community.grafana.grafana_datasource:
        name: prometheus_test
        ds_type: prometheus
        ds_url: https://example.westeurope.prometheus.monitor.azure.com
        url: "https://example.com"
        url_username: foo
        url_password: bar
        enforce_secure_data: true
        additional_json_data:
          azureCredentials:
            authType: clientsecret
            azureCloud: AzureCloud
            clientId: "{{ lookup('cloud.terraform.tf_output', 'clientid', project_path=playbook_dir + '../terraform/') }}"
            tenantId: "{{ lookup('cloud.terraform.tf_output', 'tenant_id', project_path=playbook_dir + '../terraform/') }}"
        additional_secure_json_data:
          azureClientSecret: "{{ lookup('cloud.terraform.tf_output', 'password', project_path=playbook_dir + '../terraform/') }}"

```

(Bonus: I lookup the client and tenant ID from Terraform state.)

How did I get to this? By creating the datasource by hand and then querying it via the Grafana API:

```
> curl -s 'https://example.com/api/datasources/7' | jq .
{
  "id": 7,
  "uid": "3E8CgP2Vk",
  "orgId": 1,
  "name": "Prometheus",
  "type": "prometheus",
  "typeLogoUrl": "",
  "access": "proxy",
  "url": "https://example.com.westeurope.prometheus.monitor.azure.com",
  "user": "",
  "database": "",
  "basicAuth": false,
  "withCredentials": false,
  "isDefault": false,
  "jsonData": {
    "azureCredentials": {
      "authType": "clientsecret",
      "azureCloud": "AzureCloud",
      "clientId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "tenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    },
    "httpMethod": "POST"
  },
  "secureJsonFields": {
    "azureClientSecret": true,
    "basicAuthPassword": true
  },
  "version": 10,
  "readOnly": false
}

```

There you get the `jsonData` and `secureJsonFields`. These are the special, required fields that you have to pass to Ansible to get exactly what you want.
React Componets
Tags: javascript, react, 30daysofreact, beginners
Published: 2023-07-03 07:56:40



React components consist of three main parts:

1. 
Data:

Data includes the state and props of the component.

- State represents data that can be updated by the component's logic.

- Props (short for properties) are used to pass data from a parent component to a child component.
- The parent component controls how the child component should look or behave through props.
- Props are data that comes from the outside and can only be updated by the parent component. The parent component owns the data and transfers it to the child components.

2. 
Logic:
The logic of a component refers to the code that handles the component's behavior and functionality.
It includes functions, event handlers, and any other operations that manipulate or process data.
3.
View (UI):
The view, or UI (User Interface), represents the visual part of the component that users interact with.
It includes elements, styles, and layout configurations that define how the component appears on the screen.

React follows a one-way data flow:

- Data flows from the parent component to its child components through props.

- Child components cannot directly modify the data received via props; they can only read and display it.

- If a child component needs to update data, it should communicate with its parent component by triggering events or callbacks.

- The parent component can then modify its own state based on these events and pass the updated data down to its child components again.

By separating data, logic, and view, React components promote a modular and reusable structure, making it easier to build complex user interfaces.

Here is a working example of a Profile Card from Jonas Schmedtmann's React Course Challenge, Problem #1, and I solved. Sandbox Link below 
[](https://codesandbox.io/s/jonas-react-course-section-5-ndxtcs)
What is Kano Analysis in Business Analyst?
Tags: writing
Published: 2023-07-03 07:51:21

Kano Analysis, in the context of business analysis, is a technique used to prioritize and understand customer needs and requirements. It helps business analysts and product teams identify which features or attributes of a product or service will have the greatest impact on customer satisfaction.

**The analysis is based on the Kano Model, which categorizes customer requirements into five different categories:**

**1. Must-Be Quality:** These are the basic or fundamental requirements that customers expect as a minimum standard. If these requirements are not met, customers will be highly dissatisfied. However, meeting these requirements alone does not result in increased customer satisfaction or delight.

**2. One-Dimensional Quality:** These are the requirements that directly impact customer satisfaction and can be explicitly stated. Customers are satisfied when these requirements are met and dissatisfied when they are not. The relationship between customer satisfaction and the level of these attributes is linear.

**3. Attractive Quality:** These are the features or attributes that customers may not explicitly request, but when provided, they can generate delight and excitement. These requirements can differentiate a product or service from competitors and create positive emotions among customers.

**4. Indifferent Quality:** These requirements have no significant impact on customer satisfaction. Customers do not perceive any added value or impact whether these requirements are met or not.

**5. Reverse Quality:** These are features or attributes that customers find undesirable or even annoying. Their presence can lead to customer dissatisfaction, even if other aspects of the product or service are meeting expectations.

By conducting Kano Analysis, business analysts can categorize customer requirements into these five categories and understand the relative importance and impact of each requirement on customer satisfaction. This information helps in making informed decisions about prioritizing features, allocating resources, and focusing on areas that will have the most positive impact on customer satisfaction and business success.

Kano Analysis is typically performed through surveys, interviews, or other customer feedback mechanisms. The data collected is then analyzed and mapped onto the Kano Model to determine the category to which each requirement belongs. By obtaining [Business Analyst Course](https://www.edureka.co/masters-program/business-analyst-certification-course), you can advance your career as Business Analyst. With this course, you can demonstrate your expertise in designing and implementing data modelling, data preparation, data analysis, querying data, data visualization, and many more fundamental concepts, and many more critical concepts among others.

By applying Kano Analysis, business analysts can identify critical features that must be included, prioritize enhancements that will generate customer satisfaction, and uncover potential areas of innovation and differentiation to create a delightful customer experience.
Build & Train Custom AI Chatbot in 5 Minutes
Tags: chatbot, chatgpt, webdev, beginners
Published: 2023-07-03 07:39:16

Who says it’s time consuming to build a chatbot for your website or social media channels! Follow these steps to build your first chatbot trained with your data.

Step 1: Sign Up on https://chat.aitosocial.com.

Step 2: Embed the installation code on your website before closing body tag.

Step 3: Go to Settings -> Artificial Intelligence and provide your Open AI API key.

If you don’t have a Open AI key, sign in to the platform & get it from here (https://platform.openai.com/account/api-keys). Other settings choose your preferred options.

Step 4: Got to Chatbot Training on Artificial Intelligence section. Provide your website URL to the bot. Hit submit. And it will be trained with all your website data in minutes. No more manual intent, response.

Congratulations, Your bot is now replying to your users on your website!

You can now connect all your communication channels with the bot. WhatsApp, Facebook, Instagram, Email, Telegram and more.

Browse all the chatbot features — https://aitosocial.com/

Cheers!
ChargeHub: Empowering Electric Mobility
Tags: topmobileappdevelopmentcompany, evchargingstationapp
Published: 2023-07-03 07:21:14


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0q9m7v0rvf24z989t6ec.png)
ChargeHub is a dynamic platform revolutionizing electric mobility. With a user-friendly interface and an extensive network of charging stations, it empowers electric vehicle (EV) owners to navigate their journeys seamlessly. From finding nearby charging stations to monitoring charging sessions, ChargeHub enables users to make informed decisions, promoting sustainable transportation and transforming the way we travel. Experience the future of electric mobility with ChargeHub's comprehensive and empowering solutions.

Read More:-
**[https://theomnibuzz.com/chargehub-empowering-electric-mobility/](https://theomnibuzz.com/chargehub-empowering-electric-mobility/)**
How to deploy react app
Tags: css, webdev, react
Published: 2023-07-03 07:09:07

To deploy a React app to Netlify, you can follow these steps:

##Build your React app: 

Before deploying, you need to create a production-ready build of your React app. Open a terminal or command prompt, navigate to your project's directory, and run the following command:

```
npm run build
```
This will generate an optimized build of your React app in a build directory

<br>

##Sign up for Netlify:

If you haven't already, go to the Netlify website [https://www.netlify.com] (https://www.netlify.com)
and sign up for a free account. Once you've signed up and logged in, you'll be taken to the Netlify dashboard.

<br>

##Create a new site: 

On the Netlify dashboard, click on the "New site from Git" button. Choose the Git provider where your project is hosted (e.g., GitHub, GitLab, Bitbucket) and connect to your repository.
<br>

##Configure your site settings:
 
After connecting your repository, Netlify will automatically detect your build settings. Verify that the "Build command" field contains the correct build command for your project (usually npm run build). In the "Publish directory" field, enter build to specify that Netlify should use the contents of the build directory.

<br>

##Customize your build settings (optional):

 Netlify provides various build settings and deployment configurations. You can customize these settings based on your project's requirements. For example, you can set environment variables, specify redirects or rewrite rules, and configure form handling.
<br>

##Deploy your app:

Once you've configured your site settings, click on the "Deploy site" button. Netlify will initiate the build process by pulling your code from the connected repository, running the build command, and deploying the optimized build to their global CDN (Content Delivery Network).

<br>

##Wait for deployment:

 Netlify will show the build progress and deployment logs in the deployment panel. Once the deployment is complete, you'll be provided with a unique URL for your deployed app.

<br>

##Test your app: 

Visit the provided URL to see your React app live on the web. Netlify also provides automatic continuous deployment, so any future changes pushed to your repository will trigger new builds and updates to your deployed app.

That's it! Your React app is now deployed on Netlify. You can further explore Netlify's features like custom domains, SSL certificates, and form handling to enhance your app deployment experience.
Weekly Roundup 011 (Jun 26): 🔥Hot Topics🔥 in #workplace, #sharepoint, and #powerplatform
Tags: roundup, sharepoint, powerplatform, workplace
Published: 2023-07-03 07:07:58

Hey fellow developers! It's @jaloplo, here to give you the latest scoop on what's been happening in the [#workplace](https://dev.to/t/workplace), [#sharepoint](https://dev.to/t/sharepoint), and [#powerplatform](https://dev.to/t/powerplatform) communities. 😎

## [#workplace](https://dev.to/t/workplace)

- [My Journey into Software Development: First Week of Internship](https://dev.to/fetterollie/my-journey-into-software-development-first-week-of-internship-36ki) by [Jonathan Fetterolf](https://dev.to/fetterollie)

## [#sharepoint](https://dev.to/t/sharepoint)

- [Practical Guide: Applying Default Site Templates in Microsoft Teams for Streamlined Collaboration](https://dev.to/jaloplo/practical-guide-applying-default-site-templates-in-microsoft-teams-for-streamlined-collaboration-404) by [Jaime López](https://dev.to/jaloplo)

## [#powerplatform ](https://dev.to/t/powerplatform)

- [How to - Make a Flow Chart Power App](https://dev.to/wyattdave/how-to-make-a-flow-chart-power-app-1phh) by [david wyatt](https://dev.to/wyattdave)

That's all for this week's roundup! Thanks for tuning in, and remember to keep the discussions lively and informative in our tags. 💬 If you have any suggestions for future topics, feel free to drop them in the comments below. See you next week! 👋
Have You Used Python in Unexpected Ways?
Tags: discuss, python
Published: 2023-07-03 07:00:00

Python is a versatile language with endless possibilities. Have you found unique and unconventional uses for Python beyond traditional software development? Share your experiences and inspire others with your creative applications of Python.

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
Coding 101: HTML, HTML5, CSS, CSS3 - What's the Difference?
Tags: codenewbie, beginners, discuss
Published: 2023-07-03 07:00:00

_This week's discussion series is dedicated to helping beginners on their coding journey by addressing common doubts and misconceptions. We will delve into fundamental concepts, explore essential tools, and shed light on industry practices, providing clarity and guidance to those who are new to coding. If you're an experienced developer, your valuable insights, explanations, and best practices are highly encouraged and appreciated to support and mentor aspiring coders!_

> HTML and CSS have evolved over time, with HTML5 and CSS3 bringing new possibilities. Can you help newbies understand the disparities, highlight the advantages of newer versions, and discuss their impact on modern web development?

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more discussions and online camaraderie!

*{% embed* https://dev.to/codenewbieteam *%}*
Greening software 101
Tags: greenit, development, ai
Published: 2023-07-03 06:49:53

Will AI boost the adoption of carbon aware coding practices? 

Does it sound a bit counter-intuitive? Then you should listen to Anne Currie - co-author of the much looked forward O'Reilly book “Building Green Software” - sharing her views on the future of software development. Quite refreshing! In this new Green IO 🎙️ episode, Anne exchange with Arne Tarara on how to green software from multiple angles:
📏Measure
🛠️ Tooling
🧑‍🎓Training
...

Listen to this episode the way you want on your favourite podcast platforms or here ⬇️
https://lnkd.in/gYhaMQ_7

Enjoy! 🎧
Top 5 features from the latest Figma + VS Code integration
Tags: vscode, webdev, design
Published: 2023-07-03 06:35:12

Attention!

**Figma is now integrated with VS Code**

As a designer who likes to develop my own designs, this collaboration has definitely been an unexpected but a welcome surprise. 

In this blog post, I'll share some interesting features which I liked and found useful while developing the designs.

###Feature 1: Notifications
![Figma file explorer and notifications](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q5nueavdmlvtiae1atmo.png) This ensures that we can stay up-to-date especially when we're collaborating with others to see their comments as and when they come without having to switch the window.

###Feature 2: Downloading assets
![Downloading images](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l9duqdrx6caigwzhq5gu.png) Select the frame which contains an image, go to **Assets** tab, select your desired format (png, jpg, svg), and click export. 

![Prompt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ufi7yj7oe12zhhx5fqe.png) A prompt will appear at the top asking you to specify the path where you'd like to save your asset. Enter your desired location (both absolute and relative paths work) and click enter.

###Feature 3: Dev resources
![Developer resources](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmyysf7zxi7rmrcj646f.png) If a designer has linked external sources for the developer to refer while writing code, we'll see it under this tab. 

###Feature 4: REM
![Inspect settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zsdarfpp5188adg4llbm.png) Yes, you heard it right ! No longer converting pixel values to rems and ems manually. This plug-in can now do that for us. 

![Selecting rem](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h2yoej9fz8p3y4gx6gpo.png) Simply, click *inspect settings icon* and select rem.

###Feature 5: Suggestive code
![Suggest code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1yrzmcwlaflsnos8uiuw.png) With a layer selected in Figma, when writing code, VS Code editor will auto-suggest and take values from selected Figma layer. With a press of a <kbd>Tab</kbd>, we can write code faster than ever.

That's it for this blog. Hope you enjoyed it.
Cortexi - Ear Results, Reviews, Price, Uses & Where To Buy?
Tags: webdev, javascript, beginners, programming
Published: 2023-07-03 06:16:51

[Cortexi](https://www.mid-day.com/brand-media/article/cortexi-scam-exposing-reports-you-must-see-this-23284327) game. You can let your children sleep involving their bed in the right time while appreciate your evening cinema together partner. With Peltor ear muffs, life indeed becomes a lot more painless!
[https://www.mid-day.com/brand-media/article/cortexi-scam-exposing-reports-you-must-see-this-23284327](https://www.mid-day.com/brand-media/article/cortexi-scam-exposing-reports-you-must-see-this-23284327)
https://www.mid-day.com/brand-media/article/cortexi-review-tinnitus-relief-drops-customers-complaints-exposed-here-23284428
https://www.yepdesk.com/cortexi-drops5 
https://filmfreeway.com/Cortexi-IngredientsBenefitsUsesReviewsPriceAndResults 
https://soundcloud.com/cortexi-173874553/cortexiingredients 
https://www.crunchbase.com/organization/cortexi-drops-9c5e 
https://cortexiearbenefits.clubeo.com/calendar/2023/05/06/cortexi-ingredients-benefits-uses-reviews-price-and-results 
https://cortexidropsreviews.company.site/ 
https://infogram.com/cortexi-1hzj4o3n5g07o4p 
https://medium.com/@cortexiinfo 
https://hashnode.com/@cortexidropsinfo 
https://app.flowcode.com/page/cortexifacts 
https://cortexi-drops-benefits.webflow.io/ 
https://lookerstudio.google.com/reporting/01e0a151-34e5-4323-bf90-29b748062ffb 
https://colab.research.google.com/drive/1q12LiuO-8G99rDKDGc0tOPCpL-fHD3XG 
https://groups.google.com/g/cortexi-drops-fact/c/IEAdf0k01Xk 
https://sites.google.com/view/cortexi-drops-ingredients/ 
https://cortexidropsbenefits.blogspot.com/2023/05/cortexi.html   
https://www.youtube.com/watch?v=uFjL2TGNwzU  
https://www.click.in/noida/cortexi-ingredients-benefits-uses-reviews-price-and-re-c75-v52341722   
https://www.scoop.it/topic/cortexi-drops-by-cortexi-drops-14
https://www.sympla.com.br/produtor/cortexifact
https://www.sportsblog.com/rdsakvyna/cortexi-ear-benefits-pros-cons-price-scam-and-legit/
https://fixr.co/event/cortexi-ear-reviews-benefits-uses-tickets-581539279
https://jobs.blognone.com/company/cortexi/job/cortexi-ear-benefi-ZxSp 
https://patch.com/new-york/soho-little-italy/calendar/event/20230706/4a9f2e39-ced3-46ce-aa64-36678ea5e742/cortexi-ear-benefits-pros-cons-price-scam-and-legit 
https://twitter.com/cortexifac54910
https://www.crunchbase.com/organization/cortexi-706c