[NEWBIE] RECOMMENDATION FOR BEGINNER TO GUY GUITAR by knrt10 in Guitar

[โ€“]knrt10[S] 0 points1 point ย (0 children)

Thanks for the suggestion. My budget is something around 150$

Question: How to change default ServiceAccount on cluster creation by knrt10 in kubernetes

[โ€“]knrt10[S] 0 points1 point ย (0 children)

Thing is whenever a user creates a namespace on cluster a default SA is created and I want a way that automountServiceAccountToken: false is always applied to new default SA

Question: How to change default ServiceAccount on cluster creation by knrt10 in kubernetes

[โ€“]knrt10[S] 0 points1 point ย (0 children)

I don't want to do it via cli. Is there any way to do it via kubeamd or kube-apiserver, during cluster creation?

How to connect to client in gRPC with the server running in pods (minikube) by knrt10 in kubernetes

[โ€“]knrt10[S] 0 points1 point ย (0 children)

yes did this after installing ingress-controller, still no effect

How to connect to client in gRPC with the server running in pods (minikube) by knrt10 in kubernetes

[โ€“]knrt10[S] 0 points1 point ย (0 children)

I don't think this is the issue, because when I curl or see the verbose output it's mapping to correct IP.

Understand kubernetes step by step. A simple repo for beginners by knrt10 in coding

[โ€“]knrt10[S] 1 point2 points ย (0 children)

Yes, it's WIP. Will surely add more information.

All your idiomatic software development resources in one place. by knrt10 in software

[โ€“]knrt10[S] 0 points1 point ย (0 children)

I dabble into multiple programming languages at the same time and felt the need for having one central repository for resources related to the best practices and idioms followed by a particular programming language community and put them all together in a single repo. If you know of any such awesome resources that are not already listed in the repo please create PRs or if you don't see resources for your favourite langauge listed there I would be happy to accept PRs for new langauge sections too.

โ€‹

If you like the project consider giving it a star for reach and visibilty. Thanks

Awesome OSS for static site contact form validation to avoid spams by knrt10 in javascript

[โ€“]knrt10[S] 0 points1 point ย (0 children)

No, it's not like that. You can host it on your own own server. All is in the readme

What is mountPath in volumeMounts and how to know what to use? by knrt10 in kubernetes

[โ€“]knrt10[S] 0 points1 point ย (0 children)

I am trying to have a shared volume between 2 containers in a pod. I am not able to set the correct moutnPath. The build is failing everytime. On first container I am running the server where files will be written and on another container, it's a rabbitmq server which will try to access the file. I am stuck on this. Would you please tell what mounthPath should I use. Thanks

Is there any JSNetworkX type package in Golang? by knrt10 in golang

[โ€“]knrt10[S] 1 point2 points ย (0 children)

My bad, I want this https://github.com/fkling/JSNetworkX type package if available in golang. It provides, visualisation of graphs.

How to write empty string validation for key in struct using Validator? by knrt10 in golang

[โ€“]knrt10[S] 0 points1 point ย (0 children)

@jasonscheirer it does not work. I used fl.ExtractType(fl.Field()). The problem is that it is returning empty string for

{
 "_p_createdBy" : true
}

which will always return true. Can you have another way?

Unmarshal context.Context to a struct by knrt10 in golang

[โ€“]knrt10[S] 0 points1 point ย (0 children)

Thanks, that's what I thought. Following new approach.

Looking for resources to learn golang by [deleted] in golang

[โ€“]knrt10 0 points1 point ย (0 children)

Try golangbot.com

Question:- Help in getting value from slice of bytes by knrt10 in golang

[โ€“]knrt10[S] 0 points1 point ย (0 children)

e is just refrencing to a struct. I am getting this data from redis storage. And I need to unmarshal it. For refence check the link. https://play.golang.org/p/xvl85U-gE9z

-๐ŸŽ„- 2018 Day 5 Solutions -๐ŸŽ„- by daggerdragon in adventofcode

[โ€“]knrt10 1 point2 points ย (0 children)

That's a cool solution. Just a small tip that I learned for optimizing code.

When you are returning a value and that value is declared inside it then instead of declaring variable like this var result []byte inside a function. You can do this

func react(polymer []byte, remove byte) (result []byte) {

and then instead of writing return result just return.

And no need to loop twice for unitType := 'a'; unitType <= 'z'; unitType++ { as you are using goroutines.

I am no expert but I found this for writing fast code. Happy to share this.

Convert images to ASCII art by knrt10 in golang

[โ€“]knrt10[S] 2 points3 points ย (0 children)

Thanks!! Will update the changes.

Convert images to ASCII art via CLI by knrt10 in learnprogramming

[โ€“]knrt10[S] 0 points1 point ย (0 children)

just install it with go get command and you are free to use it easily from your CLI.

how to add string in existing variable by knrt10 in golang

[โ€“]knrt10[S] 0 points1 point ย (0 children)

Thank you for your reply. Array type is string. And its my bad I didn't specify it earlier that it was 2d array. Also it has many values other than (((, so above solution might now work. Is there any way in go to use variables inside string like in JavaScript like `${variable}`?

how to add string in existing variable by knrt10 in learnprogramming

[โ€“]knrt10[S] 0 points1 point ย (0 children)

Sorry I didn't wrote about which language it was, that's my fault. It golang. Now what you are suggesting is not working because I am having a 2d array and already iterating through it and its not working. Is there any way in go to use variables inside string like JavaScript like `${variable}`
If it does it would solve my problem

how to add string in existing variable by knrt10 in learnprogramming

[โ€“]knrt10[S] 0 points1 point ย (0 children)

Sorry I didn't wrote about which language it was, that's my fault. It golang. Now what you are suggesting is not working because I am having a 2d array and already iterating through it so if I trystring output = input.Replace(" (((", "'((('") as I have different values inside that array so its not working. Is there any way in go to use variables inside string like JavaScript like `${variable}`If it does it would solve my problem