skysight-inc/HackerNews huggingface dataset:
This one, probably:

# CORRECT
su root -c 'rm "$@"' -- "$@"
rm "one two" "three four"

The command is going to be evaluated by bash, with ARGV set to what you pass after the hyphens as arguments to the bash environment that su spawns. Passing the arguments to su using "$@" to encode your calling function’s ARGV ensures that they’re uncorrupted into the su-spawned bash environment’s ARGV, and then executing the literal command rm "$@" ensures that they’re uncorrupted into the spawned rm command’s ARGV.

You could fake this with printf %q if you tried hard enough but that’s a high-risk game to diagnose issues with, for example when you’re trying to figure out why newlines are reaching the command as the letter n.
The statistics show the average US student loan dept is around $35k/borrower. However there are some who go to out of state private colleges which can get expensive. And there are for-profit private colleges that are basically scams and rack up significant debt.

* https://www.experian.com/blogs/ask-experian/state-of-student...
Is true? Can you just run unlicensed tools at your work?
To be fair, they probably have more practical reasons for using Rust than simply to obfuscate the code.
SourceHut prohibits repos with large binary files
The per student cost has many contributory factors, the most obvious are:

* historically underfunded education for minority groups, disguising the reason for reduced cost

* In CA at least use to underfund many schools, until the state Supreme Court ruled that all children were entitled to equal education resources - literally same $ amount per student, which again significantly increased the average cost per student, so the story is more “rural and poor communities subsidized education of other areas”

* cost of living increasing at above inflation rates - teachers need to be paid enough to cover the cost of living, so if your funding increases at a rate lower than cost of living your actual funding has decreased.

That said the relevant measure is tertiary education - that’s the part of education we’re talking about, and that’s the part that is bound by legally mandated free access.
>>Are housing and transportation not valid applications of a student loan?

IMO, no

>> I would have effectively been barred from getting a degree.

One thing we need to get away from as a society is this belief that everyone should get and/or is entitled to a degree.

I am very much in Mike Rowe's camp on this issue, the idea that the default position is every child should spent until the age of 24 in schooling costing in general about $500,000 to "educate" a single child is a complete waste of resources.

We need to refocus the work force and have more opportunities for people that do not have a degree. The vast majority of jobs in society should not (and do not in reality) need a degree. Sure Doctors, Engineers, etc may still need that level, but one should not need a 100K+ Computer Science degree to write LOB apps in python, or to be a mid level manager in some office.
> A pedophile is a very specific thing. It's someone who is sexually aroused by underage children.

Specifically, it's someone aroused by prepubescent children.

> More specifically, it's someone who acts on those desires.

No, someone who acts on those desires (for underage children, whether a pedophile in the strict sense or not) is a child sex abuser. A pedophile is a pedophile whether or not they act on their desires, and it's possible to act on sex desires that make you a child sex abuser without being a pedophile at all.

> If someone goes to lunch with a pedophile, knowing they're a pedophile, to try and get $60,000, they're morally corrupt.

I disagree, whether using either the actual definition or yours of “pedophile”.

Now, if you know that he's a child sex trafficker (and thus that in some way the funds would originated from the sexual abuse of children), then, sure, there's a good argument.
> I’d say it is important to lock up those that hurt society.

That's part of how we got here. Prison is just one option. Fines and orders to curtail freedom is another. E.g. Court ordered monetary restitution and loss of one driver's license are examples.

Here's a short version of how we got here:

1. Make more crimes to felonies subject to incarceration.

2. Imprison more people.

3. Remove felon's right to vote to make change to the current system.

4. Build more prisons

5. Privatize the prisons because government needs so much more of them now.

6. The prison lobby now argues for more harsher sentences.

7. GOTO 1.
The average loan in the US is about the same: $29,800.

The range is quite wide though. Someone attending a state university or community college with grants and/or scholarships might have zero debt, and someone attending a private school through post-grad with no financial aid might incur $250,000 in debt.
A thread from 2015: https://news.ycombinator.com/item?id=9315152

2014: https://news.ycombinator.com/item?id=7381877

