teleren/devto huggingface dataset:
Getting Stubby request configuration from your request URLs
Tags: stubby, api, requests, chatgpt
Published: 2023-02-07 14:58:30

---
title: Getting Stubby request configuration from your request URLs
published: true
description: In this article, you will learn how to configure Stubby to match your request URL, including dynamic values and query parameters.
tags: Stubby, API, Requests, chatGPT
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rx7vo3a5hxtwypexcc39.png
---

> *TLDR*: Learn how to generate Stubby configuration from your request URLs. This article covers two example configurations for endpoints with query parameters and dynamic values in the path.

##Introduction

[Stubby](https://www.npmjs.com/package/stubby) is a powerful HTTP stubbing tool that enables you to simulate an API. It is very helpful in a development environment where you want to test your application without hitting the actual APIs.

## Example 1 - Endpoint with Query Parameters
Consider the following input URL:

`http://localhost:4000/statistics/orders?from=2023-02-04T00:00&to=2023-02-07T15:54`


Here is the Stubby configuration for the above URL:

```json
{
  "request": {
    "url": "statistics/orders$",
    "query": {
      "from": ".{0,30}",
      "to": ".{0,30}",
    },
    "post": null,
    "method": "GET"
  },
  "response": {
    "status": 200,
    "latency": 0,
    "headers": {
      "Content-Type": "text/html; charset=utf-8",
      "Access-Control-Allow-Origin": "http://localhost:4200",
      "Access-Control-Allow-Credentials": true
    },
    "file": "data/statistics/orders_GET_200.json"
  }
}
```

## Example 2 - Endpoint with Dynamic Value in the Path
Consider the following input URL:

`http://localhost:4000/statistics/orders/700?from=2023-02-01T00:00&to=2023-02-07T15:46`

Here is the Stubby configuration for the above URL:

```json
{
  "request": {
    "url": "statistics/orders/[0-9]+$",
    "query": {
      "from": ".{0,30}",
      "to": ".{0,30}"
    },
    "post": null,
    "method": "GET"
  },
  "response": {
    "status": 200,
    "latency": 0,
    "headers": {
      "Content-Type": "text/html; charset=utf-8",
      "Access-Control-Allow-Origin": "http://localhost:4200",
      "Access-Control-Allow-Credentials": true
    },
    "file": "data/statistics/orders_[id]_GET_200.json"
  }
}
```

## Conclusion
In this article, you learned how to generate Stubby configurations for endpoints with query parameters and dynamic values in the path. Stubby is a great tool to simulate APIs in a development environment. With these examples, you now have a good starting point to create Stubby configurations for your own APIs.

> Note: This article was generated using OpenAI's ChatGPT and may contain errors.
Enable Emmet support for JSX in VS Code-✨React✨
Published: 2023-02-07 14:51:32

#### First, open any source folder on VS Code and go to Settings.
- Select Extensions.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l07ckbgguowyh0i1z6kq.PNG)
- Search Emmet section.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lglorh5er0ubp4tev7b1.png)
- Press the Add Item.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gy3k8tlkjtasykbid9b7.png)
- fill up the input.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xqjox10q2jp51ycs18sk.PNG)
- Press the ok button.

#### Emmet should be enabled in js files now! 🎉🎉🎉🎉
Top 10 apps for FREE appointment Scheduling
Tags: appoinment, scheduling, calendar, freeapps
Published: 2023-02-07 14:50:20

Here are some popular, free appointment booking apps along with their details and URLs:

##1. Calendly (https://calendly.com) - 
Calendly is a user-friendly appointment scheduling software that allows businesses to schedule appointments with clients. It offers a free basic plan with limited features.

##2. Acuity Scheduling (https://acuityscheduling.com) - 
Acuity Scheduling is a web-based appointment scheduling software that enables businesses to manage appointments and automate reminders. It offers a free basic plan with limited features.

##3. Square Appointments (https://square.com/appointments) - 
Square Appointments is a cloud-based appointment scheduling platform for businesses. It offers a free basic plan with limited features.

##4. Appointy (https://www.appointy.com) - 
Appointy is a cloud-based appointment scheduling platform that enables businesses to manage appointments, clients, and services. It offers a free basic plan with limited features.

##5. Setmore (https://setmore.com) - 
Setmore is a web-based appointment scheduling platform that enables businesses to manage appointments, clients, and services. It offers a free basic plan with limited features.

