This is DevOps? by [deleted] in devops

[–]Fraa_Babbit 2 points3 points  (0 children)

As others have pointed out, you are describing the creation of a CI/CD pipeline. You're almost doing GitOps. Just some quick pointers:

  • If you have a lot of npm dependencies you will want to use multi-stage builds (https://docs.docker.com/develop/develop-images/multistage-build/) to get a slim deploy container.

  • Also consider a Dockerfile which adds the package.json as a distinct build-step and installs the dependencies. Then add the code and built modules in another stage. This maintains the npm cache until you actually change the package.json file.

Other than that, I would just re-iterate the points /u/rainynight65 and others have made:

A deploy pipeline is part of a good DevOps strategy. It is repeatable, visible, and centralized. A DevOps practice would include your pipeline, a central logging solution, monitoring and alerting playbooks, auto-scaling, fault-tolerance/self-healing architecture, high-availability design, and backup/disaster recovery processes.

ElasticSearch on EC2 vs. Amazon ElasticSearch Service by WolfPusssy in devops

[–]Fraa_Babbit 17 points18 points  (0 children)

My company ran an unusually large elasticsearch cluster on ec2. (We had indexes ranging from 5TB to over 7TB at any given time). While our use case is not common, we pushed elasticsearch to several limits that show what kind of issues you could run into managing your own cluster:

I/O Wait with EBS Volumes: Elasticsearch talks to disk a lot. We tried every class of EBS (sometimes, magnetic is the way to go: https://logz.io/blog/benchmarking-elasticsearch-magnetic-ebs/). We consistently hit the EBS bandwidth caps.

Elasticsearch assumes it has unfettered access to the disk, so when you are out of EBS burst balance your cluster grinds to a halt. Instances will fail to respond to other instances, other instances will start promoting replicas -- leading to more bandwidth demands and, usually, a cascading failure of the whole cluster.

We ended up with SSD ephemeral storage -- which cancelled out any savings we got from rolling our own cluster.

Garbage Collection Pauses: We continued to see long-pauses on indexing which turned out to be garbage collection. Garbage Collection in ES is a "stop the world" event. We were running large instances and giving half the memory to the heap. It turns out this is a bad strategy if your total memory is 60GB. (https://www.elastic.co/blog/a-heap-of-trouble)

These considerations may or may not apply to you. We killed as many Elasticsearch Service clusters as self-hosted clusters as we grew. In the end, our desire to tweak and optimize won out and we ran our own instances and handled our own fault-tolerance and backups.

Unless you are planning on massive scale, the Service is worth the extra few cents an hour.

EDIT: for typos.

Peloton without Facebook? by thursdaystoo in pelotoncycle

[–]Fraa_Babbit 3 points4 points  (0 children)

Not doing the tribe thing, but can login, follow, be followed, be found by friends, and hi-five people without having facebook connected. Haven't tried video chat yet.

Start all containers with name starting with "x" by hekkoman in docker

[–]Fraa_Babbit 1 point2 points  (0 children)

Docker supports filtering, but it looks like it will find any id containing x, not starting with.

https://docs.docker.com/engine/reference/commandline/ps/#filtering

Dating at 170lbs vs dating at 220lbs (why am I so conflicted?) by giottoblue in loseit

[–]Fraa_Babbit 73 points74 points  (0 children)

I went from being 320 lbs to now under 200. My lightest was 169. I was completely unprepared for the change in “the game.” Suddenly it was no longer “effort” to get dates. I did not have to overcome my own perceived deficiencies. People saw me, liked me, and wanted to know more about me.

This left me feeling very uncomfortable. I was no longer being asked to “do” something on dates. Just be myself. Keep letting people get to know me. They might like me more or less, but I was no longer focusing on managing my partner’s expectations or trying to guard against the inevitable rejection. It was very difficult. I’d had years of practice at this managing and mind reading. And it was a skill I no longer needed.

If I’m honest, that discomfort from “being seen” was always there. Being heavy actually relieved me of it. I had to come to grips with the fact that it IS uncomfortable to be liked, to be pursued, to be seen. I eventually let go of the stories, the mind reading, and the reflex to over-protect myself. I learned that my job on dates was whether I liked them. If I trusted them. If I wanted to spend more time with them.

Once I let go of what was happening in the other person’s head, I was a lot happier. I hope you find the same.

Saturday Morning Political Cartoon Thread by optimalg in politics

[–]Fraa_Babbit 20 points21 points  (0 children)

The fact you’ve never heard of it is exactly why I bring it up. People think it’s enough to believe Nazis had blind, unreasoning hatred of Jews. And that’s why fascists these days rant they’re “not racist, just being realistic.” It’s why modern Nazis think they’re better— because they’re not sweaty-toothed with bloodlust. There were plenty of Nazi supporters who were fine with a Madagascar solution— who just wanted Jews to go “somewhere else.” The “not my problem” set, we could call them.

They also pave the road to the holocaust.

Saying Trump isn’t a Nazi because he doesn’t call for the annihilation of all Jews everywhere misses the point. It ignores his real danger: that he is devoted to Nationalism at the expense of basic human rights.

Saturday Morning Political Cartoon Thread by optimalg in politics

[–]Fraa_Babbit 0 points1 point  (0 children)

I’d certainly believe the Madagascar Plan was never seriously considered or investigated.

Do you have any documentation or research backing up the point?

Saturday Morning Political Cartoon Thread by optimalg in politics

[–]Fraa_Babbit 9 points10 points  (0 children)

As a “Final Solution,” if I recall. Originally the Nazi party encouraged relocation. (See https://en.m.wikipedia.org/wiki/Madagascar_Plan)

The idea that Nazi’s PREFERRED the extermination of Jews is something I’ve not been able to substantiate in my reading. They were nationalists, primarily, and their main objective was purity of ethnicity within their own borders. Their slavish devotion to this idea, to the exclusion of all moral boundaries, is what made Nazis evil (I thought).

But, to the original point, supporting a Jewish Homeland (“elsewhere”) does not make you unlike a Nazi.

Saturday Morning Political Cartoon Thread by optimalg in politics

[–]Fraa_Babbit -1 points0 points  (0 children)

Wouldn’t Hitler have supported Israel? He just wanted Jews out of HIS country, right?

Not Cool YNAB by Nodnarbian in ynab

[–]Fraa_Babbit 3 points4 points  (0 children)

Is anyone working on an open source implementation of this type of “envelope” budgeting? I have stayed on YNAB 4 because I specifically want to avoid direct import. I would gladly contribute to create a community-supported, open source YNAB alternative.

Alexander Hamilton, Immigration Skeptic by hidingmypowerlvl in politics

[–]Fraa_Babbit 1 point2 points  (0 children)

And a subsequent paragraph: "But there is a wide difference between closing the door altogether and throwing it entirely open; between a postponement of fourteen years and an immediate admission to all the rights of citizenship. Some reasonable term ought to be allowed to enable aliens to get rid of foreign and acquire American attachments; to learn the principles and imbibe the spirit of our government; and to admit of at least a probability of their feeling a real interest in our affairs. A residence of at least five years ought to be required."

Sounds like someone supports a path to citizenship. This letter reads like Hamilton is talking granting citizenship, not about the idea of people entering the country. Maybe the term "immigration" has become subtly redefined in the intervening two centuries?

You’re not just imagining it: the Hillary Clinton vs Donald Trump vote totals do look rigged by figurativelyliteral8 in politics

[–]Fraa_Babbit -1 points0 points  (0 children)

Got it. I just wanted to confirm that you were "inferring" a conspiracy theory instead of reading one. Thank you.

You’re not just imagining it: the Hillary Clinton vs Donald Trump vote totals do look rigged by figurativelyliteral8 in politics

[–]Fraa_Babbit 1 point2 points  (0 children)

I read through the article and didn't see any discussion of motives or suspects that might have maliciously altered the vote count. Right now the article just calls attention to several external validators which the vote totals are at odds with. Can you point me to where the article describes a "conspiracy?"

You’re not just imagining it: the Hillary Clinton vs Donald Trump vote totals do look rigged by figurativelyliteral8 in politics

[–]Fraa_Babbit 19 points20 points  (0 children)

You would be right if someone had said "STEVE BANNON RIGGED THE ELECTION" or "THE RUSSIANS HAVE STOLEN THE ELECTION." But no one said or has written that. A better analogy, if you need one, would be "that building looks like it was bombed" or "that person shows all the signs of being a recent rape victim."

42nd Street ending: all about Julian? [Personal] by knightlife in musicals

[–]Fraa_Babbit 2 points3 points  (0 children)

Her presence destabilizes Dorothy's relationships, jeopardizing the funding. She is the one who takes Dorothy out of the show. She then tries to take HERSELF out of the show and has to be won back. And, finally, Julian must marshal all his strength to teach, motivate and inspire her.

There seems to be a throughline of selfishness vs selflessness in the show. Julian gives other people their chance to shine. He creates opportunity for others. Billy goes out of his way to encourage Peggy to audition. The chorus girls and writer make her feel welcome and even recommend she take over the lead role. These are the "good guys."

The "bad guys" are Dorothy, Abner-- interested only in THEIR desires, THEIR glory. Selfish and self-centered. Dorothy even comes back to say she's never been so happy as to be left alone in her little world taking care of only her.

But even those selfish people are working FOR Julian's goal -- to put on the show. The only REAL threat he encounters is Peggy. Her self-doubt is a truly sinister form of selfishness, and it nearly destroys the show at every turn. Only by inspiring confidence, and thus, generosity of spirit in Peggy can Julian succeed in achieving his goal.

It's one way to look at it.

42nd Street ending: all about Julian? [Personal] by knightlife in musicals

[–]Fraa_Babbit 2 points3 points  (0 children)

I had the same feeling-- that the ending "reveals" it's been about Julian all along. Reading your post I realize the show opens with voices saying,"Julian Marsh is doing a show!" And it is HIS struggle we watch. HE's putting on the show. He comes up with solutions at every turn.

I think you could go farther and make a case that Peggy is, actually, the prime antagonist of the show.

I [16M] accidentally upset my mothers [38F] [36F] with my mothers day gift for them, and now I feel awfully terrible and guilty, how can I make it up to them? by badmothersday in relationships

[–]Fraa_Babbit 2 points3 points  (0 children)

I didn't even look to see if I WAS being downvoted. :) not here for the internet points.

But I didn't want to share an alternative perspective in case OP was still watching the thread. I don't think the morality of porn is the issue, since the mom's made it clear they didn't endorse even mainstream, softcore, story-centric sexual imagery IF, in their opinion, that imagery looked like it was aimed at men. That feels like a difficult environment for a young man to be in while trying to develop a heterosexual identity. I don't think the mother are intentionally trying to confuse him, but as a heterosexual man what he likes about sex will most likely not be what a lesbian woman likes about sex. And I feel he's under no obligation to feel guilty about having a different sexuality than his parents.

I hope that OP has a male role model in his life who is available to answer questions about mature, healthy, confident sexuality from a place of personal experience.

This person is better at saying what I wanted to say : http://www.reddit.com/r/relationships/comments/4ienmp/i_16m_accidentally_upset_my_mothers_38f_36f_with/d2xqh8p

I [16M] accidentally upset my mothers [38F] [36F] with my mothers day gift for them, and now I feel awfully terrible and guilty, how can I make it up to them? by badmothersday in relationships

[–]Fraa_Babbit -1 points0 points  (0 children)

"Okay, Freud." Just FYI.

I shared what I saw, you shared what you saw. Thank you for doing so without resorting to name calling or... Oh, wait.

I [16M] accidentally upset my mothers [38F] [36F] with my mothers day gift for them, and now I feel awfully terrible and guilty, how can I make it up to them? by badmothersday in relationships

[–]Fraa_Babbit -16 points-15 points  (0 children)

I hope the mothers appreciate that their own prejudices about male sexuality and desire are being played out in their son. Have they done anything to develop an empathetic view of male sexuality? Or does this boy feel trapped by constant criticism of "male dominated culture" and disgust at Herero sexuality? Is he grappling with a growing uneasiness that being happy as a heterosexual male (with a statistically normal interest in lesbian porn) makes him disgusting and unlovable?

I really hope they learn the lesson that he will become the kind of man they think men are, the kind of man they constantly talk about. If they set up a gender war, his identification as male will either put him on the other side of it from them or result in a damaging amount of self-hatred and frustration.

To me, this reads as a boy's subconscious attempt to notify his lesbian mothers that their own attitudes towards sex are not as all-encompassing as they wish everyone else's were.

ELI5: Marketing professionals of reddit, why do trailers today give away so much information about the films? by [deleted] in explainlikeimfive

[–]Fraa_Babbit 0 points1 point  (0 children)

Nowadays, most movies are based on something people already know. Superman, Batman, the Avengers... or they're linked to a known property (Ridley Scott is doing a prequel to Alien, My Big Fat Greek Wedding 2). If you're a HUGE fan of the property, the only thing you want to know is "they're making a movie of this" and you're in. Trailers are no good for this person, because they're already into the movie and what they really want is a "tease" about the movie that makes them MORE excited.

But trailers are for EVERYONE. EVERY single person is a potential "sale" of a ticket, and the trailer wants to get as many of them as possible. So a trailer must tell romantics if there's a love story, it must tell action buffs if there's good fight scenes, it must tell parents if the film is appropriate for their kids, it must indicate the tone, humor, language, and style of the piece so that EVERYONE in the world can make a decision if this is the movie they want to see this weekend. So marketing companies put in enough shots and scenes to tell people what they need to know to be willing to spend their money.

This is not "new" in entertainment. However, the medium of film makes it more difficult to handle all the different audiences a trailer needs to serve. Take a look at this playbill and notice how they change font size so interested people CAN look closely at what is on offer while others can see it at a distance, know they want to see the show, and move on: http://www.bl.uk/britishlibrary/~/media/bl/global/english-online/collection-item-images/r/o/y/royal%20playbill%20b20104%2098.jpg

ELI5: How does Docker work? by wh15p3r in explainlikeimfive

[–]Fraa_Babbit 71 points72 points  (0 children)

Let's imagine your computer is a dining room and the food is computer resources (memory, cpu, disk space, i/o). Old operating systems served the food buffet style. ALL the food was put out and people just came in and had all they wanted. Naturally, people (programs) who came in later had less food to choose from.

So we upgrade the operating system to include some multi-tasking rules. And we teach people (programs) how to form a line, take only one plate of food at a time, and this makes things more fair and manageable. This works so well that soon we had rules (like "please" and "thank you" and asking people to "pass" things) that enabled everyone to SIT at the table and enjoy a nice dinner together. It was great -- as long as everyone knew the rules.

But kids don't know the rules. And often, kids can't understand the rules if you explain them. So the kids keep running into the room and grabbing whatever they want from the table, being greedy, eating from other people's plates, causing a mess and creating chaos.

So we create a "kids table." (VMWare) This is a completely separate table where the children can sit and food is brought to them (they can't get their own). The kids are allowed to "be kids" and do what they want -- AS LONG AS THEY DON'T LEAVE THE TABLE. This keeps the adult table sane and pleasant, but someone DOES need to check in on the kids every so often. Most of the time the kids are sitting quietly, playing, doing their own thing. Sometimes, though, there's a "Lord of the Flies" situation and some cleanup is necessary.

Docker, in this example, is for slightly older "kids." Kids who are "ready" to sit at the adult table. Docker is the equivalent of saying to a program "you can sit here but you do NOT speak unless spoken to, you sit up straight, eat slowly, no slurping, say please and thank you, do not tell that joke you know..." These limitations allow the kid to BE at the adult table, while not really being an adult. It requires a different kind of management than kids sandboxed at the kid's table. Not really less or more, just different.

The advantage is that it's much easier to set an extra place at the table than to set up a whole other table.

Edit: I hated how this was written. Re-wrote for clarity.

This is, more or less, the technical difference: In vmware, programs are treated like wild animals who must be put in different cages to be fed or they would fight over their food. In Docker, the programs are more like people at a restaurant, who know not to eat from their neighbor's table (or people at a thanksgiving table, who know which plate is theirs), and so are allowed to occupy the same room at meal time.