Better HN
topnewbestaskshowjobs
Log inSign up

bashinator

2,027 karma · joined Jul 28, 2012 (14y ago) · 844 submissions

Submissions

comment 6y ago · link · parent

By this logic, dead end jobs that do not lead to prosperity, should be among the easiest ones. No one has ever said, "I don't want to have to work hard, so I'm going to go into retail."

comment 6y ago · link · parent

> And what makes Apple privacy oriented?

The fact that they're not an advertising company? That their business model doesn't depend on monetizing your personal data? That being privacy-oriented is a distinguishing factor compared with their competition?

comment 7y ago · link · parent

Wow, that predates OS X.

comment 7y ago · link · parent

Wait, I can install uBlock Origin on my iPhone?

comment 7y ago · link · parent

It's been a number of years - doesn't openbsd use just plain /etc/rc and /etc/rc.conf? I like that better than init.d just because it enforces some standards around the scripting at least.

I admin a number of ubuntu servers running systemd, and they all shut down/reboot pretty much instantaneously.

comment 7y ago · link · parent

Being able to view logs based on the name of the service instead of the name of the logfile. `journalctl -u <unit>` vs `less /var/log/service/something.log`

Being able to specify date ranges instead of grepping around multiple files. `journalctl -u <unit> -s <start> -e <end>` instead of horrid combinations of grep and gzcat.

"Okay," you say, "but that's all for logs on the host. Shouldn't you be using Splunk or an ELK stack?"

Journalctl can export logs in a json format that can be natively consumed by splunk for free metadata markup. I wrote some container sidecars to do exactly that, and it worked great.

The only thing I don't like about journalctl is that it doesn't line wrap by default.

comment 7y ago · link · parent

That's exactly the point the article is making. In addition to the comprehensive documentation, systemd users need best practices for a good range of common-to-uncommon use cases.

comment 7y ago · link · parent

Greybeard here - I like systemd well enough. It's not perfect, but it's a lot better than rando SYSV init scripts. Journald and journalctl are loads better than /var/log.

comment 7y ago · link · parent

I'd feel remiss in not mentioning that Hashicorp's Terraform infrastructure-as-code tool has a provider for Domino's Pizza

https://ndmckinley.github.io/terraform-provider-dominos/

comment 7y ago · link · parent

Thank you! I'm glad to see there's progress on this. I've been holding off putting the infrastructure automation into CI/CD, due to the incredible amount of work it would take to create a least-access policy. Tooling like this will help a lot.

comment 7y ago · link · parent

Related, I've been wondering if there's a tool that will generate a least-privilege policy out of an existing set of AWS CloudTrail records. It would be wonderful if I could run terraform from an admin user, pull down the API calls, and build a policy from them.

comment 7y ago · link · parent

I think they meant casting a wide net in search of the small percentage of machines where the mitigation’s are turned off. An 0.01% success rate is okay if you hit ten million systems.

comment 7y ago · link · parent

Well yes, when you (Google) control the entire vertical stack, you get nicer integrations like that.

comment 7y ago · link · parent

> Both Google & Apple are in the same boat in that respect.

I have to disagree here - Google explicitly monetizes their information on your activity on the Internet, Apple does not.

comment 7y ago · link · parent

But you do trust Google for privacy?

comment 7y ago · link · parent

Freedom of speech is the prohibition of government interference in peoples' ability to express themselves. That's why the first amendment of the US constitution starts with the words, "Congress shall make no law". This is a very objective standard.

comment 7y ago · link · parent

Aha so a sleep sort is translating the operation into the time domain In essentially the same way that spaghetti sort translates into the spatial domain! Thank you.

comment 7y ago · link · parent

This reminds me of my favorite joke algorithm, sleepsort[0]. A trivial implementation looks like this:

    #!/bin/bash
    for int in $@; do  # input must be a list of positive integers
        (sleep $int; echo $int) &
    done; wait
I'm not quite sure how to describe it in terms of big O notation.

[0] https://rosettacode.org/wiki/Sorting_algorithms/Sleep_sort

comment 7y ago · link · parent

How far back is that? I generally try to leave at least 10 car-lengths in fast traffic, 3-5 in heavy traffic.

comment 7y ago · link · parent

Is that teaching a computer to distinguish between males and females based on height and weight?

comment 7y ago · link · parent

What is a "decision boundary?" What does it mean to represent data as a point in space? Why would the number of dimensions of space matter? How does any of that relate to AI or machine learning?

comment 7y ago · link · parent

You're on a desktop computer, and you've just spilled water on the keyboard. How do you replace it?

comment 7y ago · link · parent

Tumblr had a wealth of self-produced and curated adult content for and by gender and sexual minorities, with meaningful discussion. No, I don't think the internet has enough of that.

comment 7y ago · link · parent

I'm not happy about it, because I have Caps mapped to control, and last I checked, you can't map the bottom-left ctrl key to Esc. I actually don't have a MacBook anymore because of this.

comment 7y ago · link · parent

My take on what makes the modern IoT different from just attaching networking to devices, is the mandatory cloud backend replacing in-house IT infrastructure. That's what's letting networked devices enter the mainstream consumer market.

comment 7y ago · link · parent

Sure - just get a root shell prompt on your thermostat and I'd be happy to walk you through the rest.

comment 7y ago · link · parent

Assuming (pretty safely) that the connection to google is TLS encrypted, how exactly would someone be able to examine the data with wireshark? The times I've had to look at an HTTPS session, I ended up having to set up a TLS decrypting proxy with a custom root certificate. It doesn't seem likely you'd be able to do that with a closed IoT device.
1
111213
29