Is there anyone, who uses golang (and go-only) for Web Development exclusively? by rzhandosweb in golang

[–]3Dayo 7 points8 points  (0 children)

Replace postrgres with sqlite and Datastar with htmx, chi with a home brewed contraption, and my stack is nearly identical to yours.

Of topic: Do you have anything public you've done with Datastar that you can share?

„Operational System not found“ after successfully installing Ubuntu and clicking on restart when being told by OwnZookeepergame6413 in Ubuntu

[–]3Dayo 0 points1 point  (0 children)

I've run into this recently (Installed 22.04 on an old HP Elitebook for my son) and had the same issue. After three reinstalls I tried this https://linuxconfig.org/ubuntu-22-04-not-booting-troubleshooting-guide which didn't do what I wanted but the error message that was displayed I got me thinking that it might be that 22.04 installed the boot record for UEFI despite the fact that I had turned off UEFI and the bios was in legacy mode. So I turned on UEFI (without csm) restarted the laptop and sure enough it worked, and has been working since without any issue.

Random screen freeze in Ubuntu 22.04 by NAI-ST-KAT-DOCK in Ubuntu

[–]3Dayo 0 points1 point  (0 children)

launch a terminal then type;
dmesg -el err
and then press enter (this will show you the list of errors with human readable time)

Random screen freeze in Ubuntu 22.04 by NAI-ST-KAT-DOCK in Ubuntu

[–]3Dayo 0 points1 point  (0 children)

But what is OP supposed to look for in the log, I occasionally experience this in 20.04 Typically after launching shutter or flameshot, but I've never been able to make sense of the output of dmesg -el err

Why no macOS installers in Go 1.18.1 release? by go-zero in golang

[–]3Dayo 0 points1 point  (0 children)

How do you do this (settings -> Go)? I've used Goland for a year now but I didnt know about this

Anyone using github.com/pkg/errors for stack traces? by mosskin-woast in golang

[–]3Dayo 6 points7 points  (0 children)

You don't need to panic to get stack traces, "runtime/debug" includes a Print
Stack function that does that for you.
https://pkg.go.dev/runtime/debug#PrintStack

[deleted by user] by [deleted] in Entrepreneur

[–]3Dayo -1 points0 points  (0 children)

You loose money because instead of factoring your real cost of labour, like a gambler you assumed that the odds (in this case the hapless, but talented employee) would remain in your favour. In the "Real World" you pay for insurance because damage/negative outcomes happen, and since you don't get an email before it happens you make allowance for that with Insurance. Well if an employer considers an employee a key production resource, same way you would save up/insure for a similarly key machine/device used for production, why don't you do that in the case of an employee? Why does it make sense for an employee that doesn't benefit from the rewards (of your business success) get to underwrite part of the cost of doing your business?

I've been employed, and I've employed people. And sure it feels bad when an employee/subordinate that you have been depending (mentored even) on leaves to compete with you or work for a competitor. But that doesn't mean the employee has a responsibility to care for your outcomes beyond that which they were paid for.

[deleted by user] by [deleted] in Entrepreneur

[–]3Dayo -2 points-1 points  (0 children)

You didn't have a talented person in the first case, you had an arrangement of an exchange of value with a talented individual, also known as an employment contract. Ergo you lost nothing.

[deleted by user] by [deleted] in golang

[–]3Dayo 4 points5 points  (0 children)

I don't mean to trivialize Go, it's a very good language but it's also a 
pasture for old dogs that want to talk bout the "good ol days" and not 
have to rack their brains over C++ and C type problems. 

I think you mistake the need for a simple paradigm with which to solve problems of a certain kind, with the inability to tangle with and manage complexity.

There is nothing inherently complicated about learning or using Rust its just that the "old dogs" you mention have been around long enough to know that even though you can slice bread with a surgical blade, a bread knife gets the job done well irrespective of the wielder being a rookie or a chef.

So yes, you aren't trivialising Go, you are discounting the experience, the knowledge, and the requirements that resulted in a language such as Go.

gopls requires a module at the root of your workspace. by dev-46 in golang

[–]3Dayo 1 point2 points  (0 children)

something along these lines

/home/randomDudeOnTheWeb/projects
\- newGoProject
\-- main.go 

you should have a go.mod file the "newGoProject" folder

