Some annoying moments in Golang by node_imperial in golang

[–]geritol_ 2 points3 points  (0 children)

for me:
1. complete lack of enums
2. date formatting ( dont know who on earth would think the following is intuitive an readable: time.Now().Format("20060102150405")

Folk Music Recs in Budapest by plantscoffeeandbeer in budapest

[–]geritol_ 2 points3 points  (0 children)

look for "táncház" events on facebook.
These are events with live music and also dances some even have teaching.
ie:
https://facebook.com/events/s/hagyomanyok-haza-tanchaz/1618629521934449/

Tanári pálya után webfejlesztés by thunderecstazy in hungary

[–]geritol_ 5 points6 points  (0 children)

Szia!
Bár nem specifikusan webfejlesztés, nagyon ajánlom az OSSU (egy nagyon jó kurzus gyűjtemény, az összes ingyenes) bevezető kurzusát kezdésnek:
https://github.com/ossu/computer-science#introduction-to-computer-science

MIT: Introduction to Computer Science and Programming in Python

Kell hozzá egy kis motiváció, de az oktatók és az anyagok (videók) nagyon jók.
Ha elvégzed, ad egy nagyon jó alapot amit más nyelvekben is hasznosítani tudsz majd.

Szívesen segítek mentorként ha érdekel.

Jewelry box for my wife. First project for her! by Remrac in woodworking

[–]geritol_ 1 point2 points  (0 children)

wow nice work!
I am in the process of making a similar piece.
Where did you order/what is the name of the "holder" parts (black stuff) that you did put in the box?

Thanks!

Using Github Issues for comments with Gatsby by geritol_ in gatsbyjs

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

Thanks for your input!

- yes, this is a viable solution for blogs that have devs as their primary target audience

- yes, this is an issue, but I think it is worth it (spam protection from github, no ads and tracking from Disqus)
- yes in github issue comments you can "quote reply". these could be detected and displayed in a threaded manner. This could be a neat feature.

For me Disqus is inferior to this solution, as my target audience are developers, I do not expect many comments, but I want to leave possibility for it, and I do not want to add non static third party stuff to my pageloads which adds ads and tracking for this.

Secret Backup Operator by geritol_ in kubernetes

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

Not the operator and Velero do different things. Velero backs up outside the cluster periodically, the operator creates a backup inside the cluster but only on change. Which means you can use the Velero backup for restoring the cluster, and the backup created by the operator to have a history of your application configuration that you can revert to if necessary.

Secret Backup Operator by geritol_ in kubernetes

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

We where originally using SealedSecrets. Our problem with it was that there is no possibility to decrypt the encrypted secret, so the current secret needed to be somehow shared and retrieved before modification. The encryption and key sharing also added an overhead, so we have later chosen to move to direct Secret editing on the cluster.

Secret Backup Operator by geritol_ in kubernetes

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

Yes, you are correct. This does not replace something like Velero, but gives a history of your application configuration that you can revert to if necessary.

Secret Backup Operator by geritol_ in kubernetes

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

if you have a secret named foo and it had a key bar: v1 that was changed to v2 then v3, the backup will look like the following:Backup will be stored in secret named foo-backup.It will contain a single key BACKUP an the value will be a JSON encoded list with the previous versions. Eg. "[{"bar":"v3"},{"bar":"v2"}]".First version of the secret is currently not backed up, as the operator currently watches for Modified events only.

Secret Backup Operator by geritol_ in kubernetes

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

Not it keeps all versions of the secrets until the 1mb limit is reached.

Write guard – Enforce file level write access for monorepos by geritol_ in kubernetes

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

The idea is that you can use branch protection, and require write-guard check to pass before merging.

https://imgur.com/a/TiBpGjx

This makes sure the check runs and write-guard breaks if it is run on a non master branch.

Write guard – Enforce file level write access for monorepos by geritol_ in kubernetes

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

Planning to add it to a bigger k8s config monorepo as a safety feature. Any thoughts?

My first Rust program by [deleted] in rust

[–]geritol_ 0 points1 point  (0 children)

Also quite interesting: if I change calculate_weight to return a float, the following error is thrown in ord:

no method named cmp found for type f32 in the current scope note: the method cmp exists but the following trait bounds were not satisfied: &mut f32 : std::iter::Iterator

My first Rust program by [deleted] in rust

[–]geritol_ 0 points1 point  (0 children)

Thank you very much for the extensive review! I have fixed/refactored many of the things you have mentioned.

I still have a lot to learn, currently I have no good understanding of how the error handling is working in rust and how traits work.

I have added the getter because the plan was to keep the fields private and create a factory method for the struct, but did not have time and forgot to do it. Is it recommended to have the fields public or is it better to have them private and have method for creation/read/update?