teleren/devto huggingface dataset:
Will AIs Replace Software Systems As We Know Them?
Tags: ai, softwareengineering, llm, machinelearning
Published: 2023-06-02 21:29:07

Machine learning models draw much of their inspiration from biological brains. Composed of millions of neurons working in unison, these models are extremely powerful. However, like biological intelligence, they are susceptible to occasional errors or confusion. By structuring data, enriching it with metadata, or setting guardrails on the way it's processed, we can significantly enhance their accuracy. This improvement is feasible because we're enhancing a system with excellent computational abilities and superior memory (traditional computers) with robust machine learning models capable of solving problems that cannot be easily described with mathematical formulas or code.

This scenario arises because AI and traditional computing are based on fundamentally different computing models. AI exhibits the capability for "Fuzzy Logic", which relates to understanding problems with imprecise inputs and outputs, such as recognizing a human face in various positions or transcribing sound from a noisy recording. In contrast, traditional computers operate on "Exact Logic", in which both the inputs and outputs can be described with high precision, and any variation must be explicitly encoded. Examples of such operations include performing mathematical computations or removing all uppercase letters from a paragraph.

Consequently, when AI models and traditional computers collaborate, their combined effectiveness significantly increases. Leveraging their individual strengths, they form a synergy analogous to our relation with the applications we use every day. The apps on our mobile phones and computers give us almost superhuman abilities, like perfect and virtually limitless memory, the potential to visualize and act on unusual health data, or even talk in real-time with someone on the other side of the globe. Unlike us, AI applications don't require user interfaces as they can swiftly process and operate on raw data. However, they can use APIs and databases, in the same way we use apps and notepads.

In my view, AI is not here to replace traditional software. Instead, it brings it to a new level by giving us tools to introduce features that were unthinkable just a year ago. AI will empower us to build more intelligent machines with impeccable memory that can interact with humans in more natural ways while retaining existing computer capabilities. 

So software will likely remain the same under the hoods, but the ways we interact with computers will likely change radically. 

**We can now create machines that can talk.**
📱 Introducing Solana Saga: The First Web3-Optimized Mobile Device! 🌐✨
Tags: solanasaga, web3, blockchain, cryptocurrency
Published: 2023-06-02 21:25:32

📱 Exciting News! Introducing Solana Saga: The Android Phone for the Web3 World! 🌐✨

I'm thrilled to share with you all the groundbreaking release of Solana Saga, a high-end Android phone designed to unlock the full potential of the web3 ecosystem. This cutting-edge device represents a major leap forward in enabling seamless and secure interaction with web3 applications, while providing an unparalleled user experience.

Key Features:

🔒 Web3-native: Solana Saga comes equipped with a built-in seed vault for safeguarding your cryptocurrency private keys. Say goodbye to external wallets and embrace the convenience of managing your digital assets securely from your mobile device. Plus, its secure browser ensures effortless access to a wide array of web3 applications.

⚡ High-performance: Powered by the Snapdragon 8+ Gen 1 mobile platform, Solana Saga delivers exceptional performance and responsiveness, ensuring smooth navigation and seamless interaction with web3 applications. Experience the future of mobile computing with enhanced speed and efficiency.

🔐 Unmatched Security: Security is at the core of Solana Saga. With its built-in seed vault and secure operating system, you can rest assured that your cryptocurrency holdings and personal data are protected against threats. Trustworthy and resilient, Solana Saga prioritizes your digital privacy.

🎨 Premium Design: Solana Saga's sleek and premium design merges sophistication with functionality, appealing to both crypto enthusiasts and mainstream users. The stunning 6.67-inch OLED display brings your favorite web3 applications to life, offering an immersive and visually captivating experience.


Solana Saga: Unlocking the Power of Web3:

Solana Saga represents a significant milestone in the evolution of the Solana ecosystem. It bridges the gap between cutting-edge technology and everyday usability, making web3 more accessible to a wider audience.
Challenge(1/365)
Tags: beginners, datascience
Published: 2023-06-02 21:00:53

