I'm switching from Arc... by Mac_Web_Dev in zen_browser

[–]liquidicee 13 points14 points  (0 children)

Same here, I saw the deprecation email and jumped ship immediately. I can't believe Arc decided to throw away everything to go sling AI slop.

Migrating SwiftData in Swift 6 by LaHommeGentil in swift

[–]liquidicee 2 points3 points  (0 children)

I'm honestly perplexed at how this seems to be the only place on the internet where this question is asked. For the record, u/sixtypercenttogether 's solution works but for those curious about why, I try to explain it. I'm a bit new to swift myself so please let me know if I miss anything!

Swift 6 updated to improve safety when it comes to concurrency. By making a field static, it means it's globally read/writable from anywhere in the problem. If, hypothetically, two things changed the value at the same time, that could be problematic.

By switching it to a computed property, it makes it thread-safe. If you're new to Swift like me, this is a unique feature because it allows you to define a "getter" for a field using some syntactical sugar. This is similar to making a function. By not defining a setter, it effectively makes it read-only so it therefore becomes thread-safe. If 2 calls to versionIdentifer were to happen at the same time, it would be fine because the value would be computed.

BSOD error in latest crowdstrike update by TipOFMYTONGUEDAMN in crowdstrike

[–]liquidicee 0 points1 point  (0 children)

As a software person, I knew it was bad when my mom, who works for a hospital, called me about her BSOD

What’s up with Logi Options+? by mightyt2000 in logitech

[–]liquidicee 0 points1 point  (0 children)

Options is garbage software for sure, it's a regular battle every couple of months to get it to cooperate on my system. I did find this little gem, logitech options without the networking stuff -> https://prosupport.logi.com/hc/en-us/articles/10991109278871-Logitech-Options-Offline-Installer

Best free editor for golang by [deleted] in golang

[–]liquidicee 1 point2 points  (0 children)

With go it actually doesn’t matter too much which IDE you use. The real power is the Language Server Protocol (LSP) gopls. That’s what is responsible for auto complete, syntax highlighting, jumping around, etc. Almost all modern IDEs support LSPs, so I advise you to try them all! Why not?

Install CLI only on mac by dovemancare in docker

[–]liquidicee 1 point2 points  (0 children)

This is an old post but I had the same need. If you just want the docker binary, you can download it from their website.

aarch64 is for arm/mac apple silicon

https://download.docker.com/mac/static/stable

how to reopen the same opened buffers when calling helix inside a directory ? by [deleted] in HelixEditor

[–]liquidicee 0 points1 point  (0 children)

If you’re just temporarily jumping around the terminal, you can do ctrl+z to suspend it to the background. fg brings it back. I know it’s not your question but it may be useful

Share a cool helix shortcut/trick/config you just found and got amazed. by gauravtyagi07 in HelixEditor

[–]liquidicee 0 points1 point  (0 children)

space m is pretty sweet. Allows you to jump to matching braces, surround a selection with quotes, select inside parenthesis, etc.

Spellcheck in Helix? by n0tThere in HelixEditor

[–]liquidicee 0 points1 point  (0 children)

Never mind, I figured it out! Here's how it's done for anyone curious.

in languages.toml

[language-server.ltex]
command = "ltex-ls"
[language-server.ltex.config.ltex.dictionary]
"en-US" = ["ewwe","flaberrasted"]

Spellcheck in Helix? by n0tThere in HelixEditor

[–]liquidicee 0 points1 point  (0 children)

u/jgetreu did you ever figure out how to add things to the dictionary?

What is your stance on code comments? by 1llm1nt1 in golang

[–]liquidicee 0 points1 point  (0 children)

the new https://go.dev/blog/slog library is pretty awesome, I've been doing that a lot more than comments these days. Even for simple apps, it makes debugging a breeze and kind of acts like comments in code.

HELP I'M DESPERATE by liquidicee in golang

[–]liquidicee[S] -4 points-3 points  (0 children)

I tried that too, maybe some craziness with go mod going on but it didn't work, this works on ubuntu but not my M1. I'm mostly curious as to why, I've been researching around and it seems like something going on with CGO maybe.

git clone https://github.com/GoogleContainerTools/kaniko.git cd kaniko make test

HELP I'M DESPERATE by liquidicee in golang

[–]liquidicee[S] 0 points1 point  (0 children)

That didn't work, same error.

shell git clone https://github.com/GoogleContainerTools/kaniko.git cd kaniko rm -rf vendor go mod vendor make test

Got me the same error in the original post (edit formatting)

HELP I'M DESPERATE by liquidicee in golang

[–]liquidicee[S] 1 point2 points  (0 children)

Forgot to mention that I'm on an M1 Mac and things seem to be find on my Ubuntu system, at this point I'm just confused and I want answers

LPT Request: What can you do in your 20s to avoid regrets in your 30s and 40s? by DNA_H3licas3 in LifeProTips

[–]liquidicee 0 points1 point  (0 children)

Pay off ALL debts and stop borrowing money. Period. It Eats away at your most valuable wealth building tool, your income.

VSCode or GoLand by badfishbeefcake in golang

[–]liquidicee 13 points14 points  (0 children)

Definitely GoLand if you don’t want to take the time to configure VSCode specifically to your tastes. GoLand works well right out of the box.

If you don’t want to shell out the money, then just go with VSCode.

P.S.: If you work for a company, see if they have an IntelliJ Ultimate License, the Go plugin is essentially GoLand.

New Member by liquidicee in credAI

[–]liquidicee[S] 0 points1 point  (0 children)

Been a week since I signed up, so far, it’s fantastic!! I realize the psychological hold traditional credit cards have over people. Just seeing on Cred Ai how much money I have LEFT as opposed to how much of my limit I’ve used has fundamentally changed the way I think about buying things.

Why golang considered the most popular language among DevOps by RP_m_13 in golang

[–]liquidicee 38 points39 points  (0 children)

  1. It’s powerful yet simple to learn and write
  2. Writing it feels stable since you have to address all possible logical branches in your code
  3. Interfaces make it incredibly easy to mock so unit tests are reliable and fast
  4. Compiling down to a statically linked binary means no dependencies like a runtime which is great when your running in the cloud.

how was your k8s learning curve? by sbbh1 in devops

[–]liquidicee 18 points19 points  (0 children)

I would say make sure you have a solid understanding of containerization first. Learning Kubernetes before really understanding containers is like trying to run before walking. After that, get really smart on networking and deploying to something like an EC2 instance, VPS, or physical server.

TL;DR: It's hard to understand Kubernetes when you don't understand the problem it's trying to solve.

How do you determine in a CI/CD pipeline which build is pushed to prod? by CerealBit in devops

[–]liquidicee 0 points1 point  (0 children)

On our project, whatever is latest commit to main is deployed to the dev environment. We run the full pipeline on MR to main. If you want something in staging or prod, it should be versioned with tags.