teleren/devto huggingface dataset:
My First Official Open Source Contribution
Tags: opensource, beginners, programming, news
Published: 2022-11-11 18:11:57

Hi there,

Yesterday, I visited [dev.to](https://dev.to/) to write some  article and browse  some articles and found "around 700 people contributed to forem" and I clicked on it which took me to the github page of [forem](https://github.com/forem/forem) which powers [dev.to](https://dev.to/).
![contribute to forem](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jqxe34sg2wdbbfrs2pg3.png)

I found it interesting and went through some issues and found out that there is a bug with badge description rendering twice in [dev.to](https://dev.to/)


![badge twice description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sdbv0q94s23wmu80tcyz.png)

Today(11/11/2022), I forked the [repo](https://github.com/forem/forem) into my GitHub account and clone it into my local. At first I found it scary with so many configuration files but thanks to developer docs which helped me installing dependencies to start the application in  my local.

I am using Ubuntu operating system, I started installing the dependencies with the help of [Developer docs](https://developers.forem.com/getting-started/installation/linux). I installed rbenv , Ruby 3.0.2 , PostgreSQL, ImageMagick, Redis. After installing all these, I started running scripts for application to load. But, those scripts were failing. I debugged for some time and found out that I need to give DATABASE_URL with username and password in .env file. 

Finally, I successfully managed to run the application in my localhost.

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

Now, I need to find the code location for the badge description. After several searches, I found the file name and the code relate to it which has two descriptions, So I remove one, committed and pushed my code.I created the pull request and it got accepted by today itself.

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

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


The final result, now badge is showing description.


![final badge](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9excuxnkcmw91i22me0v.png)


I am so happy, I know this is just a small contribution but I liked it. I want to do it again.

Thank you.
dev.to codes! Collaborative coding experiment: The most liked comment picks the next line of code, day 4
Tags: programming, community, opensource, ruby
Published: 2022-11-11 18:08:19

Another 24 hours have passed and we're now on day 4. @manthanbhatt has posted today's most liked comment, adding a new part to whatever we're building here, Congrats!

**Please note that the language of choice was Ruby! Any comment in another language might need some translation.**

This experiment is inspired by a [post on the ProgrammerHumor subreddit](https://www.reddit.com/r/ProgrammerHumor/comments/yot55f/the_most_upvoted_comment_picks_the_next_line_of/), where the original author did this exact thing: The most liked comment after 24 hours picks the next line of code.

**The rules:**

 * Nothing that's against any applicable law
 * Nothing that's against the community code of conduct, terms of use, or privacy policy
 * No leaking of personal information of anyone
 * No malware/ransomware/viruses/etc.
 * Keep it civil
 * (To be expanded, depending on the case)

Our code so far:

```ruby
emotions = ["🥲", "🥰", "🥺", "😫", "🤬", "😞", "😅", "😊", "😰"]
how_i_feel_right_now = emotions.sample
if how_i_feel_right_now === "😊"
    letsDoThis()
end
```

(I had to adjust the code a bit for it to be valid Ruby.)

See you in 24 hours!
Ship finance 50% faster with Yuzu API
Tags: news, webdev, api, graphql
Published: 2022-11-11 17:45:47

[Yuzu](https://yuzu.dev) is the fastest way to build with market and investment data like stock and crypto prices, company fundamentals, ETF details, forex and more. 

Providing innovative GraphQL and SQL APIs for both frontend and backend development, Yuzu removes the data engineering overhead traditionally associated with market data.  

Learn more at our new wesbite:
[https://yuzu.dev
](https://yuzu.dev
)

Questions? [Hop in our Discord](https://discord.com/invite/U4FqcA5hpc)!

![Yuzu Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/16oy3m77gnn5i62cw4pv.png)
Amazon S3 - Scaling
Tags: s3performance, s3series, s3scaling, horizontalscaling
Published: 2022-11-11 17:30:33

### Amazon S3 Performance Optimization
S3 Bucket Prefixes - Scale for high request rates. Amazon S3 supports up to 3,500 PUT/POST/DELETE and 5,500 GET transactions per second (TPS) per partitioned prefix.

Insurance-bucket/Auto = 3,500 PUT/POST/DELETE and 5,500 GET TPS.

Insurance-bucket/Life = 3,500 PUT/POST/DELETE and 5,500 GET TPS.

If request to the prefix exceed the supported request rate would result in HTTP 503 errors. 

Avoid date based prefixes as that might result in exceeding request rate while the business grows per day basis.

### Scaling connections horizontally:
S3 is a large-scale distributed system. So we can make parallel requests. No limits on number of connections made to a bucket Write/retrieve data from S3 in parallel using multipart uploads.

### Use Amazon CloudFront:
Browser ->>> CF->>> S3
Amazon S3 - Data Lake
Tags: s3lake, datalake, s3series, s3centralrepository
Published: 2022-11-11 17:08:39

## Data Lake:
A centralized repository that allows to migrate, store and manage all structured/unstructured data at unlimited scale. Once centralized, we can extract value and gain insights from data through analytics and ML. This makes the data available to more users across more lines of business - enables them to get insights they need.
S3 is ideal for Data Lake as it provides unlimited scalability.

## Data Cataloging:
On put of S3-> Use lambda to extract metadata -> DynamoDB and ElasticSearch -> then query the data.

## AWS Glue:
Fully managed ETL service. It can organize, cleanse, validate and format data.

## In-Place data querying:
Without provisioning and managing servers/clusters we can transform/query the data. So no need to copy and load data into separate analytics platforms. Athena and Redshift Spectrum provide in-place querying of S3 data lake.

## Amazon Athena:
Interactive query service that analyze data directly in S3 using SQL Serverless. Pay for scanned data while running queries. Integrates with QuickSight for easy visualization.

## Redshift Spectrum:
More complex queries with large number of data lake users can run concurrent workloads.
Continue
Tags: dart
Published: 2022-11-11 17:03:29

## - Na imagem abaixo:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0d9ojqics4d9g4e7cfbs.png)
Continue dentro de um laço faz com que a execução da instrução atual (ou bloco de instruções atual) seja interrompida e passa para a próxima iteração do laço

Resultado:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/npb3bx96c8c5mzijx1j6.png)
The Top Hacks and Breaches Of 2022
Tags: data, hacking, cybersecurity, ukraine
Published: 2022-11-18 04:24:23

---
title: The Top Hacks and Breaches Of 2022
published: true
date: 2022-11-11 17:03:24 UTC
tags: data,hacking,cybersecurity,ukraine
canonical_url: https://grahamzemel.medium.com/the-top-hacks-and-breaches-of-2022-2300a389940a
---

[![](https://cdn-images-1.medium.com/max/2600/0*FjQqXbywLJ42SecY)](https://grahamzemel.medium.com/the-top-hacks-and-breaches-of-2022-2300a389940a?source=rss-79a7fbf51e21------2)

TL;DR- A list of the top 5 global cybersecurity hacks of 2022, from Russia and Ukraine’s battle to decentralized cryptocurrency trading…

[Continue reading on Medium »](https://grahamzemel.medium.com/the-top-hacks-and-breaches-of-2022-2300a389940a?source=rss-79a7fbf51e21------2)
Getting Started With Vulnhub
Tags: secuity, vulnhub, virtualbox
Published: 2022-11-11 16:57:01

In this blog we will see how to set up a vulnhub machine and start hacking.Vulnhub is a website which contains vulnerable machines which you can download and start practicing your skills.

[Visit vulnhub](https://www.vulnhub.com/)


![Vulhub homepage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/07s4k8w3vkej5fqbz1fo.png)

You can download any machine that you want to practice with.

I will downloading the Aragog Machine from the [Harry Potter Series](https://www.vulnhub.com/series/harrypotter,468/)


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

* Open Virtual Box

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

* Select "Tools" and Click on "Import"

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

* Click on the file button

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

* Navigate to the .ova file that you have dowloaded from the vulnhub website and click on open.

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

* Click on Next and with the default values click on import.

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

* Once the machine imported click on start to start the machine.


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

Happy Hacking!
What was your win this week?
Tags: discuss, weeklyretro
Published: 2022-11-11 16:56:23

Hey folks! 👋

Hope everybody is having a fantastic Friday and that you all have wonderful weekends!

Looking back on this past week, what was something you were proud of accomplishing?

All wins count — big or small 🎉

Examples of 'wins' include:

- Starting a new project
- Fixing a tricky bug
- Playing games with your pals 🎲 

---


![meme of Homer Simpson backing up and disappearing into the bushes, the words "Leaving work early for a 3 day weekend like" are on the screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4mr6vedj3xij83npcrjf.gif)
This Week @ Grafbase - Nov 11
Tags: graphql, webdev, news, javascript
Published: 2022-11-11 16:54:07

Happy Friday 🥳

**This Week @ Grafbase** has been all about product, conferences, and realtime!

**What's new?**

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

💅 **New homepage!!**
We wanted to share with everyone what we're building. The homepage shares more about we've created already as well as what's coming next. Check it out and let us know of any feedback.
[https://grafbase.com](https://grafbase.com)

📆 **Date scalar added**
You can now use the `Date` scalar for fields in your models.
[https://grafbase.com/changelog/date-scalar-added](https://grafbase.com/changelog/date-scalar-added)

🔢 **`@length` directive added**
You can now set min and max values for the length of a field value or list.
[https://grafbase.com/changelog/length-directive-added](https://grafbase.com/changelog/length-directive-added)

🔐 **Model-level authorization rules**
You can now override the global `@auth` rules for each `@model` in your schema.
[https://grafbase.com/docs/reference/directives#model-level-authorization-rules](https://grafbase.com/docs/reference/directives#model-level-authorization-rules)

🗝️ **Auth groups claim configuration**
You can now set the `groupsClaim` for group-based auth to use a custom claim different from the default groups claim.
[https://grafbase.com/docs/reference/directives#operations](https://grafbase.com/docs/reference/directives#operations)

🌉 **Jamstack Conf**

This week was all about Jamstack Conf! It was a blast to meet the community and see people IRL once again!

![Jamie and Colby](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q0lzahet9qcpdhboyl3v.jpeg)

Be sure to check [jamstack.org/conf](https://jamstack.org/conf/) to watch all of the the talks when they're published!

**What’s next?**

💚 NuxtNation is happening!
This event happens November 16 & 17, online!
[https://nuxtnation.com](https://nuxtnation.com/)

💗 We’re close to releasing the initial version of `@live` queries! We should have something to show you very, very soon!
[Subscribe to the changelog](https://grafbase.com/changelog)

More exciting updates coming next week!

Have a great weekend 👋
Break
Tags: dart
Published: 2022-11-11 16:48:56

## - Na imagem abaixo:



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4alng4w47j7v5qbhk80e.png)
O comando break encerra o loop atual

Resultado:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/51pqz9kstiip9o12j4mh.png)
This nest Behavior are triggered
Tags: rxjs, typescript, help, programming
Published: 2022-11-11 16:30:22

Hi,

I try to implements this function:

```
mainBehavior$
    .pipe(
      switchMap((mainBehavior) =>
        combineLatest([secondBehavior$, thirdBehavior$]).pipe(
          tap(([secondBehavior, thirdBehavior]) =>
            console.log(
              'PROBLEM: ',
              mainBehavior,
              secondBehavior,
              thirdBehavior
            )
          )
        )
      )
    )
    .subscribe();
```

But if i next the second or third Behavior, them trigger the mainBehavior.

So i implements this:

```
function getSecondBehavior() {
  return secondBehavior$.getValue();
}

function getThirdBehavior() {
  return thirdBehavior$.getValue();
}
```

```
mainBehavior$
    .pipe(
      filter((mainBehavior) => !!mainBehavior),
      map((mainBehavior) => [
        mainBehavior,
        getSecondBehavior(),
        getThirdBehavior(),
      ]),
      tap(([mainBehavior, secondBehavior, thirdBehavior]) =>
        console.log('FIXED: ', mainBehavior, secondBehavior, thirdBehavior)
      )
    )
    .subscribe();
```

Do you know how to edit my first function for not doing this workaround?

Link to Stackblitz for reproduce: [https://stackblitz.com/edit/rxjs-8ay9ov?file=index.ts](https://stackblitz.com/edit/rxjs-8ay9ov?file=index.ts)

{% embed https://stackblitz.com/edit/rxjs-8ay9ov?ctl=1&devToolsHeight=33&embed=1&file=index.ts&hideExplorer=1&hideNavigation=1 %}
How microservices enhance agility in embedded systems development
Tags: microservices, opensource, news, luos
Published: 2022-11-11 16:30:00

The digital newspaper [embedded.com](http://embedded.com) published an article by Nicolas Rabault on how microservices enhance agility in embedded systems development.

⏩ Read the full [article](https://www.embedded.com/how-microservices-enhance-agility-in-embedded-systems-development/)

💬 “The main advantage of microservices is that it allows developers to decouple the different pieces of software allowing a clean separation between applications and drivers. This makes it possible to reuse the same application code for different hardware platforms and to change hardware platforms without having to change the code except the concerned driver.”
Nicolas Rabault, CEO of Luos
Sum of Root To Leaf Binary Numbers
Tags: javascript, leetcode
Published: 2022-11-11 16:28:30

You are given the root of a binary tree where each node has a value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit.

For example, if the path is 0 -> 1 -> 1 -> 0 -> 1, then this could represent 01101 in binary, which is 13.
For all leaves in the tree, consider the numbers represented by the path from the root to that leaf. Return the sum of these numbers.

The test cases are generated so that the answer fits in a 32-bits integer.

 

Example 1:

Input: root = [1,0,1,0,1,0,1]
Output: 22
Explanation: (100) + (101) + (110) + (111) = 4 + 5 + 6 + 7 = 22

```js
/**
 * Definition for a binary tree node.
 * function TreeNode(val, left, right) {
 *     this.val = (val===undefined ? 0 : val)
 *     this.left = (left===undefined ? null : left)
 *     this.right = (right===undefined ? null : right)
 * }
 */
/**
 * @param {TreeNode} root
 * @return {number}
 */
var sumRootToLeaf = function (root) {
  let sum = 0;
  const getAllPaths = (root, currentPath) => {
    if (root === null) {
      return;
    }
    currentPath = currentPath + root.val;
    if (root.left === null && root.right === null) {
      let intValue = parseInt(currentPath, 2);
      sum = sum + intValue;
    }

    if (root.left) {
      getAllPaths(root.left, currentPath);
    }
    if (root.right) {
      getAllPaths(root.right, currentPath);
    }
  };
  getAllPaths(root, "");
  return sum;
};


```
Reverse String | LeetCode | Python
Tags: leetcode, computerscience, tutorial, python
Published: 2022-11-11 16:00:00

## The Problem

Write a function that reverses a string. The input string is given as an array of characters `s`. You must do this by modifying the input array in-place with `O(1)` extra memory.

### Constraints

- 1 <= `s.length` <= 10^5
- `s[i]` is a printable ascii character.

## The Input

Sample:
```
s = ["h","e","l","l","o"]
```

## The Output

Sample:
```
["o","l","l","e","h"]
```

### Explanation

Already cleared.

## The Solution

Pay attention to what [in-place](https://en.wikipedia.org/wiki/In-place_algorithm) algorithm means. One simple solution to do it is swapping both place the former and the latter index of the array until it meets in the middle.

### The Code

#### Source Code 1

```python
class Solution:
    def reverseString(self, s: List[str]) -> None:
        l = len(s)
        for i in range(l//2):
            s[i], s[l-1-i] = s[l-1-i], s[i]
```


![code 1 result](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s4aadgwzhlg07qc7fb8n.png)



#### Source Code 2

The same as the previous one but it will only swap if they have not identical values. Hence, it will less swapping and assignment than before.

```python
class Solution:
    def reverseString(self, s: List[str]) -> None:
        l = len(s)
        for i in range(l//2):
            if s[i] != s[l-1-i]:
                s[i], s[l-1-i] = s[l-1-i], s[i]
```


![code 2 result](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tllphp81yhr0f5ugw6r1.png)



[Original Source](https://leetcode.com/problems/reverse-string/)

[Let's be friend 👋](https://beacons.ai/ranggakd)
No uses go mod init nunca mas..
Tags: go, tutorial, beginners
Published: 2022-11-11 16:23:19

Gotouch está inspirado en las tecnologías Helm, Maven y Vue CLI. Gotouch ayuda a los usuarios a mantener la estructura del proyecto como los arquetipos de maven, permite a los usuarios modificar el contenido del proyecto con valores al igual que generar YAML de Kubernetes con Helm y finalmente, permite a los usuarios personalizar el proyecto que se creará solicitando sus preferencias.


**How to use Gotouch**
Firstly, install gotouch.



```
go install github.com/denizgursoy/gotouch/cmd/gotouch@latest
```

Luego ejecute gotouch sin argumento. Mostrará estructuras de proyecto predeterminadas. En el archivo de propiedades predeterminado, hay dos proyectos Go. El primero es un proyecto de módulo simple sin directorio, solo tiene "main.go" y ".gitignore". El segundo sigue la estructura estándar del proyecto.
pueden ver un ejemplo aqui [Gotouch](https://asciinema.org/a/534755)
The Coding Language you Write Affects your Personality
Published: 2022-11-11 16:10:03

---
title: The Coding Language you Write Affects your Personality
published: true
---

I just found out about ~~my personality disorder~~ a personality–related phenomenon.

On the road to learning Italian, it has always fascinated me that my personality _does_ appear to change slightly when I'm speaking it. The change is subtle, but enough that I've started to notice the difference when talking with native speakers.
Here is an article to back up the credibility of this phenomenon: https://www.psychologytoday.com/intl/blog/life-bilingual/201111/change-language-change-personality

As I have been learning Swift for iOS and Kotlin for Android and backend services, I am starting to notice the same type of shift in the way I code. My "engineering personality" and my behaviors seem to change.

One example is I think I prioritize more of a "get'r'done" personality in Swift than I used to in Java. In Java, I tend to think much more about Test Driven Development.
Maybe because unit testing in Swift did not come as easily to me as it did in the JVM.

Another example is when I'm in Kotlin I am much more interested in wrapping even the simplest of my domain objects in a data class. No primitive data types are left unwrapped. An Integer has a purpose and a name, and I create a data class for it. In Java, I would do this too, but it was much more daunting and sometimes I would not take the time.
I wonder if that's because data classes are so much easier to write in Kotlin.

🇮🇹 In Italian, I feel so much more chill and well spoken. There are no phrasal verbs and there are no trailing prepositions allowed, so much speech feels so much more stable.  
🇺🇸 In English, because it is my native language, I throw words around like a madman, sometimes trying to seem impressive and hoping that my sentence will end correctly.  
🇮🇹 In Italian I need to think ahead of time and sometimes put my pronouns at the front of my sentence as opposed to at the end.

I'm wondering if any software [polyglots](https://www.merriam-webster.com/dictionary/polyglot) have encountered this same phenomenon.
Share DEV articles to Mastodon
Tags: meta, socialmedia, changelog, mastodon
Published: 2022-11-11 16:03:17

You asked, we listened! 🦣

You can now share DEV articles to **Mastodon** in addition to other social networks directly from the article page.


![A DEV post with a red arrow pointing to the ellipsis icon on the left sidebar. The dialog is open, and the option "Share to Mastodon" is circled in red with another red arrow pointing to it.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vnqdng1v6lxg7xsgc7um.png)

Here's how to do it:

1. Open the article you'd like to share to social.
2. Navigate to the ellipsis icon on the left sidebar (aka the three dot menu, aka the [meatball menu](https://www.computerhope.com/jargon/m/meatballs-menu.htm)) and select it.
3. Select "Share to Mastodon"
4. This will open the app [toot.kytta.dev](https://codeberg.org/kytta/toot), which will populate your DEV post link and ask you to input the instance to which you'd like to share.

![The app interface, showing Post text reading "This is where your text goes. Toot!" above a link to the DEV post. In the next box, labeled "Choose your Mastodon Instance," fosstodon.org has been selected.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3pqf1kb3b6xn2jqxvjgb.png)

Select TOOT! and you're good to go! 🎉

PS — if there are Mastodon-related features you'd like to see implemented, we welcome you to [open a discussion in our public repo](https://github.com/forem/forem/discussions). Yay Open Source!

Big thanks to @jaw6 for building this feature and to @ridhwana & @fdocr for reviewing! Thanks as well to [Nikita Karamov](https://www.kytta.dev/) for creating the cross-instance share page we've utilized here.

![A gif of the cast of Saved By The Bell, putting their hands together and then lifting them and shouting "Teamwork!"](https://media.giphy.com/media/QWwEdgDbYjFbfOMJ3z/giphy.gif)