teleren/devto huggingface dataset:
LLMs are Bullshitters 🐮💩
Tags: ai, llm, chatgpt
Published: 2024-06-15 07:17:13

Just read a great paper on LLMs. I strongly suggest reading it, but here's the conclusion:
> Investors, policymakers, and members of the general public make decisions on how to treat these machines and how to react to them based not on a deep technical understanding of how they work, but on the often metaphorical way in which their abilities and function are communicated. Calling their mistakes ‘hallucinations’ isn’t harmless: it lends itself to the confusion that the machines are in some way misperceiving but are nonetheless trying to convey something that they believe or have perceived. This, as we’ve argued, is the wrong metaphor. The machines are not trying to communicate something they believe or perceive. Their inaccuracy is not due to misperception or hallucination. As we have pointed out, they are not trying to convey information at all. They are bullshitting.

> Calling chatbot inaccuracies ‘hallucinations’ feeds in to overblown hype about their abilities among technology cheerleaders, and could lead to unnecessary consternation among the general public. It also suggests solutions to the inaccuracy problem which might not work, and could lead to misguided efforts at AI alignment amongst specialists. It can also lead to the wrong attitude towards the machine when it gets things right: the inaccuracies show that it is bullshitting, even when it’s right. Calling these inaccuracies ‘bullshit’ rather than ‘hallucinations’ isn’t just more accurate (as we’ve argued); it’s good science and technology communication in an area that sorely needs it.


