skysight-inc/HackerNews huggingface dataset:
Start hiring people to work for your business and a lot of problems go away. If you are spreading the wealth around, the politicians are more likely to listen.

If you think about this from the perspective of the city council, there was this big warehouse that they thought was perfect for a company like Amazon, which would have given them hundreds of jobs. Instead, a random rich guy buys it and employs nobody.
Are there any websites out there that list what to buy and what to avoid based on durability?
I too believe in the fundamental interconnectedness of all things and am currently searching for a missing cat
IMHO, the figure of speech "n-th order" generally comes from Taylor series approximation, where n-th term is indeed expressed using n-th derivative. Also, if the series converges, the higher order terms will become smaller, thus the practice of approximating the reality up to n-th order term.

Also, it's often practical to ignore 2nd order and higher terms, because then you have a linear function - something really easy to work with. Therefore, "2nd order effects" have effectively become synonymous to "non-linear effects".
i've got an 2000 bmw with coolant flange made of plastic, real ticking time bomb there, right against the firewall too, if it breaks I'll scrape the car coz it's in such a PITA area. They designed it that way.
Wonder what metric(s) make them decide to quit?
Oh lord this is beautiful!
Isn’t Bozeman the poster child for towns negatively impacted by tech workers swooping in, driving out local salaried families, and driving suburban growth? I’ve read a version of that in half a dozen stories since 2020.
Bank reconcilliation in Xero has no "auto match if reference and date are the same" option, so I (very crudely) scripted one. It'll run until it encounters a mismatch (which for the company I work for is basically never). Paste into console.

function go() {

let line = document.querySelector('#statementLines .line');

if (line) {

let leftAndRight = line.querySelectorAll('.statement');

let left = leftAndRight[0];
let right = leftAndRight[1];

if (right.hasClassName('matched')) {

let leftDetails = left.querySelectorAll('.info .details-container .details span');
let leftDate = leftDetails[0].textContent;
let leftReference = leftDetails[1].textContent;

let rightDetails = right.querySelectorAll('.info .details-container .details span');
let rightDate = rightDetails[0].textContent;
let rightReference = rightDetails[2].textContent;

rightReference = rightReference.replace('Ref: ', '');

if (Date.parse(leftDate).getTime() == Date.parse(rightDate).getTime() && leftReference.toLowerCase() == rightReference.toLowerCase()) {

var okButton = line.querySelector(".ok .okayButton");

console.log(leftReference);

okButton.click();

var waiter = function () {

if (line.parentNode == null) {

go();

}
else {
setTimeout(waiter, 50);
}

};

setTimeout(waiter, 50);

}
else {
console.log("Details dont match");
}

}
else {
console.log("Line not matched");
}

}
else {
console.log("No line found");
}

}

setTimeout(go, 100);
My dotfiles: https://github.com/BurntSushi/dotfiles

Here are some selected scripts folks might find interesting.

Here's my backup script that I use to encrypt my data at rest before shipping it off to s3. Runs every night and is idempotent. I use s3 lifecycle rules to keep data around for 6 months after it's deleted. That way, if my script goofs, I can recover: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...

I have so many machines running Archlinux that I wrote my own little helper for installing Arch that configures the machine in the way I expect: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...

A tiny little script to recover the git commit message you spent 10 minutes writing, but "lost" because something caused the actual commit to fail (like a gpg error): https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...

A script that produces a GitHub permalink from just a file path and some optional file numbers. Pass --clip to put it on your clipboard: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae... --- I use it with this vimscript function to quickly generate permalinks from my editor: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...

A wrapper around 'gh' (previously: 'hub') that lets you run 'hub-rollup pr-number' and it will automatically rebase that PR into your current branch. This is useful for creating one big "rollup" branch of a bunch of PRs. It is idempotent. https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...

Scale a video without having to memorize ffmpeg's crazy CLI syntax: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...

Under X11, copy something to your clipboard using the best tool available: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...
I'd wager they are referring to the function named "read".
> C was a sport it would be free climbing