2011: https://news.ycombinator.com/item?id=2784515
The theory doesn't make any sense. The "article" [1] doesn't have a single equation, and it is published in "Physics Essays" that has an impact factor of ~0.25 and with other suspicious articles like "Mathematics shows that the Lorentz transformations are not self-consistent".

[1] http://physicsessays.org/browse-journal-2/product/1768-j-m-k...
> What does sending a man to the moon have anything whatsoever to do with whether college education should be free?

The economy of the 1960s-1970s was highly sophisticated. We not only sent a man to the moon, but we built the interstate freeway network, we had self-driving trains, we created the Internet, we invented UNIX, etc. In some ways, the economy was even more sophisticated than today's. Manufacturing employed a third of the work force, versus a tenth today. But in 1970, just 10% of adults over 25 had a college degree, and only half had a high school degree.

I'm exceedingly skeptical that the massive increase in college attainment since then (to 1/3 of the population) is actually creating economic value (versus shifting it around). If that hypothesis is true, we shouldn't have free college. That would just subsidize an unproductive activity. Indeed, we should probably take the opposite approach--discouraging "college inflation" (the phenomenon where jobs today require a college degree where identical jobs in 1970 did not).

I think it’s highly telling that a majority of college graduates have a “degree required” job, but only a quarter have a job related to their major: https://www.washingtonpost.com/news/wonk/wp/2013/05/20/only-.... I think that is strong evidence that the majority of college graduates are in “college required” jobs that don’t actually benefit from anything the learned in college. (Except insofar as college might teach general writing and analytical skills that should be taught in high school.)
Yes, to both statements.

However, duplicate submissions are starting to become shadowbanned (if the intent is to manipulate SERP), while having your site link on spammy sites is simply a downrank in relevant metrics.

The other corollary is that these sites will likely not have substantial enough metrics -- owing to the amount of outlinks they have to all sorts of low-ranked content -- and so posting your site on them for purely SEO purposes is misguided.

They're better used for organic traffic.
"Iron harvest" is such an adequate and awesome naming for something so dangerous.
Lime pulls its scooters out of 12 markets and lays off staff
I don't like this article. It comes across as being written with the intent of highlighting the elevation the author's status as a 'low-level wizard', while conveying as little as possible to the ignorant reader. From the scattered aspects of memory management it covers to it uses of unexplained magic numbers in its code examples, it comes across more as an unsolicited secret handshake than cogent, empathetic attempt to elevate others in the practice.

Disclaimer: I had a hard time following this article. I'm also (ostensibly anyway) not the target audience. I was at one point the primary person responsible for the memory management in the JIT compiler[1] used by OpenJ9, though I haven't done that for a couple of years now.

[1] That is, the memory used by the JIT compiler itself, not its interactions with the garbage collector.
Anybody have any good data as to what % of a $200K 4-year degree actually goes to pay faculty and classrooms, vs. stadium, $2m/year football coach, etc.?
There used to be this awesome resource called codepath. They took a developer from tutorials to actual intermediate/senior tier. It was a bay area hands-on thing but I would frequently watch their recorded videos or their online documentation. They still have some material up but a lot is gone (e.g. videos) and I am doubtful if things are up to date. But yeah .. that was awesome and I still point my engineers to what remaining resources they have left online.
Under Texas Penal Code 32.52(b)(1)(C), it is a misdemeanour to claim to have a degree (for purposes of employment/etc) if that degree has been revoked. So, if some law was to say that bankruptcy discharge of student loan resulted in degree revocation, and that law applied to you and you knew about it, then it would be a misdemeanour to use that degree in Texas.

Does this violate the 1st Amendment? As far as I'm aware, that provision of the Texas Penal Code has never been struck down on First Amendment grounds.

https://codes.findlaw.com/tx/penal-code/penal-sect-32-52.htm...
None. Football programs have their own income in the form of tickets, licensing, retail sales, broadcast rights, etc...
It might counterbalance a bit. It might create jobs for people. And having affordable childcare means someone might get back into the workforce and contributing taxes.
Things to do when hard work and motivation don’t pay off
Show HN: Friendly tool for writing game dialogue (we just hit 1.0!)
What I miss the most from the Steve Jobs/Ive era is the surprise, the push.

