lena

joined 10 months ago
[–] lena@gregtech.eu 6 points 1 day ago

I think the job loss part is a capitalism problem, not just an AI problem.

If we automate work, the people should get the benefits of the automation, they shouldn't have to be worried that they won't have a job.

[–] lena@gregtech.eu 44 points 4 days ago

Fascist scum

[–] lena@gregtech.eu 1 points 3 weeks ago

Wow, bunny is second in query speed, just below cloudflare. Impressive!

[–] lena@gregtech.eu 3 points 3 weeks ago

I can't recommend Purelymail enough. Cheap (10€ per year), and you can have as many accounts and inbox space as you. You can also connect as many domains as you want.

[–] lena@gregtech.eu 4 points 3 weeks ago (2 children)

I'm lazy and use cloudflare, so that checks out. Due to recent events I'll switch to another CDN, the centralization of the internet is very concerning.

[–] lena@gregtech.eu 2 points 3 weeks ago (1 children)

Spet ti. Smo pravi slovenski patrioti 👊🇸🇮🔥

[–] lena@gregtech.eu 3 points 4 weeks ago (1 children)

I wish politicians were more afraid of us

[–] lena@gregtech.eu 4 points 1 month ago

Ljubljana mentioned

[–] lena@gregtech.eu 0 points 1 month ago* (last edited 1 month ago)

You made a claim that hyperrin is making shit up without any solid proof

I also don't see what your goal is with all these sexist claims. Should we arrest all men? Discriminate against them? I just want to live in a society where everyone is treated equally, regardless of gender.

[–] lena@gregtech.eu 2 points 1 month ago (2 children)

You sound exactly the same as the people who tell sexually assaulted women that they're "making shit up"

[–] lena@gregtech.eu 22 points 1 month ago

all sexual offenders can go fuck themselves, regardless of gender.

[–] lena@gregtech.eu 26 points 1 month ago

And pigs are smart animals, even when not compared to sexual offenders.

 

based cloudflare

 
1
Gary (gregtech.eu)
 
 
 

Cross-posted from "How could I allow users to schedule sending emails at a specific interval?" by @lena@gregtech.eu in !learn_programming@programming.dev


Basically, I'm trying to figure out how I could allow a user to send a schedule in the cron syntax to some API, store it into the database and then send an email to them at that interval. The code is at gragorther/epigo. I'd use go-mail to send the mails.

I found stuff like River or Asynq to schedule tasks, but that is quite complex and I have absolutely no idea what the best way to implement it would be, so help with that is appreciated <3

 

cross-posted from: https://gregtech.eu/post/14553400

Moth girls rule

 

I mean, it's just a specific collection of noises that somehow tingles our brains.

I assume it's because we are great at recognizing patterns, and music is just that - patterns.

 

Cross-posted from "What would be the best way to store the country of a user in SQL?" by @lena@gregtech.eu in !learn_programming@programming.dev


I use Gorm. This is the current code:

package main

import (
	"fmt"
	"log"

	"gorm.io/driver/sqlite"
	"gorm.io/gorm"
)

type Env struct {
	DB     *gorm.DB
	Logger *log.Logger
}

type User struct {
	ID           uint
	Username     string
	Name         string
	Email        string
	PasswordHash string
	Country      string //should probably be a foreign key of another table
}

func initDB() {
	env := &Env{}
	db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})
	if err != nil {
		fmt.Printf("Error opening database: %v", err)
		return
	}
	env.DB = db
	env.DB.AutoMigrate(&User{})

}

func main() {
	initDB()
}

As you can see in the comment in the code, I assume the best way would be to have a table of countries and then assign each user to one via a foreign key. However, it seems a bit cumbersome to manually create a list of all countries. Is there a better way to do this?

 
 

Femboys :3

view more: next ›