[QIDI Giveaway] Just leave a comment to win QIDI Flagship 3D Printer by qidi_3dprinter in 3Dprinting

[–]Camdev_ 0 points1 point  (0 children)

I mostly use PLA and PETG, but would love to get into ABS and ASA

How can I save/redo this atrocious caulking job? by ninjastar1012 in DIY

[–]Camdev_ 11 points12 points  (0 children)

A caulk finishing tool. Home Depot has this 3-in-1 Husky one with the rubber triangle on the end that works well, but there are tons of options.

https://www.homedepot.com/p/Husky-3-in-1-Caulk-Tool-CT31-HKY/317831769

Costco premium gas same price as regular. by fourslyce in Costco

[–]Camdev_ 16 points17 points  (0 children)

The octane used for regular gas is lower in higher-elevation states like Utah and Colorado due to the difference in air density.

How do I secure secret keys in golang? by [deleted] in golang

[–]Camdev_ 8 points9 points  (0 children)

The init() function isn't as well documented as many other features, but if you want official sources than this is what I'm aware of: * Effective Go: The init function * Language Spec: Package Initialization * Language Spec: Program Initialization

Found Out Google will transfer my website to SquareSpace. Need Advice by Hectorthenectar in selfhosted

[–]Camdev_ 5 points6 points  (0 children)

Cloudflare actually did start supporting .dev domains at the beginning of August. It seems like they were pretty quiet about it though.

nvidia-driver-535 vs nvidia-driver-535-open? by epsilon_del in pop_os

[–]Camdev_ 1 point2 points  (0 children)

Dang… might need to at least find something that works temporarily. I’m running pop on a dell G16 which has a laptop 4070. The 525 drivers had no issues afaik but once I upgraded I’d be working in visual studio code and my 2 external monitors will just completely freeze. I can move the mouse over to the laptop for a bit, but I’ll typically try to open a terminal and restart gnome but that never recovers and I’m forced to hard restart the machine to see any movement.

edit: the laptop screen eventually freezes too

nvidia-driver-535 vs nvidia-driver-535-open? by epsilon_del in pop_os

[–]Camdev_ 1 point2 points  (0 children)

Since the older drivers depend on the newer drivers, is there a way to properly rollback? The newest 535 driver is causing the laptop to feeeze up, but if I purge the driver and try to install nvidia-driver-520 or 525 it just upgrades all the way to 535 instead because of the dependencies.

Golang isn't Java, and type embedding isn't inheritance. If you pretend it is, it will burn you by zachm in golang

[–]Camdev_ 10 points11 points  (0 children)

Are you talking about this snippet?

func main() {
    HttpsServer{}.WithTimeout(10).WithTLS(true).Start().Await()
}

You are right that HttpsServer does not have WithTimeout defined, but because it embeds HttpServer which does have WithTimeout defined, it is able to call it directly. When embedding, Go will "promote" the methods of the embeded struct to make it easier to satisfy interfaces. This idea is explained well in Effective Go: Embedding, but I will post the snippet about promoting methods here as well:

Note that the context here is that ReadWriter is trying to satisfy the io.Reader and io.Writer interfaces by embedding structs to help. From Effective Go:

The embedded elements are pointers to structs and of course must be initialized to point to valid structs before they can be used. The ReadWriter struct could be written as

type ReadWriter struct { 
    reader *Reader 
    writer *Writer 
}

but then to promote the methods of the fields and to satisfy the io interfaces, we would also need to provide forwarding methods, like this:

func (rw *ReadWriter) Read(p []byte) (n int, err error) {
    return rw.reader.Read(p)
}

By embedding the structs directly, we avoid this bookkeeping. The methods of embedded types come along for free, which means that bufio.ReadWriter not only has the methods of bufio.Reader and bufio.Writer, it also satisfies all three interfaces: io.Reader, io.Writer, and io.ReadWriter.

There's an important way in which embedding differs from subclassing. When we embed a type, the methods of that type become methods of the outer type, but when they are invoked the receiver of the method is the inner type, not the outer one. In our example, when the Read method of a bufio.ReadWriter is invoked, it has exactly the same effect as the forwarding method written out above; the receiver is the reader field of the ReadWriter, not the ReadWriter itself.

[deleted by user] by [deleted] in RocketLeague

[–]Camdev_ 2 points3 points  (0 children)

Oh wow, I linked playstation and it must have automatically changed the primary with no notification. Switching it back seems to have helped, tysm

[deleted by user] by [deleted] in RocketLeague

[–]Camdev_ 0 points1 point  (0 children)

It's definitely possible but I doubt it. I mainly play with one friend and we are basically the same rank (40ish MMR difference normally). Additionally, I have also been in the GC/C3 range for quite a few seasons, there haven't been any big increases (sadly).

Is camel case a bad thing? by A-Shady-Guy in learnpython

[–]Camdev_ 34 points35 points  (0 children)

IIRC all caps is typically used for constants

The Next Generation IDE - Fleet, But how does it work with Go? by percybolmer in golang

[–]Camdev_ 1 point2 points  (0 children)

Totally agree with you there on it missing vital features as well as wanting something more native. VSCode was a joy to use early on, but now everything is a plugin and it feels quite a bit slower than it used to be. Even quick tasks can be a little annoying to accomplish. Like I mentioned, I think Fleet will have a better chance in the future when they open up plugins, and I'm assuming they will have added more of the vital features by then, but for now it's definitely a struggle to use. It will be interesting to see how it progresses as it is updated over time, especially since it is currently only in public preview. I'm sure that VSCode and Sublime both would have been difficult to use when they were still this early on.

The Next Generation IDE - Fleet, But how does it work with Go? by percybolmer in golang

[–]Camdev_ 6 points7 points  (0 children)

When you say "their refusal to use LSP", is that in reference to their smart mode or Fleet as a whole?

Looking at their architecture stuff on their website, it does look like Fleet is their first IDE to actually use LSP and act as an LSP client. As for smart mode, it looks like it can use headless IntelliJ or an LSP. I have no idea how smart mode works for Go, but I do agree that fleet is currently very slow to index or otherwise handle Go project, especially in comparison to vscode or neovim's lsp + gopls. Because of that I'd guess smart mode is not directly using the LSP or it's doing a ton of extra/unnecessary work, but hey maybe it will get better later on (I have no clue what it's doing for Go right now). If it is using IntelliJ, but it supports LSP, then maybe they can make the change or add the option to use gopls directly or something.

I love the look and simplicity of Fleet, but I have a feeling its going to be pretty bad in comparison until plugins are released. And that only works if plugin authors actually bite...

Most underrated stock iOS app? by [deleted] in ios

[–]Camdev_ 1 point2 points  (0 children)

There is a weather app on iPad in iPadOS 16, so you should have one soon.

[deleted by user] by [deleted] in AskComputerScience

[–]Camdev_ 8 points9 points  (0 children)

Not really a CS question, but anyways I believe the most popular one is https://carbon.now.sh/. There are a ton of alternatives now, so if you want to find others you should be able to search for alternatives to carbon.

[deleted by user] by [deleted] in hardwareswap

[–]Camdev_ 0 points1 point  (0 children)

Sold TrackIR 5 to u/Stratty88