teleren/devto huggingface dataset:
WP-Job-Manager der De-Facto-Standard in Jobboards: see themes, plugins and more
Tags: wordpress, plugins, theme, javascript
Published: 2022-02-21 16:40:53

Today we come up with some latest news of the Open-Source-World -

here some wordpress news: after the release of WordPress Version 5.9, we come up with some more news about great plugins, themes and more:

**wpjobmanager:** https://wpjobmanager.com with https://wpjobmanager.com/add-ons/
Version:1.35.2
Active installations:100,000+
WordPress Version:5 xx oder höher

**Themes and Plugins:**
a. the Jobify-Theme: https://jobify-demos.astoundify.com/classic/ ::  the de-facto-standard for the WP-Job-Manager:
great integration of all features
- adds more  Widgets
- statistics
- awesome Look & Feel

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xx6jr9c37q75qfvr9ctd.png)
 
**b. Regions for WP Job Manager By Astoundify
** [URL unfurl="true"]https://wordpress.org/plugins/wp-job-manager-locations/[/URL]
meta: Version:1.18 Active installations: 10,000+
4 Tags: job, job-listing, job-region,
Adds a “Job Region” taxonomy so the site administrator can control a set of predefined regions listings can be assigned to.
Note: Listings are not filtered by regions. They are simply used as an organization tool.

**c. WP Job Manager – Company Profiles**
[URL unfurl="true"]https://wordpress.org/plugins/wp-job-manager-companies/[/URL]
meta: Version:1.4 :: Active installations:8,000+ WordPress
Tags: companies job job-listing
Outputs a list of all companies that have submitted jobs with links to their listings and profile.

**b. Regions for WP Job Manager By Astoundify**
meta: Version:1.18 Active installations: 10,000+
4 Tags: job, job-listing, job-region,
Adds a “Job Region” taxonomy so the site administrator can control a set of predefined regions listings can be assigned to.
Note: Listings are not filtered by regions. They are simply used as an organization tool.


see more plugins: https://wordpress.org/plugins/wp-job-manager/

have a great day ;)
What is buffer cache in oracle
Tags: ora, database, buffercache, interview
Published: 2022-02-21 16:39:09

- The database buffer cache is the largest memory area in the SGA. This memory area stores the copies of the data blocks that are read from the database discs.

- As this area is in the SGA, this data is available for all the users.

- So when the first user runs a query, the related data is read from the disc and stored into the buffer cache.

https://link.medium.com/2w4tptBFPnb
Telescope Sheriff
Tags: opensource, management
Published: 2022-02-21 16:37:17