{% embed https://link.springer.com/article/10.1007/s10676-024-09775-5 %}
Greedy Algorithms 🎂🍰
Tags: devchallenge, cschallenge, computerscience, beginners
Published: 2024-06-15 07:14:16

*This is a submission for [DEV Computer Science Challenge v24.06.12: One Byte Explainer](https://dev.to/challenges/cs).*

## Explainer :

Greedy algorithms are like a kid who always takes the biggest slice of cake first. They make the best choice now, but that might not leave enough cake for later. It's a quick way to solve problems, but sometimes being greedy isn't the best idea!


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

<!-- Explain a computer science concept in 256 characters or less. -->

## Additional Context

In computer science, a greedy algorithm is an algorithmic paradigm that follows the problem-solving heuristic of making the locally optimal choice at each stage. In other words, it makes the best possible decision at each step without worrying about future consequences. This approach is called "greedy" because it always chooses the option that seems to be the best at that moment.

<!-- Please share any additional context you think the judges should take into consideration as it relates to your One Byte Explainer. -->

<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

<!-- Don't forget to add a cover image to your post (if you want). -->

<!-- Thanks for participating! -->
Build and test a simple flutter web app using webdev and live-server
Tags: webdev, flutter, beginners, liveserver
Published: 2024-06-15 07:11:20

# Intro 
As a frontend web developer specializing in vue.js. This is my first try to build flutter web app .Let's begin!

## first try
### Step1: Create a flutter app 

To start, create a new Flutter project by running the following command:

```sh
flutter create test_demo_app
```

Note: **I have tried `flutter create testDemoApp` or `flutter create test-demo-app` Flutter CLI does not allow these naming conventions.Therefore I use `snake case` to start my project.**

Now We can use following command to run and demonstrate my web app

```sh
flutter run -d web-server
```

As You can see it serve on http://localhost:50367. 
open this URL in your preferred browser.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zpemalnrg30zv05frxni.png)
## Now We build the App

```
flutter build web
```

This will generate `build/web` folder.

## Testing the built App

To test if the build is successful, you can use `live-server`.First, install `live-server` globally.

```sh
npm install --global live-server
```

Then navigate to the build directory and start the server: 

```sh
cd build/web
live-server . 
```

Now You'll see the same result as when you ran `flutter run -d web-server`.

Note : **you'll see `index.html` in `build/web`.Maybe you'll try `live-server index.html`.You may see an empty page.Ensure you run `live-server` from the `build/web` directory without specifying `index.html`.**

## What is alternative? Using similar package in Dart?

If you prefer using a package in Dart rather than `live-server`, you can try `webdev`

You can install it globally with the following command.

```sh
dart pub global activate webdev
```

Then in you project folder,run: 

```sh
webdev serve
```
## Troubleshooting `webdev`

If you encounter problems when trying `webdev`,It might be because the global installation is saved in the `.pub-cache` folder.You need to add the following path to your `.zshrc` or `.bashrc`:

```sh
export PATH="$PATH":"$HOME/.pub-cache/bin"
```

## Still having problem ?
If your CLI tool indicates that you need a dependency on `build_runner` and `build_web_compilers` in `pubspec.yaml`

You can edit `pubspec.yaml` and retry this.
Here is an example of `pubspec.yaml`:

```
name: your_project_name
description: A new Flutter project

publish_to: 'none' # Remove this line if you want to publish to pub.dev

version: 1.0.0+1

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2

dev_dependencies:
  flutter_test:
    sdk: flutter

  build_runner: ^2.4.0 // add this to pubspec.yaml
  build_web_compilers: ^4.0.4 // and then add this to pubspec.yaml
```

Now try `webdev serve` again.
https://www.cfx-tebex.com/product/better-scoreboard-fivem/
Published: 2024-06-15 07:05:15

Better Scoreboard Fivem is a popular modification that enhances the default scoreboard with additional features and functionalities. It can display a wider range of information such as player job, cash balance, ping, kill/death ratios, and more. Some Better Scoreboards even integrate with other server scripts or frameworks like ESX and QBcore, providing an even more comprehensive overview of the game.
What I learnt from taking charge on a complex backend feature
Tags: learning, javascript, career, discuss
Published: 2024-06-15 06:56:29

I have a short story to share with you about my recent journey in leading a complex feature's development for the first time. 

Recently, for a project I was attached to, I was tasked with a big backend feature, which involved the construction of a few endpoints in TypeScript for the frontend to query and retrieve data from. That, I thought was the sole scope of the tasks ahead.

Boy was I mistaken.

This was the first time I had to take charge on such a complex feature. I was worried - could I be trusted to complete this task with the accuracy my project manager expected? The stakes were high.

## The Story
In the beginning, I felt like the task ahead should be smooth and easy. Just take about an hour to obtain and digest the requirements, jot everything down and plan out the endpoints. Sounds simple.

But the more I delved into this feature, the more complicated it became. More and more requirements, constraints and considerations started to pop up, and what was originally a simple task became a totally different monster. I spent a total of 5 days planning, gathering requirements again, hopping on calls and understanding the user flow more and more.

When the requirements and backend work that needed to be done became quite intense, it felt quite overwhelming for myself. I wasn't sure if I could surmount this challenge alone, as my other teammates were occupied with other tasks at that time.

But slowly, I decided to adopt a different mindset towards this problem. I started to adapt and saw the work as a challenge to myself!

And so I continued planning and designing the APIs for a few more days, and eventually, I managed to segregate everything out into respective components - scheduled cron jobs to update certain fields, cron jobs to update the database based on certain criteria as well as the constructed endpoints all ready for business!

## Morale of the story
Overall, yes I struggled quite a bit, but as one of my supervisors once told me, "Sometimes, you have to bring your feet to the fire in order to truly learn something".
This statement has never rang more true and I felt great after surmounting this challenge, even managing to construct quite an extensive piece of documentation along the way.

To progress further in our careers, in life; we cannot be afraid of such challenges! We need to adapt, push through and believe that after all this struggle, we will come out of it stronger! As long as we persevere (which I know can be tough when you are completely lost), we will see the light at the end of the tunnel!

To those who are currently in that position, I want to say, press on! The end is near for your tasks and trust me, the rewards you'll reap from it will pay dividends in your experience and knowledge in the future!
Car for Rent Dubai
Published: 2024-06-15 06:54:13

If you're planning a trip to the vibrant city of Dubai and need convenient transportation, opting for a [car for rent in Dubai](https://carsforrent.ae/) is a perfect choice. With a wide range of options from luxury cars to budget-friendly vehicles, car rental services in Dubai cater to every traveler's needs. Renting a car offers the flexibility to explore the city's iconic landmarks, such as the Burj Khalifa, Palm Jumeirah, and the bustling markets of Deira, at your own pace. Moreover, the well-maintained roads and advanced infrastructure make driving in Dubai a pleasant experience. Whether you're in Dubai for business or leisure, having a rental car ensures a hassle-free and comfortable journey, allowing you to make the most of your time in this dazzling metropolis.
JavaScript: Currying Function
Published: 2024-06-15 06:44:14

```JS
function outsideFunction(num1){
    let acc = num1;
    return function innerFunction1(num2){
        acc+=num2;
        return function innerFunction2(num3){
            acc+=num3;
            return  acc;
        }
    }
}

outsideFunction(1)(2)(3);
```
Left-aligned headings in the hero section are the best
Tags: uidesign, webdev, discuss
Published: 2024-06-15 06:53:40

A non-exhaustive list of the best landing pages with the hero section heading left-aligned : 

## 1. Huly 

[![Huly Hero Section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1junin0ctkypssutftn8.png)](https://huly.io/)

## 2. Super Power

[![Super Power Hero Section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jbi3v87ye3e7qprfldnk.png)](https://superpower.com/)

## 3. GitHub

[![GitHub Hero Section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0j2udgr6z795du6cktg.png)](https://github.com/)

## 4. Twingate 

[![Twingate Hero Section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/crks1c3xnhmc5w4v7hxo.png)](https://www.twingate.com/)

## 5. Planet Scale

[![Planet Scale Hero Section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ivqwcc9ft4n7q5yh9m3.png)](https://planetscale.com/)

## 6. Linear 

[![Linear Hero Section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0rz4kplnveiun4eebtg.png)](https://linear.app/)

## 7. Shopify

[![Shopify Hero Section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6r1lzkortl2gtchmp3b9.png)](https://www.shopify.com/)

## 8. Obsidian 

[![Obsidian Hero Section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/10adb2vx9bt18jhvfhpz.png)](https://obsidian.md/)
The Unseen Heroes: Stories of Women Who Shaped the Tech World
Tags: history, womenintech, story
Published: 2024-06-15 06:47:17

While many of the early pioneers of computing are household names, some of the most critical contributions came from women whose stories are often less told. From the first algorithm to modern programming languages, these women have shaped the tech world in profound ways. Let’s uncover the fascinating and inspiring stories of these unseen heroes of technology.

👀 Click here to read more! -> [The Unseen Heroes: DevToys.io](https://devtoys.io/2024/06/14/the-unseen-heroes-stories-of-women-who-shaped-the-tech-world/)
Concurrency Pattern Pipeline
Tags: go
Published: 2024-06-15 06:40:24

Discussing concurrency or concurrency in Go programming,
In this chapter we will discuss one of the best practices for concurrency in Go, namely pipelines, which are one of the many concurrencies in Go. Go has several APIs for concurrency purposes, including goroutines and channels. By utilizing existing APIs we can create streaming data pipelines. the benefits are user I/O efficiency and CPU usage efficiency
Quantum Superposition Explored: Simulation Insights and Code Generation
Tags: devchallenge, cschallenge, computerscience, beginners
Published: 2024-06-15 06:36:06

*This is a submission for [DEV Computer Science Challenge v24.06.12: One Byte Explainer](https://dev.to/challenges/cs).*

## Explainer
![A simulator to understand the idea of superposition](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/853tsapl54pzq3elnsbr.png)
[Simulate Now
](https://codepen.io/siam-al-asad/full/OJYzyLj)
Quantum bits (qubits) can be 0, 1, or both simultaneously due to superposition. This property empowers quantum computers to simulate complex systems and solve problems exponentially faster than classical computers can.

## Additional Context

Visit [this site](https://codepen.io/siam-al-asad/full/OJYzyLj) for real-time simulations and quantum code (using Quiskit) to grasp this concept hands-on.
The simulator was constructed in just 3h, with existing bugs and room for improvement.
Iris Amabile Beaudeau is a Shoplifter - 785 Maple Ridge Road
Published: 2024-06-15 06:26:04

Iris Amabile Beaudeau is a shoplifter. I was at an electronics store. Iris Amabile Beaudeau age 7 slipped a video game into her wool tights. The female store clerk tried to stop her. Father Jonathan Beaudeau shoved the woman aside and screamed "Don't you dare touch my little girl!" We tried to call the cops, but the Beaudeaus ran. Iris Beaudeau laughed and said "What you gonna do? I'm 7 years old."

Jonathan Beaudeau has a history of crime. He was caught doing a scam called Pareto Frontier, some scam operation about engineering consulting. Iris Beaudeau has a history of juvenile delinquency. At school she threw a rock at a teacher and was expelled. The other children called her "Iris the Virus Beaudeau", because of STD she has from the father. Jonathan Beaudeau was accused several times of sexual misconduct. They are at 785 Maple Ridge Road, Palm Harbor, FL 34683. 

Iris Beaudeau birthday is June 21. Normally they go to the grandmother's house in Queens at 391 Spruce Lane. Sometimes Chantal Beaudeau the grandmother goes to Florida. These people are dangerous. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t94k97qqhu0rmdqcczhk.jpg)
Learning CS61A
Published: 2024-06-15 06:21:52


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xpx83dh8cf3t9jntxdsp.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gd8ilxdvotdc9qnseide.png)
omg this code is fucking brilliant!!!how smart the people who create is!!!
The Evolution of Coding: From Punch Cards to Quantum Computing
Tags: programming, quantum, ai
Published: 2024-06-15 06:17:33

Imagine a time when programming wasn’t just about typing away on a keyboard but involved meticulously punching holes into cards. This was the reality for early programmers, who navigated a world where every line of code was a physical object. Fast forward to today, and we’re on the brink of quantum computing. This narrative will take you through the riveting journey of programming, from its humble beginnings to its promising future.

👀 Read the full story here! -> [The Evolution of Coding - DevToys.io](https://devtoys.io/2024/06/14/the-evolution-of-coding-from-punch-cards-to-quantum-computing/)
Method Chaining in Mongoose: A Brief Overview
Tags: mongodb, mongoose, express, typescript
Published: 2024-06-15 06:15:43

Method chaining is a powerful feature in Mongoose that allows you to chain multiple query methods together to build more complex queries in a clean and readable manner. By chaining methods, you can perform multiple operations in a single statement, making your code more concise and expressive.

### Example of Method Chaining

Suppose you have a User model and you want to find users who are older than 30, select their names and email addresses, sort them by their age in descending order, and limit the results to 10 users. Here's how you can achieve this using method chaining:

```javascript
const mongoose = require('mongoose');

// Define the User schema
const userSchema = new mongoose.Schema({
  name: String,
  email: String,
  age: Number,
});

// Create the User model
const User = mongoose.model('User', userSchema);

// Method chaining example
User.find({ age: { $gt: 30 } }) // Find users older than 30
  .select('name email')         // Select only the 'name' and 'email' fields
  .sort('-age')                 // Sort by age in descending order
  .limit(10)                    // Limit the results to 10 users
  .exec((err, users) => {       // Execute the query
    if (err) {
      console.error(err);
    } else {
      console.log(users);
    }
  });
```
### Explanation of Chained Methods

  - find({ age: { $gt: 30 } }): This method starts the query by finding all users older than 30.

  - select('name email'): This method modifies the query to return only the name and email fields of the matching documents.

  - sort('-age'): This method sorts the results by age in descending order. The - sign before age indicates descending order.

  - limit(10): This method limits the number of documents returned to 10.

  - exec((err, users) => { ... }): This method executes the query and returns the results in the callback function.

By chaining these methods, you create a pipeline that processes the query step by step, making the code easier to read and maintain. Method chaining in Mongoose not only makes your queries more concise but also enhances the readability and expressiveness of your code.

### Conclusion

Method chaining is a convenient feature in Mongoose that allows you to build complex queries in a clean and readable manner. By chaining multiple methods together, you can perform various operations on your data with ease, making your code more concise and efficient.
Background Removal Service
Tags: photoshop, imageediting, photoediting
Published: 2024-06-15 06:14:52


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ux1o2ybmqe54scpqlukw.jpg)Mypixeler specializes in professional background removal service and photo editing services, ensuring high-quality results for all your image editing needs.

Background Removal: Effortless Solutions for Perfect Photo
Background removal service involves the process of using software tools like Adobe Photoshop to eliminate the background from an image. It is commonly used in e-commerce, graphic design, and photography to create clean, professional-looking images. Photoshop offers various tools and techniques for background removal, including the Magic Wand tool, Quick Selection tool, Pen tool, and Layer Masks. Mypixeler allow users to precisely select and remove backgrounds, enhancing the focus on the subject of the image. Background removal service using Photoshop provides a versatile solution for improving image quality and achieving specific aesthetic goals in various industries. Visit over site:- [Mypixeler.com](https://mypixeler.com/)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m4ddrieh1cw6ca1w7u95.jpg)
Illuminate your reflection with the LED Smart Bathroom Mirror.
Published: 2024-06-15 06:12:13

What specifically is the LED Smart Bathroom Mirror?

If you like to have best view of your self in the Bathroom, then the LED Smart Bathroom Mirror is ideal for your. This innovative Mirror appear with amazing features that may supply you with the clearer representation. The LED Smart Bathroom Mirror is a sort of Mirror which has built-in LED lighting that will illuminate your representation, rendering it brighter and most visible. Which means that you will get the clearer view of your face, locks, and cosmetics.

The Advantages of the LED Smart Bathroom Mirror
One associated with the advantages of the LED Smart Bathroom Mirror is so it produces best exposure in low light circumstances. With the strong LED lighting, there is no need to bother about shadows as bad lights whenever attempting to read your self in the Mirror. Furthermore, LED lights is considerably energy-efficient than conventional light bulbs, to help you use the LED Smart Bathroom Mirror minus driving up your electricity bill.

An additional benefit is it is modified to your favored angle. You'll tilt it or straight down to have simply the right angle for your face and head. Because of this, you can observe your self best and get yourself a close view of that which you're starting, either you are using makeup products, shaving, as cleaning your teeth.

Finally, LED Smart Bathroom Mirrors are safer than regular Mirrors. These are typically shatterproof, meaning that they don't break effortlessly. This decreases the possibility of damage if the Mirror unintentionally falls as is bumped.

2.jpg

How to Use the LED Smart Bathroom Mirror
Utilizing the LED Smart Bathroom Mirror is super easy. First, you will need to connect it in to an electrical provider. Then, start the toilet mirror led light utilising the change found on the Mirror. You'll adjust the angle of the Mirror by using the knob as lever regarding the straight back of the Mirror. You may adjust the brightness of the LED lighting to your desires.

The Quality of the LED Smart Bathroom Mirror
The LED Smart Bathroom Mirror is the high-quality product made with durable materials. It is built to final, and you may be certain it'll supply you with a definite representation for some time. The LED lighting is durable, and the Mirror is shatterproof, and that means you will not have to be concerned about changing it any time soon.

Also, the LED Smart Bathroom Mirror is created to become low repair. You do not need any unique cleansing products as hardware to keep it clean. Just wipe it straight down with the wet fabric to eliminate any dust as grime.

3.jpg

The Applications of the LED Smart Bathroom Mirror
The LED Smart Bathroom Mirror is ideal for whoever wishes to increase the lights in their Bathroom. It is particularly great for individuals who put makeup products or want to shave frequently. Furthermore, LED Smart Bathroom Mirrors are excellent for families with offspring whom could inadvertently bump or knock over traditional Mirrors.

Source: https://www.kahnpan.com/Led