##6. SimplyBook.me (https://simplybook.me) - 
SimplyBook.me is a cloud-based appointment scheduling platform that enables businesses to manage appointments, clients, and services. It offers a free basic plan with limited features.

##7. Bookeo (https://www.bookeo.com) - 
Bookeo is a web-based appointment scheduling platform for businesses. It offers a free basic plan with limited features.

##8. 10to8 (https://10to8.com) - 
10to8 is a cloud-based appointment scheduling platform that enables businesses to manage appointments, clients, and services. It offers a free basic plan with limited features.

##9. Timely (https://timelyapp.com) - 
Timely is a web-based appointment scheduling platform that enables businesses to manage appointments, clients, and services. It offers a free basic plan with limited features.

##10. ScheduleOnce (https://www.scheduleonce.com) - 
ScheduleOnce is a cloud-based appointment scheduling platform that enables businesses to manage appointments, clients, and services. It offers a free basic plan with limited features.

Note: The features offered in each free plan may vary, and some services may have usage limits or restrictions.
Install WordPress with MySQL
Tags: wordpress, mysql, webdev, programming
Published: 2023-02-07 14:36:38

WordPress is one of the most popular content management systems (CMS) in the world, used by millions of websites for various purposes, from blogs and portfolios to e-commerce sites and more. To run a WordPress site, you need a web server, a PHP environment, and a database management system. In this blog, we will focus on installing WordPress with MySQL, the most popular database management system used with WordPress.

**PREREQUISITES**
Before you can install WordPress, you need to have the following:

- A web server (Apache or Nginx)
- PHP 7.2 or higher
- MySQL 5.6 or higher
- A domain name and web hosting account

