skysight-inc/HackerNews huggingface dataset:
Stanford actually makes money from paid online courses offered through its Center for Professional Development, so that might be a reason why free lecture videos are harder to find.

However, besides the paid offerings, there still seem to be a number of free Stanford courses offered online via edX and listed at online.stanford.edu, and several lecture sequences are still available on youtube (intro CS sequence, AI, algorithms...) Several course web sites offer their written materials online as well (e.g. cs107e.github.io).

Neither paid nor free online courses are a threat to Stanford's (or any major research university's) business model of selling expensive education and credentials to students and their parents, and expensive (though cheap and very underpaid relative to industry) research to the government, or to other lucrative "university" businesses such as professional sports, medical services, property ownership of retail and industrial parks, etc..
With some prompt engineering, you can get Codex to produce better results. In these examples I wrote up to `makeUpper`, Codex wrote the rest (with temperature = 0):

// JavaScript one-liner to make the text of element with ID athing uppercase
const makerUpper = function(id) {
document.getElementById(id).innerHTML = document.getElementById(id).innerHTML.toUpperCase();
};

vs

// JavaScript one-liner to make the text of element with ID athing uppercase while following all security best practices
const makerUppercase = function(id) {
const element = document.getElementById(id);
element.textContent = element.textContent.toUpperCase();
};
A 3.5mm jack isn’t going to be easy to fit into a tablet that’s 7mm thick. It’s about a millimetre thicker than USB-C.
Show HN: 2kSHOW – $2k Case Study
Sure. And instead of writing code ("running") you can operate Codex ("drive the car"). Instead of being a runner, you'll be a driver. And gradually the car will drive itself, and you can sit and watch.
Most of the people who are against marijuana distribution in the South are in the baby boomer crowd, who upon failing to live up to the standards of their parents decided that sophist puritanism was necessary in order to redeem themselves.
Well, have fun guessing 2^64 possibilities. YouTube lists even private videos "secured" using 11 BASE64 characters (66 bits in theory, but they seem to use just 64 bits). You can watch Tom Scott explain it: https://www.youtube.com/watch?v=gocwRvLhDf8

CG-NAT doesn't really prevent geolocation. Better services will still pin-point you to the nearest city. There are perhaps easier ways to get your private info or your money - phishing and ransomware seem to be still very popular. Don't have to hack games that only relatively few people have. It is more profitable to attack a bigger market or more wealthy institutions or companies in foreign countries. Also, if you hack the central game server, you will have a lot more victims... Choose your poison.

I guess, there are no games or other software that cannot be audited in high security installations. At home, having a work computer and a game computer (or a VM with GPU pass through or whatever) might be a safer choice in any case independent of IPv4 or IPv6 usage or the quality of your firewall.
Also writing. I don’t believe that it’s possible for someone to be a clear and concise programmer unless they’re able to write their native language clearly and concisely.

This would likely require teaching students at least basic logic. This was entirely absent from my school experience.

It’s a hugely undertaught and undervalued skill, IMO. Before we start shoehorning CS into high school curriculums, we should consider laying these foundations first.
This is fairly common across the US (based on your use of the metric system I’m guessing you’re not familiar with US cities.) About the only areas with buried lines are high-density urban neighborhoods and wealthy suburbs.
Near-Death Experiences Can Scar Animals for Life
The people paying the highest tuition are on student visas with similar constraints. I totally forgot about that, foreign tuition is an even larger profit motive to restrict distance learning.
To me, a plethora of “Zillow owned homes” in an area is a negative signal for pricing outlook. Zillow is a non-user of these properties and therefore represent future selling pressure in the neighborhood.

I think they’re welcome as a market participant and, if they’re particularly good at pricing properties, they might be able to make some money by exploiting inefficiencies in the market.

