teleren/devto huggingface dataset:
Tagging your Playwright Tests
Tags: playwright, e2e, testing, tags
Published: 2024-03-14 14:47:46

Tags are used to filter tests in the [HTML report](https://playwright.dev/docs/ci-intro#html-report), [UI Mode](https://playwright.dev/docs/test-ui-mode), or [VSCode extension](https://playwright.dev/docs/getting-started-vscode). It's also possible to filter them with the CLI by using `--grep` - so you can e.g. only run a subset of tests locally or on CI.

In Playwright's version 1.42, we introduced a new syntax for tags. 

## Update to the latest version of Playwright

To update to the latest version of Playwright run the following command:

```bash
npm install -D @playwright/test@latest
```

Also download new browser binaries and their dependencies:

```bash
npx playwright install --with-deps
```

## New tag syntax

Why create a new syntax? With the previous syntax the tags are visible in the HTML report in the title as well as a label. This can be confusing and can have a lot of duplication especially when you have many tags. 

To use the new syntax, create a tag object with an array of tags or a single tag:

```js
test('user can login', { tag: ['@smoke', '@slow' ] }, async ({ page }) => {
  // write test });
});
```

![new tag syntax in html report](https://github.com/microsoft/playwright/assets/13063165/026293ce-05fd-4499-9c99-c6a6e4c29ab6)

Tags can also be used in a describe block:

```js
test.describe('group', { tag: '@report' }, () => {
  test('report header', async ({ page }) => {
    // ...
  });

  test('full report', { tag: ['@slow', '@vrt'] }, async ({ page }) => {
    // ...
  });
});
```

![new tag syntax in html report](https://github.com/microsoft/playwright/assets/13063165/8453cbfb-0440-4c34-93e7-818a16952e66)

To run tests with a specific tag use the `--grep` command line option followed by the tag name:

```bash
npx playwright test --grep @login
```

## Old tag syntax

Previously, tags were added to the test title. This method is still supported. However this adds duplication in the HTML report as Playwright extracts tags from the title and adds them as labels so they are easier to see. We therefore recommend using the new syntax as shown above.

```js
test('user can login @fast @login', async ({ page }) => {  
  // write test
});
```

![old tag syntax in html report](https://github.com/microsoft/playwright/assets/13063165/6a235dd3-94eb-4240-abf9-6d8571e1b9b9)

## Release Video

To see a demonstration of the new tag syntax, watch the release video:

{% embed https://youtu.be/KjSaIQLlgns %}


## Useful links 

- [Playwright documentation](https://playwright.dev/docs/test-annotations#tag-tests)
- [Release notes for Playwright 1.42](https://playwright.dev/docs/release-notes#version-142)
Proton Keto Gummies Reviews 2024 Ingredients, Price, and Hidden Side Effects of Proton Keto Gummies Reviews
Published: 2024-03-14 14:43:36

꧁༺✨❗Shop Now ❗✨༻꧂

https://allsupplementstore.com/proton-keto-gummies-buy/ 

꧁༺✨❗Facebook Now❗✨༻꧂
https://www.facebook.com/ProtonKetoGummies.USA.Reviews/ 

Product Name :- Proton Keto Gummies

Main Benefits:- Weight Loss, Official Store And Price

Composition:- Natural Organic Compound

Side-Effects:- NA

Rating:- ⭐⭐⭐⭐⭐

Availability:- Online

Where to Buy:- Official Website – {Buy Now Here — Click Here}

Proton Keto Gummies:- 

Increases metabolism: Depression affects body growth since it is a system that warms meals to produce growth energy. The metabolic rate is increased by the amount of fat burned as a result of energy production.

Official Website:- https://allsupplementstore.com/proton-keto-gummies/ 
Facebook:- https://www.facebook.com/ProtonKetoGummies.USA.Reviews/ 
Google Site:- https://sites.google.com/view/proton-keto-gummies-purchase/ 
Blog.Site:- https://proton-keto-gummies-usa.blogspot.com/2024/03/blog-post.html 
Godaddy.Site:- https://protonketogummiesusa.godaddysites.com/ 
Group.Google:- https://groups.google.com/g/proton-keto-gummies-side-effects/c/_LbZpMtzdJA 
Pinterest:- https://in.pinterest.com/pin/885027764266732270/ 
PDF:- https://flipbooklets.com/pdfflipbooklets/proton-keto-gummies-2025#page1 
https://publuu.com/flip-book/421478/952885 
https://anyflip.com/mukvw/tnne 
https://online.fliphtml5.com/cddzb/gsrc/ 
https://issuu.com/detikadiev/docs/proton_keto_gummies 
Sketchfab.Site:- https://sketchfab.com/3d-models/proton-keto-gummies-reviews-7d7fbae20b2c4043ba193d1fe08ab272 
Company.Site:- https://proton-keto-gummies-purchase.company.site/ 
Hashnode.Site:- https://proton-keto-gummies-weight-loss.hashnode.dev/proton-keto-gummies-reviews-season-2024-reviews-ingredients-where-to-buy 
Caramella.App:- https://caramellaapp.com/detikadiev/9d1JTMGrg/proton-keto-gummies 
Mytlebeastocr:- https://www.myrtlebeastocr.com/group/gear-accessories/discussion/37bbb079-648b-4c43-ab7c-de558289dc14 
Medium.Site:- https://medium.com/@detikadiev/proton-keto-gummies-reviews-weight-loss-diet-benefits-price-and-side-effect-49e05fc65ed5 
https://medium.com/@detikadiev/proton-keto-gummies-reviews-controversial-or-real-proton-keto-gummies-reviews-hidden-truth-0ed044a04cc4 
Mystrikingly:- https://protonketogummiesusa.mystrikingly.com/ 
Gamma.Site:- https://gamma.app/docs/What-is-Proton-Keto-Gummies-j7g4ltlrftoqo47 
Teeshopper.Site:- https://teeshopper.in/products/Proton-Keto-Gummies-Reviews-Scam-Exposed-Is-Worthy-Or-Not  

Visit Our More Info:- 
 
https://sites.google.com/view/proton-keto-gummies-website/ 
https://groups.google.com/g/mailing.postfix.users/c/_RNBV7jGoNg 
https://groups.google.com/g/ibm.software.network.directory-integrator/c/oGOdNiz2dBQ/m/FgggV8bmAgAJ
What we built for our Notification Service?
Tags: discuss, watercooler, react, opensource
Published: 2024-03-14 14:43:35

We built a [notification service](https://www.suprsend.com/post/a-complete-guide-on-notification-service-for-modern-applications-in-2023) to help companies abstract the pain of building and managing a notification service at their end. Catering to devs, we have an API-first approach, but we also support dashboard-enabled processes for general product/ marketing folks.


![SuprSend Notification Service for SAAS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fkv8g4zglycmcjv7tfx3.jpg)



## Sample Workflow
Here's how a typical workflow gets executed upon receiving a trigger. 

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

1. Check our [Github](https://github.com/suprsend)
2. Check [website](https://www.suprsend.com/)
3. Check [docs](https://docs.suprsend.com/docs/getting-started)

---

How are you currently executing your notification service?
How to change Jupyter notebook color/themes?
Tags: jupyter, machinelearning, themes, datascience
Published: 2024-03-14 14:42:21

step1- write this command on “Anaconda promt”

“pip install jupyterthemes”

step2- use this command for using the perticular theme.

"jt -t theme-name -T"

theme-name-onedork

grade3
oceans16
chesterish
monokai
solarizedl
solarizedd
Jupyter No
Broken Smartphone? Don't worry Mheal is now in Bangalore
Published: 2024-03-14 14:30:25

In an advance city like [Bangalore ](https://www.mheal.in/repair/bangalore)where everyone is disguised in different sorts of works where mobility reigns supreme, the demand for services that seamlessly integrate into our fast-paced lives is more pressing than ever. Our reliance on mobile phones for daily communication, work, and entertainment underscores the necessity for quick and dependable repairs. This blog delves into the evolution of mobile repair services, shining a spotlight on the burgeoning trend of doorstep mobile repairs and the extensive benefits it offers to consumers.

**Addressing the Urgency: The Rise of Doorstep Mobile Repair
**
In our increasingly hectic lifestyles, the traditional approach of visiting repair shops for mobile issues is proving impractical. Beyond time constraints, safety concerns in crowded repair shops have catalyzed a paradigm shift towards personalized and secure solutions.

**Explore the manifold advantages that doorstep mobile repairs offer:
**
**Convenience:** Bid farewell to long queues and commuting hassles associated with traditional repair shops.
Time-Saving: Have your phone fixed at your own pace, tailor-made to your schedule.
**Cost-Effective:** Sidestep hidden fees and exorbitant parking charges linked with brick-and-mortar repair establishments.
Personalized Service: Bask in individual attention from a dedicated technician addressing your unique needs.
**Security:** Rest easy knowing your phone is undergoing repair in a safe and secure environment.
Unlocking Exclusive Benefits with Mheal!

**Choose Mheal with confidence, knowing you’re opting for:
**
**Certified Technicians:** Our skilled professionals hold certifications to deliver top-notch services.
**Quality Assurance:** We employ premium parts, backed by a warranty, ensuring a reliable fix and your peace of mind.
**Transparent Pricing:** What you see is what you get — no hidden costs, fostering a fair and transparent transaction.
**Customer-Centric Approach:** Your satisfaction is our paramount concern, and we go the extra mile to guarantee a seamless repair experience.

**Mheal Doorstep Mobile Repair Services are also Available in:**

Mobile repair in Delhi
Mobile repair in Mumbai
Mobile repair in Hyderabad
Mobile repair in Pune 
Mobile repair in Noida
Mobile repair in Gurgaon
Make the Smart Choice with Mheal!
Building Linux Commands From Scratch 🐧 cat Command
Tags: linux, programming, coding, cprogramming
Published: 2024-03-14 14:25:00

I am “Building Linux Commands From Scratch With C/C++”. The main reason behind this is to get some experience around C/C++, also i am a fan of Linux and it’s ecosystem.

---

## Command ➡️ cat

cat commands allows us to concatenate files and print on the standard output.

```bash
cat README.md
```

This command prints the content of _README.md_ on the standard output.

```c
#include <stdio.h>

int main(int argc, char *argv[])
{
  char character;

  if (argc > 1)
  {
    for (int i = 1; i < argc; i++)
    {
      FILE *file = fopen(argv[i], "r");

      while ((character = fgetc(file)) != EOF)
        printf("%c", character);

      fclose(file);
    }
  }

  return 0;
}
```

```c
int main(int argc, char *argv[])
```

Here _**int argc**_ is the number of command line arguments. **_char *argv[]_** is the array holding the command line arguments.

![For Command Line Arguments](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0kepubono5oywn945sj5.png)

Since the file name of the program is the first argument passed it starts reading files from _**index 1**_, a for loop is used from _1_ to _argc_.

Then a FILE pointer is created and file is opened in read mode. Then a while loop is used to read each single character from the file.

```c
while ((character = fgetc(file)) != EOF)
```

![Loop Until character Is Not EOF](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ya95l1x5kb9hfuzczod3.png)

The loop continues until _**EOF (End Of File)**_ is not encountered. Once **_EOF_** is encountered loop stops and the file is closed. This will be repeated for other files.

```bash
gcc main.c -o main
```

After compiling the program it can be executed as,

```bash
./main README.md main.c
```

It will print the content of both _README.md_ and _main.c_ to the standard output (i.e Terminal Screen).
𝗗𝗲𝘃𝗶𝗻 🤖 | 𝗧𝗵𝗲 𝗙𝗶𝘀𝗿𝘁 𝗛𝘂𝗺𝗮𝗻 𝗮𝗶 𝘀𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗲𝗻𝗴𝗶𝗻𝗲𝗲𝗿 ⭐
Published: 2024-03-14 14:17:25


𝗗𝗲𝘃𝗶𝗻 🤖 | 𝗧𝗵𝗲 𝗙𝗶𝘀𝗿𝘁 𝗛𝘂𝗺𝗮𝗻 𝗮𝗶 𝘀𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗲𝗻𝗴𝗶𝗻𝗲𝗲𝗿 ⭐

See the presentation video : https://www.linkedin.com/posts/karimelaissaouy_artificial-intelligence-model-activity-7174038940507590656-lH49?utm_source=share&utm_medium=member_desktop

> ⭐ #Artificial #intelligence continues to astonish with its ever-evolving capabilities. Enter Cognition, a pioneering startup that has unveiled an exceptionally potent #model tailored for #AI #programming — a veritable AI #software #engineer. 👀 According to the developers behind #Devin, this groundbreaking AI has not only aced #job interviews at top-tier companies but has also completed numerous tasks on the #freelance platform #Upwork with aplomb.



◆ Devin boasts an impressive array of #skills: it can ✔️ construct #software from #scratch,✔️ #diagnose and rectify #bugs, ✔️ parse and comprehend unfamiliar #documentation seamlessly, and ✔️ adeptly apply its insights. ⚠️ But the #marvel doesn't end there. Devin possesses the remarkable ability to not only #develop other AI models but also refine its own capabilities in a self-evolving manner. 😮😶



> ⚡ In a rigorous assessment of Devin's prowess, it was presented with a series of programming challenges sourced from open-source projects on #GitHub. Astonishingly, the model independently solved 13.86% of these problems—an accomplishment 13 times greater than any other existing model.


## ⇢ Follow & Connect me for more tech & dev content 

⇢ Stay tuned for further insights in the subsequent post.



#Artificial_Intelligence #Engineer #Programming #Cognition

#MachineLearning #DeepLearning #Tech #Innovation #FutureTech #Programming #SoftwareEngineering #AIEngineer #Cognition #news #linkedin #developer #developpeur #softwareengineering #softwaredeveloper #software #coding #tasks #bugs #ai #web3 #Web #Development #github #git #aichatbot #gpt #aibots #google #futureai #softwarecompany
How To Choose The Right SEO Service
Published: 2024-03-14 14:04:16

In the dynamic landscape of the digital world, small businesses are increasingly recognizing the importance of establishing a robust online presence to thrive in today's competitive market. Central to this endeavor is the adoption of effective Search Engine Optimization (SEO) strategies, which can significantly enhance a business's visibility and attract potential customers. However, with a myriad of SEO service providers vying for attention, selecting the right one for your small business can be a daunting task. To navigate through this process successfully, it's crucial to consider several key factors.


Firstly, defining your business goals is paramount. Whether it's increasing website traffic, improving search engine rankings, or driving online sales, having a clear understanding of your objectives will guide your search for an SEO service provider. Additionally, assessing the track record of potential candidates is essential. Requesting case studies and testimonials from past clients can provide valuable insights into the provider's expertise and success in delivering results.


Transparency and communication are also critical aspects to consider. Effective communication channels and regular progress updates ensure that you stay informed about the strategies being implemented and the outcomes achieved. Moreover, industry experience plays a vital role in selecting an SEO service provider. Look for companies with a proven track record of working with businesses similar to yours, as they are better equipped to understand your target audience and industry dynamics.


Ethical practices should never be compromised. Beware of providers promising quick-fix solutions or resorting to unethical tactics, as these can result in penalties from search engines and tarnish your brand's reputation. Instead, opt for companies that adhere to ethical SEO practices and focus on sustainable, long-term growth.


Customized strategies tailored to your business's unique needs and budget considerations should also guide your decision-making process. While cost is a factor, prioritize quality of service and the potential for long-term benefits over short-term savings.


In this landscape, Jurysoft stands out as a reputable SEO service provider offering comprehensive solutions tailored to small businesses' needs. With their experienced team and industry-leading strategies, Jurysoft can help unlock your business's full potential in the digital realm.


In conclusion, selecting the right SEO service for your small business requires thorough research, goal-setting, and consideration of various factors. By partnering with a reputable provider like Jurysoft, you can harness the power of SEO to propel your business forward in the competitive online arena. Are you ready to embark on this journey towards digital success?
How to fix the Cloudwatch log stream: ResourceNotFoundException error from ECS
Tags: ecs, aws, cloudwatch, logs
Published: 2024-03-14 13:54:09


Probably, if you are reading this article, you are facing the following bug after you've run a **Task** or **Service** in ECS:


> ResourceInitializationError: failed to validate logger args: create stream has been retried 1 times: failed to create Cloudwatch log stream: ResourceNotFoundException: The specified log group does not exist. : exit status 1

This is happening because your task doesn't have permission to create the **CloudWatch Log**. To fix it, you must make changes using the JSON format definition. The first one is to add the following line in the `logConfiguration` section:

```json
"awslogs-create-group": "true"
```

It will look like this:

```json
"logConfiguration": {
    "logDriver": "awslogs",
    "options": {
        "awslogs-create-group": "true",
        "awslogs-group": "/YOUR_CLOUD_WATCH_LOCATION",
        "awslogs-region": "YOUR_AWS_REGION",
        "awslogs-stream-prefix": "ecs"
    }
}
```

The second change, you must add a new _inline policy_ to the role that is running your task (check in the **Task definition**).

```json
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "logs:CreateLogGroup"
            ],
            "Resource": "*"
        }
    ]
}
```

That's all that you need. After you make these changes, your task or service should start running as expected.

### Follow me on:

|  Personal  |  LinkedIn  |YouTube|Instagram|Cyber Prophets|Sharing Your Stories|
|:----------|:----------|:------------:|:------------:|:------------:|:------------:|
|[![Personal](https://raw.githubusercontent.com/FANMixco/federiconavarrete/master/img/favicons/favicon.png)](https://federiconavarrete.com)|[![LinkedIn](https://i.stack.imgur.com/idQWu.png)](https://www.linkedin.com/in/federiconavarrete)|[![YouTube](https://i.stack.imgur.com/CFPMR.png)](https://youtube.com/c/FedericoNavarrete)|[![Instagram](https://i.stack.imgur.com/PIfqY.png)](https://www.instagram.com/federico_the_consultant)|[![RedCircle Podcast](https://i.stack.imgur.com/4XICF.png)](https://redcircle.com/shows/cyber-prophets)|[![RedCircle Podcast](https://i.stack.imgur.com/4XICF.png)](https://redcircle.com/shows/sharing-your-stories)|

[![sponsor me](https://raw.githubusercontent.com/FANMixco/Xamarin-SearchBar/master/bmc-rezr5vpd.gif)](https://www.buymeacoffee.com/fanmixco)
Онлайн казино в Узбекистане
Published: 2024-03-14 13:51:47

Добро пожаловать в UzbekBet, ваше главное место для захватывающих азартных игр онлайн в Узбекистане! Будучи выдающейся платформой для ставок на спорт и онлайн-казино, мы гордимся тем, что предоставляем Вам первоклассные развлечения с оттенком узбекского колорита!

Деятельность UzbekBet Bukmeker регулирует лицензия правительства Кюрасао и Нидерландских Антильских островов. Букмекер UzbekBet обладает одними из лучших условий для ставок на спорт в Узбекистане. На портале постоянно проводятся акции и розыгрыши для постоянных клиентов и новичков. В UzbekBet Casino доступно более 1000 азартных игр от лучших провайдеров.

В сфере ставок на спорт в Узбекистане UzbekBet является маяком для энтузиастов, ищущих беспрецедентные развлечения. Благодаря широкому спектру видов спорта и событий - от хоккея до баскетбола и не только - UzbekBet Bukmeker удовлетворит спортивную страсть каждого жителя Узбекистана. Погрузитесь в азарт live ставок: делайте ставки в режиме реального времени и наблюдайте за развитием событий с помощью наших передовых технологий, корректирую свои стратегии ставок.

Для тех же, кто жаждет азарта настоящего казино в Узбекистане, [Uzbek Bet Casino](https://www.uzbekbet.com/casino) предлагает увлекательный выбор игр, которые могут конкурировать с лучшими казино в отрасли. Окунитесь в классическое очарование традиционных игр казино - таких как блэкджек, рулетка и покер - или изучите нашу обширную коллекцию современных онлайн-слотов и видеопокера. Наша платформа онлайн казино в Узбекистане создана для обеспечения беспрепятственного и захватывающего игрового процесса с потрясающей графикой и динамичным игровым процессом.

В UzbekBet мы уделяем приоритетное внимание безопасности игроков, используя современную технологию шифрования, чтобы гарантировать конфиденциальность Вашей личной и финансовой информации. Наша приверженность ответственной игре непоколебима, и мы располагаем инструментами и ресурсами для создания здоровой и приятной игровой среды для Вас.

Присоединяйтесь к нам в UzbekBet, где дух Узбекистана сочетается с азартом онлайн-гемблинга! Независимо от того, являетесь ли вы опытным профессионалом или обычным игроком, наша платформа предложит что-то для каждого. Приготовьтесь отправиться в захватывающее путешествие по ставкам на спорт и играм казино, не выходя из собственного дома. Приключение начинается в UzbekBet – вашем идеальном месте, где можно получить незабываемые впечатления от азартных игр в Узбекистане!
Machine Learning KNN Model With The Titanic Database
Published: 2024-03-14 13:18:04

## The Basics

KNN is one of the simplest and most intuitive algorithms in machine learning. It’s used for classification and regression tasks. In our case we used to classify the various passengers of the famous Titanic ship.

**How Does KNN Work?**
KNN looks at the k closest data points to the one being investigated, and the distance between data points is typically measured using metrics like Euclidean distance.

For classification, KNN counts the labels of its neighbors.
The most frequent label becomes the prediction for the new data point.

## The Example
Just below, we can see a little example, by yours truly, implementing The KNN model.

`def myKNN(X_train, y_train, X_test, k):
    # calcula distância entre cada elemento
    distances = []
    for i in range(len(X_test)):
        dist = np.sqrt(np.sum((X_train - X_test[i])**2, axis=1))
        distances.append(dist)
        
    neighbors = []
    for i in range(len(X_test)):
        idx = np.argsort(distances[i])[:k]
        neighbors.append(y_train[idx])
        
    predictions = []
    for i in range(len(X_test)):
        counts = np.bincount(neighbors[i])
        pred = np.argmax(counts)
        predictions.append(pred)
        
    return predictions`

You can also implement it in a much easier way by using the pre-existing library.

`k_values = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29]
scores_list_2 = []
for k in k_values:
  classifier = KNeighborsClassifier(n_neighbors=k, weights='distance', metric='minkowski')
  classifier.fit(X_train, y_train) # treina o modelo
  prediction = classifier.predict(X_test)
  #comparison = (prediction == y_test)
  model_score = classifier.score(prediction, y_test)
  scores_list_2.append(model_score)
`