**STEP 1: DOWNLOAD AND EXTRACT WORDPRESS**
The next step is to download the latest version of WordPress from the official website ([https://wordpress.org/download/](https://wordpress.org/download/)). Once the download is complete, extract the archive to your computer.

**STEP 2: CREATE A MYSQL DATABASE**
Create a database for your WordPress installation. However, You can also use the MySQL command-line interface or through your web hosting control panel. Here is an example of how to create a database using the MySQL command-line interface:

> mysql -u root -p
> Enter password:
> Welcome to the MySQL monitor.
> Commands end with ; or \g.
> Your MySQL connection id is 10
> Server version: 5.7.29 MySQL Community Server (GPL)

> mysql> CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
> Query OK, 1 row affected (0.01 sec)

> mysql> GRANT ALL PRIVILEGES ON wordpress.* TO ‘wp_user’@’localhost’ IDENTIFIED BY ‘password’;
> Query OK, 0 rows affected (0.01 sec)

> mysql> FLUSH PRIVILEGES;
> Query OK, 0 rows affected (0.01 sec)

> mysql> EXIT;

**STEP 3: CONFIGURE WORDPRESS**
Rename the wp-config-sample.php file to wp-config.php and edit it with the details of your database.

> define(‘DB_NAME’, ‘wordpress’);
> define(‘DB_USER’, ‘wp_user’);
> define(‘DB_PASSWORD’, ‘password’);
> define(‘DB_HOST’, ‘localhost’);
> define(‘DB_CHARSET’, ‘utf8’);
> define(‘DB_COLLATE’, ‘utf8_unicode_ci’);

**STEP 4: UPLOAD WORDPRESS TO THE SERVER**
Use an FTP client to upload the WordPress files to your web server. The preferred location is the root directory (e.g. public_html).

**STEP 5: COMPLETE THE INSTALLATION**
Visit your website in a web browser and complete the installation process. You will need to provide the following information:

- Site title
- Admin username and password
- Email address

After the installation is complete, you can log in to the WordPress dashboard and start customizing your website.

In conclusion, installing WordPress with MySQL is a simple process that requires a few basic steps. By following this guide, you will have a functional WordPress website in no time.

This is the end of this blog post. Thank you for reading!

[https://user-meta.com/blog/install-wordpress-mysql](https://user-meta.com/blog/install-wordpress-mysql)
Top 8 WordPress Plugins To Insert Header And Footer Scripts
Tags: wordpress, programming, software
Published: 2023-02-07 14:08:24

One of the most popular content management systems is WordPress. Since its introduction in 2003, 42% of the most popular websites have adopted it. It has a plugin and template architecture and is built on the well-known PHP language.

**What are WordPress Plugins?**
In order to expand the functionality and features of your current WordPress website, plugins are ready-to-use bits of code. There are many free and paid plugins available in the market that can enable you to design an efficient website. Plugins offer a means to add new features without writing new code and allow you to create nearly any form of the website.

**What are Headers and Footers in WordPress?**
WordPress websites use a layout in which the page is separated into various sections, each of which has a distinct function. The area at the top of a page on a WordPress website is known as the header.

Although it may also incorporate account settings, social networking connections, and search features, it typically consists of the website's logo and key navigation components.

A footer is the bottom portion of the page, just as the header is at the top. The majority of the information in a footer area is related to privacy policies, copyright, navigation to other pages, credits, and many other topics.

**List of  WordPress Plugins To Insert Header And Footer Scripts**
1. Insert Headers & Footers
2. Ad Inserter
3. Elementor Header & Footer Builder
4. Header Footer Code Manager Plugin
5. Tag Manager
6. Woody Code Snippets
7. HT Scripts Pro
8. Stax Header

It's important to choose a header and footer plugin that works with your WordPress site from the many options available. This article will help you to get all information about the WordPress Plugins To Insert Header And Footer Scripts.
The Ultimate List of Job Hunting Resources for Software Developers Part 1: Get Your Resume Ready
Tags: jobhunting, interviewprep, resume, jobsearching
Published: 2023-02-07 14:05:10

---
title: The Ultimate List of Job Hunting Resources for Software Developers Part 1: Get Your Resume Ready
published: true
description: Part 1 of The Ultimate List of Job Hunting Resources for Software Developers, get your resume ready
tags: #jobhunting #interviewprep #resume #jobsearching
# cover_image: https://cdn-images-1.medium.com/max/1600/0*Q-tmay9vYcIfLVJV
# Use a ratio of 100:42 for best results.
# published_at: 2023-02-07 13:55 +0000
---
_I've compiled and curated a list of job hunting resources for software developers, it covers resources for writing resumes, applying and managing job applications, efficient ways to prepare for coding interviews, resources to learn system design, you can download the free PDF [here](https://devgrowth.gumroad.com/l/TheUltimateListofJobHuntingResourcesforSoftwareDevelopers)._

---

For this post, I am going to share resources that you can use in putting together a resume to get you interview opportunities:

## Step 1: Write down your career stories in resume
- Read [Practical guide to writing FAANG-ready software engineer resume](https://www.techinterviewhandbook.org/resume/)
- Read [The Tech Resume Inside Out](https://thetechresume.com/) to learn about what a good tech resume looks like and why
- Read [Cracking the Coding Interview](https://amzn.to/3kDAsM9): check the section Introduction-Before the Interview

## Step 2: Vet your resume
Once you finish writing your resume, it is essential to have someone else vet your resume, you can ask your friends to help with proofreading, run it through Grammarly to correct grammar errors, or if your resume has never been vetted before you can find dedicated service on [Fiverr](https://go.fiverr.com/visit/?bta=628384&brand=fiverrhybrid&landingPage=https%3A%2F%2Fwww.fiverr.com%2Fjytliu%2Frewrite-your-software-engineering-resume-and-cover-letter%3Fcontext_referrer%3Dsearch_gigs%26source%3Dtop-bar%26ref_ctx_id%3D9825771f1524f46a02902322fd790866%26pckg_id%3D1%26pos%3D4%26ad_key%3D985f8c0c-772c-44d7-be01-74efb8d85651%26context_type%3Dauto%26funnel%3D9825771f1524f46a02902322fd790866%26fiverr_choice%3Dtrue%26imp_id%3D3d8c17b6-f947-4677-8909-579b49ad827f) to review and edit your resume.

## Step 3: Take it further to build your personal brand online
If you have projects you are proud of and can demonstrate your skill sets , you can showcase it with one page websites. You can use [Carrd](https://try.carrd.co/kk6ddf2f) to create simple, free, fully responsive one-page sites for your projects/products.

If you want to take it further to establish a personal brand online as a developer, you should get a domain via registrars such as [Namecheap](https://namecheap.pxf.io/rn9eeR), they usually have very affordable domains.

---

If you have seen resources that helped your job hunting process, leave a comment and share with more people :)
Next post I will go over apply for jobs and tools to manage job applications. Stay tuned!
Google Authentication with Firebase for Flutter Desktop Apps
Tags: flutter, firebase, programming, tutorial
Published: 2023-02-07 14:03:25

Integrating Google sign-in with a flutter desktop app is different from mobile apps because a popular flutter package named `google_sign_in` doesn't support desktop platforms yet. 

This article will guide you on implementing **Sign-in with Google** for your Flutter desktop apps using **OAuth2.0** protocol and desktop browser.

Here's what the OAuth 2.0 flow in Google SignIn looks like:

- User clicks on the “Sign in with Google” button in our app, which redirects them to Google’s 2.0 authorization endpoint.
- The user is prompted to log in to their Google account and grant permission for our app to access their data.
- If the user grants permission, Google redirects the browser to the redirect URI specified in the initial request, along with an authorization code.
- Our app sends a request to Google’s OAuth 2.0 token endpoint, along with the authorization code for an access token.
- Google returns an access token, which our app can use to authenticate requests to the corresponding Google service’s API.
- Our app can now make authorized requests on behalf of the user until the access token expires or is revoked by the user.

Table of Contents:

- Prerequisites
  - Set up the firebase project
  - Configure the OAuth client
  - Set up the flutter Project
- Let's Get Started
  - Add Dependencies
  - Import the dependencies
  - Getting Credentials
  - Obtaining OAuth2 Client and Access Token
  - Redirecting to the Authorization URL
  - Get Authorization Code from the request
  - Creating AuthCredentials for firebase authentication
  - Signing a user with AuthCredentials
  - Implementing Firebase Sign-out 

For a step by step implementation guide, check out our [canopas blog](https://blog.canopas.com/google-authentication-with-firebase-for-flutter-desktop-apps-d8bbcd8f5073).
Remote Acess App
Published: 2023-02-07 13:45:14

Good morning!

I'm learning about remote acess application like Anydesk, TeamViewer but I'm in dificult. I'm coding in c# a app RDP, but not is what a want. I'm wanted a application that comunicate with 3 users. A server, a client and other client, not using the RDP because use only Windows and have problems with security. Someone have knowledge about it? Thank you.
3 new videos: Intel Sapphire Rapids inference, few-shot learning with SetFit, and semantic search…
Tags: ai, transformers, computervision, deeplearning
Published: 2023-02-23 16:41:50

---
title: 3 new videos: Intel Sapphire Rapids inference, few-shot learning with SetFit, and semantic search…
published: true
date: 2023-02-07 13:22:29 UTC
tags: ai,transformers,computervision,deeplearning
canonical_url: https://julsimon.medium.com/3-new-videos-intel-sapphire-rapids-inference-few-shot-learning-with-setfit-and-semantic-search-e3f3cc9e1f6b
---

### 3 new videos: Intel Sapphire Rapids inference, few-shot learning with SetFit, and semantic search on images and videos with BridgeTower

Not one, but three new [Hugging Face](https://www.linkedin.com/feed/#) videos today :) Learn and share!

{% youtube -q9rmF6fK_w %}

In this video, you will learn how to accelerate PyTorch inference with an Intel Sapphire Rapids server running on AWS. Working with popular Hugging Face transformers implemented with PyTorch, we’ll first measure their performance on an Ice Lake server for short and long NLP token sequences. Then, we’ll do the same with a Sapphire Rapids server and the latest version of Hugging Face Optimum Intel, an open-source library dedicated to hardware acceleration for Intel platforms.

{% youtube 3uOXG01mcUQ %}

In this video, I’m using SetFit, an open source library for few-shot learning to train a text classification model from only 16 labeled samples. In less than 2.5 minutes of CPU training, I get an accuracy of 94.5% :)

{% youtube 1Qzkzk3iQFw %}

BridgeTower is a new vision-language multimodal model by Intel and Microsoft. In this video, I show you two quick demos for semantic search on images and videos.
Kafka older topic reassign to newly created broker!
Published: 2023-02-07 13:20:33

Hi Team,

Need help to reassign existing topics to newly added brokers. Earlier we had 3 brokers and 1 zookeeper. Now we have added one more broker. We are trying to move our already some of existing topics to assign on new broker, partition is happening but while reassign, its going in still in progress(pending) for infinite. Can you guys help me with this? 

kafka version: 2.1.1

Followed Docs: https://stackoverflow.com/questions/74010964/add-a-new-partition-to-existing-topic-and-assign-it-to-a-specific-node

https://medium.com/@abdullahtrmn/reassigning-kafka-partitions-7f9ae0989317
Low-code solutions for Indie Hacking in 2023?
Tags: javascript, webdev, lowcode
Published: 2023-02-07 13:16:42

I initially pursued becoming a developer because I wanted to build my ideas out and learning to code seemed to be the easiest way. You can just come up with solutions to problems anywhere in the world using just your laptop. Being more on the introverted side, I never liked to be in the "field" talking to prospects and selling face to face (door to door) or on the phone (I've tried and I sucked at it). 

Learning software development was empowering, but at the same time it didn't make things much easier right away. You still have to pick a programming language, framework, and the learning never seems to stop. 

## What about No-Code?
Over the past few there has been an explosion of low-code and no-code solutions but it still feels like there isn't enough. There is still a big barrier between your idea and the product. Additionally, many developer entrepreneurs don't want to pay a monthly fee for something they can build themselves. I can relate. 

Why pay $29/month for something that can easily be deployed to Vercel for free? Especially if you are just testing out an idea. 


## Templates?
Wordpress and Shopify themes have a good model for getting a solution up and running quickly. And recently there have been more code-oriented templates on the market like TailwindUI and such. But those are just landing page templates. What about if you want to build something fullstack? Like a job board or a directory. You will have to dig through GitHub and be lucky to stumble upon a template. But even then, you will need to spend about a week learning the stack that is used and most times those templates aren't production level solutions. 


## So what is the solution?
Here is the tech stack that I believe is the most flexible for developers who are looking to build our their ideas and launch something to production in 2023:

### 1. [Next.js](https://nextjs.org/)
Next.js is quickly becoming a Fullstack framework where you can build most of what you need with the API routes.

### 2. [Prisma](https://www.prisma.io/)
If you need a database for storage, you can use Prisma and pretty much any database provider that you need like PlanetScale or such. 

### 3. [Sanity](https://www.sanity.io/)
If you need a CMS, there are many solutions out there. However, with the recent update, Sanity now allows you to host your Sanity CMS backend on a Next.js route. So your hobby/side project will literally have $0 in upstart costs. 

Stay tuned as I will be releasing tutorials and templates for this tech stack to help you quickly go from idea to launch!
WordPress debugging: disable heartbeats
Tags: wordpress, php, debug, woocommerce
Published: 2023-02-07 13:07:18

## Takeaways:

- WordPress heartbeats **disturb debugging** by issuing regular AJAX requests.
- Heartbeats **can be disabled** with a PHP code or by using a special WordPress plugin.
- Heartbeats are required for normal WordPress and WooCommerce operation, so **disable them only temporarily**, for debugging.

## Background:

###What are heartbeats in WordPress?

Heartbeats is an essential feature of the WordPress administration.

To provide auto-saving, post locking, login expiration warnings, etc. WordPress sends regular AJAX calls, "heartbeats" from the browser to the server.

### How to debug PHP code in WordPress?

As a PhpStorm user, to debug a WordPress website, I first install and activate Xdebug.

Then I configure PhpStorm to listen for Xdebug connections, set breakpoints in the WordPress code, and start a debugging session by visiting the website with a special cookie set.

The official instructions for debugging WordPress with PhpStorm can be found on the JetBrains website:

[Debugging WordPress with PHPStorm](https://www.jetbrains.com/help/phpstorm/debugging-wordpress.html)

It provides a comprehensive guide on how to set up and use PhpStorm for debugging WordPress, including the installation and activation of Xdebug, configuring PhpStorm, and starting a debugging session.

## What is the problem with heartbeats?

Once PHPStorm and Xdebug set up, I can inspect variables and step through the code during the paused execution at the breakpoints.
However, every so and so seconds, my debugging screen opens a new tab showing a heartbeat request:

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

**This is annoying, consumes memory and slows down the website and PHPStorm IDE.**

## What can be done?

To stop heartbeats, place this to your WordPress theme's `functions.php`:

```
add_action(
	'init',
	function () {
		wp_deregister_script( 'heartbeat' );
	}
);
```

There are a couple of issues with this simple method:

- The post autosave will fail, causing PHP notices and JavaScript errors.
- When you push the code to production, you might forget to remove that code snippet and break the website operation.

**A solution** would be to place the code to a custom plugin and never push that plugin to the live site.

**A better way** would be using a 3rd party plugin that has that code in place and also takes care of the side effects.

Here is a popular plugin that you can try:

[Heartbeat Control](https://wordpress.org/plugins/heartbeat-control/)

If your site is running **WooCommerce**, you might consider this premium extension, which provides multiple administration tools, including stopping heartbeats:

[Admin Tools for WooCommerce](https://woocommerce.com/products/admin-tools-for-woocommerce/)