teleren/devto huggingface dataset:
API Documentation Made Easy
Tags: react, node, python, javascript
Published: 2021-09-08 12:57:33

As this is my first technical blog, so I'm pretty excited for this one.

## How can you document your API without any hassle?

We all know that its very easy for us developers to code things out but when it comes to documentation, it feels really uninteresting and a boring job, I don't know is it just me.

I recently came across this NPM package and was mind blown.

API Link -  [apiDOC](https://apidocjs.com/) 

### Why to use this for documentation?

The documentation of this package is really clear and concise, but ill just put out few points which I really liked about apiDOC.

- Very easy to get started with.

- Implementation is very simple, and it makes the code understandable. Look at the code snippet you'll get some idea how this can be implemented just by adding some lines as a comment. There are various [params](https://apidocjs.com/#params) being used, do check them out in the documentation. This makes API documentation an easy and simple task.

```
/**
 * @api {get} /user/:id Request User information
 * @apiName GetUser
 * @apiGroup User
 *
 * @apiParam {Number} id Users unique ID.
 *
 * @apiSuccess {String} firstname Firstname of the User.
 * @apiSuccess {String} lastname  Lastname of the User.
 *
 * @apiSuccessExample Success-Response:
 *     HTTP/1.1 200 OK
 *     {
 *       "firstname": "John",
 *       "lastname": "Doe"
 *     }
 *
 * @apiError UserNotFound The id of the User was not found.
 *
 * @apiErrorExample Error-Response:
 *     HTTP/1.1 404 Not Found
 *     {
 *       "error": "UserNotFound"
 *     }
 */
``` 


- It automatically generates the API documentation with an amazing UI. You can refer the demo given below. Isn't it amazing?

 [Link to demo](https://apidocjs.com/example/) 

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631020324603/PMiEJQydd.png)


- It supports various languages like Java, JavaScript, PHP, Perl, Python, Ruby, Lua, and many more.

If you gained some value from this blog, please share it with your fellow developers and help them grow as well. Peace!

Let's connect, 
Follow me on Twitter - [Twitter](https://twitter.com/anurag_gupta23)
How to config the nginx to run apache web app?
Tags: nginx
Published: 2021-09-08 13:10:51

I have the website name: [Itriip.com](itriip.com). Now, I need to install a web app but it require to run with apache server. However, I had installed nginx for run other website on my server. So, please help me to covert .haccess to run. Who can help? please.
Manual Selling VS eCommerce Automation
Published: 2021-09-08 12:46:06

Customers' buying habits are evolving, and merchants' selling techniques are changing as well. Few have made the leap to automated selling, while some still prefer the traditional method of selling by hand.

If you're a seller who wants to learn more about eCommerce automation and how it can improve your selling experience, this article is for you. You will be guided through the manual vs. automated selling process here.

##Traditional / Manual Online Selling- A Sneak in the Past
When a trader wishes to automate the trading system, they need to consider various factors like experience, available resources, time, etc. Here’s a detailed list of pros and cons for automated and manual trading systems:

**Manual Trading Pros**
• Manual trading exposes traders to real-time situations and helps them make prudent trading decisions and gain experience. A trader becomes adept at technical and fundamental analysis.

• Manual trading allows better control of what can be done in a situation.

• It is easy to identify what works in their favor when traders use a manual system of trading. Determining what doesn’t work in their favour helps avoid that in the future.

**Manual Trading Cons**
• Manual trading is a time-consuming affair. Traders need to conduct intense research and be physically available all the time to place orders and make sure they are executed.

• Manual trading calls for a disciplined mindset. However, traders tend to get emotional and imagine huge profits and make decisions that often go wrong, resulting in losses.

• Manual traders have themselves to blame if things go wrong and are accountable for all their actions.
What Web Designing Online Training Experts Don't Want You To Know
Tags: webdesigningonlinetraining, webdesigningtraininginnoida, webdesigningtrainingindelhi, shapemyskills
Published: 2021-09-08 12:32:59

Whether you are a beginner or a student, or a serious professional, you need to keep learning throughout your web design career, or you will soon become obsessed with it. There are new web tools, new languages, and new workflows that are constantly evolving. And the best Web Designing Training in Delhi can help you stay ahead of the curve, smoothly and easily.

But there are a variety of endless courses on the web right now, and not all standards are the same in any way. You don’t need any kind of qualification to make and sell a web design course, so it’s hard to know who to trust. To help you get out, we have put together some great online web design lessons in this post, and explain what each of them has to offer.

Currently, we believe that the best online design courses are available at ShapeMySkills. This forum offers first-class video training, a well-maintained program that keeps you motivated to complete your studies. Guided by the benefits of the industry, you can be sure that the training will be up-to-date, and in fact worth your work.

Some Web Designing Training in Noida is available, however. And some may better fit your needs. So in this post, we’ve put together the best and explained how each of them is different.

ShapeMySkills offers hundreds of video-based courses in web design, web development, mobile development, and game development, from scratch to advanced levels. The videos are professionally shot, the quality of teaching is top-notch, and everything is constantly updated to process the latest technology (new content is released weekly).

While Web Designing Online Training allows you to learn at your own pace, that often makes it difficult to encourage yourself to complete the course. The ShapeMySkills, however, has found a clever way to square this circle.

After watching the video, then take questions and issues, to see if you understand it correctly. When you pass, you get badges, from your profile. This production helps encourage you to keep learning.

Learning materials are a combination of written and video tutorials, but T Thinkful's special sauce is a work-based learning model paired with an experienced counselor, providing support and guidance throughout the course of 14 hours of live Q&A day. There are also weekly group discussions and daily group analyses.

They make it clear that “learning to code requires a great deal of effort. You can't learn about osmosis, you have to build. You have to hit your head when you are in trouble and make a way out. ”In other words, these formal learning programs are not for the dead, but for specific students.
Enjoy Programming-Themed Humor? Here's today's daily developer joke!
Tags: jokes, dailydeveloperjokes
Published: 2021-09-08 12:00:13

---
title: "Enjoy Programming-Themed Humor? Here's today's daily developer joke!"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e125896e0846.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_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 was the developer unhappy at their job?

___A:___ They wanted arrays.
 -->
Weather Card with Weatherapi, TailwindCSS and AlpineJS
Tags: tailwindcss, alpinejs, javascript, codepen
Published: 2021-09-08 11:59:06

Codepen Link: https://codepen.io/mithicher/pen/JjJEMyQ

Weather Forecast Blade Component: https://gist.github.com/mithicher/70647625163c3d217c742dfc4a0b84c0
Which Programming Language is the best to learn?
Tags: django, devjournal, devops
Published: 2021-09-08 11:58:02

There is no perfect answer to this question. Every language has its setbacks and drawbacks. The thing is to understand the basics of one single language, and it will be better if you want to shift to another.

There is no better language. Even if you want to be an ethical hacker, you can’t say there is a specific language to write malware. Viruses are written in different languages, either java, coble, Go. A good engineer will use any means to make things happen.

We can draw the answer as per what you want to specialize in. If you want to be a freelancer, then you need to be equipped well. But if you yearn to work in large tech companies, just specialize in one area. There is a big difference between a large company employee and another individual working for a startup. Let’s break down.

Whenever you want to join big tech companies like Google, Amazon, Facebook, you will have a technical interview with an expert. During a technical question, you will be asked to choose a language you are good at. Even when you make it to join the company they will offer you a chance to choose a team. If you are good at Java, then you will join the java team. Many teams work with different languages, implementing different software.

When it comes to freelancing, it’s a different case. You need to equip yourself with more tools. Let’s say you are a web developer. Most likely, clients will demand that you build and deploy their website. Thus, you need to be both a front-end and backend developer. But this doesn’t mean you learn all the languages, we have MERN- a complete full-stack JavaScript developer for the web. Also, you might learn python, then shift Django which is a full-stack python framework for websites. Just choose a single language, then dig deeper.

What about startups? Yeah, these are the first places where you can secure a job. But most of them are into web and mobile app development. Again, you need to know more, not just coding but working across from development to production. Remember, startups will have less than 100 people, which means you will do more than expected.

The whole story comes back to the best language. If we talk about what you want to specialize in, then it matters. If you like data science, AI, machine learning, then python is the best option. For those in mobile development, java and Kotlin might interest you. For those in web development, JavaScript is the master, but python can also perform the job perfectly.

Before learning a language, have a general understanding of some concepts. Just be familiar with what you want to do, then look for a language that is popular in that area. Every language can build something cool. It’s surprising when we see JavaScript joining python in machine learning. This is an achievement for the JavaScript community. Don’t jump from one language to another.
How to transfer files between Linux devices with scp
Tags: linux
Published: 2021-09-08 11:55:19

# :volcano: The Problem
Let's assume that you have a file that you need to get off of a server, or one that you want to put on a server. It would be a bit long winded to go and setup some form of FTP client, or to configure a share to deal with this small task. 

Fortunately, this is where `scp` comes in. SCP allows you to securely transfer files between devices through the command line. And it comes preinstalled on almost every Linux system.

# :compass: Usage

It's super easy to get going with scp. 

**Remote to local:**

```
scp username@host.com:/remote/file.md /local/directory/
```

This will transfer `file.md` from `host.com` to `/local/directory` on your device. You would be prompted to enter the password for `username` before the transfer could continue.


**Remote to remote:**

```
scp username@hostA.com:/source/file.md username@hostB.com:/destination/file.md
```
This will transfer `file.md` from hostA to hostB. You would be prompted to enter your password for both hosts to run this command.

**Local to remote:**

```
scp /local/file.md username@host.com:/remote/
```
This will transfer `file.md` to host.com from your machine. You will be prompted to enter the password for host.com to run this command.

# :mountain: Limitations

Whilst `scp` is a very powerful command, it does have some limitations.

**Incompatible with non-Linux machines:**

You can only use `scp` to transfer files between devices running Linux distributions.



**Limited to your permissions:**

When it comes to `scp`, there is no `sudo`. You can only transfer files to directories that you own.

*Want to get around this?* You can just copy the files to a directory you own on the remote machine, and then SSH into it and move them with `sudo`.

*This article was originally published on https://saluki.tech. For more articles like this, please take a look.*
How telling bad jokes has made me a better engineer.
Tags: productivity, watercooler
Published: 2021-09-08 11:33:44

Hear me out. I know the jokes I make are bad, especially the ones that I blurt out mid-sprint planning, but, they've made me much better at my job.

Let me start this off by saying that it is very easy for an engineer/developer/coder/(insert chosen job title here) to get wrapped up in the idea that our job revolves entirely around writing code, but it doesn't. I get it, it's a very large part of it and, it's the reason a lot of us do this job. I like writing code too. However, another part of our job is the interpersonal side of things.

I don't know about you but on a daily basis I speak with lots of people when I'm in work (probably more now I am remote than I did when I was in the office). All of those conversations are important. Maybe, they are not all business related, but they're important.

Lately I've been making a conscious effort to tell bad jokes on standup. I have taken the liberty of changing the days of the week to: ["Minecraft Monday", "Tetris Tuesday", "Wipeout Wednesday", "Tony Hawk Thursday", "Fortnite Friday"], and you know what? It goes down a treat and helps so much.

Your team got some bad news on something? Saying things like "Damn, what a way to ruin Tetris Tuesday!" always gets a giggle, or at least a few smirks.

I post memes and/or GIFs on our pull requests. A colleague had something ready for release so rather than the standard "Looks good to merge" you send one of these bad boys:
![Sheep It](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sr0z3d4nznukozbdjhe0.gif)
Now, I look forward to looking over pull requests so that I can post funny GIFs - so I'm more productive.

My sentiment is just this: have a little fun in work, because fun is contagious. It helps to lift morale, bring people closer as a team, and to make the day go a bit quicker. Plus, it makes you so much more approachable and if you enjoy your work you'll do it quicker but also to a higher quality.

TLDR: Make bad jokes, post GIFs and memes, because that makes work a little bit more enjoyable for everyone. A fun workplace is usually a productive workplace too!
React & keys 🔑🔑🔑
Published: 2021-09-08 11:15:50

---
title: React & keys 🔑🔑🔑
published: true
date: 2021-09-08 11:09:18 UTC
tags: 
canonical_url: https://blog.daliborbelic.com/react-and-keys
---

Well, the answer lies in efficiency and performance.

Let me explain...

* * *

I assume you prefer fast websites rather than slow ones. Who doesn't...

In terms of modern JavaScript frameworks, a significant factor for websites' performance is how efficient DOM updating is. In the case of React, we have something called Virtual DOM that addresses this problem.

Example: You have a list of 5 items. Let's say it's a list of todos. After you finish a task, and you'll check it off from the list. Now, most JavaScript frameworks would rebuild the entire list to show the updated one. And that’s 5 times more work than needed! Imagine you have a table with 1000 instances. You get the point...

Let's dive deeper...

#### DOM & Virtual DOM

As you probably know, DOM (Document Object Model) is the data representation of the objects that comprise the structure and content of a document on the web. It represents the page (as nodes and objects) so that programs (in our case, JavaScript) can change the document structure, style, and content. In React, for every DOM object, there is an equal _virtual DOM object_- like a lightweight copy.

#### Diffing

Let's get back to our example but analyse it from the React perspective: After you finish a to-do and check off the item from the list, the lightweight copy- virtual DOM- will completely update (which doesn't plunder the performance because updating virtual DOM is super fast). After the virtual DOM update, React compares the new one with the pre-updated one to determine precisely which element or more have changed in a process called **diffing**. And in the case of lists, as shown below, keys are the key (ba dum tss)!

![code.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631098302179/vumizm_2L.png)

#### Updating

Let's say we walked the dog. That todo has the id, therefore the key of 'id2' (because it's the second item in the _todoList_ array). After diffing completes, React will know that only the HTML tag of 'li' with the key of 'id2' needs to be updated on the DOM. Without the key attribute, React couldn't know that, and it would update the entire list, which damages the performance, as we explained above.

