teleren/devto huggingface dataset:
SenecaCDot telescope
Tags: opensource
Published: 2020-11-19 16:53:47

### Summary
I worked on a big project (but not big issue) that all my fellow students are working on
[Repo link](https://github.com/Seneca-CDOT/telescope)
[Pull request](https://github.com/Seneca-CDOT/telescope/pull/1400)

### Features
Adding validation for CRUD operation's param; and writing some tests for it.

### Challenges
The most challenging task was actually setting up the environment for this projects. In prerequisites, there are 3 applications that I have to install Node.js, Redis, Elasticsearch. I assumed I have to have all 3 by default to set up. Later on when starting service, there are 2 options: using Docker or Natively installed. I chose to use Docker. And it cause error because Redis is already in use, because I manually install it in prerequisites. After sometime, I figured out to stop local Redis service that I installed, then it (Docker) would work. So I hope the instructions would be better if prerequisites have 2 options similar to "starting service" part: Docker and Native.

Working on the actual issue was simpler. Adding Express (backend) validator feels like adding extra function before CRUD request actually run, so
`route.delete('path/:id', (req,res) ... `
become 
`route.delete('path/:id', validateFunction(), (req,res) ...`
I used a simple validation for `:id` like a phone number, it has to have 10 digit. And then later on we can check if the existence of that `:id`.
I really like this validate because it will save some resource comparing to always check the existence `:id` from database.

The last task was writing test for my validate function. I have never written a proper test before (please don't make fun a me), so I was excited. It wasn't difficult because there were some tests already written in the projects, so I just followed them and had 2 test cases for mine. One with 9 digits and one with 12 digits. It turned out just fine, and I was very happy.
aks kubenet explained in plain english
Tags: kubernetes, aks, kubenet
Published: 2020-11-19 16:48:45

---
title: "aks kubenet explained in plain english"
published: true
description: "aks (azure kubernetes service) networking model- kubenet explained in plain english"
tags: kubernetes, aks, kubenet
cover_image: https://www.azuremonk.com/assets/blogposts/video/kubenet.png
---

{% youtube lwJDyJUVnxs %}


This is the ridiculously simple animated explanation of Azure Kubernetes Services Networking model - Kubenet in less than 5 minutes. We will cover 

what AKS is at a high level
how Kubenet networking model works
The benefits and limitations of using Kubenet 

In the part 2 of the video we will address Azure CNI networking model. 


For more animated Azure videos and simplified Azure content and podcasts please check out https://www.azuremonk.com/video #aks #azure #azurein5minutes #aksnetworking #networking #kubernetes #k8s #kubenet #cni #azuremonk #services #pods #overlay 

For step-by-step instructions on how to configure Kubenet please check out : [Steve's blog](https://blog.stevegriffith.nyc/posts/aks-networking-part1)

https://www.azuremonk.com

K8s in plain english 

#kubernetes #k8s #deployments #explained #cka #ckad #azuremonk #kubernetesinplainenglish #podsinplainenglish #deploymentsexplained #kipe
7 New Things in npm Version 7
Tags: npm, node, javascript
Published: 2020-11-19 16:45:05

The newest version of npm, the JavaScript package manager, includes plenty of surprising features and details. Some of the most exciting new features are workspaces, npx updates, and speed! This thing is seriously fast. Join me on this video to navigate each one and see some hands-on examples of npm version 7 in action.

Table of Contents:
0:00 Introduction
0:40 First release with GitHub
1:36 npm Workspaces
6:04 Rebuilt npx
8:50 yarn.lock Compatibility
10:46 Not the @latest
12:50 peerDependencies Installed by Default
14:20 Speed
17:54 Outro

---

🙏 Thanks for taking a look at my content!

📨 Join my newsletter for more: https://ryanlewis.dev

🎥 Subscribe to my [YouTube channel](https://www.youtube.com/channel/UCFqsAphTD7FXKYDCg5zdrOA)!

---

[YouTube](https://www.youtube.com/channel/UCFqsAphTD7FXKYDCg5zdrOA) | [Twitter](https://twitter.com/ryanmurakami) | [GitHub](https://github.com/ryanmurakami) | [Site](https://ryanlewis.dev)
Custom SQLite that did exactly what creator wanted? (Beyond default drivers, e.g. extensions / custom build)
Tags: sql, discuss, sqlite
Published: 2020-11-19 16:26:30

So far, I have seen two things.

- Extensions. Most common one is probably REGEXP.
- Custom collations. Recently, [I saw UNICASE](https://github.com/patarapolw/ankisync2/issues/3), which is probably some kind of ASCII-based unicode normalization.

I have never tried SQLCypher or auths, and I don't get yet why I would use it.

In a language, there are probably also alternative drivers, beyond the default ones as well; at least in Python and Node.js. Also,  JDBC-interface (i.e. Java driver) can also be used in both languages.

Closest I have to writing C code is writing cgo. But I don't know to write Rust, or real C/C++ code.

I see that custom built SQLite driver is also possible. But, it would hinder using DB Browser for SQLite, or reverse-engineering?
dmerej.info: now on the Gemini space
Tags: gemini
Published: 2020-11-19 18:09:19

---
title: dmerej.info: now on the Gemini space
published: true
date: 2020-11-19 16:10:22 UTC
tags: [gemini]
canonical_url: https://dmerej.info/blog/post/dmerej-info-now-on-the-gemini-space/
---

Hi there,

Just a quick note to let you know my personal website is now available on the Gemini space too.

Get a [Gemini client](https://gemini.circumlunar.space/clients.html) and see you at gemini://dmerej.info!

# But Why?

Good question! - the answer is only available on the Gemini version of the blog, though …
What is ReactJs and Why to use it? | Introduction with ReactJs For Beginners
Tags: beginners, react, programming
Published: 2020-11-19 15:57:42

React is an open source JavaScript library for building user interfaces.

<H3>Why is ReactJs popular?</H3>
Let's start with the fact that React is a project created and maintained by Facebook. 

when a company like Facebook uses React in its own products and invests money and resources to keep the project alive you can be rest assured it is not going to die down anytime soon. 
React has a component based architecture. 

This lets you break down your application into small encapsulated parts which can then be composed to make more complex UIs. 

Read more on <a href="https://yuvrajhinger.in/post/introduction-with-reactjs">What is ReactJs and Why to use it? | Introduction with ReactJs</a>
Flutter Assignment Writer
Tags: flutter, dart
Published: 2020-11-19 16:09:53

So, during this quarantine, I had a lot of assignments to write and was bored to hell. So I thought to find some app that could convert text from PDFs or Google into an assignment with handwriting fonts. I didn't find anything that I liked. So I decided to make an app.
Assignmentium!
Choose a handwriting, adjust the text, copy-paste! That's it

Get it here https://play.google.com/store/apps/details?id=com.ninjaasmoke.assignmentium
Tech Exceptions Show: Microsoft for Startups: Autonomous Driving Program
Tags: career, azure, startup, techtalks
Published: 2020-11-19 16:07:18

> " Autonomous vehicles represent a digital transformation that will enable safer roads, efficient cities, and a cleaner environment. This technology space is unique, with a complex set of challenges and sophisticated solutions. That is why we have created an exclusive program, specifically designed to empower startups in this space. "

![](https://media.giphy.com/media/3oxRmD9a5pLTOOLigM/giphy.gif)

This week I set down to a [copy break](https://aka.ms/AAacwbq) with my colleague [Aditya Sharma](https://www.linkedin.com/in/adityasharmacmu/) Sr. PM at Microsoft.



Aditya has an interesting story about how actively grows his career.
He graduated from Carnegie Mellon University where he Majored in Robotics. After a couple of years, he joined Microsoft as an Intern for 4 Months and later joined the Microsoft Garage.

After hours, he studied with his friends everything they could have find about Autonomous Driving, and shared it in a github repository
He, later on, merged it to the [Microsoft Autonomous Driving Cookbook](https://github.com/microsoft/AutonomousDrivingCookbook).

There he builds the [Autonomous Driving for Startups Program](https://startups.microsoft.com/en-us/driving/?WT.mc_id=techexceptions-11104-adpolak).

Aditya and I [recorded the conversation, 15:09 min](https://aka.ms/AAacwbq) so you can watch and learn as well during your coffee break.

![](https://media.giphy.com/media/8hYOpaWg8WFNL2oqsw/giphy.gif)

We hope you will enjoy it and happy to take your career and startup questions at [@adipolak](https://twitter.com/AdiPolak) and [@TechExceptions](https://twitter.com/TechExceptions)
Building SSL for Hosting Mobile Sites on NiFi
Published: 2020-12-13 20:19:14

---
title: Building SSL for Hosting Mobile Sites on NiFi
published: true
date: 2020-11-19 16:06:00 UTC
tags: 
canonical_url: 
---

# Building SSL For Hosting Mobile Web Sites on Apache NiFi

 openssl req -x509 -newkey rsa:2048 -keyout admin-private-key.pem -out admin-cert.pem -days 365 -subj "/CN=Admin Q. User/C=US/L=Seattle" -nodes

openssl pkcs12 -inkey admin-private-key.pem -in admin-cert.pem -export -out admin-q-user.pfx -passout pass:"SuperSecret"

pwd

keytool -genkeypair -alias nifiserver -keyalg RSA -keypass SuperSecret -storepass SuperSecret -keystore server\_keystore.jks -dname "CN=Test NiFi Server" -noprompt

keytool -genkeypair -alias nifiserver -keyalg RSA -keypass SuperSecret -storepass SuperSecret -keystore server\_keystore.jks -dname "CN=Test NiFi Server" -noprompt

keytool -importcert -v -trustcacerts -alias admin -file admin-cert.pem -keystore server\_truststore.jks  -storepass SuperSecret -noprompt

# then import into browser / ssl / key certs

[![](https://1.bp.blogspot.com/-RkqXE-zUdbY/X5naJYseAuI/AAAAAAAAbyo/vBbNwbatk0Q4k9wnVuetomc9NmZo5YHfACLcBGAsYHQ/w660-h450/mobilehandlehttprequest.png)](https://1.bp.blogspot.com/-RkqXE-zUdbY/X5naJYseAuI/AAAAAAAAbyo/vBbNwbatk0Q4k9wnVuetomc9NmZo5YHfACLcBGAsYHQ/s609/mobilehandlehttprequest.png)
  

[![](https://1.bp.blogspot.com/-0ZiS7qtu750/X5naJLPzEGI/AAAAAAAAbys/E8rl0yow-O8M1vwkm7LDy2m3zb_Mx5CHwCLcBGAsYHQ/w690-h284/standardrestrictedsslcontext.png)](https://1.bp.blogspot.com/-0ZiS7qtu750/X5naJLPzEGI/AAAAAAAAbys/E8rl0yow-O8M1vwkm7LDy2m3zb_Mx5CHwCLcBGAsYHQ/s597/standardrestrictedsslcontext.png)
Developer world as a woman 👩‍💻
Tags: womenintech, discuss, career
Published: 2020-11-19 16:05:27

I'm a 26-year-old woman who works as a developer since 2016 that's 5 years in this world and in this time despite I've worked in 3 different companies and known hundreds of developers I've only found a few dozens who are women. Actually, at this moment in my company, I work in an area where there are 50 developers of which only 2 are women, the strangest thing is that in the others areas this isn't the norm.

Since I began university and I saw only 10 girls in a class of 80, I knew that I wouldn't be working with a lot of girls, but in my work life I only saw the pattern even more marked, and from a few years I've been asking myself why this situation repeat in each company that I work, and the truth is that I have no idea, but in this post, I want to tell you my experience and debunk some really misleading ideas that I've heard.

### **You need to lose your femininity because you need to be hard if you don't they won't respect you**
Absolutely false !! actually, I've found that my point of view is really appreciated and respected by my colleges without me having to take an aggressive attitude, and in some moments where tempers are too high I can help to calm down the environment and facilitate conversations and compromise, I think that if you give respect you will be respected, especially if you have good ideas and know how to communicate.

### **The guys won't help you because they think that women don't know how to code**
Again .... False, I have been honoured by knowing amazing, caring and talented men from which I've learned a lot, and the thing is that they don't assume because of my gender because I don't let them, I'm always trying to be prepared and inform and when I don't know something I speak very clear that I don't, and the thing is that's ok, and they are generous with their knowledge and time, but you always have to appreciate that gift and honour it putting all your effort to learn and improve.

### **Code is too hard**
Well yes, but no, if you put your effort you can do anything you intend so I invite you to not be intimidated and at least give it a try, you won't regret it, at least if coding isn't something that you enjoy, you have the satisfaction that you achieve something that you taught that you couldn't be able to. I read this somewhere and it has always stuck with me (I don't know who the author is).

*__If a human created it, as a human I can understand it__*

At last, I want to say that I write from my experience and I want to say thank you to all of my amazing colleges and friends who make this work my dream world, and I want to hear your experiences and maybe inspire more women to take this amazing path.
req.query (or req.params / req.body) to TypeScript enum
Tags: help, typescript, webdev
Published: 2020-11-19 16:04:13

I don't get how this is possible. I have always been using `'A' | 'B' | 'C'`, but this is not enum.

However, I want to map to an ORM that supports enum.

Otherwise, why would you bother using an enum?

Thanks.
Infographic: Developer Happiness
Tags: career, watercooler, motivation
Published: 2020-11-19 16:03:13

Did you know developers are more likely to experience burnout than their colleagues? Well, there's more.

We made a report which goes into more detail about developer happiness. Check it out [here](https://cult.honeypot.io/developer-happiness-index/global-insights) if you want. 

Or get the super TL;DR version right now with our Developer Happiness Infographic. What else makes you a happy developer?

![200911_DHI_Infographic2 (1)](https://dev-to-uploads.s3.amazonaws.com/i/936c4lqyph5quzjy1iag.jpg)
Learning How to Code Day7
Tags: beginners
Published: 2020-11-19 16:00:10

Hello guys, nice to meet you all. I am a newbie without any computer science degree background and trying to learn coding by myself. 

Decided to record my self-taught journey of learning code as I wanna see how fast can I achieve my goal as being a junior front-end developer. 

Today is day7 and I have just started a project of building my personal portfolio website from scratch with HTML & CSS (as I have finished some courses on HTML & CSS on Treetreehouse during day1-6). 

Finally realised the important of doing project as I found I almost forgot everything that I learned from watching videos. Even though I was just working on the navbar, it takes me quite a lot of time figuring out how to make it with flexbox. Gotta pay much more effort on building the project. Wish me good luck!
What did you learn coding?💡
Tags: discuss, programming, experience, knowledge
Published: 2020-11-19 15:33:01

I spent the last 4 years working in the IT industry as a software developer, and I came here to share some things I understood along this period:

- Communication is at the center of everything
- Be patient, nothing happens overnight
- Take the time to think before coding
- The challenge is to find simple solutions to complex problems
- Documentation is as important as coding
- Experience comes with practice
- Keep learning
- Automate when it's possible
- There are several right ways to do things
- Know when to rest

What about you? What did you learn coding? 💻💡
Blur scrolling-div content behind an element using pure CSS
Tags: beginners, css, html
Published: 2020-11-19 15:11:38

To blur the scrolling div content behind an element, the **backdrop-filter** css property is used. The div is assigned a backdrop-filter property and also given a slightly transparent background color (e.g rgba(255, 255, 255, 0.85))

#####HTML
```javascript
<div class='wrapper'>
  <div class='box'>Whatever is behind this div is blurred out</div>
</div>
```

#####CSS
```javascript
body {
  margin: 0;
}
.wrapper {
  max-width: 100vw;
  background-image: url(https://images.pexels.com/photos/5491161/pexels-photo-5491161.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
  background-color: #cccccc; 
  height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.box {
  position: fixed;
  top: 30%;
  left: 40%;
  color: #333;
  font-weight: bolder;
  width: 20%;
  padding: 1rem;
  border-radius: 5px;
   background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(4px);
    -o-backdrop-filter: blur(4px);
    -moz-backdrop-filter: blur(4px);

    backdrop-filter: blur(4px);
}
```


{% codepen https://codepen.io/temmietope/pen/NWrVjPR default-tab=js,result %}


###Valid Example

A sample usage of this is to blur the div scrolling behind the navbar in an application. See the sample code below

{% codepen https://codepen.io/temmietope/pen/BazeZqq default-tab=js,result %}


I hope this helps
Regexes with multiple slashes in Ruby
Tags: ruby, rails, tutorial
Published: 2020-11-19 15:08:41

I picked up a new tip yesterday while working with regexes in Ruby.

> tl;dr - Use `%r{}` over `/.../` when matching regexes with more than one `/`.

I was testing if a string begins with `http://` or `https://` and wrote a small regex.

```ruby
/^https?:\/\//
```

Broken down, this ensures the string:

1. Starts with `http`
2. The next character is optionally `s`
3. The next characters are  `://`

Even for such a simple regex that feels a bit hard for me to read. There are too many escaped slashes for my taste.

To improve this a bit you can use `r%{}` over `/.../`. The syntax works the same but you don’t need to escape slashes.

The regex becomes something much more readable:

```ruby
%r{^https?://}
```

GitHub's RuboCop styleguide has a recommendation on when to use this syntax.

> Use `%r` only for regular expressions matching *more than* one ‘/‘ character. - [RubuCop Ruby Style Guide](https://github.com/github/rubocop-github/blob/master/STYLEGUIDE.md#regular-expressions)

P.S. I could have probably just used two `#starts_with?` calls but where’s the fun in that?
Well-Baked Pseudocode
Tags: beginners, codenewbie, javascript
Published: 2020-11-19 14:58:30

If you want to bake a loaf of bread, and you pull out the recipe card, the directions won't begin with "make bread". Of course, we're going to make bread but the point of a recipe card is to provide guidance as to *how* to make bread. It's broken down into simple parts, and as you complete each step, the dough starts to take form. The same can be said about pseudocoding.

**What is pseudocode?**
Pseudocode is a list of steps that illustrates how to achieve the desired result. The steps are written in plain natural language so they can be read and understood easily and can be translated into any programming language. You should pseudocode as if you're walking yourself through the objectives of the problem. It may seem tedious to pseudocode for simple logic, but it provides good habit-forming practice and will certainly help when constructing more complex problems.

Let's write some pseudocode to find the sum of a range when given an array of two numbers, and we want the range to include the starting and ending numbers.

First, it's helpful to identify the input(s) and expected output(s), including the expected datatypes, as well as any constraints or edge cases that may require special handling.

![pseudocoding example step 1](https://dev-to-uploads.s3.amazonaws.com/i/qdv68demhmspgloyinwl.jpg)

Next, you can start writing the logic for how you want to achieve the desired output, with each step serving as a stand-in for a line of code. If a line of pseudocode becomes lengthy, you may want to take a second look to see if it should be broken down into smaller steps.

![pseudocoding example step 2](https://dev-to-uploads.s3.amazonaws.com/i/hnaxoz99tr6b0eb8aowd.jpg)

Once you have a solid list of instructions, then you're finally ready to write the code, and you're on your way to a fully baked solution. Now for the fun part! Let's go ahead and fill in the spaces we left below each line of pseudocode with actual code.

![pseudocoding example step 3](https://dev-to-uploads.s3.amazonaws.com/i/6y7lvjjgpee4nz7y930k.jpg)

Now you might be thinking that sure looks like a lot of pseudocoding for a short amount of code, and you're right, but maybe you've written some code but didn't account for a specific edge case. With the pseudocode steps included as comments, anyone is able to follow your thought process and can easily make suggestions. It's tempting to want to start to code immediately but we'll save a lot of time in the end by setting ourselves up for success from the start.
Restarting my web development career
Tags: webdev, javascript, react, gatsby
Published: 2020-11-19 14:57:32

I'm one month into a new job where for the first time, I am a web developer.

I have been interested in computers ever since I was a kid and we got our first computer with Windows that only ran DOS. I was fascinated how it worked and wanted to know everything about it. The summer that I turned 13, a friend and I both decided to learn HTML. CSS didn't even exist yet so all you had to do was click "View Source" on any website and copy the code into your own text file, then change it and see what happened (and more likely, what you broke).

When CSS first came out, I remember thinking this would change everything. Being able to move your style code into a separate file would make everything more organized and make creating websites with multiple pages much more efficient.

After graduating high school, I enrolled in my local community college as a Computer Science major. But I didn't want to be a programmer. I liked building websites but there wasn't a major for that yet. I tried to learn Java for 2 years but it never really stuck well enough for me to want to continue and graduate. At the time I figured that was the end of my journey and would not work with computers for a job.

So I bounced around at a few jobs and eventually went back and finished my degree in technical management. During that time I got a job in IT to support my growing family (a wife and child with another baby on the way). It was ok but not what I loved.

While at this job I found WordPress, and started blogging about the things I was learning in IT, mostly just for myself. But I enjoyed writing so that pulled me back into web development, because I wanted to tweak the theme I had installed. Eventually that led me to learning more about WordPress, and from there I got my start working on my company's websites.

After 9 years there (and 2 more kids), I went to another job and left web development behind. I had a freelance business doing websites on the side, but it was mostly just to help people I knew. After 4 years, I got an opportunity to come back to my old company and do web development again. I this as my first opportunity to jump into doing what I love, so I took it and have never looked back.

Right now I'm relearning some things, and mostly feeling overwhelmed by all the things I need to learn to catch up. I suppose I will always feel somewhat behind, as that is the nature of the pace of technology, but it's an exciting world that I'm happy to finally be a part of.

I'm trying to get better at JavaScript as that seems like the most useful language that so much of the modern web is built on. I'm also learning React through Gatsby right now, and having a lot of fun building some really cool things.

I can't wait to see where this journey takes me as I continue learning.