teleren/devto huggingface dataset:
Consult Bridge v1
Tags: nextjs, typescript, supabase, postgres
Published: 2024-05-20 03:45:18

---
title: Consult Bridge v1
published: true
description: NextJS app for non-profit medical organization
tags: NextJS, Typescript, Supabase, Postgres 
cover_image: https://images.squarespace-cdn.com/content/v1/65015e21ea29170537ee046e/32169b37-53e2-4d29-937b-0eab515e3943/mvp-landingpage-hero.jpg?format=1500w
# Use a ratio of 100:42 for best results.
# published_at: 2024-05-19 22:58 +0000
---

## Consultbridge.com V1

https://www.consultbridge.org/

Exciting news! After a year of dedicated work I'm happy to announce a major milstone for a medical non-profit I'm involved with. I've been hands on with the project alongside an intern, we've built a minimum viable product (MVP) – version 1.0 of our application!

### What is Consult Bridge?

Consult Bridge exsist to connect medical specialists to field workers serving in under resourced areas. It provides a simple tele-consultation platform to facilitate the connection and communication between parties.

We built this webapp on NextJS with Typescript using Supabase (Postgres) as a backend-as-a-service (BaaS) and Vercel for hosting NextJS. This stack has allowed us to move quickly and iterativly to meet requirements.

### A few key features of the app:

- Sign on flow and creation of an account with Authentication
- Creation of cases (consult request) by Field workers
- Email notifications of events for requests and responses to cases
- Chat messaging to enable conversation of active cases
- Re-routing of cases to other specialty

![Animation of user creating a consult request](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4mddnl6t8u50qvqnict.gif)

![Animation of user interacting with a consult request](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rql88wd8dgk832aqiabv.gif)

This is a big step forward in our mission to connect field-workers to medical specialists. Feel free to leave any feedback, comments or questions!
Artificial Intelligence is not as bad as you think, you're just not reading allat
Tags: javascript, ai, discuss, firstpost
Published: 2024-05-20 03:38:34

## Man..
Every day feels like AI is being pushed so far and for the wrong reasons.

From being used to farm user data for the sake of publicity that its not even right to *"sophisticated"* scams to lifeless, soulless AI *slop* that tries to imitate art. Like, damn, Twitter users now have a way of flooding your comments section using AI scam bots trying to steal your crypto monkeys! Nothing good is coming from these state-of-the-art LLMs.. At least that's what I hear from all the news on AI nowadays and maybe not only me but the entire internet as well. They despise AI.

## **BUT**
People are hating AI but not disregarding its potential. Huuuuge steps have been made in different areas thanks to AI. [We may have a better way of detecting breast cancer](https://www.thelancet.com/journals/landig/article/PIIS2589-7500(20)30003-0/fulltext#seccestitle180), [teachers can search for more or better material for their classes](https://beta.diffit.me/#topic), help people with disabilities work on papers by correcting their work, learn new languages, etc.
## My theory
The use of AI is really on its way of changing millions of lifes for the better, we are just not able to see it because, and this is a theory of mine, it is not being digested in a way that attracts curiosity.
Everyone is curious about the use of AI, its today and tomorrow's hot topic but how many people do you know that actually go into a research paper or one of those AI blogs, even with all the bloat it has, and reads their articles/findings? If it wasn't because they have to do it either for homework or work-related, they wouldn't have known about it.
## How to fix this?
What I'd propose is fight against these commonly heard news of the latest AI scandal, spread the misuse of AI and also share your latest favorite AI development to these platforms. I'm not telling you to start copy and pasting the usual 🧵 news guru 🧵 with the thread emoji on his post. Instead, people would like to see actual interest put into these posts. I know I would and it would really help in this gray looking cloud that is the AI world.

I am curious though.. How would you fix this? Do you agree? Are there any good AI news portal that you'd recommend? I'm really interesting in seeing your comments. All of this was something I really needed to get out of my chest :)
🚀 **Mastering Control Flow and Loops in JavaScript!** 🚀
Published: 2024-05-20 03:03:55

🔍 Understanding control flow and loops is key to unlocking the full potential of JavaScript, enabling you to write efficient, dynamic applications. Let's explore these foundational concepts:



### 🔄 Control Flow:

Control flow determines the order in which your code is executed. By default, JavaScript reads code from top to bottom, but with conditional statements, we can make it more dynamic! Here’s a quick look:



