teleren/devto huggingface dataset:
End of May 2022 Streaming
Published: 2022-05-31 15:40:38

https://www.linkedin.com/pulse/end-may-lets-get-summer-streaming-tim-spann/

JDK17 should give #Starbuxman like $1 per JDK17 mention, but it worked. Time to upgrade, it's "Twice as good as JDK 8". Well, the math holds...
I am home.


Pulsar master branch: Pulsar Components Java Version: Broker 17, Functions / IO 17, CLI 17

ARTICLES

SLIDES


VIDEOS




PULSAR PROJECTS


EVENTS

June 21, 2021 - Systems Masterclass - Half Day on Distributed Data Systems with Scylla, Pulsar, and AWS talks and group discussion. This is an interactive session with some interesting things in it.

Distributed Data Systems Masterclass
June 21 | 8AM - 12PM Paciﬁc Time

Register Now!


Learn how to build and manage enterprise-scale distributed data systems with the latest event streaming and distributed database technologies.

In this free, interactive half-day masterclass, our experts walk you
through how to build a resilient distributed system framework. We’ll
cover how to configure an Apache Pulsar cluster with a ScyllaDB NoSQL
database for a real-time event streaming application. At the end, you will have the opportunity to demonstrate what you learned and earn a certificate that shows your achievement.

You will learn best practices on how to:
- Configure event streaming for enterprise-scale applications
- Connect a low-latency data store to the event streaming architecture
- Use observability tools to monitor and optimize performance
Plus earn a certificate and an exclusive swag pack!*

*Must attend to be eligible. Shipping restrictions apply.

Register Now.

Organized by:  
ScyllaDB, Inc. and StreamNative
http://www.scylladb.com/
https://streamnative.io/
June 15, 2022. Virtual.

June 21, 2022 - Virtual Poland - Data Science Summit: Machine Learning Edition.

July 25-27, 2022. Virtual Florida. Deep Dive into Building Streaming Applications with Apache Pulsar

August 2022

Oct 3-6, 2022: Apache Con, New Orleans, LA.

Oct 4-5, 2022: Current: Apache Kafka Summit. Austin, TX.

Oct 25, 2022: KubeCon: Detroit
TOOLS








Published by
🇺🇦 Tim SpannStatus is online
🇺🇦 Tim Spann
🇺🇦 Developer Advocate @ StreamNative, Apache Pulsar, FLiP Stack, DeveloperWeek Advisor
Published • 5m
85 articles
hashtag#ApachePulsar hashtag#Europe
React Hook for Add/Switch Chain to any Ethereum Network in MetaMask
Tags: blockchain, web3, metamask, ethereum
Published: 2022-05-31 15:29:16

When Switching or Adding and then Switching to another Network/Chain within a dapp like React using MetaMask API. You can build a React Hook with the concept in this GitHub Gist included below.