I think it’s far more likely that they’ll be a net donor to most markets from their algorithmic operations (in trading terms, I doubt they’ll exhibit positive alpha from purely algorithmic buying).
If they don't actually have any $5k trucks but claim they do in order to lure people in to try to sell them $25k trucks that would be a bait and switch that would run afoul of the law in several states. The FTC would probably also have something to say.
My understanding is that it's only economical to bury utility lines when there is frequent enough inclement weather to bring them down, which definitely isn't the case in San Jose.
Monotropa uniflora, the ghost plant (also known as Indian Pipe) (2002)
It’s a blatant copyright violation. And I don’t have an FB account and was able to read the article just fine.
Interesting, tried myself on a test VM

~/test$ time for I in `seq -w 1 1000000`; do touch $I; done
real 27m8.663s
user 14m15.410s
sys 12m24.411s

OK

~/test$ time ls -1f | wc -l
1000002

real 0m0.604s
user 0m0.180s
sys 0m0.422s

~/test$ time ls -f | wc -l
1000002

real 0m0.574s

~/test$ time perl -E 'opendir(my $d,".");say while readdir $d' |wc -l
1000002

real 0m0.597s

All seems reasonable. Directory size alone is 23M, somewhat larger than the typical 4096 bytes.
Haha, reminds me of when Pepsi had the 6th largest military force in the world.

True story, see below.

https://nickyoder.com/5-minute-history-pepsi/
Also, …, not .. or .... (or ... for that matter if you're not using ASCII or something).

Yes, this really does bug me.
I would assume they do
Those solar panels are mounted in a way to get the worst possible efficiency (aside making them facing down). I'm very skeptical of the outcome, or maybe they're incredibly oversized for the task so that even a couple of them getting a fraction of the sunlight can make the vehicle work. If he mounted them on the roof they would work a lot better by taking more direct sunlight, and he would save a lot of money by using just one or two for the same performance.
Kudos to the kid for actively making stuff though; most of his western peers would waste all day tapping on a phone while he is using his brain to solve problems.
Reminded me of this classic recording [0] of Verizon Customer Service failing to understand the difference between cents and dollars.

[0] https://www.youtube.com/watch?v=MShv_74FNWU
Enough already. Just legalize it federally and pinch it off.
Unfortunately HAProxy doesn't buffer requests*, which is necessary for a production deployment of gunicorn. And for anybody using AWS, ALB doesn't buffer requests either. Because of this I'm actually running both HAProxy and nginx in front of my gunicorn instances—nginx in front for request buffering and HAProxy behind that for queuing.

If anybody is interested, I've packaged both as Docker containers:

HAProxy queuing/load shedding: https://hub.docker.com/r/luhn/spillway

nginx request buffering: https://hub.docker.com/r/luhn/gunicorn-proxy

* It does have an http_buffer_request option, but this only buffers the first 8kB (?) of the request.
Is this from the article?
However, if there's someone across town that wants the bike and is willing to pay more, two parties have lost out including yourself. You've left money on the table.

Back to the original problem, realtors don't care about this because at 5% commission if the price is $400,000 or $420,000 the difference is miniscule. It's prioritizing velocity over price.
I bought from carvana 2 years ago because they had:

A. Lower interest rates than the local credit union or the banks, and

B. Better prices on the vehicle I wanted than anyone else in the area.
How Application Architecture Has Evolved
And at what point does FB use their considerable might to replace Slack's giphy bot with one that FB makes?

The article basically says that Slack made a special case for Giphy, and so they decided that Giphy in particular doesn't get the same treatment as your typical slack bot or slash command.

So, all FB needs to do is block that integration and either force their own or negotiate a new setup with slack. "You have a command called giphy and giphy is our trademark, so stop."

The article you link to explains all of this, so I don't think you've refuted my point, really, except to say that it doesn't happen right now.
Funny reading this comment after reading the article

> So many options meant plenty of levers to twist around, but the lack of clear documentation meant that we were frequently left guessing the true intention of a given flag.

And then reading your link, they complain >inside the docs< that the docs aren't complete. I have no idea what to believe anymore :D
If you are going to have a directory with millions of files, probably there's one more interesting thing to consider.

As you might know ext* and some other FSs store filenames right in the directory file. Means the more files you have in the directory, the bigger directory size gets. In majority of cases nothing unusual happens, cause people have maybe a few dozens of dirs / files.

However if you'll put millions of files, then directory size grows up to a few megabytes in size. If you decide to clean up later, you'd probably expect the directory size to shrink. But it never happens. Unless you run fsck or re-create a directory.

That's because nobody believes the implementation effort really worth it. Here's a link to lkml discussion: https://lkml.org/lkml/2009/5/15/146

PS. Here's a previous discussion of the very same article posted in this submission. It's been 10 years already :) https://news.ycombinator.com/item?id=2888820

