teleren/devto huggingface dataset:
Learn Kubernetes from your browser ?!?!
Tags: kubernetes, beginners
Published: 2022-10-11 11:35:22

**Learning Kubernetes can be complicated especially because you will need a specific context to do some commands/process, or need a computer with enough resources to run minikube on it.**

So today, I will present you some website which will allow you to learn and manipulate Kubernetes from your web browser!

## Kodekloud
[**Kodekloud**](https://kodekloud.com/) is a platform to **learn kubernetes**. So there you will be able to find complete courses from beginners level to certifications. **(with specific exercies to prepare you for the exam!)**

With that, you will **have access to a playground** where you will have a **lot of exercises** for your courses and other stuff to train you following some themes. *(on kubernetes, k8s tools... and cloud/devops other technologies)*

It's a really great platform that I've used along there courses, so I recommand it really hard!

---

## Killercoda
[**Killercoda**](https://killercoda.com/) is a platform where killercoda peoples and other creators can create scenarios that anyone can create!

The access is **free** and you already have a **lot of scenarios for Kubernetes and its certifications**! You can also have access to empty kubernetes clusters to play on!

It can be a great tool along your courses or if you're trying to learn by yourself!

---

## Killer.sh

[**Killer.sh**](https://killer.sh/) is a platform to help you to train yourself for a certification.

This platform will let you access to exam preparations like if you are attempting the real one! You will be in the same conditions with questions which can be in the real exam!

Unlike KodeKloud or killercode, you will buy a number of test attempts. So train you a lot on KodeKloud or killercoda and go to killer.sh if you want to be sure that you are ready.

---

I hope it will help you! 🍺

---

<center><h3>You want to support me?</h3></center>
<a href="https://www.buymeacoffee.com/mxguilbert7" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
pluck vs. select
Tags: rails, activerecord
Published: 2022-10-06 09:49:29

---
title: pluck vs. select
published: true
description: simple differences of pluck and select
tags: rails, activerecord
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

## pluck

In Rails, we have pluck, which returns an array with the values of the attributes you selected.
```ruby
Doctor.pluck(:id)
   (0.9ms)  SELECT "doctors"."id" FROM "doctors"
=> [1, 3, 7, 8, 9, 5]
```

If you pass more than one attribute, the pluck returns an array of multiple attributes.
```ruby
Doctor.pluck(:id, :updated_at)
   (0.5ms)  SELECT "doctors"."id", "doctors"."updated_at" FROM "doctors"
=> [[1, Wed, 23 Jan 2019 11:44:27.924159000 EST -05:00],
 [3, Tue, 29 Jan 2019 15:47:30.056920000 EST -05:00],
 [7, Thu, 28 May 2020 19:30:29.238601000 EDT -04:00],
 [8, Thu, 28 May 2020 19:30:29.251257000 EDT -04:00],
 [9, Sat, 26 Jun 2021 19:56:41.536687000 EDT -04:00],
 [5, Tue, 28 Jun 2022 16:49:45.091360000 EDT -04:00]]
```

The query is precise to get only the attributes you are asking for.
```sql
SELECT "doctors"."id", "doctors"."updated_at" FROM "doctors"
```


## select

The select make the same query.

```ruby
Doctor.select(:id, :updated_at)
  Doctor Load (0.3ms)  SELECT "doctors"."id", "doctors"."updated_at" FROM "doctors"

Doctor.pluck(:id, :updated_at)
   (0.3ms)  SELECT "doctors"."id", "doctors"."updated_at" FROM "doctors"
```

```ruby
Doctor.select(:id, :updated_at)
  Doctor Load (0.6ms)  SELECT "doctors"."id", "doctors"."updated_at" FROM "doctors"
=>[#<Doctor:0x0000000111a2ec40 id: 1, updated_at: Wed, 23 Jan 2019 11:44:27.924159000 EST -05:00>,
 #<Doctor:0x0000000111a2eab0 id: 3, updated_at: Tue, 29 Jan 2019 15:47:30.056920000 EST -05:00>,
 #<Doctor:0x0000000111a2e998 id: 7, updated_at: Thu, 28 May 2020 19:30:29.238601000 EDT -04:00>,
 #<Doctor:0x0000000111a2e858 id: 8, updated_at: Thu, 28 May 2020 19:30:29.251257000 EDT -04:00>,
 #<Doctor:0x0000000111a2e4c0 id: 9, updated_at: Sat, 26 Jun 2021 19:56:41.536687000 EDT -04:00>,
 #<Doctor:0x0000000111a2e218 id: 5, updated_at: Tue, 28 Jun 2022 16:49:45.091360000 EDT -04:00>]
```

But select returns an ActiveRecord_Relation with objects from the model where it was called.

```ruby
Doctor.select(:id, :updated_at).class
=> Doctor::ActiveRecord_Relation
```


that's all folks :)
Free alternatives to Heroku
Tags: heroku, opensource, devops, elixir
Published: 2022-10-11 11:25:15

Recently [Heroku announced the end of the free plans](https://techcrunch.com/2022/08/25/heroku-announces-plans-to-eliminate-free-plans-blaming-fraud-and-abuse/) and this must have taken quite a lot of people by surprise and made you think "What alternative to Heroku?".

## [Vercel](https://vercel.com/)
![Vercel alternative to heroku](https://res.cloudinary.com/coffe-zone/image/upload/v1661691025/Screenshot_2020_09_10_Develop_Preview_Ship_For_the_best_frontend_teams_Vercel_3_1a96472cb1.png)
With deploy process as simple as Heroku is one of the best alternatives, supporting not only NextJS, but static sites and other frameworks and languages like Laravel - PHP, it is also possible to use Serveless functions for free.

## [Railway](https://railway.app?referralCode=mNgd5T)
![Railway alternative to heroku](https://res.cloudinary.com/coffe-zone/image/upload/v1661691261/og_7508eb672b.png)
Railway is a super complete platform that allows you to use the same cloud infrastructure during your on-premises development, as well as having a super simple deploy and a very effective free plan.

## [Render](https://render.com/)
![Render alternative to heroku](https://res.cloudinary.com/coffe-zone/image/upload/v1661691481/Captura_de_Tela_2022_08_28_as_09_57_44_052dd91b47.png)
One of the alternatives that most equal Heroku services. At Render we have the whole PROCESS of CI / CD, hosting of static and dynamic applications and we still have the databases Postgres and Redis completely free of charge!

## [Fly.io](https://fly.io/)
![Fly.io alternative to Heroko](https://res.cloudinary.com/coffe-zone/image/upload/v1661693508/Captura_de_Tela_2022_08_28_as_10_17_10_b6c986645d.png)
A very cool alternative (and greatly supports elixir) and with database support as well. Fly.io has an amazing CLI and has servers in Brazil!

## [Gigalixir](https://www.gigalixir.com/)
![Gigalixir alternative to heroku](https://res.cloudinary.com/coffe-zone/image/upload/v1661693762/Captura_de_Tela_2022_08_28_as_10_35_39_333bfea85d.png)
And for Elixir application, we have Gigalixir, a platform with incredible compatibility for Elixir and Phoenix! No connection limits, SSH access, sockets, no daily restart, and much more advantages in the free plan!

And do you know any other free alternatives to Heroku? What did you think of those I mentioned here ever used any?

> Take a look at [my personal blog](https://www.tuliocalil.com.br)!
How to add page number in Table of contents with linking the page numbers with section?
Tags: jspdf
Published: 2022-10-11 11:24:58

I am developing a software in which i have a dynamic json in which i have to create the PDF.
I have created the pdf but unable to put the page numbers in Table of contents section & also not able to break the page according to the requirement.

Can anyone able to solve this problem? OR has anyone solve this problem?
Thanks in advance.
Know About The Benefits Of User Acceptance Testing
Published: 2022-10-11 11:16:44

Today the central role of User Acceptance Testing is to provide continuous improvement in the system that is ready to be used in the business working. It is one of the verified ways to help operate the system and know how it will perform in real-world circumstances.

Many companies are carrying out this test on the new systems to ensure that everything will surely fall in the right place. Many software developers are coming up with different systems. The company needs to perform the test just to ensure that the system is worth giving a shot at.

In the long term, [UAT](https://www.opkey.com/blog/streamline-and-accelerate-user-acceptance-testing-uat-with-automation) is helping to improve the quality of software used in the business. UAT is something that is availing bundle of benefits which are stated below:

**Identifies issues at an early stage:** The main reason for using the user acceptance test is that it will help identify any problems or defects in the system. This helps in saving a lot of time and effort for the business in the long run. Now the business can only get their hands on the best software solution using UAT.
Enhances the end-user experience: The primary purpose of software installation in the companies is to provide efficiency in the working. If UAT is performed well, all the software before putting them into the actual work can be easily tested so that there is a better user experience at the end.

**Validates the software according to business requirements:** Not every software launched in the market can easily fit into the business working. Many businesses are using user acceptance testing to ensure the software to be installed in their operations matches their work requirement.

**Increases work efficiency:** Many businesses are getting the software installed in their work to enhance work efficiency. User acceptance testing will help to understand the system very well. All the strengths and weaknesses are mentioned in the analysis of this test. This enables the company to make the best decisions for the company regarding the system and how it can enhance productivity in the workplace.

UAT has now become the most crucial segment for almost every company. This testing procedure will clearly define how the business procedure can provide some great results. UAT is a 100% confident system testing solution at almost every development step. Not only are end users like companies using this, but many system developers and coders use them to understand the system better.

If you are interested in getting the best UAT, you can visit Opkey, one of the most reliable [test automation platform](https://www.opkey.com/). It is a platform with more than 150 technologies that can be used to provide end-to-end business processes. Even this platform specializes in customizing all the possible test cases to meet the current business requirement.

Originally published at https://greenrecord.co.uk on September 3, 2022.
Drupal 10 update: October 2022
Tags: webdev, opensource, news, community
Published: 2022-10-11 11:13:26

In Drupal's long history, version 10 is only a watershed moment. Drupal 10.0 will be functionally identical to Drupal 9.5; however, it will have been upgraded to remove support for any third-party modules that will shortly be discontinued. A lot of the features that were supposed to be in Drupal 10 are really in Drupal 9.4, and some of the features that were supposed to be in Drupal 10 at launch might not even be in Drupal 10 until Drupal 10.1 or later.

**Drupal 11 Is Up Next**
We have an idea of what Drupal 11 will bring. That will centre on the non-developers who use Drupal on a regular basis, transforming them from content producers into power users. This is great news for the development team since it frees them up to focus on expanding Drupal's feature set after we've created a solution that clients can maintain on their own. Drupal 11 won't arrive until late 2024.


**Feel like Drupal isn't a good fit?**
Lots of folks have tried Drupal and found it wanting. A portion of said history may be traced back to earlier versions of Drupal (5, 6, and 7). However, that was then; now, everything is different. Large changes occurred with Drupal 8. Drupal 10 steals Wordpress's thunder without a hint of remorse, and it does so much more too.

Drupal 7's dated features are holding you back. There is support available from us at Code Enigma.

The truth is, your customers are missing out if they're still using Drupal 7, and their site's future prospects aren't the best if you continue. There is a lot of work involved in making the switch from Drupal 7, but the process is much simpler from Drupal 8 to 9. Since Drupal 8 has reached end-of-life, you really should be using Drupal 9. 

If you've been keeping their Drupal 9 sites up to date, the transition to Drupal 10 when it launches in December 2022 should be smooth. If not, we're highly versed in [project recovery](https://www.codeenigma.com/our-services/drupal-support) and we can help, or fully take over if you've hit an unexpected problem and can't solve it.

Now is the time to upgrade to Drupal 9 or 10, what with the impending release date and all the cool new features described in this post. [Our blog](https://www.codeenigma.com/blog) will bring you up to speed on all the most recent developments in the Drupal community, explain why migration is so important, and detail how we can facilitate a seamless transition while maximising the return on investment for your customers.

If you would want to discuss a problematic migration of an existing site, deployment, hosting or other seemingly unsolvable issues you're having, please get in contact.
How to back up and restore MySQL database on Linux using cron
Tags: beginners, linux, mysql, tutorial
Published: 2022-10-11 11:10:01

## 1. Make new .sh file on **root** directory called **mysql_backup.sh**.

```bash
#!/bin/bash
# This script will backup the database
# and store in a specified directory.

# Constants

# Database credentials
USER="dev"
PASS="mypass123!"
DB_NAME="mydb"
HOST="localhost"
BACKUP_DIRECTORY="/root/backup_db"

# Add time stamp ( formated YYYYMMDD + HHMMSS)
# uses for the file name
CURRENT_DATE=$(date "+%Y%m%d-%H%M%S")

# Run mysqldump command
# we will backup the database into a .gz file
mysqldump -h ${HOST} \
-u ${USER} \
-p${PASS} \
${DB_NAME} | gzip - > $BACKUP_DIRECTORY/$DB_NAME\_$CURRENT_DATE.sql.gz
```

## 2. Change file permissions

```bash
$ chmod 700 /root/mysql_backup.sh
or 
$ chmod u+rwx,g-rwx,o-rwx /root/mysql_backup.sh
```
## 3. Add new cron using crontab.

```bash
crontab -e
```

add this command at the end of the file so your database will be backup up every 30 minutes.

```bash
*/30 * * * * bash /root/mysql_backup.sh > /dev/null 2>&1 
```

## 4. To restore the file into your database you can run this command:
```bash
$ gunzip -c ...sql.gz | mysql -h localhost -U DB_NAME -u USER -p
```

### Thank you for reading my post. Happy learn ✌️.
An update for NextSketch
Tags: news, tooling, design, community
Published: 2022-10-11 10:59:10

Hello!

We've just pushed an update for NextSketch 2022.1 (called 2022.1.1). This cleans up the UI a bit and adds a new "Report a Bug" button. 

We've also fixed the annoying behaviour of Links that makes them particularly hard to highlight, cleaned up the code a little and made it so the Sketch Editor automatically gains focus when your mouse enters it.

Check it out at https://plugins.jetbrains.com/plugin/19963-nextsketch/versions and give it a go.

We hope 2022.1.1 improves the NextSketch experience!

Happy sketching!
Top 5 Websites to Find Your Next Python Job
Tags: python, career
Published: 2022-10-11 10:35:22



Looking for a Python job? Here are 5 websites that help you find your next adventure!


### Remote OK

![remoteok.com - Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b8u0d20q3zu36hayzq29.png)

[Remote OK](https://remoteok.com/remote-python-jobs) is a job board focussed on Remote Positions built by Peter Levels.


### FindWork.Dev

![findwork.dev - Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2mntmyikpxcsei11owln.png)

[FindWork.Dev](https://findwork.dev/?search=python) is a job site that aggregates job openings from different sources, including Hacker News and others. You can search for Python jobs quickly.


### Python.org Jobs

![python.org - Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/46f2v6wqw9s4grpbu71o.png)

[Python.org](https://www.python.org/jobs/) is the official Python home on the Internet. The website has a job board.


### Pythonic News Job Board

![news.python.sc - Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6gthw0qu4vlz4ahyxqk4.png)

[Pythonic News](https://news.python.sc/jobs/?query=&cc=&state=&tags=python) is a news aggregator for the Python community and hosts a job board that aggregates Python jobs from a variety of sources.


### Python Engineer Job Board

![pythonengineer.pallet.com - Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9tymn9nta2lmcp9k3to0.png)

[pythonengineer.pallet.com](https://pythonengineer.pallet.com/jobs) is a curated list of job openings for Python developers by Patrick Loeber.
It's Time to Switch to the New Power Automate UI
Tags: powerautomate, powerplatform, rpa, lowcode
Published: 2022-10-11 10:20:14

For a long while there has been a hidden experimental setting:

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

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

But it was very buggy, and rough around the edges (to say the least). Well Microsoft has been working hard on it, and started talking about it, so it feels like its maybe the time to switch (Just FYI still the odd bug and is still experimental, so missing a few things).

So why switch, well there is one main reason, and 3 good reasons. So lets start with the 3:

## Improved Filter Query
This one is marmite, and not complete, but some (especially new developers) will love this.
There is now a new menu for selecting filter queries in SharePoint and Excel. It allows you to select field from dropdown and type:

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

Though here's the first missing feature, it only allows 'equals' and 'Starts With'

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

Fortunately you can get to all the different types, and if you like me who prefers the old way, by switching back

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

## Improved Small Screen and Portrait View
Now if you ever tried to use flow on a small screen, or more likely tried to use it in a portrait monitor (Never tried it? Trust me for long flows a portrait view is incredibly useful), then you will notice something. You can't use the expression popup.

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

Well with the new UI this annoying UI choice has gone 😊 

## Nesting Outputs
A small one here, but the more you use it the more you love it. Previously you had to scroll through all parameters to find the action with the parameter you wanted. Well now you can nest each action.

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

## Improved Expression Window
And this is the big one, trying to write expressions in the old input box was no fun at all (When anything but simple expressions I even use to write mine in VS code and paste back in).

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

Well the new UI has a proper space to type expressions, its multiline and allows tabbing.

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

Change isn't always easy or welcomed, but after giving it a try, I would definitely recommend making the switch
Lean SDLC and Pros, Cons and Best Use Cases in Software Development
Tags: webdev, programming, devops, productivity
Published: 2022-10-11 09:59:11

Minimizing waste and increasing the customer base is important for business development. But, many organizations do not realize the importance of waste reduction. This is where Lean Software Development can help. It is a method for developing software that focuses on reducing waste, speeding up product delivery, and increasing profit and customer value. 

Symphony Software works with this model to minimize waste and to deliver the right products on time. Here is the process we follow:

Stages of the Lean Software Development Life Cycle

Stage 1: Project Planning
You will need to set the goals and requirements for your project. This will make sure that you are doing something that is worthwhile and going to resonate with the target users. Our team of experts will work with you to help you understand the requirements. 

Stage 2: Iteration Planning
This is where the Lean model stands out! At this stage, our goal is to make something that showcases your idea and is valuable to your target audience. So, you can ask them for feedback and opinions. The customers' feedback will help to make corrections before starting the development process.

Stage 3: Making a Prototype
The real job begins now. Our developers create the basic ready-to-launch version of the software. It may not have every feature, but it will already show why your product will be worthwhile. This stage will create enough hype to validate the development that will follow.

Stage 4: Minimum Viable Product (MVP)
The MVP stems from the prototype stage but is significantly different. Here, we implement all the changes inspired by the feedback from the previous stages. In the end, the software will be good enough to use and eliminate waste. It will have all the basic functionalities and additional features with updates.

State 5: The Full Thing
From MVP, we aim to reach the final version of the software, with all the advanced features you want. This is the real moneymaker! The software will increase your revenue while eliminating costs on waste. 

Lean SDLC Model: Pros and Cons

Advantages of LSD model
Elimination of unnecessary activity
Fits in well with Agile and DevOps
Empowers the development team 
Delivering the product faster
Save time and money

Disadvantages of LSD model
Heavily team dependent
Requires proper documentation           

If you think that the Lean SDLC model can fit your business, call us at info@symphony-software.com or 414-218-4644. We’ll discuss your project and make it a success together.

Visit - [https://symphony-software.com/lean-sdlc-pros-cons-and-best-use-cases-in-software-development
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwpyfjaxt1lqs8zs8ya6.png)](https://symphony-software.com/lean-sdlc-pros-cons-and-best-use-cases-in-software-development)
Hiring Backend Game developer
Published: 2022-10-11 09:30:38

We are looking for a Backend Game Developer to join our growing team!

The candidate should has expertise in Node Js ,

Knowledge of how dedicated servers run over cloud

* EKS or EC2

* Three JS knowledge as the tech stack of the game is Three Js

* can work with React or TypeScript

* Extensive knowledge of Data Packets/ Web Sockets and how to optimize them for minimum latency * AWS hands on ( Lambda, DynamoDB, GameLift, API Gateway etc )

The backend dev will have to architect the pipeline that would be the basis for the servers through which clients would communicate and play games.

Main stack is with React and Three JS + AWS.