teleren/devto huggingface dataset:
CookieClickerBot 🍪
Tags: selenium, github, python, automation
Published: 2023-07-11 12:00:57


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

🍪 Introducing the Cookie Clicker Bot! 🤖🖱️

Link to video: https://www.youtube.com/watch?v=XHoq_VmriF0

Tired of endless clicking in the addictive game Cookie Clicker? Say hello to the Cookie Clicker Bot - your personal assistant that automates the clicking and purchasing process! 🚀

Powered by Selenium, the web automation library, this bot is ready to boost your Cookie Clicker experience. Watch your cookie count skyrocket as the bot strategically clicks and purchases upgrades for you! 🍪💪

Get the code on GitHub:

https://github.com/raimoncoding/cookie-clicker

Learn more about Selenium: 

https://selenium-python.readthedocs.io/installation.html

Website Cookie Clicker Game: 

https://orteil.dashnet.org/cookieclicker/

Join the cookie-clicking revolution and let the Cookie Clicker Bot handle the repetitive tasks for you. Embrace the freedom to sit back, relax, and watch your cookie empire grow! 😃
Severity VS Priority of Bugs
Published: 2023-07-11 11:55:24

🔍 Are you confident in your understanding of severity and priority in software testing? 


🔹 What is the fundamental difference between severity and priority in testing?

🔹 How do you effectively prioritize bugs based on their impact?

🔹 What are the best practices for classifying and managing bugs in your projects?


💡 Don't miss out on this opportunity to expand your expertise and empower yourself as a software tester! Read the article here: 


https://medium.com/@case_lab/difference-between-severity-and-priority-in-software-testing-8d535107ceb9


#softwaretesting  #qualityassurance  #testingskills #bugclassification #severityvspriority #testing #software #projects #bug #bugs #testcaselab
Client connections always use an ephemeral port?
Published: 2023-07-11 11:53:09

1. - Ports below **1024** are reserved only for use by root / the administrator. This is a standard security feature which stops a normal user masquerading as a system service / daemon. The majority of well-known services run on ports < **1024**.

2. - As a result all user connections have to come from a port > **1024**
.

lets take a scenario , incase of NACL in subnets ->
inbound port allowed is **22** ( is for server side)
outbound port ranges are <**1024 (1025- 65535)** they etablish connection through this ports.
Programming Flashcards
Tags: code, flashcards, programming, github
Published: 2023-07-11 11:46:03


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

Hey everyone! In this video, I demonstrate a cool flashcard program I built using Python and the Tkinter library. It's a great way to learn and memorize programming terms or any other set of information.

video link: https://youtu.be/ldnk_Csg5Zg

The program randomly presents flashcards with terms on one side and their meanings on the other. You can flip the card to reveal the meaning, and if you already know the term, simply click the 'Known' button to remove it from the deck. It's a fun and interactive way to study!

I've uploaded the complete source code for this project on my GitHub repository, so you can check it out and try it yourself. Here's the link: https://github.com/raimoncoding/flashcard_programming

I hope you find this program interesting and useful. If you enjoy the video, please give it a thumbs up and consider subscribing to my channel for more programming projects and tutorials.

Thanks for watching, and happy learning!
Starting a SaaS.
Tags: nextjs, saas, webdev, javascript
Published: 2023-07-11 11:40:43

I always wanted to build my own SaaS, but my job don't let me.

I started in the back ground and would like to share my journey, I have a idea and I'm working on it as we speak.

I would love to share the journey with you all and love to learn on the go.

So the journey begin by creating the graphical interface.
What's New in C# 11: Features and Tips for Developers
Tags: csharp, microsoft, dotnet
Published: 2023-07-11 11:37:07

**Introduction:**
Introducing the latest version of C#, version 11, packed with exciting new features and enhancements that will level up your development experience. In this article, we'll explore some of the noteworthy features and tips introduced in C# 11 and demonstrate how they can improve your code. Let's dive in!


1) **Implicit using declarations:**
Say goodbye to repetitive `using` directives! C# 11 introduces the `global using` statement, allowing you to implicitly import namespaces throughout your codebase. This feature streamlines your code and reduces clutter. Here's an example:

```
global using System;
global using System.Collections.Generic;

// No need for explicit 'using' directives
List<string> myList = new();
Console.WriteLine("Hello, C# 11!");
```