The [code between lines 36 and 68](https://gist.github.com/httpJunkie/8687c513b7ee1a8dd97f7cefd00f6616#file-useswitchnetwork-ts-L36-L66) could be used outside of a React Hook in the case you just want to know how to create a single JavaScript/TypeScript function for adding/switching Ethereum chain.

{% embed https://gist.github.com/httpJunkie/8687c513b7ee1a8dd97f7cefd00f6616 %}
DevBox 2.1.0 🎉
Tags: news, webdev, tutorial, programming
Published: 2022-05-31 15:25:08

Hi 👋

This is a post about a [DevBox](https://www.dev-box.app) release (2.1.0) 📦

>  [DevBox](https://www.dev-box.app) is a desktop application / browser extension / web application of 50+ useful tools for developers 👷 like generators ⚙️, converters 🔀 and more.

This release brings **5 new tools** and **5 new cheat-sheets**.

### CSS Shadow Generator

This tool allows you to generate CSS shadows (`box-shadow`) by using intuitive controls for light position, resolution, opacity and elevation:

![Screenshot of CSS Shadow Generator Tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ytg0uua44g5h6ebuhki.jpg)

### Regexp Tester

DevBox now finally has a tool to test **regular expressions** which shows the matches and their positions:

![Screenshot of the Regexp Tester Tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zqfu2j0dcwtp0l0vrc21.jpg)

### JSON Explorer

This tool allows you to explore JSON files using a multi-column interface:

* clicking an object or array in a column shows a new column with its contents
* clicking a value in a column shows information about it on the right side

![Screenshot of the JSON Explorer Tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3eoj4xs1dj452u4344aa.jpg)

## Structured Code Generator

With this tool, you can create the structure of data and populate it with fake data:

![Screenshot of the Structured Data Generator Tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s3tp4hd69hc03r9vin0q.jpg)

### Markdown to HTML

This tool allows you to convert Markdown to HTML:

![Screenshot of Markdown to HTML Tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yooka4q3h24pgviv4ayf.jpg)

### Cheat-Sheets

Cheat-sheets for **regular expressions**, **Redis**, **SSH**, **Subversion** and **URL Encoding** were added.

----------

For the full list of changes, check the [changelog](https://www.dev-box.app/changelog) and the and [website](www.dev-box.app).

-------------

Let me know your feedback in the comments 🗨️ 🙏
Best Automated Source Code Review Tools For Developers
Tags: security, vulnerabilities, pentesting, penetrationtesting
Published: 2022-05-31 15:16:27

**[Source code analysis](https://bpbonline.com/products/penetration-testing-for-jobseekers?_pos=1&_sid=a19703314&_ss=r)** tools, also referred to as Static Application Security Testing (SAST) tools, can help analyze source code or compiled variations of code to help locate security flaws. SAST tools can be included in your IDE. Such tools can assist you to detect concerns throughout software application development. SAST tool feedback can conserve time and effort, specifically when compared to locating vulnerabilities later in the development cycle.

Can we ever imagine kicking back and hand reviewing each line of code to locate flaws in it? To make our job easier, numerous types of static analysis tools are readily available in the market. They help assess the code during development and identify fatal defects early in the SDLC phase. Such problems can be gotten rid of before the code is really pushed for functional QA. A defect located later on is always pricey to take care of. 

Here are some of the popular source code review tools, listed in no specific order:

- **PVS Studio:** Commercial tool that supports C, C++, C++11, C++/CLI, C++/ CX, C#, and Java

- **Reshift:** Commercial tool for [Java](https://bpbonline.com/search?q=Java&type=product) that uses machine learning

- **CAST:** Commercial tool supports over 30 languages

- **Veracode: **Commercial tool that supports Android, [ASP.NET](https://bpbonline.com/search?q=ASP.NET&type=product), C#, C, C++, Classic ASP, COBOL, ColdFusion/Java, Go, Groovy, iOS, Java, and [JavaScript](https://bpbonline.com/search?q=JavaScript&type=product)

-** Coverity:** Commercial tool that supports Android, C#, C, C++, Java, JavaScript, Node.js, Objective-C, PHP, Python, Ruby, Scala, Swift, and VB.NET

-** CodeSonar:** Commercial tool that supports C, C++, Java, and C# and maps against the OWASP top 10 vulnerabilities

- Fortify static code analyzer: Commercial tool that supports almost all popular programming languages

- **CodeScene behavioral code analysis: **Commercial tool that supports C, C++, C#, Java, Groovy, JavaScript, TypeScript, Objective C, Scala, [Python](https://bpbonline.com/search?q=Python&type=product), Swift, Go, Kotlin, Visual Basic .Net, PHP, Perl, Dart, Erlang, and Ruby

- **SonarQube:** Free tool that scans source code for fifteen languages for bugs and vulnerabilities

Hope this was helpful.
Different Stages Of An Automated Source Code Assessment
Tags: security, pentesting, penetrationtesting, developers
Published: 2022-05-31 15:07:08

Getting straight to the point, An automated source code scanner looks at program source from various points of view. Code review tools will have separate customizable engines/modules to inspect source code. 

Each of these scanning engines tries to identify different types of security problems in different aspects of the source code:

- **Data flow:** The data flow analyzer discovers prospective vulnerabilities that involve tainted data (user-controlled input) put to potentially dangerous use, for example, buffer overflow and SQL injections.

- **Control flow:** The control flow analyzer discovers potentially unsafe sequences of procedures, for example, time of check/time of use (TOCTOU, TOCTTOU, or TOC/TOU) issues and uninitialized variables.

- **Semantic:** The semantic analyzer spots potentially dangerous uses, features, and APIs at the intra-procedural level, for example, deprecated features and risky features.
Structural: The structural analyzer discovers possibly unsafe problems in the structure or definition of the program, for example, dead code.

- **Configuration:** The configuration analyzer looks for errors, weak points, and policy violations in an application's implementation configuration files.

[Automated source code scanning ](https://bpbonline.com/products/penetration-testing-for-jobseekers?_pos=1&_sid=eda7a8a37&_ss=r)can be divided into a few phases. The technique may vary from scanner to scanner. Here we are referring to the scanning methods used by one of the most popular source code scanning tools called fortify. 

On a very high level, these phases are as follows.

- **Build integration:** The first phase of source code evaluation entails choosing whether to integrate Static Code Analyzer (SCA) right into the build compiler system.
Translation: In this phase, source code is collected and using a series of commands, it is converted into an intermediate style that is related to a build ID. The build ID is typically the name of the task being scanned.

**- Analysis:** In this phase, source files identified during the translation phase are scanned and an analysis results file is prepared. Typically, for fortify scanner, Fortify Project (FPR) format is created.

- **Verification of the translation and analysis:** This phase ensures that the source files were checked using the right rule packs and that no significant errors were reported.

Hope this was helpful.
What do you like most about your favorite communities?
Tags: discuss, codenewbie, devrel
Published: 2022-05-31 15:04:34

---
title: What do you like most about your favorite communities?
published: true
description: 
tags: discuss, codenewbie, devrel
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yxn3l0wmgs5ub5xxfieq.jpg
series: Community Conversations
---

This is a series organized by the Deepgram Devs where we talk about and answer questions about getting started in DevRel, Community, and Tech. 

**What do you like most about your favorite communities? How do communities make you feel welcome?**

Feel free to share your tips or experiences of the great ways communities support their members. 

@tessak22, Mila from Buildable, and I held our small group conversation on [Getting Started in Community](https://lu.ma/community-building).

We'll be sharing our takeaways during a [Twitter Space](https://twitter.com/DeepgramDevs/status/1531662624110391297?s=20&t=rZ7ndGptyPkk7vGw1g6oxQ) on June 1 at 12:30p PT | 3:30p ET.

![Card for Twitter space info with images of Tessa, Mila, and Bekah](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/igq44do1wczx4ztkr0lp.jpg)

If you're interested in attending our last Community Conversation, you can sign up for [Getting Started in Tech](https://lu.ma/get-started-in-tech) - Mon, Jun 6, 12:00 PM EDT.
Stranger Things Intro
Tags: codepen
Published: 2022-05-31 15:00:53

<p>Source also available on Github, with more information: <a href="https://github.com/wbobeirne/stranger-things" target="_blank">https://github.com/wbobeirne/stranger-things</a></p>

{% codepen https://codepen.io/YUNGMASTERZADDY/pen/gOveZVL %}
How to use Litestream with SQLite & Prisma
Published: 2022-05-31 14:52:47

---
title: "How to use Litestream with SQLite & Prisma"
publishedOn: "2022-05-31"
---

> Originally posted on: https://arnavgosain.com/sqlite-prisma-litestream

One of my side projects is [Rune](https://runereader.co), an alternative email client built for reading and annotating newsletter content.

Rune is built with Remix[^1] and uses Prisma[^2] as the ORM layer. Prisma supports quite a few databases, of which I prefer Postgres. But I wanted to keep things simple, and didn't want to set up a full-blown Postgres instance, so I decided to use SQLite.

Since since my preferred way to deploy is via Docker on Railway.app, I needed a way to persist SQLite since Docker containers are refreshed on every deployment. Litestream[^3] was the perfect tool for the job.

But since Litestream only works with SQLite's WAL journaling mode[^4], it needs to be enabled on the SQLite database before running the Remix app.

## `enable-wal.js`

```js
const { PrismaClient } = require("@prisma/client");

let client = new PrismaClient();

client.$queryRaw`PRAGMA journal_mode = WAL;`
  .then(() => {
    console.log("ENABLED WAL MODE FOR DATABASE");
  })
  .catch((err) => {
    console.log("DB SETUP FAILED", err);
    process.exit(1);
  });
```

## `run.sh`

```bash
#!/bin/bash

set -ex

## Restores the database from S3
litestream restore -v -config /etc/litestream.yml -if-replica-exists -o /data/db /data/db

## Runs migrations on the restored database
npx prisma migrate deploy

## Enables WAL Mode
node ./scripts/enable-wal.js

npx concurrently "litestream replicate -config /etc/litestream.yml" "npm run start"
```

## `Dockerfile`

```Dockerfile
CMD ["bash", "./scripts/run.sh"]
```

---

## Explanation

1. Dockerfile runs the `run.sh` script.
2. The script first restores the latest snapshot of the database from S3 using Litestream.
3. It runs `npx prisma migrate deploy` to deploy any pending migrations.
4. Then, `enable-wal.js` is run to enable WAL journaling mode using PrismaClient's `$queryRaw`
5. Finally, the Remix app & Litestream are started concurrently using the `concurrently`[^5] CLI tool.

---

[^1]: https://remix.run
[^2]: https://prisma.io
[^3]: https://litestream.io
[^4]: https://sqlite.org/wal.html
[^5]: https://www.npmjs.com/package/concurrently
Paracetamol.js💊| #129: Explica este código JavaScript
Tags: javascript, webdev, spanish, programming
Published: 2022-05-31 14:29:42

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Intermedio</mark></center>

```js
const f = async() => {

}

f()
  .then(x => console.log(x))
  .catch(x => console.log(x))
```

A. `null`
B. `ReferenceError`
C. `undefined`
D. `NaN`

Respuesta en el primer comentario.

---
Starting My Software Engineering Journey
Published: 2022-05-31 14:16:24

About a month ago, I started my journey as software engineer. Although I’m about 2 years removed from college and graduated with a technical degree, I realized I didn’t actually know what I wanted to do and had no trajectory for my career. I got a job as a Software Tester out of college and thought it was something I would want to do for the rest of my life. That idea however quickly fizzled out as I found it to be very repetitive and mundane. After spending months looking for a new job and constantly getting rejection emails, I decided I needed to hone in on some new skills. 

As I was looking for jobs, software engineer jobs were constantly popping up on my feeds. Even while taking coding classes in college, I knew my skills weren’t on par with what companies wanted. It was in this moment, where I knew I needed to hone in on some skills. That’s when a friend told me about a software engineering program she had recently taken and thought that while it would be challenging, it’s something that I should consider taking. 

Through many weeks of wrestling with the idea, I finally decided to enroll in the Flatiron Software Engineering Program. I remember even while completing the pre-work, I thought this was a huge mistake and while sometimes I still think that, the feeling of completing each lab and deliverable is definitely a great reminder this was the right decision. 

It’s extremely gratifying learning the material, putting it into practice, and seeing the results happen before your very eyes. I’m excited to learn more complex topics and languages as I continue to hone in on these new skills to start my software engineering journey.
How do I handle brutal feedback from colleague?
Tags: anonymous, discuss, career, help
Published: 2022-05-31 14:15:12

_This is an anonymous post sent in by a member who does not want their name disclosed. Please be thoughtful with your responses, as these are usually tough posts to write. Email sloan@dev.to if you'd like to leave an anonymous comment or if you want to ask your own anonymous question._ 

***


My colleague leaves brutal and rude feedback when reviewing my code. Just, imho, intense and unnecessary, and definitely unprofessional. This feedback is given on a fairly recurring basis, and I don't think I can stand much more of it. How do I bring this up to them in a way that’s effective and professional, and how can I get this behavior to stop?
5 websites to start growing your Frontend Developer skills!
Tags: webdev, beginners, tutorial, discuss
Published: 2022-05-31 14:10:20

One of the most often asked questions a novice developer is definitely _"where do I start?"_ 😦

I have also asked myself this question a lot of times.

The best way I could learn was to **get my hands on it**. Practice, practice and more practice. 

So here's a **short list of websites** I've used in the past (and still use) to practice and improve my s**kills as a frontend developer**. 💪💪💪



---



##FreeCodeCamp
#####url: [freecodecamp.org](https://freecodecamp.org)


![FreeCodeCamp Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zdvmg1lv2gzhfmixa20y.png)

One of the **best websites for beginners**.

You can follow the path that is most interesting for you based on what you would like to know.

You will find lots of useful resources, precise and easy to understand explanations for each topic.

You will learn using a _**"Project Oriented"**_ approach and you can get many free certifications. 🤩



---



##Javascript30
#####url: [javascript30.com](https://javascript30.com)


![Javascript30 Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kq0mgxtevog6kq21k64j.png)

As mentioned, the best way to learn is to create. 💻

On this site you will find **_30 projects_** (one per day) that will help you build your portfolio with **Vanilla Javascript.**

You will be guided step by step following the videos by a great instructor and you will be able to improve your **javascript skills**. 😎



---



##CSS Battle
#####url: [cssbattle.dev](https://cssbattle.dev/)


![CSS Battle Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/65s9ca7mgr1glzqsnrvy.png)

Another way to learn that it always works with me is to have fun and on **_CSSBattle_** you can really do it 😁

You will have lots of really **fun challenges to complete**, take you to challenge friends and colleagues and in the meantime **learn new css techniques**.



---


 
##Frontend Mentor
#####url: [frontendmentor.io](https://frontendmentor.io)


![Frontend Mentor Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hzx2y4qjhkngwm2egna9.png)

**_Frontend Mentor_** is a website suitable for all skill levels. 🤯

Through the many challenges that the site offers you will learn **Javascript, CSS and HTML** with a practical approach and creating real projects that will help you build your portfolio with **“real-life”** cases.


...and last but not least...



---



##The Odin Project
#####url: [theodinproject.com](https://theodinproject.com)


![The Odin Project Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fvakfrj9lrw2wqm718hx.png)

The Odin Project is the website that will push you to follow a path more relative to **FullStack Development**. 

You will find many _"Curriculum"_ to follow step by step and which cover everything in a realistic way. 🤠

You will also be supported by a large community ready to help you on your journey.




---





###Ready to get back in the game?
What other websites do you use to improve your **web developer experience**?
Javascript: Sum diagonal and counter diagonal elements of n * n matrix
Tags: javascript, dsa, algorithms, webdev
Published: 2022-05-31 14:09:50

> Given a square matrix of size n, calculate the sum of diagonal and counter diagonal elements.
> where n > 1
```
Example:
[
  [1, 8, 7],
  [2, 9, 6],
  [3, 4, 5]
]
diagonal = positions [0][0] + [1][1]+ [2][2] => 1+9+5 =15,
counterDiagonal = positions [0][2] + [1][1]+ [3][0] => 7+9+3 =19
```

_Let's try first with brute force method then will optimise it._

```
function sumOfDiagonals(matrix) {
  const len = matrix.length;
  let diagonalSum = 0;
  let counterDiagonalSum = 0;
  for (let i = 0; i < len; i++) {
    for (let k = 0; k < len; k++) {
      if (i === k) {
        diagonalSum += matrix[i][k];
      }
      if (i + k == len - 1) {
        counterDiagonalSum += matrix[i][k];
      }

    }
  }

  console.log("sum of diagonal elements --- ", diagonalSum)
  console.log("sum of counter diagonal elements ---", counterDiagonalSum)
}
sumOfDiagonals([
  [1, 8, 7],
  [2, 9, 6],
  [3, 4, 5]
]);
```
**The solution above works well but the time and space complexity are O(n^2) time and O(1) where n is the number of elements our loop iterated and power 2 is for the two loops that we used.**

_Let's try the optimised solution:_

```
function sumOfDiagonals(matrix) {
  const len = matrix.length;
  let diagonalSum = 0;
  let counterDiagonalSum = 0;
  for (let i = 0; i < len; i++) {
    diagonalSum += matrix[i][i];
    counterDiagonalSum += matrix[i][len - i - 1];
  }

  console.log("sum of diagonal elements --- ", diagonalSum)
  console.log("sum of counter diagonal elements ---", counterDiagonalSum)
}
sumOfDiagonals([
  [1, 8, 7],
  [2, 9, 6],
  [3, 4, 5]
]);
```
**Now the time complexity has been reduced to  O(n).** 

Please ❤️ it and share it your with friends or colleagues. Spread the knowledge.

---

Thats all for now. Keep learning and have faith in Javascript❤️