teleren/devto huggingface dataset:
Unlocking the Power of AI in Modern Development
Tags: webdev, javascript
Published: 2023-09-28 18:07:59

In the ever-evolving landscape of software development, there's a transformative force that's been making waves: Artificial Intelligence. 🚀

From automating mundane tasks to creating intelligent applications, AI is reshaping the way we build software. In this article, we'll explore how AI is revolutionizing modern development and why it's a skill every developer should consider mastering. 
One of the most significant impacts of AI in development is the automation of repetitive tasks. Whether it's code generation, testing, or even deployment, AI-powered tools, and AI-powered [photo editing apps](https://lrapk.com/) are streamlining the development process. This means fewer hours spent on manual labor and more time for creativity and problem-solving.

2. Predictive Analytics
AI-driven analytics can unearth valuable insights from vast datasets, helping developers make informed decisions. Imagine having a tool that predicts potential bugs or suggests optimizations before they become issues. With AI, this is becoming a reality, leading to more efficient and reliable software.

3. Natural Language Processing (NLP)
NLP is not just for chatbots and virtual assistants. Developers are now using NLP models to analyze and understand code, making it easier to navigate and maintain large codebases. This breakthrough is a game-changer for collaboration and code quality.

4. Enhanced User Experiences
AI is powering user experiences like never before. Personalized recommendations, voice recognition, and real-time language translation are just a few examples. As developers, integrating AI into our projects can deliver more engaging and user-centric applications.

5. Skill Development
Embracing AI isn't just about the tools; it's also about upskilling. Learning AI concepts and how to apply them in your development projects is an investment in your future. Fortunately, there are abundant online resources and courses available to help you get started.

Conclusion
AI is no longer the stuff of science fiction; it's a practical and powerful tool for modern developers. By harnessing the capabilities of AI, we can work smarter, deliver better software, and create more innovative solutions.

So, whether you're a seasoned developer or just starting your journey, it's time to dive into the world of AI. Embrace the future of development, and watch your skills and projects soar to new heights! 🌟

What are your thoughts on AI in development? Share your experiences and insights in the comments below!
Cuidado com o margin collapse
Tags: css, frontend, braziliandevs
Published: 2023-09-28 18:05:25

> **tldr:** Use margens em uma só direção, de preferência, para baixo.

Em elementos em sequência a margin-bottom do primeiro elemento e a margin-top do segundo elemento se colapsam e o menor valor é ignorado. Se você tem `margin-bottom: 10px` e `margin-top: 5px` isso não resultará em 15px de distância entre os elementos, mas sim 10px.

![Exemplo do margin collapse usando a devtools do Chrome](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rlbrt646ighptp1p55e.gif)

Resolver isso uma vez ou outra é tranquilo, mas pense em várias telas, com tabelas, listas, menus, etc.

Usando as margens sempre em uma direção você elimina esse problema e ainda facilita a manutenção e integração com outros elementos do código.

Dê uma olhada no exemplo abaixo.