They were moving the walls. Now it just feels like they're making the walls.
What problem are we trying to fix here? So much faux outrage
If you ever get the chance to see them, the Improvised Shakespeare Company does something in the same vein, and it’s absolutely incredible.
Boostnote – A Note Taking and Markdown Editor Made for Coders
This is without knowing your existing background in programming, or your ambitions.

I was interested in something similar, many years ago, and realized that the app I wanted to write didn't call upon any of the internal resources of the Android phone. So I was able to write it in Javascript / HTML, and it runs on any platform in a browser.
Most students have nowhere near this much debt. The average undergraduate is accruing $15k in debt per year (https://research.collegeboard.org/trends/student-aid/highlig...) That means roughly ~$60k over four years.

Ending up with $100k+ loans is more common when people go onto professional schools (masters, law, medicine, etc), fields that should have higher earning power. Not everyone finishes, and for law not everyone that finishes gets a high paying job.

Over half of all student loan debt is held by those with advanced degrees (https://wcer.wisc.edu/docs/working-papers/Working_Paper_No_2...). Add in that only 13% of Americans 25+ have advanced degrees, compared to 35% with at least bachelors degrees.

Student loan debt is disproportionally a problem with advanced degrees, but it all gets lumped together when we talk about student loans.
Isn’t the goal of lists like these to make it so you can easily submit to all or a subset of them when you launch a product? Automating that process to save time does not make it spamming.
At my school (Georgia Tech) the athletic program not only doesn't take any money from the rest of school, it actually earns money for our school through licensing deals and ticket sales.
There will be a size below which fluid turbulence determines particle motion rather than particle density. This minimum size will increase for particles with rough surfaces or high shape drag coefficients, or both.

In air, this size is ~ 10µm diameter [1]. In seawater, it should be considerably larger because Reynold's number.

[1] https://www.sciencedirect.com/topics/engineering/airborne-pa...
A good video regarding this topic
https://www.youtube.com/watch?v=cjClTnZ4Xh4
A Global Reforestation Project Is How We Fix Climate Change
Yes, but if it fixes the issue then there's something off with NamedTemporaryFile and its __exit__. You mentioned the file descriptor was being closed by a GC run, right?
I found an instruction on how to use filters in order to make this less painful [0] which was helpful, to me at least (yeah, never bothered to investigate filters before ...).

The filters uses the gmail "query language" [1].

[0] https://yourbusiness.azcentral.com/automatically-delete-old-...

[1] https://support.google.com/mail/answer/7190?hl=en
the goal for a project like Oilshell (a shell with both a new syntax and support for standard bash syntax) would be to replace bash as the default shell in distros.

Right, that's the goal of Oil.
Come on, the student loan program has been almost entirely taken over by the government. It is an example of the literal opposite of privatization. Citing a progressive source here:

... federal student loans, which are the largest single source of college debt, representing more than 92 percent of outstanding student loan balances.

https://www.americanprogress.org/issues/education-postsecond...
I feel like "tech moguls" are the wrong type to expect this kind of interest out of. They got rich on either tools or workflows (i.e. CRUD), not intelligence/analytics/prediction. It's not the same mindset.

If anyone were to own a secret HPC cluster, it'd probably be a finance billionaire. Or the owner of a think-tank who made their money as a subcontractor for state intelligence agencies.
The strange thing [to me] is that, in a discussion of stack allocation patterns, sbrk is a deeply confusing red-herring.

'Little-s' stacks require bulk-allocated pages that are then carved up into object allocations as required, and de-allocated in last-in-first-out ordering. No alloca or sbrk required.
> Sure it is true. It isn't a tech journo writing a quick piece to get some clicks. I am quite cynical these days.

It might be such a piece and it could still be true.
I suppose I should clarify by "latest" that I mean a version of a piece of software that is actively supported and has all the security patches. Like it or not, the ecosystem is currently built around the assumption that you do want to have this, that nobody should still be running e.g. Firefox 34. The question is what the best way of shipping it is.

The conversation in the two posts you replied to isn't about whether you always want to be on the bleeding edge all the time, it's about whether it makes sense to have a centralized repository that contains the latest version on some supported channel, which isn't necessarily the same thing as the latest -nightly. I take the position that it is; that shipping a (potentially) different version of a library with every application is a bad approach which is often less secure and harder to maintain.
I'll be writing shell scripts till 2030 and possibly beyond. Once you learn all these tricks, it's very effective at getting Unix tasks done.
And, yet, you can't eat a YouTube song. So it gets very complicated.

There are many things that are more or less free, but a lot of basic essentials really aren't.
>...immoral...

There is no morality involved. The assertion is only that's it's more _productive_ to distribute resources this way. Productivity might be a multiplier but can not be innately good itself.
Ask HN: Recommender for RSS Feed
My RSS feed spams me with more content than I can read. I would like a plugin that prioritizes articles according to my expressed (and manually adjustable) preferences. Does such a plugin exist? If not, is there a reader with an easy to understand feed API that I can use to train my own?
An Empirical Study of Wireless Carrier Authentication for SIM Swaps [pdf]
How did you get 4 digits? Wouldn't that mean 1 in every 2^4 = 16 is prime? For 1 in every 6200 shouldn't it be 12 digits?
A very decent breakdown of some more modern obfuscation and deobfuscation techniques. It's nice to see some Rust getting used as well, I wonder if it's made things easier or more difficult for the krunker.io dev in the long-run.
Yeah, no. Trump and co claimed the cut would pay for itself, yet the deficit and debt continue to grow. Job growth is consistent since 2011 and year-over-year had no difference after the cuts. Same with middle class wage growth - all on the rise since that year.
Doctors aren't superhuman and med school doesn't filter out the gullible.
Luckily Digital Ocean and the Dokku project have pretty great documentation on their own. Here's the one-click image for DO: https://marketplace.digitalocean.com/apps/dokku

I just looked up DO's guides for Dokku and it seems like they're redirecting to the deploy page... that's a shame, they were quite good. In case it's just a bug on my side, here's the link: https://www.digitalocean.com/community/tags/dokku?type=tutor...

And Dokku's documentation, which is quite good as well: http://dokku.viewdocs.io/dokku/deployment/application-deploy...

For deploying, it works basically the same as Heroku except there's no GUI for it. Following Dokku's deploy guide top to bottom works perfectly. Look into Dokku plugins for things you might want/need (database support is a plugin, for example) and it uses a system called "herokuish" to allow Heroku buildpacks to work if you have weird stacks like React on Rails. Or you can bring your own Dockerfiles and avoid buildpacks altogether. Ultimately Dokku just manages Docker containers like a lightweight, single host Kubernetes.

Eventually I'm going to have to migrate to Kubernetes... Dokku's lack of built-in HA/DR/load balancing is its main drawback. But it's served me well for years with very minimal maintenance. I hardly ever even think about my infrastructure stack because it just gets out of the way. Which is incredible because it's so small and lightweight, built mostly with Bash scripts.
A decade of JD underground, and various other law school forums, yet there are still those that believe law school -- much less anything outside of Top 5 -- to be a worthwhile investment.
UFOs and Religion Connected
Since I live next to the Baltic Sea and is regular reminded how fertilizer runoff from surrounding agricultural is causing environmental catastrophe, maybe people should consume less products that use fertilizers. If the current trend continue we will see the Baltic sea turning into the dead sea in just a few decades. Fishing has almost already ceased to exist here because there just aren't any living things left, and the dead zones are expanding fast every year from a lack of oxygen.

Getting the world population to start eat food which is not actively harming the environment is not going to easy.
How do you sort by size in gmail?
Not only malloc, but the entire libc, as no functions in it explicitly guarantee that they do not call malloc and/or mess “your” brk range. You can guess it by what it does and ENOMEM in possible return status, but that is a stupid idea. sbrk is basically a remnant api and is now either an implementation detail of libc memory management or a fool’s crutch [1].

[1] https://opensource.apple.com/source/Libc/Libc-1272.250.1/emu...
The excellent Omega Tau podcast also has lots of interviews with people who flew or fly various planes including the F-16, F15, Tornado, F-14 and others.

https://omegataupodcast.net/

There is also an excellent episode where the host Markus, got to live his childhood dream and fly an F-16!

It's also excellent on science and engineering generally.
Announcing the Hubble Space Telescope Hidden Gems
Yup! Volume-based pricing is a simplistic way of charging different prices for different customer segments.
Jeez, imagine how easy society would be if we could actually create government programs 'purely for the public good'. I'd love to live in a world where everything didn't become as corrupt as it structurally can.

It's ironic that in much of the world this is the case. Specifically, in this thread the Canadian system was mentioned and the Australian system is similar.
Why wouldn't we use it? It's so effective at getting Unix tasks done. I'll be writing more bash than ever in this decade.
>a null pointer can also become an invalid non-null pointer pretty easy with pointer arithmetics.

Yeah but even then it's still easy enough to see what happened when you have a pointer to address 0x0000002F or some similar small pointer.
This isn’t a Linux thing, it’s a bash thing. The <() syntax isn’t using a named pipe — it is creating an anonymous pipe. But you can replicate the same functions with named pipes.

A quick search says that Windows has support for named pipes as an IPC mechanism [1], but I’ve never used them. But this is a Windows API. I am not aware for any way to do this with plain cmd.exe. You’re not the first to ask though... [2]

[1] https://docs.microsoft.com/en-us/windows/win32/ipc/named-pip...

[2] https://superuser.com/questions/430466/in-windows-can-i-redi...
Student loans being unsecured debt has nothing to do with their dischargeability.

Plenty of other unsecured debt is dischargeable, like credit cards.
It is banned already. It just has another name: fraud. Taking out a loan with the intent to not pay it is fraud.
Steven Sinofsky's CES 2020 Roundup
The opportunity cost would be better targeted and more thoughtful posts in verticals, "startup" is kinda a demographic but it's not always a great target market.
Aka an iPhone though they don’t really play flat files the same way. Only kind of a bummer in hindsight with nearly omnipresent data.
> If you disable this block of code everything runs fine (although the tests fail). It's kinda creepy that the NamedTemporaryFile is leaking - it really shouldn't...

My guess is the tempfile is leaking due to the attribute caching here https://github.com/python/cpython/blob/master/Lib/tempfile.p... . But that doesn't really explain why the file is getting closed twice. (Presuming it's getting closed twice as otherwise the file descriptor wouldn't be reallocated)

Edit: realised it's just attaching the closer object to the function not the full object so avoiding this.
> Every single person involved with sending people to the moon in the 60's graduated college

That's completely false. Yes, the engineers and mathematicians and astronauts had degrees. Most everyone else did not. The folks handling what we'd call HR today likely didn't. The administrative assistants certainly didn't.

> The reason there are more college graduates today in the US is that the US labour market requires more college graduates than it did in the 60's. Partly because the available jobs today have higher requirements, and partly because of credential inflation.

The burning question is how much is jobs today having higher requirements, and how much is credential inflation? I don't think the U.S. economy is intrinsically more requiring of college degrees than it was in the 1960's, and it's possibly less necessary today. 30% of police officers today have college degrees. I can't find a figure for 1960 online, but I'd be floored if it was more than low single digits back then. Has the nature of policing changed? No. You still don't need a college degree to be a cop. Even things we think of as “white collar” jobs don’t (and historically didn’t) require a college degree. Every single paralegal I’ve met has a college degree. But it was historically, something that required only a certificate. The job hasn’t changed. But it’s harder to find smart people who didn’t go to college, so college gets required as a filter.

Look, you don’t need a bachelors degree to be a nurse (even an RN can qualify with an associates degree). Or a computer programmer. If those highly skilled jobs don’t require college degrees, then you don’t need half of everyone going to college.