2,266 karma · joined Nov 6, 2017 (9y ago) · 971 submissions
comment 8y ago · link · parent
There is certainly a difference. Your body, physically, will be fine without heroin. But emotionally, you feel empty without it, and as soon as some emotional trauma - stress, sadness, fear or despair rears its head, you relapse. I guess you could argue that emotional need is no different than physical need, but I don't think that's quite the point you're trying to make
comment 8y ago · link · parent
[if yes] I currently work at a small-medium sized company, and we have one BI guy. Our ops team is ~5 people, and 1-2 of the more junior guys are tasked with doing everything necessary to support the BI guy. which basically means making sure the BI software is installed properly on the container, configured properly, has access to the db, and it comes up properly etc
BI is a critical business function, so it's a pretty high priority, but the process is way less automated and skillfully crafted than the other parts of the system, mainly cause everyone hates it and only barely understands what the BI system (in this case, pentaho) actually does. it's no coincidence that the most junior engineers often end up doing it (with occasional but pretty infrequent help from the seniors when blocked)
what i've been wondering is, what exactly does "a BI guy" need their system to do? I read a bit about ETL systems, but haven't done much research. I assume the job of an ETL system is to pull data from the production database(s), clean it up as necessary, and use that data to calculate whatever business metrics are required? is the software more about making it easy for the BI team to use an interface to craft their queries/dataflow/etc?
basically my motivation is I've mulled over the idea of having the ETL system be written in-house. the benefits being potentially smoother and more native operation and in a way that's more seamless to integrate with monitoring, alerting, automated jobs etc. my guess is that such a project would end up being a waste of time in 98% of cases, especially because you need a usable frontend for the BI guy.
so, if I may, what exactly is business intelligence / what do you do on a day-to-day basis? I'm pretty experienced with traditional finance/investing jobs, eg reading 10-q's, 10-k's, balance sheets etc, and using the data to calculate cash flow, opex, gross margin, and every other metric you could conceivably want. But I'd never heard of "business intelligence" until starting an internship several months ago.
thanks, and no worries if you don't have time to respond / if this is too off-topic.
comment 8y ago · link · parent
Being able to have chef integration tests (or are they considered unit tests?) seems really powerful. But holy fuck does Chef have a ton of (what feels to me like) cruft
comment 8y ago · link · parent
Benzos + alcohol (+ possibly opiates) is a recipe for a really bad time. I’ve seen people take like 4mg xanax and 8-10 shots and get instantly sent to the ER
comment 8y ago · link · parent
Realistically I suppose it’s only marginally faster than kubectl get po -o name and then manually copying.
For any project I work on frequently I set up aliases that wrap it anyway. As you already know kubectl doesn’t allow regex matching so I just do something like: kubectl delete pod “$(kubectl get po -l app=MY_APP_SELECTOR)”, etc. naturally your deploy needs granular selectors otherwise you need to further pipe to grep or awk
comment 8y ago · link · parent
Kinda hard to explain, but it’ll make sense if you look at the gh repo.
[It’s always driven my insane how kubernetes names its pods. They still haven’t implemented regex matching - there’s an issue on github related to that that went stale. For now I use a combjnation of selectors and old school unix regexes (awk, grep, etc) when I’m passing around kubectl commands that I need to work rgardless of whether the container has restarted or not]
comment 8y ago · link · parent
If someone takes a "leave of absence" that ends up lasting several months, and that becomes a permanent leave of absence (read: they quit), that does indicate problems. Not in a one-off scenario, but in Tesla's case where they've lost dozens of executives once they realized that [possible bias here] Tesla is clearly engaging in fraud, it's not just a one-off thing. The smart executives are jumping ship, leaving behind either a) the not so smart executives or b) the smart people like Straubel who are close enough to Elon that they wouldn't leave.
see: bogus solarcity acquisition to avoid the dominos falling in Musk's highly coupled empire, clear intent to cause a short squeeze with the bullshit going private tweet [if you look at musk's actions/statements leading up to that, it's clear the shorts have been stressing him out], Musk having borrowed money to purchase even more Tesla shares, worker injury rate [this isn't fraud but I decided to throw it in there], etc etc etccomment 8y ago · link · parent
>Please respond to this message to acknowledge that you have received it. If you can resolve the matters specified above in the next seven days, that would be excellent. If you anticipate that it will take longer, please let us know. I’ve cc’d our Legal alias so that in the event that I am unable to respond, one of our product counsels will be able to provide any necessary assistance.
tl;dr: respond and desist or they will escalate to the next step. Legal action is heavily implied, and it's outright foolish for you to read that and somehow think there's no threat to sue, whether implicit or not
comment 8y ago · link · parent
git_show_blame () {
if [ -z "$3" ]
then
printf "USAGE: git_show_blame filepath start_line_num end_line_num" && return 1
else
[ ! -z "$4" ] && printf "\\n${LPURP}[git_show_blame]${NC} Warning: extra arguments provided. Ignoring everything after the first 3\\n\\n"
git show $(git blame "$1" -L "$2","$3" | awk '{print $1}')
return $?
fi
}
Use with recursive search `grep -Rn your_regex .` to track down the original commit that your pesky coworker added two years ago without any corresponding documentation for an alert that's going critical at 2am...(only slightly exaggerating there :P)comment 8y ago · link · parent
Another tip, I only occasionally need git autocompletion withh aliases, but in zsh you can do something like this:
# Enable zsh git completion for our aliases.
# See https://github.com/mislav/dotfiles/blob/d82e79b8a500891a02ab28171974d68be7a35e12/shrc/git.sh
if [ -n "$ZSH_VERSION" ]; then
compdef _git g=git
compdef _git gc=git-commit
compdef _git gco=git-checkout
compdef _git gd=git-diff
compdef _git gb=git-branch
compdef _git gst=git-status
compdef _git gp=git-push
compdef _git gd=git-diff
fi
And obviously bash has an equivalent.comment 8y ago · link · parent
Montana skeptic wasn’t a troll, he wrote extremely insightful articles. I’m actually shocked how many people are trashing the dude
comment 8y ago · link · parent
My approach was to remap caps lock to escape as a press and ctrl as a hold, and then disable the touchbar as much as possible (whoever put unmute and siri next to each other should be taken out and shot btw, that caused me so much annoyance)
comment 8y ago · link · parent
https://github.com/jasonrudolph/keyboard
It works super well. I can hit key combos that would normally be tricky super easily.
Now if only I could find a way to standardize my hotkeys across sublime, chrome, vim, terminal and tmux. I’ve gotten close but not where I want to. (As an aside, does anyone know how to make ctrl+w delete the word left to the cursor in chrome and put it in the buffer like in the terminal (and also do the same for subl)?)