teleren/devto huggingface dataset:
When to create a GitHub organization
Tags: github, reflection, blog
Published: 2023-04-21 19:30:00

Whenever I'm starting to work on a new (side) project, I end up facing myself at creating a new GitHub organization to work on it. But why is this the case?

I've sat down and compiled a list of reasons for why creating a new org makes sense:

- You will need to create multiple repositories for different codebases
- You want to segregate development areas across multiple repositories (e.g., backend, frontend, infrastructure, business, documentation)
- You want to use the organization GitHub profile as the frontpage of your project
- Multiple people are working on the same project
- The project you're working on will eventually become a viable product, so you want to brand it
- You want to market your product as built by an entity (your organization) and not by yourself
- You want a cool little square logo in your GitHub profile (swag) 😎

(this list may be updated from time to time whenever I discover more reasons)
#DEVDiscuss: The Future of Social Media
Tags: devdiscuss, socialmedia
Published: 2023-04-21 18:57:10

---
title: #DEVDiscuss: The Future of Social Media
published: true
description: Today I want to discuss...the future of social media 🔮📱
tags: #devdiscuss #socialmedia
series: Sloan's #DEVDiscuss
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m92cbsw7ntrbn61m0ej.jpg
---

Hey Devs, happy Friday 🦥💚

As always, it's been an eventful week in the tech industry. We've got a lot to talk about! And today I want to discuss...the future of social media 🔮📱