{% codesandbox https://codesandbox.io/embed/margin-collapsing-5yflks?autoresize=1&fontsize=14&module=%2Fsrc%2Fstyle.css&theme=dark %}

Se quiser mais detalhes confira o [artigo](https://mzl.la/3t40E6M) no MDN.
Turning an array clockwise or counterclockwise
Tags: programming, java, algorithms
Published: 2023-09-28 18:04:27

Turn an array clockwise therefore the last element comes to first and all hops to right. 
And counterclockwise meaning last element comes to first and others hops to their left.
```java

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Solution {
    public static void main(String[] args) throws IOException {
        int[] arr = new int[]{1, 3, 5, 7, 9};
        int K = 3;
        turnTheArrayToRight(arr, K);
        System.out.println("-----------");
        turnTheArrayToLeft(arr, K);

        System.out.println("-----------");
        // no need to reinvent the wheel.
        List l = new ArrayList<>();
        Arrays.stream(arr).forEach(i->l.add(i));
        Collections.rotate(l, K); // rotate right
        System.out.println(Arrays.toString(l.toArray()));
        Collections.rotate(l, -1 * K); // rotate left
        System.out.println(Arrays.toString(l.toArray()));
    }

    private static int[] turnTheArrayToRight(int[] nums, int k) {
        for (int j = 0; j < k; j++) {
            for (int i = nums.length - 1; 0 < i; i--) {
                int temp = nums[i - 1];
                nums[i - 1] = nums[i];
                nums[i] = temp;
            }
            System.out.println(Arrays.toString(nums));
        }
        return nums;
    }

    private static int[] turnTheArrayToLeft(int[] nums, int k) {
        for (int j = 0; j < k; j++) {
            for (int i = 0; i < nums.length - 1; i++) {
                int temp = nums[i];
                nums[i] = nums[i + 1];
                nums[i + 1] = temp;
            }
            System.out.println(Arrays.toString(nums));
        }
        return nums;
    }
}
```

Output

```shell
[9, 1, 3, 5, 7]
[7, 9, 1, 3, 5]
[5, 7, 9, 1, 3]
-----------
[7, 9, 1, 3, 5]
[9, 1, 3, 5, 7]
[1, 3, 5, 7, 9]
-----------
[5, 7, 9, 1, 3]
[1, 3, 5, 7, 9]
```
Crossed 200$ in revenue with my first side project
Tags: programming, career, frontend, learning
Published: 2023-09-28 17:59:42

##1300 signups and 200$ in revenue on linkcollect.io 🥳

---

###What is [linkcollect.io](https://linkcollect.io) and how it helps content writers, bloggers and creators?  

&nbsp;

So I see lots of people on here, linkedin and twitter curate and share some useful resources, that's great and it sure helps a lot of people and also the curator

but there's a problem, it becomes difficult to manage and re-share, copy pasting link again and again while posting on multiple platforms, also difficult to manage, access and retrieve to share later with someone.

That's why we have been working on linkcollect.io for few months to help people better manage their bookmarks, learning resources and share resources cross platforms easily. LinkCollect is made to do all thing links, it helps in

![linkcollect dashboard image shows collections](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bea89uz7t7qaaupye0ks.png)

- Personal / private bookmarking (all collections or profile can be made private)

- Social bookmarking (make, collect and share resources 5x faster, all your resources are just a click away in your browser)
- Discover and search across collections (find learning resources and other useful links that people collect, and save them too)
- Share your linkcollect profile, all groups of collections at once

and more stuff that we will be adding on as we proceed : )

![linkcollect chrome extension image shows collections](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ovjkg0eza1bptzu9xsfu.png)
What I learned about the "best price" in retail and how it applies to AI
Tags: ai, ampere, arm64
Published: 2023-09-28 17:40:47

I remember early in my career working for the Retail group of a large company and I started learning about what was the "Best" price for a product. And the answer was always, "it depends, what is your goal? Sell more? Sell more of a different product (many products are linked together)? Help out your supplier?" And there are many, many other trade offs. IoT has the same issue with Real Time. Do you need the temperature once a minute? Once a second? What about speed? You can get the speed of a vehicle at 2000 times a second. But do you need it? Can the mobile network handle that much data? And do you want to pay for it?

I think of all of this when I see all of the hype in AI/ML that is currently happening. "We need supper fast GPUs to do AI" Do you need it for everything? They are a lot more expensive and use a lot more energy.

Tony Rigoni wrote a blog post about this and he gives you three things to think about when deploying AI:

Deploy only the amount of compute you need to meet the performance requirements of your application and use general purpose rather than specialized processors as broadly as possible to maintain flexibility for future compute needs.
Switch AI CPU-only inferencing from legacy x86 processors to Cloud Native Processors. With the performance, you may be able to deploy as CPU-only for a wider range of AI workloads than with legacy x86 processors.
Combine GPU with the power efficient processors for heavier AI training or LLM inferencing workloads.
Basically, use the more efficient processors where you can and save specialized processors for when you need them.

Check out his full post [here](https://amperecomputing.com/blogs/how-to-choose-the-best-processor-for-artificial-intelligence-ai).


And BTW while there might not be a "best price", there is a worse price. $1.06, followed by anything ending in .06 . You will sell a lot more at 99 cents and you won't sell less at $1.09.

Want to learn more about Aarch64/ARM64 servers?  Check out our [community](community.amperecomputing.com)!
Pocket Kotlin-C# Dictionary. F
Tags: kotlin, csharp
Published: 2023-09-28 17:39:25

## F

| Kotlin | C# |
| --- | --- |
| **false** | **false** |
| **@field**<br> Annotation target, used to annotate automatically created fields (e.g. when you have a primary constructor, the compiler automatically creates a field, its getter, its setter and so on, an you want to annotate specifically a field) [Learn more](https://kotlinlang.org/docs/annotations.html#annotation-use-site-targets) | New versions of C# have primary constructors, so there can be a property that is not coded expicitly in the code, but as of 2023 I haven't found a way to attach an attribute to such property [See en example of unresolved question](https://stackoverflow.com/questions/68860104/how-do-i-add-an-attribute-to-a-records-primary-constructor) | 
| **@file** Annotation target, used to annotate source file [Learn more](https://americanexpress.io/advanced-kotlin-use-site-targets/) | In .Net one cannot target attribute on a source file [Learn more](https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/reflection-and-attributes/) |
| **final**<br> Modifier that forbids overriding of members [Learn more](https://kotlinlang.org/docs/inheritance.html) | **sealed**<br> Modifier that forbids overriding of classes and members. In Kotlin classes are final by default, one has to use modifier **open** to allow inheritance from a class [Learn more](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/sealed) |
| **finally** | **finally** | 
| **for**<br> Iterates through anything that implements _Iterable<>_ interface [Learn more](https://kotlinlang.org/docs/control-flow.html#for-loops) | **foreach**<br> Iterates through anything that implements _IEnumerable<>_ interface [Learn more](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/iteration-statements#the-foreach-statement) |
| **fun**<br> Function declaration | C# method declaration doesn't use a designated keyword |
What You Need to Know About Securing Wordpress On AWS Lightsail
Published: 2023-09-28 17:33:58

There are many articles about securing your Wordpress site running on AWS Lightsail. Some information is outdated, such as configuring .htaccess files on the Bitnami Wordpress bundle. Other articles suggest copy-and-paste solutions without explaining how changing or adding these configuration options affect either the Lightsail virtual private server or the Bitnami Wordpress site. 

If you're curious about securing your Lightsail instance by updating security headers, automating system updates and security patches, or automating maintenance to keep your Wordpress fast and responsive checkout [Securing Wordpress on Lightsail: Lock Down Your Server](https://community.aws/posts/securing-wordpress-on-lightsail-lock-down-your-server).

The other part of the equation is hardening Wordpress. The Bitnami Wordpress bundle has a basic default security posture. However, there is room for improvement. In a follow-up article, [Securing Wordpress on Lightsail: Hardening Wordpress](https://community.aws/posts/securing-wordpress-on-lightsail-hardening-wordpress), we explain how security headers prevent common attacks and why you need to do more than delete the default application password.

Be sure to check out these AWS Wordpress articles:

- [Create a Load Balanced WordPress Website
in Amazon Lightsail](https://aws.amazon.com/tutorials/launch-load-balanced-wordpress-website/)

- [Deploying a high-availability WordPress website with an external Amazon RDS database to Elastic Beanstalk](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/php-hawordpress-tutorial.html)
Track user actions directly to the source to fix bugs faster
Tags: news, programming, monitoring, devops
Published: 2023-09-28 17:28:55

##New Relic session replay is now available in Limited Preview!

Ready to start rewinding user interactions for quicker debugging and better digital experiences? New Relic session replay is now available in Limited Preview and is included as part of New Relic’s all-in-one observability platform.

[Learn more](https://newrelic.com/platform/session-replay?utm_source=devto&utm_medium=community&utm_campaign=global-fy24-q2-sessionreplay)

With session replay, you can: 

**Better understand front-end experiences:** Quickly identify bottlenecks and pain points in the user journey with detailed video-like playback of user actions.

**Reproduce and resolve issues faster:** Access granular traces and error details to identify the exact code responsible for performance issues and get to the root cause faster.

**Protect your users’ data:** With strong privacy measures like obfuscation and encryption automatically enabled, you can analyze user interactions without worrying about compliance.
Unlock the power of New Relic session replay to create exceptional digital experiences that delight your customers.

[Read the blog](https://newrelic.com/blog/how-to-relic/session-replay-limited-preview-announcement?utm_source=devto&utm_medium=community&utm_campaign=global-fy24-q2-sessionreplay)
Databases with Rails: Review
Published: 2023-09-28 17:15:30

Here is a recap of some of the main points regarding databases and using databases with Ruby on Rails for reference compiled from the information from class.

Relational databases are databases structured around the data type "relation", which refers to a set of records modeled off a table. Relational databases use SQL. The apps that we build output SQL commands that create, read, update, or delete rows of data and send them to the database for processing. 

To create a database and start working with it:
  1. Launch `psql` from a bash prompt
  2. In psql, create a database using the command `CREATE DATABASE <database_name>`.
  3. Connect to the database with the command `\connect <database_name>`.
  4. Create a table with the command
```
  CREATE TABLE <table_name> (
    ---table columns and datatype---
  );
```
  5. Configure the Rails application to use the database by editing config/database.yml line 26 (current) to: `database: <database_name>`.
  6. Create a model called the singular form of the corresponding table name and inherit from ActiveRecord::Base.

To work with your database, use the terminal command `rails console` or `rails c` which launches psql and automatically connects to the database specified in config/database.yml.

**ActiveRecord**
ActiveRecord is a Ruby gem that automates most of the process of connecting to your database and performing CRUD operations.
96 berufliches Vorwärtskommen: Die gewinnbringende Restzeit.
Tags: deutsch, career, motivation, discuss
Published: 2023-09-28 17:00:00

Moin Moin,

Leute mit einer gewinnbringenden Restzeit… Dies erinnert mich wieder an [diejenigen, die erfolgreich auf ihrem Karriere-Weg sind bzw. gegangen sind→](https://dev.to/amustafa16421/31-berufliches-vorwartskommen-der-eigentliche-weg-erfolgreiche-leute-4m48). 
Ein wichtiger Schritt bei der Planung für einen guten Restweg ist die Neubetrachtung des bisherigen Karriere-Wegs. [Solltest du noch keinen Karriere-Weg angefangen haben→](https://dev.to/amustafa16421/22-berufliches-vorwartskommen-ein-gerader-berufsweg-der-anfang-552f), so lasse dir unter anderem deine bisherigen Erfahrungen im Bezug auf Schule eine Lehre sein, vor allem jedoch [deine ursprüngliche Neugierde→](https://dev.to/amustafa16421/22-berufliches-vorwartskommen-ein-gerader-berufsweg-der-anfang-552f).

Behalte stets das wesentliche im Auge. Nicht jede Einzelheit wird am Ende wichtig sein. Das große Ganze zählt. Möchtest du beispielsweise gemeinschaftliche Software-Projekte fördern, so kannst du dies bestimmt auch jetzt bereits tun. Du könntest programmieren, spenden, werben, …
Solange du mit dem was du jetzt kannst anfängst, also erstmal einen Fuß in die Tür kriegst, kriegst auch einfacher den Rest des Körpers durch. Solltest du also eigentlich programmieren wollen, es jedoch bisher nicht können, so schaue nach anderen Aufgaben die erledigt werden müssen, um schon mal in Kontakt mit denjenigen zu kommen, die am Projekt arbeiten. Arbeite als Übersetzer, Tester, Werber, …
Dabei musst du dich viel mit anderen austauschen und kannst auch dein Vorhaben programmieren zu lernen leichter gestalten.
Fange also stets mit dem an, was für dich gerade am einfachsten ist.
Natürlich muss man darauf achten, dass man sich nicht mit zu vielen Aufgaben überfordert…

Hast du noch Empfehlungen für eine gewinnbringende Restzeit?

Lass uns mittels Kommentaren austauschen.

Beste Grüße,
Mustafa

Oder auch mittels E-Mail: mustafa.kevin.dwenger@posteo.de
Betreff: Austausch
Install Filamentphp
Tags: webdev, php, laravel, filamentphp
Published: 2023-09-28 16:57:29

> Requirements

Filament requires the following to run:

- PHP 8.1+
- [Laravel v10.0+](https://laravel.com/docs/10.x)
- [Livewire v3.0+](https://livewire.laravel.com)

> Installation

Install the Filament Panel Builder by running the following commands in your Laravel project directory:

```bash
composer require filament/filament:"^3.0-stable" -W

php artisan filament:install --panels
```

This will create and register a new [Laravel service provider](https://laravel.com/docs/providers) called `app/Providers/Filament/AdminPanelProvider.php`.

> Migration

Setup your database and run Migration

```bash
php artisan migrate
```


> Create a user

You can create a new user account with the following command:

```bash
php artisan make:filament-user
```

Open `/admin` in your web browser, sign in, and start building your app!
Reducing crunch and burnout in Game Dev with... DevOps
Tags: devops, gamedev
Published: 2023-09-28 16:54:35

As the conversation around [crunch and burnout](https://www.bloomberg.com/news/newsletters/2022-09-09/video-game-executive-faces-backlash-over-comments-about-crunch) in game development continues, and studios struggle to find enough [devs and artists](https://www.gamesindustry.biz/how-game-developers-can-better-respond-to-the-talent-crisis), DevOps can be a valuable tool for improving workflows.

## What does DevOps look like in Game Dev?

DevOps in game development typically takes advantage of cloud storage and computing to improve communication and collaboration among team members. It can also involve Test-Driven Development (TDD) to speed up iteration and improve development cycles. DevOps practices can be leveraged to create repeatable processes for game launches, updates, and patches.

## The Benefits of DevOps for Game Devs

- **Increased efficiency through automation**: Game DevOps automation can be implemented across a wide range of areas, from process workflows to automated builds and deployment. Source code management solutions provide automated security and increased performance, and allow for easy roll-back to previous versions.

- **Improved project management**: In a DevOps environment, developers and producers work together to break work down into smaller and more manageable chunks, improve regression testing, create emergency contingency plans, and a host of other methods to improve productivity and eliminate waste. Using a suite of reporting and task management tools gives project managers valuable insights into their teams, and real-time progression tracking through UIs that visualize task schedules can help managers improve workflows.

- **Better scaling and less overhead**: In a DevOps environment, developers can quickly respond to changes in scale and adjust accordingly. Particularly for teams leveraging hosted DevOps tools, this gives smaller studios a head start with tools that can easily scale as the team grows. While an on-prem or dedicated cloud instance requires a significant resource investment, leveraging tools like [cloud-based Perforce VCS](https://get.assembla.com/perforce) allows teams to stay lean and agile.

## Transitioning to DevOps

An effective transition to DevOps requires a clear understanding of your team's current needs and long-term goals. Another consideration is flexibility and support for extensions and integrations. Every studio and project is unique, so being able to choose the tools and practices that best apply to your current goals, with the ability to adapt as your needs evolve, is very powerful.
What is Filamentphp?
Tags: php, laravel, filamentphp, webdev
Published: 2023-09-28 16:46:16

> Introduction

Basically, FilamentPHP requires laravel, make sure you understand [Laravel](https://laravel.com) before following this tutorial.

[FilamentPHP](https://filamentphp.com) is an admin panel that can accelerate our process in developing web applications. By using FilamentPHP, we can easily `create`, `read`, `update`, and `delete` features with a user-friendly interface.

> Features

There a lot Features in Filamentphp v3, like : 

## Panel builder

With the Panel builder feature, we can create more than one admin panel.

## Form builder

With the form builder we can create forms without touching the Laravel `blade` and easly to use many fields.

## Table builder

Build your beautiful table with `Custom Filter`, `Single Action` and `Bulk Action`.

## Notifications

The Panel Builder uses the Notifications package to send messages to users.

## Actions

In Filament, actions also handle "doing" something in your app. However, they are a bit different from traditional actions. They are designed to be used in the context of a user interface.

## Infolist builder

Filament's infolist package allows you to render a read-only list of data about a particular entity. It's also used within other Filament packages, such as the Panel Builder for displaying app resources and relation managers, as well as for action modals. Learning the features of the Infolist Builder will be incredibly time-saving when both building your own custom Livewire applications and using Filament's other packages.

## Widgets

This guide is for using the Widgets package in a custom TALL Stack application (Tailwind, Alpine, Livewire, Laravel).


Don't be confused, because we will discuss it further in the next article 😁.