teleren/devto huggingface dataset:
A Centralized Control Center for Azure DevOps!
Tags: devops, azuredevops, observability, live
Published: 2022-09-07 02:00:25

### Enable Observability at Organization Level for Azure DevOps

Discover how to create a __centralized dashboard for managing Azure DevOps__ in your organization. Always wanted to have a central control center that allows you to see the status of all your projects in your Azure DevOps organization?

In this Live with Vinicius Moura (DevOps MVP) we see how to achieve exactly that! For __FREE__!

{% youtube VkoZLw56bhw %}
[Link to the video: https://youtu.be/VkoZLw56bhw](https://youtu.be/VkoZLw56bhw)

If you want to know more, __post your questions down below__ so I can address them.

Thanks so very much again for your support!

__Like, share and follow me__ 🚀 for more content:

📽 [YouTube](https://www.youtube.com/CoderDave)
☕ [Buy me a coffee](https://buymeacoffee.com/CoderDave)
💖 [Patreon](https://patreon.com/CoderDave)
📧 [Newsletter](https://coderdave.io/newsletter)
🌐 [CoderDave.io Website](https://coderdave.io)
👕 [Merch](https://geni.us/cdmerch)
👦🏻 [Facebook page](https://www.facebook.com/CoderDaveYT)
🐱‍💻 [GitHub](https://github.com/n3wt0n)
👲🏻 [Twitter](https://www.twitter.com/davide.benvegnu)
👴🏻 [LinkedIn](https://www.linkedin.com/in/davidebenvegnu/)
🔉 [Podcast](https://geni.us/cdpodcast)

<a href="https://www.buymeacoffee.com/CoderDave" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 30px !important; width: 108px !important;" ></a>

{% youtube VkoZLw56bhw %}
Get all the numbers between 2 numbers JAVASCRIPT
Tags: javascript, beginners, tutorial
Published: 2022-09-07 01:45:56

`Math.max()`
will get the highest number in the array
`Math.min()` 
will get the lowest number in the array

`...arr` will copy all the content of the array passed

---


```
function sumAllBetween(arr){
	let highNum = Math.max(...arr)
	let lowNum = Math.min(...arr)
	let arrayBetween = []
	
	for(let i = lowNum; i <= highNum; i++){
arrayBetween.push(i)
	}
	return arrayBetween
	
}

console.log([9, 1])
```

---

This code will return
```
[
  1,
  2,
  3,
  4,
  5,
  6,
  7,
  8,
  9
]
```
My First Blog
Tags: opensource
Published: 2022-09-07 01:35:21

Hi everyone,

My name is Neil and I am a 4th year student at Seneca in the BSD program.

I am taking DPS909 because I heard great things about this course! I've heard students talk about how this course was their favourite course they've taken at Seneca. You can tell how popular this course is by how quickly it filled up when you try to enroll in it. Last year, I wasn't able to get in, but luckily I was able to enroll this year. I am pretty new to Open Source, so I hope I can learn a lot of stuff this semester. I want to work on projects that both interest me and are relevant in today's world.

The repo I chose was Github-Ranking, a repo to check the most starred and forked GitHub repos of the day. The link can be found here: [https://github.com/EvanLi/Github-Ranking](https://github.com/EvanLi/Github-Ranking). I picked this repo because I've never explored the most popular repos before and this allowed me to see what a lot of people are working on.
GIT COMMIT -M "First Blog"
Tags: opensource, javascript, git
Published: 2022-09-07 01:20:18

## **About Me**

My name is Mario Leonardo, and I'm a semester 5 student at Seneca College for "Computer Programming & Analysis" program. I learned how to write in Java during my time in high school; seeing my codes do things that I wanted them to do filled me with joy. I wrote a code from a simple game of "tic tac toe", to a few thousand lines of code of a "text" RPG. 

I wasn't sure if I wanted to become a game developer, so I decided to study at Seneca for "Computer Programming & Analysis" to have a fundamental idea on how it feels to program larger codes. I realized after being here for four semesters that software developing isn't really for me. While it was fun seeing my program do incredible things, it just wasn't as exciting as I hoped for it to be. That's when I found a new passion for web developing. Object Oriented Programming felt restrictive for me, and I get more enjoyment when I don't have to follow a specific format when writing my code. 

I was a little familiar with what an "Open Source" is through my time at Seneca. I was fascinated by how an operating system like "Linux" came to be, and how anyone even those who doesn't have that much experience with programming can help out in upgrading the system, and build their own knowledge through their time working on it. It makes people without any prior working experience like myself stand out during my application process.


##**Future Goals**

I'm still young and inexperienced, I don't even have a goal that I want to accomplish. However, there is one thing in my mind that I have to succeed at or my time at Seneca and this course in particular will all be for nothing. I have never been a confident person, and even now I still struggle from voicing my own opinion, because I'm afraid of being wrong. I plan that throughout my time in this course, that I start to build more confidence by posting blogs and source code and ask people for help when working on the projects; specifically web based projects.

##**GitHub Projects**

WTFJS: https://github.com/denysdovhan/wtfjs

_JavaScript is a fun language to write with. I enjoy creating both the back-end and front-end side of my website, but there's always that one problem that will take me literally hours if not days just to figure out what it is, and the answer usually is very simple. This project lists explanations for weird things that happens in JavaScript, it allows beginners to get a deeper understanding of the language._
When does it stop? The bad habits, I mean.
Published: 2022-09-07 01:16:36

It's unattainable to have good habits only. Our human nature exposes us to both the good and the bad, and we must make conscious effort to ensure that one "the good" outweighs the other by a large margin. 
I sometimes struggle with dealing with bad habits, which affects my growth, especially when I set goals for myself to achieve. 
Many of us use our willpower and read books to get into the zone. When making commitments at the beginning, there's that initial conviction that it would be different, but alas, we end up spiraling back to the same habits we're trying to escape. 
The crazy part of all this is that we know what's bad for us, but why do we do it anyways, and how can we stay committed to achieving good habits? 

Habits are a dopamine-driven feedback loop. Behaviors that are highly-habit forming -  taking hard drugs, eating junk food, and browsing social media, are associated with high levels of dopamine. 

The habits that make us feel good are associated with high levels of dopamine, while habits like studying or working don't make us feel good as much as the examples stated above. 
According to some studies,  we must consider different practices to make the good habits pleasurable if we want to escape the bad ones. 

I think that dealing with attaining good habits is something you must crave. It won't be easy and would require discipline and consistency, and the question becomes, how bad do you want it, and what would you do to achieve it?  

What's your notion? let me know what you think.
Technical Interview - Code #006 - LeetCode #814. Binary Tree Pruning
Tags: java, programming, career
Published: 2022-09-07 00:23:08

{% youtube https://youtu.be/DYQT3o3nuQk %}

## Level

Medium

## Complexidade

Linear

## Topicos

Arvores Binarias, Travessia Pre-Ordem

## Problema

Dada a raiz de uma árvore binária, devolva a mesma árvore onde cada sub-árvore (da árvore dada) que não contenha um 1 foi removida.

Restrições:

O número de nós na árvore está na faixa [1, 200].
O nó.val ou é 0 ou 1.


## Exemplo

<p>&nbsp;</p> 
<p><strong>Example 1:</strong></p> 
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/06/1028_2.png" style="width: 500px; height: 140px;" /> 
<pre>
<strong>Input:</strong> root = [1,null,0,0,1]
<strong>Output:</strong> [1,null,0,null,1]
</pre>

<p><strong>Example 2:</strong></p> 
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/06/1028_1.png" style="width: 500px; height: 115px;" /> 
<pre>
<strong>Input:</strong> root = [1,0,1,0,0,0,1]
<strong>Output:</strong> [1,null,1,null,1]
</pre>

<p><strong>Example 3:</strong></p> 
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/04/05/1028.png" style="width: 500px; height: 134px;" /> 
<pre>
<strong>Input:</strong> root = [1,1,0,1,1,0,1,0]
<strong>Output:</strong> [1,1,0,1,1,null,1]
</pre>

## Implementar

```java
class Solution {
    public TreeNode pruneTree(TreeNode root) {
        
    }
}
```

## Fonte
  LeetCode #814. Binary Tree Pruning
  https://leetcode.com/problems/binary-tree-pruning/

## LinkedIn
https://www.linkedin.com/in/joaocarlosvale/

## GitHub
https://github.com/jcarlosvale/playground/blob/master/src/main/java/tests/leetcode/challenge30days/september2022/BinaryTreePruning.java
Quick and dirty server 2
Published: 2023-07-26 17:56:18

---
title: Quick and dirty server 2
published: true
date: 2022-09-07 00:00:00 UTC
tags: 
canonical_url: https://thomasrigby.com/articles/quick-and-dirty-server-2/
---

 ![A python](https://thomasrigby.com/images/ec4d69a8-300.jpeg)

I wrote last year about spinning up a [quick and dirty server](https://thomasrigby.com/articles/quick-and-dirty-server/) using [Python](https://www.python.org/).

Since then, I have moved to using Python 3 (woop woop!) and, the first time I ran my funky little `srv 1337` function I got an error! 😱

## "No module named SimpleHTTPServer"

According to the [Python 2.7 documentation](https://docs.python.org/2/library/simplehttpserver.html)…

> The SimpleHTTPServer module has been merged into http.server in Python 3.

So, the simple-enough solution is to replace `SimpleHTTPServer` with `http.server`.

1. Navigate to the folder you want to serve
2. `python -m http.server`
3. Open `http://localhost:8000`

### What if PORT 8000 is in use?

Pass a different port number like this: `python -m http.server %%PORT_NUMBER%%`

If you want it to be _even simpler_ - stick this somewhere in your bash config!

```
srv() {
  python -m http.server $1
}

```

As before, it doesn't come with any of the fancy stuff that other "local server" plugins might come with like hot reloading or compiling Scss but, if all you want is a small static site launching, why reach for another dependency?
How to avoid HackerRank & LeetCode on your job search
Tags: leetcode, hackerrank, jobsearch, technicalscreening
Published: 2022-09-11 08:55:41

---
title: How to avoid HackerRank & LeetCode on your job search
published: true
date: 2022-09-07 00:00:00 UTC
tags: leetcode,hackerrank,jobsearch,technicalscreening
canonical_url: https://jhall.io/archive/2022/09/07/how-to-avoid-hackerrank-leetcode-on-your-job-search/
---

Last week I [ranted a bit](https://jhall.io/archive/2022/08/31/leetcode-crossword-puzzles/) against LeetCode & HackerRank as recruiting tools.

Fellow list reader Shaffan replied with a great question:

> I’ve had a few technical interviews recently where I was either asked to do HackerRank solo or “pairing” with someone else. Do you know how to find companies that don’t use HackerRank?

Unfortunately, I don’t know a great answer. I’ve never seen a listing of companies that do, or don’t, use such screening techniques (aside from the partial list of brands on the LeetCode web site).

But I can offer the simple technique I use to detect such companies early in the recruitment process:

_I ask._

To be more clear, I ask, during the initial phone screening if possible, “Can you describe the entire hiring process for me?”

Most often, the answer reveals such screening techniques very quickly, with an answer like “First you’ll do an online technical test, then if you pass that, you’ll talk to two of our engineers, followed by an interview with the VP of Engineering.”

But sometimes it’s not nearly so clear. I’ve had answers like “First you’ll talk to the manager, and then we’ll have you do a technical test before proceeding to meeting the CTO.”

If you get such a vague answer, just ask for clarification. “What does the technical test entail?”

What’s great about this approach is it can help you detect _many_ [job red flags](https://jhall.io/archive/2021/05/09/my-job-red-flags/) before you (or the company) invest much time. So use this opportunity to ask about any other deal breakers you may have. Keep a list, and up date it as time goes by.

For other job seeking tips, you may be interested in the advice I offered on my podcast, [Episode 37: Career Q&A](https://jhall.io/tinydevops/2022-03-23-54065a92/).

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
Chrome插件开发 - Series
Published: 2023-08-13 02:11:40

---
title: Chrome插件开发 - Series
published: true
date: 2022-09-07 00:00:00 UTC
tags: 
canonical_url: https://manon.icu/blog/translate/build-chrome-extensions/index
---

- [插件介绍](https://manon.icu/blog/translate/build-chrome-extensions/intro)
- [第一个插件](https://manon.icu/blog/translate/build-chrome-extensions/first-extension)
- [第一个主题](https://manon.icu/blog/translate/build-chrome-extensions/first-theme)
- [新标签](https://manon.icu/blog/translate/build-chrome-extensions/new-tab)
- [使用 React 开发扩展](https://manon.icu/blog/translate/build-chrome-extensions/spicing-with-react)
- [Switch to vite](https://manon.icu/blog/translate/build-chrome-extensions/parcel-to-vite)
- [Popup extension](https://manon.icu/blog/translate/build-chrome-extensions/popup-extension)
- [集成 tailwind](https://manon.icu/blog/translate/build-chrome-extensions/add-tailwind)
- [External request](https://manon.icu/blog/translate/build-chrome-extensions/external-requests-new-tab)
- [Popup weather extension](https://manon.icu/blog/translate/build-chrome-extensions/popup-weather-extension)
- [Adding browser notifications](https://manon.icu/blog/translate/build-chrome-extensions/adding-browser-notification)
- [Repeating notifications](https://manon.icu/blog/translate/build-chrome-extensions/repeating-notifications)
- [Using storage](https://manon.icu/blog/translate/build-chrome-extensions/using-storage)
- [Hooking into installs](https://manon.icu/blog/translate/build-chrome-extensions/hooking-into-installs)
- [Custom options page](https://manon.icu/blog/translate/build-chrome-extensions/custom-options-page)
- [Icon action](https://manon.icu/blog/translate/build-chrome-extensions/icon-action)
- [Popup page modifications](https://manon.icu/blog/translate/build-chrome-extensions/Popup-page-modifications)
- [Messaging](https://manon.icu/blog/translate/build-chrome-extensions/messaging)
- [Modify images on the page](https://manon.icu/blog/translate/build-chrome-extensions/modify-images-on-the-page)
- [Creating the turboreader extension](https://manon.icu/blog/translate/build-chrome-extensions/creating-the-turboreader-extension)
- [Publishing a chrome browser extension](https://manon.icu/blog/translate/build-chrome-extensions/publishing-a-chrome-browser-extension)
CLUSTING
Published: 2022-09-06 23:59:17

# Synthesize categorical data sets
from numpy import where
from sklearn.datasets import make_classification
from matplotlib import pyplot
 
X, y = make_classification(n_samples=1000, n_features=2, n_informative=2, n_redundant=0, n_clusters_per_class=1, random_state=4)
 
for class_value in range(2):
 
row_ix = where(y == class_value)
 
pyplot.scatter(X[row_ix, 0], X[row_ix, 1])
 
pyplot.show()
What Is Cloud Computing ?
Tags: beginners, cloud, programming, makstyle119
Published: 2022-09-06 23:22:23

**Cloud Computing**:
In Cloud Computing you are using the resource of a computer from the cloud. you only pay according to your use.
Basic Service:
Each Cloud Provider has his own set of services.
There are two basic Services That provide by every Cloud Provider:
1) **Compute Power**
2) **Storage**
**Compute Power**:
Compute Power Is How much Processing your computer can do.
**Compute Power Example**:
When you buy a PC, you get 8GB of RAM and a suitable processor. but when time goes on and the load of your work to your PC becomes slow. With Cloud Computing you can add/remove compute power as you need and pay as much as you use it.
**Storage**:
The Volume of data you can store.
**Storage Example**:
A Traditional Computer has Limited Hard drive space or with time you are going out of space and have to buy a second hard disk. In cloud computing, you can request according to your requirements for storage. 
**Benefits Of Cloud Computing**:
Cloud Providers Manage the computer, takes backups, and make sure the operating system is up to date as well as make sure that everything is running **24/7**.
As your **Business** grow you can add more resource in an effective way
Como configurar multiples profiles desde AWS CLI
Published: 2022-09-06 23:00:24

La AWS CLI es la linea de comandos de AWS que es usada para interactuar con los servicios de AWS.

Cuando usamos la CLI por primera vez debemos configurar nuestra cuenta utilizando el comando _aws configure_ , que nos pide los siguientes datos:

* AWS Access Key ID
* AWS Secret Access Key
* Default region name
* Default output format

Para obtener el _AWS Access Key ID_ y el _AWS Secret Access Key_ vamos a la consola de AWS y buscamos IAM seleccionamos Users -Security Credentials y Create Access Key

![Security Credentials]
(https://github.com/cecamilo00/posts/blob/circleci-project-setup/profiles-cli/security%20credentials.png?raw=true)

Al dar click en el botón _Create Access Key_ vamos a ver una pantalla donde podemos copiar las Keys para configurar nuestra cuenta en la CLI de la maquina en la cual estamos trabajando.

![Access Key]
(https://github.com/cecamilo00/posts/blob/circleci-project-setup/profiles-cli/Access%20Key.png?raw=true)

**Nota:** Es importante nunca compartir estas Keys, ya que pueden entrar a utilizar la cuenta con los privilegios que tiene asignados el usuario.

Ahora que sabemos como obtener las keys podemos configurar diferentes cuentas en nuestra maquina. Para esto utilizamos el comando: **_aws configure --profile nombredelperfil_** 
lo que nos va a pedir las keys, la region y el formato.

Para ver las cuentas que tenemos configuradas en nuestra maquina utilizamos el comando: **_aws configure list-profiles_**

Si queremos ejecutar un comando para un perfil determinado debemos agregar al comando: **_--profile nombredelperfil_** , por ejemplo para traer todos los buckets del perfil _cuenta2_ debemos ejecutar el siguiente comando: 
**_aws s3 ls --profile cuenta2_**

En el caso que no queramos agregar el parametro profile a cada comando podemos ejecutar: 

Linux o Mac: **_export AWS_PROFILE=_cuenta2_**
Windows: **_setx AWS_PROFILE _cuenta2_**

Si queremos modificar o eliminar los profiles que tenemos configurados en nuestra maquina podemos buscar el archivo **_~/.aws/config_**  que nos va a mostrar algo como lo siguiente:

```
[default]
region = us-east-1
output = json
[profile cuenta2]
region = us-east-2
output = json

```
Es posible que necesitemos modificar las key de un profile y las podemos encontrar en el archivo **_~/.aws/credentials_**

Conociendo los comandos y archivos anteriores podemos tener varias cuentas configuradas en una sola maquina.

#### Me pueden encontrar en:

[Camilo Cabrales](https://www.linkedin.com/in/camilo-cabrales-31a0bb53/)


# Referencias

[Documentación](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)
How to avoid AutoMapper configuration runtime errors
Tags: automapper, csharp, dotnet, programming
Published: 2022-09-06 22:19:41

When working with [AutoMapper](https://automapper.org/), we often bump into runtime errors due to invalid mapping configuration, such as this one:

> AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

Wouldn't it be great if we could catch those errors before running our application?

AutoMapper actually provides an assertion that we can add to our Unit Tests pipeline and make sure that no runtime error will happen.

If you don't know how to create a Unit Test Project, follow the steps from this article: [Getting Started with xUnit.net.](https://xunit.net/docs/getting-started/netfx/visual-studio)

## Using xUnit

```csharp
public class MappingTests
{
    private readonly IConfigurationProvider _configuration;
    private readonly IMapper _mapper;

    public MappingTests()
    {
        _configuration = new MapperConfiguration(config => 
            config.AddProfile<MappingProfile>());

        _mapper = _configuration.CreateMapper();
    }
    
    [Fact]
    public void ShouldHaveValidConfiguration()
    {
        _configuration.AssertConfigurationIsValid();
    }
}
```

## Using NUnit

```csharp
public class MappingTests
{
    private readonly IConfigurationProvider _configuration;
    private readonly IMapper _mapper;

    public MappingTests()
    {
        _configuration = new MapperConfiguration(config => 
            config.AddProfile<MappingProfile>());

        _mapper = _configuration.CreateMapper();
    }

    [Test]
    public void ShouldHaveValidConfiguration()
    {
        _configuration.AssertConfigurationIsValid();
    }
}
```

The NUnit example was taken from the [Clean Architecture Template](https://github.com/jasontaylordev/CleanArchitecture), provided by Jason Taylor.

Please also check out the official [AutoMapper Configuration Validation documentation](https://docs.automapper.org/en/stable/Configuration-validation.html).