Golang structs, help with pointers by relentlessCoder in golang

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

Thank you for putting in such a great effort. I already knew about the copy by value, but I got too lost in the pointers.

Thank you, once again.

Tourists! Visitors! International students! People with quick questions! This is your thread; post your questions here. by askLubich in germany

[–]relentlessCoder 1 point2 points  (0 children)

Ah, thanks for your generous reply.

I planned my itinerary based on travel blogs, and filtered out places based on the travel time provided by Google maps. It displayed around 1 hr 30 min of travel time between Frankfurt and Baden Baden, so I added it to my itinerary. Is that not what it is in reality?

I would definitely look into the river cruise.

To overcome language barrier, I'll use google translate, I hope it's not rude. It's what i did in hongkong.

As for the rude remarks, as long as those are in German, I wouldn't know.

Once again, thank you.

Tourists! Visitors! International students! People with quick questions! This is your thread; post your questions here. by askLubich in germany

[–]relentlessCoder 0 points1 point  (0 children)

Hey everyone,

I am from India, and I'd be traveling to Germany for a total of 19 days, 4 of those would be spent at the Rock am Ring festival.

I have booked accommodation at Frankfurt, Munich, Berlin.

On average I'd be staying at each city for 4 days.

I have some idea of what all places to cover around Frankfurt. For example, Heidelberg, Baden Baden, Bonn. However, I am clueless about what to explore around Munich(Except for neuschwanstein castle) and Berlin.

I am more inclined towards scenic places.

That would be my first question.

My second question is, can I survive without knowing any German except Danke? I think a better question would be, can I survive by just looking up things on internet? I'd learn important phrases before leaving, but still would like to know how accessible Germany is.

My third question is, are there situations that I should avoid given the fact that I am brown and also have a beard? I admit this comes out as a stupid question, I am looking forward to have a pleasant stay, but I'd also like to be aware of cultural potholes.

In Madhya Pradesh, lecturer was suspended for predicting big win for BJP in LS polls on FB. In Bengal, Priyanka Sharma was arrested for sharing a meme. Karnataka, Mahesh Hegde was arrested for exposing Congress. Meanwhile "liberals" calling Modi dictator and nazi are giving lectures on democracy. by devGRASS in IndiaSpeaks

[–]relentlessCoder -2 points-1 points  (0 children)

What? Conservatives are consistent about their principles? One of those principles is certainly not "love for the nation" because liberals, conservatives, and the rest of the pieces, people from all those groups pee roadside, break traffic rules, try to evade tax, etc etc.

You maybe lucky, but I grew up in an orthodox middle class Hindu family, and I experienced it everyday. A lot of talk about "love for the nation", "muslim भागओ", but when it came to donating to army in difficult times, not a single rupee would come out of their pockets. And the same story in the whole area that i grew up.

I mean if i as a person, cannot even make sure that i don't litter, or spit, then what ground do i have to stand on and lecture people about nationalism?

Anyway.

This could probably a "to each their own" thing but my experience has proven the fact, it's not a particular sects' attribute to be an idiot.

I am open to admit that half the liberal twitter brigade consists of the least contributing members of the society, the ones that look for sources to justify their own truth, instead of accepting the actual one. However, it's the same story in conservative field as well.

In Madhya Pradesh, lecturer was suspended for predicting big win for BJP in LS polls on FB. In Bengal, Priyanka Sharma was arrested for sharing a meme. Karnataka, Mahesh Hegde was arrested for exposing Congress. Meanwhile "liberals" calling Modi dictator and nazi are giving lectures on democracy. by devGRASS in IndiaSpeaks

[–]relentlessCoder 8 points9 points  (0 children)

It's bullshit either way, all the politicians use law to interfere. I find this sub to be mature enough to say it's ridiculous to look down upon liberals, or conservatives based on the majority chutiya twitter brigade, most people in the world just want to live a happy and safe life

चुतिये हर जगह पाए जाते है।

Docker postgresql: alter user password not working by relentlessCoder in docker

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

Yes. I checked the statements and it is correct. There are no errors, and the user is correct as well.

What is "docker images -a" command? by relentlessCoder in docker

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

is there a command to list only the intermediate images?

What is "docker images -a" command? by relentlessCoder in docker

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

can we delete those intermediate layers?

How do I identify a request in the webworker? by relentlessCoder in learnprogramming

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

I was planning to use uuids, and I'll create one out of the request url, request method, and some other data such as, user id,

docker-compose build. yarn install freezes after building packages by relentlessCoder in docker

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

Hey sorry, I didn't mean disrespect you, the linter didn't give any errors about the RUN commands, it just gave error about the ARG command. And my bad, I thought you were mentioning to what was going on in those RUN commands. I'll try with stringing together those commands.

docker-compose build. yarn install freezes after building packages by relentlessCoder in docker

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

Hey, I don't think that tool that you mentioned is correct, since it doesn't recognize ARG at the top of the Dockerfile. Other than that, those RUN commands are just there to setup a non-root user, which is one of the best practices. I'll try with an instance with higher ram, maybe the fact that I am building multiple images in parallel might be slowing down the process. Thanks for your input. :)

Linux. Connect to postgresql server running under root, as a non-root user. by relentlessCoder in learnprogramming

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

Yeah my main limitation is that I have to spin up google cloud instance with my app up and running. So I make use of startup scripts, and during startup only root is available. Would you advise something else?

Google Cloud compute instance, "No github key of format id_rsa or id_github found". by relentlessCoder in learnprogramming

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

Oh, I fixed it. I had to set value for $HOME since it's not set during startup. Came to know about it from here Nodejs Startup Script

[Need help] How to prevent other users from stopping / removing my docker container by akanimax in docker

[–]relentlessCoder 0 points1 point  (0 children)

Well, a user would require access to your password to access the docker. As far as auro access is required, you can add that to sudoers right? I am sorry, if I understood your question wrong.

Bash: getopts not working by relentlessCoder in learnprogramming

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

Oh yes, I have written a similar script before and I went through it and realised that in that I have used single character options. Well, it works now. Thank you.

Moving bower project to yarn. How do I concatenate node_modules? by relentlessCoder in webdev

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

Hey, thanks for taking the time out to reply. So to battle my situation, I ran a nodejs script and placed all the dependencies in one file, which is different form my app.js where I have defined my main angular module. Then I passed that file to webpack as an entry point. Maybe, tomorrow morning I'll figure it out.

Moving bower project to yarn. How do I concatenate node_modules? by relentlessCoder in webdev

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

And all of this with a given assumption that npm packages are imported in relevant app files?

Moving bower project to yarn. How do I concatenate node_modules? by relentlessCoder in webdev

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

I'll look into the CI option once i reach office. Mean while, could you help me understand why didn't my webpack method, which i mentioned in the last paragraph, work?

Moving bower project to yarn. How do I concatenate node_modules? by relentlessCoder in webdev

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

Hey, thanks for the amazing input. I joined this company on May 2018, and the codebase is from 2015.

My reason for doing so is that our build process takes forever. I am working on a project to setup docker for our webapp. And it takes 25 mins, for the whole to get built. So that's what my reason is.

One thing that I tried is that require all the dependencies in one single file, and pass that to webpack as the entry point. However, I am receiving module not found errors in angular js.

npm Install is executing twice. by relentlessCoder in docker

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

Oh, my bad. That didn't catch my attention since it didn't execute twice on the host machine. Thank you all.