teleren/devto huggingface dataset:
Simple web application for MongoDB atlashackathon
Tags: atlashackathon
Published: 2022-01-10 07:58:58

### Overview of My Submission
Web-application on Golang for make simple list of club users with inmemory and Mongo Atlas DB 


### Submission Category: 

Choose Your Own Adventure


### Link to Code

{% github https://github.com/leejoys/club %}


### Additional Resources / Info

demo http://rocky-citadel-83329.herokuapp.com/
A11y tips: alert role
Tags: a11y, tips, html
Published: 2022-01-10 07:48:43

The other alternative for [notifying content changes](https://dev.to/carlosespada/a11y-tips-how-to-notify-of-content-changes-4f3j) is to use `role="alert"`, which is equivalent to using `aria-live="assertive"` together with `aria-atomic="true"`. So...

```
<div aria-live="assertive" aria-atomic="true">
  <h3>Your message has been sent. We'll contact you back as soon as possible.</h3>
</div>
```

... is equivalent to this ...

```
<div role="alert">
  <h3>Your message has been sent. We'll contact you back as soon as possible.</h3>
</div>
```

Being equivalent to using an `aria-live="assertive"`, and therefore causing the immediate interruption of the user, the `alert` role **should only be used for information that requires the user's immediate attention**, for example:

- An invalid value was entered into a form field
- The user's login session is about to expire
- The connection to the server was lost so local changes will not be saved

There are several aspects to note when using the `alert` role:

- Since it is not possible to change the predefined role of an element, it is ideal to use `role="alert"` in a `<div>` or in a `<span>`.
- Unlike the method in the [previous post](https://dev.to/carlosespada/a11y-tips-aria-live-and-aria-atomic-4nh4), **it can be used with elements that are not initially present in the DOM**. When inserted with `role="alert"` they will be announced immediately.
- The element with the `alert` role **does not have to be able to receive focus**, as screen readers will automatically announce the updated content regardless of where keyboard focus when the role is added. So the alert role should only be used for static text content.
- The `alert` role **is added to the node containing an alert message**, not the element causing the alert to be triggered.

If you want to know more, you can find more interesting information on the [MDN page](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role).
Why RouterTube.com?
Tags: tutorial, webdev, productivity
Published: 2022-01-10 07:48:18

[RouterTube.com](https://routertube.com) is a website created to share knowledge about the networking devices such as modems, routers, bridges, switches, servers etc. The main focus of the routertube.com site is routers.

Routers are devices that are used to direct the data packets to the correct location in a network. Routers read the incoming data and using the address it redirects the data to the correct location inside the network. Sometimes the location might be another router device. 

For the purpose of redirection routers use a table called routing table. Using the routing table the routers decide the shortest path to send the data.
Accessible Component Series: Introduction & Overview
Tags: a11y, react, accessiblecomponentseries
Published: 2022-01-10 04:20:35

## Intro


### About this series

Web accessibility is often overlooked by developers. As such, this series is intended to serve as how-two for developers to implement commonly used patterns with accessibility in mind.

We'll be using React, Typescript and Framer Motion throughout this series.

### Why accessibility?

Accessibility is a crucial part of providing an equitable experience to all users. With so much great content on the web, it would be a shame to exclude people because of a disability. Many people rely on technologies like screen readers, magnifiers, contrast tools, color correction tools, braille readers and more to access the web.

By making a concerted effort to develop sites with accessibility in mind, you're ensuring everyone gets a seat at the table.

Not only can a lack of web accessibility prevent certain users from using your site, it can also open you, or your clients, up to costly lawsuits.

In the United States, according to the Wall Street Journal, "[accessibility] lawsuits have risen steadily, to about 3,500 in 2020 from roughly 2,900 in 2019 and about 2,300 in 2018." This article projected "more than 4,000 such lawsuits for all of 2021 if trends hold."[<sup>[1]</sup>](#fn1)

Long story short, the trend did hold and 4055 web accessibility lawsuits were filed in 2021[<sup>[2]</sup>](#fn2) according to UseableNet's 2021 Year End Report.

### Assumptions

This series assumes knowledge of JavaScript, React, and a _tiny_ bit of TypeScript. Even if you're not up to speed on Typescript, you should have no issue following along.

### A quick note on Accessibility + ARIA Attributes

The posts in this series utilize various ARIA Attributes on HTML elements. It's **incredibly important** to how understand _how_ and _why_ specific ARIA Attributes are being used. ARIA Attributes, when used incorrectly, can potentially make a user's experience even worse.

---

## Posts

1. [Accordions](https://dev.to/avcohen/accessible-component-series-common-patterns-accordions-53eo)


## CodeSandboxes

{% codesandbox accessible-components-intro-omwe5 hidenavigation=1 codemirror=1 previewwindow=browser view=preview hidenavigation=1 hidedevtools=1 %}

---

## Closing Notes

### Accessibility Resources & References

[MDN Aria Attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes)

### Feedback

I always welcome feedback. If you spot any errors or omissions, please let me know.

### Footnotes

<span id="fn1">1</span>. The Wall Street Journal - [Lawsuits Over Digital Accessibility for People With Disabilities Are Rising](https://www.wsj.com/articles/lawsuits-over-digital-accessibility-for-people-with-disabilities-are-rising-11626369056)
<span id="fn2">2</span>. UseableNet - [2021 Year End Report - ADA Digital Accessibility Lawsuits](https://f.hubspotusercontent30.net/hubfs/3280432/Remediated-2021-Year-End-Report-FINAL.pdf)
The 7 Layers of OSI
Published: 2022-01-10 07:13:01

The seven layers of the internet. Specifically, computer systems framework used to communicate over a network. This is referred to as the OSI(Open System Interconnection) Model. The OSI model is really just a concept, first implemented by the majority of Computer companies in the 1980s. It's not a tangible protocol. It doesn't have any functions, or . It just helps us better understand the processes occurring.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qdge9oyuzwoiqomsld3g.png)

 Typically (as you can also see in the picture above), the OSI model is presented and read in descending order, but for general understanding purposes, I will start from the first(bottom) layer.

**Physical (Layer 1):** As the name states, these are the physical connections that connect devices. Think, internet cables, wireless connections, etc.

**Data Link (Layer 2):**  This layer connects and disconnects any connection between two nodes. This layer communicates using bits. There are two sub-layers within this, LLC(Logical Link Control and MAC (Media Access Control). The former controls the flow and order of frames, error checks, and identifies network protocols. The latter, uses MAC Addresses(which can be considered as a node ID), to send and receive data between devices.

**Network (Layer 3):** This is where you unplug and plug in the router, and become your household's savior. This layer handles switches and routing, using logical (non-physical) routes to transmit data. Basically, it uses addressing to route packets to its destination. 

**Transport (Layer 4):** This layer handles data transfer between systems and/or hosts. Now that it has data, and needs to transfer, how much data needs to be sent? When and where, etc.

**Session(Layer 5):** Establishes communication channels for two computers and/or network devices to speak with one another. This is a prime example of perfect communication skills. A computer starts a session, waits until data is transferred, and when done, the conversation ends.

**Presentation(Layer 6):** Helps translate the network data to a form that application itself can understand, and vice versa.

**Application (Layer 7):** Information here is received by end-users where software such as web-browsers,FTP, helps display that incoming data to users.

These are just basic definitions for the OSI model. There are many(and I mean **MANY**) sources out there that delves deep into each layer. Although still widely used, much of the modern internet is based on the TCP/IP model.
Ultra Pixel Survive RPG Game
Tags: survival, games, design
Published: 2022-01-10 07:03:19

Welcome to an adventure in a pixelated world of Ultra Pixel Survive Unblocked game. It's a role-playing game in which your goal is to build structures, collect different resources like stone, wood, ores, upgrade weapons, and survive in the world full of dangers.
**Features
Various characters with unique abilities
Upgradeable characters
Different monsters at day and night
Powerful bosses
**How to play Ultra Pixel Survival**
A and D to move
Attack with mouse click
Space to jump F
Press dodge button with mouse to dodge
Press the ability button with mouse to use ability
E 1,2,3 to change tools
This game is a mixture of strategy, role-playing, and survival. How many days can you survive in this game? 
[Ultra pixel survive](https://ultrapixelsurvive.com/) is a fantastic game with pixel art component of the visual series, adventure-heroic gameplay, and various opportunities for exciting resource collection, crafting and everything else. 
Therefore, players can not only enjoy the battles, but also build their own home which is a shelter for the character in dangerous lands. So you definitely won’t be bored. It's a game for fans of high-quality games in the retro style.
You can play it for free online in your web browser.
Ultra pixel survive 2 will be released soon with many cool upgrades! Have fun.
#11 - Vowel remover CodeWars Kata (8 kyu)
Tags: javascript, tutorial, 100daysofcode, webdev
Published: 2022-01-10 06:34:45

##Instructions

Create a function called shortcut to remove all the lowercase vowels in a given string.

**Examples**

> "hello"     -->  "hll"
> "codewars"  -->  "cdwrs"
> "goodbye"   -->  "gdby"
> "HELLO"     -->  "HELLO"

---

> Note: Don't worry about uppercase vowels.

##My solution:

```javascript
function shortcut (string) {
  return string.split(/[aeiou]/g).join('')
}

```

##Explanation
I first splitted the string using a RegEx expression, that splitted every vocal from the string, and after that I just joined the array


Comment how would you solve this kata and why? 👇🤔

[My Github](https://github.com/Cesardlr)
[My twitter](https://twitter.com/cesar__dlr)
[Solve this Kata](https://www.codewars.com/kata/5547929140907378f9000039)
Customizing the Blazor Maps Control Data Labels
Tags: blazor, webdev, dotnet, csharp
Published: 2022-01-10 06:25:22

See how easily you can add data labels to [Blazor Maps](https://www.syncfusion.com/blazor-components/blazor-map) and customize them to enhance their appearance. 

In this video, you will learn how to customize the Maps data labels with features like smart labels and styles. We’ll show you how to add labels to the Blazor Maps control using a template property. 

Explore our tutorial videos: https://www.syncfusion.com/tutorial-videos

{% youtube fmLO0Ngj5CI %}
How to disable Angular's build-in sanitization for an URL
Tags: angular, html, codever, snippets
Published: 2022-01-10 06:15:05

**Project**: [`codever`](https://www.codever.dev) - **File**:  `backup-bookmarks-dialog.component.ts`

On [Codever](https://www.codever.dev) you can backup your bookmarks and snippets. When backing up you are presented a dialog where you can choose to display the items in browser. For that we use a blob URL we know for sure it is safe.

To not get the `unsafe` prefix in your generated html I use the `DomSanitizer` and its method `bypassSecurityTrustUrl` as shown in the example below: 

```typescript
export class BackupBookmarksDialogComponent implements OnInit {

  backupType: string; // 'bookmarks' | 'snippets';
  blobUrl: any;
  sanitizedBlobUrl: any;
  filename: string;

  constructor(
    private dialogRef: MatDialogRef<BackupBookmarksDialogComponent>,
    private router: Router,
    @Inject(MAT_DIALOG_DATA) data,
    private sanitizer: DomSanitizer
  ) {
    this.sanitizedBlobUrl = 
    this.sanitizer.bypassSecurityTrustUrl(data.blobUrl);
    this.blobUrl = data.blobUrl;
    this.backupType = data.backupType;
    const currentDate = new Date();
    this.filename = `${this.backupType}_${currentDate.toISOString()}.json`;
  }
```

In the html component the `sanitizedBlogUrl` is injected in the `href` attribute of the `a` html element


```html
  <a [href]="sanitizedBlobUrl" [download]="filename" type="button" class="btn btn-primary btn-sm mr-2" (click)="download()"><i class="fas fa-download"></i> Download
  </a>
```

<span style="font-size: 0.9rem">
  <strong>Reference - </strong>
  <a href="https://angular.io/api/platform-browser/DomSanitizer" target="_blank" style="font-weight: lighter">
     https://angular.io/api/platform-browser/DomSanitizer
  </a>
</span>

> Shared with :heart: from [Codever](https://www.codever.dev/snippets/6060d95b967b5a363dfa8f75/details). Use :point_right: [**copy to mine**](https://www.codever.dev/snippets/6060d95b967b5a363dfa8f75/details) functionality to add it to your personal snippets collection.
What really happened with Aaron Swartz?
Tags: opensource, community, programming
Published: 2022-01-10 06:06:38

**<u>Introduction:</u>**

Many of the programmer's spend their valuable time on the open source community and platforms. Their work needs to be valuated and should give them the credits when it comes to copying/downloading their contents. 




**Now, let us see what is OSS?**



Open Source Software (OSS) is a product or in general, computer software that is released under a license (example: MIT) in which the copyright holder grants users the rights to use, study, change, and distribute the software and its source code to anyone and for any purpose.



**What are the Open Source communities?**



Open Source is a platform where developer's code and maintain their repositories in a decentralized and collaborative manner. It also contains peer-review system, maintain packages, build, deployment, etc.



<u>Examples:</u> GitHub, GitLab, Git, Bitbucket, Heroku, AWS, Azure DevOps, Stack Overflow, etc.




**<u>Story:</u>**


Marak is a well-known coder/developer over GitHub. He was good at his work all the time. He maintained a lot of code repo's and worked on lot of projects over GitHub. #oss and #opensource are the 2 big term's until and unless they get valued. Often OSS developer's make the world keep the lights on but aren't compensated for their time :)


Marak created & maintained a repository which is used by Fortune 500 companies. Which has 2,424,317 Weekly Downloads and 2,571 Dependents.


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

Marak was struggling, asked help. Got nothing in return. In protest, he updated the README.md file with the famous quote "What really happened with Aaron Swartz?" and he removed his code (faker.js) from his repository. In the mean-time, GitHub suspended his account for removing something he owned the rights to.



**Now the question comes here is:**


1) On what basis GitHub removed his account? He wrote the first line of code and he will write the last line as well. He has the right to maintain his code and repositories. On what terms and condition's GitHub has the right to remove his account from the community?

2) When a developer writes the code why can't he get's valued when million's of people download his code and take the credits?





**<u>Conclusion:
</u>**

GitHub is just an open source platform to share and maintain code repositories. However, it is not the only choice for a developer!




**<u>Reference:
</u>**

https://lnkd.in/gtW28Hhg


https://lnkd.in/g2F_zMtk


https://lnkd.in/gRseV7gh


https://lnkd.in/g7rC6e6G

https://lnkd.in/gvshgVkh


https://lnkd.in/gPzDDwr5


https://lnkd.in/gTQHD9DA
What is C#?
Tags: programming, software, productivity, csharp
Published: 2022-01-10 06:02:16

C# is a software programming language that uses .NET. .NET is a framework that was created and developed by Microsoft.  C# is commonly known as a programming language that is object-orientated, easy to understand and is constantly evolving. C# was originally created as a bridge between two languages those being C++ and Visual Basic.

##What does it mean for C# to be object orientated?
It means that the way to use C3 is to build and model our application by looking at it through a blueprint. A good analogy that is constantly referenced when discussing C# is that is like building a house. People design what a house is going to look like ahead of time before they start building. C# uses data points and models to create the end product. In order to achieve that end product C# also utilizes classes.

## The greatest power of C#.
One of the strongest components is C# is the way it stores and creates these models. When a user would like to build an application that requires numerous different blueprints or classes, it stores each one of these in its own memory. 

##What Does C# help you build?
C# has big potential to be used in Mobile Development. Knowing there are so many different types of platforms that users use sometimes code will have to be re-created for different platforms for example IOS and Android. However, with C# and another program that uses C# we can use the same code for both platforms. This program is called Xamarin. [A nice helpful link to Xamarin.](https://dotnet.microsoft.com/en-us/apps/xamarin). With Xamarin this allows for developers to create one application that works across multiple products. 

##Conclusion
There are a lot of powerful programming languages available to beginners however, each one pales in comparison to C#. C# is an easy to understand language that uses .NET, it also utilizes classes to build final products, it stores memory of different blueprints to build out applications, and it is used to create cross platform applications on mobile devices. C# is a strong tool in the hands of beginners that can be used to great effect to build a reputable portfolio.
Chocolatey Powershell Install
Tags: powershell, chocolatey, script, install
Published: 2022-01-10 05:10:55


>[Chocolatey Page for find more packages Here](https://community.chocolatey.org/packages)

**Install choco**
```scss
Set-Executionpolicy unrestricted -Force; #add permission execute powershell 
```
```
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
```

or 
```
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
```


**Upgrade choco**
```
choco upgrade chocolatey
```




**Install choco apps**

```css
choco install adobereader
choco install googlechrome
choco install firefox
choco install winrar
choco install zoom
choco install k-litecodecpackfull
choco install sublimetext3.app


choco install vscode
choco install git.install
choco install python 
choco install microsoft-windows-terminal
choco install putty.install
choco install virtualbox
choco install docker-desktop
choco install grafana
choco install vnc-viewer
choco install github-desktop

choco install notion
choco install slack
choco install resilio-sync-home
choco install discord
choco install itunes
choco install windows10-media-creation-tool

choco install libreoffice-fresh
choco install office365business
choco install notepadplusplus
choco install google-drive-file-stream
choco install vlc
choco install dellcommandupdate 
     
```
**List choco apps Installed**

```
choco list --local-only
```
**Update choco apps installed**
```
cup -y all 
```
Try AnimeGANv2 with PyTorch on Google Colab
Tags: python, machinelearning, gans, pytorch
Published: 2022-01-10 05:58:47

## What is AnimeGANV2?
AnimeGANv2, the improved version of AnimeGAN.
AnimeGAN is a lightweight GAN for a photo animation.

In brief, people can generate a photo that looks like an animation's scene from an image.

You can try AnimeGAN easily with this.
https://animegan.js.org/

Detail
https://tachibanayoshino.github.io/AnimeGANv2/


## repos

### Original repo
{% github TachibanaYoshino/AnimeGANv2 %}

### PyTorch Implementation
{% github bryandlee/animegan2-pytorch %}


## steps
1. Create a new note on [Google Colab](https://research.google.com/colaboratory/)
2. Upload an input image
3. Run the following code


```python
from PIL import Image
import torch
import IPython
from IPython.display import display

# https://github.com/bryandlee/animegan2-pytorch
# load models
model_celeba = torch.hub.load("bryandlee/animegan2-pytorch:main", "generator", pretrained="celeba_distill")
model_facev1 = torch.hub.load("bryandlee/animegan2-pytorch:main", "generator", pretrained="face_paint_512_v1")
model_facev2 = torch.hub.load("bryandlee/animegan2-pytorch:main", "generator", pretrained="face_paint_512_v2")
model_paprika = torch.hub.load("bryandlee/animegan2-pytorch:main", "generator", pretrained="paprika")

face2paint = torch.hub.load("bryandlee/animegan2-pytorch:main", "face2paint", size=512)

INPUT_IMG = "sg.jpg" # input_image jpg/png 
img = Image.open(INPUT_IMG).convert("RGB")

out_celeba = face2paint(model_celeba, img)
out_facev1 = face2paint(model_facev1, img)
out_facev2 = face2paint(model_facev2, img)
out_paprika = face2paint(model_paprika, img)

# save images
out_celeba.save("out_celeba.jpg")
out_facev1.save("out_facev1.jpg")
out_facev2.save("out_facev2.jpg")
out_paprika.save("out_paprika.jpg")

# display images
display(img)
display(out_celeba)
display(out_facev1)
display(out_facev2)
display(out_paprika)
```


[original]
![original](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ekh33x8gch6ze315dks.jpg)

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

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

[face_paint_512_v2]
![face_paint_512_v2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1quw3bfz0s6ci5o7y5ae.png)

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