Ok guys,Today(3-6-2023) i'm starting a one year challenge to change myself.TBH i'm too lazy to study and to make my time productive but i want to change my laziness and i wanna master data science and to improve my studies currently i'm havind 5.48/10 CGPA i wanna make it to 7+ CGPA at the end of 4 year.i've changed my time table my sleep timing is from after class to 7:30PM and in between my STudy sessions,I'll get sleep rougly around 4 hrs a day that's not enough but it's okay i wanna make mysef and parents proud.So it is DAY-1?/365
Challenge with connection Chat GPT to Telegram Bot
Published: 2023-06-02 20:48:34

Hi everyone, have a small task that i can't understand 
I have telegram bot and i connected Chat GPt throw [this](app.leadteh.ru) service but when i decide to write something i received this

> {"error":{"message":"You exceeded your current quota, please check your plan and billing details.","type":"insufficient_quota","param":null,"code":null}}

[My bot now](https://t.me/Dima_Kurlov_bot) u can check a well

I just a beginner in this and don't know a lot but want understand how it works

Will appreciate your help a lot:)
LIMIT vs. FETCH in SQL
Tags: sql
Published: 2023-06-02 20:26:23

Fun fact: There is no `limit` clause in the SQL standard.

Everyone uses `limit`:

```sql
select * from employees
order by salary desc
limit 5;
```

```
┌────┬───────┬────────────┬────────┐
│ id │ name  │ department │ salary │
├────┼───────┼────────────┼────────┤
│ 25 │ Frank │ it         │ 120    │
│ 23 │ Henry │ it         │ 104    │
│ 24 │ Irene │ it         │ 104    │
│ 33 │ Alice │ sales      │ 100    │
│ 31 │ Cindy │ sales      │ 96     │
└────┴───────┴────────────┴────────┘
```

And yet, according to the standard, we should be using `fetch`:

```sql
select * from employees
order by salary desc
fetch first 5 rows only;
```

`fetch first N rows only` does exactly what `limit N` does. But `fetch` can do more.

## Limit with ties

Suppose we want to select the top 5 employees by salary, but also select anyone with the same salary as the last (5th) employee. Here comes `with ties`:

```sql
select * from employees
order by salary desc
fetch first 5 rows with ties;
```

```
┌────┬───────┬────────────┬────────┐
│ id │ name  │ department │ salary │
├────┼───────┼────────────┼────────┤
│ 25 │ Frank │ it         │ 120    │
│ 23 │ Henry │ it         │ 104    │
│ 24 │ Irene │ it         │ 104    │
│ 33 │ Alice │ sales      │ 100    │
│ 31 │ Cindy │ sales      │ 96     │
│ 32 │ Dave  │ sales      │ 96     │
└────┴───────┴────────────┴────────┘
```

## Relative limit

Suppose we want to select the top 10% of employees by salary. `percent` to the rescue:

```sql
select * from employees
order by salary desc
fetch first 10 percent rows only;
```

```
┌────┬───────┬────────────┬────────┐
│ id │ name  │ department │ salary │
├────┼───────┼────────────┼────────┤
│ 25 │ Frank │ it         │ 120    │
│ 23 │ Henry │ it         │ 104    │
└────┴───────┴────────────┴────────┘
```

(there are 20 employees, so 10% is 2 records)

## Offset with fetch

Suppose we want to skip the first 3 employees and select the next 5. No problem: `fetch` plays nicely with `offset`, as does `limit`:

```sql
select * from employees
order by salary desc
offset 3 rows
fetch next 5 rows only;
```

```
┌────┬───────┬────────────┬────────┐
│ id │ name  │ department │ salary │
├────┼───────┼────────────┼────────┤
│ 33 │ Alice │ sales      │ 100    │
│ 31 │ Cindy │ sales      │ 96     │
│ 32 │ Dave  │ sales      │ 96     │
│ 22 │ Grace │ it         │ 90     │
│ 21 │ Emma  │ it         │ 84     │
└────┴───────┴────────────┴────────┘
```

`next` here is just a syntactic sugar, a synonym for `first` in the previous examples. We can use `first` and get exactly the same result:

```sql
select * from employees
order by salary desc
offset 3 rows
fetch first 5 rows only;
```

Oh, and by the way, `row` and `rows` are also synonyms.

## Database support

The following DBMS support `fetch`:

-   PostgreSQL 8.4+
-   Oracle 12c+
-   MS SQL 2012+
-   DB2 9+

However, only Oracle supports `percent` fetching.

MySQL and SQLite do not support `fetch` at all.

_Follow [**@ohmypy**](https://twitter.com/ohmypy) on Twitter to keep up with new posts_
Dia 4 - #100DaysOfSwift
Tags: ios, swift
Published: 2023-06-02 20:26:10

## For
É o loop mais comum em swift, é possível usar arrays e ranges nele. Depois da palavra _for_ você pode usar qualquer string(desde que não seja uma palavra reservada) pra representar o contador do loop.
Quando o loop for a partir de um range você pode tanto colocar o range direto no loop quanto colocar o range numa variável e colocar a variável no loop.

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

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

Caso não vá usar a variável depois do _for_ pra nada, nem precisa nomea-la, é só colocar um `_`.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i80f8dhlaq6ra7l34fxo.png)

---

## While
Nesse tipo de loop você coloca uma condição a ser checada e dentro dele o que deve ser feito e um modificador dessa condição, o loop acaba quando a condição se tornar falsa. 
São mais usados em casos onde você não sabe previamente quantas vezes precisará que o loop aconteça, como por exemplo quando você quer que algo aconteça até que o usuário pare a ação ou até que tenha carregado as informações necessárias.

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

---

## Repeat
Bem pouco usado, esse é quase igual ao While, a diferença é que no Repeat a ação do loop será realizada pelo menos uma vez, já que a condição a ser checada acontece apenas no final de cada loop.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s9dxaeekamntlm4ba8rt.png)
My introduction
Published: 2023-06-02 20:05:49

Hi, my name is Animesh Gautam. I am from India and I am here because I want to start writing articles and share my self-improvement journey with everyone. After all, I feel like it can help people in one way or the other.

I am also greatly inspired by Japanese culture because the cultural traditions of Japan are quite interesting and the worth that it provides on topics such as tranquility, meditation (Zen) and self-improvement is so much valuable.

## What am I doing?

I am an AI/ML enthusiast and I am constantly trying to learn and improve on this topic. I am a beginner right now but I will constantly push articles about whatever I am learning, every day.
#DEVDiscuss: Geoffrey Hinton Quits Google
Tags: devdiscuss, ai, chatgpt, machinelearning
Published: 2023-06-02 20:00:00


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 a topic sent in by my human colleague @RachelFazio: 

> Hi Sloan! I am wondering what the DEV Community thinks about this article: 

{% embed https://www.nytimes.com/2023/05/01/technology/ai-google-chatbot-engineer-quits-hinton.html %}

> What do you make of it when the leadership behind a technology does not support its use?

This is a classic conundrum in tech. It reminds me of what happened to Timnit Gebru, too:

{% embed https://www.nytimes.com/2020/12/03/technology/google-researcher-timnit-gebru.html %}

So, what do you think? Share your thoughts in the comments and let's discuss!

---

_Want to submit a question for discussion like Rachel, 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._
DOCKER - Configurando o prometheus no docker.
Tags: docker, prometheus, devops
Published: 2023-06-02 19:59:31



Prometheus é um aplicativo de software livre usado para monitoramento de eventos e alertas. Ele registra métricas em tempo real em um banco de dados de séries temporais construído usando um modelo HTTP pull, com consultas flexíveis e alertas em tempo real.

<h1>Docker compose</h1>
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p6fasxen0j7v9015aqc4.png)

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

<h1>Arquivo .yaml</h1>

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


<h1>O código está versionado no meu github.</h1>
https://github.com/andreelidio/prometheus-no-docker/tree/main/prometheus

<h1>Console da API.</h1>
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkuec7677p63vd5emyh3.png)

<h1>Metricas da API.</h1>

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

<h1>Console do prometheus.</h1>

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