And that pretty much sums it up. I hope you liked it. Feel free to reach out in the comment section below!

Till next time 👋🏻

Dalibor
Frontend Learning Kit
Tags: javascript, react, webdev, typescript
Published: 2021-09-08 10:55:29

Hi folks,

In order to help everyone, I have listed down a few of the best materials (books + videos) for frontend developers all in one place (most of which I am referring to and planning to complete).

Hope this helps you to learn & master the frontend without depending on others much.

Repo: https://github.com/sadanandpai/frontend-learning-kit
How to rebuild search indexes on a table.
Published: 2021-09-18 17:50:38

---
title: How to rebuild search indexes on a table.
published: true
date: 2021-09-08 10:34:22 UTC
tags: 
canonical_url: https://dcblog.dev/how-to-rebuild-search-indexes-on-a-table
---

If you make server changes that could affect your indexes then you will need to rebuild your index in order to pick up new settings.

## **Step-by-step guide**

Execute this MySQL command on the table required

```

REPAIR TABLE <TableName> QUICK;
```
Enter Into The Lucrative Healthcare Industry With Practo Clone Solution
Tags: practoclone
Published: 2021-09-08 10:29:12

Ever since the Internet flourished in the market, many on-demand apps came into effect to fulfill the demands of the people. Then why still stuck with the old-school method of visiting a doctor. No more nervousness when feeling sick while held up at a remote place or during a long train journey where finding a doctor is almost impossible. That is why telemedicine app like Practo made it easy for people to consult a doctor from anywhere at their own comfortable time.

