teleren/devto huggingface dataset:
It's all just a little bit of history repeating
Tags: opinion, webdev, ai, watercooler
Published: 2023-10-16 16:15:15

---
title: It's all just a little bit of history repeating
published: true
description: Browsing the Internet, I found a thread about a "funny" way to trick AI into saying whatever you want… and it's the oldest trick in the (web development) book!
tags: opinion,webdev,ai,watercooler
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9a7zsh30wzqwrkiovnpu.png
canonical_url: https://alvaromontoro.com/blog/68043/its-all-just-a-little-bit-of-history-repeating
---


Yesterday, browsing the Internet, I came upon a [tweet](https://twitter.com/d_feldman/status/1713019158474920321) from [Daniel Feldman](https://twitter.com/d_feldman) that included the following image:


![Screenshot of conversation by Daniel Feldman with ChatGPT. Daniel sends a screenshot of a resume to ChatGPT and asks the AI to read the resume and if he should hire the person. ChatGPT replies 'Hire him'](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dc8sisw6ywcpxnj27pus.png)

In the thread, Daniel explained how he found a way of tricking ChatGPT into replying to whatever he wanted when analyzing a picture... and the trick is so simple and old that is even funny.

This is an example of the proverb "Man is the only animal that trips twice over the same stone" or how Software Engineers have no historical memory and repeat the same mistakes over and over again.

In the '90s and early 2000s, when the Internet as we know it was growing and SEO started to gain more and more importance, Webmasters used to add "transparent" keywords at the bottom of the document so search engines would associate the page with those keywords and rank higher. This was considered a bad practice and a shady way of tricking web crawlers (later, [they penalized this behavior](https://www.searchenginejournal.com/hidden-text-seo/208866/)).

Fast forward 15-20 years... and it's the keywords trick all over again! We are making the same mistake! Adding an "almost transparent" sentence on an image will trick the omniscient AI into saying whatever you want. This wouldn't be a problem if it weren't because of how many people seem to trust unquestioningly what AI/LLMs repeat.

This type of trickery will surely be fixed soon, but it highlights an inherent problem of software development's "move fast, break things" culture. Moving fast often comes at the cost of ignoring sound and well-known industry standards and practices.

As software engineers, we need to do better. And as AI consumers, we need to be wary of the results we get. Many people/companies rely increasingly on systems that fall for the oldest trick in the book (literally).

---

It all reminded me of the song "History Repeating" by the Propellerheads featuring Miss Shirley Bassey:

{% youtube yzLT6_TQmq8 %}

---

Source of the image and the thread that this post references: [https://twitter.com/d_feldman/status/1713019158474920321](https://twitter.com/d_feldman/status/1713019158474920321).
HacktoberFest 4th PR accepted.
Tags: hacktoberfest23
Published: 2023-10-16 16:00:00


![Congratulations! Your fourth and final Hacktoberfest 2023 pull/merge request has been approved as a quality contribution.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u8uzncgixypp1hii0x9b.jpg)

## Pull Request #4

I made some more CSS art cards for the Memory Game project. I'm up to ten cards for that game. 

I am still working on a transcribing a podcast for another pull request. 

I have met the 4PRs accepted requirement for this year. There's few more things I'd like to do but I feel good about what I've done so far. 

[PR#1](https://github.com/Virtual-Coffee/virtualcoffee.io/pull/1004#event-10529755407)

[PR#2](https://github.com/cmcrawford2/memory-game/pull/6)

[PR#3](https://github.com/TarynMcMillan/Tiny-Troves-of-Dev-Wisdom/pull/9)

[PR #4](https://github.com/cmcrawford2/memory-game/pull/10#issuecomment-1763267719)

Keep Hacking.
Top 5 AI Video Generators Of 2023
Tags: ai, genai, automation, productivity
Published: 2023-10-16 16:02:30

Welcome to the future of video content creation! In the fast-evolving landscape of **artificial intelligence**, 2023 marks a significant turning point. The spotlight is on **Generative AI**, a revolutionary technology that effortlessly conjures up synthetic data like images, audio, code, and video, all on its own.


**AI video generators** have become indispensable allies for content creators and businesses seeking to mesmerize their audiences with compelling visual content. Our journey today delves into the captivating world of AI video generators, the unsung heroes of modern content creation, marketing, and more. These cutting-edge tools are shaping the way we tell stories and captivate audiences, whether through cinematic brilliance or dynamic virtual presentations.

As we embrace this ever-shifting technological frontier, we unveil the Top 5 AI Video Generators of 2023, the trailblazers redefining visual storytelling and audience engagement. 

In this [article](https://www.techdogs.com/td-articles/miscellaneous/top-5-ai-video-generators-of-2023), we'll take you on a tour of five exceptional AI video generators that are revolutionizing the game in 2023. Click [here ](https://www.techdogs.com/td-articles/miscellaneous/top-5-ai-video-generators-of-2023)and let's dive in and explore the magic of AI-driven video generation, dissecting the features that position these five tools at the forefront of the pack this year.
Scroll Driven Animations - we don't need any JS
Tags: css, webdev, tutorial, programming
Published: 2023-10-16 15:35:00

Scroll Driven Animation is the future of CSS animation 

We shared some crazy examples of scroll-driven animation. Watch this video and be inspired 

{% youtube rgDonvHT4Fg %}

---
---

### Bunch of demos and source Code 

{% twitter 1713611084832420019 %}

---


### Important Links 

Demos  
[https://scroll-driven-animations.style/](https://scroll-driven-animations.style/)

Blog by Chrome
[https://developer.chrome.com/articles/scroll-driven-animations/](https://developer.chrome.com/articles/scroll-driven-animations/)

animation-timeline
[https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline#browser_compatibility](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline#browser_compatibility)

read more blog

- [https://developer.mozilla.org/en-US/blog/scroll-progress-animations-in-css/](https://developer.mozilla.org/en-US/blog/scroll-progress-animations-in-css/)
- [https://www.w3.org/TR/scroll-animations-1/](https://www.w3.org/TR/scroll-animations-1/)
- [https://github.com/w3c/csswg-drafts/blob/main/scroll-animations-1/EXPLAINER.md](https://github.com/w3c/csswg-drafts/blob/main/scroll-animations-1/EXPLAINER.md
)
- [https://codelabs.developers.google.com/scroll-driven-animations#0](https://codelabs.developers.google.com/scroll-driven-animations#0)
Docker - Use Logging Drivers for Enhanced Logging
Tags: docker, programming, beginners, tutorial
Published: 2023-10-16 15:30:00

Docker provides various logging drivers that allow you to customize how container logs are collected and stored. By selecting the appropriate logging driver, you can gain better visibility into containerized applications, centralize logs, and integrate with monitoring and log analysis tools.

Here are some commonly used Docker logging drivers:

1. **json-file (default):** This driver writes container logs to JSON files on the host machine. It's suitable for local development and small-scale applications.

2. **journald:** On systems using systemd, you can use the journald driver to send logs to the systemd journal. This is a good choice for systems that already use journald for logging.

3. **fluentd:** Fluentd is a popular open-source log collector that can receive logs from Docker containers using the fluentd logging driver. It's versatile and can be used to forward logs to various destinations, including Elasticsearch, Logstash, and more.

4. **syslog:** The syslog driver sends logs to the syslog daemon, which can then be configured to forward logs to a central syslog server. This is useful for integrating Docker logs into an existing centralized logging infrastructure.

5. **gelf:** The GELF (Graylog Extended Log Format) driver sends logs to Graylog, a centralized log management tool. It's valuable for comprehensive log analysis and monitoring.

To specify a logging driver when running a container, you can use the `--log-driver` option:

```bash
docker run --log-driver <driver-name> my-container
```

For example, to use the syslog driver:

```bash
docker run --log-driver syslog my-container
```

Each logging driver has its own configuration options, which you can customize to suit your needs. Using the '- log-opt' option, you can configure options in the Docker daemon configuration (`/etc/docker/daemon.json`) or on a per-container basis.

Using the appropriate logging driver and configuring it properly allows you to better manage and analyze the logs generated by your Docker containers, making it easier to troubleshoot issues and gain insights into your applications.
Transfer Data or Token to different chain Easily 🔥
Tags: erc20, ethereum, blockchain, web3
Published: 2023-10-16 15:23:29

Send Tokens or data from one Blockchain Network to Another Easily

Let's understand how ?

Transfering data as well as tokens from one chain to another can be done using chainlink CCIP , but what is chainlink CCIP ?

> Chainlink CCIP provides a single simple interface through which dApps and web3 entrepreneurs can securely meet all their cross-chain needs. You can use CCIP to transfer data, tokens, or both data and tokens across chains.



Now, let's understand how we can use chainlink CCIP ?

> First , you need to go to the chainlink docs and copy the sender contract & paste in your remix ide

> Then, you will be needed the router address of the blockchain network from which you want to send the data to another chain

For this example : I have choosen sepholia testnet

> Then add the Link token address and click on transact

> After you deploy the contract , pay some link token to the contract




Now, you need to go again to the chainlink docs and paste the receiver contract in the remix ide:

> Add the blockchain network router address in which you want to receive the data or tokens

In this example : I have choosen polygon mumbai

> Next click on transact


Final Steps:

> Now we will send some data, click on the sendmessage function
> Then add the chainselector which you can get from the chainlink ccip docs
> Add the receiver contract address and the message you want to send
> Click on transact, that's it
> Now you need to wait for some couple of minutes for getting transaction success
> Once you get the trasnaction success in the CCIP explorer
> Go to the receiver contract, click on getlastmessagereceived function to read the message


Amazing, you have successfully transfered data from one blockchain network to another 🎉

** Rememeber when I was testing It took me lots of time to get the transaction success message in the CCIP explorer so need to wait for couple of minutes **


All the best 👍
Desperte Sua Criatividade com o Criativo Dahora: Cupom Imperdível!
Tags: bancodeimagens, php, startup, software
Published: 2023-10-16 15:15:01


**Desperte Sua Criatividade com o Criativo Dahora: Cupom Imperdível!
**

Quando a criatividade flui, a magia acontece. E agora, com o Criativo Dahora, essa magia está mais acessível do que nunca! Prepare-se para se surpreender com um mundo de possibilidades visuais.

**Uma Oportunidade Única: Cupom CRIATIVO50!**

Estamos eufóricos em compartilhar essa notícia incrível com você! Ao se tornar parte da família Criativo Dahora e utilizar o cupom CRIATIVO50, você terá acesso a um desconto fenomenal de 50% no primeiro mês! Mas atenção, temos uma quantidade limitada de apenas 200 cupons disponíveis.

**Como Garantir o Seu Cupom**

1. Acesse [Criativo Dahora](https://criativodahora.com.br/).
2. Escolha o plano que mais se alinha com a sua criatividade.
3. Insira o código mágico CRIATIVO50 no momento da compra.
4. Voilà! Sua jornada criativa está prestes a decolar!

**O Mundo de Possibilidades Está ao Seu Alcance**
Com o Criativo Dahora, sua criatividade não tem limites. Explore uma incrível variedade de arquivos e imagens cuidadosamente selecionados para inspirar e transformar seus projetos em verdadeiras obras de arte.

**Não Deixe a Oportunidade Escapar!**
Esta é uma chance única de dar vida às suas ideias com um desconto especial. Mas lembre-se, só temos 200 cupons disponíveis, e quando eles se forem, a magia também se encerra.

[Acesse o Criativo Dahora Agora!](https://criativodahora.com.br/)

Prepare-se para uma jornada emocionante rumo à criatividade sem limites. Juntos, vamos tornar suas ideias realidade!

Observação: Esta oferta é válida enquanto durarem os 200 cupons disponíveis.
PgAdmin4:Connecting to a Database Server
Tags: webdev, beginners, programming, python
Published: 2023-10-16 15:12:33

Connecting to a PostgreSQL database server is the first step in unleashing the power of pgAdmin 4. Here's a step-by-step guide on establishing a connection:

### Step 1: Launch pgAdmin 4

After a successful installation, launch pgAdmin 4. You can access it through your web browser by navigating to the provided URL (usually http://localhost:5050).

### Step 2: Add a Server

In the top-left corner, locate the "Add New Server" button. Click on it to open the server configuration window.

### Step 3: General Settings

- **Name**: Give your server a meaningful name for easy identification.
- **Connection**: In the "Connection" tab, enter the connection details, including the host (usually localhost), port (default is 5432), and maintenance database (typically postgres).

### Step 4: Connection Security

In the "Connection" tab, you'll find options for connection security. Depending on your setup, you may need to enter authentication details such as a username and password.

### Step 5: Save and Connect

Click "Save" to save your server configuration. To establish a connection, select your server from the left sidebar and click the lightning icon or "Connect Server" from the context menu.

### Step 6: Explore Your Database

Congratulations! You are now connected to your PostgreSQL database server. Explore the server dashboard to view databases, schemas, and other server-related information.

---

Remember, pgAdmin 4 allows you to manage multiple database servers seamlessly. Repeat these steps for each server you want to connect to, and you'll have a centralized location for overseeing all your PostgreSQL databases.

Stay tuned for the next section, where we'll dive into executing queries using the powerful Query Tool in pgAdmin 4!
ExpressJS template generator! #expressjs #npm #opensource #hacktoberfest
Published: 2023-10-16 15:06:43

At present I am working on an ExpressJS template generator and planning to host this on #npm.
GitHub Link: https://github.com/parthasdey2304/expressapp-generator.git/

Please star and fork the repository!!
I need it to have 200 stars✨.
Do it ASAP!!!!

Follow me on:
LinkedIn: https://linkedin.com/in/sarathiparth/
GitHub: https://github.com/parthasdey2304/
What is software testing? What we need to know about software testing? What is relevance of software testing?
Published: 2023-10-16 14:30:32

What is software testing?
Software testing is process of evaluating a software application with intent of identifying and fixing defects/ errors. It ensures that the software application meets the end user requirements with quality user experience, with minimum or no defects. Testing can be done manually or automated using tools.

What we need to know about software testing?
We need to know different types of functional and non-functional types of testing listed below.
 
Types of functional testing
- Unit testing 
- Integration testing 
- System testing
- Regression testing
- User acceptance testing

Below are few non-functional testing types plays important role in quality of software application- 
- Performance testing
- Security testing 
- Scalability Testing 
- Usability testing


What is relevance of software testing -
Software testing is relevant today for various reasons.
- Software testing contributes in delivering high quality and secured product to customer
- Early detection of bugs and fixes in software development life cycle ensures cost efficiency 
- Functional and non functional testing ensures high customer satisfaction delivering quality product
- Ensures compliance in life saving/ critical sectors like healthcare, banking and aviation
How to access private properties of a class outside the context of the class itself (PHP)
Tags: php
Published: 2023-10-16 14:57:24

One way to access the private properties of a class outside of its context is closure.

Example:

```php
<?php

class Worker {

    public function __construct(
        public readonly string $name,
        private readonly float $hourlyRate
    ) {
    }

    public function calculateSalary(float $hours): float|int
    {
        return $this->hourlyRate * $hours;
    }
}

$bob = new Worker('Bob', 3.5);

$bobHourlyRate = (function(): float {
    return $this->hourlyRate;
})->call($bob);
```

But I want to warn you right away, it's worth being extremely careful to use accesses to private class properties in one way or another, since these properties probably have this scope for a reason and the author of the code would not want these properties to be used outside.
❤✨ Unleash Your Creativity with Stunning Design usng HTML ,CSS,JAVASCRIPT,THREE.JS,SHERY.JS! ✨❤
Tags: webdev, javascript, programming, beginners
Published: 2023-10-16 14:46:27

live website link:-https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbUNsWmRNWnVQYTRoTTlOSWE0RjYxcEFROGppZ3xBQ3Jtc0ttX3ZWNFZvSXlYaDNRbVFrc2g0TzZ0bC0tYXV3ekNMaG00cWszSFlnb3hJU0RXSHAwRjJFdG56ZGxtNHpFUU1oYUI4QWwyUmMzVUo4TTlqYnhGdUl5c3FlWk45MjlyYWdQVFdLSmN6Q291aFpDYzNyVQ&q=https%3A%2F%2Fcrazy-website.netlify.app%2F&v=2TRS_h6rLhw

Youtube link:-https://youtu.be/2TRS_h6rLhw?si=sRkhcaqk38M0fD-D  
Please Do like ,Subscribe , Share and Comment!

Github link:-https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbkZfOVJfOXZHMHBnUFJ1QkFHUlB0c3NQWHc2UXxBQ3Jtc0ttQnZyWjUyOHpaS19ybXZyX3JKSkZldmRtSXM2UFZmVmszM0pWekNyOVZfS1JpaTRIdkswWFZ2anByTEtuNFhLa29IVjFPZWxhZDVQVV9JNVlMaUliMHQzZDhrQ2d4WlN5N1Z0d2tVWi1JV25BTXhobw&q=https%3A%2F%2Fgithub.com%2FPrinceNitrr24%2FCrazy-website&v=2TRS_h6rLhw
How to Work With a Large Legacy Codebase Like a Pro
Tags: hacktoberfest, hacktoberfest23
Published: 2023-10-16 14:43:25



**1. Understand the Nature of Legacy Code:**
   - Recognize that legacy code results from past decisions and should be handled with care and respect.

**2. Be Curious, Not Critical:**
   - Avoid criticizing the code; instead, be curious and empathetic.
   - Seek to learn the reasons behind coding decisions and ask colleagues for explanations.

**3. Familiarize Yourself with the Platform:**
   - Before diving into coding, explore the entire platform, considering aspects like speed and user experience.
   - Understand the users' perspectives to better align your work with their needs.

**4. Focus on the Most Important Parts:**
   - Apply the Pareto principle (80/20 rule) to prioritize files and folders in the codebase.
   - Concentrate on critical files like config files, folder structures, and test files for better understanding.

**5. Study Workflows:**
   - Learn the flow of operations within the codebase, understanding how components interact.
   - Trace how various parts of the codebase connect to enhance your comprehension.

**6. Research Libraries and Frameworks:**
   - Investigate any libraries and frameworks used in the codebase, both internal and external.
   - Seek help from colleagues who have experience with these libraries if needed.

**7. Understand Hardcoded Code:**
   - Recognize that some code may appear unnecessary but plays a vital role in control flows or mathematical expressions.
   - Document the purpose and reasoning behind such code for future reference.

**8. Extend Before Refactoring:**
   - Rather than immediately refactoring, start by extending the codebase to meet business needs.
   - Ensure that any new features added don't inherit the undesirable traits of the legacy codebase.

**9. Document Your Journey:**
   - Document your process of understanding the codebase, from initial setup to exploring its various parts.
   - Share this documentation with your team to enhance onboarding and make future work more accessible.

**10. Be Patient and Collaborative:**
    - Take your time to understand the codebase and its context before making significant changes.
    - Encourage collaboration and improvements in documentation to benefit both current and future team members.

By following these guidelines, you can navigate a large legacy codebase effectively and deliver the features required by your organization and end users.
Tech insight
Tags: music, ai, technology
Published: 2023-10-16 14:34:44

👋 Hey there, tech enthusiasts! Welcome back to [TechInsightGuru! ](https://techinsightguru.com)Today, we're diving headfirst into the exciting world of Artificial Intelligence (AI) and exploring how it's shaping the future of technology at [TechInsightGuru](https://techinsightguru.com). 🤖💻

AI is not just a buzzword anymore; it's revolutionizing the way we live, work, and play. From your smartphone's predictive text to self-driving cars and smart homes, AI is everywhere. Let's take a peek at the incredible impact it's making and what the future holds.

The AI Boom:

🌟 Over the past decade, AI has gone from being a niche research topic to a mainstream technology that's transforming various industries. It's like a rocket 🚀 that's blasting off into the future.

1. 🏦 Banking and Finance: AI-powered algorithms help detect fraudulent transactions, analyze investment opportunities, and provide personalized financial advice. Learn more about AI in banking and finance at [TechInsightGuru](https://techinsightguru.com).

2. 🏥 Healthcare: AI assists in diagnosing diseases, managing patient records, and even predicting outbreaks. Explore AI's impact on healthcare on [TechInsightGuru](https://techinsightguru.com).

3. 🚗 Automotive: Self-driving cars are no longer science fiction. AI systems are being used to navigate and ensure passenger safety. Dive into the world of AI in automotive tech at [TechInsightGuru](https://techinsightguru.com).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vw49vbvpkyhy6ruqedcv.jpg)[](url)
Tech insight
Tags: music, ai, technology
Published: 2023-10-16 14:34:41

👋 Hey there, tech enthusiasts! Welcome back to [TechInsightGuru! ](https://techinsightguru.com)Today, we're diving headfirst into the exciting world of Artificial Intelligence (AI) and exploring how it's shaping the future of technology at [TechInsightGuru](https://techinsightguru.com). 🤖💻

AI is not just a buzzword anymore; it's revolutionizing the way we live, work, and play. From your smartphone's predictive text to self-driving cars and smart homes, AI is everywhere. Let's take a peek at the incredible impact it's making and what the future holds.

The AI Boom:

🌟 Over the past decade, AI has gone from being a niche research topic to a mainstream technology that's transforming various industries. It's like a rocket 🚀 that's blasting off into the future.

1. 🏦 Banking and Finance: AI-powered algorithms help detect fraudulent transactions, analyze investment opportunities, and provide personalized financial advice. Learn more about AI in banking and finance at [TechInsightGuru](https://techinsightguru.com).

2. 🏥 Healthcare: AI assists in diagnosing diseases, managing patient records, and even predicting outbreaks. Explore AI's impact on healthcare on [TechInsightGuru](https://techinsightguru.com).

3. 🚗 Automotive: Self-driving cars are no longer science fiction. AI systems are being used to navigate and ensure passenger safety. Dive into the world of AI in automotive tech at [TechInsightGuru](https://techinsightguru.com).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vw49vbvpkyhy6ruqedcv.jpg)[](url)