teleren/devto huggingface dataset:
How To Create Jenkins Job With Parameter | Jenkins Tutorial Step by Step
Tags: webdev, beginners, programming, tutorial
Published: 2023-02-20 05:03:30

In this video, we are going to learn about the parameters in jenkins.

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

A build parameter allows us to pass data into our Jenkins jobs. Using build parameters, we can pass any data we want: git branch name, secret credentials, hostnames and ports, and so on. 
Any Jenkins job or pipeline can be parameterized.

This script given below has the following parameter types.
Choice parameters.
Boolean parameter.
Multi-line string parameter.
String Parameter.

Syntax to Fetch Values -    
Windows   -  %parametername%
*nux/mac  -   $parametername
                     ${parametername}
                     "${parametername}"




🟣🟣 LINK To Slide
http://sdet.live/notes


🟣🟣 LINK To the Project
https://github.com/apitestingco/RestA...




#jenkinsparameters #jenkins #jenkinstutorial #jenkinsstepbystep

🟢 30 Days of Automation Testing
https://go.scrolltest.com/automation


🟢 30 Days of API Testing
https://apitesting.co/30days


🟢 30 Days of Rest Assured
https://go.scrolltest.com/30days-rest...


🟣🟣 Download Slides and Notes - http://sdet.live/notes

🟣🟣 My Resume Template - http://sdet.live/notes


✅ API Testing –
https://www.learnapitesting.com


✅ Cypress Tutorial with LIVE Projects –
http://cypresstutorial.com


🔗 Join the Facebook Group - http://scrolltest.com/fb

🔗 Learn API Testing(with Postman) - https://learnapitesting.com/

🔗 Rest API Testing with Python - http://masterapitesting.com/

🔗 E2E Frontend Testing with Cypress - http://cypresstutorial.com/

🔗 Join Our Automation Newsletter - http://scrolltest.com/tta

🔗 Master API Testing Bundle - https://apitesting.co/bundle

🔗 Rest Assured MasterClass- https://apitesting.co/enroll
How to use @next/font globally
Tags: nextjs, font, css
Published: 2023-02-20 04:13:09

The [@next/font](https://www.npmjs.com/package/@next/font) package can download Google Fonts at build time and self-host them as a static asset. This is useful because no requests are made to Google by the client to request fonts used on the page. 

However, it wasn't obvious to me how to apply the font globally. This can be achieved as follows.

### app.js

```js
import "@/styles/globals.css";

import { DM_Sans } from "@next/font/google";

const dm_sans = DM_Sans({
  display: "swap",
  subsets: ["latin"],
  weight: ["400", "500", "700"],
});

export default function App({ Component, pageProps }) {
  return (
    <>
      <style jsx global>{`
        :root {
          --dm-font: ${dm_sans.style.fontFamily};
        }
      `}</style>
      <Component {...pageProps} />
    </>
  );
}
```

And then use the CSS variable in your stylesheet.

### global.css

```css
body {
  font-family: var(--dm-font);
}
```
How to set up a real-time leaderboard for an online gaming application?
Tags: aws, architecture, devops, beginners
Published: 2023-02-20 04:56:44

AWS Elasticache is an in-memory database that provides high performance with low latency. Elasticache for Redis would be the ideal solution for this scenario.

Redis sorted sets are used for computationally complex use cases like gaming leaderboards and it guarantees:
1. Uniqueness
2. Element ordering
3. Real-time re-ranking of new elements

Salient Features of Elasticache-Redis:
1. Auto-Failover capability / Multi A-Z
2. Seamless scaling
3. High Availability with Read Replicas
4. Backup and restoration

Note: Redis is not suitable for multi-thread architectures.

See the below diagram for the sample architecture and "how it works" details.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2d7wwa3rn5o7dqeeasa9.PNG)

Feel freel to follow me here: https://www.linkedin.com/in/govardhana-miriyala-kannaiah/

for more cool content !
10 Powerful Tips to Boost Your iPhone Productivity and Focus
Tags: productivity, tutorial
Published: 2023-02-20 04:10:20

If you are someone who struggles to stay focused and productive while using your iPhone, don't worry, you're not alone. The good news is that there are many things you can do to optimize your iPhone usage and increase your productivity. Here are 10 powerful tips that can help you:

