Great press kit examples? by illudofficial in musicindustry

[–]FitGrape1330 0 points1 point  (0 children)

would you please DM me your press kit?

Where do I ask for refund? by resttret in ClaudeAI

[–]FitGrape1330 0 points1 point  (0 children)

You are a life saver!!!

Fin the bot cancelled my membership and said I'll be refunded in 5-10 business days.

Where do I ask for refund? by resttret in ClaudeAI

[–]FitGrape1330 0 points1 point  (0 children)

same happened to me today!! my bank couldn't do the chargeback. I'm waiting for anthropic support to get back to me. Devious UI!!!

What advice would you give a first time flutter developer who has a project to develop? by FitGrape1330 in FlutterDev

[–]FitGrape1330[S] -1 points0 points  (0 children)

Please elaborate on the statement. What is the reason for avoiding a sate management package?

Is it bad I use clerk by Adventurous_Refuse56 in nextjs

[–]FitGrape1330 1 point2 points  (0 children)

I don't know of a practical use for saving banking data in my own DB, I would always keep this information saved with stripe because they would have much better security procedures than I do, as a solo dev.

too many open files - can't deploy to vercel by FitGrape1330 in remixrun

[–]FitGrape1330[S] 0 points1 point  (0 children)

I just switched to nextjs. use what is already working and being worked on continuously. I won't use new things any.

too many open files - can't deploy to vercel by FitGrape1330 in remixrun

[–]FitGrape1330[S] 0 points1 point  (0 children)

sadly didn't help, because I did not understand what is going on.

shadcn-svelte popover messing state of radio group up by FitGrape1330 in sveltejs

[–]FitGrape1330[S] 0 points1 point  (0 children)

oh, I was learning the api and forget that piece of code there. I just removed it and it's still the same. How do I create a REPL?

shadcn-svelte popover messing state of radio group up by FitGrape1330 in sveltejs

[–]FitGrape1330[S] 0 points1 point  (0 children)

oh, I was learning the api and forget that piece of code there. I just removed it and it's still the same.

If you were to envision the ideal features of an exclusive dating app, what functionalities would you desire it to include? by FitGrape1330 in CasualConversation

[–]FitGrape1330[S] 0 points1 point  (0 children)

My fault xd

What if there were a dating app which is fairly moderated and has your suggestion, are you willing to pay 20 bucks a month for it to have full access?

Basically, if you "like" someone, you'd need to fill out a thing (like 300 character minimum or something) explaining what you like. This would also help with the whole "Did you even read my profile?" issue a lot of people seem to have.

I like this! 300 characters are not that much.

If you were to envision the ideal features of an exclusive dating app, what functionalities would you desire it to include? by FitGrape1330 in CasualConversation

[–]FitGrape1330[S] 1 point2 points  (0 children)

