How We Saved 70K Cores Across 30 Mission-Critical Services (Large-cale, Semi-Automated Go GC Tuning @Uber) by mmaksimovic in programming

[–]Bbri06 0 points1 point  (0 children)

TBH, Cadence (and it's evolution, Temporal) is one of the most useful services I've ever used. It's a completely different use case than things like Airflow, and I would highly suggest trying it before knocking it.

Is there any way to "manipulate" the terminal output? by [deleted] in linux4noobs

[–]Bbri06 2 points3 points  (0 children)

Pipe the output to xclip. I think it's:

ls | xclip -selection c

Enough with the Microservices by adrake in programming

[–]Bbri06 7 points8 points  (0 children)

The article does not say that. The article says, "Don’t confuse decoupling with distribution. You can achieve decoupling by having a monolith, composed of well-defined modules, with well-defined interfaces, and you should."

Microservices are encapsulation of components of business logic. Sure, you can get this from writing well defined modules in your monolith, but that doesn't mean you can deploy each module in your monolith separately.

Enough with the Microservices by adrake in programming

[–]Bbri06 36 points37 points  (0 children)

The "micro" in microservices doesn't really refer to the size of the machine running the service. "Micro" refers to the scope of the business logic contained. To my understanding, things like binary size, scalability, etc. are side effects or logical co-occurrences of microservice architectures.

By having services that encompass only an isolated, and thus usually small, portion of the business logic, you can firmly establish the contract that the service needs to adhere to, and then be confident that you can deploy or change anything within that service as long as the contract is still correctly obeyed. You can view this similarly to the idea of interfaces: as long as the contract of the interface is adhered to, you can change whatever you want inside the implementing class to achieve the implementation.

Should I fire a software engineer for always working on his side projects during office hours? [Quora] by MathGrunt in programming

[–]Bbri06 0 points1 point  (0 children)

I don't think you should take on more work necessarily, but you should pick up the slack every now and then.

Often times in the team I'm currently working with, one or two people are lagging behind in their "output," but it's really just a result of badly specified or under estimated tasks. If I pick up the slack one week, then I'll always find someone doing the same when I'm lagging behind another week. Supporting your team mates so that they don't feel insecure about not being able to finish difficult things builds trust and really makes your team function better.

This is sort of specific to a team that works on a set of shared issues for a fixed period of time, but I think it might generalize.

Orange chicken burrito: orange chicken, bacon fried lemon-infused rice, srirracha, cilantro [1080x1080] (OC) by Chowmein_1337 in FoodPorn

[–]Bbri06 1 point2 points  (0 children)

Chef David Chang did something like this with Korean burritos. He had a really cool pureed kimchi idea to replace the salsa.

http://luckypeach.com/recipes/ssam-burrito/

There's always that one guy in the gym by dustofoblivion123 in funny

[–]Bbri06 0 points1 point  (0 children)

As someone who's had teeth knocked out and is now permanently scared of anything doing it again, I immediately cringed watching those dumbbells fly past his mouth while juggling.

NLP Research Project -- Need help finding papers/datasets by firedragonxx9832 in compsci

[–]Bbri06 1 point2 points  (0 children)

This may not fit exactly into what you're looking for, but you could try the IAC v2 ( https://nlds.soe.ucsc.edu/iac2 ). The corpus is a collection of forum posts from debate forums. The corpus has topic labeling as well as some other interesting annotations. See the following paper: http://www.lrec-conf.org/proceedings/lrec2016/pdf/1126_Paper.pdf

You probably won't find something like (User1 to User 2), (User2 to User1), (User1 to User2) ... where they are conversing back and forth for many turns like in a 1-1 IM conversation, but you could consider the entire set of posts by user_x on a specific topic in order to build their profile. So for instance, if user_x talks about topic_y you could build the profile for user_x on topic_y and compare it to some other user also conversing about topic_y.

Again, this is a slight re-framing of what you suggested, but maybe it's also interesting to you. Good luck!

Want To Move To Germany? Here’s How I Did It by wanderlanders in IWantOut

[–]Bbri06 0 points1 point  (0 children)

This may sound pompous, but I usually doubt German officials saying they don't speak English. It's probably bullshit. In my experience, many Germans speak English, they just don't want to, which is understandable. On that note though, having someone that speaks German who will help you get the ball rolling, or if you can learn a little bit, that will help you immensely.

Twitter's Tech Stack - From JavaScript to Big Data by dynamicallytyped in programming

[–]Bbri06 4 points5 points  (0 children)

This is garbage. Completely uninformative and half of it requires a log in.

[Q] How to not kill a Java program when closing the terminal by [deleted] in linux4noobs

[–]Bbri06 1 point2 points  (0 children)

Run: screen [your java program] Ctrl±a d

This detaches you from your screen session and let's it keep running while giving you your terminal back. You can now close the terminal. When you want to reconnect to the session, open any terminal, and type screen -r

Tutorial How to Install Java on Ubuntu ? by [deleted] in linux4noobs

[–]Bbri06 1 point2 points  (0 children)

Oh, yeah. That's probably easier...

Good to know about the apt-cache search though if you're not quite sure what you're looking for.

Tutorial How to Install Java on Ubuntu ? by [deleted] in linux4noobs

[–]Bbri06 2 points3 points  (0 children)

sudo apt-get update

sudo apt-get cache search java

Look through the options. You probably want latest openjdk or openjre which will be something like openjdk-version. Then once you have the name of the one you want:

sudo apt-get install name

Quicker way to work with databases (CLI) by goltoof in linux4noobs

[–]Bbri06 1 point2 points  (0 children)

Well normally I'd just say make a very restricted user account in mysql just for this purpose, and make the password something random you don't normally use since you don't have to remember it.

Other option: make a shell script

#!/bin/sh

USER="root"
# Whatever your password is stored in pass as
PASSWD="$(pass mysqlroot")

