There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

kbin.life

thayer , (edited ) to linux in IDE/Text Editor Recommendations for Go Development on Linux

Distrobox will resolve your issue with VSCode and then some. Run archlinux, debian or whatever you want as a container. Then, install VSCode/VSCodium (and any other apps that Chimera lacks) inside the container OS. This will keep your development environment containerized and safely away from your host OS.

arin , to asklemmy in Toy/game makers often list skills children learn while playing them. What skills would adult games develop?

Adult games 👀 developing one handed gaming even if other games didn’t intend it to be.

BreadOven , to nostupidquestions in Is this normal for girls or just a extreme edge case? (Serious question)

Got a bit freaky with a friend once. I used the cucumber on her. We both ate it after. Don’t leave that shit for other people to eat. As long as they have common sense, you should be fine.

someguy3 , (edited ) to nostupidquestions in Is this normal for girls or just a extreme edge case? (Serious question)

Hope she washed it off well before putting it back in the fridge. So I doubt the post is real. As for the rest I’ll have to leave it to women to answer. But if you ever find your cucumber in the garbage, just leave it there.

ByteOnBikes OP ,

Understood and thank you for your wisdom.

thefartographer ,

Do most people take food back out from the trash?

abbadon420 ,

Yeah, to give it to the rabbits. Don’t waste food

thefartographer ,

Ohhhhhh, I didn’t think about that. I considered that the same as “discarded.” But now I feel bad how nonchalantly I was thinking like, “throw the cucumber of joy into the compost or let nature consume it”

I have a dog who doesn’t like most fruits or any vegetables. I’ve forgotten how easy it is to just give produce to pets such as bunnies or the adorable yet giant Texas desert centipede you and your friend nabbed from Terlingua for his wife.

Naich ,
@Naich@lemmings.world avatar
Rusty ,

Only if you are George Costanza.

BreadOven ,

The eclair was more or less floating on top of the garbage. It wasn’t IN the garbage.

quinkin , (edited ) to technology in Bitcoin is Stupid and Does Not Deserve an Emoji (blog post)

Should just be a generic crypto currency symbol with a rug being pulled from under it.

fraksken , to nostupidquestions in Is this normal for girls or just a extreme edge case? (Serious question)
Ransack ,

Cucumbers are the gateway veg.

Posts a picture of bitter melon.

Weird flex but okay.

AndrewZabar ,

Whooooosh!

That was his point. The pic is of what could be next.

Ransack , (edited )

https://lemmy.dbzer0.com/pictrs/image/908cb3d6-7a54-441b-9a6d-39eaad5f1c30.webp

Edit: lol 45 accounts and growing of people who can’t take a joke but can take a bitter melon.

ICastFist ,
@ICastFist@programming.dev avatar

PAIGE NO!!

nondescripthandle ,

The Bad Dragon company wants to know your location.

BreadOven ,

Spicy.

sag , to asklemmy in What are your favorite open-source games?

Taisei and Minetest with VoxelLibre

Robert7301201 ,

NodeCore is another great Minetest game. I haven’t been able to find a game that matches the feeling of discovery it provides as you learn about the rules of the world.

weariedfae , to nostupidquestions in Is this normal for girls or just a extreme edge case? (Serious question)

This is the modem equivalent format for an ancient dirty joke. Back in the day kids you could find collections of them in printed books, and later, entire websites solely dedicated to hosting thousands of dirty jokes. They were presented in story format, often happening to your cousin’s friend.

Not saying no one had ever had this happen to them in the history of mankind. But this is also an old dirty joke that is probably more commonly repeated than acted out.

bionicjoey ,

This is the modem equivalent

Nice keming

weariedfae ,

Lol good catch. It was totally on purpose and not swipe being swipe. Yep.

RumorsOfLove , to nostupidquestions in Is this normal for girls or just a extreme edge case? (Serious question)

did you catch Poor Things?

200ok , to asklemmy in Toy/game makers often list skills children learn while playing them. What skills would adult games develop?

Patience

200ok , to asklemmy in Toy/game makers often list skills children learn while playing them. What skills would adult games develop?

Cooperation

200ok , to asklemmy in Toy/game makers often list skills children learn while playing them. What skills would adult games develop?