I think maybe motorcycle racing. Fast, close to the ground, and one seemingly-trivial mistake away from a gruesome result. But also a rush when it goes well, responsive to riders knowing their machines and the terrain inside and out and eligible for lucrative sponsorships.
Isn’t this normally stored on an encrypted volume anyway? If the user cares about security even in the slightest, they’d be using FileVault, of course

So really, this type of encryption is defeating scanning/probing, not a dedicated attacker who knows where to look and why. In such cases the attacker is worried about gaining access to the walled garden first — where the protections are.
Here's a shell script for moving files in git between repos, preserving the history, and following that history through the file being renamed:

git-move src/afile.c src/bfile.c src/cfile.c ../destination/repo

https://gist.github.com/mnemnion/87b51dc8f15af3242204472391f...
Despite what the title suggests, this is not using the SIM and does not involve any kind of cryptographic authentication.
Small correction to the article, it is the Transparency, Consent and Control (TCC) framework rather than Trust, Transparency, and Control. More here https://eclecticlight.co/2019/07/22/mojaves-privacy-consent-...
French Lick, Indiana is a tiny town in the middle of nowhere that some billionaire invested his fortune in renovating a historic hotel, building up a resort casino, and fleshing out the downtown into a charming experience. There's even a ski resort nearby.

And it's all at rock bottom prices.

Louisville airport is about an hour away, and since it's a major UPS hub, it's quite nicer than the population of the area would otherwise support.
A bash script + a little elisp magic that leverages Emacs for fuzzy finding on the command line instead of fzf:

https://www.masteringemacs.org/article/fuzzy-finding-emacs-i...
No, you are completely reading some bullshit sense of false superiority into what I said. Your comment is antisemitic but I'll address it as it stands as if you mean it honestly. I don't believe in any "chosen". I believe in what my people taught me, just like the Chinese believe in their own 5000 years of history, or the Czechs have pride for fighting back the Russians but I am not "chosen"...or better than anyone... every group of people have grandfathers who taught them how to survive and how to assess the world. That's all. I'm actually just sharing how I see it.. but I don't think I'm better than anyone else let alone it's my job to moralize, or feel power over anyone. I'm just here to express my opinion like everyone else.

By the way, can a Muslim have an opinion about Jesus? They sure do. Can a Buddhist? Yes. Well... the man was a Jew and most of the history of antisemitism revolves around Christians pretending he wasn't a rabbi. So this ain't chosen anything I'm just saying what it is... the man was a Jewish rabbi who rebelled in a few good ways against the Hebrew norms... he was a rebel and I admire what he said and did.

This is not scorn on goyim. Frankly if you want it? I don't know what you Romans are still doing worshipping a Jew what, in the year 2022, but that's between you and God
Not sure whether to be proud or ashamed of this, but this script runs in a cron job to monitor my home server’s IPv4 and IPv6 addresses and update them everywhere (DNS, firewall, reverse proxies) if they change: https://gist.github.com/thedanbob/13f88ca8c21cb2ab7904ec5a6e...
Oh, terrible. Acrid. I’m lucky I did it during the day and my wife wasn’t home.
It did not help that there were strong political partisan effects further corrupting this situation beyond what you have noted. I have to admit, I really wonder what the counterfactual world (where Trump got elected for a second term) would look like with respect to which groups believe which information.
Higher order functions have nothing to do with derivatives however.
Still not enough to pass judgement on Rust.
I think this describes many products on Amazon, Alibaba, eBay shipped directly from China and also resold by US small businesses/online resellers. Sometimes it’s fine. Other times not.

I purchased replacement foot peg for my Suzuki. They look exactly the same, but are in fact maybe 90% smaller. Same proportion, but just smaller.

