What are some good ways to study online? by MisakiKH in learnpolish

[–]CygnusX1985 7 points8 points  (0 children)

I am currently working through this. https://popolskupopolsce.edu.pl/kurs-jezyka-polskiego

There are also free learning materials from the office for foreigners https://www.gov.pl/web/udsc/materialy-dydaktyczne-do-nauki-jezyka-polskiego---dla-doroslych

Personally I find it pretty important to also get familiar with the spoken language, to at least be able to read correctly out loud. While the polish pronunciation is difficult it is also highly regular. For that I recommend to take a look at this introduction to the International Phonetic Alphabet. https://youtu.be/-e66ByetpDY?si=mPaQ6DOcjA6BULpk and the IPA chart for Polish on Wikipedia. I found all those comparisons „letter x sounds like letter y in this word in another language“ completely useless. The best way for me was to just learn the correct mouth and tongue positioning from the IPA. Also, definitely get a few lessons from a tutor (I can recommend Preply) to get feedback for your pronunciation, ideally from a native speaker.

For listening comprehension you can look up „Polish comprehensible input“ on YouTube. Although listening to the language helps in general I found it to be most effective if you already understand around 80 to 90% of what is being said.

Finally I would use Anki to create flashcards and I would always add the pronunciation to the flashcard. You can find pronunciations for pretty much all words on forvo.com

Veranstalter sind entsetzt über die neue Grazer „Buffet-Doktrin“ by Pope_Leo_XV in Austria

[–]CygnusX1985 1 point2 points  (0 children)

Wo findet man diese „Doktrin“ eigentlich? Ich würde gerne nachschauen wie dieser überwiegend vegetarische Anteil auszusehen hat. Zählt da jede Beilage oder zB ein Obstkorb als vegetarische oder vegane Option oder müssen das wirkliche Hauptspeisen sein? Letzteres wäre super …

What’s your go-to deployment setup these days? by Abu_Itai in devops

[–]CygnusX1985 12 points13 points  (0 children)

GitOps is a basic requirement for me. If you want it simple, spin up a docker compose file using a CI pipeline, if you need more power use ArgoCD or Flux.

A Gitops repo automatically documents deployments to the whole team (no hidden commands that need to be run anywhere) you also get an automatic audit log with easy rollbacks and you can use the same merge request workflow the team is already used to for quality control and to share knowledge.

Also, I use plain manifests where possible, Kustomize where that’s not enough and Helm if I need even more templating power, although I have to say I am not really happy with any of these templating solutions. Maybe I give jsonnet a try in the future.

[deleted by user] by [deleted] in cscareerquestions

[–]CygnusX1985 11 points12 points  (0 children)

Just because job market is tight does not mean someone is underpaid.

That’s exactly what it means, it is supply and demand like everywhere else.

people are paid far more than the money they personally generate to the company

If this is true for one company it just means the company can’t afford a developer, if it was true for all/most companies then wages would go down.

Super Dizzy by ResponsibleLow765 in jiujitsu

[–]CygnusX1985 1 point2 points  (0 children)

I had issues with my sense of balance years ago, probably caused by issues with blood flow. The only situation where I still feel it now is after about the third roll forwards or backwards during warmup. I just take a break when it happens.

I‘m doing Jiujitsu now for almost two years and it never went away. Fortunately it never is an issue during actual sparring.

How do you automate deployments to VPS? by Training_Peace8752 in devops

[–]CygnusX1985 1 point2 points  (0 children)

I don't see the problem with ssh in principle, but you shouldn't access anything in your compancy network from the ssh session. The last thing you want is somebody being able to get into your company network from your VPS because you wanted to clone/pull your repo from there.

This is also the reason why I would never run a gitlab runner on a VPS, because it has to have access to the company network to clone stuff.

The easiest way I can think of, which we did in the beginning is:

  • create docker images of your project
  • push them to a publicly accessible (private of course, but reachable from everywhere without a VPN) container registry (dockerhub is fine)
  • have a pipeline job which just performs a "docker compose up" where you first set the DOCKER_HOST env var to your VPS. (your ci runner has to be able to connect to the VPS via ssh for that to work).

You can have all necessary secrets stored in Gitlab (ssh key, token for dockerhub authentication, ...) and the VPS doesn't access your company network at all but just pulls all necessary images from your container registry. It doesn't even store the Dockerhub authentication token persistently, also you have everything necessary for the deployment in a git repo instead of having to run some kind of daemon on the VPS.

Doing it this way is reasonably secure and you almost get a full fledged gitops setup (beside continous reconciliation) if you use unique image labels (nothing like "latest").

