teleren/devto huggingface dataset:
Azure Tenant Security Solution (AzTS)
Tags: microsoftazure, devops, devsecops, azure
Published: 2021-07-05 06:44:50

---
title: Azure Tenant Security Solution (AzTS)
published: True
description: Azure Tenant Security scanner
tags: MicrosoftAzure , DevOps, DevSecOps, Azure
//cover_image: https://direct_url_to_image.jpg
---
**Secure DevOps Kit for Azure (AzSK)** is being phased out through FY21.The AzSK is transitioning to a more scalable and robust solution called **Azure Tenant Security scanner (AzTS)** which is based on Azure Functions and a central scan model where scans are performed via a managed identity with Reader access to subscriptions configured at management group level. This new approach helps us scale efficiently and with less process overhead to get the same level of visibility to compliance of several thousand subscriptions. It is also designed to help accelerate our migration to native security offerings in Azure such as Policy, Security Center, Management Groups, Azure Resource Graph, etc.

**Steps:**
1. Download the Power Shell Scripts from Here ( https://github.com/azsk/AzTS-docs/blob/main/TemplateFiles/DeploymentFiles.zip?raw=1)
2. Open the DeploymentFolder that you had created and open the ExecutionScript.ps script with Power Shell IDE
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u0cltul3yq50x2u05aik.png)

3. Replace the information for
$TenantId - you can get in the Azure Active Directory
 ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pjsotz130pd1z5yv9c02.png)

$MIHostingSubId,$HostSubscriptionId - Your Subscription ID
$MIHostingRGName,$HostResourceGroupName - Resources Group Name
$Location -"East Asia" 
$MIName = "Name of the Scanner MI"
$TargetSubscriptionIds - Your Subscription ID
$AzureEnvironmentName = "AzureCloud" or others
$SendAlertNotificationToEmailIds = the email to receive notification

4.After execute the scripts, you will saw the azure services are setup in your resources group.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r0ag81phq3mejfpqvodi.png)

5.When you open the webapp, the data is still blank.
Remember to execute the PowerShell Command, its take around 15 minutes.
```
Start-AzSKTenantSecuritySolutionOnDemandScan -SubscriptionId $HostSubscriptionId1 -ScanHostRGName $HostResourceGroupName1
```
After end of execution, the messages will display
"Subscriptions have been queued for scan. The scan result will be available in the next 2 hours."

At the end,Open the webapp again,you will get the results as below
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ovn1jgr7gxto0fqxyttx.gif)

**Reference:**
https://github.com/azsk/AzTS-docs
Fontawesome alternatives
Tags: html, css, codenewbie, react
Published: 2021-07-05 06:33:15