Not so good was an emergency/travel wrench for my rear axel which was 1mm bigger than the spec. That bolt is $35 and rounding it off and fracking up the whole axel is not acceptable.
You'd probably agree that maximizing profit is a corner stone of capitalism. In practice this principle is way above staying within the bounds of morals or laws.
Books are heavy as shit though. If I take two similarly-sized boxes and fill one of them with books, and the other one with random stuff, the box with the books is going to be the heavier one.

Pretty sure the densest box that I had in my last move was the one where I had all of my books.
Why can’t ‘good judgement’ at the right time be worth 20000x more than a mediocre judgement at the right time? (Or good judgement at a mediocore time?)

In the most extreme case, say some military general’s correct judgement to avoid launching a nuclear missile during a false alert, may be worth more than everyone else’s combined. i.e their ‘good judgement’ during a critical few seconds would be worth 8 billion times more than the average.
You’re overthinking it.

The drain is at the right level. The wall is at a higher level. A piece of wood to roughly make sure it’s an straight line would get you 90% of the way there.

They don’t even do that.
JS snippet to sort and return Play Store app reviews by helpfulness:

var nodes = [...document.querySelectorAll('\*[aria-label="Number of times this review was rated helpful"]')];
nodes.sort((a, b) => (parseInt(b.innerText) || 0) - (parseInt(a.innerText) || 0));
nodes.map(e => ([
parseInt(e.innerText) || 0,
e.parentNode.parentNode.parentNode.parentNode.parentNode.children[1].textContent.toString().trimStart(),
]));
But be warned that Indiana politics can be a huge turn-off
Ithaca is interesting but we have two sets of friends there and one of them loves it (grew up and returned from abroad) while the other endures it (university tenure).
By your logic, should z/OS not be used then because it is old and has quirks? EBCDIC is bizarre by modern standards. Non contiguous alphabet for instance.
City blocks, or Minecraft blocks? :D
Email Is Async
I can confirm that Farmville is great. It has a walkable downtown with cute shops and restaurants. Both my husband and I work as remote programmers 20 minutes outside of town on a 40 acre farm with fiber.
That doesn't seem to be part of the C standard library.
It's actually not the worst organizing system, I often remember books by their color.
This is a good analogy .. many of the comments in this thread that are confusing 2nd order thinking with long term thinking are clearly just thinking of iterating 1st order thinking along the time line.
A 10x more complex redundant (or "redundant") system often breaks faster (and definitely stays down longer) than a simple direct system.

Many people just don't consider failure scenarios. Offsite live database backups, for example, are a great idea. Say ... how does your site perform, in percent of normal QPS, when the database is now 150ms away instead of 1ns? 1% ... that's not redundancy, despite the site being up, let's just call that a failure.

And people forget one thing about hosting on AWS. Say ... when AWS is slow/has problems/blocked on firewall/down ... when your competitor is down, would you like your site to be up? How about vice versa?
Those are entirely wrong assumptions you have stated in your comment. IPXO works with many well-known telcos and infrastructure providers. Many projects use the IPs from the IPXO platform and announce them on AWS, Azure, or Google Cloud (those are actual SaaS companies) and not to mention Cloudflare, where we see IPs brought to their network using CF's BYOIP. All that information is visible and available on the BGP table.

Regarding the abuse, bots, etc. Yes, we have abuse cases, and you are partially right about that. However, we take every abuse case very seriously since we are responsible for hundreds of LIRs who brought their IPs to IPXO. If we ignore the abuse, we would not be boarding tens of thousands or hundreds of thousands of new IPv4 every week.

- Vincentas, CEO @ IPXO
The number of people commenting on how common lyme disease is based on local anecdotes without acknowledging it's an insect borne disease and going to vary wildly by geography is silly.
All Hiring Decisions are a Gamble (and that’s okay)
The question that fascinates me about this whole debate is on what basis (if any) one draws the line between a machine learning from copyrighted data vs a human learning from copyrighted data.

And I do think “learning” is the correct metaphor here. There are good reasons to believe that the brain is doing something conceptually similar to generative statistical models. i.e compressing inputs (/percepts) into some kind of abstract representation space. Even if we don’t understand the specific details yet.

