teleren/devto huggingface dataset:
MiniScript v1.6.1
Tags: miniscript, minimicro, programming, beginners
Published: 2023-07-01 18:12:41

I'm pleased to announce the release of version 1.6.1 of [MiniScript](https://miniscript.org), the clean, modern scripting language used in [Mini Micro](https://miniscript.org/MiniMicro) and many other games and apps.  In addition to the core language, we're also bumping [command-line MiniScript](https://miniscript.org/cmdline/) to version 1.2.1, with fresh builds now available for Windows, Mac, and Linux.

MiniScript version 1.6 (and [command-line MiniScript 1.2](https://dev.to/joestrout/whats-new-in-command-line-miniscript-v12-4ce9)) came out in February of this year.  Today's release is a bug-fix update that corrects five defects in the C++ version of the code, two of which also affect the C# version.  The most serious of these was a logic error that caused the command-line [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) to execute the body of a `for` loop or `if` block as soon as it was entered, rather than waiting for the block to be closed.  This would  cause the `then` clause to execute even if the `if` condition was false!

Other fixes handle edge cases in map comparisons and single-line `if` statements, and improve output in a couple of cases.  See the [Release Notes](https://miniscript.org/files/MiniScript-Release-Notes.txt) for the details.

Concurrent with this update, we have also set up a [MiniScript nuget package](https://www.nuget.org/packages/org.miniscript.MiniScript).  This will make it much easier for C# developers to automatically include the latest version of MiniScript in their projects.  Special thanks to community member [TSR Berry](https://github.com/TSRBerry), who did most of the work of setting this up and has been a tireless contributor to the [Farmtronics](https://github.com/JoeStrout/Farmtronics) project, as well as MiniScript in general.

This is a recommended update for all users — if you're embedding the C# or C++ version of MiniScript in your own project, please be sure to grab the latest!  And if you're using command-line MiniScript, I highly recommend [downloading](https://miniscript.org/cmdline/) the latest version of that.

And what if you're a [Mini Micro](https://miniscript.org/MiniMicro) user?  ...In that case, tune in for more news tomorrow. 😁
string_view library
Tags: cpp, programming, tutorial
Published: 2023-07-01 17:40:51

I have this project that includes <string_view>.  When I go to compile the project I get "[Error] string_view: No such file or directory" from the compiler. Sounds like a compiler issue but I have no idea what to do to fix it! Anyone know how to  fix this problem? 
syd / wt1v
PostgreSQL Basics: How to load PostgreSQL database
Tags: postgres, beginners, tutorial
Published: 2023-07-01 17:14:16

In this blog we will be learning how to load any PostgreSQL database
into PostgreSQL database server.

We will be keeping our blogs short and easy to read for making them simple. Hence, we will be targeting one thing at a time in our blog series.

I am assuming, you have PostgreSQL installed on your system.

First, we will launch our psql tool, using following command

```
>psql
```

After that, Enter required credentials.

```
Server [localhost]:
Database [postgres]:
Port [5432]:
Username [postgres]:
Password for user postgres:
```

then create data base using following statement

```
postgres=# CREATE DATABASE database_name;
CREATE DATABASE
```

then exit psql tool by typing `exit`.

then, navigate to bin folder of your Postgres installation.

after that write following command to load your data into the data you created(assuming we created database named database_name).

```
pg_restore -U postgres -d database_name C:\sampledb\database_file.tar
```

here `-U postgres` identifies postgres user, it would be different if you are using different user.

now, enter password for your user.

```
Password:
```

Hurray!!!
We are done!!
Hosting Games with Express.js and Socket.io
Tags: socketio, gamedev, javascript, express
Published: 2023-07-01 17:10:59

I've recently created a template where you can host games in `Express.js` with the help of `Socket.io`.

{% embed https://github.com/VulcanWM/host-game-expressjs %}

---

These are all the pages the template has:
- `/`: has a link to the join game page and the host game page
- `/host`: generates a game id and creates a game in which others can play the game. The host can decide when to start the game and this triggers a change in Socket.io which changes. the content on the player's screens
- `/join` contains a form in which you have to enter your game id
- `/join` (`POST`): redirects you to `/join/[game_id]`
- `/join/[game_id]`: renders a page where you enter your nickname for the game
- `/join/[game_id` (`POST`): the user's game id and nickname gets saved to the session and then they get redirected to `/play`
- `/play`: the play screen is rendered, and the screen is updated whenever a new socket event is triggered

---

Make sure to check it out, and if you have any suggestions, do let me know by commenting below!
Laravel developer
Tags: laravel, eloquent
Published: 2023-07-01 17:09:48

i am facing this error when I insert record in Laravel here is my problem i have try many solution but no one work please help me "Illuminate\Database\Grammar::parameterize(): Argument #1 ($values) must be of type array, string given, called in F:\loyaloid-main\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\Grammar.php on line 1047" here is  my code "   // $password = Str::random(8);

    // $hashedPassword = Hash::make($password);

    $user=new User;

    $user->username = $this->_request->username;

    $user->email =$this->_request->email;

    // $user->password=$hashedPassword;



        $user->save();"
How to Add a Data Disk to a Virtual Machine and Initialize it for use
Published: 2023-07-01 17:09:14

The blog shows how to create a data disk and add it to the Virtual Machine.	
a. Create a VM with the following project details below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ezui5gqvsusayvtcvuvm.png)
b.	When development is complete, click go to resource.

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

c.	Click Disks under Settings, you will see only OS disk, no data disk, click on “plus sign create and attach a new disk” to create data disk.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8pefp7hl1fiaixv7ueg5.png)
d.	Enter disk name, choose standard SSD and size you want, click save.

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

e. You remotely connect to the Virtual Machine Project6VM to initialize the disk and make it usable, by inputting the Virtual Machine public IP and click connect, the desktop window appears after login.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/51zpm0ofi1cg3r1ovrd1.png)
f.	Go to disk management of the newly open VM by right clicking this PC and select manage.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k7376mrme9hd4ut6803m.png)
g.	The new disk will be auto initialized as Disk2, but unallocated.

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

h.	Format the disk2 by creating a new volume, to make it useable.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l678byc2gn042hecvcmr.png)
i.	The capture below show the data disk is now ready for use.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p1gggmz6cps9dlfh9j5l.png)
Django Dynamic Services #VIDEO
Tags: django, dynamic, appseed, opensource
Published: 2023-07-01 17:06:05

---
title: Django Dynamic Services #VIDEO
published: true
description: Learn how to generate services like API and DataTables in Django without manual coding - Sources saved on GitHub.
tags: django, dynamic, appseed, opensource
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkc08dmy7t59r5z7wl0y.png
canonical_url: https://blog.appseed.us/django-dynamic-services-video/
---
Hello! The video mentioned in this article presents the latest features added to [Django Datta Able](https://appseed.us/product/datta-able/django/), a popular open-source starter actively supported by `AppSeed`. The latest version integrates the **API Generator** and **Dynamic DataTables**, two libraries that help to process the information in any model of your app without coding:

- 👉 [Django Datta Able](https://github.com/app-generator/django-datta-able?ref=blog.appseed.us) - Source Code (MIT License)
- 🚀 Free [Support](https://appseed.us/support/) (email & Discord) for registered users

---

The information saved in the "[Products](https://github.com/app-generator/django-datta-able/blob/master/home/models.py?ref=blog.appseed.us)" model is managed via the API and the generated data table without coding.

{% embed https://www.youtube.com/watch?v=2Eflt3h7bDM %}

--- 

> For more resources, feel free to access:  

- 👉 [Admin Dashboards](https://www.admin-dashboards.com/) - a huge index with templates and apps
- 🚀 [Custom Development Services](https://appseed.us/custom-development/?ref=admin-dashboards.com) - provided by AppSeed
Predictive Analytics with Ensemble Learning
Published: 2023-07-01 16:35:14

- Predictive analytics is a type of data analysis that uses statistical, machine learning, and analytical methods to predict future outcomes.
- Ensemble learning is a machine learning technique that combines multiple models to create a more accurate prediction than any single model could achieve on its own.
- There are many different ensemble learning methods, but some of the most common include:
  - Bagging: This method creates multiple models by training each model on a different bootstrap sample of the training data.
  - Boosting: This method creates multiple models by training each model on the same training data, but weighting the data points differently in each iteration.
  - Stacking: This method creates a meta-model that combines the predictions of multiple base models.
- Ensemble learning methods can be used to improve the predictive accuracy of a variety of machine learning models, including:
  - Decision trees
  - Support vector machines
  - Neural networks
- Ensemble learning methods can also be used to improve the robustness of a machine learning model, making it less susceptible to overfitting or underfitting.
Web scraping and anti-bot systems.
Tags: security, webscraping, bots
Published: 2023-07-01 16:35:00

Nowadays it is widely acknowledged by web service owners that data scraping is an inevitable challenge they will face. As certain scrapers can adversely impact website servers by causing slowdowns, website owners employ all available means to safeguard their websites.

## The main problem
One of the biggest challenges in web scraping is blocking which can be caused by different reasons. However, all these reasons can be consolidated into a fundamental fact:

> web scrapers appears differently to websites and servers compared to a web browser used by a normal internet user.

The following paragraphs will present some of the factors that can be used by security systems to differentiate between normal users and web scrapers.
## Blocking Factors
Blocking factors can be split into three groups, Network factors, Client / Browser factors and behavior factors.

### Network factors
All communication between the clients and the servers go through multiple communication protocols that are represented as a multiple layers system. Each layer have its own way of formatting and organizing data before sending it, and this is what is called encapsulation. The data added in each layer is used to identify both the sender and the receiver, there for an automated bot can leave multiple clues and fingerprints that can lead to its identification as a malicious connection, and therefor being blocked.
### Client factors
Browsers are complex software and often times we don’t think about how they work, we're just using them. Automated browser are quite popular for being used to do web scraping when dealing with JavaScript heavy web pages. Using JavaScript, the developer behind the website is allowed to execute arbitrary code on client machine to access specific information that can be used to identify whoever is behind the connection. This way automated browsers can be easily identified, especially when they are not correctly patched to not leak information about themselves.
### Behavior factors
When automating a browser the interactions with the web page will have determined patterns and will take split seconds, in contrary human interaction with a web page is pretty slow and follows random patterns. Since the the two are too distinct some security systems can easily spot and block all users that are presumed harmful or suspicious.
## Conclusion
When creating large scale web scraping software, one should choose the right tools and make the right design decisions to avoid being blocked by websites in order to build robust and reliable web data collection solutions.
Vulnerability Scanning
Tags: web, security, cybersecurity, pentesting
Published: 2023-07-01 16:18:25



Vulnerability scanning is a critical phase in the penetration testing process, where the primary goal is to identify potential vulnerabilities and weaknesses in the target system or application. The purpose of this phase is to determine the attack surface and assess the severity of the identified vulnerabilities to determine the best approach for exploitation. In this article, we will discuss vulnerability scanning and its importance in the penetration testing process, as well as the most commonly used tools.

## What is Vulnerability Scanning and Why We Use It

Vulnerability scanning is the process of identifying potential weaknesses and vulnerabilities in the target system or application. This phase involves using automated tools to scan the target system or application for known vulnerabilities and misconfigurations.

The primary goal of vulnerability scanning is to identify potential vulnerabilities that could be exploited by attackers to gain unauthorized access to the target system or application. By identifying and addressing these vulnerabilities, organizations can reduce the risk of a successful attack and improve their overall security posture.

## Most Commonly Used Tools

There are several tools that can be used for vulnerability scanning, including:

- **Nessus**: Nessus is a popular vulnerability scanner that can be used to scan for known vulnerabilities in the target system or application. Nessus can be used for both network and web application scanning and includes a comprehensive database of known vulnerabilities.

- **Metasploit**: Metasploit is a penetration testing framework that includes a vulnerability scanner. The Metasploit vulnerability scanner can be used to scan for known vulnerabilities in the target system or application and includes a comprehensive database of known vulnerabilities.

- **Nmap**: Nmap is a network exploration and security auditing tool that can be used for vulnerability scanning. Nmap can be used to scan for open ports and services on the target system or application, which can be used to identify potential vulnerabilities.

## Using Vulnerability Scanning in the Exploitation Phase

The information gathered during the vulnerability scanning phase can be used in the next phase of the penetration testing process, which is exploitation. The vulnerabilities identified during the vulnerability scanning phase can be used to develop and execute an attack plan.

For example, if a vulnerability is identified in a web application, an attacker could use this vulnerability to gain unauthorized access to the target system or application. The attacker could exploit the vulnerability by using a tool like Metasploit to develop and execute an attack plan.
Must Have TailwindCSS Plugins
Published: 2023-07-01 16:16:17

TailwindCSS is a popular utility-first CSS framework that allows you to create custom designs without writing any CSS. However, working with TailwindCSS can be challenging if you don’t have the right tools and support in your editor. That’s why we have compiled a list of the best VScode extensions for TailwindCSS that can enhance your development experience and productivity.

## Tailwind Fold (Personal Favourite)

Tailwind Fold is a VScode extension that improves code readability by folding long class attributes. This extension helps you avoid scrolling horizontally or wrapping lines when working with TailwindCSS. You can quickly toggle folding using the keyboard shortcut Ctrl+Alt+A or customize the folding style and opacity in the settings.

[Download Link](https://marketplace.visualstudio.com/items?itemName=stivo.tailwind-fold)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r4cvc336knybcqjv1qcw.gif)
Image credits (https://marketplace.visualstudio.com/items?itemName=stivo.tailwind-fold)

## Tailwind CSS IntelliSense (Essential)

This is the official VScode extension for TailwindCSS, and it provides a lot of advanced features such as:
- Autocomplete: Intelligent suggestions for class names, as well as CSS functions and directives.
- Linting: Highlights errors and potential bugs in both your CSS and your markup.
- Hover Preview: See the complete CSS for a Tailwind class name by hovering over it.
- Syntax Highlighting: Provides syntax definitions so that Tailwind features are highlighted correctly.

[Download Link](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)

## Headwind
Headwind is another extension that provides support for TailwindCSS in VScode. It includes features such as:

- Class Sorting: Automatically sorts your classes following the recommended order by TailwindCSS.
- Custom Sorting: Allows you to define your own custom order for sorting classes.
- Class Removal: Removes unused or duplicate classes from your markup.

[Download Link](https://marketplace.visualstudio.com/items?itemName=heybourn.headwind)

## Tailwind Documentation
The Tailwind Documentation extension provides quick access to the official Tailwind CSS documentation. This extension enables developers to access the Tailwind CSS documentation directly from within the VScode editor, without having to open a browser or leave the editor. You can search for any topic, class, function, or directive in the documentation and get instant results.

Open with:
Mac: cmd + ctrl + t
Windows: ctrl + alt + t

[Download Link](https://marketplace.visualstudio.com/items?itemName=alfredbirk.tailwind-documentation)
DEV Showcase v6
Tags: showdev, discuss, codenewbie
Published: 2023-07-01 15:33:00

Welcome to the DEV Showcase - a weekly thread where you can share what you've been working on and get feedback and encouragement from the DEV community.

This is your chance to show off your latest project, share a cool hack or technique you've learned, or ask for advice and feedback from other developers. Whether you're a seasoned developer or just starting out, this is the place to connect with others and get inspired.

Here are a few questions to think about if you're stuck:

- What have you been working on lately?
- What tools or resources have you found helpful?
- Have you learned any new skills or techniques recently?
- What challenges have you faced, and how can the community help you overcome them?
- What are your goals for your project or your career moving forward?

Remember, this isn't a competition or a challenge - it's just a space to share and connect with others. So don't be shy! Share your work and get feedback and encouragement from the DEV community.

We're excited to see what you've been working on, and to support you as you continue to grow and develop your skills.
My Portfolio Journal: Portfolio page up and getting organized
Tags: devjournal
Published: 2023-07-01 14:00:00

As is usually the case when going off to start a new venture, the initial enthusiasm runs high until reality sets in. I'm still starting off so I'm in the "high" phase :D

After having created and customized my Developer Portfolio Site: [johnenadFolio](https://www.johnenad.com/), I just wanted a quick way to deploy it. Good thing I found this well-written article by [Jonathan Sanchez](https://medium.com/@jonathans199) on how to ["Deploy React App to AWS S3 bucket"](https://medium.com/boca-code/deploy-your-react-app-to-aws-s3-bucket-and-with-ci-cd-1c9ce03023c2). 

Finally with my [Developer Portfolio](https://www.johnenad.com/) up and running, I set out to organize myself and went ahead to create a free account on [Notion](https://www.notion.so/product/ai). For those not familiar with Notion, it is an amazing product that helps individuals, teams and enterprises get organized, take notes or develop a knowledge and track goals and tasks. It uses AI and you can take advantage of thousands of templates that will enhance the way you work. For me, it's hard to describe it because of the myriad of things that it can do that just makes work easier for its users.

Once that was done, I had to decide on the portfolio project(s) I would work on and after some deliberation, I settled on making an a crude CRM application, a basic Account system and a simple Purchasing system. I hope to just implement maybe a couple of features for each one of them.

Next step, would be to familiarize myself with [Notion](https://www.notion.so/product/ai) so I can get more details on my plan together. I'll keep you posted! :)