```javascript

let score = 85;



if (score >= 90) {

  console.log("Excellent!");

} else if (score >= 75) {

  console.log("Good job!");

} else {

  console.log("Keep trying!");

}

```



### 🔁 Loops:

Loops are powerful tools that help you execute a block of code multiple times, making tasks like iterating over arrays or repeating actions straightforward.





1. `for` Loop: Perfect for running code a specified number of times.

```javascript

let fruits = ["apple", "banana", "mango"];

for (let i = 0; i < fruits.length; i++) {

  console.log(fruits[i]);

}

```



2. `while` Loop: Runs as long as the specified condition is true.

```javascript

let count = 0;

while (count < 5) {

  console.log("Count is: " + count);

  count++;

}

```



3. `do...while` Loop: Similar to `while`, but guarantees at least one execution.

```javascript

let number = 0;

do {

  console.log("Number is: " + number);

  number++;

} while (number < 3);

```



### 🌟 Why It Matters:

Leveraging control flow and loops effectively can transform your code from good to great, making it more readable, efficient, and capable of handling complex tasks effortlessly.



💡 Pro Tip: Practice these concepts regularly to become a more proficient JavaScript developer!







Embrace these fundamental tools and elevate your coding skills to new heights. Happy coding! 💻✨



#JavaScript #WebDevelopment #Programming #CodingJourney #LearnToCode

#KEEPMoving

#COdeWith #KOtoka
Developing Tech Ideas
Published: 2024-05-19 15:04:16

As a web developer, when developing tech ideas, I typically follow approaches that are structured:

1. Identify the Problem or Opportunity: See every problem as an opportunity to solve a problem. Define the problem you want to solve clearly or the opportunity you will like to seize or pursue. Understanding pain points is essential.

2. Research and Gather Insights: Conduct thorough research to understand existing solutions, market needs, and user expectations. This includes competitor analysis, reviewing industry reports, and engaging with potential users for feedback.

3. Brainstorm and Ideate: Generate a wide range of ideas through brainstorming sessions. Foster creativity and openness, considering various approaches without immediate judgment.

4. Sketch and Visualize: Sketch initial ideas on paper. This helps visualize concepts and allows for quick iteration on designs and functionalities before creating digital prototypes.

5. Create a Prototype: Develop a low-fidelity prototype to bring your ideas to life. This could be a simple wireframe or a clickable mockup that demonstrates basic functionality and user flow.

6. Validate and Refine: Test the prototype with potential users to gather feedback. Observe their interactions to identify usability issues and areas for improvement, and iterate based on their input.

7. Develop a Minimum Viable Product (MVP): Build an MVP with the core features necessary to address the problem or need. Focus on delivering value quickly while allowing flexibility for future iterations.

8. Launch and Monitor: Release the MVP to a broader audience, monitor its performance, and collect real-world feedback. Use analytics and user feedback to identify enhancements and address any issues.

9. Iterate and Scale: Continuously improve the product based on feedback and data. Plan for scalability and new features to enhance the user experience and meet evolving market needs.

10. Communicate and Collaborate: Maintain open communication with your team, stakeholders, and users throughout the process. Collaboration and feedback are key to refining and perfecting your tech ideas.
Co development software
Tags: webdev, programming, shopify, wordpress
Published: 2024-05-20 02:58:41