upd. Here's a code example:

$ mkdir niceDir && cd niceDir

# this might take a few moments

$ for ((i=1;i<133700;i++)); do touch long_long_looong_man_sakeru_$i ; done

$ ls -lhd .

drwxr-xr-x 2 user user 8.1M Aug 2 13:37 .

$ find . -type f -delete

$ ls -l

total 0

$ ls -lhd .

drwxr-xr-x 2 user user 8.1M Aug 2 13:37 .
We went to where North Korea tricked their agents for Kim Jong-nam's assignation.

I expected some sort of back alley brothel, but it was just the number one spot on Tripadvisor.

I think like all these things don't get stuck into a rut thinking the people doing this stuff are amazing or smart. You just need belief in yourself, and probably not even that. I bet Kim Jong-un top assassins had imposer syndrome too. (The on-ground recruits thought they were on a game show)

The Day of the Jackal movie (1973) was good for the work ethic part I thought, I haven't read the book - https://www.imdb.com/title/tt0069947/
Thank you. We need more of this. Too many "how-tos" are written with too many assumptions and not enough common sense, straightforward explanations.

I've set up and run all of these, but that doesn't mean that it doesn't frustrate the heck out of me whenever I have to deal with them. A good, handy reference like this will be quite useful.
But that’s a complex program, with command-line parsing, locale usage, etc. No wonder it has bugs :-)

https://en.wikipedia.org/wiki/IEFBR14 was a one-byte program, but that had a bug, so it had to be doubled in size.