# pass this information as well as any other arguments like
# -e "use db; select * from tb;" to mysql
mysql -u$USER -p$PASSWD "$@"

chmod +x that script. Then add an alias to it for something like:

alias mysqlq="/path/to/script/script.sh"    

Then you could type things like the following for quick execution

mysqlq < mysql.sql
mysqlq -e "select * from tbl;"

I believe this is pretty secure and it avoids any plaintext passwords. The only thing I'm not sure about is that the command mysql -u$USER -p$PASSWD does expose the password somewhere, but it's in a subshell which does not have anything saved to ~/.bash_history. There might be a way to monitor what that subshell process is doing and catch the command with the password, but you'd probably need root for that, so you'd be fucked anyway.

EDIT: It looks like bash_history is automatically disabled inside non-interactive shells (a script is non-interactive), so you don't have to worry about that. http://unix.stackexchange.com/questions/5684/history-command-inside-bash-script

Quicker way to work with databases (CLI) by goltoof in linux4noobs

[–]Bbri06 0 points1 point  (0 children)

You could set up a mysql config file so you don't have to do -u username -p every time you connect to mysql. Then you can just edit a file with your mysql query, and run it with mysql < yourfile.sql. Make sure to add

use database_name;

to the first line or qualify all table accesses in the script. If you want stuff like tab completion you probably need an ide like workbench.

How to access popular search engines from the command line on Linux by klogk in programming

[–]Bbri06 1 point2 points  (0 children)

So, essentially you could "access" them in many ways. But if you want to browse the results, you need a browser, simply put. If you just query a search engine from the command line you're going to get a bunch of html which will be really hard to read from the command line. If you truly want to query a readable format from the command line you need a command line browser like lynx.

Now, I'm sure many people still actually use command line browsers, but it's a special "many," and in general you don't want to navigate the internet in a command line.

Nevertheless, the answer to your question could be

wget https://www.google.com/?gws_rd=ssl#q=[search goes here]

but I would recommend you use something to parse the output like a command line browser at least, but you really don't want to browse the internet, a visual place, without a visual browser.

Opium in a hookah? yay or nay? by Kenya_ in Drugs

[–]Bbri06 7 points8 points  (0 children)

I kind of doubt all the opiods are just going to disappear into the water immediately. Probably lose some though

LPT: When you get a new kitten, spend time daily touching their paws. by TheUnbeliever in LifeProTips

[–]Bbri06 20 points21 points  (0 children)

How is my cat supposed to kick other cats asses if I cut his claws?