teleren/devto huggingface dataset:
Postman for API Automation and Testing
Tags: webdev, testing, automation
Published: 2022-06-28 14:18:32

As I was exploring a way to automate testing of my APIs and chaining the response of previous request to next request and so on, I stumbled up on a way to create a simple Automation testing framework using Postman.

We will be able to do the following operations, 

* Run a sequence of APIs
* Pass dynamic inputs
* Choose to run specific APIs 
* Validations of the test data before request
* Assert responses

## Inside Postman

These are the steps we follow inside Postman.

1. Create a postman requests in a collection.
2. Run the same using postman runner.
3. Inputs can be dynamically passed for different test cases using data csv files.
4. Response of previous requests can be forwarded to next request using variables.
5. Environments and secrets can be parametrized using variables.

## Running via CLI and generating comprehensive reports using newman

newman is a node module that gives us a CLI for executing postman collections.

### Installation

```sh
npm install -g newman
npm install -g newman-reporter-htmlextra
```

### Usage

```sh
newman run -d data.csv --delay-request 5000 "Test.postman_collection.json"  --reporters=cli,htmlextra 
```

Reports will be generated in a folder called newman inside current working directory.

## Using nodejs to have more control and enhancing the scripts

The steps done in command line can be done via a nodejs script as well. This will give us more control than the CLI

```js
const newman = require('newman');
const path = require('path');

var testPlan = "TestPlan"; // test plan name
newman.run({
    collection: path.join(__dirname, './plan/' + testPlan + '.json'),
    // environment: {}
    iterationData: path.join(__dirname, './plan/' + testPlan + '_data.csv'),
    // iterationCount: 5, 
    // reporters: ['cli', 'html']
    folder: ["Token Fetch", "Get Details"],
    reporters: ['cli','htmlextra'],
    reporter: {
      htmlextra: {
        export: './result/' + testPlan + '.html'
      }
    }
  });
```

Here, the folder option gives us the option to select the requests to run. 

## Further to explore

* Programmatically form requests and response
* Maintain the data in a DB for future if required
* Integrate with current CI to automatically run the tests and generate reports

If you like to explore more please refer the below links. 

## Reference

* https://www.freecodecamp.org/news/how-to-automate-rest-api-end-to-end-tests/	
* https://www.alphabold.com/postman-reporting-templates-using-newman/

Happy Coding!

---