What is a Practo clone app?
Developing a telemedicine app from scratch makes it a difficult and time-consuming process. Thus to make the process easier, the best alternative solution is to opt for a clone app. Practo clone app is packed with advanced features and works tremendously, just like the parent app.

Benefits of developing a Practo clone app
Patients do not need to travel and wait in a crowded waiting room to consult a doctor while feeling sick. They can easily book an appointment with an expert doctor and consult virtually with the comfort of their home.
There are many doctors of various specialties willing to exhibit their service through the app. Therefore it eases the effort of the patients to find the doctor from a particular specialization.
The doctors can work in their flexible hours and earn additional income by providing their service via the app. The patients can book an appointment based on the availability of the doctor.
Apart from being a utile doctor consulting platform, you can also allow your users to buy the medicines prescribed by the doctor through your Practo clone app. This way, you can increase more traffic in your app and generate more revenue.

To wrap up,
Many healthcare institutions are getting their hands on developing their own Practo clone app. It is high time to surpass the race and set your footprints in the blooming telemedicine market.

Visit https://www.appdupe.com/practo-clone
Training in chennai
Published: 2021-09-08 10:21:38

https://intellimindz.com/sap-mm-training-in-chennai/
https://intellimindz.com/sap-sd-training-in-chennai/
https://intellimindz.com/sap-hana-training-in-chennai/
https://intellimindz.com/sap-fico-training-in-chennai/
https://intellimindz.com/sap-ariba-training-in-chennai/
https://intellimindz.com/sap-abap-training-in-chennai/
https://intellimindz.com/sap-hr-training-in-chennai/
https://intellimindz.com/sap-scm-training-in-chennai/
https://intellimindz.com/sap-bo-training-in-chennai/
https://intellimindz.com/sap-pp-training-in-chennai/
Realtime connector for Strapi
Tags: strapi, socket, node
Published: 2021-09-08 10:10:22