## 1. Turn off unnecessary notifications
Notifications can be a major source of distraction. Turn off any notifications that are not essential for your work or personal life. This will help you stay focused on what's important.

## 2. Create a morning routine
Start your day with a purpose by creating a morning routine. This could include meditation, exercise, or simply reviewing your to-do list for the day. A productive morning routine can set the tone for the rest of your day.

## 3. Set up a password manager
Using a password manager like 1Password or LastPass can save you time and reduce the risk of a security breach. This will also help you avoid the hassle of constantly resetting passwords.

## 4. Use Siri to set reminders
Siri can be a great tool for setting reminders and tasks. Simply ask Siri to remind you to complete a task at a specific time, and she will do the rest.

## 5. Use the "Do Not Disturb While Driving" feature
This feature will prevent you from being distracted by notifications while driving. It's a great way to improve your safety and focus on the road.

## 6. Try the Pomodoro technique
The Pomodoro technique is a time management method that involves working for 25 minutes, then taking a 5-minute break. This can be a great way to increase your focus and productivity.

## 7. Use the "Offload Unused Apps" feature
If you have apps on your iPhone that you no longer use, consider using the "Offload Unused Apps" feature. This will remove the app from your phone, but keep the data, so you can easily re-download it in the future if needed.

## 8. Schedule your downtime
Use the "Screen Time" feature to schedule downtime for yourself. During this time, all apps will be disabled, except for phone calls and messages from designated contacts. This can be a great way to recharge and reduce screen time.

## 9. Turn on the "Reduce Motion" feature
This feature will reduce the motion and animation effects on your iPhone, which can help reduce motion sickness and eye strain.

## 10. Use an app blocker
If you find yourself constantly checking social media or other distracting apps, consider using an app blocker like Freedom or AppBlock. These apps can help you stay focused and avoid distractions.

## 💪 Be better 💪
By implementing these 10 powerful tips, you can take control of your iPhone usage and improve your productivity and focus. Remember, it's important to experiment and find what works best for you. So, start with one or two tips and see how they impact your productivity. With a little effort and discipline, you can optimize your iPhone usage and achieve your goals.
35. Leetcode solution in cpp
Tags: cpp
Published: 2023-02-20 04:05:29

==============================================================
#Description:
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.

You must write an algorithm with O(log n) runtime complexity.

 

Example 1:

Input: nums = [1,3,5,6], target = 5
Output: 2
Example 2:

Input: nums = [1,3,5,6], target = 2
Output: 1
Example 3:

Input: nums = [1,3,5,6], target = 7
Output: 4
 

Constraints:

1 <= nums.length <= 104
-104 <= nums[i] <= 104
nums contains distinct values sorted in ascending order.
-104 <= target <= 104

==============================================================
#Solution:

```cpp
class Solution {
 public:
  int searchInsert(vector<int>& nums, int target) {
    int l = 0;
    int r = nums.size();

    while (l < r) {
      const int m = (l + r) / 2;
      if (nums[m] == target)
        return m;
      if (nums[m] < target)
        l = m + 1;
      else
        r = m;
    }

    return l;
  }
};

```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/search-insert-position/
I Made a Program Using A.I
Tags: ai, coding, c, programming
Published: 2023-02-20 03:07:48

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

# Introduction:

I recently discovered ChatGPT, an AI-powered chatbot developed by the ingenious team at OpenAI. As someone who enjoys writing blog posts, I was curious to see how ChatGPT could assist me in creating content. I was blown away by how simple and sweet it was to use. With an interface similar to a chat app, all I had to do was copy and paste my query, and within seconds, ChatGPT generated the answer. In this blog post, I'll share my experience using ChatGPT to build a Lookaway App.

# The Challenge:

The rules for the challenge were simple: no use of Google or any other search engine besides ChatGPT. I had a few project ideas in mind, but I wanted to keep things simple. I settled on the idea of building a Lookaway App that would remind me to take breaks from my computer screen. However, since I am a Mac user, the app would only be compatible with Macs.

# Breaking Down the Problem:

I first tried asking ChatGPT to directly make the app, but that didn't work out. So, I came up with a genius strategy: break down the problem, feed it into ChatGPT, and attach the parts myself to make the whole app. I discovered how to run system commands using C and get a popup window using AppleScript.

# Tackling the Technical Issues:

I encountered some technical issues along the way. For instance, I tried to do a slider, but AppleScript was giving me some errors, so I gave up on that idea. Instead, I focused on getting what button was pressed by asking ChatGPT. I also experimented with using command line arguments to allow users to set the time they want to be reminded to take a break, but I ultimately changed it back to being reminded every hour.

# The Final Product:

After multiple iterations of the code and making changes with my own hands, I finally completed the Lookaway App. The app is simple yet effective. It pops up on the screen after an hour of computer use to remind you to take a break. The default setting is one hour. I have shared the code on GitHub, which you can find [here](https://github.com/nibodhdaware/look-away).

# Conclusion:

In conclusion, ChatGPT is a powerful tool that can assist in creating content and solving technical problems. However, AI is not yet advanced enough to handle everything. I had to take multiple iterations of the code and make changes with my own knowledge to complete the Lookaway App. Nonetheless, I am excited to explore more projects and content using ChatGPT. If you're interested in following my progress, please subscribe to my channel and follow me on Twitter also follow me on this Blog. Thanks for reading, and see you in the next one!

Believe it or not, the entire blog post is summarised from the video transcript by ChatGPT, Of course not perfect so edited by me (But mostly the exact ctrl-c ctrl-v that ChatGPT spit out).
openGauss Brief Tutorial
Published: 2023-02-20 02:50:47

This document describes the product and provides guidance for users to quickly use the database. For details about the features and reference information, see the corresponding section.

For example the Installation Guide provides information about installation requirements and process, and the Administration Guide provides information about administration.

Many important features of openGauss are introduced in the Developer Guide section.

For example, the MOT Engine section provides a detailed review of the Memory Optimized Tables, a high performance storage engine embedded side-by-side the standard storage engine. This includes “MOT Introduction” section (including performance benchmarks), followed by the “Using MOT” section complete manual guide, and concluded by the “MOT Concepts” section with deeper insight into MOT design and technologies.
How to Install PHP 8 on a Mac with Homebrew
Tags: php, macos, homebrew, tutorial
Published: 2023-02-20 02:45:44

PHP is a popular programming language used to create dynamic websites and web applications. In this article, we'll guide you through the process of installing PHP 8 on a Mac using Homebrew, a popular package manager for macOS.

Before we start, it's important to note that the following steps assume you have Homebrew installed on your system. If you haven't installed it yet, you can do so by following the instructions on the Homebrew website.

Step 1: Update Homebrew

The first step is to update Homebrew to the latest version. Open the Terminal app and run the following command:


`brew update`

During the update process, you may encounter fatal errors such as "homebrew-core is a shallow clone" or "fatal: --unshallow on a complete repository does not make sense." These errors occur because Homebrew clones a subset of the repository to speed up the update process. To fix this, run the following command:

`
git -C "$(brew --repo homebrew/core)" fetch --unshallow
This command fetches the complete repository and fixes the "shallow clone" error.`

Step 2: Install PHP 8

Now that Homebrew is up to date, we can install PHP 8. Run the following command:
`
brew install php`

This command installs PHP 8.x and its dependencies. You may encounter errors such as "The formula built, but is not symlinked into /usr/local" or "Error: Could not symlink include/php/TSRM/TSRM.h." These errors occur because the formula is not symlinked correctly. To fix this, run the following commands:


`brew unlink php@7.3
brew link --overwrite php`

The first command unlinks the old version of PHP (7.3 in this case), while the second command forces the link and overwrites all conflicting files.

Step 3: Verify the Installation

To verify that PHP 8 is installed correctly, run the following command:

`php -v
`
This command should output the version number of PHP 8.1 installed on your system.

Step 4: Install PHP Extensions

PHP 8.1 comes with some built-in extensions, but you may need to install additional ones for your specific needs. You can install extensions using Homebrew. For example, to install the gd extension, run the following command:


`brew install php-gd
`
This command installs the gd extension for PHP 8.x

Step 5: Configure PHP

By default, PHP 8.1 uses the built-in PHP server, but you can also use other web servers such as Apache or Nginx. To configure PHP with a web server, you'll need to edit the server's configuration files. The exact steps depend on the web server you're using and the specific configuration you need.

Conclusion

In this article, we've shown you how to install PHP 8 on a Mac using Homebrew. We've also covered some of the common errors you may encounter during the installation process and how to fix them. With PHP 8 installed, you can now start building dynamic websites and web applications on your Mac.
10 Success factors for Continuous Integration
Tags: devops, programming, devjournal, ci
Published: 2023-02-20 02:36:00

Continuous integration (CI) is an agile and DevOps best practice where developers integrate their code changes early and often to the main branch or code repository.

Important Success Factors are:

## 1. Maintain a code repository:
Use a version control system (such as Git) to store and manage the source code of a software project. This allows for easy collaboration and tracking of changes made to the code.

## 2. Automate the build:
Use tools and scripts to automate the process of compiling, packaging, and creating a distributable version of the software. This can save time and reduce errors.

## 3. Make the build self-testing:
Incorporate automated tests into the build process, so that the software is tested for bugs and errors before it is released.

## 4. Everyone commits to the baseline every day:
Make sure that all members of the development team are regularly making changes and committing them to the code repository. This helps to ensure that the codebase is always up to date and that everyone is working together effectively.

## 5. Every commit (to baseline) should be built:
Automatically build and test new code as soon as it is committed to the repository. This helps to catch and fix errors early in the development process.

## 6. Keep the build fast:
Optimize the build process to minimize the time it takes to compile and test the software. This can be achieved through techniques such as parallelization and caching.

## 7. Test in a clone of the production environment:
Replicate the environment in which the software will be deployed (e.g. a specific operating system) and running tests on the software to ensure that it will work correctly in that environment.

## 8. Make it easy to get the latest deliverables:
Provide an easy way for team members and stakeholders to access the latest version of the software. This could be done through an automated delivery system or by making the software publicly available.

## 9. Everyone can see the results of the latest build:
Provide visibility into the build process and test results to all members of the development team. This helps to ensure that everyone is aware of the status of the project and can identify and address any issues that arise.

## 10. Automate deployment:
Use tools and scripts to automate the process of deploying the software to its final destination, whether it is a test environment, production, or other environments. This can save time and reduce errors, and make the process of deploying the software more efficient.


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

Thanks for reading this.

If you have an idea and want to build your product around it, schedule a call with [me](https://calendly.com/pragyanatvade).

If you want to learn more in DevOps and Backend space, [follow me](https://dev.to/pragyanatvade).

If you want to connect, reach out to me on [Twitter](https://twitter.com/pragyanatvade) and [LinkedIn](https://www.linkedin.com/in/pragyanatvade/).
4 beste benutzerfreundliche Website-Ripper
Tags: webdev, programming, devops, octoparse
Published: 2023-02-20 02:35:17

<mark>**Artikel Quelle:**[4 beste benutzerfreundliche Website-Ripper](https://octoparse.de/blog/4-beste-benutzerfreundliche-website-ripper)</mark>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0afrhwiq5bee0npe1hnf.png)
3 free tools to study math and English at the same time
Published: 2023-02-20 02:30:32

English is the global language and Math opens opportunities for better jobs, then why not improve Math and English simultaneously?

The three tools below are free and online resources to learn Math. All in English and free.

## [1) MIT OCW (OpenCourseWare)](https://ocw.mit.edu/)
The MIT OCW is created by the Massachusetts Institute of Technology, one of the best universities in Engineering and Computer Science. These platforms allow people around the world to watch classes and download problem sets from MIT, for free.

## [2) SchoolYourself](https://schoolyourself.org/learn)
This website has lessons from Algebra to Calculus and Statistics, each lesson is interactive and with audio. Also, all the content is free.

## [3) Khan Academy](https://www.khanacademy.org/)
The popular website Khan Academy gathers classes about Math, Physics, Chemistry, and others subjects. Including videos about English Grammar.
Javascript
Published: 2023-02-20 02:22:43

---
Nowadays, having a basic understanding of JavaScript is becoming increasingly important. If you're looking to dive into any of the popular JS frameworks out there, such as ReactJS, you'll need a solid foundation in the language first. That said, JavaScript is a powerful tool, and before you can master it, you'll need to have a handle on HTML and CSS, as they're the building blocks that JS is used to manipulate.

When you really know JS, you'll be able to write code that does exactly what you want it to do, rather than relying on copy-pasting and feeling like a bit of a fraud. It's also really cool that you can use JSON data from the backend of your website (be it Laravel, NextJS, Django, JSP, or something else) and stay in the JS environment. These days, it's just not relevant to embed HTML in PHP/ASP/JSP or PHP/Blade - there's a clear separation between front-end and back-end.

Let's take a simple example: in the past, you might have used PHP to generate HTML, right? Now, you're better off using JavaScript to generate the HTML and PHP to supply the data in JSON form. This might mean learning how to change PHP into an API server and working with headers and curl or Postman. But don't worry, over time it will become much easier once you get the hang of the ecosystem.

If you're feeling confident in your JS skills, why not try using it to become a server (instead of PHP)? Check out the NextJS tutorial and see where it takes you!

On a different note, my favorite simulator game is SDK in Python because I'm really into telemetry data, so I had to go back to Python. But that's just me - it's important to find the tools and technologies that work best for you.

As for me, I started learning JS during the jQuery era. It was easy to manipulate the DOM and the code was very expressive. After a few years of using jQuery, I decided to try ReactJS, and now I'm using 100% JS for front-end development.

If you're thinking of taking on a project that involves using Laravel with ReactJS, I recommend separating your folders so you're not using the built-in version. Just install Sanctum and connect to ReactJS using tokens from there. I'm also working on a project that uses Python Flask and ReactJS, and I'm currently chatting with ChatGPT about the architecture.

A few tips to keep in mind: NGinx web server has a special plugin that can really boost loading times (just enable gzip and find the right settings), and personally, I'm still loyal to MySQL when it comes to databases.

All in all, I believe that mastering JavaScript is a lot like learning English as a second language - it takes time and effort, but it's well worth it in the end. Happy coding!

(credit - Azri Nazli Alias)
An exciting Apache ZooKeeper Desktop GUI
Tags: zookeeper, apache, gui
Published: 2023-02-20 02:14:19

## Brief introduction

- ZooKeeper Assistant provides a dashboard feature that allows you to visualize a variety of common health metrics in real time, including incoming and outgoing bytes per second, latency, number of queued requests, and more
- You can search for nodes or perform regular, integer, and case-matching on node values to get the data you want immediately
- ZooKeeper Assistant automatically recognizes and formats different data formats, including Text, JSON, XML, HEX, MessagePack
- With ZooKeeper Assistant, you can quickly import/export node data.
- Support rich command line operations, including commands provided by zkCli.sh and four-character commands, all done by one software

**Download at**: https://www.redisant.com/za

## Software screenshots

### Quickly connect to your ZooKeeper and start working

Developed with Windows Native technology, ZooKeeper Assistant is small and fast, and can be started in less than 1s even on less configured machines

![1.png](https://s2.loli.net/2023/02/20/bZHQLu5XTPvAMRn.png)

### View your ZooKeeper health metrics in real time

ZooKeeper Assistant provides a dashboard feature that allows you to visualize a variety of common health metrics in real time, including incoming and outgoing bytes per second, latency, number of queued requests, and more


![2.png](https://s2.loli.net/2023/02/20/SjeADbJ4ov6t7mq.png)

### Rich data format support

ZooKeeper Assistant automatically recognizes and formats different data formats, including Text, JSON, XML, HEX, MessagePack


![3.png](https://s2.loli.net/2023/02/20/ZLEHm4u7fDX9tvK.png)
![4.png](https://s2.loli.net/2023/02/20/nZJhMKz3W6eqd9O.png)

### Fast node creation

Quickly create various types of nodes, including persistent and non-persistent nodes, supporting various authentication modes: world, auth, digest, ip


![5.png](https://s2.loli.net/2023/02/20/PLfhqksMaICOgzN.png)

### Command Line

Supports rich command line operations, including commands provided by zkCli.sh and four-character commands, all done by one software


![6.png](https://s2.loli.net/2023/02/20/DXQ1moWJslk3Kw2.png)