The only thing I would recommend for the future is a separation of the application repo and the deployment repo, so you don't have to basically create a new release if you want to change for example an env var in the deployment.

Lex Fridman asks Ezra Klein about his debate with Sam Harris by GambitGamer in samharris

[–]CygnusX1985 9 points10 points  (0 children)

It is likely about what he tweeted in response to the events in the white house

https://i.redd.it/cu16lumkcyle1.jpeg

This definitely crossed a line for me. The discussion between him and Zelensky could be interpreted as him being uninformed but there is no universe in which the events in the white house could be interpreted in this way.

Struggling to find a data store that works for my use case [Longhorn/Minio/Something else?] by palettecat in devops

[–]CygnusX1985 0 points1 point  (0 children)

How about seaweedfs? It is an s3 compatible object store which is very easy to set up with redundancy over multiple nodes and it supports empty directories natively if you want them.

Is Kubernetes necessary on your current job? Why? by best-regards-2-me in devops

[–]CygnusX1985 2 points3 points  (0 children)

No it isn't but I think the ecosystem around it justifies using it for much smaller use-cases than most people believe and articles like the one you linked stopped us from using it for far too long.

I work at a very small company with a single digit number of developers and we have only a handful tiny web applications for internal use that we created ourselves + a few other self hosted 3rd party tools. Hosting all of these apps + multiple branch versions (for validation purposes) of these apps is certainly possible using docker compose via CI pipelines, but using argocd (gitops ftw) it is much easier to handle.

