lena

joined 6 months ago
MODERATOR OF
[–] lena@gregtech.eu 3 points 6 days ago (2 children)

I can't tell if this is real, am I stupid or is the world insane?

Could be both :3

[–] lena@gregtech.eu 4 points 6 days ago (2 children)

the most foul, cruel, and bad-tempered rodent you ever set eyes on.

[–] lena@gregtech.eu 112 points 1 week ago (6 children)

The first thing Labour does after getting majority is attack trans women and fuck around with internet privacy.

Bloody wankers.

[–] lena@gregtech.eu 8 points 1 week ago (6 children)

As I've said before, use TOR, and TOR bridges if necessary.

[–] lena@gregtech.eu 5 points 1 week ago (1 children)

I personally believe the furry community is harmful toward the LGBT movement.

The same logic is used by transmedicalists to call non-binary people harmful to LGBT because they are "weird". The rest was perfectly explained by @damnedfurry@lemmy.world.

[–] lena@gregtech.eu 5 points 1 week ago (8 children)

https://www.addictionhelp.com/porn/statistics/

Online use: Approximately 69% of American men and 40% of American women view online porn each year.

Other people view porn too. Do you now find everyone disgusting? Also, what's the source of you claim that over 70% of furries view furry porn? And how does it matter? They're individuals, and can make choices on their own.

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

Ohhhh, fair point. Sorry for assuming you had something against furries

[–] lena@gregtech.eu 5 points 1 week ago

That's quite pedantic. I didn't mean that as in "all furries are cool, including Nazis, fascists and other assholes", I meant more "I like the furry fandom".

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

Sorry man I'm quite confused, are you saying people who don't like furries are trying to justify furries?

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

What are you talking about then?

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

I'm not giving them to you, you could steal them and prevent me from being a goth gf :(

[–] lena@gregtech.eu 3 points 1 week ago (7 children)

I never said I didn't like furries...

 

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 "Kitty and Blåhaj" by @lena@gregtech.eu in !cat@lemmy.world


 

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?

 

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?

98
Lucky and Beri (files.catbox.moe)
view more: ‹ prev next ›