Co-Development Software Revolutionizing Collaboration in Tech
In today’s rapidly evolving tech landscape, the need for efficient, collaborative software development has never been greater. Enter co-development software—a game-changer for teams looking to streamline their workflows and enhance productivity. 
**[Read more.](https://nexlerate.com/co-development-software/)**
How to place a buy & sell trade on pump.fun tokens
Published: 2024-05-20 02:47:01


Use this snippet to place the buy trade for a pumpfun token.

```javascript
const axios = require('axios');

const url = "https://pumpapi.fun/api/trade";
const data = {
    trade_type: "sell",
    mint: "YOUR_MINT_ADDRESS",
    amount: 1000,  # Example amount of tokens
    slippage: 2,
    priorityFee: 500,  # Optional
    userPrivateKey: "WALLET_PRIVATEKEY"
};

axios.post(url, data)
  .then(response => {
    const transactionId = response.data.tx_hash;
    console.log(`Transaction ID: ${transactionId}`);
  })
  .catch(error => {
    console.error(error);
  });
```

And to do the same using the python code:

```python
import requests

url = "https://pumpapi.fun/api/trade"
payload = {
    "trade_type": "buy",                    # Buy or sell 
    "mint": "YOUR_MINT_ADDRESS",            # Token mint address
    "amount": 0.01,                         # Amount in SOL , if buying or of tokens if selling.
    "slippage": 5,                          # Desired slippage 
    "priorityFee": 0.003,                   # Value in SOL
    "userPrivateKey: "WALLET_PRIVATEKEY"   # Wallet private key 
}

response = requests.post(url, json=payload)

if response.status_code == 200:
    transaction_id = response.json()["tx_hash"]
    print(f"Transaction ID: {transaction_id}")
else:
    print(f"Error: {response.status_code} - {response.text}")

```



**Endpoints:**
-------------------

API provides various endpoints for interacting with Pump.fun, including:

| **Feature** | **Description** |
| --- | --- |
| Buy & Sell Trades | Place trades on Pump.fun programmatically |
| Newer Mints Details | Get details on new mints on Pump.fun |
| Token Metadata Fetching | Fetch metadata for tokens on Pump.fun |
| Pump.fun Specific Data | Query data specific to Pump.fun |
| Swap Quotes | Fetch swap quotes and input/output details |

Read more on API documentation to learn how to use these features. 📄


**API Endpoint 📍**
-------------------

Our API endpoint is:

`https://pumpapi.fun/api`

**Happy Hacking 💻**
---------------------
Do You Need a CS Degree to Get a Job in Tech?
Tags: beginners, webdev, programming, 100daysofcode
Published: 2024-05-20 02:02:00

I don't think that you need a bootcamp or go back to school to get a CS degree.

The main advantage of these two options is just the structure that is provided. And you can also argue maybe the community.

But all the material that is offered is all free and cheap on the internet.

And if you want a community, just go to a meetup. They are completely free and meetup organizers will want as many people there as possible.

Let's say you have a bug in your code, go to a meetup and ask people. I bet that you can figure it out at that meetup rather than paying a bootcamp $15000 for them to listen to your problem.

## Just Google it.

Like, you are just going to Google it and go on Stack Overflow. Whether you are on a bootcamp, or a CS degree anyway.

So, you might as well get good at being resourceful yourself.

Like I said, go to meetups for collaboration. Like if you have a bug, go to a meetup and I am sure that you will figure it out.

You can also use other resources like YouTube.

YouTube is amazing. Stack Overflow is great too.

And as I once said, "You cannot hack your brain." That is all a bunch of click bait BS.

You cannot hack your brain to learn how to code. It is a brain.

You just have to Google everything.

You have to learn to be resourceful.

Learn how to struggle and learn how to learn.

It is not about the actual coding language or web development technology. It is learning how to learn the actual tech.

Rooting for you,

Karl ⛹️

P.S. Whenever you’re ready, there are 2 ways I can help you. If you’re still looking for traction in your career, I’d recommend starting with an affordable course, [the 2 hour developer](https://karlgusta.gumroad.com/l/eofdr/680bkf4). Or gain extra personalized clarity with [private 1x1 coaching](https://karlgusta.gumroad.com/l/yhjfy).
Rename all files and directories in the current folder
Published: 2024-05-20 01:24:09

This command is created by ChatGPT, it will recursively go through all files and directories in the current directory, change every "Dicexxxx" into "Ringxxxxx"
```
#!/bin/bash

# Recursive function to handle files and directories
rename_files_and_directories() {
  local dir=$1
  cd "$dir"
  
  # First handle files
  for file in *; do
    if [[ -f $file && $file == *Dice* ]]; then
      mv "$file" "${file//Dice/Ring}"
    fi
  done

  # Then handle subdirectories
  for subdir in *; do
    if [[ -d $subdir && $subdir == *Dice* ]]; then
      mv "$subdir" "${subdir//Dice/Ring}"
      subdir="${subdir//Dice/Ring}"
    fi
    if [[ -d $subdir ]]; then
      rename_files_and_directories "$subdir"
    fi
  done
  cd ..
}

# Call the recursive function starting from the current directory
rename_files_and_directories "$(pwd)"
```
Help: Project Ideas for Learning Latest C# and .NET Versions?
Tags: learning, dotnet, csharp
Published: 2024-05-20 00:41:52


Hello to the community! I'm new here.

I learned C# version 8 some time ago and used the corresponding .NET version. However, over the past 3-4 years, C# has evolved extremely quickly, and I've missed some changes. That's why I wanted to ask you for advice on how to catch up again. Perhaps with a suitable project that covers most of the changes from C# 8 to the current version, of course, with the current .NET version.

Thanks in advance for your help (=
Exploring the Use of WebSockets for Real-Time Applications
Tags: webdev, javascript, beginners, programming
Published: 2024-05-20 00:32:06

## Introduction

WebSockets are a technology that allows for real-time communication between a web browser and a server. It has emerged as a popular option for developing real-time applications due to its many advantages over traditional HTTP requests. In this article, we will explore the use of WebSockets for real-time applications.

## Advantages

1. **Persistent Connection:** WebSockets offer a persistent connection between the server and the client, allowing for bi-directional communication. This eliminates the need for continuous requests and reduces the overhead on the server.

2. **Low Bandwidth Usage:** WebSockets use a lower bandwidth compared to HTTP requests, making them more efficient for real-time data transfer.

3. **Faster Response Time:** They also have a faster response time, making them suitable for applications that require real-time updates.

## Disadvantages

1. **Limited Browser Support:** A major disadvantage of WebSockets is that they are not supported by all browsers, limiting their cross-browser compatibility.

2. **Security Concerns:** Since the connection is persistent, it can become a security threat if proper measures are not taken.

3. **Not Suitable for Large File Transfers:** Another limitation is that WebSockets are not optimized for large file transfers, making them unsuitable for such use cases.

## Features

WebSockets come with various features that make them ideal for real-time applications. These include:

1. **Event-Driven Architecture:** Allows for handling asynchronous events effectively.

2. **High Scalability:** Ability to handle a large number of connections simultaneously.

3. **Wide Compatibility:** Compatible with various programming languages and frameworks, facilitating integration into diverse environments.

### Example of WebSocket Usage

```javascript
// Creating a WebSocket connection
const socket = new WebSocket('ws://example.com/socket');

// Event listener for connection open
socket.onopen = function(event) {
    console.log('Connection established');
};

// Event listener for receiving messages
socket.onmessage = function(event) {
    console.log('Message received: ', event.data);
};

// Event listener for connection close
socket.onclose = function(event) {
    console.log('Connection closed');
};
```

## Conclusion

In conclusion, WebSockets offer numerous advantages for real-time applications, including efficient communication, faster response time, and event-driven architecture. However, they also have some limitations, such as limited browser support and security concerns. Despite these limitations, WebSockets continue to be a popular choice for developing real-time applications due to their rich features and benefits.
HOW I RECOVERED MY LOST CRYPTO
Published: 2024-05-19 23:29:38

BE CAREFUL of people asking for your money or investment schemes promising unrealistic returns.  They prey on unsuspecting individuals through deceptive programs. I lost over $145,000 to "Cashlyfaucet" a scam cartel online. In my quest for assistance to reclaim my funds, I encountered numerous endorsements on a Bitcoin Forum regarding RestoreChef. I reached out to him via email at **RECOVERYCHEF@TECHIE.COM**, and he successfully retrieved my stolen funds. If you've experienced a similar ordeal, feel free to contact him for assistance.
rust2
Published: 2024-05-19 23:22:51

1.

```
struct animal {
   name:String
   age:u8
}

impl animal {
    // static function
    fn create(name:String,age:u8) -> animal {
         return {
            name:'jack',
            age:20
          }
    }
    // instance function
    fn say(&self){
          
    }


}

let animalInstance:animal = {
   name:"大灰狼",
   age：20
};
animalInstance.say();

```
enumerate Option
it'appearance solve the problem of null point.

```
let s = some(2);
let s2 = some(20);

if let some(x) = s {
    x == 2 //true
}else{
  None
};

match s {
   some(x) => {
      x == 2
   },
   (_) => {
     println!("我是none")
   }
};

match (s,s2) {
   (Some(s),Some(s2)) => {
     s == 2 // true
     s2 == 20 // true
   },
   (_,(Some(S2))) => {

  }
}

let x =0;
let y=1;

match(x,y){
   (0,1) =>{

   },
   (_,1)=>{

   }

};
```
package mechanism

```
  // lib.ts 
  // mod match2 {
      pub fn add(x:i8,y:i8) -> i32 {
          x+y
      }
   }

 // main.ts
 use  guessing_game::math2;
```
Shopify, tailwind, alpine, packaged with vite
Tags: vite, alpine, tailwindcss, shopify
Published: 2024-05-19 23:21:23

Hello, I'm starting from this template to build my Shopify website
https://github.com/0wain/sholpine/tree/master

It uses vite to setup tailwind and alpine and apparently to start building you just run these commands in the command line npm install, npm run dev, npm run build

and when I run these commands it applies the tailwind styles that are in the sections/navigation.liquid file and creates a .json, .css, and .js file in the assets folder.

However, when I add more tailwind styles it does not update the .css file that is automatically generated after running the above commands. Am I missing a step?
Phase-1 Project
Tags: recipe, javascript, beginners
Published: 2024-05-19 22:44:12

Hello! I am currently finishing up my last project for phase-1 of my program. The website is a randomizer for my favorite meals currently with ingredients and instructions on how to make it! You can see where I am at currently by visiting my Github.

[](https://github.com/s-gebby/phase-1-javascript-project-mode)
FAYED HACKER IS THE BEST AND MOST RELIABLE CRYPTO CURRECNCY RECOVERY
Published: 2024-05-19 22:43:27

My journey through the volatile landscape of digital finance led me down a path of despair and betrayal when I fell victim to an online scam artist masquerading as a cryptocurrency trading expert. Entrusting over $255,000 of my hard-earned money to their purported expertise, I soon found myself ensnared in a web of deceit and financial ruin. Faced with the harsh reality of my predicament, I embarked on a relentless quest for redemption, dedicating countless hours to scouring the digital realm for a solution. It was in this quest for salvation that I stumbled upon Fayed Hacker – a beacon of hope amidst the darkness of deception. Renowned for their expertise in Bitcoin recovery and cyber investigation, Fayed Hacker stood out as a trusted ally in my battle against financial fraud. With trepidation and a flicker of hope, I reached out to  Fayed Hacker, laying bare the intricacies of my plight in the hopes of finding a solution. From the moment of our first contact, their team exuded professionalism and competence, instilling confidence in their ability to navigate the complexities of cryptocurrency recovery with finesse and precision. Through their unwavering dedication and meticulous attention to detail, Fayed Hacker  orchestrated a remarkable turnaround, reclaiming every penny of my lost investment in less than four hours. Their swift and decisive action not only restored my financial security but also imbued me with a renewed sense of hope and optimism for the future. I am eternally grateful to Fayed Hacker for their exceptional assistance in reclaiming my lost funds. Their expertise and professionalism surpassed all expectations, and I am indebted to them for their unwavering support throughout the recovery process. If you find yourself in a similar predicament – whether you've sent cryptocurrency to the wrong wallet or fallen victim to a deceptive scheme – I wholeheartedly recommend reaching out to  Fayed Hacker. In a world fraught with uncertainty and deception, Fayed Hacker stands as a beacon of reliability and trustworthiness, ready to guide you through the stormy seas of financial fraud with expertise and compassion. Trust in their expertise, and let them lead you towards financial restitution and a brighter future. With Fayed Hacker by your side, nothing can be lost. Contact via
EMAIL: fayedexperthack (@) solution4u (.) com  or   writeus (@) fayedhack.tech
WHATSAPP: + 1(707) 727 3490 
TELEGRAM: @fayedexperthacker
I'm a complete newbie but I need some help please!
Tags: vscode, css, html
Published: 2024-05-19 22:23:12

I was starting my first tutorial project and trying ti understand it and I already screwed up. I tried to open it in a live server to see how it's progressing. 

```
<!DOCTYPE html>
<html>
<head>
  <style>
    .container {
      width: 50%;
      margin: 100px auto 20px;
      background-color: lightblue;
      padding: 20px; 
      text-align: center; 
    }
  </style>
</head>
<body>
  <div class="container">
    <p>This is a container with specific margins.</p>
  </div>
</body>
</html>
```

It's just a simple block with some padding and a background colour but for some reason it keeps on coming up with this image no matter what projects I'm on. 


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


Some help would be amazing thanks!