2) **Interpolated strings with interpolated verbatim strings:**
C# 11 combines the power of interpolated strings and verbatim strings with interpolated verbatim strings. This feature lets you include dynamic values in verbatim strings more conveniently. Here's an example:


```
string name = "John";
string message = $@"Hello, {name}!
                  Welcome to C# 11!";
Console.WriteLine(message);
```

3)  **Improved target typing with `var`:**
Embrace more concise and readable code! C# 11 allows the use of `var` in control flow statements and other scenarios, where the type can be inferred by the compiler. Check out this example:

```
if (GetSomeValue() is var result && result > 0)
{
    Console.WriteLine($"Value is {result}");
}
```

4) Relaxed implicit function return types:
C# 11 reduces boilerplate by enabling you to omit the explicit return type when the return statement is the last line of the method. The compiler can infer the return type based on the context. See how it simplifies code:

```
int Add(int a, int b)
{
    return a + b;
}
```

5) Extended support for interpolated strings in attributes:
Enjoy more flexibility when working with attributes! C# 11 allows interpolated strings directly in attribute arguments, making it easier to include dynamic values. Take a look:

```
[Description($"This is the {nameof(MyClass)} class")]
public class MyClass { }
```

6) **`is not` pattern matching:**

Say hello to the `is not` pattern matching syntax! C# 11 introduces the negation of the `is `pattern, allowing you to check if an object is not of a specific type. Here's an example:

```
if (myObject is not null)
{
    Console.WriteLine("Object is not null");
}
```

**Conclusion:**
C# 11 brings an array of exciting features and tips that enhance the language and make your code more expressive and efficient. We've covered just a glimpse of what C# 11 has to offer. So, start exploring these new features and elevate your C# development experience!

I hope this draft provides a good starting point for your dev.to post. Feel free to modify and enhance it further to suit your style and content preferences. Happy writing!
Write-Ahead Logging in PostgreSQL
Tags: apache, database, agedb, postgres
Published: 2023-07-11 11:23:04

Welcome to the ninth article of my blog series, in this blog I will discuss Write-Ahead Logging in PostgreSQL.

## Introduction
Explore the realm of PostgreSQL, where data integrity and recovery are paramount, and discover the formidable guardian known as Write-Ahead Logging (WAL). Dive into the captivating world of WAL, a powerful mechanism that safeguards your valuable data and enables swift recovery in the face of unforeseen events. Join us on this journey as we unveil the secrets behind the strength of Write-Ahead Logging in PostgreSQL.

## Understanding Write-Ahead Logging
Dive into the core of Write-Ahead Logging (WAL) and its indispensable role in ensuring the durability and crash recovery mechanisms of PostgreSQL.
Uncover the transaction log, where initial changes are meticulously recorded before being applied to the data files.
Grasp the importance of the WAL buffer and the seamless coordination between disk and memory, where changes are smoothly staged prior to being written to disk.

## Write-Ahead Logging Performance
Explore the performance implications of Write-Ahead Logging (WAL) in PostgreSQL and gain a comprehensive understanding of the trade-offs between durability and write performance. Learn how PostgreSQL provides the flexibility to tune for various levels of durability based on your specific requirements.
Unlock the potential of WAL configuration, including fine-tuning the WAL buffer size and optimizing checkpoint settings, to unleash the full performance potential of your database.

## WAL Archiving and Point-in-Time Recovery
Unveil the resilience of WAL archiving and its pivotal role in facilitating point-in-time recovery.
Explore how archived WAL segments serve as snapshots, empowering you to precisely restore your database to a specific moment in time.
Master the techniques of performing point-in-time recovery, resurrecting your database from unforeseen disasters with precision and expertise.

## The Power of Write-Ahead Logging in PostgreSQL
Embrace the unparalleled power of Write-Ahead Logging (WAL) as an unwavering guardian of your data's integrity and recovery.
Experience the ultimate peace of mind, knowing that your valuable data remains protected, even in the face of hardware failures, power outages, or system crashes.
Marvel at the seamless recovery capabilities provided by WAL, ensuring that your database remains intact and easily accessible, regardless of the circumstances.
In the realm of PostgreSQL, Write-Ahead Logging stands tall as an indomitable ally, safeguarding your data and empowering swift recovery. By delving into the inner workings of WAL, you gain the strength of data durability and the unwavering confidence to overcome unexpected challenges. Embrace the power of Write-Ahead Logging in PostgreSQL, and watch your data thrive with unwavering resilience and unmatched reliability.