This past week it was my turn to be [sheriff](https://github.com/Seneca-CDOT/telescope/wiki/How-to-be-a-Sheriff) for the [Telescope](https://github.com/Seneca-CDOT/telescope) project. There were a lot of responsibilities and a lot of tasks to complete.

A big part of the role is to lead the weekly meetings, go over outstanding PRs and assign tasks for the following release. It was my turn to be at the helm of the ship and to always be available on Slack if any problem occurred. Looking at all the incoming PRs forced me to have a more holistic view of Telescope and learn more about all the great things other students are working on.

My outstanding PR about [Turborepo linting](https://github.com/Seneca-CDOT/telescope/pull/2862) was merged and I will have another blog post to talk about it in more details.

## Breaking Telescope

Everything went pretty smoothly until it was time for the release. While on a call with [Tue](https://github.com/TueeNguyen) and [David](https://github.com/humphd), releasing version 2.7 of Telescope first broke production and then staging.
The call quickly turned into a one hour debugging session and I experienced first hand how to debug Docker containers from David (Which is something still new for me).

The issue was caused by a recent [PR](https://github.com/Seneca-CDOT/telescope/pull/2957) that changed SECRET to JWT_SECRET (To use with the latest version of [Satellite](https://github.com/Seneca-CDOT/satellite)) without adding the required variables in `env.staging` and `env.production`.


## Project management

Over the week I reviewed many more PRs than in the past and merged a lot of them into master myself. I also added milestone labels and tags to keep things organized.

This experience made me realize how much non coding related work there is to manage an open source project. I now understand why teams in big projects have people specialized in doing this all day and keep team members accountable and on track with their work.
Install Knative in Civo Kubernetes (v1.20.2+k3s1)
Tags: civo, kubernetes, linux, cloud
Published: 2022-02-21 16:33:41

Hi gangs, today we will learn how to Install Knative in Civo Kubernetes.

This tutorial still uses the old version of Kubernetes, use command below to create the cluster
```
civo kubernetes create kube-demo -v 1.20.2-k3s1 --wait
```

Let's clone the repo below
```
git clone https://github.com/ludesdeveloper/civo-knative.git
```
Change directory to civo-knative
```
cd civo-knative
```
Run install-knative.sh script
```
./install-knative.sh
```
You can take a look detailed code in that script, what I want to mention is the `kubectl delete svc traefik -n kube-system` command in the script. After a few tries, I can not make istio-ingressgateway to get external-ip, so I decide to remove traefik, and it works, istio-ingressgateway get its external-ip.

Now Let's take a look at our cluster.

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

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

Now lets we apply some example
```
kubectl apply -f autoscaling-service-example.yaml
```

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

As you can see, now we have Replicasets pods are ready.

Let's test our serverless load, but first, we need to install hey load generator
```
go get -u github.com/rakyll/hey
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfeau0hcatpx9kf48ruk.png)
Run script below for testing
```
./auto-scaling-testing.sh
```

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

As you can see, pods are created when we try to test. Then what we need to do is wait until pods are disappearing.


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

After a few seconds, we can see that pods have now disappeared. We also can see the output of **hey**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dieo7bgwmm9tadj8r4i.png)
Laravel Caching - PlanetScale MySQL 
Tags: webdev, programming, php, laravel
Published: 2022-02-21 16:29:12

I found this great resource that shows us the importance of Caching and its use in enhancing the performance of our project.

- What is caching

A common pain point in applications is optimizing and reducing the number of trips you have to take to the database. Say you have an e-commerce admin dashboard. Maybe you have a page that displays all inventory — every product, associated category, vendors, and more. A single page like this may perform dozens of calls to your database before the page can even display any data. If you don't think about how to handle this, your application can quickly become slow and costly.

One option to reduce the number of times you have to go to the database is through caching. Caching allows you to store specific data in application memory so that next time that query is hit, you already have the data on hand and won't have to go back to the database for it. Keep in mind, this is different from browser caching, which is user-based. This article covers application caching, which happens at the application level and cannot be cleared by the user.

Laravel has robust built-in functionality https://laravel.com/docs/9.x/cache that makes caching a breeze.

Let's see it in action!

Visit the source and learn about Planet Scale MySQL and use caching :-
https://planetscale.com/blog/introduction-to-laravel-caching

- https://www.cloudways.com/blog/integrate-laravel-cache/
- https://kinsta.com/blog/laravel-caching/
- https://vegibit.com/laravel-cache-tutorial/
- https://www.codecheef.org/article/basic-usage-of-cache-in-laravel
- https://www.ultimateakash.com/blog-details/ISxAYGAKYAo=/How-To-Use-Laravel-Cache-for-Query-Caching-2020.
- https://www.youtube.com/watch?v=-NOOqIYEFwc (https://github.com/codewithdary/laravel-cache)
- https://ashallendesign.co.uk/blog/an-introduction-to-caching-in-laravel

I hope you enjoyed the code as much as I enjoyed sharing it with you.
Day 00 / 100
Tags: beginners, programming, 100daysofcode, mern
Published: 2022-02-21 16:27:13

Greetings everyone,
My name is **Vandit** I'm a 3rd year C.S.E student and a part time photographer. Through out the course of my studies I've been really dicey about choosing tech as my ultimate career but I guess now I've become sure about what I really want and amount of work I need to put into. 

Just the same as most of the people I'm a really average student and I also procrastinate a lot :') so just to make sure that I stay on track I thought it would be best if I would do the **100 days of code challenge**. 

The key topics I'll be focusing on is DSA and Backend Development
also some of the theory subjects like Computer Networking, 
Database Management Systems and Operating Systems. I'll also try to solve at least 3 problems in a day on LeetCode (God Help Me !!! 😂) 

So this is Day 00 out of 100 let's see how far we can get, if any one likes to join me in this challenge you're most welcome...

Alright enough chit chat let's get started !!!!!!
What is ReactJS? Simple introduction with ReactJS
Published: 2022-02-21 16:23:54

## What is React JS?
React is basically an open-source, javascript library for building user interfaces especially for Single Page Applications.

## React is a library, not a framework
React is not exactly a “framework”. It is not a complete solution and you will often need to use more libraries with React to form any solution. React does not assume anything about the other parts in any solution.

## React uses JSX
JSX stands for JavaScript XML. React uses JSX instead of using regular JavaScript. JSX allows us to write HTML in React.
You are not required to use JSX, but JSX makes it easier to write React applications.

## Virtual DOM
React creates an in-memory data structure cache(a reserved storage location that collects temporary data to help websites, browsers, and apps load faster) which computes the changes made and then updates the browser. This allows a special feature that enables the programmer to code as if the whole page is rendered on each change whereas React library only renders components that actually change.

## React is all about components
In React, we describe UIs using components that are reusable, composable, and stateful.
We define small components and then put them together to form bigger ones. All components small or big are reusable, even across different projects.
You can think of components as simple functions (in any programming language). We call functions with some input and they give us some output. We can reuse functions as needed and compose bigger functions from smaller ones.


**My Portfolio Website**: [https://habibullahftl.web.app/](https://habibullahftl.web.app/)
Ternary X LEETcode
Tags: javascript, beginners, tutorial
Published: 2022-02-21 16:15:23

## **Ternary What?**
The ternary operator is a unique tool that give us a way to execute code based upon a conditional in our operation. The ternary operator is unique in the matter of its operands:
- The condition 
- expression executed if condition is truthy
- expression executed if condition is falsy
```
condition ? exprIfTrue : exprIfFalse
```
This gives us a lot of options with a such simple operator, when we realize that we can nest the operators inside of an expression, things get more... complicated.


## **Right-associative logic**
The right-associative logic is a result of grouping and short-circuit execution. The logic is executed in a way that all conditions must met before ANY logic is evaluated inside the expression branch, therefore:

`a ? b : c ? d : e` _is evaluated as_ `a ? b : (c ? d : e)`

_consider:_ `z = ((a == b ? a : b) ? c : d);` 

If we try to use left-associate logic, this example would be impossible to execute with some complex made up math we don't care about, instead: 

_first condition:_ `if (a==b) z=a`
_second condition:_ `if(b) z = c;`
_final condition:_ `z=d`

If we took the left execution as read, our code would wire like:

`int z, tmp;

if(a == b) tmp = a;
else       tmp = b;

if(tmp) z = c;
else    z = d;
`
??????
Maybe I'm not too sure, but this doesn't work because we need a made up variable to fill in our logic, so we can consider that _imaginary_

The idea is that instead of nesting stacks of what amounts to if-else _stacks_, we simply add conditionals to our operator to execute from our original variable, in this case z.


## **Ternary Operator Vs. If Else**
There is no major difference between runtime big O memory allocation between a ternary and a well written if/else(as I have seen evidence for). There is some debate to which style is faster, or more readable. Not up for debate is the fact that the Ternary operator is more professional outside of loops and will bring your code to a higher standard.

     Why not just use an if/else to make things much easier? 
Well, we could nest huge amounts of these conditionals, at a cost. The readability of our code is somewhat subjective, and utilizing the ternary operator is one of the tools in our arsenal to achieve that impossible goal of readable JS. 


credit to [Chris Lutz: ](https://stackoverflow.com/users/60777/chris-lutz)[ "Why is the conditional operator right associative?"]
(https://stackoverflow.com/questions/7407273/why-is-the-conditional-operator-right-associative)
How do you deal with remote work loneliness? 
Tags: blog, healthydebate
Published: 2022-02-21 16:02:28

Most remote developers are working from home, alone, struggling which is fine for a couple of days but in the long term can become really lonely.

**Here are some of the tips that are working for me...**


**1- Go work in coffee places**
It helps me to leave my house and actually be surrounded by other people.

**2- Hobbies**
Can be a sport or something you are passioned about like painting or playing the guitar but it really helps to have a routine, something steady that occurs every week.

**3- Join a virtual co-working space** 
A few months ago I started a [virtual co-working space](https://wannabe-entrepreneur.com/coworking) and we are now more than 30 people working together on our own projects and jobs. We even have a virtual office where we work together.

Do you have any other tips? Would love to hear from you...
Using 'git rebase' to Perfect Commits
Tags: git, programming, computerscience, vcs
Published: 2022-02-21 16:00:17

I have long tried to get into the good habit of committing as I develop. However, I often fell into the same scenario. On commit №4, I would realise that I should have worked something differently in commit №2.

Naively, my old approach was a combination of adding extra re-work commits and different forms of `git reset`. `git rebase` to the rescue!

The `git rebase -i` command was everything I believed had to be part of git but didn't know of. The `-i` flag is the 'interactive' mode of `git rebase`. Which allows you to choose which commits you want to rebase.

Let's have a look at an example to illustrate:

![`git log` output before correcting my mistake](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lenlv6gwqb1sfz568vas.png)

---

At this point I made a mistake a couple of commits ago and have even made further changes to some of the bad code I have written as part of future commits.

To go back in time, I use `git rebase -i <COMMIT_ID>`. Where `<COMMIT_ID>` is the commit id of a commit BEFORE my mistake.


![`git rebase -i`](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h8vjl2we6hoc5804jbi0.png)

---

As shown in the helpful comments, there are many commands I can use for each commit and each one is explained. The commands I use most-frequently are 'edit' and 'reword' ('reword' is for the times when you have a typo in your commit message).

Here we can change `pick` to `e` or `edit` next to our bad commit before saving and closing the file.

Then I can go in and change my mistake. Once the changes are made, I can `git commit --amend` to fix the commit itself.

Once my initial mistakes have been corrected and git knows about the fixes I can use `git rebase --continue`. git will now try to apply my old commits (№3 & №4) on top of my fixes.

If there are any conflicts git will let you know. These happen in this case if your fix for the broken code replaced some of the code that you changed in later, good commits.

You should solve the conflicts so that the code is as you would want it at that commit. Importantly, you should stop before using `git commit --amend here`. git stopped to let you shape the commit in the way you want it and did not apply it yet. This means that to save this rework in the same commit, you should just go straight to `git rebase --continue` where git will ask you to confirm/edit the commit message.

![`git log` output as if nothing was ever any different…](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efcuwom2kvfxy9f4i9km.png)

---

And there we have it! A clean git history with useful commits. Learning `git rebase` has truly given me a greater confidence using git and helped increase both my productivity and the quality of my work. I hope this you have managed to learn something too and thanks for reading this far!

To keep in the loop consider following me or signing up to my mailing list on the [original post on my blog](https://adamjhawley.com/post/2022-02-07-using-git-rebase-to-perfect-commits/).
[BTY] Day 13: Yopass - Share Secrets Securely
Tags: betterthanyesterday, tooling
Published: 2022-02-21 15:46:32

_This post was for 17.02.2022_

Yopass is a project for sharing secrets in a quick and secure manner.

The message is encrypted/decrypted locally in the browser and then sent to yopass without the decryption key which is only visible once during encryption, yopass then returns a one-time URL with specified expiry date.

Because it's an open-source project, you can deploy it anywhere on your own. It has full transparency with the possibility to audit and submit features.

Check it here: https://yopass.se/

![Yopass](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q8onmy318jcfm4uqqqqd.png)
Answer: JS Array.filter Method Returns an Empty Array
Tags: javascript, array, react
Published: 2022-02-21 15:40:45

{% stackoverflow 52108393 %}

Made the same mistake, turns out the cause was very simple and basic: When I try to act like a pro and use the simplified sytax of the arrow function, I failed to remember that if the function body only has ONE STATEMENT, I need to :

**EITHER** explicitly return whatever sh1t I am trying to return, if I was using the { } to enclose my statement,

```
    let newData = data.filter(i=>{
      return i.address!==item.address
    })
```

**OR** I don't use the { } and just throw my only one statement right after the arrow and call it a day.

```
    let newData = data.filter(i=>
      i.address!==item.address
    )
```

That's it

What I did was that I USED the { }, but I did not write 'return' keyword, so nothing works and my filtered array remains empty.

```
    //  Won't Work !!
    let newData = data.filter(i=>{
      i.address!==item.address
    })
```
How to pick better students
Tags: beginners, programming, career
Published: 2022-02-21 15:35:25

Hi, my name is Saifullah Usmani. I am a Programmer and a Graphic Designer. I have been programming for almost 5 years now. And I have worked with several freelance clients.

Today I wanna discuss with you guys the types of students that you should teach and the type of students that you should reject. 
I have written a similar series on freelance guide where I discussed the same for which client to work for and which client to reject. [Click to read that, if you are interested. 
](https://dev.to/saifullahusmani/what-i-learned-in-freelancing-as-a-self-taught-developer-n2j)

I have taught many students/people online, how to become freelancers/programmers/graphic designers etc. And I have learned a few lessons that I would like to discuss. 

So basically there are two types of students when it comes to programming or freelancing in general. One wants to earn money and the other wants to level up the skills because they have passion for it.

Both are worth teaching because both have valid reasons. But what differentiates them is their mind-set.

There are two mindsets when it comes to acquiring knowledge. **Growth mindset **and **fixed mindset**. 

**Whom you should teach?**
The answer is **the growth mindset** one. Fixed mindset people do deserve your knowledge but not necessarily from you. I tried and wasted so much time. I regret that. 

Now you have got the idea. It is up to you to study about growth mindset and fixed mindset. If you have any tips then please share them with me so I can become better at teaching interested people my knowledge! 


[![DigitalOcean Referral Badge](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/00rcc3tqicv68383vo0r.png)](https://www.digitalocean.com/?refcode=9d6f3f71c1b4&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)




##Follow me:
Hire me: https://www.fiverr.com/saifullah02 (For web development Purposes)
My New Blog: [saifullahusmani.com](https://saifullahusmani.blogspot.com/)
*Follow me here:* https://dev.to/saifullahusmani
*YouTube:* http://bit.ly/saifullahusmani (Programming Tutorials Coming Soon).
*Discord:* https://discord.gg/AKyvy8Y
*Facebook*: [https://www.facebook.com/SaifullahUsmani693](https://www.facebook.com/SaifullahUsmani693)