And yes, it still exists (https://www.ibm.com/docs/en/zos-basic-skills?topic=utilities...). I wouldn’t know how large it is nowadays.
Codex is never gonna let you down.
> it’s also linear time

You raise an interesting point. It got me thinking about how big-O notation has failed us in some ways: it teaches us to ignore constant factors.

In big-O, an algorithm that makes 1000 comparisons per element is no different from one that makes a single comparison per element. They are both linear time. But you can't deny that one of these will likely take 1000 times as long as the other.

Of course, like you, I favor simple and readable code over grotesque code that is hard to understand and mentally verify.
New film on “the first female Pinkerton detective” being produced for Amazon
That’s not that hard in an FP language. I routinely write code with multiple structures referring to the same thing. My usual solution is to have an identifier for the thing that indexes into an array or map, and then the other structures contain that ID instead of the object itself. It’s basically a pointer like I’d use in any other language. The details and choices for how to represent the IDs and structures is usually application specific, but that’s true in any language: how you do something should be the choice that best fits your problem. There isn’t anything about functional programming that makes it impossible or particularly difficult.
Nobody on the left wanted to be involved in Afghanistan in the first place, and the continuation of Trumpian isolationism means that few on the right want anything to do with it either.

It's going to be seen as ultimately regrettable, but people of that region have long showed that their idea of what government is and should be doesn't mesh with our own.
Is there a right technique for hopping (literally) out of bus like that?
I've found the PineTime to be extremely well-built and comparable to the original Fitbit Versa in terms of hardware quality. No dead pixels. For $27 plus shipping, it was an excellent deal.

For those looking for a buying experience similar to traditional retail stores, Pine64 previously announced that they would launch online stores selling products with longer warranties and broader customer support at higher price points:

https://www.pine64.org/2020/12/02/pine-store-community-prici...
I've looked at some demo's of OpenAI Codex and it's pretty impressive start for sure. Something like this tied into R and a whole level of data analysis would become far more accessible to those with business knowledge who don't really want to learn the nuances of tools.

But I must say, having lived thru the 80's fad of code generating sudo 4gl's, the code this produces is pretty darn good indeed.

Now when something like this can handle a Google coding exam - that's going to be an epic milestone. Though old coding exam questions would equally offer up some great material to push this thru it's paces.
I think what matters is the intent. Here the intent is to compare against strlen at every turn of the loop.

When the compiler is optimizing it might very well realize that the parameter to strlen doesn't change and the output can be saved first.

If the intent is to compute the length only once, then we can save the length in a variable.

Of course; as others have pointed out; there is no need to call strlen at all in this example.
I once had a directory on OpenZFS with more than a billion files, and after cleaning it up with only handful of folders remaining, running ls in it still took a few seconds. I guess some large but almost empty tree structure remained.

https://0kalmi.blogspot.com/2020/02/quick-moving-of-billion-...
Ummm... DKIM is NOT a one-liner in DNS. It requires actually setting up, well, DKIM. The DNS part is simple, yes, but the DKIM isn't, and equating it to a one-liner in DNS is just simply not true.
That's what I do, local.domain.com.

I also have a wildcard le cert for *.local.domain.com.
Yes this. Every hour on the phone is an hour less salary for many people.
> you're intellectually flagellating yourself

There's nothing special about newsroom journalists. Like somehow they're the only people on the planet with deadlines, or that everyone is waking their editor up at 3am with that important story that just needs to make morning print.
Yikes!! What are they going to do when the shortage ends? They'll have a bunch of loans with little collateral.
> Note that I wrote "in any first world country". I'm sorry if your country does not qualify as such.

> I'm not being flippant here.

Sorry to say, (Canadian here), yes you came off as being flippant. The issues with Flint seem to be larger than my understanding, but it was not the least contributed by issues and injustices with the demographic (majority black) and the lack of federal aid. Saying it's not a first world country isn't wise of you for these reasons and more.

> Then the best solution is to keep paying for bottled water, or to move.

Obviously not the best solution, just a bandaid over the problem in lieu of the fact that "Bottled water is 3,500 times worse for the environment than tap water".

> you can't trust the country where you live to provide you with access to clean drinking water, then you have literally failed

No. The government around the citizen failed. Saying the the victim failed is quite telling of your assumption that the individual is to blame if the government has in some capacity, in some municipal area, failed.

> literally failed the UN's Sustainable Development Goal no. 6

The goal is tied to a future date, you cannot fail it by definition in 2021. I'm sorry to say, and I'm also not being flippant here, basic math and logic is taught in "first world countries", your comment here is obviously a failure of such, and I'm sure, there's probally a UN goal I could quote as well. See what I did?
Afghanistan intervention was only popular when it was about getting "revenge" for 9/11. We've wasted a generation's worth of wealth on that place.
Sure, chess is a game. The taxi drivers will drive their taxis for fun, too, and you can write code by hand in your free time (just for fun).
Yeah exactly, because the only power of a university is that they keep the material they teach top secret. Just imagine if you could just go into a store and buy textbooks! What a crazy world that would be! Everyone would be a genius and have every degree imaginable!
> My university educated in laws in the UK are doubting the outcome of elections in the US.

Democracy is like science. If you don’t constantly doubt at least a little bit and check the outcome continuously, but instead just trust blindly, you’re doing it wrong.
Correction: Solid’s dom-expressions compiler is more directly coupled to DOM APIs than I remembered. In hindsight this makes sense given the design, but I imagine it could provide the level of abstraction I misremembered. It would probably harm performance without some second-pass build time inlining.
America has been losing wars for most of my life and no one has resigned. Why is this one any different?
Can you get a degree from them online though?
Thanks. That essay is really interesting and I haven't seen it on HN before.
I bought the earlier edition and I couldn't say enough bad things about it.

- interface wasn't snappy

- screen was merely ok

- can't use Google apps

- can't use third party home screen apps and the Amazon one is the worst one ever created for Android

- hassle to root
>An elephant in the room is worth noting: democracies were built to avoid dystopias

Or so the commoners have been lead to believe. Those in power, in a democracy or otherwise always knew that the masses can be manipulated in their favor. Now a 'democracy' does have the advantage in providing an illusion to the common citizen that they are in control, which actually favors those in power because now they need to worry less about the masses revolting.
That’s the way we ought to be working. If you don’t write the DSL, you’ll have to macro-expand the DSL in your head and write a bunch of boilerplate which everyone will be forced to try to reread and maintain forever.
You could try the World of Echoes Facebook group ran by Francois K, would be surprised if you didn’t get that track ID in there.
Ask him about some .nl domain he is the owner of.
Don't you think he has them on the roof as well? While not optimal, he will get some power no matter what direction he's facing, and that may be enough for the small task. Sri Lanka is ridiculously sunny.
SCP UI for macOS
Upload and download files to a server much more quickly.
How to write fast Rust code
I really don’t get why this hasn’t happened yet.
Let's be honest here... there are a lot of better lectures and books than college gives you available online, and with some piracy, even free.

Colleges now give you three things:

- access to college stuff, from professors to machines, labs, etc

- access to peers (networking)

- valid diploma that you can use to find jobs.
The California Bay Area is earthquake prone, so leaving power lines exposed and above ground is pretty common. You'll see similar in Japan as well.
The benefits with a regular bank is I can reach the support easily. I can literally walk into a local office and had thing sorted out. You cannot do that easily with online only bank. Another is I know the bank isn't going anyway. Look at a few old post on hacker news about online-only bank that are being acquired and migrated to another bank.

Also, a bank like Chase can give you upto $20,000 credit card for a new a start-up. I feel like they really setup to help you bootstrap.
I think the main thrust of your objection is that you believe I was claiming this makes sense for any ISP when I was instead saying it makes sense for lots of companies providing services on the Internet

Still, while we're here:

> This is just silly. If you are an ISP then you already have an IPv4 allocation.

Due to exhaustion in fact you can't get new allocations in IPv4 in most of the developed world. If you want to expand, you're going to need to buy addresses on the open market for that sort of $40 price we talked about.

> ... Once you have your allocation, RIR fees are the same regardless of IPv4 or IPv6 allocations.

Nope. Let's take ARIN, suppose you're a large international company, hundreds of local corporate networks. With IPv4 this is quite a struggle, maybe you can get away with a /17 for which ARIN will charge you $4000 per year.

But with IPv6 this is easy, you'll qualify for their "3X-small" category with a /40 at only $250 per year, even if you choose a relatively wasteful address layout.

It gets worse! Unless you already had that /17 from years ago, chances are you had to cobble the addresses together from several distinct allocations. ARIN charges $150 per block aggregated in this way, if you need a dozen blocks that's $1800 extra because of the fragmentation. In contrast IPv6 isn't fragmented, it was deliberately allocated sparsely so it's easy to give you adjacent blocks to grow. Not that they'll need to when you're just an international company with a few hundred sub-networks, IPv6 is so wide.
Vice: 40M People Rely on the Colorado River, and Now It's Drying Up
How deep up corporate America’s ass do you have to be to object to someone posting the text of a Facebook post?

How will Facebook ever survive without you to defend it?
Travel chaos will last well beyond summer
> There are no standard integer types that take 15 (decimal) digits to represent

Nitpick: that is irrelevant. The code reads in at most 14 characters.

> Why would you use fgets() instead of just gets()?

You don’t use gets because it doesn’t exist anymore. It got removed in C11 (it rightfully was deemed so bad that backwards compatibility was sacrificed). You can use

char *gets_s( char *str, rsize_t n )

, though.

(https://en.cppreference.com/w/c/io/gets)
I had no idea. Are there more protocols for live vehicles? Just so I know what to do!
My high school (and middle school too) was big enough that the time it took to walk from once class to my locker and the to my next class too longer than the time we had in between classes. So I had to carry a lot more shit than I wanted to. Some kids had classes and lockers in better locations. Anyhow, your attitude stinks. Let people make their own choices what they carry and don’t call them hobos without grace because you can’t understand why they might choose to carry some of their things around.