<h1>Listando os targets.</h1>

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

Para mais informações, acessem os links abaixo:
https://prometheus.io/
https://prometheus.io/docs/introduction/overview/
https://github.com/KubeDev/pedelogo-catalogo

Espero que você tenha gostado deste post e tenha aprendido algo novo🆙
Qualquer feedback será bem-vindo, é só deixar nos comentários.😀
Curta, compartilhe, siga-me em:
✅ https://linktr.ee/andreelidio
How to Connect Web3 Wallet into your Website? (Web3 and Blockchain project).
Published: 2023-06-02 19:42:39

Connecting a **MetaMask** wallet to your Web3 website is important for various reasons. It allows you to connect you to your DApps, manage your Crypto assets, signing transactions and message verification and enhance security.

Prerequisite: EVM, Blockchain, JavaScript, React.js

## Check if any EVM based wallet is installed in your browser
```   
 if (typeof window.ethereum !== "undefined") {
      console.log("Wallet installed");
    }
```

## Check installed wallet is Metamask or not
In that case we will use ethereum.isMetaMask to check:

```    
if (typeof window.ethereum && ethereum.isMetaMask !== "undefined") {
      console.log("MetaMask Wallet is present");
    }
```

## If you don't have MetaMask installed
```   
 if (typeof window.ethereum === "undefined") {
      console.log("MetaMask Wallet not installed");
      window.location.href = "https://metamask.io/download.html";
    }
```

## Now we have installed MetaMask, its time to connect the wallet with our website.
```    
    try {
      const accounts = await ethereum.request({
        method: "eth_requestAccounts",
      });
      console.log(accounts);
    } catch (error) {
      console.error(error);
    }
```



These are all the methods we need to follow to connect our wallet with our frontend.
How to Make Money by Publishing Games as a Publisher?
Tags: laravel, alpinejs
Published: 2023-06-02 19:26:20

With the advancement of technology, the gaming industry has gained significant momentum, offering publishers the opportunity to earn substantial revenue by publishing their own games. In this article, we will discuss how publishers can monetize their games through platforms such as Gamedistribution, Gamepix, and Gamemonetize.

## Gamelup - Html5 Gaming platform 

