teleren/devto huggingface dataset:
Should I change to a LINUX distro ???
Published: 2021-03-22 13:24:16

Hello everyone I am currently using Windows, I have used it for a long time but I am very bothered by the updates it constantly has, I know a bit of bash for some courses I have taken where instructors use it, I can no longer contemplate having a virtual machine. I have low memory on the sdd (129GB), so I am considering totally changing the operating system. Any suggestions ??? (I am a Computer Engineering student (3 Semester))
I Published an API Through RapidAPI
Tags: showdev, webdev, cloud
Published: 2021-03-22 13:22:14

---
title: I Published an API Through RapidAPI
published: true
description: Selling an API on RapidAPI
tags: [ showdev, webdev, cloud ]
canonical_url: https://thomasstep.com/blog/i-published-an-api-through-rapid-api
---

A while back I read something about a platform called RapidAPI. It's a marketplace for APIs. I had never heard about it before, but as a backend developer, I was curious to know more. I starting digging deeper and found out that it offers a single point of access to various APIs that developers can publish. It functions as a router of sorts, where all requests go through RapidAPI using their keys and RapidAPI passes the request through to the configured endpoint. I also realized that there was no sign up fee or anything for developers to publish their APIs. Of course, I had to try it out and publish something.

I took a little while to finally come up with an idea that I thought would actually be somewhat useful. I wanted to take a common utility and create an API out of it. Just a microservice that anyone in the world can access. I went with randomly generated strings and ids. I fiddled around with some code, created a template to deploy it with AWS, and tested everything out. I used something similar to [the serverless API CloudFormation template](https://thomasstep.dev/blog/cloudformation-for-serverless-api-development) that I have posted about on this site before. I added some extra settings, API paths, an API key, and Lambda functions to support the different paths that I wanted my API to have. After I verified that it was up and running and functioning as expected, I went over to RapidAPI to integrate everything. The setup process was straightforward and involved only a few steps. After about an hour of configuration, my API was live and ready to use. Feel free to check it out at [https://rapidapi.com/tstep916/api/random-strings](https://rapidapi.com/tstep916/api/random-strings). There are sample snippets of code to help integrate quickly on the site, but it's also possible to quickly hit the API with a curl command.
```bash
curl -H "x-rapidapi-key: $YOUR_RAPIDAPI_KEY" -H "x-rapidapi-host: random-strings.p.rapidapi.com" https://random-strings.p.rapidapi.com/v1/uuid
```

Overall, I had a positive experience publishing through RapidAPI. The onboarding was quick and easy, and so far I have been able to track the uptime of my API easily. I have ideas for other APIs that I want to publish in the future, and I am excited to continue working with RapidAPI.
How to get hired
Tags: jobs, career, marketing
Published: 2021-03-22 13:11:55

How do you get hired as a developer?

Fire off your CV in a scatter-gun manner to as many places as possible?  Or try something a bit more targeted?  You can probably guess where my preference lies.  

Firstly, I'm not going to talk about technical skills - I'm assuming you have those or know where to find them.  

Instead, you need to think about what will make you stand out from the crowd.  

I'm speaking here as someone who's hired a lot of freelance developers to come and work with me although I will admit my experience in corporate is limited.  

Corporate, freelance or somewhere in-between; there's still one important question that you need to answer.  

What is the outcome they are looking to achieve by hiring?

Agencies generally want someone who can get up to speed and start churning out code as quickly as possible.  And they don't really care about the quality because they are hired on a per-project basis; once it's done, it's done.  

Corporates generally want someone who is willing to learn the ropes and do things the right way.  Because the code is going to be around for years, so needs to be well-structured, well-engineered and well-tested.  And knowledge transfer is vital, so you need to be able to document, explain and work within a team.  

And small businesses need to be able to trust you.  The owner is placing their livelihood in your hands, so even if you don't have all the technical skills, if you've got the people skills you've got a way in.  

So take the time to understand who you are applying to.  Figure out what they're looking for.  Discover what their values are - are they data-driven or person-led?  And optimise for what they are looking for.
Redis::CommandError – MISCONF Redis is configured to save RDB snapshots
Tags: tips, redis, rails
Published: 2021-04-26 14:20:44

---
title: Redis::CommandError – MISCONF Redis is configured to save RDB snapshots
published: true
date: 2021-03-22 13:11:36 UTC
tags: Tips,redis,RubyonRails
canonical_url: 
---

I recently ran into a problem I hadn’t encountered before on my Mac. I was getting an error from Redis: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors […]

The post [Redis::CommandError – MISCONF Redis is configured to save RDB snapshots](https://accidentaltechnologist.com/tips/rediscommanderror-misconf-redis-is-configured-to-save-rdb-snapshots/) appeared first on [Accidental Technologist](https://accidentaltechnologist.com).
Mind blowing VS Code trick 🤫
Tags: vscode, tutorial, javascript, productivity
Published: 2021-03-22 13:08:42

Hey guys! I recently found a nice shortcut that makes the javascript developers' life easier! 

We use to import files in the below way,

```js
import cart_styles from "../../styles/cart.css";
import product_styles from "../../styles/product.css";
import user_styles from "../../styles/product.css";
```

This starts looking ugly and redundant if there are multiple imports from a parent folder that's above in the hierarchy.

Luckily, there's a neat shortcut in VS Code that solves this issue.

With the help of this trick, we can import files in the following way,

```js
import cart_styles from "@styles/cart.css";
import product_styles from "@styles/product.css";
import user_styles from "@styles/product.css";
```
I think this is a game-changer for me. So here's how to do this.

## Step 1

Create a `jsconfig.json` file in the root directory

## Step 2

Add the below code,

```js
{
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@styles/*": ["styles/*"]
    }
  }
}
```

Feel free to add new folders If you have any.

That's it. From now you can simply use `@styles/` instead of `../../`

> What do you think about this trick? let me know in the comments :)
Food ordering and delivery application development
Tags: android, flutter, reactnative
Published: 2021-03-22 13:01:54

[Foodo Tech](https://foodotech.com/) design and develop excellent food delivery mobile app, food delivery software, POS and website with custom features and integrations as per your requirements. We offer a comprehensive suite of on-demand food delivery mobile app solutions, which is technologically superior and commercially viable.

Read more: https://foodotech.com/

Features of Restaurant Apps built by Foodo Tech

Smart kitchen UI
Engaging UX
Cost-effective
Cross-platform availability
Push notifications for engagement
Location-based services
Rewards and loyalty programs
Cashless payments
Social integration
Why Hire Us?

Problem Solving
Overcoming challenges in a quick and resilient manner with an effort to maintain integrity and taking ownership of the outcome.

Innovation Vigilance
Having the correct technological know-how and experts with a creative bend of mind, we strive for innovation that leads to excellence.

Sustained Flexibility
Using innovative and flexible delivery models with commitment and integrity, enabling customers to stay ahead.

Stakeholder Satisfaction
Ensuring customer satisfaction both in terms of expectations and connecting with a larger customer base, we ensure your business stands out in the industry.
Use `to_sql` to see what query ActiveRecord will generate
Tags: ruby, rails, webdev
Published: 2021-03-22 15:34:49

---
title: Use `to_sql` to see what query ActiveRecord will generate
published: true
date: 2021-03-22 13:00:00 UTC
tags: ruby,rails,webdev
canonical_url: https://boringrails.com/tips/active-record-to-sql
---

If you’re trying to write a tricky ActiveRecord query that includes `joins`, complex `where` clauses, or selecting specific values across tables, it can be hard to remember every part of the ActiveRecord DSL.

Is it `joins(:orders)` or `joins(:order)`? Should you use `where(role: { name: 'Manager' })` or `where(roles: { name: 'Manager' })`.

It’s a good idea to test these queries in the Rails console so you can quickly iterate, but sometimes you’ll be left scratching your head because when you run the code you get a weird result like:

```
#<MyModel::ActiveRecord_Relation:0x23118>
```

And if you try to access the results, the query blows up with a cryptic error like:

```
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: missing FROM-clause entry for table "permission"
LINE 1: ...."id" = "permissions_users"."permission_id" WHERE "permissio...
```

## Usage

Sometimes you just want to inspect the generated SQL to debug what’s going wrong.

It’s actually really easy to do this with ActiveRecord: simply call `to_sql` on your query and, instead of running the SQL, it will print out the full query – even if the SQL is invalid.

```ruby
User.where("email LIKE '%?'", "gmail.com").to_sql
=> "SELECT \"users\".* FROM \"users\" WHERE (email LIKE '%'gmail.com'')"
```

Aha! We messed up the `%?` syntax.

```ruby
User.where("email LIKE ?", "%gmail.com").to_sql
=> "SELECT \"users\".* FROM \"users\" WHERE (email LIKE '%gmail.com')"
```

It’s especially helpful if you have multiple database tables involved.

```ruby
User.joins(:permissions).where(permission: { key: :edit_posts }).to_sql
=> "SELECT \"users\".* FROM \"users\" INNER JOIN \"permissions_users\" ON \"permissions_users\".\"user_id\" = \"users\".\"id\" INNER JOIN \"permissions\" ON \"permissions\".\"id\" = \"permissions_users\".\"permission_id\" WHERE \"permission\".\"key\" = 'edit_posts'"
```

Whoops! We need to use the plural `permissions` in our `where`.

```ruby
User.joins(:permissions).where(permissions: { key: :edit_posts })
```

This tip has saved me countless hours of debugging complex queries. I also reach for it to validate tricky queries where I want to be sure Rails is generating the intended SQL query.

## Additional Resources

Rails API: [ActiveRecord::Relation#to\_sql](https://api.rubyonrails.org/classes/ActiveRecord/Relation.html#method-i-to_sql)

* * *
[![](https://boringrails.com/images/twitter-banner.png)](https://twitter.com/_swanson)
How to successfully run Jekyll on Mac OS Catalina
Published: 2021-03-22 12:53:41

---
title: How to successfully run Jekyll on Mac OS Catalina
published: true
description: 
tags: 

---

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sjgem8jk746ifllt7srd.png)

Follow the below steps to get Jekyll up and running on MacOS Catalina


## Install Ruby

```
brew install ruby
```


## Setup environmental variable

```
export PATH="/usr/local/opt/ruby/bin:$PATH"
```

## Checking the Ruby paths

```
which ruby
/usr/local/opt/ruby/bin/ruby
```

## Fixing the path

```
PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"
```

## Fixing the “ffi” gem error

```
brew install libffi
```

```
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
```

## Installing Jekyll

```
gem install --user-install bundler jekyll     
Successfully installed bundler-2.2.15
Successfully installed jekyll-4.2.0
2 gems installed
```

## Verifying if Jekyll is installed

```
jekyll
A subcommand is required. 
jekyll 4.2.0 -- Jekyll is a blog-aware, static site generator in Ruby

Usage:

  jekyll <subcommand> [options]

Options:
        -s, --source [DIR]  Source directory (defaults to ./)
        -d, --destination [DIR]  Destination directory (defaults to ./_site)
            --safe         Safe mode (defaults to false)
        -p, --plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]  Plugins directory (defaults to ./_plugins)
            --layouts DIR  Layouts directory (defaults to ./_layouts)
            --profile      Generate a Liquid rendering profile
        -h, --help         Show this message
        -v, --version      Print the name and version
        -t, --trace        Show the full backtrace when an error occurs

Subcommands:
  compose               
  docs                  
  import                
  build, b              Build your site
  clean                 Clean the site (removes site output and metadata file) without building.
  doctor, hyde          Search site and print specific deprecation warnings
  help                  Show the help message, optionally for a given subcommand.
  new                   Creates a new Jekyll site scaffold in PATH
  new-theme             Creates a new Jekyll theme scaffold
  serve, server, s      Serve your site locally
```
Evolution of Natural Language Processing
Tags: python, machinelearning, deeplearning, tutorial
Published: 2021-03-22 12:22:15

{% medium https://towardsdatascience.com/evolution-of-natural-language-processing-8e4532211cfe %}

[Friend link for free access](https://towardsdatascience.com/evolution-of-natural-language-processing-8e4532211cfe?sk=edef31694aa3097023f26903b46bef3a)

Attention is all you need. That is the name of the 2017 paper that introduced attention as an independent learning model — the herald of our now transformer dominant world in natural language processing (NLP).

Transformers are the new cutting-edge in NLP, and they may seem somewhat abstract — but when we look at the past decade of developments in NLP they begin to make sense.

We will cover these developments, and look at how they have led to the Transformers being used today. This article makes no assumptions in you already understanding these concepts — we will build an intuitive understanding without getting overly technical.

We will cover:

* Natural Language Neural Nets
  * Recurrence
  * Vanishing Gradients
  * Long-Short Term Memory
  * Attention
* Attention is All You Need
  * Self-Attention
  * Multi-Head Attention
  * Positional Encoding
  * Transformers
Static blog site generation by Next.js from local files (eg. .md) having the same route structure as the local directory.
Tags: nextjs, webdev, staticsite, nextdynamicroutegenerator
Published: 2021-03-22 12:21:55

These days, [Next.js](https://nextjs.org/docs) is one of the most popular static site generators. 

We can generate static blog sites from local files such as .md/.mdx etc files. You may read [this blog](https://nextjs.org/blog/markdown) to get the basic idea. There are also some examples at the end of that blog post. 

However, in some cases, we may want to keep the files(.md or any other type) in our project and then have the route structure(i.e. URL) the same as the local markdown files. 

For example, 
Let you have created a `next.js` project to generate a static blog. It has a `posts` directory, which contains the blog posts as `.md` files.
The project file structure is something like this. (You may replace the `.js` to `.ts` if you want)

<pre>
--index.js  
--package.json 
--pages/[...slug].js  
--posts/about.md  
       /cpp/introduction.md  
       /javascript/asynchronous_javascript.md  
                  /nodejs/nodejs_architecture.md  
 
</pre>

Now you want the URL of the site to be the same as `posts` directory structure. That is...

<pre>
your_domain/about
           /cpp/introduction  
           /javascript/asynchronous_javascript  
                      /nodejs/nodejs_architecture
 </pre>

In such cases, the npm library [next-dynamic-route-generator](https://www.npmjs.com/package/next-dynamic-route-generator) may help you. 

You may keep local .md or other files in any structure inside the post directory, the site will be built having the same routes.
React Coding Challenges Is officially on the awesome-react list on GitHub!
Tags: react, github, challenge, javascript
Published: 2021-03-22 12:10:30

Just under a year ago I published the first react-coding-challenge on GitHub, Rocket Ship 🚀.

Right now, there's 4 fully fledged challenges (almost 5) and 300 ⭐️ on GitHub.

Today the challenges officially got added to the awesome-react list, which has over 42K ⭐️ and is used by thousands of people!

**Thanks and love to the whole community - here's to many more challenges & collaborators 🙏**

[The challenges](https://github.com/alexgurr/react-coding-challenges)

[awesome-react](https://github.com/enaqx/awesome-react#react-interview-questions)

[What and why](https://dev.to/alexgurr/react-coding-challenges-for-interviews-beginners-1hlk)
Text Typing Animation Effect Using HTML & CSS
Tags: html, css, webdev, javascript
Published: 2021-03-22 12:08:11

Sometimes you would like to have a nice and cool text animation like a typewriter text animation which makes it looks like a hacker type of thing. You can include this type of animation in your portfolio to show off or even on your business landing page. It just makes it looks elegant.
Adding a little animation to a website can make it eye-popping. There are various ways you can create animations, one of which is adding a typing effect to your text. Typewriter text animations are quick to implement and can do wonders for your website by making it look exceptionally impressive.

{% youtube MlQnDrHe5eE %}

**How To Make It**
HTML Code:
```html
<div id="typing">I AM A <span>WEB DESIGNER</span></div>
<div id="crow">|</div>
```
CSS Code: 
```css
body{background:black;
margin-top:200px;
margin-left:50px;}
#typing {
  
			width: 0ch;
			color: white;
			float: left;
			font-family: sans-serif;
			font-weight:bold;
			font-size: 60px;
			overflow: hidden;
			white-space: nowrap;
			animation: typing 5s steps(22) 1s infinite alternate;
		}
        #typing span{
        color:red;}

		#crow {
			float: left;
      
      color: white;
			font-family: consolas;
			font-weight:bold;
			font-size: 60px;
			animation: crow 0.5s linear 0s infinite;
		}
		@keyframes typing {
			from {
				width: 0ch;
			}
			to {
				width: 25ch;
			}
		}
		@keyframes crow {
			from {
				opacity: 0;
			}
			to {
				opacity: 1;
			}
		}
```

Download Source Code: [Click Here{Google Drive}](https://drive.google.com/file/d/1aOV6J8KpuqzIddzpeOQGF9wz0eRw8jRO/view?usp=sharing)

Watch Video Tutorial: [Click Here{YouTube}](https://www.youtube.com/watch?v=MlQnDrHe5eE)
Daily Developer Jokes - Monday, Mar 22, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-03-22 12:00:24

---
title: "Daily Developer Jokes - Monday, Mar 22, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Monday%2C%20Mar%2022%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258c20b362.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Why did the computer keep sneezing?

___A:___ It had a virus!
 -->
🎉 Better GitHub Commit Message
Tags: github, git
Published: 2021-03-22 11:45:41

# Looking to add github commit message better?
Writing good commit messages makes developers reading better
![Octocats](https://services.github.com/assets/images/hero-octocats.svg)
### 1. Specify the type of commit:
- feat: The new feature you're adding to a particular application
- fix: A bug fix
- style: Feature and updates related to styling
- refactor: Refactoring a specific section of the codebase
- test: Everything related to testing
- docs: Everything related to documentation
- chore: Regular code maintenance.[ You can also use emojis to represent commit types]

For example use commit message for creating a new feature as `feat: My Amazing feature`

### 2. Do not think your code is self-explanatory
Because each commit needs to show what does it do

### 3. Rules for a great git commit message style
- Separate subject from body with a blank line
- Do not end the subject line with a period
- Capitalize the subject line and each paragraph
- Use the imperative mood in the subject line
- Wrap lines at 72 characters
- Use the body to explain what and why you have done something. In most cases, you can leave out details about how a change has been made.

### 4. References in commit messages(if possible)
If the commit refers to an issue, add this information to the commit message header or body. e.g. the GitHub web platform automatically converts issue ids (e.g. #123) to links referring to the related issue.

In commit message `fix: [#23], [#24] has been fixed`

## That's it you have reached to the end
Hope this helps you and your team to creating awesome commits like this!
Developer training with Ingressive 4 Good: First impressions.
Tags: codenewbie, internship
Published: 2021-03-22 10:29:07


As a self-taught developer with no real-world experience trying to navigate my way through the all too confusing world of frontend web development, I have built my confidence by building several projects, which has helped me be more comfortable at solving problems that I would have shunned as a beginner. The next logical step is to collaborate and network with other developers of varying experience levels from my own.
The Ingressive For Good internship is a great opportunity for me to move closer to approach my goals to: 
* Deepen my knowledge of Javascript
* network and collaborate with other developers
* get mentored by people with more experience than mine
* Have fun while doing it

Today marks one week since the internship started, the first week being the onboarding stage of the internship. The mentors(some of whom I have previously interacted with in the HNG internship held in 2020) have been helpful so far.
The languages I am expected to learn and accomplish tasks in are **HTML**, **CSS**, **Javascript**, I am already familiar with these and can handle most trivial and non-trivial tasks with them. I will also be expected to become familiar with **PHP**, a technology I barely have any experience with, I suspect it won't be too much of an issue learning this language based on my past experience with other technologies.