teleren/devto huggingface dataset:
Set up React Native App with Kotlin
Tags: kotlin, reactnative, ios, android
Published: 2021-03-03 21:55:29

Following instructions from the repository below.
https://github.com/ojaynico/create-ojaynico-krn

Install **create-ojaynico-krn** cli using the command

`$ npm install -g @ojaynico/create-ojaynico-krn`

Create a new project using

`$ create-ojaynico-krn YourProjectName`

Change directory or go to **YourProjectName** folder using terminal or cmd

`$ cd YourProjectName`

Install **npm dependencies** while in the directory

`$ npm install`

**Assemble** your **Kotlin** shared module. Make sure you have **gradle** installed on your system. Otherwise use alternative commands provided in the repository link above.

`$ npm run gradleAssemble`

Bundle your application by running

`$ npm run start`

Run the application on an **Android or iOS** device using either of the commands.

`$ npm run android`

**OR**

`$ npm run ios`
May I Please find a job hunting partner for a basic AWS job here?
Published: 2021-03-03 21:46:16

I passed AWS solution Architect associate on Oct 2020. In order to get a job, we need learn Python, Linux, Network. I just want to have a basic AWS job to start with like Cloud operation engineer ( I can't find any offer). I think I need to pass more certificates as well. Could someone join my job hunting journey and help each other? Thank you.
I just learned HTML twice.
Tags: css, html, beginners, blog
Published: 2021-03-03 21:40:47

Okay so that’s a bit dramatic to say the least, bit I did. So I am studying to become a full stack web developer, well I am now, but the truth I don’t really know where this will lead me. Remember when you were younger and people would ask yourself “what do you want to be when you grow up?” well I wanted to be a film director, or a lawyer. And then I just wanted a job, eventually I found myself working in Bid Management and I’ve been doing this job for over 10 years. I’d say I’m pretty good at it, but it wasn’t the goal i’d set myself, but things worked out. I’m professionally successful and I work with an outstanding team. I have little reason to complain.

So with coding, what is the end goal? Machine Learning with Python? Building websites? I have a fascination with Machine Learning.. The truth is I don’t know, but what I do know, what I clearly understand, is that I want to be good at it.

I have known a few people who have recommended The Odin Project, so that’s where I started. I installed Linux and got to work, HTML Basics and CSS basics doing activities at freeCodeCamp. They seemed to go fine, but spending a few mins on each task and moving on, I did get the feeling that I was solving a puzzle, but not learning how the puzzle is solved. I can tell you what Pythagoras theorem is, but I can’t tell you why it works. This is what happened at FCC, when I got to the final five tasks, I found myself flicking through text books and revisiting previous activities, and then I was looking at YouTube videos. I discovered the tutorials of Brad Traversy – I assume that’s his name, because the channel is Traversy Media – check it out, the crash courses are really good for beginners.

So I decided to sign up to Udemy and picked up his basics course and err a bunch of others, because I know my plan is to get HTML & CSS down and then move onto JavaScript… and I’m a sucker for a discount. So I completed the HTML basics stuff today, I actually wrote a ton of notes and did some practising along the way using VS Code. It was painfully easy, but between the note taking, practice and the quality of the teaching. And it’s down. I’ll do the CSS stuff tomorrow; still got about 19 hours of content to go through, and all this before I go back to the FCC ‘tests’ to get the Responsive Web Design certificate and then back to Odin. Not sure I’m doing this right, but I guess repetition is the best way for me to learn? I dunno.

I think all people that learn should be comfortable with the way they do learn, and we are all different types of learners. As this gets more complicated, I wonder, will I be able to retrain my brain to think in a manner that will make me proficient in my programming choices? I’d like to think so.. and if I don’t get it the first time, I’ll just do it again and again and again until I understand and can apply foundational understanding and then as I develop more advanced concepts to whatever it is I’m working on.
Stop infinite loop in JavaScript debugger - Google Chrome
Tags: javascript, webdev, programming, chrome
Published: 2021-03-03 21:36:43

###Have you ever written an infinite loop that freezes an entire page in your browser? 

In this article, I will try to show you how to deal with such a problem.

__Before we start__, I would highly recommend you to check out the __original post__ with the solution on our website:
[Stop infinite loop in JavaScript debugger - Google Chrome](https://dirask.com/posts/D7v5w1)

Now let's go to the solution 😊🔽

Using Google Chrome, there are few ways to stop JavaScript debugging:

- stop button in Chrome DevTools,
- end process by closing tab or window,
- end process button in Task manager.

###1. Stop button in Chrome DevTools example ⏯🛑
>📝 Note:

>To use this approach DevTools should be turned on before JavaScript code will be executed. Otherwise you won't be able to open the tools with F12 because Chrome window will freeze. You will still be able to turn on the tools with browser menu, but the tools won't connect to the executing source code to stop it - in this case, code execution can only be stopped by closing a tab or window. Sometimes, with a low amount of RAM or a large amount of open tabs, DevTools may have trouble with stopping the infinity loop

There are several steps you need to take to get this done:

1. open **Chrome DevTools** with **F12**, **Ctrl+Shift+i** or from menu **Main menu→More tools→Developer tools**,
2. open web page that you want to debug,
3. run some code that has infinity loop,
4. click **Chrome DevTools** window to get focus on it,
5. pause script with **F8**, Ctrl+\ or by clicking **Pause script execution** button,
6. **press mouse button** for **1-3 seconds** on **the button** again to see more options,
7. move click action to **square stop** button on expanded menu to stop permanently script execution.

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

###2. End process by closing tab or window
Use close button to stop the process. If it does not help use **Task manager** described in next solution. 

###3. End process button in Task manager
In this solution you need to:

1. open **Chrome Task manager** with **Shift+Esc** or from menu **Main menu→More tools→Task manager**,
2. find the process on list by tab name or biggest CPU load (use column sort option),
3. select process and click **End process** button.


If you found this solution useful let me know in the comment section or just leave a reaction 💗🦄💾. 
Thanks for reading and see you in the upcoming posts! 😊🔥

_____________
## Write to us! ✉
If you have any problem to solve or questions that no one can answer related to a React or JavaScript topic, or you're looking for a mentoring write to us on [dirask.com -> Questions](https://dirask.com/questions)
March 2021 Releases – Horizon 27.1.0, Meridians 2018.1.26, 2019.1.17, and 2020.1.6
Tags: news, bgp, bmp, horizon
Published: 2021-03-03 21:38:25

---
title: March 2021 Releases – Horizon 27.1.0, Meridians 2018.1.26, 2019.1.17, and 2020.1.6
published: true
cover_image: https://pbs.twimg.com/media/EtZ_d6iXYAA2Bdy?format=jpg&name=medium
date: 2021-03-03 21:35:59 UTC
tags: News,bgp,bmp,Horizon
canonical_url: https://www.opennms.com/en/blog/2021-03-03-march-2021-releases-horizon-27-1-0-meridians-2018-1-26-2019-1-17-and-2020-1-6/?utm_source=rss&utm_medium=rss&utm_campaign=march-2021-releases-horizon-27-1-0-meridians-2018-1-26-2019-1-17-and-2020-1-6
---

For March we released point updates to all OpenNMS versions under active support.

### Horizon 27.1.0

Release 27.1.0 contains a bunch of bug fixes, as well as a number of enhancements including a refactor of our BGP Monitoring Protocol integration.

The codename for 27.1.0 is [_Ravenous Bugblatter Beast of Traal_](https://hitchhikers.fandom.com/wiki/Ravenous_Bugblatter_Beast_of_Traal).

For a high-level overview of what has changed in Horizon 27, see [What’s New in OpenNMS Horizon 27](https://docs.opennms.org/opennms/releases/27.1.0/releasenotes/releasenotes.html#releasenotes-27).

For a complete list of changes in 27.1.0, see [the detailed release notes](https://docs.opennms.org/opennms/releases/27.1.0/releasenotes/releasenotes.html#_release_27_1_0).

### Meridians 2018.1.26, 2019.1.17, and 2020.1.6

Meridian 2018.1.26 had a security update for a dependency, and a fix for a Newts cache priming configuration option. 2019.1.17 and 2020.1.6 had additional bug fixes and enhancements related to the UI. 2020.1.6 also added service status to the list of information available in the `/info` ReST endpoint.

For a list of changes, see the release notes:

- [2018.1.26](https://meridian.opennms.com/releasenotes/2018/latest/#_release_meridian_2018_1_26) ([_Drought_](https://wikipedia.org/wiki/Drought))
- [2019.1.17](https://meridian.opennms.com/releasenotes/2019/latest/#_release_meridian_2019_1_17) ([_Heidigraf_](https://en.wikipedia.org/wiki/10252_Heidigraf))
- [2020.1.6](https://meridian.opennms.com/releasenotes/2020/latest/#_release_meridian_2020_1_6) ([_Bight_](https://wikipedia.org/wiki/Bight_%5C(geography%5C)))
So, how many of you respect CSS as a programming language?
Tags: webdev, css, discuss
Published: 2021-03-03 21:14:57

Last week I posted a poll on Twitter about respecting CSS as a programming language. I don't want this to become a discussion whether CSS is or isn't a programming language (apparently it is a scripting language, thanks for the comments). I just want to learn how many of you respect it in terms of writing it correctly and responsibly.

[![Twitter post](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/asy1um1q28k2o0fwjmzl.png)](https://twitter.com/malimirkeccita/status/1364687576129536008)

So, what is your answer?
Windows Server DHCP conversion to Cisco CLI
Tags: powershell, dhcp
Published: 2021-03-04 00:58:06

---
title: Windows Server DHCP conversion to Cisco CLI
published: true
date: 2021-03-03 21:00:00 UTC
tags: powershell, dhcp
canonical_url: https://justincooksey.com/blog/2021/2021-03-04-windows-server-dhcp-conversion-to-cisco-cli
---

I recently ran in to an issue where I needed to convert a reasonably large DHCP database from a Windows Server in to a Cisco CLI to allow the Cisco to take over DHCP roles for a subnet. I found nothing that realy automated this task, even using the exported XML file. So knowing that this was the second time I needed the tool, and likely to need it again, even if it was for smaller tasks, I set about coding it in Powershell. It is the scripting system well supported in Windows land.

The current version of the script can be found on my GitHub repository:[Convert-WindowsDHCPToCisco](https://github.com/jscooksey/Convert-WindowsDHCPToCisco)

Still ha smany DHCP options that it hasn't been setup to hanle at this point but it does follow the basic ones that most of us use.

#### Currently handles DHCP Options

| Code | Option Description | Cisco Output |
| --- | --- | --- |
| 3 | Default Gateway | default-router |
| 4 | Time Server | _ignoring_ |
| 6 | Domain Nameserver | dns-server |
| 15 | Domain Name | domain-name |
| 42 | NTP Servers | option 42 ip |
| 51 | Lease time | _ignoring_ |
| 66 | TFTP Server | next-server |
| 67 | Boot filename | bootfile |
| 81 | MS DHCP Name Protection | _ignoring_ |
| 121 | Static routes | option 121 hex |
| 161 | FTP Server | option 161 ip |
| 162 | Path | option 162 ascii |
| 252 | Proxy PAC URL | option 252 asicc |

#### DHCP References Used

- [RFC2312](https://tools.ietf.org/html/rfc2132)
- [Wikipedia DHCP Options table](https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Client_configuration_parameters)
Advice to a Web Developer Junior
Tags: javascript, beginners, webdev
Published: 2021-03-03 20:58:18

In such a long and entertaining way as the Web Developer.  What advice would you give if today you were starting in this technological world, with the experience you already have?

Really appreciate with your comments and advices. 

Enjoy a good Code and a coffee!

L.E 🤙🏻
5 lesser known perks about READMEs
Tags: github
Published: 2021-03-03 20:54:48

## Facts and advice you may not have come across yet:
<!-- spacing -->

 - **A longer README** may seem daunting but it will be indexed better by search engines. Include a generated [table of contents](https://github.com/ekalinin/github-markdown-toc) for quick navigation.


<!-- spacing -->
<!-- spacing -->
- **Space out things**; a 5-pages bloc is inscrutable, but 5 clearly separated sections are easily scrolled through. Don't let clarity be limited by the Markdown compact defaults, `<!-- spacing :-) -->` is your friend.

<!-- spacing -->
<!-- spacing -->

 - **Logo / visual content** ? Will make a difference for catching the attention of curious people just passing by, but often overlooked. Include serious & fun badges too! Those are (perceived as) warrant of quality and care from the maintainers.

<!-- spacing -->
<!-- spacing -->

 - **Dark-mode friendliness** - content that looks good in both clear and dark mode. Take extra care if your project is intended to be used by developers, or on your profile README.

<!-- spacing -->
<!-- spacing -->

 - **Caring for both beginners and seasoned users**; for example you can include a `TLDR` and be exhaustive later. Keep in mind your README will often be used instead of any documentation.
Is it possible to create a CRUD app with contentful
Tags: contentful, javascript, react
Published: 2021-03-03 20:53:12

I'm trying to learn how to use [contentful](https://www.contentful.com/).

Reading content that I already added is easy. But the only way to add content seems to be through the contentful website, like so:

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

But is there a way to add content from my js/react app?

Can anyone help? I read the [Content Management API](https://www.contentful.com/developers/docs/references/content-management-api/) documentation but I don't understand it. Has anyone written or know of a basic tutorial that does this?
Open source PHP package: recommendation algorithm (recommend movies, books and among other products)
Tags: php
Published: 2021-03-03 20:42:27

##Collaborative filtering

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4hqikd9nfc7rz9fpr3in.gif)

Github
[source code](https://github.com/tigoCaval/recommendation-algorithm)
i18n-manager video
Tags: i18n, haxtheweb, webcomponents
Published: 2021-03-03 20:21:32

Here's the video from the live stream on this subject.
{% youtube 7wNO834MiF8 %}

If you have any questions or want to learn more:
- [HAXTheWeb Slack](https://bit.ly/haxslack)
- [@HAXTheWeb](https://twitter.com/haxtheweb)
- [HAXTheWeb.org](https://haxtheweb.org)
Python Best Practises
Tags: python
Published: 2021-03-03 20:20:21

Writing code and knowing the best practices is very important for any developer. Therefore, from the internet, I have managed to gather great concise information which all developers should adhere to while writing great codes with python; 
Let's have a look at all the good practices:
1. Create a Code Repository and Implement Version Control
2. Create Readable Documentation with Markdown, reStructuredText, Sphinx, or docstrings.
3. Follow Style Guidelines (Python Enhancement Proposals - PEP8)
4. zero defects methodology - always corrects bugs and defects before proceeding.
5. Use the PyPI Instead of Doing it Yourself
6. Use Virtual Environments
7. Use the Right Data Structures
Namespacing Chrome Storage for page dependant settings for your Chrome Extension
Tags: javascript, webdev, tutorial, programming
Published: 2021-03-03 20:01:35

Link to original article with code snippets (recommended): https://gabriellazcano.com/blog/namespacing-chrome-storage-for-page-dependant-settings-in-your-chrome-extension/

As far as I know chrome.storage saves it’s keys globally, so it’s not like localstorage on normal pages that gets only works in the current page. For that purpose I had to figure out a way of achieving this. So I decided using namespaces using template literals. This is a really made up process so there might be inaccuracies, feel free to let me know :)

## Creating the extension
Creating the extension from scratch is pretty straightforward, we just have to add a manifest.json file. 

We have to create a popup.html file and just use it as if it was a normal HTML. We can import scripts add stylsheets, etc.

In the popup.js file is where we are going to have the logic for namespacing chrome.storage keys.

Firstly, I have to point out that chrome.storage is an async api therefore we will have to use async/await on our main function.

Then we going to use the tab API, that we enabled before in the manifest, to get the URL of the current page and we wait for the Promise to resolve. Then we use the storage api and use a template literal to get the settings only from the current URL. As we have no real way of getting the key from the results, we just resolve the first element in the Object.values() that returns an array of all the keys in the results which in this case is the settings object we want. Then we substitute the default settings object with the one we got from storage. To conclude, it works.

To set up a new element we have to set the addEventListener inside the async function as we’ll need the URL for setting up the namespace.

## Wrap up
I hope you will find this blog post useful and keep it handy for a quick reference. This solution is a little clumsy but I didn’t find any better way and wanted to share it with you. Feel free to send me a DM or to mention me on Twitter if you’ve got any suggestion or fix.

You can look at the whole code in this repository
TIL: JS Soft Links
Tags: todayilearned, javascript, codenewbie
Published: 2021-03-03 19:52:40

---
canonical_url: https://blog.justinhager.codes/til-js-soft-links/
---
## Today I learned:

:point_right: In JavaScript, if you set a variable equal to another array or object, that doesn't make a copy of it, it just makes a new name with which to reference the original thing by.

:penguin: Drawing from Linux terminology, I'm calling this practice creating a [soft link (aka symbolic link)](https://www.geeksforgeeks.org/soft-hard-links-unixlinux/)

❇️ If we want to make an actual copy of an array or object, we need to use the spread operator.

_Thank you to [Casey Olson](https://www.codementor.io/@caseyo) of Thinkful for sharing this knowledge with me_

![code example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dt6xwjzcc9nmfs44o98q.png)



------
Following is the original troubleshooting document I created, prior to talking with Casey:

```md
## Problem Solving 
🔎 Situation:
- Using hooks & functional components
- Parent component maintains state
- Multiple child components utilize the parent's state
- When child-A updates the parent's state, I would like child-B to re-render and use the updated state to modify a list in the DOM

🤔💭 Thoughts:
- Seems like this situation is known as 'stale props or state'
  - https://reactjs.org/docs/hooks-faq.html#why-am-i-seeing-stale-props-or-state-inside-my-function

- Seems like a solution may involve using useEffect and useRef
   - https://reactjs.org/docs/hooks-faq.html#is-there-something-like-instance-variables
   - https://reactjs.org/docs/hooks-effect.html

🐉 Obstacle
- I'm not yet familiar enough with useEffect and useRef to implement a solution

🗺️ Plan
- Utilize Thinkful TA Support
- Utilize documentation, articles, and tutorials to better understand useEffect and useRef, so as to implement a quality solution
```

_Originally published on [my fledgling blog](https://blog.justinhager.codes/til-js-soft-links/)_
Hello world!
Tags: intro, firstpost
Published: 2021-03-03 19:49:30

I often have _lots_ of things that I want to document or write about for myself and for others, and always do it in a rather isolated medium (like Google Docs), and it does not reach a lot of people and it gets lost fast. So that's why I'd like to start a lean blog here. Maybe it reaches more people. Maybe I'll be able to focus more on quality. I found quite a few insightful articles here myself, and hope to find the time to write something useful as well.

Topics I'll be writing about are: Open source, Kubernetes/Terraform/DevOps, Architecture, Developer Experience and maybe others that don't come to mind right now.
Nevertheless, ItsASine Coded in 2021!
Tags: wecoded
Published: 2021-03-03 19:38:05

## This thing I found that made me want to post a #shecoded this year

<figure>
![](https://scontent-iad3-1.xx.fbcdn.net/v/t1.0-9/155519709_4481806428514529_8505956254358575284_n.jpg?_nc_cat=106&ccb=3&_nc_sid=730e14&_nc_ohc=tHAB3gMe3qEAX8LGkn-&_nc_ht=scontent-iad3-1.xx&oh=365eca6ff37588facb131c668e043d29&oe=6064CA64)
<figcaption>Image via Geeky Glam Gamer on Facebook</figcaption>
</figure>
[Image Source](https://www.facebook.com/GeekyGlamGamer/photos/a.610342412327636/4481806425181196/)

If we are to survive as a species, it will be because we one day realize that every member of our society has something to offer and that the contributions of all of us working together will get us further than simply relying on manpower ever could have.

## My most recent achievement was…

Information sessions with women looking to do a career change or start a career in tech!      
I'm in a group called Tech Ladies and it's been super easy this past year to hop on a quick Zoom call and answer any questions about what it's like to be in tech regardless of where the other person physically is.     


## My vision for the near future

I'd love to see that as remote work and information opportunities flourish post-2020 it'll allow people of all backgrounds a chance to learn and grow as they want to. I'm from a town where it was very much the culture to stay there forever and your contribution to society was to raise the next generation. Anything other than that was deviance.     
I'm really hoping anyone in that situation who doesn't want that now has the chance to use online learning and Zoom to get a feel for other options and work remotely if they don't want to or can't move closer to tech industries. I ended up moving to the city, but if I had stronger cultural and family ties to my home area, I don't think I would have. Now the infrastructure is in place to help move us forward.     
Meetups and conferences and work being moved virtual allow for more chances to get people involved who have family care commitments or physical limitations. It's going to be awesome as the world sticks with being more accommodating for opportunities like that.
Utilizando useHistory no React
Tags: react, hooks
Published: 2021-03-03 19:37:48

*Cuidado: Para utilizar o hook useHistory deve-se estar com o React atualizado pelo menos na versão 16.8.*

O hook **useHistory** é bastante útil na programação React, pois permite ao programador acesso a uma instancia da navegação, fazendo com que seja possível acessar outras páginas da aplicação.
Um exemplo básico de uso do history está apresentado a seguir:

```
import React from 'react';
import { useHistory } from 'react-router-dom'; // import do hook

function Dogs(props) {
  const history = useHistory(); //chamado do hook

  const goToDogAdd = () => {
    history.push('/dogRegister'); //uso do hook para ir para a página /dogRegister
  };

  return (
    <button type="button" onClick={goToDogAdd}>
      Register a dog!
    </button>
  );
}
```

_Uma atenção importante é que, assim como todos os hooks, o **useHistory** só pode ser chamado dentro de uma função._