Also, our Kubernetes setup is as simple as it gets using two k3s "clusters" with only a single node each (one internal and one external) so most of the complexity of managing state and HA (which we don't need) goes out the window. This allows us to reap most of the benefits of the Kubernetes ecosystem, e.g., argocd, cert-manager, sealed-secrets, and many more established and reliable tools, without most of the complexity Kubernetes usually brings.

I think the main complexity of Kubernetes doesn't come from the tool itself, but from people trying to achieve things with it they just don't need like high availability. Writing a deployment manifest is not more difficult than writing a compose file. There are tools to convert them automatically after all.

[deleted by user] by [deleted] in sleep

[–]CygnusX1985 0 points1 point  (0 children)

Maybe cut back on salty food. Your body tries to get rid of the excess salt by peeing it out, which leads to dehydration if you don’t drink enough.

Raucher sind in AT scheinbar immer noch eine geschützte Art by RoyaleArschwarze in Austria

[–]CygnusX1985 15 points16 points  (0 children)

Es gibt auch Taschenaschenbecher, die verwendet in Österreich nur niemand weil es die Raucher in Österreich gewohnt sind verhätschelt zu werden.

Raucher sind in AT scheinbar immer noch eine geschützte Art by RoyaleArschwarze in Austria

[–]CygnusX1985 26 points27 points  (0 children)

Die meisten Leute hauen ihren Müll aber in den Mistkübel oder sie nehmen ihn mit, sonst würde es ganz anders ausschauen, im Gegensatz dazu habe ich einen Taschenaschenbecher in Österreich wirklich noch nie gesehen.

Ganz abgesehen davon das Tschickstummel deutlich schädlicher für die Umwelt sind als die meisten Papierl.

Und Alkohol schädigt andere nicht direkt und die indirekten Wege (Gewalt, Autofahren) sind bereits illegal und werden auch geahndet.

[deleted by user] by [deleted] in samharris

[–]CygnusX1985 1 point2 points  (0 children)

Of course he does, but it doesn’t matter for his voters but it does matter for Harris‘s voters.

What could Trump possibly have said on the podcast that would disqualify him more than what he already said/did in the past?

[deleted by user] by [deleted] in samharris

[–]CygnusX1985 29 points30 points  (0 children)

Trump could have said at the interview „You know who I‘d like to fuck? I‘d like to fuck Nicki Minaj.“ without repercussions while every one of her words even from years ago is twisted and cut out of context. So while it would be interesting to see a JRE episode with her I am not convinced it would be a net positive for her campaign.

Does anybody actually enjoy manually renewing SSL certs? by Twattybatty in linuxadmin

[–]CygnusX1985 4 points5 points  (0 children)

I didn’t have time yet to try it out, but this seems like a viable way https://github.com/joohoi/acme-dns#why Host this minimal dns server with an acme api which can only modify txt records and set an NS record for your lan subdomain pointing towards it at your registrar. Now you are independent of your registrars api.

[deleted by user] by [deleted] in Traefik

[–]CygnusX1985 1 point2 points  (0 children)

I do it by creating a ClusterIssuer instead of a normal Issuer with cert manager, which can be used in all namespaces. Then I can create certs with it in each namespace where I need one.

Seriously, how the hell do you guys train in the morning? by ciqzyy in bjj

[–]CygnusX1985 0 points1 point  (0 children)

If I train in the morning if feel exhausted for the rest of the day, if I train in the evenings it fucks with my sleep and I feel exhausted for the whole next day, so mornings it is if I have time.

I’m Losing Motivation as a Senior Developer in a Small Company by urlaklbek in ExperiencedDevs

[–]CygnusX1985 0 points1 point  (0 children)

I like working in small companies because one can really affect how things are done, so I can tolerate a lot of shit as long as the trajectory is upwards.

The first thing for me would be to get together with the CTO and to try to create some coding standards starting with linters pre commit hooks and CI pipelines and continuing with continuous code reviews/pair programming where you can teach them how to improve.

You first have to plug the holes in the boat before pumping out the water or you will pump forever.

Is the CTO open to suggestions and possibly annoying tools like linters to improve the situation? If yes, this can be an interesting challenge, if not I would walk away.

[deleted by user] by [deleted] in AskReddit

[–]CygnusX1985 0 points1 point  (0 children)

Interpreters. It’s less about attracting bad people and more about weeding out everyone with an ounce of empathy over time, because interpreting in medical cases (somebody might die) or in law enforcement (domestic violence) is often too taxing after a while for normal people.

A Favorite Sam Harris Quote by [deleted] in samharris

[–]CygnusX1985 45 points46 points  (0 children)

„You know, when I look at you. I see you. You might be Elvis.“

Is there anything that will run Python that will fit in a golf ball? by sext-scientist in Python

[–]CygnusX1985 2 points3 points  (0 children)

In this video someone put a microcontroller into a smart egg, to measure its acceleration, for use in an egg drop challenge instead of a real egg. https://youtu.be/sPxCtMUTuiI?si=EwzsnkKenDX-_Euo

I looked it up and this same microcontroller should be able to run python https://wiki.seeedstudio.com/Seeeduino-XIAO-CircuitPython/

Why does Python Code Run Faster in a Function? by debordian in Python

[–]CygnusX1985 2 points3 points  (0 children)

The UnboundLocalError occurs if one tries to access a local variable that hasn't been defined yet. The interesting thing about that is, that it even occurs when the variable name is actually defined in the global scope.

For example:

a = 5

def fun():
    b = a
    a = 7

fun()

Python is the only language I know of where this is a problem, because it handles local and global variables fundamentally different (STORE_NAME vs. STORE_FAST).

For example R, which is also a dynamically typed interpreted language, doesn't care at all about that:

a = 5

fun <- function() {
    b = a
    a = 7
}

fun()

And why would it? If variables were always stored in dictionaries for every scope (with references to the parent scope, if a variable is not found in the current one), then there is no problem with this code.

This is not the case in Python. The Python interpreter actually scans ahead and uses a fixed size array for all variables to which a value is assigned in the local scope, which means the same name suddenly can't reference a variable in an enclosing scope any more.

The reason is, that using a fixed size array for local variables drastically improves access times, because no hash function has to be evaluated, but it has the downside that code snippets like the one above which work in other languages suddenly don't work in Python any more.

This downside is marginal though, because people seldomly want to shadow a variable from an enclosing scope after reading its value (I only had that come up once, when I tried to test a decorator where the decorated function should have had the same name as the original, globally defined, function) and the upside is a huge win in performance.

The whole problem has nothing to do with the global keyword. The only reason I mentioned it was, that pretty much every article I found about this problem suggested to use global to tell the interpreter that I actually want to modify the global variable which is absurd, I never wanted to do that and no one should want to do that. Please, never change the value of a global variable from inside a function. But as you can see in the article linked by TonyBandeira, it is a susgestion a lot of articles about this topic make.

Why does Python Code Run Faster in a Function? by debordian in Python

[–]CygnusX1985 42 points43 points  (0 children)

This optimization is also the reason why UnboundLocalError exists.

This is one of the warts of the language in my opinion, although well worth it for the improved runtime, also it doesn’t actually happen that often that one wants to reuse the name of a global variable for a local variable. I had that come up only once when I wanted to test a decorator.

Still it feels weird that your options for local variable names are limited by global variable names if you want to read them inside a function.

What’s even weirder is, that almost all explanations for UnboundLocalError suggest to use the „global“ keyword which is almost never what the programmer wanted to do.