As far as I’m concerned, it makes no sense to prevent training on copyright data. If I use a trained model to substantially reproduce parts of a copyrighted work, feels like the issue is largely with me and what I do with the content.

These models are just tools after all.
Collect vinyl as well, that way books will seem lighter than air.
Why an Apple Employee Created a Company to Help Him Lose Weight
Fresh IPOs have products quality which made them IPOs. It gets downhill around that time and pro-user changes to pro-shareholder, which are very often in opposition.
Here is your sentence I replied to (emphasis mine):

> Wanna do concurrent and parallel programming in a mostly seamless manner, not thinking about deadlocks and being isolated from most dumb mistakes that we all make?

Neither of these languages allow for that, as deadlocks (and livelocks and all kinds of other race conditions) are not avoidable in any of them.

Rust and Elixir does prevent some race conditions (data races), Go does nothing (other than recommending the usage of channels, but that is still prone to race conditions), and I don’t know about OCaml enough to comment.
The problem is that "web-development" encompasses everything from a simple static website all the way to complex web applications.

And because of this generic term, I see people making stupid mistakes all the time.

React is great for web apps, but then you see the static pages being built by that, and you think WTF. Next thing some of these morons move back to server side rendering, discover how much better it is for SEO etc. But the problem is that the web-app folks read this, think they now all of a sudden have to move to SSR because big company X did this for their landing page.

It's truely stupid. So I think we should split the term "web development" into proper subsections, so it becomes clear what camp you are in.

If you're a website builder who does a bit of JS for some menu popups, good luck having a team of these guys writing the next google docs (no offense here, each their own specialization)
But on the same ground, having a bunch of pro front-end coders build a simple website is also stupid, because they will choose technologies way too complex for that.
Simh needs to be run as root or with suid, as it requires to open the interface as root. Either that, or try to setup tun/tap or a virtual device under OpenBSD.

This way you won't require root, but virt devices under Linux are scary to set up and dead simple under OpenBSD.
And you never venture West of it, right?
Does a PostgreSQL plpgsql function count as a script?

https://gist.github.com/stuporglue/83714cdfa0e4b4401cb6

It's one of my favorites because it's pretty simple, and I wrote it when a lot of things were finally coming together for me (including GIS concepts, plpgsql programming, and a project I was working on at the time).

This is code which takes either two foci points and a distance, or two foci, a distance and the number of pointers per quadrant and generates a polygon representing an ellipse. Nothing fancy, but it made me happy when I finally got it working.

The use case was to calculate a naive estimate of how far someone could have ridden on a bike share bike. I had the locations they checked out the bike, and where they returned it, and the time they were gone. By assuming some average speed, I could make an ellipse where everywhere within the ellipse could have been reached during the bike rental.
The reply comment, where another repairmen shared convincing experience-based evidence of good reliability of modern compressors, eviscerates the argument.

Also, the assertion that mid-1900s compressors were efficient is absent any facts to back it up. If the main power-consuming part of old refrigerators was so efficient, how can newer refrigerators be so much more efficient? Sure, better insulation can help, but I don’t see how you get around that newer compressors need so much less power to get the job done.
Somewhat yeah, but they never got to the point I'd have imagined, probably started going south when everything moved away from local processors and into corporate datacenters.
If a significant (and rising) proportion of the population is starting to distrust you and increasingly anecdotes show that we are certainly not moving toward more acceptance of science in the short term - as a slow, generational effect, yes, this is still happening, but it is more than countered when the optics are such that people can read conspiracy due to authoritarian overreach.
Especially one cheered by a suddenly non-cautious, non-skeptical block of people (mostly science journalists) (mis-) representing "The Science".

The reality is we need to be the strongest advocates of scientific thinking and literacy - trust is /the/ critical foundation for all institutions in society, especially ones that want to be able to influence society writ-large.

