teleren/devto huggingface dataset:
Install Git CLI
Tags: osdc, git, github
Published: 2023-02-03 19:28:04

---
series: OSDC
---
# Git CLI

CLI is the command line for Git 

## Install GitHub CLI for Windows
* [Download the Git client for Windows](https://git-scm.com)
* Install the CLI
  * In **Choose the default editor for used by git** select your editor of preference.
  * Select **Override the default branch name for new repositories** and enter **'main'**
  * In **Choose the default behavior for 'git pull'** select **Rebase** 
 
This will install a *bash* command line prompt
Download Free After Effects Templates - Full HD & 4K
Tags: video, effects, actionfootage, actionvfx
Published: 2023-02-03 19:27:17

Download Free After Effects Templates - Full HD & 4K 	The Best After Effects Templates Free & Unlimited Downloads Free After Effects Templates - Free High Quality Video Clips & Stock Video Footage at mycreativefx

Are you a filmmaker, video editor, or graphic designer looking for high-quality stock footage and visual effects to enhance your projects? Look no further than Mycreativefx, a website dedicated to providing a wide range of stock footage, VFX, and motion graphics for all your creative needs.
Mycreativefx offers a diverse collection of stock footage, including nature, urban, and industrial scenes, as well as time-lapse and slow-motion shots. Whether you're working on a commercial, film, or music video, you can easily find the perfect footage & [vfx assets free download](https://mycreativefx.com/search) to add a professional touch to your work.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z1qzuo8148cvzb0o33ge.png)
In addition to stock footage, Mycreativefx also offers a variety of visual effects, including explosions, fire, smoke, and more. These VFX elements can be used to add dramatic impact to your scenes and bring your projects to the next level.
But Mycreativefx doesn't stop at stock footage and VFX. They also offer a wide selection of motion graphics, such as title sequences, lower thirds, and transitions. These motion graphics can be used to add a polished and professional look to your videos, making them perfect for YouTube and other social media platforms.
One of the best things about Mycreativefx is that all of their stock footage, VFX, and motion graphics are high-quality, 4K resolution and come with a lifetime commercial license. This means you can use them in any project, whether it's a commercial, film, or personal project, without worrying about copyright issues.
Another great feature of Mycreativefx is that they offer a subscription plan that gives you access to their entire library at an affordable monthly or yearly rate. This is a great option for freelancers or small production companies that need a steady stream of high-quality footage and VFX.
In conclusion, if you're looking for high-quality stock footage, VFX, and motion graphics to enhance your creative projects, Mycreativefx is the perfect website for you. With a wide range of options, a lifetime commercial license, and a subscription plan, Mycreativefx is a great resource for any filmmaker, video editor,
More for info: [vfx download free](https://mycreativefx.com/search)
What do you know about Forced browsing (URL-based attack)
Tags: webdev, webdesign, websecurity, cybersecurity
Published: 2023-02-03 19:08:21

**Forced browsing** is a type of web application vulnerability that often goes unnoticed. Despite its simplicity, this vulnerability can lead to serious security threats for both individuals and organizations. In this blog post, we will delve into the details of forced browsing, how it works, and what you can do to protect your web applications. Whether you're a developer, security professional, or just someone looking to improve your online security, this article is for you.

## What is Forced Browsing ?
Forced browsing is a type of attack in which an attacker gains access to sensitive information by guessing the URL or using a commonly known URL pattern. This is made possible due to poor design of a web application or API.


## Vulnerabilities Types of Forced Browsing
There are various types of vulnerabilities in business logic that allow forced browsing to occur. These are caused by the following security weaknesses during the design or coding phase of an application:

- Believing that hiding information (in this case, a URL) behind a complex identifier is sufficient protection.
- Using common and easily guessed directory names, such as "/admin/", "/config/", or "/backup/".
- Neglecting to implement, activate, or effectively test authentication for all access to URLs or directories containing sensitive information.


## How to detect forced browsing vulnerabilities?
Forced browsing is not a specific vulnerability like SQL injection or XSS. It can result from various insecure authentication practices in an application or API.


## How to prevent forced browsing attacks?
To prevent forced browsing attacks, developers should never assume that simple solutions are good enough for application data security:

- Never assume that a publicly accessible URL is impossible to find because it’s not linked or indexed. If it exists, it can be found, so authentication is always a must.
- Never assume that once the user is authenticated, they are a valid user and don’t need any other access control. For every web page and API endpoint that is accessed, developers must ensure that authenticated users also require authorization to access data or resources. Otherwise, they risk introducing an IDOR vulnerability.

Even less experienced developers can usually avoid these basic errors by using common frameworks for web application and API development. Used correctly, these effectively enforce authentication and access control.
Fenv Module for Generate a folder, establish a virtual environment with a single command.
Tags: python, productivity, module
Published: 2023-02-03 18:51:23

# Fenv

<p align="center"><img src="https://cdn.discordapp.com/attachments/582486229594013696/1070509737529069689/New_Project_3.png" width=400></p>

Fenv is a simple and efficient tool to help you manage your virtual environments and create basic Python files with a single command. With Fenv, you can quickly generate a new project folder, establish a virtual environment within that folder, and simultaneously create the essential basic Python files all in one go. This tool is ideal for developers who frequently work on multiple Python projects and want a simple, streamlined solution for managing virtual environments.

## Features

- Generate a new project folder with a single command
- Quickly establish a virtual environment within the project folder
- Simultaneously create essential basic Python files
- Ideal for developers who work on multiple Python projects
- Add black for format python

<p align="center"><img src="https://cdn.discordapp.com/attachments/585068497495654413/1071136244437893201/gamedfdsf.gif" width=80%></p>

<p align="center"><img src="https://media.discordapp.net/attachments/585068497495654413/1071136828498915358/gamedfdsf.gif" width=80%></p>

# Installation

To install Fenv, simply run the following command:

```
pip install fenv
```

# Usage

Fenv makes it easy to get started with a new Python project by providing an all-in-one solution. Here's how to use it:

1. Create a new project folder:

```
fenv -new project_folder
```

2. Activate the virtual environment:

for windows

```
cd project_folder
source env/bin/activate
```

for linux

```
cd project_folder
source env/bin/activate
```

## Build

```
python setup.py sdist bdist_wheel
```

## Testing

```
pip install --editable .
```

## Conclusion

Fenv is a powerful tool for managing virtual environments and creating basic Python files. With its simple and efficient design, it's the perfect solution for developers who want to streamline their workflow and focus on coding. Get started today and see the difference Fenv can make in your Python development process!
Being a Developer Advocate: Week 20
Tags: devrel, learninpublic
Published: 2023-02-03 18:47:40

This week was a lot about organizing our second Hackathon (Wanna join? hackathon.askui.com).

Then I managed to get my second video tutorial out. I am very happy with how it turned out.

## Hackathon - Basically a Ton of Work!
The biggest learning I got this week is that organizing a hackathon is a ton of work. Getting to see the work that goes into seeking and talking to guest speakers. Setting up registration forms and automatic emails. Doing visuals for promotion.

And then we noticed that with our current tools our tracking is not going to work out :-( So we scrambled together a workaround.

My recommendation to measure how much a Hackathon helps our company is to host the website as a subpage of your normal website, where you already have tracking!

## Getting my Second Video Tutorial out
Also I got the chance to invest in a few seconds of special effects for my new video. Check it out here: https://www.youtube.com/watch?v=sYPZsbTKKQg

And you never stop learning:

* When I type during recording my breathing is noticable in the audio. I have to fine tune my microphone positioning
* Video postproduction is time intensive if you want some nice effects there. In my case two flying and hovering logos.
* A little bit of LoFi music makes a video more interesting
The = operator is an imposter ඞ
Tags: elixir, beginners, tutorial, programming
Published: 2023-02-03 18:41:10

I think we are all aware of the assignment operator, yeahh the old `=` symbol we all have been using everywhere in programming🤩. You all must have done something like
```js
int x = 10
```
to assign values to variables, but not today😮.

I've always picked up programming languages quite quickly until I arrived at elixir.

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

Elixir was my first encounter with functional programming too, so not only the impostor operator but the whole methodologies were quite fascinating.

Ahh so judging things here assignment operator works differently in elixir... but how?

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


##Assignment Operator
So in elixir we have this thing called pattern matching, so lets jump to pattern matching first 😅


##Pattern matching
So in layman language, pattern matching is matching the data on the right to the pattern specified on left and binding them if matches (filling variables on left) 🤗 duh.

so back to the assignment operator

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

when we use the assignment operator somewhat like

```ex
x = 10
```

the compiler checks the left side has a pattern like the right so bam💥let's bind dem 😎.

since we are pattern matching so writing

```ex
10 = x
```

ain't giving us errors either.

and ofc this also works for other data structures too like

```ex
[x,y]=[1,2]
```
but writing
```ex
[x,y]=[1,2,3]
```
is making compiler 😡🤬 coz Pattern(RHS ≠ LHS)
This wouldn't have given us any errors in languages like javascript, it would have just destructured first two values from the list and stored them to x & y.

```
PS. overwriting variables is a thing so we can reassign values but then our above snippet will raise an exception saying RHS doesn't match LHS hehe i.e ( (MatchError) no match of right hand side value)!
```

```
PPS. We can prevent reassignments and make compiler give us error if assigning new value is ≠ old but that's a topic for another day.
```


##Conclusion
So in conclusion all I have to say is that even if we know things from our past experiences. There can always be someone amogthem ඞ who has a new story to tell.


Hope this was interesting ✨

Do Like ❤️, Save 🔖 & Share 📈
O que são Classes no JavaScript e como funcionam?
Tags: javascript, beginners
Published: 2023-02-03 17:49:05

Muitas vezes em meio a linhas de códigos, precisamos encontrar um jeito de padronizar uma function que está armazenando diversos objetos. Felizmente, existe uma alternativa criada especialmente para tanto organizar, mas poder adicionar muito mais capacidade a seu código, mais que um simples objeto guardando informações ou um função cheia de parâmetros. Estou me referindo a Classes, e no artigo de hoje,

Classes são uma forma de modelar objetos de forma organizada e estruturada. Eles foram introduzidos no ECMAScript 6 e são uma das principais características da linguagem.

Nas classes, é possível criar objetos com propriedades e métodos similares e compartilhar comportamentos entre vários objetos. Ou seja, cria-se um modelo pra poder ser reutilizado com liberdade, mais a frente em seu código. Por exemplo, vejamos um código exercendo Classes,para que possa compreender:


```
// uma declaração de classe
class Livro {
constructor(nome,editora,paginas){
this.nome = nome
this.editora = editora
this.paginas = paginas
}
//anunciarTitulo é uma função:
anunciarTitulo(){
console.log(`Título:${this.nome}`)
}
descreverTitulo(){
console.log(`${this.nome} é um livro da editora ${this.editora} e tem ${this.paginas`)
}
}
//abaixo o código é instanciado, acessando os dados do construtor.
const JavaScript = new Livro("Primeiros passos com JavaScript","Sempre aprender", 58)

JavaScript.anunciarTitulo()
JavaScript.descreverTitulo()
```

Esse código cria uma classe chamada "Livro" que representa um livro. A classe tem três propriedades: "nome", "editora" e "páginas". Ela também tem duas funções membro: "anunciarTitulo" e "descreverTitulo". A função "anunciarTitulo" exibe o título do livro na tela, enquanto a função "descreverTitulo" exibe informações adicionais sobre o livro, como a editora e o número de páginas.

A seguir, um objeto da classe Livro é criado e chamado "JavaScript". A função "anunciarTitulo" e "descreverTitulo" são então chamadas para o objeto "JavaScript", o que exibirá o título do livro e informações adicionais sobre ele.

Uma coisa muito legal é que podemos colocar nas Classes as chamadas Heranças. É quando podemos usar métodos e propriedades de outra classe. Por exemplo:


```
class Colecoes extends Livro {
constructor(nome, nomeColecao){
super(nome) // no super, podemos chamar todos os parametros que desejamos pegar de Livro

this.nomeColecao = nomeColecao
}

descreverColecao(){
console.log(`O livro ${this.nome} faz parte da colecao ${nomeColecao})
}
}
```


Com isso vimos como as classes servem como um modelo ou template para objetos futuros, e todos os objetos criados a partir da classe terão as mesmas propriedades e métodos. 
Eles querem permitir que você defina objetos com propriedades e métodos comuns, o que é útil quando você precisa trabalhar com vários objetos que compartilham uma estrutura semelhante.

Obrigado por ler!!!
Code Styling should be enforced by default
Published: 2023-02-03 18:14:27

Having standards, even suboptimal ones, is usually better than not having any standard.

Languages, compilers, IDEs, templates, and so on should all enforce consistent standards by default.

The Rust language has rustfmt and clippy. Javascript has eslint and prettier.

I'm a C# guy, so that is what I care about. For .NET we do have [StyleCop analyzers](https://github.com/DotNetAnalyzers/StyleCopAnalyzers). And EditorConfig exists to help at the IDE level across all languages. And git itself can be configured with such things as eol and autoclrf.

But StyleCop is not on by default, and not enforced by default. A default EditorConfig configuration is not automatically applied by default when generating project templates, either via Visual Studio or "dotnet new".

Someone already went through the trouble of producing a [editorconfig dotfile](https://github.com/RehanSaeed/EditorConfig) that conforms to the StyleCop rules, and yet it isn't even suggested to be applied by any important C# tool. Which is a glaring oversight as bad as when default gitignore files were not suggested by default, leading to countless repos cluttered with bin and obj folders.

The concept of [Semantic Diff](https://semanticdiff.com/)s may finally be starting to take off, and that will eventually go a long way to improve things when it comes to diffs.

But messy diffs are not the only reason to want code to be consistent. It is also crucial for readability, and even for ensuring that the program logic is explicit. If it is mandatory to qualify instance members, as StyleCop's rules recommend, that helps make things explicit. Yet, the de facto community conventions in C# are the opposite of the guidelines.

Future versions of Visual Studio, OmniSharp, Roslyn, and the dotnet CLI should be taking this to heart going forward, and begin to enforce all of this by default for new projects.

But the best thing you can do is to keep your own home tidy, by ensuring that you turn on StyleCop analyzers, enforce them in your pipeline, and include a strict editorconfig dotfile.
.NET Monthly Roundup - January 2023
Tags: dotnet, blazor, visualstudio, aspnetcore
Published: 2023-02-03 18:11:00

{% embed https://www.youtube.com/watch?v=28GAWTurw8M %}

Wow, lots of great new updates for January! Get up to date with this 3 minute quick summary of some of the top highlights.

### Top links
📚[All the links](http://aka.ms/dnmr-2301)

### MAUI News
➡️ [5 .NET MAUI Features for Building Great Desktop Apps](https://devblogs.microsoft.com/dotnet/5-dotnet-maui-desktop-features/) 
➡️ [Play Audio and Video in .NET MAUI apps with the new MediaElement](https://devblogs.microsoft.com/dotnet/announcing-dotnet-maui-communitytoolkit-mediaelement/) 
➡️ [Build .NET MAUI Apps Faster with App Accelerator](https://www.youtube.com/watch?v=JrT-iIk3fwU) 
➡️ [Using Command Binding in Windows Forms apps to go Cross-Platform](https://devblogs.microsoft.com/dotnet/winforms-cross-platform-dotnet-maui-command-binding/) 

### Releases
➡️ [Release 2.0.0-RC.1 · microsoft/reverse-proxy · GitHub](https://github.com/microsoft/reverse-proxy/releases/tag/v2.0.0-rc.1)
➡️ [Visual Studio 2022 17.5 Preview 3 is here!](https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-5-preview-3-is-here/)

### Videos and Live Streams
➡️ [ASP.NET Community Standup - TodoApi Sample](https://www.youtube.com/watch?v=moJjFXVO9Mw) 
➡️ [Blazor Community Standup - Blazor New and Experimental Features](https://www.youtube.com/watch?v=fQ1Bg-u_YLw) [Blazor United prototype](https://www.youtube.com/watch?v=48G_CEGXZZM) 
➡️ [Languages & Runtime Community Standup - C# Internals](https://www.youtube.com/watch?v=jaPk6Nt33KM)

### Community News
➡️ [James Newton-King ♔ on Twitter: "Coming in .NET 8: Route tooling for ASP.NET Core" / Twitter](https://twitter.com/JamesNK/status/1617510456163471369)
➡️ [Announcing .NET Community Toolkit 8.1](https://devblogs.microsoft.com/dotnet/announcing-the-dotnet-community-toolkit-810/) 
➡️ [Uno Platform 4.7 – New Project Template, Performance Improvements and more](https://platform.uno/blog/uno-platform-4-7-new-project-template-performance-improvements-and-more/) 
➡️ [C# Advent 2022 Awards | Cross Cutting Concerns](https://crosscuttingconcerns.com/C-Advent-2022-Awards) 
➡️ [GitHub - QuestPDF](https://github.com/QuestPDF/QuestPDF)
➡️ [DNF Summit 2023](https://www.dnfsummit.org/) 
➡️ [.NET Frontend Day](https://www.dotnet-frontend.com/)

### What did you think?

With so much new information coming at you each month, we're looking at ways to bring you the highlights. Let us know if this helps, and how we can do it better next month!

Jon
How To Avoid Spending Too Much Time on Social Apps
Tags: chrome
Published: 2023-03-21 18:36:01

---
title: How To Avoid Spending Too Much Time on Social Apps
published: true
date: 2023-02-03 18:10:00 UTC
tags: Chrome
canonical_url: https://greenido.wordpress.com/2023/02/03/how-to-avoid-spending-too-much-time-on-social-apps/
---

[![](https://greenido.files.wordpress.com/2023/01/screenshot-2023-01-31-at-6.41.10-am.png?w=901)](https://greenido.files.wordpress.com/2023/01/screenshot-2023-01-31-at-6.41.10-am.png)

We all know how easy it is to get sucked into social media apps like TikTok, Twitter, Facebook, Instagram, and YouTube. It’s easy to lose track of time by scrolling through your newsfeed and watching videos. 

But spending too much time on these apps can harm your mental health and productivity. 

[Studies](https://www.frontiersin.org/articles/10.3389/fpsyg.2021.678766/full) have shown that too much time spent on social media can lead to feelings of depression, anxiety, and low self-esteem. It can also lead to feelings of loneliness and isolation.

The constant comparison to others on social media can lead to feelings of inadequacy and can even lead to cyberbullying. It can also be difficult to disconnect from social media and its constant stream of information, leading to an unhealthy obsession with staying connected.

Therefore, limiting our time on social media and taking breaks from it when needed is essential.   
Taking regular breaks from social media can help us to reset and refocus our attention on other activities.

Here are some tips to help you avoid spending too much time on social media:

1. **Uninstall Apps**
  1. Uninstalling the apps from your phone can help you avoid the temptation of checking them throughout the day. You can always log in from your computer if you need to access them.
  2. A less drastic approach is to move these apps to a folder that is ‘far’ on the phone’s screens, so you need to do a few actions to get to them.
2. **Set a Timer**
  1. Set a timer for yourself to limit the amount of time you spend on social media. Once the timer goes off, it’s time to log off and move on to something else.
  2. Using your phone functionality to limit the app’s daily usage is better. Try it, and you will be amazed at how quickly you reach these limits.
3. **Block Notifications**
  1. Turn off notifications for social media apps so that you don’t get distracted by them. 
  2. This will help you focus on the task and avoid the urge to check your phone.
  3. A less drastic way is to move all these notifications to the ‘summary’ of the reports.
4. **Your Hobby** – Prioritize the hobby or activity you enjoy and focus on that first. Only after spending your hour (or more) on this do you ‘allow’ yourself to open the social media world.

Social media can be a great way to stay connected and informed, but it’s important to remember to take breaks from it.   
Taking regular breaks from social media can help us to reset and refocus our attention on other activities (e.g., sports, art, and anything else that puts a smile on our faces). 

Good luck!