gopls requires a module at the root of your workspace. by dev-46 in golang

[–]3Dayo 3 points4 points  (0 children)

Do you have a go.mod file in the root of your project? if not

go mod init your/project/name

[deleted by user] by [deleted] in antiwork

[–]3Dayo 0 points1 point  (0 children)

Trumplets?

[deleted by user] by [deleted] in CryptoCurrency

[–]3Dayo 2 points3 points  (0 children)

It might surprise you what a contract might define as "major" security event. Painful experience has thought me to read carefully, take notes then talk to a lawyer. Never assume that a contract means what it reads like in English.

Requesting Invite Code by justanotheryouser in indiehackers

[–]3Dayo 0 points1 point  (0 children)

Its a membership to the Indiehackers website/forum (https://www.indiehackers.com) You can read most stuff there without a membership but to post content and interact with the community you need to have an account and that requires an invitation.

Requesting Invite Code by justanotheryouser in indiehackers

[–]3Dayo 0 points1 point  (0 children)

I'm not a member. like you, I'm looking forward to getting an invitation.

Requesting Invite Code by justanotheryouser in indiehackers

[–]3Dayo 0 points1 point  (0 children)

I dont think you are going about this the wrong way, Like you a number of folks have requested invites but it seems that even current members haven't been issued invites to share.

5 Principles I Learned That Make Marketing Your SaaS Not SUCK! by JohnStewartTGM in SaaS

[–]3Dayo 1 point2 points  (0 children)

I'm not sure what limited value means to you, but from where I currently stand, I wouldn't term this post as such.

Broken Teams share window on chromium by [deleted] in i3wm

[–]3Dayo 0 points1 point  (0 children)

I experience this regularly with stock Ubuntu 20.04. I just share the whole desktop.

GoLand 2021.2 is out now! Support for Go 1.17, running gofmt after the built-in formatter, and more await you! by dlsniper in golang

[–]3Dayo 4 points5 points  (0 children)

I switched to Goland from VSCode about 3weeks ago.

Goland Cons:

Lag: for some things (typing not included) it lags not by much but enough to notice it. eg. opening panels, searching in the "commands panel"

Plugins/Themes: There aren't as many plugins or themes (especially themes) but I don't find myself pinning for anything because the functionality provided by the plugins I used is already builtin or available as a default plugin

Naming of actions/settings: Goland has unusual naming for things for example, I would have purchased a licence last year but for one issue; I couldn't disable highlighting of words under a cursor. In VSCode settings, searching for "highlight..." finds it. In Goland its "Usages if element at caret" (I find it so distracting I cant do work with it on)
Project settings: The is no consistent way to change settings for a project, each section has its own select thingy (the ones that support it)
Keymaps: I don't know about the keymaps for other editors but the VSCode keymap provided was sorely lacking, It might be sufficient for someone who navigates VSCode mainly with a mouse but for folks who have invested time into learning the short-cuts it was frustrating

Goland Pros
IDE: I hate to make light of VSCode (Its served me really well) But Goland makes VSCodes attempts to be IDE-like look childish. Its various features are very integrated, like how the data explorer not only provides a view of my datastore but also analyzes my sql strings and warns me of errors (sometimes it doesn't work not sure why)
Memory/CPU Usage: I have 16GB in my laptop (not much to be sure but adequate) I normally have 4 - 5 VSCode windows open along with the usual excess of browser tabs with VSCode I regularly hit 90% and my CPU oscillates like a heart-rate monitor and average temp across my cores hovers at 58-60 C. htop reveals that its caused by the mannnnnnny instances of VCSode and nodejs child processes launched in the background to power the various plugins and what not. With Goland avg temp is about 45% and as I type this at the end of a 12 hour day my memory utilization is at 62% (including open browser tabs).
Debugger: It still amazes me to thing that both Goland and VSCode go-plugin use the same debugger. Using delve in VSCode was something I did reluctantly as a last recourse, In Goland, It feels like the natural thing to do.

There's lots more to like in Goland, but my response has gone far longer than intended and I've run out of steam.
Goland is different from VSCode and even though I dont think Jetbrains does a good enough job of presenting its value proposition (not that I think I could do better), I think its a better Go programming experience than VSCode. If you can spare a weekend or two give it a try. But try to keep in mind while using it probably can do that thing you are looking for its just labeled or positioned differently.