I've been using Strapi in many of my projects, and I love using it. So, to make it easier for Strapi developer to build awesome apps using React, I've made Floxum which can add an extra layer to Strapi, and that is Realtime. 

Floxum uses Socket.IO in the background to communicate with Strapi server, and from the client side, a user can execute Strapi services. Here is an example:

```js
floxum.services('todo', 'find', { _limit: 1 }).then((data) => {
   console.log(data)
})
```

This is an async function, which will execute `find` method on the Strapi server and returns the output using a Promise. This is just like you're execute a Strapi's server functions directly from React application.

This way, it's easier to build React apps connected with Strapi without making about HTTP requests, like we use `axios` or `fetch`.

## Installation


> The installation will also work for the projects which are already using Strapi.


### Step 1

Install the following module inside your React project:

```bash
yarn add @floxum/react
```

### Step 2

Install the following module inside your Strapi application:

```bash
yarn add @floxum/core
```

### Step 3

Create a new file inside your React application to setup Floxum at `src/providers` (or anywhere you'd want) named `floxum.js`, and paste the following code.

```js
import Floxum from '@floxum/react'

const floxum = Floxum('http://localhost:1337')

export default floxum
```

Change the host string to your Strapi host.

### Step 4

Inside your Strapi applicaiton, go to `config/functions/bootstrap.js`, and import Floxum then call it inside the export module with `strapi` parameters:

```js
"use strict";
const folxum = require("@floxum/core");

module.exports = async () => {
  folxum(strapi);
};
```

You're now good to go!


### Step 5

Inside your Rect project (in any component) import Floxum and and test it by calling ping function, like this:

```js
useEffect(() => {
  floxum.ping().then(() => {
    console.log('working')
  })
}, []);
```