### A. feathericons
[https://feathericons.com](https://feathericons.com/)

### B. Boxicons
[https://boxicons.com](https://boxicons.com)

### C. Line Awesome
[https://icons8.com/line-awesome](https://icons8.com/line-awesome)

### D. ionicons
[https://ionicons.com](https://ionicons.com/)

### E. CSS
[https://css.gg](https://css.gg)

### F. Bootstrap Icon
[https://icons.getbootstrap.com](https://icons.getbootstrap.com/)

### G. Google Icons
[https://fonts.google.com/icons](https://fonts.google.com/icons)
HTML tags | mark
Tags: html, tags, mark
Published: 2021-07-05 06:31:52

It is used to **mark or highlight elements** that have special relevance for the user in a text. A classic example is usually highlighting the search term in search results, although it can also be text in a quote, for example.

Not to be confused with the `<strong>` element, which is used for emphasis and has no semantic value.

- Type: *inline*
- Self-closing: *No*
- Semantic value: *Yes*

[Definition and example](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark) | [Support](https://caniuse.com/mdn-html_elements_mark)
Daily Developer Jokes - Monday, Jul 5, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-07-05 06:22:55

---
title: "Daily Developer Jokes - Monday, Jul 5, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Monday%2C%20Jul%205%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12591442e48.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*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:___ When do front end developers go out to eat?

___A:___ On their lunch `<br>`.
 -->
First Mile at Flatiron School
Tags: flatironschool, bootcamp, newbie, mod1
Published: 2021-07-05 00:02:28

I have just started my journey in becoming a software engineer at Flatiron School. I was stuck in retail management after graduating from college while trying to pursue a career in marketing. During quarantine, I felt it was a sign for me to look for other options and possibly choose another career path. I came across coding through a friend. At first it all seemed so intimidating to learn but I figured I have nothing to lose and had enough time to dedicate my time to learning to code. I did a lot of research and applied for several coding bootcamp schools. I felt that Flatiron School was the best choice for me after speaking to one of the admissions team members. 

I wanted to go into a career path where I was being challenged everyday. I want to feel like I have done something productive and learn a lot of new things at the end of the day. After years of failing to pursue my dream, I believe Flatiron School will give me another chance in finding a stable career. I finally feel hopeful and I’m looking forward to this journey!
got my first 1k views !!! :]
Published: 2021-07-05 06:22:16

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9r8eair7mlj0bi0k1lnb.png)

I hopped onto devpost and saw dashboard today and saw that i got 1000 views on my blog , 1000 people read my blog,
so many people that it can fill an entire school! or entire hotels

Thanks a lot to everyone who read my blog posts or just checked it out , thanks a lot :)
XSS - are you sure you are protected?
Tags: security, xss, javascript, owasp
Published: 2021-07-05 06:15:23

As a developer, you probably have heard what [XSS](https://owasp.org/www-community/attacks/xss/) is and how to defend against it by escaping user input. You also probably might have heard that modern frontend frameworks like React or Angular are XSS safe (due to escaping). Still, though there are some XSS caveats worth remembering: 

Imagine you have a form where the user adds an address to his page/Facebook/Instagram etc. You might have HTML code like:


`<a href="https://brightinventions.pl/">User page</a>
`

When taking input from the user which later will be displayed in a href tag (or any other "new link" click tag-like frame) it is important to validate the protocol of the URL. User can simply add their page with javascript protocol and execute XSS.


`<a href="javascript:alert('XSS!');">User page</a>`


To conclude: to defend against XSS, besides escaping user input do validate the protocol of URL. Let me know if you have any other interesting thoughts when it comes to XSS!
My blog about films
Tags: cms, blog, frontend, css
Published: 2021-07-05 06:13:49

Hello,

I created my first ever solo project. In the past, I was working with my friend on some real life projects doing front-end part of the page. But this time, I had no holding hand. 

<b>[Dave's Film Club](www.davesfilmclub.com//)</b>

I am huge fan of films so this was really enjoyable to build :) 
I'm not planning to publish every day, but rather when I feel like it.

The page is build on October CMS (when I started it, it was still free :D) 

I think this is great project for my portfolio, but I am here to ask you - <b> what would you add to the blog? Do you like it? As someone, who looks at this project in my CV, what do you think? </b>

I am planing to add comment section and filter by category when I will have enough films in "Recommendations" section. 

I welcome any idea, how to improve/ change my blog :) 
Thanks
Simple alert notification for your react app
Tags: javascript, react, npm
Published: 2021-07-05 05:53:24


## react-toastify

react-toastify is a npm package to replace your default alert notification on the browser.

## Installation

Use the node package manager (npm) to install react-toastify.

[react-toastify](https://www.npmjs.com/package/react-toastify) 

```bash
npm install --save react-toastify
```

## Usage with class component

```jsx
 import React from 'react';
 import { ToastContainer, toast } from 'react-toastify';
 import 'react-toastify/dist/ReactToastify.css';

class App extends React.Component {

onClick = () => {
  toast.info("Info")
  toast.success("Success");
  toast.warning("Warning");
  toast.error("Error");
  toast.default("Default");
  toast.dark("Dark");
}
render() {
  return (
   <>
    <div>
    <button onClick={this.onClick}>Notify!</button>
    <ToastContainer />
    </div>
   </>
)}
}
```

## Usage with functional component

```jsx
  import React from 'react';

  import { ToastContainer, toast } from 'react-toastify';
  import 'react-toastify/dist/ReactToastify.css';
  
  function App(){
    const notify = () => {
      toast.info("Info")
      toast.success("Success");
      toast.warning("Warning");
      toast.error("Error");
      toast.default("Default");
      toast.dark("Dark");
    }

    return (
      <div>
        <button onClick={notify}>Notify!</button>
        <ToastContainer />
      </div>
    );
  }
```

By default, ToastContainer have the attributes as below
```html
<ToastContainer
  position="top-right"
  autoClose={5000}
  hideProgressBar={false}
  newestOnTop={false}
  closeOnClick
  rtl={false}
  pauseOnFocusLoss
  draggable
  pauseOnHover
/>
{/* Same as */}
<ToastContainer />
```

## Conclusion

With a few steps to install the package and usage with code, you now have a colourful alert to use to make it more attractive for user, thank you for your time.
What is a programming language?
Tags: python, programming, computerscience, beginners
Published: 2021-07-05 06:13:12

A computer is an electronic device, and one behavior you must have noticed in all electronic devices is ON and OFF functionality. When we switch ON bulb glows and blacks out when we switch OFF it. The computer understands this Binary of one and zero. So, the default language understood by all computer devices is Binary. 

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qnzf52s7ul99lxahu26r.png)

Programming in 1 and O is not manageable and efficient. That’s why some great computer scientists built human-friendly language, which is called high-level programming language. 

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l6uu4lqmiovycyuj0lrn.png)
 
To Say "HI!". You would need to say this if you are giving instructor in binary language. 

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dujv23admfcdtjj0ti88.png)
 

Let me give you an analogy, you hired someone to work for you, but he speaks Spanish, and you don’t. What would you do, nowadays we have a translator. So, you would type in your language, and that will translate it to Spanish. Hence with the help of a translator, you are giving instructions and getting your work done.
Similarly, we can instruct the computer in the high-level programming language but with the help of a compiler who would translate or compile our written code in the machine code. 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4gkchnv6323lca9mosy.png)
 
There are many programming languages, but they share the almost same concept. They only have different keywords. I would again take an example of languages such as French, Spanish, and Chinese have different vocabularies, but they convey the same meaning and emotions. Only, their grammatical structure is different.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjtd49p0leyfq7ngub4g.png)
 

Basic instructions appear in just about every programming language:
•	Input: Get data from the keyboard, a file, the network, or some other device.
•	Output: Display data on the screen, save it in a file, send it over the web, etc.
•	Math: Perform basic mathematical operations like addition and multiplication.
•	Conditional execution: Check for specific conditions and run the appropriate code.
•	Repetition: Perform some action repeatedly, usually with some variation.

List of some programming languages: - 
•	C Language 
•	Java
•	C#
•	JavaScript
•	Python

How to say "Hello, World!" using programming language and see Python is the cleanest and straightforward language of all.
 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s9rljujesth4ltne98gu.png)
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zdz7ynnh858g9bv6fddl.png)
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/01knb4mlxmzsujd0ezvf.png)
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6nb0h2zqfuwjpu1nckri.png)

