teleren/devto huggingface dataset:
Sklep z Obrazami i Dekoracjami Ściennymi - Feeby
Tags: design
Published: 2024-06-04 15:34:49

Witamy w Feeby - Twoim ulubionym sklepie z obrazami, dekoracjami ściennymi i tapetami! Nasz sklep z dekoracjami ściennymi oferuje szeroki wybór produktów, które odmienią każde wnętrze. Odkryj naszą kolekcję i znajdź idealne obrazy online, które podkreślą charakter Twojego domu.

Sklep z Obrazami - Sztuka na Wyciągnięcie Ręki
Feeby to sklep z obrazami, który zapewnia najwyższą jakość i różnorodność. Znajdziesz u nas obrazy, które idealnie wpasują się w nowoczesne, klasyczne oraz minimalistyczne wnętrza. Nasze obrazy online są dostępne w różnych stylach, od abstrakcji, przez pejzaże, po portrety. Dzięki temu każdy znajdzie coś dla siebie.

Sklep z Dekoracjami Ściennymi - Twórz Unikalne Przestrzenie
Nasz [sklep z dekoracjami ściennymi](https://feeby.pl/) to miejsce, gdzie możesz znaleźć inspiracje do każdego pomieszczenia. Oferujemy dekoracje, które nadadzą Twoim ścianom wyjątkowego charakteru. Wybieraj spośród różnorodnych plakatów, obrazów i paneli ścianowych, które doskonale komponują się z każdym stylem wnętrza.

Sklep z Tapetami - Nowoczesne Rozwiązania dla Twoich Ścian
Feeby to również sklep z tapetami, gdzie znajdziesz najnowsze trendy i klasyczne wzory. Nasze tapety są idealnym rozwiązaniem dla tych, którzy chcą szybko i efektownie odmienić swoje wnętrza. Wysokiej jakości materiały i łatwość aplikacji sprawiają, że nasze tapety są doskonałym wyborem dla każdego domu.

Fototapety - Wyjątkowe Dekoracje dla Każdego
Fototapety to doskonały sposób na wprowadzenie do wnętrza odrobiny magii. W naszym sklepie z fototapetami znajdziesz szeroką gamę wzorów, które zadowolą nawet najbardziej wymagających klientów. Od motywów roślinnych, przez krajobrazy, po artystyczne kompozycje - nasze fototapety uczynią Twoje wnętrza niepowtarzalnymi.

Dlaczego Feeby?
Feeby to sklep, który stawia na jakość, różnorodność i zadowolenie klientów. Oferujemy szybką wysyłkę, atrakcyjne ceny i profesjonalną obsługę. Niezależnie od tego, czy szukasz obrazów online, tapet czy dekoracji ściennych - Feeby to najlepszy wybór.
Odwiedź nasz sklep z obrazami, sklep z dekoracjami ściennymi, sklep z tapetami oraz sklep z fototapetami i odkryj, jak łatwo można odmienić swoje wnętrza. Feeby - Twoje miejsce na piękne dekoracje ścienne!
เริ่มต้น Quarkus 3 part 2.2 web bundler
Tags: quarkus
Published: 2024-06-04 15:21:06

หลังจากที่เราได้ serverside rendering Qute แล้วจากบทความก่อนหน้านี้ https://dev.to/pramoth/erimtn-quarkus-3-part-2-web-4bkm ในบทความนี้เราจะเอา javascript dependencies (npm) เข้ามาใช้ใน Qute template โดยใช้ตัวช่วยที่ชื่อว่า Web Bundler ซึ่งเจ้าตัวนี้จะใช้ mvnpm(ก็เหมือน webjar แต่ว่ามันสร้าง jar auto ฉนั้นมันจึงมี version ใหม่ๆมาเร็วเท่ากับใน npm registry เลยทีเดียว

ในบทความนี้เราจะลองทำ Hello world ด้วย AlpineJS กันครับ
เริ่มต้นเพิ่ม Web Bundler dependency ใน pom.xml ตามนี้
```xml
<dependency>
    <groupId>io.quarkiverse.web-bundler</groupId>
    <artifactId>quarkus-web-bundler</artifactId>
    <version>1.5.2</version>
</dependency>
```
จากนั้นเราก็ไปหา npm ที่เราจะใช้งาน แต่ว่าไปหาจากเวบ https://mvnpm.org/ นะครับ ก็ค้นหาชื่อตาม npm registry นั้นแหละ
จากนั้นก็เอามาใส่ใน pom.xml
```xml
<dependency>
	<groupId>org.mvnpm</groupId>
	<artifactId>alpinejs</artifactId>
	<version>3.14.0</version>
	<scope>provided</scope>
</dependency>
```
แน่นอนว่าไม่ต้อง restart quarkus เหมือนเดิม มันจะ load dependencies แล้ว reload ให้เลย
เจ้า Web Bundler จะไปหา js ที่เป็น entry point โดยจะหาจากไฟล์ใน src/main/resources/web/app/** 
ให้เราสร้างไฟล์ index.js ขึ้นมาโดยมี content โดย import Alpinejs มาใช้งานตามเอกสารของเขา ดังนี้

```javascript
import Alpine from 'alpinejs'
window.Alpine = Alpine
Alpine.start()
```

จากนั้นให้เอา `{#bundler /}` ไปใส่ใน hello.html

```html
<!DOCTYPE html>
<html lang="en">
<head>
    {#bundle /}
</head>
....
```
เมื่อเรา refresh /hello เราจะพบว่า js ของเราถูก import เข้าไปที่หน้า index พร้อมกับ dependencies!! ง่ายสุดๆ

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

ทดลองใส่ alpinejs ไปใน body

```html
<div x-data="{ count: 0 }">
    <button x-on:click="count++">Increment</button>

    <span x-text="count"></span>
</div>
```
refresh แล้วดูผลลัพธืได้ทันที ว้าววว

ปล. สำหรับใครที่หา dependencies mvnpm ไม่เจอให้ไปเพิ่ม repo ตามเอกสารจากเวบนี้นะครับ
https://docs.quarkiverse.io/quarkus-web-bundler/dev/advanced-guides.html
Search Component React
Published: 2024-06-04 15:11:38

```JS
import "./styles.css";
import React, { useEffect } from "react";
import { useState } from "react";
import axios from "axios";

export default function App() {
  const URL = `https://jsonplaceholder.typicode.com/todos`;
  const [todoList, setTodoList] = useState([]);
  const [text, setText] = useState("");
  const [filteredTodos, setFilteredTodos] = useState([]);

  useEffect(() => {
   
    const todos = async () => {
      let todo = await fetch(URL);
      let data = await todo.json();
      console.log(data);
      setTodoList(data);
      setFilteredTodos(data);
    };
    todos();
  }, []);
  // console.log(todoList);

  const changeText = (e) => {
    setText(e.target.value);
    // console.log(todoList.length);
    let filteredTodo = todoList.filter((todo) => {
      return todo.title.toLowerCase().includes(e.target.value.toLowerCase());
    });
    console.log("filtered", filteredTodo);
    setFilteredTodos(filteredTodo);
  };

  return (
    <div className="App">
      <input
        type="text"
        value={text}
        onChange={(e) => {
          changeText(e);
        }}
      ></input>

      <ul>
        {filteredTodos.map((todo) => {
          return <li key={todo.id}>{todo.title}</li>;
        })}
      </ul>
    </div>
  );
}
```
cryptogram-assistant
Published: 2024-06-04 15:00:01

I wrote this in React at the start of my new learning journey back in 2021. The goal was to be able to format the very difficult cryptograms that I was trying to solve in my puzzle magazines. All I needed was a way to enter the cryptogram, with slots for the guessed letters. Then I would try out letters to break the code. I actually had written this in Microsoft Excel previously. I added a few canned quotes as an afterthought.

I wrote this in React, and eventually React with hooks, with a twist. The letters of the cryptogram are stored in divs, and I don't keep track of changes in the divs using state in React. So when the user enters a letter in the box over the coded letter, a useEffect checks the key array, and rewrites the cryptogram with the new letter added in every place where the bottom coded letter is the same.

I've only just deployed the new React-with-hooks format, so there might be a bug or two. For a while, it was capitalizing every "I" if "I" happened to be the first word in the quote. I have no idea why, and it just stopped happening. I also have the unfortunate habit of playing computer games addictively, so I tried to make this one as non-addictive as possible. Meaning, you don't get any special recognition or confetti if you solve a cryptogram, and I only have about 26 canned quotes. Let me know in the comments how you liked it!
Frontend challenge June edition
Tags: frontendchallenge, devchallenge, css
Published: 2024-06-04 14:56:14

_This is a submission for [Frontend Challenge v24.04.17](https://dev.to/challenges/frontend-2024-05-29), CSS Art: June._

## Inspiration
<!-- What are you highlighting today? -->
Sizzling Summer

## Demo 
<!-- Show us your CSS Art! You can directly embed an editor into this post (see the FAQ section of the challenge page) or you can share an image of your project and share a public link to the code. -->

https://codepen.io/sharmi2020-the-styleful/pen/LYoyrKQ
website URL
https://challengedev.netlify.app/


## Journey 
<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->

<!-- 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. -->

<!-- We encourage you to consider adding a license for your code. -->

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

<!-- Thanks for participating! -->
ToonCrafter: Amazing AI Cartoon Generator
Tags: animation, ai, aigc
Published: 2024-06-04 14:46:19



![ToonCrafter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qbtmr376rh4ociywd8j8.png)

In the world of animation, a revolutionary new tool is changing the game - [ToonCrafter](https://www.tooncrafter.app). This innovative technology uses a generative interpolation method to create smooth transitions between different cartoon frames, greatly simplifying the traditional animation production process.

Traditional cartoon animation requires animators to draw each intermediate frame one by one, a process that is extremely time-consuming and prone to errors. With ToonCrafter, however, you simply input the start and end frames, and it automatically generates natural, seamless in-between frames, saving a tremendous amount of human effort and time.

![ToonCrafter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2vao6aasutnbqpa10mwe.png)

**The Power of Breakthrough Technology**
At the core of ToonCrafter is a novel generative interpolation method. Unlike traditional correspondence-based interpolation, it uses a generative approach to directly create smooth transitions between frames, overcoming the limitations of traditional methods.

**Experience the Magic Firsthand**
Want to experience the magic of ToonCrafter for yourself? Visit [ToonCrafter](https://www.tooncrafter.app) now, upload your start and end frames, and witness how ToonCrafter creates fluid, lifelike animation transitions. Whether you're a professional animator or a hobbyist, ToonCrafter will be your powerful ally, making animation creation simpler and more efficient than ever before.
Lifting State 🏋🏻‍♀️
Tags: webdev, beginners, react, programming
Published: 2024-06-04 14:41:41

## WHY ?
Think of an online grocery store containing 100,000+ products. Each product has a common feature, which is the toggle feature. They will show certain things on click. To function that feature in React, each product must have a state variable. Now, the popup question is, if 100,000 products have 100,000 state variables, would our app be efficient? And what about MILLION?

The answer is **BIG NO** ❌.

> ✅ What if there is just one state variable instead of **100,000** ? That state would be at the top of the parent component. When any product is clicked, only that product will get a share of the state variable and enable the toggle feature.


Doesn't it sound like solution? Yes, the Lifting state does that solution. Well, now you know the lifting state in theory. Let's give it a technical shot!

---

Before diving deep into State lifting, give it a well-read [(controlled & uncontrolled components)](https://dev.to/jorjishasan/controlled-uncontrolled-component-3h3h).

These 2 things are the same :

- Lifting State
- State Sharing

Lifting up state is a technique used in React to share states between multiple components. Instead of each component having its own local state, the state is lifted up to their closest ancestor. This common ancestor then passes the state down to the components via props.

---


Let it make easy steps for you to understand this example illustration:

1. `Accordion` is the parent component here if you see the hierarchy over the picture.

2.  We create a state variable `activeIndex`  with `null` value at the parent(`Accordion`) component. Why `null`? Because by default, no accordion is clicked. 

3.  We'll give children(`AccordianFrame`) access to modify the `activeIndex` state variable by sharing the `setActiveIndex()` function via props.

4.  Now, when any accordion is clicked, it triggers `setActiveIndex()` with its own index value. The `activeIndex` variable will update accordingly.

5.  When it matches the `index === activeIndex, ' the accordion that was clicked will receive the `isActive = true` value through props and be expanded.

Dev View: [Live ✨](https://doubleaccordion.netlify.app/)

![Developer VIEW](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/07oak8ec5q3yyi9ujhxs.gif)

CODE: [GITHUB](https://github.com/jorjishasan/Accordions)

File-structures followed here ⬇️

```
├── src/
│   ├── AccordionFrame.jsx
│   ├── App.jsx
│   ├── constant.jsx
│   ├── index.css
├── tailwind.config.js
└── vite.config.js
```
Do you know how the code you write in JavaScript gets executed? How JavaScript supports asynchronous execution?
Tags: webdev, javascript, programming, tutorial
Published: 2024-06-04 14:20:13

JavaScript is quite unique in that it’s single-threaded, meaning it processes code in a specific order. But despite this, it manages to handle time-consuming tasks without freezing up. So, how does it do that? Well, let me break it down for you.

First off, there’s the call stack. Think of it like a stack of plates in a kitchen, where each plate represents a function being executed. When a function is called, a plate is added to the stack. Once that function finishes, its plate is removed. And it operates on a last-in, first-out basis.
Then, there’s the event loop. This is JavaScript’s way of handling asynchronous tasks. It keeps an eye on the call stack, a queue for bigger tasks (macrotasks), and another queue for smaller, immediate tasks (microtasks). It checks if the call stack is empty. If it is, it grabs the first task from the microtask queue and puts it on the stack. It keeps doing this until the microtask queue is empty, and only then does it move on to the macrotask queue.

Speaking of queues, there are macrotasks and microtasks. Microtasks are for urgent stuff, like Promise callbacks, while macrotasks are for things like I/O operations or timers. And microtasks always come before macrotasks, affecting the order of execution.

Lastly, there’s the Web API stack, which is part of the browser. When you use functions like setTimeout, they’re handed off to this stack. Once the specified time elapses, the callback function gets added to the macrotask queue. It’s kind of like waiting for a timer to go off before doing something else.

In a nutshell this happens:
Code execution in JavaScript flows from the call stack ➔ to the event loop ➔ where microtasks take priority over macrotasks ➔ ultimately handling asynchronous tasks while synchronous code continues to execute.
Scripting vs. Programming Languages: Uncover the Key Differences Every Developer Should Know!
Tags: webdev, programming, learning, development
Published: 2024-06-04 14:18:19

Discover key insights into scripting vs. programming languages that every developer should know! Understanding the difference between scripting and programming languages is key in software development.
Scripting languages are interpreter-based, while programming languages are compiler-based, defining their distinct uses and behaviors. 
There are few exceptions here as well.

Scripting languages are ideal for combining existing components within an application, making them great for integration and automation tasks. They run within an existing program, converting high-level instructions to machine language on-the-fly, without needing prior compilation. This makes them simpler and faster to use, with shorter, easier-to-write code. They don’t create specific file types and typically involve lower maintenance costs. Examples include VB Script, Perl, Ruby, PHP, and JavaScript.

In contrast, programming languages are used to develop applications from scratch. They compile the entire program into machine language, resulting in standalone, self-executable code. This process requires more complex and lengthy code, offering comprehensive support for data types, UI design, and graphics. While more time-consuming and expensive to maintain, programming languages provide the robustness needed for building large-scale applications. Examples include C, C++, COBOL, Basic, VB, C#, Pascal, and Java.

Fun fact: The term “scripting language” originates from the early days of computing when scripts were used to automate the execution of tasks on mainframe computers. One of the first scripting languages was JCL (Job Control Language), used in the 1960s to manage and automate job processing on IBM mainframes.
#javascript #developemnt
Fetch API React
Published: 2024-06-04 14:13:05

```JS
import "./styles.css";
import React, { useEffect } from "react";
import { useState } from "react";
import axios from "axios";

export default function App() {
  const URL = `https://jsonplaceholder.typicode.com/todos`;
  const [todoList, setTodoList] = useState([]);

  useEffect(() => {
    // let todos;
    // axios
    //   .get(URL)
    //   .then((res) => {
    //     // console.log(res);
    //     setTodoList(res);
    //   })
    //   .catch((err) => {
    //     console.log(err);
    //   });
    //  fetch(URL)
    //   .then((res) => {
    //     return res.json();
    //   })
    //   .then((res) => {
    //     // console.log(res);
    //     setTodoList(res);
    //   })
    //   .catch((err) => {
    //     console.log(err);
    //   });

    const todos = async () => {
      let todo = await fetch(URL);
      let data = await todo.json();
      // console.log(data);
      setTodoList(data);
    };
    todos();
  });
  // console.log(todoList);
  return <div className="App"></div>;
}

```
The Common Struggle of Automation Testing: Programming Knowledge
Tags: testing, automation, tester, programming
Published: 2024-06-04 14:10:28

You’ve probably been thinking about exploring the field of automation testing for a long time. You even started working on it according to your thoughts. But when you started working, you got into trouble. This problem has been faced by more or less everyone, including me, you, and us. So let’s share some of my limited knowledge about this familiar problem with you.

As an automation tester, having a strong foundation in programming is very important. This strong foundation will help you design, write, and maintain automation scripts beautifully. You will need to know some Core Concepts of programming. These are:

**1. Syntax and Familiarity with data types, variables, operators, and expressions.**
**2. Conditional statements (if-else).**
**3. Looping constructs (for, while).**
**4. Functions and Methods -Function Invocation, Parameters and Return Values, local and global scope**
**5. Arrays and Lists**
**6. Object-Oriented Programming (OOP) — Classes and Objects, Inheritance, Polymorphism, Encapsulation, Abstraction**
**7. Exception handling mechanisms (try-catch/finally blocks/Custom Exception).**

If you have a good understanding of these Core Concepts, you can write automation scripts using any programming language. If you want, you can also take ideas about Advanced Concepts.
What Really Determines Your Starups Success in the Long Run.
Tags: productivity, career, performance
Published: 2024-06-04 14:07:00

This **ONE** thing determines your business’s success in the long run
And no it’s not cutting-edge technology

Not even **flashy marketing strategies**.

But it’s **clear communication** in the organization, by ensuring everyone is on the same page, you’re not just saving time, money, and energy—you’re laying the foundation for sustainable growth and success.

That’s why I screen-record every single communication, from code errors to contract revisions. And let me tell you, it’s been a game-changer.

I am hosting a **workshop**, where I’ll be showing you how to do this easily with a special tool and many more tricks that will help you achieve your goals, and for completely **FREE**.

Join by signing up _**[Here](https://martinbaun.com/workshop00/#contact)**_.
Code With Heroines : Availability && Redundancy && Fall of the Han Dynasty
Published: 2024-06-04 14:01:14


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



## Explanation
This illustration demonstrates Availability by showing the abundance of goods and military presence.


## Fall of the Han Dynasty
The Western Han Dynasty faced financial deterioration due to extensive foreign campaigns and increased taxes, which caused public hardship. Controversial policies like price stabilization and state monopolies on salt and iron were criticized. Following Emperor Wu's death, power struggles among bureaucrats, eunuchs, and maternal relatives, along with the rise of local clans, weakened the dynasty, leading to its fall to Wang Mang in 8 AD.

Wang Mang established the Xin Dynasty (8-23 AD) and attempted reforms based on the Zhou system, but these policies were unsuitable for the time, leading to increased chaos. The dynasty also faced famine and peasant rebellions, culminating in its collapse in 23 AD. Emperor Guangwu Liu Xiu then founded the Later Han Dynasty (25-220), restoring stability initially and expanding influence through conquests and foreign exchanges.

However, by the end of the 1st century, power struggles among maternal relatives, eunuchs, and bureaucrats resurfaced, causing political instability. The Yellow Turban Rebellion in 184 and the subsequent rise of warlords led to further chaos, resulting in the fall of the Later Han Dynasty in 220.


## What is Availability?
Availability refers to uninterrupted access to information and the availability of data and systems when needed. Examples of such measures include 24/7 availability, data redundancy and replication, backup and restore, and load balancing for cloud services, etc.

## What is Redundancy?
Prepare spare systems for servers and network systems in case of equipment failure or load caused by sudden access concentration. A spare system is operated in parallel to maintain functionality in the event of a system failure.
When a failure occurs in the main system, losses can be minimized by instantly switching to a backup system. In addition, in a cyber attack, natural disaster, or other emergency, business can be continued by switching to a spare system while minimizing damage. Redundancy is required today as the need for business continuity planning (BCP) increases.

## Reference

- [可用性とは？意味・定義 | IT用語集 - NTTコミュニケーションズ](https://www.ntt.com/bizon/glossary/j-k/availability.html#:~:text=%E5%8F%AF%E7%94%A8%E6%80%A7%E3%81%A8%E3%81%AFAvailability%E3%81%AE,%E7%94%A8%E8%AA%9E%E3%82%82%E4%BD%BF%E3%82%8F%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82)
- [冗長性とは？ 用語や関連キーワードを解説 - ITreview](https://www.itreview.jp/words/jochosei)
What are Your Best Tips for Building a Coding Portfolio?
Tags: discuss, coding, portfolio
Published: 2024-06-04 14:00:00


I am building my web page and my portfolio from scratch. Did you make yours from scratch as well or do you use a free portfolio template?

I am looking for inspiration and tips on how to make a great coding portfolio. I sort of have a real small one coded with basic HTML displaying two of my Python games (from some CodeCombat game development courses I have completed) on my web page: [olsenanita.com](https://www.olsenanita.com/), but I want to make it better.

Do you have a portfolio? How did you make yours?