Deception

JohnDClay , to memes in Private Capital vs Central Planning

China managed to overbuild high speed rail, they got so good at it. Their whole system is built to incentive huge infrastructure projects. Which has been good, but now they’re getting way into the diminishing returns.

yogthos OP ,
@yogthos@lemmy.ml avatar
Annoyed_Crabby ,

They’re so good at it and got addicted to it they want to build it on other countries too!

arran4 , to technology in Is there a Git repository activity aggregator, like GitHub's user activity but platform independent?

I asked chatgpt to write a go program for this, this looks roughly correct (I have used both libraries before) obviously this won’t be enough for your particular use case. I imagine you can integrate an RSS feed to your site, however if you’re using something like hugo perhaps output it as a csv.

Super low effort but a good start I think:


<span style="font-weight:bold;color:#a71d5d;">package</span><span style="color:#323232;"> main
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">import </span><span style="color:#323232;">(
</span><span style="color:#323232;">	</span><span style="color:#183691;">"fmt"
</span><span style="color:#323232;">	</span><span style="color:#183691;">"log"
</span><span style="color:#323232;">	</span><span style="color:#183691;">"os"
</span><span style="color:#323232;">	</span><span style="color:#183691;">"strings"
</span><span style="color:#323232;">	</span><span style="color:#183691;">"time"
</span><span style="color:#323232;">
</span><span style="color:#323232;">	git </span><span style="color:#183691;">"github.com/go-git/go-git/v5"
</span><span style="color:#323232;">	rss </span><span style="color:#183691;">"github.com/jteeuwen/go-pkg-rss"
</span><span style="color:#323232;">)
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">const </span><span style="color:#323232;">(
</span><span style="color:#323232;">	timeout </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">5 </span><span style="font-style:italic;color:#969896;">// timeout in seconds for the RSS feed generation
</span><span style="color:#323232;">)
</span><span style="color:#323232;">
</span><span style="font-style:italic;color:#969896;">// Repository represents a git repository with its URL
</span><span style="font-weight:bold;color:#a71d5d;">type </span><span style="color:#323232;">Repository </span><span style="font-weight:bold;color:#a71d5d;">struct </span><span style="color:#323232;">{
</span><span style="color:#323232;">	URL </span><span style="font-weight:bold;color:#a71d5d;">string
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="font-style:italic;color:#969896;">// Repositories is the list of git repositories
</span><span style="font-weight:bold;color:#a71d5d;">var </span><span style="color:#323232;">Repositories </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#323232;">[]Repository{
</span><span style="color:#323232;">	{URL: </span><span style="color:#183691;">"https://github.com/owner/repo1"</span><span style="color:#323232;">},
</span><span style="color:#323232;">	{URL: </span><span style="color:#183691;">"https://github.com/owner/repo2"</span><span style="color:#323232;">},
</span><span style="color:#323232;">	</span><span style="font-style:italic;color:#969896;">// Add more repositories here
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="font-style:italic;color:#969896;">// FetchLatestTag fetches the latest tag from a git repository
</span><span style="font-weight:bold;color:#a71d5d;">func </span><span style="font-weight:bold;color:#795da3;">FetchLatestTag</span><span style="color:#323232;">(repoURL </span><span style="font-weight:bold;color:#a71d5d;">string</span><span style="color:#323232;">) (</span><span style="font-weight:bold;color:#a71d5d;">string</span><span style="color:#323232;">, </span><span style="font-weight:bold;color:#a71d5d;">string</span><span style="color:#323232;">, </span><span style="font-weight:bold;color:#a71d5d;">error</span><span style="color:#323232;">) {
</span><span style="color:#323232;">	</span><span style="font-style:italic;color:#969896;">// Clone the repository to a temporary directory
</span><span style="color:#323232;">	dir, err </span><span style="font-weight:bold;color:#a71d5d;">:=</span><span style="color:#323232;"> os.MkdirTemp(</span><span style="color:#183691;">""</span><span style="color:#323232;">, </span><span style="color:#183691;">"repo"</span><span style="color:#323232;">)
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;"> err </span><span style="font-weight:bold;color:#a71d5d;">!= </span><span style="color:#0086b3;">nil </span><span style="color:#323232;">{
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#183691;">""</span><span style="color:#323232;">, </span><span style="color:#183691;">""</span><span style="color:#323232;">, err
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">defer</span><span style="color:#323232;"> os.RemoveAll(dir)
</span><span style="color:#323232;">
</span><span style="color:#323232;">	_, err </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> git.PlainClone(dir, </span><span style="color:#0086b3;">true</span><span style="color:#323232;">, </span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">git.CloneOptions{
</span><span style="color:#323232;">		URL:      repoURL,
</span><span style="color:#323232;">		Progress: os.Stdout,
</span><span style="color:#323232;">	})
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;"> err </span><span style="font-weight:bold;color:#a71d5d;">!= </span><span style="color:#0086b3;">nil </span><span style="color:#323232;">{
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#183691;">""</span><span style="color:#323232;">, </span><span style="color:#183691;">""</span><span style="color:#323232;">, err
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">
</span><span style="color:#323232;">	repo, err </span><span style="font-weight:bold;color:#a71d5d;">:=</span><span style="color:#323232;"> git.PlainOpen(dir)
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;"> err </span><span style="font-weight:bold;color:#a71d5d;">!= </span><span style="color:#0086b3;">nil </span><span style="color:#323232;">{
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#183691;">""</span><span style="color:#323232;">, </span><span style="color:#183691;">""</span><span style="color:#323232;">, err
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">
</span><span style="color:#323232;">	tags, err </span><span style="font-weight:bold;color:#a71d5d;">:=</span><span style="color:#323232;"> repo.Tags()
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;"> err </span><span style="font-weight:bold;color:#a71d5d;">!= </span><span style="color:#0086b3;">nil </span><span style="color:#323232;">{
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#183691;">""</span><span style="color:#323232;">, </span><span style="color:#183691;">""</span><span style="color:#323232;">, err
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">var </span><span style="color:#323232;">latestTag </span><span style="font-weight:bold;color:#a71d5d;">string
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">var </span><span style="color:#323232;">latestCommitTime time.Time
</span><span style="color:#323232;">
</span><span style="color:#323232;">	err </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> tags.ForEach(</span><span style="font-weight:bold;color:#a71d5d;">func</span><span style="color:#323232;">(ref </span><span style="font-weight:bold;color:#a71d5d;">*</span><span style="color:#323232;">plumbing.Reference) </span><span style="font-weight:bold;color:#a71d5d;">error</span><span style="color:#323232;"> {
</span><span style="color:#323232;">		tag :</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> ref.Name().Short()
</span><span style="color:#323232;">		commit, err :</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> repo.CommitObject(ref.Hash())
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;"> err </span><span style="font-weight:bold;color:#a71d5d;">!= </span><span style="color:#0086b3;">nil</span><span style="color:#323232;"> {
</span><span style="color:#323232;">			</span><span style="font-weight:bold;color:#a71d5d;">return</span><span style="color:#323232;"> err
</span><span style="color:#323232;">		}
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;"> commit.Committer.When.After(latestCommitTime) {
</span><span style="color:#323232;">			latestCommitTime </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> commit.Committer.When
</span><span style="color:#323232;">			latestTag </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> tag
</span><span style="color:#323232;">		}
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#0086b3;">nil
</span><span style="color:#323232;">	})
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;"> err </span><span style="font-weight:bold;color:#a71d5d;">!= </span><span style="color:#0086b3;">nil </span><span style="color:#323232;">{
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#183691;">""</span><span style="color:#323232;">, </span><span style="color:#183691;">""</span><span style="color:#323232;">, err
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">return</span><span style="color:#323232;"> latestTag, latestCommitTime.Format(time.RFC1123Z), </span><span style="color:#0086b3;">nil
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="font-style:italic;color:#969896;">// GenerateRSS generates an RSS feed from the latest tags of the repositories
</span><span style="font-weight:bold;color:#a71d5d;">func </span><span style="font-weight:bold;color:#795da3;">GenerateRSS</span><span style="color:#323232;">() </span><span style="font-weight:bold;color:#a71d5d;">string </span><span style="color:#323232;">{
</span><span style="color:#323232;">	feed </span><span style="font-weight:bold;color:#a71d5d;">:=</span><span style="color:#323232;"> rss.Feed{
</span><span style="color:#323232;">		Title:       </span><span style="color:#183691;">"Latest Tags from Git Repositories"</span><span style="color:#323232;">,
</span><span style="color:#323232;">		Link:        </span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">rss.Link{Href: </span><span style="color:#183691;">"http://example.com/"</span><span style="color:#323232;">},
</span><span style="color:#323232;">		Description: </span><span style="color:#183691;">"This feed provides the latest tags from a list of git repositories."</span><span style="color:#323232;">,
</span><span style="color:#323232;">		Created:     time.Now(),
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">for </span><span style="color:#323232;">_, repo </span><span style="font-weight:bold;color:#a71d5d;">:= range</span><span style="color:#323232;"> Repositories {
</span><span style="color:#323232;">		tag, date, err </span><span style="font-weight:bold;color:#a71d5d;">:= </span><span style="color:#323232;">FetchLatestTag(repo.URL)
</span><span style="color:#323232;">		</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;"> err </span><span style="font-weight:bold;color:#a71d5d;">!= </span><span style="color:#0086b3;">nil </span><span style="color:#323232;">{
</span><span style="color:#323232;">			log.Printf(</span><span style="color:#183691;">"Error fetching latest tag for repository </span><span style="color:#0086b3;">%s</span><span style="color:#183691;">: </span><span style="color:#0086b3;">%v</span><span style="color:#183691;">"</span><span style="color:#323232;">, repo.URL, err)
</span><span style="color:#323232;">			</span><span style="font-weight:bold;color:#a71d5d;">continue
</span><span style="color:#323232;">		}
</span><span style="color:#323232;">		feed.Items </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#62a35c;">append</span><span style="color:#323232;">(feed.Items, </span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">rss.Item{
</span><span style="color:#323232;">			Title:       fmt.Sprintf(</span><span style="color:#183691;">"Latest tag for </span><span style="color:#0086b3;">%s</span><span style="color:#183691;">: </span><span style="color:#0086b3;">%s</span><span style="color:#183691;">"</span><span style="color:#323232;">, repo.URL, tag),
</span><span style="color:#323232;">			Link:        </span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">rss.Link{Href: repo.URL},
</span><span style="color:#323232;">			Description: fmt.Sprintf(</span><span style="color:#183691;">"The latest tag for repository </span><span style="color:#0086b3;">%s</span><span style="color:#183691;"> is </span><span style="color:#0086b3;">%s</span><span style="color:#183691;">, created on </span><span style="color:#0086b3;">%s</span><span style="color:#183691;">."</span><span style="color:#323232;">, repo.URL, tag, date),
</span><span style="color:#323232;">			Created:     time.Now(),
</span><span style="color:#323232;">		})
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">var </span><span style="color:#323232;">rssFeed strings.Builder
</span><span style="color:#323232;">	rssFeed.WriteString(xml.Header)
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">err </span><span style="font-weight:bold;color:#a71d5d;">:=</span><span style="color:#323232;"> feed.Write(</span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">rssFeed); err </span><span style="font-weight:bold;color:#a71d5d;">!= </span><span style="color:#0086b3;">nil </span><span style="color:#323232;">{
</span><span style="color:#323232;">		log.Fatalf(</span><span style="color:#183691;">"Error generating RSS feed: </span><span style="color:#0086b3;">%v</span><span style="color:#183691;">"</span><span style="color:#323232;">, err)
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">return</span><span style="color:#323232;"> rssFeed.String()
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">func </span><span style="font-weight:bold;color:#795da3;">main</span><span style="color:#323232;">() {
</span><span style="color:#323232;">	rssFeed </span><span style="font-weight:bold;color:#a71d5d;">:= </span><span style="color:#323232;">GenerateRSS()
</span><span style="color:#323232;">	fmt.Println(rssFeed)
</span><span style="color:#323232;">}
</span>
some_guy , to memes in Priorities, right?

I don’t understand. But maybe fuck off with this bullshit. Lemmy is doing fine.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines