teleren/devto huggingface dataset:
Introducing PassMeRust: Advanced Password Strength Calculator in Rust
Tags: rust, password, entropy, security
Published: 2023-09-08 15:18:17

I started 2023 with a personal goal of learning Rust — not with a simple HelloWorld or TODO app, but with a challenge to solve a real problem.

🔐 Introducing PassMeRust — a Rust-based CLI tool for gauging password strength.

🎉 New Release Alert 🚀: v0.2.0-alpha https://github.com/dewan-ahmed/PassMeRust/releases/tag/v0.2.0-alpha

**Highlights:**

🎯 Entropy-Driven: Goes beyond length, factors in character diversity.

🎯 Smart Checks: Scans against known weak passwords and dictionaries.

🎯 Space Character Friendly: Ideal for passphrases (e.g., "correct horse battery staple").


I'd be thrilled if you could [test it out](https://github.com/dewan-ahmed/PassMeRust). Looking forward to evolving this from a learning project into a reliable Rust tool for the developer community.

- Dewan
DILI #13: Logging off Holiday. Logging in Back to work.
Tags: beginners, programming, help
Published: 2023-09-08 15:14:18

As you can see, last week, I did not post anything and yes, based on the title of this blog, I was on holiday. But it is justifiable, because it's my country's Independence Day. But less on that and more on today's topic: Authentication, aka Login and Logout.


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

The library I'm going to use to help me with this is fstream, which can create files, write information to files, and read information from files. With this, I can create a login system which create a file that stores the registration. Then, the login system will check if the username and password entered by the user match the usernames and passwords in the file. If they do, the user will be logged in. Otherwise, the user will be prompted to enter their username and password again.

This code will create the file and open it to store the infomations and I can even designated the location and the name of the file:

```c++
ofstream file;
file.open("d:\\CODES AND STUFFS\\SnakeGame\\" + username + ".txt");
```
And to store user's inputs into the file, it's similar to cin but with "file" keyword:

```c++
file << username << endl << password;
file.close();
```
After, it just a matter of matching the file's data with user's login's input: 

```c++
bool Login()
{
    string username, password, checkUN, checkPW;
    cout << "Enter username: "; cin >> username;
    cout << "Enter password: "; cin >> password;

    ifstream read("d:\\CODES AND STUFFS\\SnakeGame\\"  + username + ".txt");
    getline(read, checkUN);
    getline(read, checkPW);

    if(checkUN == username && checkPW == password){
        return true;
    }
    else return false;

}
```