We, scientists, academics, and yes, the press, have to proactively earn trust.
I really doubt this is where "nth order" comes from colloquially.
I often have a need to serve a local directory via HTTP. In the old days the built-in Python webserver was enough, but at some point browsers became more aggressive about concurrent connections and the single-threaded `python -m SimpleHTTPServer` would just get stuck if it received two requests at once.

As a workaround, I wrote a small wrapper script that would enable multi-threading for SimpleHTTPServer.

~/bin/http-cwd , Python 2 version (original):

#!/usr/bin/python
import argparse
import BaseHTTPServer
import SimpleHTTPServer
import SocketServer
import sys

class ThreadedHTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer):
pass

def main(argv):
parser = argparse.ArgumentParser()
parser.add_argument(
"--port", type = int, nargs = "?",
action = "store", default = 8000,
help = "Specify alternate port [default: 8000]",
)
parser.add_argument(
"--iface", type = str, nargs = "?",
action = "store", default = "127.0.0.1",
help = "Specify iface [default: 127.0.0.1]",
)
args = parser.parse_args(argv[1:])
server_address = (args.iface, args.port)
srv = ThreadedHTTPServer(server_address, SimpleHTTPServer.SimpleHTTPRequestHandler)
sa = srv.socket.getsockname()
print "Serving http://%s:%r ..." % (sa[0], sa[1])
srv.serve_forever()

if __name__ == "__main__":
sys.exit(main(sys.argv))

Python 3 version (necessary for platforms that have dropped Python 2, such as macOS):

#!/usr/bin/python3
import argparse
import http.server
import socketserver
import sys

class ThreadedHTTPServer(socketserver.ThreadingMixIn, http.server.HTTPServer):
pass

def main(argv):
parser = argparse.ArgumentParser()
parser.add_argument(
"--port", type = int, nargs = "?",
action = "store", default = 8000,
help = "Specify alternate port [default: 8000]",
)
parser.add_argument(
"--iface", type = str, nargs = "?",
action = "store", default = "127.0.0.1",
help = "Specify iface [default: 127.0.0.1]",
)
args = parser.parse_args(argv[1:])
server_address = (args.iface, args.port)
srv = ThreadedHTTPServer(server_address, http.server.SimpleHTTPRequestHandler)
sa = srv.socket.getsockname()
print("Serving http://%s:%r ..." % (sa[0], sa[1]))
srv.serve_forever()

if __name__ == "__main__":
sys.exit(main(sys.argv))
Well, GNU Hurd 2 is going to be released real soon now. It will fix all the issues with current OS architectures.

And than, at some point Google's Fuchsia will also surface in mainstream likely.

Both systems will bring capability-security. (You know, almost like seL4, only less secure). A technology that wasn't used until now, even it's available for almost 50 years, and would solve almost all security problems of computers. We could have had that in fact directly supported by hardware almost four decades ago… But the market didn't like that.

The problem is that there is and won't be any progress in computer technology. It's like that since at least one hundred years. We're buried in the von Neumann local "optimum" since than… As long as this does not change we're doomed to have crappy, inefficient, and insecure computers. The invisible hand will just prevent any progress until forever. (OK, our future AI-Overlords could change that possibly).

But who cares about the status quo? The market insists on it. So any attempt at resistance is therefore futile.

___

Please excuse the slight amounts of sarcasm. I just couldn't hold back.

And seriously: There may be some jokes hidden in here. If you try you'll recognize one or two of them, I bet… :-D
At that point I’m surprised people want to walk around at all. I would only venture into such areas without any exposed skin and with a bug net on a wide brimmed hat.
Yes, no Bias is good either.
The tool market is an example of that not being the case

Craftsman, Portal Cable, Bosch, Stanley, the list goes on and on, of once independent brands that have been bought out by mass marketers to sell lower quality tools under those names
Sure it's a problem, but it's very real. I have experienced an inverse correlation of town size vs. corruption: in my experience, the smaller the town, the more off-the-charts the corruption. YMMV.