This post is a part of series of posts. So, do check out my next post.
Remove duplicates in ordered array Java
Tags: java
Published: 2021-07-06 11:12:05

---
title: Remove duplicates in ordered array Java
published: true
date: 2021-07-05 06:00:00 UTC
tags: java,java
canonical_url: https://jsedano.dev/java/2021/07/05/remove-duplicates-in-ordered-array.html
---

Heres how to remove duplicates from an ordered primitive int array on Java.

You can find the complete code for this here: [remove\_dupes.jsh](https://github.com/jsedano/examples/blob/main/java-snippets/remove_dupes.jsh).

Consider the following problem, you have to remove the duplicates from an ordered integer array `in place`. Since you cant actually change the length of a primitive array in java without declaring a new one, you will return the new length the array would have without the duplicates.

In order to solve this in O(n) time and O(1) space we are going to use a `two pointer technique`. We will have `j` that will increase by one in every iteration and `i` which will increase only if its different from the value which j points to, ignoring every duplicate found.

This doesnt account for a null, or less than a lenght 2 array (in which case we could start j at 0).

The pre-increment could be less readable but just remember that `++variable` means we are increasing first and then using the variable.

```
int removeDupes(int arr[]) {
    int i = 0;
    for(int j = 1; j < arr.length; j++) {
        if(arr[i] != arr[j]) {
            arr[++i] = arr[j];
        }
    }
    return ++i;
}
```

Download the complete code from this post here: [remove\_dupes.jsh](https://github.com/jsedano/examples/blob/main/java-snippets/remove_dupes.jsh).
Anvil Platform : Build Full-Stack Apps with only Python
Tags: python, javascript, html, sql
Published: 2021-07-05 05:32:30

Anvil is a platform or a framework for building full-stack web applications with only Python.

So, the server-side code is in Python, the client-side code is also in Python.
ANVIL URL : https://anvil.works

You can also store your data for your app using a database system  built on top of PostgreSQL.

Check out my latest Video on Anvil Platform and how you can create a web application in under 10 minutes using Anvil GUI Tools

Check out my 15 m video presentation on how you can create a Feedback form very quickly.

{% youtube liZThmkIwys %}

Just to be clear, Anvil is a web GUI tool where you can drag and drop elements to build your web application in a matter of minutes, plus you can deploy it  immediately.

Anvil was founded by Meredydd who is a software developer living in Cambridge. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a7ut7vtp88vmqyguc9xz.PNG)


The idea behind Anvil according to its founder, is that the way we create web applications is not efficient enough, and as I am myself a Pythonista, I was intrigued by this idea of creating full stack web applications using only Python code. backend and frontend

So the journey starts from your database where you have you data stored in rows and columns in MySQL database for example, then you turn these data into objects on the server, they have properties and methods that can be accessed, and you don't leave them as objects but you have to turn them into JSON format and you can send them to Django rest framework or any other Rest framework using http methods like get post put and delete.
On the other side of the HTTP connection there is JavaScript that is going to turn JSON in JavaScript object with other methods and properties, then we have to transform that into HTML DOM for the browser to render it and CSS to turn it into pixels .. 

There are a lot of transformations here which are somehow repetitive and annoying, you have to learn frameworks, markup languages, JavaScript, plus if you want to use something like Docker containers with MySQL in a mac , windows or any Linux disrto ; it's a big headache,


Alright, so how could anvil do a better job ? 
So instead of html, css and its many frameworks, this will be substituted by Visual UI builder in Python, as I told you it's a GUI drag-and-drop system, and you don't have to worry about anything else.

https://bekbrace.com 
Thank you for reading and watching 
Signin' out / Peace

Facebook: https://www.facebook.com/bekbrace​​ 
DEV profile: https://dev.to/bekbrace​​
GitHub page: https://github.com/BekBrace​
web design company in nagercoil
Tags: webdesign
Published: 2021-07-05 05:26:32

we are the best web design company in Nagercoil .we will create websites for other businesses. we are a very unique and creative team. our location is Chennai and Nagercoil. we did many projects now also we are doing projects. we are doing digital marketing also. we are collecting the correct amount in our projects. our all project is very perfect and professional. we are the best web design company in Chennai
we are doing Facebook ads, google ads, youtube ads, and Instagram ads. we are doing all types of PPC ads. we have a creative team. they are very intelligent creative mind persons. we finished our work with your time. our team is very professional. they are a very excellent team. we are the best web design company in Nagercoil
we are providing graphic designing service, digital marketing, Webdesign, and mobile app development. we have an excellent team.our service also very professional. we are doing a logo designing service also. we are the best web design company in Chennai.
I added meta viewport on my HTML. 
Tags: html, todayilearned, responsiveness
Published: 2021-07-05 05:15:39


The inspiration of this blog came from a vanilla JS project I worked on during bootcamp. I revisited my code to make it responsive for mobile. As I was adding media queries for mobile and tablet, it wasn't working...

<img src="https://media.giphy.com/media/MBCyiM4HIITb1E316S/giphy.gif" alt="John Cena thinking meme"/>

Checked my stylesheets on my index.html and everything was there but why are my media queries not working?? I searched and searched.. I found this meta tag inline with web responsiveness!

Are you familiar with a meta tag like this?

```<meta name="viewport" content="width=device-width, initial-scale=1"/>```

According to [GeeksforGeeks](https://www.geeksforgeeks.org/html-viewport-meta-tag-for-responsive-web-design/), this meta tag was firstly introduced by Apple inc. for Safari iOS.

This tag specifically declares the initial-scale value and will determine the zoom level when the page gets visited. Want to see it in action?

#### This is my page before adding meta tag
*This is on mobile view (iPhone 6/7/8)*
 ![Landing page screenshot without meta tag](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8wz03xyi8kz4v495b82b.png)

#### After adding the meta tag (and a tad bit CSS adjustments)
*Without the CSS adjustments for my media queries, it looked all zoomed in*
![Landing page screenshot with meta tag](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m070x3bokasy4qcd0e7y.png)

There are still a lot more work to do with my web app to fully have it responsive, but I am glad I get to share this experience to you. It's amazing how one line of code can open opportunities to learn and have your code working properly the way you want it!

### Location
That `<meta>` tag should be placed inside your `<head>` tag. The content of the `<meta>` tag won't be seen on your DOM. Web responsiveness is only one out of the many uses of `<meta>` tags.


### Other usage

`<meta>` tags can also be used and various ways! See examples below:

* Author
* Description
* Title
* Keywords

For more, feel free to visit [GeeksforGeeks](https://www.geeksforgeeks.org/html-meta-tag/?ref=rp) and try the other ones on your project!

All the details above can help give a better website traffic for your webapp also known as SEO or Search Engine Optimization. The more detail you add, the easier it is to redirect visitors to your site. Neat right?

Let me know other unique meta tag usage you know if you have any and I would love to try it!

Until the next!