With this a simple authentication system is created. And the only left to do is add this to your desired project. Mine is my first game: Snakes. Check my [GitHub](https://github.com/DHDucky/Snake-Game-Login-System). 

With this, more can be done like a note-taking app that can save your data and can only be accessed by you given correct authentication. I might post a blog about this by the middle of next week as a replacement for the missed last week's blog. 

As always, all advices about anything are welcome. See you in about 3-4 days!

**REFERENCES:**
[GeeksforGeeks](https://www.geeksforgeeks.org/std-fstream-close-in-cpp/)
[Help with visualizing](https://www.youtube.com/watch?v=yo3ImzEwP50)
Nim experiences so far(?)..
Tags: nim, python, beginners, programming
Published: 2023-09-08 15:12:52

I am developper in Nim (and Python). Am new this forum and checking it out. I see traffic on the Nim-subject could be better..
I develop offline browser-apps with Nim (thru jester). How are peoples experiences with Nim?

I like the language a lot, but the Nim-forum is mostly technology-focused.

Maybe here a more experiential and social discussion can be had, with questions like: 
- how and why do you like the language?
- do you have ideas for libs or apps that you want to cooperate on?
- what roles in the Nim-community are important in your eyes?

I invite people to comment on these questions or other associations, but in a constructive way..
Hello from Bun!
Tags: bunjs, astro, typescript, webdev
Published: 2023-09-08 15:11:46

Bun 1.0 less than an hour ago (at the time of publishing), and to celebrate this, I've migrated my blog's build process to Bun! This details how I now publish my static Astro blog to Cloudflare Pages using Bun.

## First, a warning...

Before attempting this yourself, be warned that I used some hacky workarounds to bypass some existing issues with Cloudflare Pages, and Bun. I don't recommend this for important deployments yet.

## Build an Astro site with Bun

Bun 1.0 supports Astro out the box. To start using it, make sure you have Bun installed and updated. Delete your existing package lockfile (`package-lock.json`, `pnpm-lock.yml`, `yarn.lock`) and use Bun to install dependencies.

```sh
bun install
```

### Workaround for the `sharp` package

For those using `sharp`, it currently has an issue when installed with Bun, but there are two workarounds you can try.

1. Set `sharp` as a trusted dependency in your `package.json`.
```ts
"trustedDependencies": [
  "sharp"
],
```

2. If the first workaround failed, prefix your `build` command with the following to install `sharp` manually.
```sh
cd node_modules/sharp && bun install && cd ../../ && YOUR_BUILD_COMMAND
```

Run `bun run build` to test your site builds successfully.

## Deploy to Cloudflare Pages

Cloudflare Pages has experimental support for Bun. I found [a gist](https://gist.github.com/Hebilicious/88e5a444f42b8dc09fb86dfa865c6ed3) from a user in the Cloudflare Developers Discord which documents what you need to do to enable it.

In your Cloudflare dashboard, navigate to your project and add these two environment variables.

```sh
SKIP_DEPENDENCY_INSTALL=true
UNSTABLE_PRE_BUILD=asdf plugin add bun && asdf install bun latest && asdf global bun latest && bun i
```

## Commit and deploy!

If everything works locally, and your Cloudflare environment variables are set, you're ready to deploy your site! My blog is still relatively small, and takes under a minute to build. However, now than Bun 1.0 is out, I'll be looking at other repos to use as benchmarks, and test how far I can push Bun. If you want to stay up to date with all my planned Bun & Astro content, and all my other shenanigans, be sure to subscribe to my email list (or the RSS feed) and follow me on [Twitter](https://twitter.com/theotterlord).
Powerful, yet simple Carousels in Doodle
Tags: webdev, javascript, kotlin, showdev
Published: 2023-09-08 14:51:40

You can build almost any experience you can imagine using the new [Carousels](https://nacular.github.io/doodle/docs/ui_components/overview#carousel) in **Doodle [0.9.3](https://github.com/nacular/doodle/releases/tag/v0.9.3)**. That's because their API is unrestricted and not opinionated about what a Carousel should look like. There are several built-in examples of various `Presenters`; but so much more is possible.

Here's how you might show a list of `Image`s using the `LinearPresenter`, which shows all images in a line with the selected item positioned/sized based on the given constraints.

```kotlin
val carousel = Carousel(
    SimpleListModel(listOf(image1, image2, image3)),
    itemVisualizer { item, previous, _ ->
        when (previous) {
            is DynamicImage -> previous.also { it.update(item) }
            else            -> DynamicImage(item)
        }
    }
).apply {
    wrapAtEnds    = true
    acceptsThemes = false
    behavior      = object: CarouselBehavior<Image> {
  
      override val presenter = LinearPresenter<Image>(spacing = 10.0) {
          val aspectRatio = it.width.readOnly / it.height.readOnly

          it.width  eq parent.width
          it.center eq parent.center
          it.height eq it.width / aspectRatio
      }

      override val transitioner = dampedTransitioner<Image>(timer, animationScheduler) { _,_,_, update ->
          animate(0f to 1f, using = tweenFloat(easeInOutCubic, duration = 1 * seconds)) {
                update(it)
          }
      }
    }
}
```

[**Doodle**](https://github.com/nacular/doodle) is a pure Kotlin UI framework for the Web (and Desktop), that lets you create rich applications without relying on Javascript, HTML or CSS. Check out the [documentation](https://nacular.github.io/doodle) and [tutorials](https://nacular.github.io/doodle-tutorials) to learn more.
#javascript #react #reactnative #help #typescript #android #ios
Published: 2023-09-08 14:50:44

Hi Guys , Iam a beginner in React Native and currntly working in react native functional component for internal  pdf viewer with works with content uri which we receive when we try to access the pdf in external storage with react native document picker i need to convert this conetnt uri into workable proper file uri since react native pdf component dont accespts contnet uri so could you guys please help me out with this
The best signage company in Melbourne
Published: 2023-09-08 14:31:09

Advanced Sign Makers is one of the leading and [best signage companies in Melbourne](https://advancedsignmakers.com.au/) today. With years of experience and a team of experts, they can provide you with quality signage that meets all your needs. Whether you require indoor or outdoor signs, or even signage for special events, they have the knowledge and expertise to ensure your project is successfully completed. Their experienced technicians work hard to provide the highest quality materials and designs, while their customer service team takes extra steps to ensure your satisfaction. They offer a variety of services from simple sign installation to highly custom designs, so whatever your signage needs may be, Advanced Sign Makers can help.
Who's looking for open source contributors? (week 58)
Tags: discuss, opensource, contributorswanted, 100daysofoss
Published: 2023-09-08 14:30:32

---
title: Who's looking for open source contributors? (week 58)
series: Looking for Contributors
published: true
description: Discover which open source 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 open source contributors now.
tags: discuss, opensource, contributorswanted, 100DaysOfOSS

# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---
Open Source thrives through shared efforts. Whether you're a newcomer or a veteran, we're here to encourage your contributions, motivate your endeavors, and provide valuable assistance to maintainers. Together, we are building amazing things! 

## 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

Feel free to drop your issues and repos in the [OpenSauced Discord](https://discord.gg/opensauced) #:eyes:-looking-for-contributors channel at any time! 

Also, let us know if you'll be participating in Hacktoberfest.

If you're new to open source, and you're not sure where to start, check out our [Intro to Open Source course](https://github.com/open-sauced/intro). 

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

Just a note to say, we've restarted this post from something Ben was doing for a while :star-struck: 

Happy contributing!
Como resolver corretamente cache node_modules em discos externos
Tags: node, javascript
Published: 2023-09-08 14:07:35

---
title: Como resolver corretamente cache node_modules em discos externos
published: true
description: resolvendo problema de cache do node_modules com discos externos 
tags: node, javascript
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-09-08 14:05 +0000
---

## Problema

Recentemente adquiri um `ssd externo`para armazenar alguns vídeos que eu estou produzindo e também deixar os projetos que estou trabalhando nesse Volume externo.

Primeiro passo foi mover tudo **sem a `node_modules`** com o comando do unix `mv` e após concluído criei um link simbólico para o meu novo workspace.

Ao instalar as dependências em projetos node, percebi que as dependências estavam ocupando `GB` de armazenamento e isso me gerou um questionamento, logo percebi que isso ocorria por não compartilhar o cache com o disco que fica no meu computador onde se encontra o `node`e `npm` instalados.

## Solução

A resolução foi aparentemente simples, com o comando `npm config ls -l` listei todas as configurações default do node, e descobri onde o `cache` fica localizado e com isso o `npm/yarn` conseguirá compartilhar as dependências que já foram instaladas previamente. 

Com isso basta instalar as dependências do projeto com o comando `yarn install --cache /Users/iagocavalcante/.npm` ou `npm i --cache /Users/iagocavalcante/.npm`.

## Extra

Enfrentei problemas com `node-sass` e `node-gyp` no M1 e a versão atual do xcode pra compilar as coisas e com isso descobri que para rodar e buildar essas dependências era necessário executar o install da seguinte forma `CXXFLAGS="--std=c++17" yarn install --cache /Users/iagocavalcante/.npm`

## Conclusão

Com isso resolvi documentar as resoluções para esses problemas, caso mais pessoas precisem resolver esse problema.

Obrigado a todos <3.
Laravel 10 Multiple File Upload Validation Tutorial
Published: 2023-09-08 14:04:34

Before uploading multiple files in laravel 10, you can validate files or file types using file validator in the laravel 10 application.

## Laravel 10 Multiple File Upload Validation Tutorial

To upload multiple files with validation in Laravel 10, you can follow these steps:

- Set up a new Laravel application.
- Set up a database with the Laravel app.
- Build a model and migration.
- Add routes.
- Create a multi upload controller using the Artisan command.
- Create a blade view.
- Run Development server.

Read More [Laravel 10 Multiple File Upload Validation Tutorial](https://www.tutsmake.com/laravel-10-multiple-file-upload-example)
pyaction 4.23.0 Released
Tags: github, docker, python, showdev
Published: 2023-09-08 13:59:21

## TL;DR

I just released [pyaction](https://github.com/cicirello/pyaction) 4.23.0, a [Docker container with Python, git, and the GitHub CLI](https://dev.to/cicirello/pyaction-a-docker-container-with-python-git-and-the-github-cli-930). You can pull pyaction from either the [GitHub Container Registry](https://github.com/cicirello/pyaction/pkgs/container/pyaction) or from [Docker Hub](https://hub.docker.com/r/cicirello/pyaction).


## Changelog 4.23.0 - 2023-09-07

### Changed
* Bumped GitHub CLI to 2.34.0.


## Current Version List

This latest release of pyaction includes:
* Python 3.11.5
* [GitHub CLI 2.34.0](https://github.com/cli/cli/releases/tag/v2.34.0)
* git 2.39.2
* curl 7.88.1
* gpg 2.2.40



## More Information

Please consider starring pyaction's GitHub repository:

{% github cicirello/pyaction %}

For more information, see my earlier post about pyaction here on DEV, as well as its webpage. 

{% link https://dev.to/cicirello/pyaction-a-docker-container-with-python-git-and-the-github-cli-930 %}

{% embed https://actions.cicirello.org/pyaction/ %}



## Where You Can Find Me

Follow me [here on DEV](https://dev.to/cicirello) and on [GitHub](https://github.com/cicirello):

{% user cicirello %}

Or visit my website:

{% embed https://www.cicirello.org/ %}
Laravel 10 Ajax File Upload Example Tutorial
Published: 2023-09-08 13:55:17

In this tutorial, I will teach you how to upload or handle file upload in Laravel 10 using Ajax.

## Laravel 10 Ajax File Upload Example Tutorial

To upload a file using AJAX in Laravel 10, you can follow these steps:

- Set up a new Laravel project.
- Install the required dependencies.
- Create a form for file upload.
- Create a controller for file upload.
- Add routes for file upload.
- Handle file upload with Ajax.
- Run Development Server

Read More [File Upload using Ajax In Laravel 10](https://www.tutsmake.com/file-upload-using-ajax-in-laravel-10)
Review: MSI Bravo 15 C7VF
Tags: msi, laptop, review, hardware
Published: 2023-09-08 13:32:54

I recently had the opportunity to test out the MSI Bravo C7VF and wanted to share my experience with this laptop. As someone who has a complex relationship with it, I believe it is important to discuss both the positives and negatives. 

Let's start with Windows 11. The Bravo C7VF comes with strict driver support for Windows 11, which is a positive aspect. However, it was a bit of a shock for me, as I feel like I may have missed the train on Windows 10 becoming the trusted operating system of this generation. Nevertheless, Windows 11 has its own merits, but my initial encounter with it was less than ideal. I had previously used it on a MSI Stealth series laptop, which had issues recognizing my Nvidia GTX 1600 drivers. This was frustrating, especially when each new update seemed to mess with my video card. Thankfully, with the Bravo C7VF, I haven't encountered any issues with the video card drivers so far. 

Instead, my next hurdle came with the audio drivers. One day, the audio suddenly stopped working through the speakers, although the headphones continued to function normally. I initially suspected a driver issue, but it turned out to be a hardware problem with the speakers themselves. Even Ubuntu and Pop OS were unable to resolve the issue. However, I managed to fix the audio problem, along with several others I encountered on Linux, by updating the BIOS. 

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

Speaking of which, as of September 8, 2023, the latest BIOS driver was released just a few days ago, addressing various bugs that were causing instability. This is where my experience with Ubuntu comes into play.

Ubuntu proved to be a challenging experience for me. The first issue I encountered was with the keyboard, which was not recognized in Ubuntu 22. After conducting extensive research, I discovered that the problem stemmed from the kernel, as my device was being recognized as a tablet, resulting in the complete disabling of the keyboard. While using an external keyboard could have been a temporary solution, it was not ideal for me, considering the laptop's 15-inch screen. Thankfully, I found a workaround by using an OEM kernel, specifically Kernel v5.17, which made the computer finally usable in Ubuntu. I followed this guide to upgrade the Linux kernel in Ubuntu: [Upgrade Linux Kernel in Ubuntu](https://itsfoss.com/upgrade-linux-kernel-ubuntu/)

At this point, the Bravo C7VF is performing much better than its initial state. The drivers are receiving frequent updates, almost on a weekly basis. If you decide to go for this model, I highly recommend using the latest drivers from the official website, as the drivers that come pre-installed on the laptop's separate partition are essentially outdated.

I hope you found my experience and insights useful. Whether you're considering the MSI Bravo C7VF or simply interested in the challenges of using Windows 11 and Ubuntu, I hope this review has provided some valuable information. Have a great day!
How to test web applications on different devices
Tags: webdev, javascript, beginners, programming
Published: 2023-09-08 13:19:04

Testing web applications across devices is an important aspect of quality assurance and determining product compatibility. In this article, we will look at the main approaches and tools that will help you test web applications on various devices and platforms in [web app development company](https://www.sparkouttech.com/web-application-development/).

**Identify target devices and platforms**

The first step in testing web applications on different devices is to define a list of target devices and platforms. This may include:

Various types of devices (smartphones, tablets, desktop computers)

Operating systems (iOS, Android, Windows, macOS)

Browsers (Chrome, Firefox, Safari, Edge)

📝 Make a list of all the devices and platforms that need to be supported by your [web application development company](https://www.sparkouttech.com/web-application-development/) and make sure you have accounted for all the important combinations.

Test engineer: new job in 9 months

It will work even if you have no experience in IT

Get the program

**Manual testing on real devices**

One of the most reliable ways to test web applications on different devices is manual testing on real hardware. To do this, you will need a set of devices that match your list of target platforms. Benefits of manual testing on real devices include:

Accurate reproduction of real conditions of use

Ability to check device hardware features (e.g. touchscreen, gyroscope)

Ability to test application performance on real hardware

👩‍💻 Manual testing can be time-consuming and expensive, but it provides the most accurate results.

**Device and web browser emulation**

Device and web browser emulation allows you to test web applications on different devices and platforms without owning physical hardware. There are many tools and services that provide emulation capabilities, for example:

Built-in browser developer tools (like Chrome DevTools Device Mode)

Cloud testing services (for example, BrowserStack, Sauce Labs)

Local emulators (for example, Android Studio, iOS Simulator)

💡 Device and browser emulation is a faster and more cost-effective way to test, but may not reproduce all the hardware features of real devices.

**Automated testing**

Automated testing allows you to automate the process of testing web applications across devices and platforms. For this, special tools and frameworks are used, such as:

Selenium WebDriver

Appius

TestCafe

🚀 Automated testing can significantly speed up the process and provide higher reliability of results, but it requires significant costs to develop and maintain test cases.

**Conclusion**
By testing web applications on different devices and platforms, you ensure a high quality product and user satisfaction. Use the presented approaches and tools to effectively test your web application on different devices.