Leave a ❤️ and comment and let me know what you think. 
Originally published at [vigneshm.me](https://vigneshm.me/posts/postman_automation/).
Yard Work For Software Developers: Be Relentless
Published: 2022-06-28 14:10:18

I've worked in IT for over 30 years now and I've been in a software development role for 22 of those years. 

## Yard Work Like IT?
Last night I was doing some yard work.  I had a huge pile of branches, limbs, twigs that I had pruned off a tree and I needed to clean them up.  To do that I had to cut them up & put them in a large trash bag.

The pile was a bit overwhelming, but, of course, each time I chopped one up I saw the pile grow smaller.

## You Get Tired
While doing the work, I did become very tired.  Sometimes you have  to break a large project down into a smaller sprints.  You have to encourage yourself that you're getting something done and celebrate your victories.

## Main Point: Be Relentless
I knew that if I just kept cutting up the individual pieces I would eventually get done if I didn't entirely abandon the project.
I just had to keep on going, no matter what.  Sure, I could take breaks.  Breaks are great.  I just couldn't give up entirely...and I wouldn't.  That's what got me through.  

## Same Thing With Tech Projects
It's the same thing with tech projects.  If you're feeling overwhelmed with getting some part of your project working, just take a break and come back to it later.  A lot of times that will help to inspire your best work anyways.

## Just Don't Give Up
We all get overwhelmed by projects.  Even after 30 years of working in IT and seeing & learning a lot of technology (& numerous programming languages) I still get stuck.  
That's when I know it's time to take a break and reset.  
Later when I come back to it, I'll think of a new way to get around the challenge.

## Be Encouraged
If you're feeling frustrated with a project, just take a break and work on other items.  You'll be amazed at how rejuvenating it is.
Just don't give up forever & you'll do great.

Just take it one branch at a time and you'll get there.
Be relentless and you'll get to the bottom of the pile & the success will be a milestone for future projects.
Introducing the Quaterion: a framework for fine-tuning similarity learning models
Tags: similaritylearning, vectorsearch, machinelearning
Published: 2022-06-28 13:17:11

Qdrant team shared the result of the work they’ve been into during the last months - **[Quaterion](https://quaterion.qdrant.tech/)**. It is a framework for fine-tuning similarity learning models that streamlines the training process to make it significantly faster and cost-efficient.

To develop Quaterion, Qdrant team utilized PyTorch Lightning, leveraging a high-performing AI research approach to constructing training loops for ML models.

This framework empowers vector search [solutions](https://qdrant.tech/solutions/), such as semantic search, anomaly detection, and others, by advanced coaching mechanism, specially designed head layers for pre-trained models, and high flexibility in terms of customization according to large-scale training pipelines and other features.

Here you can read why similarity learning is preferable to the traditional machine learning approach and how Quaterion can help benefit https://quaterion.qdrant.tech/getting_started/why_quaterion.html#why-quaterion   

Quaterion on GitHub: https://github.com/qdrant/quaterion
Kadence Sticky Sections - Bereiche oben fixieren
Tags: wordpress, kadencewp, wordpressplugins
Published: 2022-06-29 08:28:40

---
title: Kadence Sticky Sections - Bereiche oben fixieren
published: true
date: 2022-06-28 13:16:10 UTC
tags: WordPress,KadenceWP,WordPressPlugins
canonical_url: https://bloggerpilot.com/kadence-sticky-sections/
---

![Kadence Sticky Sections](https://bloggerpilot.com/wp-content/uploads/2022/06/kadence-sticky-sections.png)

Wow, mit Sticky Sections habe ich nicht gerechnet. Das Kadence-Team...

Der Original-Artikel erschien auf [Kadence Sticky Sections - Bereiche oben fixieren](https://bloggerpilot.com/kadence-sticky-sections/).

Sticky-Abschnitte gibt es in fast jedem WordPress-Design und sie funktionieren in fast jedem WordPress-Theme. Der Vorteil von Sticky Sections ist, dass du Inhaltsabschnitte oder Widgets über dem Hauptinhalt einer Webseite platzieren kannst. Du kannst Sticky Sections in WordPress verwenden, um Seitenleisten, Fußzeilen, eine Navigation und vieles mehr zu erstellen. Du kannst sticky sections über oder unter dem Inhalt platzieren. Du kannst sie auch an der Seite platzieren oder von rechts einschieben.

## Fazit
Abschließend lässt sich sagen, dass WordPress die Navigation zu einer neuen Seite verzögern kann, wenn die Seite zuerst im Browser geöffnet wird. Kadence Blocks behebt dieses Problem. Kadence Blocks ist ein WordPress (WP)-Plugin, mit dem Nutzer/innen die Kontrolle über die Seitennavigation auf ihren Websites übernehmen können. Egal, ob du eine einzelne Sticky-Navigation, eine Sticky-Navigation am oberen oder unteren Rand der Seite, eine Sticky-Seitenleiste, eine Sticky-Fußzeile, eine Sticky-Kopfzeile oder einfach ein Sticky-Menü hinzufügen möchtest, mit Kadence Blocks kannst du bestimmen, wo die Navigation angezeigt wird.
Things You Should Never Do as a Scrum Master
Tags: career, discuss, agile
Published: 2022-06-28 13:14:01

At some point in my career, I used to be a Scrum Master. And like any Scrum Master in this world, I did mistakes. So here are a few things I regret having done, hoping you won't do them with your teams:

- Proposing solutions without identifying the problem you want to solve.

As a Scrum Master, you perfectly know all the ceremonies, roles, and artifact that are described in Scrum guide. So you want to put this in place. But if your team don't understand what you are trying to improve, it will just take it as “yet another project manager's whim”.

- Recite the verses of the scrum guide to your team.

There is nothing more annoying than a Scrum Master or an agile coach reciting days after days the 12 principles of Scrum. It just makes you look like an evangelist unable to think by himself and will turn the team against you.

- Updating metrics without taking any actions.

I've seen Scrum Master drowned into metrics, spending days and days tweaking their Jira dashboard. Having dozens of metric is pointless. Find a significant metric you want to improve, take actions, improve, repeat. But remember [Goodhart's law](https://en.wikipedia.org/wiki/Goodhart's_law):

> When a measure becomes a target, it ceases to be a good measure.

- Rely only on the team to find solution

Yes, it's much better if the solution emerges from the team. But some teams aren't mature enough to even come up with a solution. You sometime have to show your team how to improve itself, you sometimes have to hold its hand for a few sprints before it can decide on its own.

- Micro-managing.

Scrum master take care of the team, not of individuals. Your goal is not to handle each developer individually, you are not a scheduler.

- Repeating “We should attack the process, not the peoples”

Yes, you SHOULD attack the process, not the people. But if you reach a point where you have to remind this to your team, it means your team probably have reach a point when there IS a people problem, and occluding the problem will just make it worst. You are in the real world, not in a Marshmallow challenge. People issues do exists. In that case, ask help to people manager or HR.

- Believing Scrum handle all kind of problems.

Scrum only handle project management problems. Scrum do not handle technical problem. Scrum do not handle behavioral problem. Scrum do not handle conflict resolution. Scrum do not handle missing skills in the team. Scrum relies on the postulate that the team is skilled and motivated. If it is not the case, doing Scrum just won't work.

And you, what advices would you like to give to newly promoted Scrum Masters ?
Why Every Programmer Should Learn How To Scrape The Web
Published: 2022-06-28 12:59:00

1. It gives you an understanding of the evolution of the web
As a web crawler, the web is a scary place. It is like landing a spaceship on an asteroid. It is because the original web browsers like Internet Explorer were very lenient on poorly written HTML, so many of the pattern matching techniques keep failing. You learn to appreciate technologies like Beautiful Soup to help tame rouge HTML.
2. It helps you understand web servers.
Web servers use several ‘tells’ to detect that you are not human. It is a bit like a game of Cat and Mouse.
3. It might teach you a new language
If you want pure power, sooner or later, you will realize the power of Scrapy, especially when combined with Scrapyd. A long, long time ago, I had to learn Python to get all the advantages Scrapy gives me, which is easily offset by the disadvantages of having to learn something new.
4. It tests your ability to think out of the box
Each website is different, has AJAX-based content; pagination comes in all shapes and sizes. You have to ‘crack’ each website separately many times as there is no one size fits all.
5. It challenges you to work at scale
What works when you are in the development mode very often crash lands when you run it at scale. To use concurrency, scale spiders, handle large amounts of data, maximize the throughput of a server or several servers, use rotating proxies to overcome IP blocks like Proxies API. Coding is only the first step.
6. It allows you to tame the chaos
It is what most of your code does. You are trying to get data out of something that wasn’t built for your bots. Most of the time, it is not easy to domesticate them.
7. It teaches you to work with frameworks
Scrapy on Scrpayd along with file pipelines if you have to download images. CSS/XPath Selectors to make scraping more predictable. Rate limiting, session handling, and concurrency — You will learn all this by trial and error.
8. It teaches you the importance of creating checks and balances
Once you have deployed the code, a single rogue javascript might bring down your project. The website changes the HTML, and the code may no longer work. Your machine has no network, but if there is no check for this, you will end up with several thousand empty documents. You will learn to anticipate, put in checks and alerts to immediately know, and debug if there is something wrong in your workflow.

The author is the founder of Proxies API a proxy rotation API service.
The story of Android (Bangla)
Tags: android
Published: 2022-06-28 12:50:23

এন্ড্রয়েডের উত্থান (যেভাবে গুগুল এন্ড্রয়েড অপারেটিং পেয়েছে)

১৭ বছর আগে গড়ে তোলা একটি স্টার্টআপ কিভাবে গুগুলকে বিলিয়ন ডলার আয় এনে দেয়?
আজ আমরা জানাবো কিভাবে গুগুল Android acquired  করে।
গল্পটা ২০০৩ সালে ক্যালিফোর্নিয়ার পলো অল্টোতে, Andy Rubin যে, সবেমাত্র তার ১ম স্টার্টআপ শুরু করেছে এবং ২য় স্টার্টআপের দিকে ঝুকছে।
তার সহকর্মীরা তাকে "এন্ড্রোয়েড"বলে ডাকে কারণ সে রোবট নিয়ে খেলতে ভালবাসে, তাই সে তার ২য় স্টার্টআপের নাম দেয় Android Inc. 
মূলত তার আইডিয়াটা ছিল ডিজিটাল ক্যামেরার জন্য অপারেটিং সিস্টেম বানানো কিন্তু এটা খুব একটা ভাল আইডিয়া ছিল না কারণ ডিজিটাল ক্যামেরা দিন দিন তার জনপ্রিয়তা হারিয়ে নিঃশেষ হয়ে যাচ্ছে এবং মোবাইল ফোন তার জায়গা দখল করে নিচ্ছে,  তাই সিলিকন ভ্যালির কেউই এই আইডিয়ার উপর ফান্ডিং করতে রাজি হয় না
তাই এন্ডি তার বন্ধুদেরকে অনুরোধ করে ফান্ডিং করার জন্য, কেউ রাজি না হলেও Steve Perlman তাতক্ষণিক তার ব্যাংক একাউন্ট থেকে ১০ হাজার ডলার তুলে এন্ডিকে দেয় এবং বলে " আমার তোমার এই আইডিয়াতে আস্থা আছে এবং আমি তোমাকে সাহায্য করতে চাই"
এই টাকাগুলা একটা শেষ হওয়া কোম্পানির জন্য আশার আলো হয়ে দাঁড়ায়, ফলে মৃতপ্রায় এন্ড্রয়েড টিকে যায় এবং এন্ডি সিধান্ত নেয় এবার সে মোবাইল ফোনের অপারেটিং সিস্টেম বানাবে কারণ তার আগের আইডিয়াটা তার খুব একটা কাজে লাগেনি৷  তার এবারের এই সিধান্তটা একটা যুগপোযুগী সিধান্ত ছিল কারণ ঐ সময়ে দিন দিন ফোনের বাজার সম্প্রসারিত হচ্ছিল এবং চলমান মোবাইল ফোন ম্যানুফেকচারিং কোম্পানি গুলা জানতো না কিভাবে একটা অপারেটিং সিস্টেম বানাতে হয়।
তাই এন্ডি খুব ভেবে চিন্তে সিধান্ত নেয়, এমন এক অপারেটিং সিস্টেম বানাবে, যা হবে একে বারে ফ্রি এবং সহজ UI সমৃদ্ধ। 
তাই এন্ডি এবার নতুন পিচিং পাঠাতে শুরু করে বিভিন্ন VCs এর কাছে এবং এটা অদ্ভুতভাবে গুগুলের ল্যারি পেজের হাতে পরে এবং সে তার আইডিয়াতে খুব মুগ্ধ হয়ে এন্ডির সাথে মিটিং করার জন্য প্রস্তাব পাঠায় এন্ড্রির কাছে। ২০০৫ এর জানুয়ারিতে সে ল্যারি পেজ ও সার্গেই ব্রিনের সাথে মিটিং করে কিন্তু সেখান থেকে তার তেমন কোন আশানুরূপ ফল আসেনি। 
ফলে আবার ৪৫ দিন পর গুগুল থেকে আরেকটিং মিটিংএর অফার পায় কিন্তু এবারও ভাল কিছুই হয়নি।
এরপর ঐ বছরই মার্চের মাঝামাঝিতে তার পিচিংএ ২ জন VCs রাজি হয় ইনভেস্ট করতে। এটা গুগুল জানতে পারে এবং তাতক্ষণিক এন্ডির সাথে মিটিং করার সিধান্ত নেয় কিন্তু ইনভেস্ট করার জন্য না, এবার গুগুল সরাসরি তার আইডিয়া কেনার অফার দেয় যার মূল্য ধরা হয় ৫০ মিলিয়ন ডলার যা ১০ হাজার দিয়ে শুরু হয়েছিল।
এবার এন্ডি খুব সিধান্তহীনতায় ভোগে, যে সে এটা বিক্রি করবে কি করবে না
কিন্তু গুগুল তাকে ভালভাবেই বুঝায় যে, সে কখনই ফোন ম্যানুফ্যাকচারার বা টেলিকম কোম্পানিকে এটা কেনার বা ব্যবহারের জন্য কখনোই বুঝাতে সক্ষম হবে না যেটা গুগুল পারবে।
পরিশেষে, এন্ডি বুঝতে পারে বিক্রি করায় তার সবচেয়ে ভাল সিধান্ত হবে, ফলে সে অন্য ফান্ডিং গুলা রিজেক্ট করে দেয় এবং গুগুলের কাছে এন্ড্রয়েড বিক্রি করে দেয়।

অবাক করা বিষয় হল, বর্তমানে এই এন্ড্রয়েডই পৃথবীর সবচেয়ে জনপ্রিয় স্মার্টফোনের অপারেটিং সিস্টেম যা মোট বাজারের ৭০% শেয়ার দখল করে আছে এবং এটা গুগুলকে প্রতি বছর বিলিয়ন ডলার এনে দেয় যা মাত্র ৫০ মিলিয়ন ডলার দিয়ে গুগুল কিনেছিল এবং যার শুরুর মূল্য ছিল ১০ হাজার ডলার দিয়ে।

বিপ্লব হুসাইন শেখ
Uncovering the mysteries of on-call
Published: 2022-06-28 12:43:44

For the vast majority of organisations, some form of round-the-clock cover is critical to successful business operations. On-call is an essential part of an effective incident response process, yet there is no commonly accepted playbook on how to most effectively structure and [compensate on-callers](https://incident.io/blog/fair-on-call-compensation).

We ran a survey to uncover the mysteries of how on-call works in organisations of different shapes and sizes around the world.

You can download the full report below, or read on to get a few of the headlines.

[Download full report](https://incident.io/content/uncovering-the-mysteries-of-on-call)

TL;DR
=====

We had over 200 responses, ranging from globally recognised tech leaders including Google, Amazon and Airbnb, to small start-ups with fewer than 50 employees. Here are the highlights:

In nearly 70% of organisations, each team is responsible for their own on-call rota, rather than having a single or multiple centralised on-call teams.

Over 40% of participants were not compensated for on-call. Interestingly, this was more common in larger organisations (+5,000 people) than in small to mid-sized organisations that participated in the survey.

Where companies did provide compensation, most paid a fixed amount for time spent on-call (e.g. $X per hour, day or week). But the actual dollar amount paid ranged significantly, from $5 to $1,000 per week, with the average weekly rate at $540.

The most commonly cited on-call challenges were:

1.  Disrupted personal life (30%)
2.  Dealing with issues without sufficient context or knowledge (24%)
3.  Lack of sleep (12%)
4.  False alerts (10%)

Need help calculating your on-call compensation?
================================================

Our report recommends paying a fixed rate for time spent on-call, calculated down to the minute, regardless of whether or not someone is paged. This helps compensate for the inconvenience and disruption of needing to be available 24/7. From bitter experience, we know that calculating time spent on-call accurately can be tricky, especially when you want to account for weekend rates, holidays and multiple schedules.

That's why we've just launched an on-call compensation calculator. Just connect your PagerDuty account to incident.io, tell us the rules you use to calculate on-call pay and we'll do the rest.

![](https://miro.medium.com/max/1200/0*mZ7PxvnY3md8dicA.png)

You'll be able to automatically generate a report detailing how much on-call pay each member of the team is owed, based on the hours spent holding the pager. Your responders can also see a breakdown of what they're being paid for each shift, making it super transparent for everyone.

Et voila --- on-call compensation, made easy.
I need to add the notification feature in my Web App like that of Facebook using NODE JS and MONGO DB. How should I start?
Tags: mongodb, node, react, webdev
Published: 2022-06-28 12:43:22

Hi ...
**first of all sorry about my english :).** 
I am building a management system web app using MERN stack , and for this project notification must be sent to the admin when for example a user sends a comment.
my question how can i make this notification system real time for example like facebook? so that the admin doesn't have to reload the page to get the notification.
Why You Should Use a Screenshot API to Take Better Screenshots
Tags: api
Published: 2022-06-28 12:36:40

Using a screenshot API can improve the quality of your screenshots by providing high-resolution images and greater control over the capture process. A screenshot API can also help to automate the capture of multiple screenshots, making it easier to take high-quality screenshots on a regular basis.
While there are many different ways to take a screenshot, using a screenshot API can be one of the easiest methods. A **[screenshot API](https://apilayer.com/marketplace/screenshot-api)** can make it easy to take screenshots without having to install any software or drivers. In addition, a screenshot API can be used on any operating system, making it a versatile tool for taking screenshots.
There are many benefits to using a screenshot API. A screenshot API can make it faster to take screenshots, and can also help you avoid potential errors that might occur when taking screenshots manually. In addition, a screenshot API can provide you with more information about the process of taking screenshots, so that you can improve your workflow.
Latest Key Trends in WordPress Website Design
Tags: wordpress, webdev, design
Published: 2022-06-28 12:25:53

<p>The WordPress community is a vibrant and active one, with new features and designs being developed every day. As a result, there are always new trends in WordPress design.</p>
<h2>Key Trends in WordPress Design</h2>
<p>We've rounded up some of the hottest WordPress website design trends that designers implement of late to create websites with an exceptional design.</p>
<h3>1. Minimalist design</h3>
<p>Minimalist design is all about simplicity. As the name suggests, this design style focuses on reducing clutter and making sure that what you do have is as clean and clear as possible. A minimalist website will look like it has a lot of white space&mdash;or blank space&mdash;between elements on the screen. This can be achieved by using larger fonts or using simple backgrounds instead of busy ones with lots of patterns and gradients in them.</p>
<h3>2. Responsive design</h3>
<p>Responsive design is the ability of a website to adapt to different screen sizes. It's a must-have in today's digital world, as more and more people turn to mobile devices for information and entertainment.</p>
<h3>3. Parallax effect</h3>
<p>The parallax effect is a scrolling effect that moves the background image at a different speed than the foreground image. It makes your website more immersive and engaging for users, but can be challenging to implement.</p>
<p>Incorporate parallax design into your WordPress theme by using it sparingly on full-width backgrounds or as an accent color in headers and footers. This will make your website stand out from others without being overbearing.</p>
<h3>4. Video background</h3>
<p>A video background is a very versatile element and can be used to showcase a variety of things in your <a href="https://www.webomindapps.ca/wordpress-website-design-toronto/">WordPress website design</a>. You can use it to display products, services, or concepts. You can also use it to tell an engaging story with the help of animations, which are great for grabbing attention. Other than that, videos have the ability to draw in viewers because they're more engaging than static images or text.</p>