Things are changing in the social media landscape, largely due to the [shakeup at Twitter](https://dev.to/erinposting/twitter-cuts-off-access-to-its-api-for-third-party-app-developers-21pp) over the past year or so. Here at DEV, we've been [exploring the Fediverse](https://dev.to/devteam/weve-moved-to-fosstodon-53e1) while we build our own free and open source online community platform (it's called [Forem](https://github.com/forem/), check it out!).

So let's talk about what comes next! **What do you want the future of social media to look like, and how can we build it together?**

---

_Want to submit a question for discussion, or even ask for advice? Visit [Sloan's Inbox](https://docs.google.com/forms/d/e/1FAIpQLSc6wgzJ1hh2OR4WsWlJN9WHUJ8jV4dFkRDF2TUP32urHSAsQg/viewform?usp=sf_link)! You can choose to remain anonymous._
Choosing DevOps as a career option.
Tags: devops, aws, beginners, career
Published: 2023-04-21 18:25:54

**_DevOps_** has emerged as one of the most sought-after career options in recent years. With the increasing demand for faster software delivery and automation in the IT industry, DevOps professionals are in high demand. In this blog, we will explore why choosing DevOps as a career option can be a smart choice.

### High Demand
DevOps professionals are highly sought after in the IT industry. According to a recent report, the demand for DevOps engineers has increased by 225% in the last few years. Companies of all sizes and industries are looking for skilled DevOps professionals to improve their software delivery process and reduce time-to-market.

### Attractive Salary
The high demand for DevOps professionals has also led to attractive salary packages. According to Glassdoor, the average salary for a DevOps engineer is over $100,000 per year. Moreover, experienced professionals with advanced skills can earn even more.

### Continuous Learning Opportunities
DevOps is a rapidly evolving field, with new tools and technologies emerging all the time. This means that DevOps professionals need to continuously learn and update their skills to stay relevant. This provides excellent opportunities for continuous learning and career growth.

### Exciting and Challenging Work
DevOps professionals are responsible for developing and implementing processes and tools that facilitate collaboration between development and operations teams. This requires a unique blend of technical, communication, and problem-solving skills, making DevOps work both exciting and challenging.

### Career Path
DevOps is not just a job, but a career path. DevOps professionals can progress from entry-level positions to more senior roles, such as DevOps Architect or DevOps Manager. Moreover, DevOps professionals can also choose to specialize in specific areas, such as automation or security, providing additional opportunities for career growth and development.

### In conclusion, DevOps is a highly rewarding career option for those looking for a challenging and dynamic role in the IT industry. With the high demand for skilled DevOps professionals, attractive salary packages, and opportunities for continuous learning and career growth, DevOps is a smart choice for those seeking a fulfilling and lucrative career.
Updates on my #buildinpublic effort
Tags: buildinpublic, clojure, javascript
Published: 2023-04-21 17:59:05

Hi Everyone!

I have a new update on my projects' roadmap, why I haven't published much content this week and next steps.
https://fpsd.codes/updates-on-projects.html

Question: anyone interested attending a live coding session? It would be fun to get realtime feedback and getting in touch with other devs!

All my projects are build in public (sources included, of course), but this happens post-facto, I think it would be an interesting experience to share the design/development process, while it is happening! (plus, I've never streamed before so it can become quite ridiculous...) 

Let me know what do you think.

p.s. I have tagged the post with #clojure and #javascript because these are the main languages for my current project ;)
Servicio en angular
Published: 2023-04-21 17:54:38

La creación de servicios hace parte de la lógica de negocios. en Angular un servicio de la clase service se crea de la siguiente manera: -ng generate service nombre_del_servicio-. Estos servicios son inyectables y se decoran con @injectable.
Se conectan con el controlador del componente y la estructura Nombre_del_componenteSerice, el cual se debe importar.
El servicio debe ser importado en los modulos y declarado como proveedor. "providers".

```
@Injectable({
  providedIn: 'root'
})
export class ClienteService {

  clientes:Cliente[];

  getClientes():Cliente[]{
    return this.clientes = CLIENTES;
  }

  constructor() { }
}

```
useSelector hook in Reactjs not working causing a $RefreshSig$ is not a function error
Tags: react, reacthooks, useselector
Published: 2023-04-21 17:49:25

0


I am having trouble finding the cause of this error. I have seen it before but I am unable to fix this one. The browser shows a **$RefreshSig$ is not a function**. I don't believe it has anything to do with **react** and **react-refresh** versions because I already checked that and saw this before and fixed it by moving the **useSelector** outside of a function. This case is different as I would not know where to move the useSelector. The commented code: **//const selectedValue...** is the old code and I am trying to replace it with the useSelector hook. Here is the code screenshots:

index.js:

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

GicSelectorFilter.jsx:

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

Browser error:

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

Any help is appreciated!
New Here...
Tags: beginners
Published: 2023-04-21 17:39:22

I'm a life long learner of things, this time, i'm doing it with some professional dignity attached (through a bona-fide, accredited university that is near to my heart).

I am starting a mid life career journey that hopefully ends with either a Solution Architect hat or another hat that wears similarly, depends on how the internal button mashing goes and if i actually 'get' it along the way.

Thanks for all the support, if anyone reads this or is interested in my journey at some point.

B
Who's looking for open source contributors? (week 38)
Tags: discuss, opensource, contributorswanted
Published: 2023-04-21 17:00:00

---
title: Who's looking for open source contributors? (week 38)
published: true
description: Discover which opensource projects are actively seeking contributors. Learn how you can make a meaningful contribution to the open source community and gain valuable experience. Find out who's looking for opensource contributors now.
tags: discuss, opensource, contributorswanted
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2023-04-21 17:00 +0000
---
Restarting something Ben was doing for a while, and we plan on doing this every Friday! 

Open Source is about the community. Whether you have a project or you're looking to make your first PR.  

## Tell us about your project
_Promote your project by providing a link to the repo. Everyone who posted in previous weeks is welcome back this week, as always 😄_

Open Source should be a welcoming space for contributors. The README is the front door of your project. If you'd like to check out an example of a README, here's our [OpenSauced/insights README](https://github.com/open-sauced/insights).

If you submit please have the following in your repo to make it welcoming and helpful for contributors:

1. README.md
2. CONTRIBUTING.md

Finally, consider reading the [Best Practices for Maintainers](https://opensource.guide/best-practices/).

Happy coding!
How to write a View test in Rails with RSpec
Tags: rails, ruby, testing, rspec
Published: 2023-04-21 16:49:28

I want to write a `View` test. What should I do?

### Step 1. Learn the view template

```erb
<% content_for :head do %>
  <title>Project Name</title>
  
  <link
    rel="preload"
    as="image"
    href="<%= vite_asset_url 'images/logo.jpg' %>"
  />
<% end %>

<% @blogs.each_with_index do |blog| %>
  <li><%= blog.title %></li>
<% end %>
```

Here I see

1. View variable `@blogs`
2. Rails helper `vite_asset_url`

### Step 2. How to `stub` a rails helper?

To do that I'm going to use the following way. Here in `view` I stub `vite_asset_url` and it will return a string "vite_asset_url".

```ruby
allow(view).to
  receive(:vite_asset_url).and_return("vite_asset_url")
```

### Step 3. How to `stub` a view variable?

To do that I use `assign` test helper.

```ruby
assign(:blogs, [blog1, blog2, blog2])
```

### Step 4. How a test should look?

It looks like that:

```ruby
require 'rails_helper'

RSpec.describe "site/landing/index", type: :view do
  let!(:published_blogs) do
    create_list(:blog, 3, :published, :for_blog) do |blog, index|
      blog.title =  "Blog Title #{index.next}"
      blog.save!
    end
  end

  before do
    allow(view).to
      receive(:vite_asset_url).and_return("vite_asset_url")
  end

  it "renders attributes in show page" do
    assign(:blogs,  published_blogs)

    render

    expect(rendered).to match(/Blog Title 1/)
    expect(rendered).to match(/Blog Title 2/)
    expect(rendered).to match(/Blog Title 3/)
  end
end
```

That is it!
Happy Coding!
New Beginnings
Tags: beginners, webdev, haltandcatchfire
Published: 2023-04-21 16:17:34

Hi community!

I am excited and nervous to start my coding career. 

I currently teach sociology courses at community colleges across Houston, TX. I just enrolled in a boot camp and the start date is August 14th. 

I am starting the pre-work phase and as a part of this phase, it was recommended that I immerse myself in the coding community. I have created an account here at DEV, as well as at Stack Overflow. 

I have always loved computers, video games, and technology in general, but I did not become seriously interested in coding until I watched the AMC series Halt and Catch Fire. Have any of you seen this show? It's a great show--I highly recommend it!

Any suggestions, help, advice, or words of encouragement are welcome!

Kristin
10 Reasons to invest in gold
Tags: gold, mobile
Published: 2023-04-21 16:17:08


Gold has been everyone’s favourite metal for investment because, for the past several years, Gold has been valued among the most precious metals on the earth.

Most people [invest in Gold](https://financemoneycash.com/investing/10-reasons-to-invest-in-gold/) to protect their wealth because the value of Gold never goes to zero.
Create npm api project with nest
Tags: npm, api, nestjs, webdev
Published: 2023-04-21 16:02:53

To build a new backend api that you can host in AWS Lambda or Azure app services, you can start with a blank node project.  You should just install nest -  npm -install nest

When nest is installed, call the cli and it will scaffold a project for you.

npx @nest/cli new project-name

nest will create the src folder for you, it will setup a controller, a module, a test and a service. It will also create main.js and assign port 3000 as your default.  You can access the app on port 3000 immediately.

Adding swagger

install swagger from the terminal
 npm install --save @nestjs/swagger

in main.js, import swagger
import { DocumentBuilder,SwaggerModule } from '@nestjs/swagger';

Then you setup swagger details using options and then render it to /api using app as a parameter.

const options = new DocumentBuilder()
    .setTitle('My API')
    .setDescription('My API description')
    .setVersion('1.0')
    .build();

  const document =SwaggerModule.createDocument(app,options);
  SwaggerModule.setup('api',app,document);
45 berufliches Vorwärtskommen: Mehr Raum für Dortherläufer!
Tags: deutsch, career, motivation, discuss
Published: 2023-04-21 15:41:00

Moin Moin,

Ich fordere hiermit mehr Raum für Dortherläufer. Was sind Dortherläufer? Leute, die zum Problem laufen, Leute, die zur Verantwortung laufen. Es liegt im Wesen unserer Aufgabe als Entwickler, dass wir Probleme lösen und damit eigentlich auch, dass wir Verantwortung übernehmen, sowohl eigenständig als auch im Team. 

Ich setze mich hiermit dafür ein, dass wir Software-Entwickler bessere Gegebenheiten schaffen und erhalten, in dem wir uns um Probleme kümmern und Verantwortung übernehmen. Dafür gilt unter anderem:

1. Wir benötigen regelmäßig Fortbildung in Sachen Fachkompetenz.
2. Wir benötigen eine gesteigerte [emotionale Intelligenz→](https://dev.to/amustafa16421/comment/25k2n). Dafür bieten sich auch Fortbildungen an, jedoch sollten  wir unbedingt im Umgang miteinander stark darauf achten [emotional-intelligent→](https://dev.to/amustafa16421/comment/25k2n) zu handeln. 
3. Dadurch, dass wir den zweiten Punkt berücksichtigen haben wir bereits [eine bessere Fehlerkultur→](https://dev.to/lexlohr/comment/25ka0) geschaffen, unabhängig davon, ob das Unternehmen derzeit daran interessiert ist. Zusätzlich sollte dies selbstverständlich Teil der Unternehmenskultur sein.

1) Was denkst du dazu? Meinst du, dass wenn wir diese Angelegenheit selbst in die Hand nehmen, es eine weitreichende Verbesserung geben könnte?
2) Möchtest du fortan ebenfalls mitwirken, um mehr Raum für Dortherläufer zu schaffen?

Beste Grüße,
Mustafa

Austausch mittels E-Mail: mustafa.kevin.dwenger@posteo.de
Betreff: Austausch
Speech Synthesis
Published: 2023-04-21 15:32:35

Hi Dev community,
I have a requirement to implement speech synthesis to read out text in natural language process ( not like robot talking ). I have gone through many websites and find nothing, and I also gone through Google cloud text - to -speech and Amazone polly API services but they are paid versions. I want to know is there any plugins are available freely in open source. So that I can integrate that in my vuejs project. Just let me know if that possible or not.
Thanks and regards 
your dev community member
Delet node_modules in Windows using PowerShell
Tags: powershell, windows, nodemodule
Published: 2023-04-21 15:24:56

Powershell have many great features, here I am telling how to delete node_modules in windows using powershell

as we know, in Linux/ MacOs we can delete node_modules using `rm-rf` but this lacks in windows, so create powershell script or just run the command to delete node_modules

1. navigate to the project root from powershell and run this command

```ps
Get-ChildItem -Path $ProjectRootPath -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force
```

or if you want to make a script which runs from outside of project

then save below script in your powershell profile

to check your profile location type

$Profile

it will give the full path of the profile, normally ends with **.ps1**

open that profile and paste below code

```ps
# delete node modules from a given path
function xnm {
[CmdletBinding()] param (
[Parameter(Mandatory=$true, HelpMessage="Please enter the project path where node_modules are placed", Position=0)]
[String] $ProjectRootPath
)
	if (!($ProjectRootPath | Test-Path)) { 
		Write-Error "Path is not correct. retry" -ErrorAction Stop
	}
	Read-Host -Prompt "Press any key to continue to delete node_modules or CTRL+C to quit"
	Write-Host "Deleting node_modules ..."
	Get-ChildItem -Path $ProjectRootPath -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force
}
```

now save and restart powershell ( yet to finf how to reload on same session )

now type **xnm**  and it will ask for project root path here just give path name  and it will ask to continue and when execution done. it will remove node_modules from your project path.

Hope it helps
Quick list - starting local parachain testnet
Tags: substrate, parachain, testnet
Published: 2023-04-21 15:24:51

Quick CLI reference to start local testnet with 2 relay chain nodes and 1 parachain node. Based on detailed [official tutorial](https://docs.substrate.io/tutorials/build-a-parachain/connect-a-local-parachain/)


###To start relay chain, firstly build chain spec:
```
./target/release/polkadot \ 
build-spec --chain rococo-local --raw > rococo_local_raw.json
```
in the resulting file set `"bootNodes": []` (and unique `"id": "qwerty"` - optional, only if there are other testnets in your local network)

Start Relay `Alice` node:
```
./target/release/polkadot \
--alice \
--validator \
--base-path /tmp/relay/alice \
--chain rococo_local_raw.json \
--port 30333 \
--ws-port 9944
```
Start Relay `Bob` node:
```
./target/release/polkadot \
--bob \
--validator \
--base-path /tmp/relay-bob \
--chain  rococo_local_raw.json \
--port 30334 \
--ws-port 9945
```
In case of restart, purge previous chain state:
```
rm -rf /tmp/relay/alice
rm -rf /tmp/relay-bob 
```

###To start parachain 
build spec (again, set unique "id" if needed) and wasm and genesis:
```
./target/release/parachain-collator \ 
build-spec --disable-default-bootnode > rococo-local-parachain-plain.json
./target/release/parachain-collator \
build-spec --chain rococo-local-parachain-plain.json --raw \
--disable-default-bootnode > rococo-local-parachain-2000-raw.json

./target/release/parachain-collator \
export-genesis-wasm --chain rococo-local-parachain-2000-raw.json > para-2000-wasm
./target/release/parachain-collator \
export-genesis-state --chain rococo-local-parachain-2000-raw.json > para-2000-genesis
```
register ParaId by Alice on relay chain

Start parachain
```
./target/release/parachain-collator \
--alice \
--collator \
--force-authoring \
--chain rococo-local-parachain-2000-raw.json \
--base-path /tmp/parachain/sora-parachain-alice \
--port 40333 \
--ws-port 8844 \
--log xcm=trace \
-- \
--execution wasm \
--chain .._path_to_relay_chain_spec_/rococo_local_raw.json \
--port 30344 \
--ws-port 9977
```

Submit sudo on relay chain: 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/98q4twho7sga99k5ps06.png)
`openapi-endpoint-trimmer` - JavaScript CLI Tool to Trim OpenAPI Paths / Endpoints
Tags: webdev, javascript, npm, programming
Published: 2023-04-21 15:21:35

### Overview

[openapi-endpoint-trimmer](https://github.com/aacitelli/openapi-endpoint-trimmer) is a CLI tool that takes in an OpenAPI file and “filters” it down to just the paths that you want it to include. 

*I work for [Akkio](https://akkio.com), where I'm building out a no-code predictive AI platform. If you're looking to harness the power of AI without needing a data scientist, give us a try!*

### CLI Flags

We support input specification through both file paths and URLs. We also support custom output directories.

```tsx
Usage: openapi-endpoint-trimmer [options]

OpenAPI Endpoint Trimmer.

Options:
  -i, --input <input>    Input File (Local or Absolute Path). (Required: Either this or --url).
  -u, --url <URL>        Input URL
  -o, --output <output>  Output File
  -p, --paths <path>     A comma-separated, zero-spaces list of paths to keep. (Ex. /api/v1/users,/api/v1/organizations)
  --help, -h                Display all flags, commands, and descriptions.
```

### Use Cases

The most common use case for this is to take an external API and refine it to just the endpoints you need before you do code generation with something like [openapi-zod-client](https://github.com/astahmer/openapi-zod-client). This decreases editor bloat and potentially bundle size, depending on your bundling system and dependency setup.

You can find examples in the README! A demo is bundled into the `package.json` of the repo that performs the following steps.

1. Pulls the spec for [GitHub’s REST API](https://github.com/github/rest-api-description)
2. Feeds it through the package, filtering down to just the `/search/repositories` endpoint
3. Generates types with [openapi-zod-client](https://github.com/astahmer/openapi-zod-client).

### 👋 Hey! I’m Anden.

This is ported from my Notion Wiki ([homepage](https://www.notion.so/Anden-Acitelli-Wiki-6a33c99f5cce4cab98fe94449d5a7eb2)), where I maintain a set of evergreen, content-packed pages about all the things I wish I learned earlier in life. My goal is to empower people to solve society’s biggest problems and improve people’s lives. If you like my work, check out my [Support Page](https://www.notion.so/Support-Me-096af733d3a149a9be60b6dda37ba204) for a list of ways to support me!

Professionally, I’m a Software Engineer at [Akkio](https://akkio.com) building out a no-code machine learning platform. Check out my [Portfolio Site](https://andenacitelli.com) if you’re looking to learn more about me and connect!
UIToolkit Fluent Extension
Tags: unity3d, uiux, fluent, api
Published: 2023-04-21 15:07:04

Working with Unity's new ui system is fun, but both USS and UXML can be a bit pain to work with due to how they can make our project bloats with these files. Especially when you only need simple stuff to be done for your custom editors.

Finally, decided to make my own fluent extension for it, so I can make simple stuff with just inline codes (c#). I said it for simple stuff due to it's not suitable for big projects or when you're working in a team of uiux designers. The power of UIToolkit lies in how flexible the ui system is in terms of templating and quick prototyping, not to mention how it doesn't not affected by domain reloading when working with uss/uxml. Those are sweet but pain at the same time if for example you're planning to do simple thing such as changing background colors, parenting or reorganizing the hierarchy etc. 

Imagine if you can do it like Linq syntax in c#, for example : `visualElement.BackgroundColor(Color.yellow).Top(10);` with a single method chaining we can do multiple things in one go, in this case changing the background color and anchoring, that's a win in so many simple cases when you only need simple styling to your UIs.

Another benefit is that it helps reduce boilerplate codes when using inline styles in UIToolkit, tho it can turn pretty ugly when you need other than styling with fluent api, for example : `parent.Size(100, 200).Color(Color.clear).AddChild(childElement);` that example makes the purpose of the code slightly not as clear due to parenting at the end of the method chain. 

If you're planning to give it a try, visit my git repo for this fluent extension
[UTK Fluent extension](https://github.com/breadnone/UTK-Fluent-extension-for-UIToolkit)

it comes with tons of custom controls :) feel free to give it a start otherwise, all good!

~cheers