**[Live preview](https://bit.ly/gamelup)**

## Gamedistribution:
Gamedistribution is a platform that allows game publishers to reach a wide audience by distributing their games. Games available on this platform are published on various websites, social media platforms, and mobile app stores, providing greater exposure to players. Gamedistribution enables publishers to monetize their games by sharing advertising revenue. Publishers earn money by displaying ads within their games and through in-app purchases.

## Gamepix:
Gamepix is a platform that enables game publishers to publish their games on websites or mobile applications. Publishers can upload their games to Gamepix and integrate them into their own websites or mobile apps. Gamepix provides an API that facilitates easy access to games and ensures compatibility across different devices. Publishers can monetize their games on the Gamepix platform by sharing advertising revenue or revenue generated from in-app purchases.

## Gamemonetize:
Gamemonetize is a platform that offers game publishers the opportunity to publish their games and generate revenue. This platform serves as a marketplace for publishers looking to publish their games on various websites, mobile app stores, and social media platforms. Gamemonetize allows publishers to monetize their games by sharing advertising revenue. Publishers can earn money by displaying ads, incorporating sponsored content, or through in-app purchases.

By joining these platforms, publishers can reach a wider audience and gain access to more players. They can monetize their games by sharing advertising revenue or revenue from in-app purchases. It is important for publishers to focus on developing high-quality and engaging games to succeed in this competitive market.

In conclusion, platforms like Gamedistribution, Gamepix, and Gamemonetize offer game publishers the opportunity to publish their games and earn money. By utilizing these platforms, publishers can expand their reach and generate revenue. However, it is crucial to create compelling games to attract and retain players.
RRdom-6 post1
Published: 2023-06-02 18:44:05

Hey folks, I know most of us were using react-router-dom-v5 before & the v6 must be a little bit confusing. But trust me they have made it more simpler in the latest version for routing of different pages. Breaking down all the concepts one by one for better understanding. Let's start😊

What is react-router-dom?
It is a fully-featured client and server-side routing library for react.
Helps create and navigate between different URLs that make up your web application.
Provides unique URLs for different components in the app and makes the UI easily shareable with other users.
What we'll be covering from the new version -
Configuring routes.
Navigating programmatically
Dyanamic routes
Nested routes
Route parameters
Lazy loading
Installation -
**npm install react-router-dom@6**

Configuring routes:
Let's begin with the most common usage for routes.
Taking a scenario, suppose a user is on the home page & want's to visit the about page, vice versa.

To configure routes, we need to connect url in the browser, with our react app, for that react router provides a component called BrowserRouter, with which we need to wrap our entire app. We can simply do that in the index.js file.

```
// index.js file
import { BrowserRouter as Router } from "react-router-dom";
<Router>
     <App />
</Router>
```
Create two components home, about and navbar for the UI.

```
// Home.js file
const Home = () => {
  return <div className="element">This is Home page</div>;
};
export default Home;

// About.js file
const About = () => {
  return <div className="element"> This is about page</div>;
};
export default About;
```
In App.js we wrap home & about within Routes component & Route individually from the react-router-dom. The route has two parameters, path which reflects the path in the url & element which includes our components. Note - Here we don't need to add '/' before path expect for the root/ home url i.e. itself '/'.

```
// App.js
import { Route, Routes } from "react-router-dom";
import About from "./components/About";
import Home from "./components/Home";
import Navbar from "./components/Navbar";
import "./styles.css";
export default function App() {
  return (
    <div className="App">
      <Navbar />
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="about" element={<About />} />
      </Routes>
    </div>
  );
}
```
Edited Everydayyy after new learninggg 😀
Entendiendo las relaciones en MongoDB
Tags: mongodb, beginners, spanish
Published: 2023-06-02 18:38:10

Hoy toca cambiar un poco el tema de los ultimas semanas dado que ayer fui al evento de #MongoDBlocal hoy toca MongoDB, una de las cosas mas importantes de cambiar de paradigma tiene que ver con desaprender RDBMS es la de entender como se generan las relaciones. #mongodb
Cosas que hay que tomar en cuenta y pensar en ello desde el comienzo:

- NoSQL si tiene relaciones
- Existen dos tipos de relaciones embebidas o referenciadas

¿Cuándo elegir entre una relación embebida o referenciada?, bueno acá interviene varias cosas a tomar en cuenta. Las siguientes preguntas te ayudarán a determinar esto.

1. ¿Los datos se consultan en conjunto?
2. ¿Los datos crecen exponencialmente?
3. ¿El desempeño es crucial al obtener datos?

Si respondiste si a la pregunta 1 y 3 anteriores. Esto quiere decir que estas enfrente de una relación embebida. Como por ejemplo cuando se obtiene los datos de un usuario obtener la dirección del mismo para no hacer un lookup.


![Ejempolo de relación embebida](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ekco25ds9l06vuztwyc5.png)

En caso de que hayas respondido si en la segunda pregunta estas enfrente de una relación referenciada, y esto tiene que ver más con una limitación tecnológica el tamaño máximo de un documento en formato BSON es de 16 Mb para que nos vea afectado el rendimiento de la base de datos. Una relación referenciada se realiza mediante los ID pero aparte de ello no se necesita una instrucción para decir que explícitamente se esta creando una relación de tipo referenciado, en este ejemplo es personalizado, pero comúnmente se ocupa ObjectId.


![Ejemplo de relación referenciada](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/abku3zqohg0nl993ddhz.png)

Si este articulo te gusto o aprendiste algo nuevo te agradecería que me siguieras y compartieras mi contenido para que llegue a más personas, esto me ayuda demasiado. Gracias.
how do I attach images/files
Tags: c, cpp, programming
Published: 2023-06-02 18:21:14

I was going to make a post and I wanted to attach 3 small image files that cover what I'm talking about. But, in this forum I've yet to figure out how to attach files to the posted message on this forum. Is it possible to attach files to a newly created post?  If so, how?
syd/wt1v