teleren/devto huggingface dataset:
Solcial.io integrated content posting on Solana Blockchain
Tags: solana, blockchain, socialmedia, web3
Published: 2023-04-14 12:18:37

[Solcial.io](https://solcial.io/), web3 permissionless social network, integrated an ability to publish your content directly on #Solana blockchain instead of IPFS. So now  you content can be stored directly on blockchain. 

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

Your thoughts?
Note: Migrating a Database and Laravel Storage to a New Machine
Published: 2023-04-14 12:07:43

## Specification
192.0.0.1 is the old machine, and 192.0.0.2 is the new machine. Both machines are Ubuntu servers running MySQL for the database and Laravel for the web app on Vesta control panel.

### STEP 1
Export the database from the old machine:
```sh
$ mysqldump admin_database > admin_database.sql
```

### STEP 2
Compress the storage directory (which includes several subdirectories) on the old machine:
```sh
$ tar -czvf storge.tar.gz storage/app storage/excel/exports public/uploads
```

### STEP 3
Transfer the files to the new machine via FTP protocol using curl, which allows you to see the transfer progress:

```sh
$ curl -T admin_database.sql ftp://192.0.0.2 --user <username>:<password>

$ curl -T storge.tar.gz ftp://192.0.0.2 --user <username>:<password>
```

Note: FTP needs to be installed and the FTP port needs to be opened on the new machine. Refer to this guide on how to [install-ftp-server-on-ubuntu](https://phoenixnap.com/kb/install-ftp-server-on-ubuntu-vsftpd).

### STEP 4
Import the database to the new machine:

```sh
$ mv storge.tar.gz /home/admin/web/domain_name/public_html
$ cd /home/admin/web/domain_name/public_html
$ tar -xvf storge.tar.gz
```
Why Medical Coding Is In High Demand
Tags: coding, javascript
Published: 2023-04-14 12:01:15

Why MEDICAL CODING Is In High Demand 

In today's career requirements, Medical Coding is a highly demanding profession you can get, especially after the pandemic wave. With the Healthcare sector being one of the rapidly expanding industries, individuals with computer skills are also essential. 

Medical coders play a crucial role in compiling patient data after a doctor's visit for billing and reporting purposes. Pursuing a career in medical coding can be both exhilarating and challenging. If you're interested to learn more about the medical coding field. 

In that case, this blog will provide you with a comprehensive guide on everything you need to know about taking a [Clinical Research Course](https://www.clariwell.in/best-clinical-research-courses-in-pune-with-100-percent-job-guarantee) or Clinical Research Training. 

Why is Medical Coding Required?

Medical coding has become a vital part of the healthcare industry that provides proper documentation and billing of medical services. The medical coding process does all the, translating of medical procedures, diagnoses, and treatments into codes that can be used for billing and record-keeping purposes. 

Medical Coding Course Includes  - 

**- Knowledge of human anatomy and physiology** is essential for medical coders as it helps them understand medical terminologies, body systems, and their functions.

**- Understanding the basics of medical coding** is crucial for medical coders as it enables them to assign the correct medical codes to diagnoses, procedures, and other medical services.

**- Proficiency in MedDRA coding** is necessary for medical coders as it is a standardized medical terminology used for the classification of adverse events related to medical products.

**- Case processing** involves the collection, review, and validation of medical data related to clinical trials or drug safety monitoring, making it an important aspect of medical coding.

**- Case narration** involves the creation of a clear and concise description of the medical events and outcomes, which is essential for the proper interpretation of medical data.

**- Medical data summarization** involves the collection, analysis, and presentation of medical data in a concise and informative manner, making it easier for healthcare professionals to understand and interpret the information.

### Top technical skills of medical coders

1. Medical coding
2. Anatomy and physiology
3. Health Insurance Portability and Accountability Act (HIPAA) compliance
4. Health information technology
5. Inpatient coding
6. Clinical documentation
7. ICD-10
8. CPT coding
9. HCPCS coding
10. Customer billing

**Conclusion**
Medical coding is subject to strict regulations and guidelines, including those set by government agencies such as the Centers for Medicare and Medicaid Services (CMS). Accurate medical coding helps to ensure that patients receive the appropriate medical treatments and procedures. This method also helps healthcare providers track patient outcomes and identify areas for improvement in patient care.
Please Someone help me with this code.
Published: 2023-04-14 11:56:11

I am trying to make a simple dyna mic code but its not working not showing any result.
<!DOCTYPE html>

```<html>
    <head>
        <title>Cl</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <table align="center">
            <tr>
                <td>First Number</td>
                <td>
                    <input type="number" id="first-number">
                </td>
            </tr>

            <tr>
                <td>Last Number</td>
                <td><input type="number" id="last-number"></td>
            </tr>

            <tr>
                <td>Increment</td>
                <td><input type="number" id="increment"></td>
            </tr>

            <tr>
                <td></td>
                <td>
                    <input type="submit" value="Press" onclick="myFunction();">
                </td>
            </tr>

        </table>

        <script>


            function myFunction() {

                var first = Number(document.getElimentById("first-number").value);

                var last = Number(document.getElimentById("last-number").value);

                var inc = Number(document.getElimentById("increment").value);

                if (first <= last) {
                    for (i = first; i <= last; i += inc) {

                        document.write(i + "<br>");
                    }
                } else{
                    for (i = first; i >= last; i -= inc) {
                        document.write(i + "<br>");
                    }
                }
            }


        </script>



    </body>
</html>```
How to messure productivity of software engineers?
Tags: productivity, management, discuss, kpi
Published: 2023-04-14 11:48:38

The productivity of software engineers is difficult to measure. Metrics like the number of tickets closed, pull requests merged, tasks completed, bugs fixed, or builds created can provide some insights; however, this data should not be used to make decisions about an engineer's performance.

More valuable and experienced engineers play an important role in project communication, product decision-making, and helping and mentoring peers. All of which have a greater positive impact with less quantifiable actions. 

Using quantitative data should only be part of a larger qualitative assessment, where managers and colleagues can take a more holistic view of an engineer's performance. Companies should also be mindful of how reward systems that prioritize quantitive metrics may create an environment where developers shift their focus from product to trying to artificially boost their metrics at the cost of a project's success.

Are there good approaches for qualitative assessment of engineer productivity?
Liman MYS-Domain Eklentisi-Kaptan Kurulumu
Published: 2023-04-14 11:41:32

- İlk olarak .deb uzantılı paket şu komut ile indirilir:

```
sudo apt install ./kaptan.deb
```
- Paket indirildikten sonra /usr/share/kaptan/kaptan.conf dosyasının içine girilir:

```
sudo nano /usr/share/kaptan/kaptan.conf
```
- Daha sonra yorum satırı kaldırılır ve localhost yerine PostgreSQL database'i kullanılacak makinenin IP'si yazılır.


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

- PostgreSQL database'i kullanılacak makinede aşağıdaki adımları izleyerek veritabanında user, database ve şifre oluşturulur:

**Kullanıcı Oluşturma:**

```
sudo -u postgres createuser kaptan
```
Bizim örneğimizde karşılığı _kaptan_ olarak belirlenmiştir.

**Database Oluşturma:**

```
sudo -u postgres createdb kaptan
```
Bizim örneğimizde karşılığı _kaptan_ olarak belirlenmiştir.

**Kullanıcıya Şifre Verme:**

```
sudo -u postgres psql

psql=# alter user <username> with encrypted password '<password>';

```
Bu örnekte şifre _1_ olarak güncellendi.

- Sonrasında kaptan kurulu olan makineye şu komut ile PostgreSQL bilgileri eklenir:

```
kaptan -q postgresql_username
```
Bizim örneğimizde postgresql_username = kaptan olarak belirlenmişti. (kaptan -q kaptan)

- Bu komut girildikten sonra şifre istenecektir, db oluşturulurken girilien şifre girilir. Bizim örneğimizde Password = 1 olarak belirlenmişti.

 - Şu komut ile makinenin ID'si kontrol edilir ve ardından HAVELSAN A.Ş.'den veya yetkili bir satıcıdan alınan lisans istenir:

```
kaptan -i
```

- /usr/share/kaptan/licence dosyasının içine girilir ve lisans eklenip kaydedilir:

```
nano /usr/share/kaptan/licence
```
- Son olarak şu komut ile lisans'ın yolu verilerek lisans eklenir:

```
kaptan -l /usr/share/kaptan/licence
```
- Ayrıca şu komut ile kaptan kurulumuna dair daha çok bilgiye sahip olunabilir:

```
kaptan -h
```
How to use action classes in NestJs
Tags: webdev, nestjs, typescript
Published: 2023-04-14 11:40:41

First, we'll create an `actions` folder in our project's root directory. Inside this folder, we'll create a file called `create-post.action.ts` with the following code:

```ts
import { Injectable } from '@nestjs/common';
import { Post } from './post.entity';
import { PostRepository } from './post.repository';

@Injectable()
export class CreatePostAction {
  constructor(private postRepository: PostRepository) {}

  async execute(data: any): Promise<Post> {
    const post = new Post();
    post.title = data.title;
    post.body = data.body;
    return await this.postRepository.save(post);
  }
}
```
In this code, we're creating a new `CreatePostAction` class that has a constructor that injects a `PostRepository` instance. We're also defining an execute method that takes in some data and returns a `Promise<Post>`.

Inside the execute method, we're creating a new Post instance, setting its title and body properties based on the data provided, and then saving it to the `PostRepository`.

Now that we've created the `CreatePostAction`, we'll use it in a controller. We'll assume that we have a `PostsController` that handles HTTP requests related to posts.

```ts
import { Controller, Post, Body } from '@nestjs/common';
import { CreatePostAction } from './actions/create-post.action';

@Controller('posts')
export class PostsController {
  constructor(private createPostAction: CreatePostAction) {}

  @Post()
  async create(@Body() data: any) {
    return await this.createPostAction.execute(data);
  }
}
```
In this code, we're injecting the `CreatePostAction` instance into the `PostsController` constructor. We're also defining a create endpoint that uses the `@Post` decorator and takes in some data from the HTTP request body.


Inside the `create` method, we're calling the `execute` method of the `CreatePostAction` instance, passing in the data from the HTTP request body. This will create a new Post instance and save it to the database.

Overall, using action classes can help make your code more modular and maintainable by separating business logic from controllers. By encapsulating specific actions in separate classes, you can reuse them across different controllers or applications, and also make your code more testable.

---
{% embed https://dev.to/m4r14/using-action-classes-in-nestjs-for-better-code-separation-and-reusability-1e8i %}
MongoDB: How to get fullDocument from changeStream when a document is deleted
Tags: mongodb, watch, delete, document
Published: 2023-04-14 11:40:19

In order to get the full document in a watcher after deleting the document you need to enable collMod on the collection. See the below 4 steps.

1.Download mongoshell https://www.mongodb.com/try/download/shell

2.Run mongoshell and paste your connection string with an admin user and press enter (create a temporary admin if you need to)  Looks like this:
```shell
mongodb+srv://user:QkKvrDtL0yZFERGA@showspace-cluster.1yyql9v.mongodb.net/my-db`
```

3.In mongoshell run the following command to change the 'collMod' for your collection - swop out my collection 'ProductReview' for your collection
```shell
db.runCommand({collMod: "ProductReview", changeStreamPreAndPostImages: {enabled: true}})
```

4.Now in your app you can setup a change stream and access the deleted document like so (the below code is nodejs)
```javascript
const client = new MongoClient(env.DATABASE_URL);
const database = client.db("my_database");
const reviews = database.collection("ProductReview");

// 'fullDocumentBeforeChange' is the magic here
const changeStream = reviews.watch([], { 
  fullDocument: "updateLookup", 
  fullDocumentBeforeChange: "required" 
});

changeStream.on("change", async (event) => {
  let document;

  if (event.operationType === 'delete') {
    document = event.fullDocumentBeforeChange;
  } else {
    document = event.fullDocument;
  }
  
  // do some stuff with the document
});   
``` 

Documentation:
https://www.mongodb.com/docs/v6.0/reference/operator/aggregation/changeStream/

Related questions:
- https://jira.mongodb.org/browse/SERVER-36941
- https://jira.mongodb.org/browse/SERVER-56074
- https://stackoverflow.com/questions/56939610/how-to-get-fulldocument-from-mongodb-changestream-when-a-document-is-deleted
- https://www.mongodb.com/community/forums/t/change-stream-fulldocument-on-delete/15963
- https://www.mongodb.com/try/download/shell
HackerRank: A Very Big Sum problem solution in PHP (Algorithm)
Tags: hackerrank, algorithms, hackathon, programming
Published: 2023-04-14 11:31:19

## A Very Big Sum
In this **HackerRank** **A Very Big Sum problem solution** In this challenge, you are required to calculate and print the sum of the elements in an array, keeping in mind that some of those integers may be quite large.

## Function Description
Complete the aVeryBigSum function in the editor below. It must return the sum of all array elements.

aVeryBigSum has the following parameter(s):
int ar[n]: an array of integers.

**Return**

long: the sum of all array elements

**Input Format**

The first line of the input consists of an integer n.

The next line contains n space-separated integers contained in the array.

**Output Format**

Return the integer sum of the elements in the array.

## Solution (Base on how i solved it)

```
$bigNum = 0; //variable to hold results
  $myarr = sizeof($ar); //counted how many field i have in the given array
  for($i = 0; $i < $myarr; $i++){ //loop through the given array
     $bigNum += $ar[$i]; //add each field to my result variable
  }
  return $bigNum; //here is my result
```
Link to HackerRank: [A Big Sum Problem Test](https://www.hackerrank.com/challenges/a-very-big-sum/problem)
6 Ways to get Funds as a Startup.
Published: 2023-04-14 11:26:34

 PERSONAL SAVINGS. 

One of the most straightforward ways to get startup funds is to use your own savings. This can be a good option if you have saved up enough money to cover your initial expenses.

 FAMILY AND FRIENDS. 

You can also consider asking friends and family members to invest in your business. This can be a good option if you have a network of people who believe in your business idea and are willing to provide financial support.

 ANGEL INVESTORS.

Angel investors are individuals who invest in early-stage businesses in exchange for equity in the company. They can provide funding, as well as valuable advice and connections.

 VENTURE CAPITALISTS.

Venture capitalists (VCs) are professional investors who provide funding to startups in exchange for a share of the business. They typically invest larger amounts of money than angel investors and often require a seat on the company's board of directors.

 SMALL BUSINESS LOANS.

You can apply for a small business loan from a bank or other financial institution. These loans can be used to cover startup costs such as equipment, inventory, and marketing.
 
 GOVERNMENT OFFERS. 

Some governments offer grants to small businesses, particularly those in certain industries or geographical regions. These grants can provide funding without requiring repayment.
Career in Tech: How to become a Backend Engineer
Tags: webdev, javascript, programming, python
Published: 2023-04-14 09:29:42

Technical expertise, industry knowledge, and a desire to create dependable and scalable web applications are all prerequisites for becoming a backend engineer. A web application's backend is in charge of handling data processing, storage, and communication between the frontend and database. The key steps to becoming a great backend engineer will be covered in this article.

**1. Learn Programming Fundamentals**

Learning the basics of programming is the first step in becoming a backend developer. Start with a language that is frequently used for backend development, like Python, Java, or Ruby. Understanding data structure, algorithm, and object-oriented programming ideas is crucial for developing scalable online applications.

**2. Master a Backend Framework**

The next stage is to grasp a backend framework once you have a basic understanding of programming. A backend framework is a solution that offers a collection of libraries and APIs for managing routing, request handling, and database connectivity. Ruby on Rails, Node.js, and Django are a few well-known backend frameworks. Learn how to create RESTful APIs and web apps using a framework that matches your preferred programming language.

**3. Learn Database Management**

Database management is a crucial skill for backend engineers. Learn how to use a database management system like MySQL, MongoDB, or PostgreSQL. Knowledge of SQL or NoSQL is required to construct, query, and update databases and tables. Additionally, for improved speed, you ought to learn how to optimize database queries.

**4. Learn API Design**

You will be in charge of creating and constructing RESTful APIs as a backend engineer so that frontend applications may use them. Learn how to create secure, scalable, and maintainable APIs. Recognize the HTTP protocol, REST concepts, and tools for API documentation like Swagger or Postman.

**5. Gain Experience through Projects**

Start developing projects that address actual problems to obtain real-world backend engineering experience. Work on initiatives like creating a chat application, a social media platform, or an online store. These tasks will help you establish a thorough understanding of backend development and get you ready for practical situations.

**6. Stay Up-to-Date with Industry Trends**

Finally, stay current with the newest developments in industry trends and technologies. To learn about cutting-edge tools and industry best practices, attend meetings, conferences, and hackathons. To stay up to date on the most recent developments in backend development, follow thought leaders in the field on social media and blogs.

In conclusion, mastering programming, database administration, and API design are necessary to succeed as a backend engineer. A good backend engineer must master a backend framework, obtain real-world experience through projects, and keep up with current market developments.
Yahoo Finance Style Stock Price Label in SwiftUI
Tags: swift, ios, swiftui, ui
Published: 2023-04-14 09:26:13

One day I was inspired by a small yet crucial UI component in the Yahoo Finance iOS app. This UI component represents stock price changes in real time. The most interesting thing in this component for me it’s the accurate color accents on some parts of a price that was changed. I recreated this component but with better animations and a different aesthetic.

My article: https://hackernoon.com/yahoo-finance-style-stock-price-label-in-swiftui
GitHub repository: https://github.com/prokhorovxo/PriceView
How Seedr Helped Me Manage My Torrent Downloads with Ease
Tags: torrent, cloud
Published: 2023-04-14 09:22:03

Seedr is a cloud-based torrent provider that offers users the ability to download and stream torrents without the need to install software or manage files themselves. The platform provides fast download speeds, unlimited bandwidth, and enhanced security and privacy. One of my clients, an avid movie enthusiast, found Seedr (https://www.seedr.cc/) to be a valuable tool for downloading and managing his favorite movies and TV shows.

Prior to using Seedr, my client was struggling to manage large files on his computer and was frustrated with slow download speeds and a lack of storage space. With Seedr, he was able to download and stream his content in the cloud, which allowed him to access his files from anywhere on any device. Seedr's unlimited bandwidth and fast download speeds made downloading his favorite movies and TV shows a breeze.

Another significant benefit of using Seedr was enhanced security and privacy. Seedr protected my client's privacy and ensured that his downloads were secure and free from malware or viruses. Overall, Seedr proved to be a reliable and efficient solution for my client's torrent needs, allowing him to streamline the downloading process and enjoy his content without any hassle. If you're looking for a reliable and efficient torrent provider, be sure to check out Seedr at https://www.seedr.cc/.