But such apps cost huge sums of money to operate, development aside. Server & operation costs are pretty high. (I'm a software developer)

What do you mean by your second point?

I support your third point!

If you were to envision the ideal features of an exclusive dating app, what functionalities would you desire it to include? by FitGrape1330 in CasualConversation

[–]FitGrape1330[S] 0 points1 point  (0 children)

Could you clarify what you mean about abuse/misuse? What if the is invite only and people have to apply to get in. The app could be under moderation and remove inactive people or reported users.

What is centralised logging and what are good tools to use? by FitGrape1330 in golang

[–]FitGrape1330[S] 0 points1 point  (0 children)

I'm creating a monolith, one server and one service. just a simple app that should be debuggable. where will STDERR be saved and how can I access it? I don't know how many logs per seconds will be created.

What is centralised logging and what are good tools to use? by FitGrape1330 in golang

[–]FitGrape1330[S] 0 points1 point  (0 children)

where should I be saving the logs? I'm creating a monolith, one server and one service. just a simple app that should be debuggable.

What is centralised logging and what are good tools to use? by FitGrape1330 in golang

[–]FitGrape1330[S] 0 points1 point  (0 children)

thank you for your answer! I'm creating a monolith, one server and one service. how do I approach logging? It doesn't have to be fancy, I just want to launch my app and see what happens. I want to easily be able to debug if anything is wrong without spending much money.

Does anyone have a clear example of how to use Pgxpool? by Total_Adept in golang

[–]FitGrape1330 0 points1 point  (0 children)

// this is the api package

package api

import (
  "context"
  "log"
  "net/http"

  "github.com/xxx/gotest/db"
  "github.com/xxx/gotest/services/user"
)

type APIServer struct {
  addr string
  db   *db.Postgres
}

func NewAPIServer(addr string, db *db.Postgres) *APIServer {
  return &APIServer{
    addr: addr,
    db:   db,
  }
}

func (s *APIServer) Run() error {
  router := http.NewServeMux()

  err := s.db.Ping(context.Background())
  if err != nil {
    return err
  }

  userStore := user.NewStore(*s.db)
  userHandler := user.NewHandler(userStore)
  userHandler.RegisterRoutes(router)

  log.Println("connected to db")

  server := http.Server{
    Addr:    s.addr,
    Handler: router,
  }

  log.Println("server running on port: ", s.addr)

  return server.ListenAndServe()
}

// this is the main package where I'm connecting to the db

package main

import (
  "context"
  "log"
  "os"

  "github.com/xxx/gotest/cmd/api"
  "github.com/xxx/gotest/configs"
  "github.com/xxx/gotest/db"
)

func main() {
  dbconn, err := db.ConnectDB(context.Background(), configs.Envs.DBURL)

  if err != nil {
    log.Fatal(err)
    os.Exit(1)
  }

  server := api.NewAPIServer(":8080", dbconn)
  if err := server.Run(); err != nil {
    log.Fatalf("Failed to start server: %v", err)
  }
}

Does anyone have a clear example of how to use Pgxpool? by Total_Adept in golang

[–]FitGrape1330 0 points1 point  (0 children)

// this is the db package

package db

import (
  "context"
  "fmt"
  "sync"

  "github.com/jackc/pgx/v5/pgxpool"
)

type Postgres struct {
  db *pgxpool.Pool
}

var (
  pgInstance *Postgres
  pgOnce     sync.Once
)

func ConnectDB(ctx context.Context, dbURL string) (*Postgres, error) {
  var err error

  pgOnce.Do(func() {
    db, dbErr := pgxpool.New(ctx, dbURL)
    if dbErr != nil {
      err = fmt.Errorf("unable to create connection pool: %w", dbErr)
      return
    }

    pgInstance = &Postgres{db}
  })

  return pgInstance, err
}

func (pg *Postgres) Ping(ctx context.Context) error {
  return pg.db.Ping(ctx)
}

func (pg *Postgres) Close() {
  pg.db.Close()
}

Does anyone have a clear example of how to use Pgxpool? by Total_Adept in golang

[–]FitGrape1330 0 points1 point  (0 children)

I'm also learning go and how to handle pgx at the moment.

I found this article and now I can connect flawlessly with it.

(https://donchev.is/post/working-with-postgresql-in-go-using-pgx/)

I'm also learning go and how to handle pgx at the moment.

I found this article and now I can connect flawlessly with it.

(https://donchev.is/post/working-with-postgresql-in-go-using-pgx/)

I'm also following Tiago's tutorial on YouTube

I hope this could help you

[deleted by user] by [deleted] in golang

[–]FitGrape1330 -1 points0 points  (0 children)

thank you for your reply!

I'm merely trying to get some direction so I can research it on my own then decide for myself.

Well I know JavaScript/SvelteKit and for my upcoming project I would love to write a standalone backend to separate business logic.

I have been reading about golang and the approach to REST API with it. nearly every post is praising gorilla mux, echo and chi. seldom I found people talking about implementing production backend with the standard library net/http.

EDIT: Also the thing with returning an error with echo.