## References
If you want to read it further, please click the link below.
[Chapter-9 The Internals of PostgreSQL](https://www.interdb.jp/pg/pgsql09.html)
New data center Star of Bosphorus in Turkey
Tags: cloudcomputing, devops, cloud, softwareengineering
Published: 2023-07-11 11:13:38

[Star of Bosphorus](https://serverspace.io/infrastructure/datacenter-istanbul/) is the first Uptime Institute Tier III Design & Resort certified 'operstor-independent' commercial data center in Turkey.

Now Serverspace users can deploy vStack servers in new location – Turkey, Istanbul.

**More information about data center:**

- Designed and built with earthquake-proof construction technology;
- Hardware – 2U vStack SL201-D25RE rack servers;
- Has redundant generators to support the cooling system;
- Equipped with a 4-level access control system;
- 24x7x365 technical support;
- Complies with international standards such as SOC 1, LEED, PCI DSS, Tier III.

The new location is also available for creating servers, configuring networks and gateways, ordering Custom Servers and Kubernetes clusters.

Read more in [news](https://serverspace.io/about/news/new-data-center-star-of-bosphorus-in-turkey/)
Moonly weekly progress update #56 - Moonly Holders benefit within the Karamendos ecosystem
Tags: javascript, blockchain, nft, cryptocurrency
Published: 2023-07-11 10:44:03


## Moonly weekly progress update #56 — Moonly Holders benefit within the Karamendos ecosystem

![](https://cdn-images-1.medium.com/max/3200/1*tjzumzO3PX-E4Oiou8bO9g.png)

As our treasured supporters of Moonly (our Web3 NFT analytics and search engine platform) holders of our Moonly NFTs can expect proprietary access to the Karamendos mint (including a guaranteed WL spot) at discounted rates based on the number of Moonly NFTs held per wallet. Moonly holders will also be eligible for a free airdrop of a Karamendos NFT.

More details will be announced in the near future.

**Weekly devs progress:**

* Research on using RPC-proxy from frontend

* Created LXC container with desktop virtualization

* Restructured the codebase and moved the server

* Replaced current state managing code with recoil

* Fixed collection and traits registering in a state issue

* Solved the display saved announcement settings

* Trying to fix an issue with edited settings for updating properly

**Holder Verification Bot (HVB):**

* Upgraded Prisma and Prisma Client to the latest version 4

* Created a singleton Discord client to host the backend in a new way

* Added a new extra resolver to structure all resolvers for a better folder structure experience

* Implemented services to fetch roles and channels on guild add

* Created a new table called VerificationSetting to store each guild’s information

* Created a new table to handle all verification rules and settings separately

* Enhanced the database schema by renaming tables

* Removed all unworkable code from the code base to organize all files

**Raffle Feature and Twitter Space Giveaway**

* Created Admin UI for Raffle Event

* Linked states with raffle creation form

* Created Database Schema for Raffle

* Created Backend Resolver for Raffle

* Created Hook Utility for showing status/error in a better way

* Simple typesafe API for using “Env Variable”

* Fixed error related to the Env variable

* Add raffle prize after raffle initialization

* Improved auth context to type-safe API

* Fixed Module Error With js-cookie

Check out our latest blog post:

[https://moon.ly/blog/ethereum-blue-chip-nfts-giving-the-red-signals/](https://moon.ly/blog/ethereum-blue-chip-nfts-giving-the-red-signals/)

Upcoming NFT collections:

[https://moon.ly/nft/transapiens](https://moon.ly/nft/transapiens)

[https://moon.ly/nft/donsy](https://moon.ly/nft/donsy)

[https://moon.ly/nft/the-midas-alchemists](https://moon.ly/nft/the-midas-alchemists)

[https://moon.ly/nft/project-red](https://moon.ly/nft/project-red)

Minted projects worth mentioning:

[https://moon.ly/nft/transdimensional-fox-federation](https://moon.ly/nft/transdimensional-fox-federation)

[https://moon.ly/nft/claynosaurz](https://moon.ly/nft/claynosaurz)

[https://moon.ly/nft/mad-lads](https://moon.ly/nft/mad-lads)

[https://moon.ly/nft/bodoggos](https://moon.ly/nft/bodoggos)
How to avoid “image of” or “screenshot of” in our alt text
Tags: accessibilitytesting, webaccessibility, a11y, alttext
Published: 2023-07-11 13:49:14

---
title: How to avoid “image of” or “screenshot of” in our alt text
published: true
date: 2023-07-11 10:41:11 UTC
tags: accessibilitytesting,webaccessibility,accessibility,alttext
canonical_url: https://mirelaprifti.medium.com/how-to-avoid-image-of-or-screenshot-of-in-our-alt-text-72272e9580eb
---

When adding alt text to images or visual assets, it’s important to provide a concise and accurate description of the content of the image. Ideally, we shouldn’t rely on phrases like “image of” or “screenshot of” to avoid excessively wordy alt descriptions.

Here are some tips and examples that could help you create alt text more effectively.


### Provide context

Consider the context in which the image appears and provide information **that**  **helps people understand the role of the image**.

For example, instead of saying “_Screenshot of a chart_”, we could say: “Comparison chart showing search trends for the terms “chatgpt” and “twitter” on 5–6 July 2023”.

![](https://cdn-images-1.medium.com/max/1024/0*QW4gGoNhEmU6sYc5)
_Source: Google trends_

If the image is part of a series of images or contains important text or data, we should mention it in the alt text.

However, **if the alt text gets too lengthy or complex** , it may be more appropriate to **provide a caption or include that information in the content**.


### Describe the content

Focus on describing what is actually in the image. **Consider the subject matter, objects, people, actions, and any relevant details**.

For example, for the photo below, instead of saying “Image of a street in London,” we could say: “Regent Street, London by night with Christmas lights”.

![](https://cdn-images-1.medium.com/max/1024/0*PaxF-svrbiJBH5uU)
_Image source: Unsplash_


### Be specific

Provide specific details that **convey the purpose or message of the image**.

Use adjectives and focus on the elements that make the image meaningful or informative, such as colors, shapes, or any other relevant characteristics.

For example, instead of saying “Image of a dog and tablet,” we could say: “A Pomeranian dog with glasses on and appearing to read on an iPad.”

![](https://cdn-images-1.medium.com/max/1024/0*zbmDNlFPhmv-KMaR)
_Image source: Unsplash_

In substance, being specific and accurate is key when writing alt text, **so long as it aligns with the context of our content**.


### Test with screen readers

Ultimately, alt descriptions are primarily for assistive technologies so, whenever possible, we should test them with screen readers or other assistive tech to ensure they work as intended.

Thank you for reading this article! If you have any further questions or insights, or if you find inaccuracies in the content, I would be happy to hear from you. You can get in touch with me via [email](mailto:mirela@matechs.com), [Twitter](https://twitter.com/mirepri4), or [LinkedIn](https://www.linkedin.com/in/mirelaprifti/).
PHP 8.2: the SensitiveParameter attribute
Tags: php, beginners, programming, security
Published: 2023-07-11 10:29:21

Functions, objects, or some configs can contain credentials and sensitive data. There could be multiple occurrences in your code.

Using the SensitiveParameter attribute will prevent any unwanted disclosure in stack traces (e.g., `debug_print_backtrace`), error logs, and, more generally, in fatal errors.

## Basic syntax

```PHP
function hashData(#[\SensitiveParameter] string $password) {}
```

Instead of the actual value, people will get a `SensitiveParameterValue` in debugs and other `var_dump`. Behind the scene, it encapsulates the real value in a private value.

The `SensitiveParameterValue` class is final and implements a magic method called `__debugInfo` to ensure nothing is returned (empty array).

[Source: The SensitiveParameter class](https://www.php.net/manual/en/class.sensitiveparameter.php)

## Kill a classic vector

Logs and stack traces are classic point of entries for attackers, as it usually bypasses authentication and authorization.

Using this attribute will not make your app bulletproof, but it does add an interesting layer.
Context API vs Redux in React.js
Tags: react, contextapi, redux, statemanagement
Published: 2023-07-11 10:02:00

## Context API vs Redux in React.js

React.js provides multiple state management solutions, with two popular options being Context API and Redux. Both Context API and Redux offer ways to manage the state of your React application, but they have different approaches and use cases.

### Context API
Context API is a built-in feature in React that allows you to share state across components without manually passing props through intermediate components. It provides a simple way to manage global or shared state in your application.

#### Pros of Context API:
- Easy to use and set up, as it is a part of React itself.
- Suitable for small to medium-sized applications with a limited amount of shared state.
- Simplifies the process of passing state and actions down the component tree.

#### Cons of Context API:
- Performance can be a concern when dealing with deeply nested components, as every consumer of the context will rerender when the context value changes.
- Lack of built-in middleware and tools for advanced state management.
- Can become complex to manage as the application grows in size and complexity.

### Redux
Redux is a predictable state container for JavaScript applications, commonly used with React. It enforces a strict unidirectional data flow and provides a centralized store to manage application state.

#### Pros of Redux:
- Offers a predictable and centralized state management solution.
- Provides powerful middleware support, enabling features like logging, API calls, and asynchronous actions.
- Large ecosystem with a variety of tools, libraries, and devtools available for debugging and enhancing Redux applications.

#### Cons of Redux:
- Requires additional setup and boilerplate code compared to Context API.
- Can be overwhelming for small projects with simple state management needs.
- Learning curve, especially for developers new to Redux concepts like reducers, actions, and stores.
Máy đóng đai yamafuji giá tốt
Tags: maydongdai
Published: 2023-07-11 10:00:13

Yamafuji - thương hiệu hàng đầu về máy đóng đai công nghệ Nhật Bản, đạt tiêu chuẩn châu Âu
https://sieuthidienmaychinhhang.vn/vi/san-pham/danh-muc/may-dong-dai-thung-1191.html
Số 1 Ngõ 495 Nguyễn Trãi, Thanh Xuân, Hà Nội
0962714680
sieuthihaiminh@gmail.com
1noos
Published: 2023-07-11 09:57:54

Riyadh, the capital of Saudi Arabia, is home to numerous entertainment destinations and thrilling amusement parks. Among these renowned parks that are worth visiting, [1noos](https://www.ootlah.com/en/attractions-sarpruh-oth5267-get-14-discount-for-1noos-riyadh-ticket.html) Theme Park tops the list of favorite attractions for both locals and visitors alike.
if you are looking for a fun place to spend an enjoyable time in Riyadh, 1noos Theme Park is the ideal choice. The wide array of thrilling rides and entertaining facilities for visitors of all ages guarantees an unforgettable entertainment experience. Visit 1noos Theme Park and indulge in moments filled with fun and excitement.
Vote for Name of a Bot Development Framework for Python.
Tags: webscraping, python, tutorial
Published: 2023-07-11 09:49:33

Hi, 
I want to know which name you think is a Good Name for a Bot Development Framework. The Options are 

- Scrapium
- Botasaurus
- Bose Framework

Please Vote for your favorite name [here](https://www.omkar.cloud/l/vote/)
a new way to use state in react
Tags: react, frontend, javascript, programming
Published: 2023-07-11 09:44:07

In Reactjs, when you want to read or write the latest value of state data in your component, but do not want to specify them as dependencies(such as their change does not matter), you could use the custom hook function below.

Keep in mind that the **only reason** to specify dependencies in `useEffect` is because your effect callback need to re-run when anyone of the dependencies changes and the only reason why using `useEffect` is that you are not sure when the dependencies will change in the component.

```js
export function useGetState(data) {
  const [val, setVal] = React.useState(data);
  const currentValRef = React.useRef(val);
  currentValRef.current = val;
  return React.useCallback((...args) => {
    if (args.length) {
      setVal(args[0]);
    } else {
      return currentValRef.current;
    }
  }, []);
}
```

There is an [example](https://codesandbox.io/s/trusting-bouman-shc68j?file=/src/useGetState.js:28-346)
Singly and doubly linked lists in C and C++: general description and 4 implementations
Published: 2023-07-11 09:39:11

Developers get questions over and over again (on Stack Overflow and other sites) about implementing single-linked/double-linked lists in C and C++. They also ask how to perform this or that operation on a list. 


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



Here is a step-by-step guide with code examples on creating lists:

•[ A general description of linked lists as data structures](https://pvs-studio.com/en/blog/terms/6681/)
• [Implementation of a singly linked list in C](https://pvs-studio.com/en/blog/terms/6680/)
• [Implementation of a singly linked list in C++](https://pvs-studio.com/en/blog/terms/6684/)
• [Implementation of a doubly linked list in C](https://pvs-studio.com/en/blog/terms/6682/)
• [Implementation of a doubly linked list in C++](https://pvs-studio.com/en/blog/terms/6683/)

I hope you find this list useful. Of course, it's good to create your own list while learning the code. However, many people have the same questions about lists' implementation. So, enjoy!