skysight-inc/HackerNews huggingface dataset:
It looks like you're storing an unsalted hash of the database's password in the plaintext header of the database itself. Is that correct? If so, this is a really really bad idea
Millions of people have suddenly lost their jobs. Millions are ordered to shelter in place. Millions are going to go stir crazy. Child abuse and spousal abuse will increase. Mental health issues will be exacerbated. I have no desire to contribute to someone’s anguish or anxiety in such a time as this.

If they fail the next course because they don’t know this semester’s content then they’ll probably need to retake my class. Which is what they’d have to do if I fail them. If they pass the next course then they shouldn’t fail my class regardless of the work they put in this semester.

I teach mathematics.
Most background jobs are run by cron.

Cron has the capability to set environment variables. The scripts/programs can check those variables and then have the ability to adjust the type and quantity of logging according to whether they are run as cron jobs or from the command-line.

The logging of these jobs goes to a specific log file which is rotated daily. The daily logs are kept for 10 days before being discarded.

For instance this is a cron entry. Note the logfile argument as $1.

# update BAK_MONTHLY on 2nd of the month only
24 09 2 * * /home/jvs/binscripts/rsync.bak.monthly.xpz /var/log/cronlog_jvs

This is cron setting variables in the crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# tell cronjobs that they are running under cron
CRONJOB=CRONJOB
# specify the logfile for cronjobs output
LOGFILE=/var/log/cronlog_jvs
# expand the path
PATH=/usr/sbin:/sbin:/usr/local/sbin:/usr/bin:/bin:/usr/local/bin:/home/jvs/binscripts
#
# m h dom mon dow command

and this is a cronjob template

#!/bin/bash
#jvs script
#
# DATE WRITTEN ......
#
# This crontab item does ........
#

#Set variables
TARGET=
NOW=$(date +%y%m%d)
DAY=$(date +%d)
LOGFILE="/tmp/${HOSTNAME}.crontab-item.log"

if [ "$1" != "" ]; then
LOGFILE="$1"
fi

touch "$LOGFILE"
chmod 666 "$LOGFILE"

echo -e "#######################################################\n " >>"$LOGFILE"
/bin/date +"%F %H%M" >>"$LOGFILE" 2>&1
echo "$0" >>"$LOGFILE"

### ***************************************************
### ******* Guts of crontab item goes here ********
### ***************************************************

# Say when this item completed
echo -e "\n$0 Completed at $(date)" >>"$LOGFILE"
Relevant: https://news.ycombinator.com/item?id=22711661

I have only heard of kiwifruit going unharvested. We’ll all soon know (if product has no coolstores, and assuming farm to supermarket delay is about a week).
> Pretty pointless as said page fault would occur no matter how you access the string.

When did I dispute this?

> Besides, the page in question would very likely be already present.

Really? How are you so sure? I guess you can just abandon all notion of virtual memory and mmap then. 'Cause it ain't gonna happen.
I know right..
The average user didnt care about patriot act when it was introduced, slowly little by little government is taking away our rights :(
Successful solo digital entrepreneur here. Millionaire Fastlane by MJ DeMarco is the most important book I've ever read.
Those who have had a chance to visit the Frick will remember that across mantlepiece from Holbein's Cromwell is Holbein's Thomas More.
How to run Spring Boot on your server using tmux
Eocyte Hypothesis
[EDIT] he’s got it right now.

That isn't correct it's actually the other way around. Martin Luther king day is in January and Presidents’ Day is in February.
YouTube's Copyright System Isn't Broken. The World's Is [video]
Doesn’t it prosper everyone? What happens if the workers from the poorest countries aren’t allowed to work in the wealthier countries? Surely they and the wealthier countries are all worse off? “Non-zero-sum game” and all that...
3) Gradient mesh fill

4) Flexible guide lines for free 3D perspective drawing

5) Things are rasterized, which are for sure supported in SVG or PDF (well done, inkscape)

6) (optional) TeX export
TFA says this:

> The so-called EARN IT bill, sponsored by Senators Lindsey Graham (R-SC) and Richard Blumenthal (D-CT), will strip Section 230 protections away from any website that doesn’t follow a list of “best practices,” meaning those sites can be sued into bankruptcy. The “best practices” list will be created by a government commission, headed by Attorney General Barr, who has made it very clear he would like to ban encryption, and guarantee law enforcement “legal access” to any digital message.

If that's accurate, I don't believe that EFF is overstating at all.

However, none of this particularly frightens me. That's because I assume that any communication where I don't manually encrypt stuff locally, using well-vetted open-source software, is vulnerable. And I also assume that any entity that operates openly, and is vulnerable to legal, criminal or financial pressure, cannot be trusted at all.

So if all this authoritarian bullshit comes to pass, everyone who uses vulnerable tools will be pwned. That's sad, and perhaps it'll be worse than now, but there's arguably no reliable way to know if so, and by how much.

More importantly, there'll be an opportunity to move more online activity and communications to truly secure channels, which are far less vulnerable to compromise. You could consider that an expansion of criminal enterprise, but that's how things work.

There are some signs that the Tor Project is getting with the program. And there is actually a new onion-routing network, Loki, which looks promising. I've been using their messaging app, Session, and it's quite usable on Linux and (I gather) Android. Perhaps I2P will attract more users too.
I honestly might just pay the $10/yr just to support them but bitwarden_rs is dead simple to deploy if you already have a VPS sitting around for other stuff.
>For instance, identical twins raised apart are not always concordant for mental conditions,

The very same twin studies prove my point...no one is saying every person with Gene X behaves a certain way. But we do know for a fact that, say, person with Gene Y may be X% more likely to exhibit behavior Z.

They also strongly suggest that intelligence is heritible.

Do you also want to tell me that because twins don't look 100% identical that their appearances aren't correlated at all?
You mean the same government that fly's sting rays around?
Gets illegal pings on cell phones from service providers?
The government that put warrant-less tracking devices on cars?
Nah - that government is cool bro. They definitely have our best interest in mind.
> without a DI framework, all classes are (presumably?) instantiating their dependencies directly. ... I've only ever worked in Java so maybe things are different in C-world,

Well, for one thing, there are no classes in C. :) It is possible but unfun to emulate them with function pointers. Iiuc, little of the Linux kernel is written in that style.

Also, FYI, for many years we did DI without frameworks, using the factory pattern and other techniques. It wasn't always fun but it can certainly be done without Spring or whatever the new thing on the block is.
I'm a litte skeptical (Pentax with Sony sensor owner FWIW). Here's DPReview on D850 vs a7RIII

> If anyone tells you that one camera is better than the other, for any particular activity based on image quality, you should laugh at them. In their face, if possible.

https://m.dpreview.com/articles/4000816220/nikon-d850-vs-son...
Thanks. It was pretty easy.
Extremely anecdotal but in Australia we are seeing people from the retail sector looking at farm work, often the domain of backpackers who are now.not traveling.

It is a rebalancing so will likely come with some issues but if cafes/stores etc remain closed perhaps we will likely see these workers head to farms and balance the issue.
A summary: https://broadbandnow.com/report/municipal-broadband-roadbloc...

The law (there might be others though): https://app.leg.wa.gov/rcw/default.aspx?cite=54.16.330

It looks like I may have been wrong about populated counties? Not sure.
I’m stunned you believe they have a choice. Choice is one of the greatest fallacies of modern economics, responsible for extreme harm.
Basically it comes down to

Distributed logging:hard

Distributed debugging: hard

Distributed versioning: hard

Distributed transactions: very hard

And on 95% of projects these problems aren't worth solving for the benefits of microservices.
Oof. Thanks.
You snark, but what happens when EV adoption picks up and suddenly those houses need to move a lot more electrons?
If your motivation for starting a business is to have more time, then I would recommend Financial Independence Retire Early(FIRE) instead.

A good place to start:
https://www.mrmoneymustache.com/

I used to be just like you. I wanted to start a business so that I wouldn't have to work for anyone! I'm going to be my own boss!

The reality is that instead of working for one boss, you are going to be working for 1000 bosses. Unless you like sales and customer support, you are going to be miserable.

The odds of having a successful business are low. And even if you do succeed, you are going to have to keep working anyway. It's not like you build it once and forget it.

On the other hand, if you have a six-figure job, you can retire in 5 to 15 years depending on your lifestyle. There is no uncertainty. No emotional roller coaster.
This fail-proof path will give you a peace of mind.
For example, consider:

for (i = 0; i < 10; ++i);

some C compilers issue a warning for the trailing ; as do some static checkers. If the programmer intended that, the warning is a false negative because the C language rules allow it.

However, such a construct is a hard error in D. Whether you meant it or not, it is not allowed. This is what I meant.

A construct in D that would pass is:

for (i = 0; i < 10; ++i) { }
>the genes linked to various mental differences and pathologies are pretty much all the regulatory type,

So are you suggesting that the "regulatory" type aren't inherited like normal genes? Why do we take it for granted that evolution stopped above the shoulders once we became homo sapien?

>I don't think you can tell anything about what a branch or comparison instruction does by looking at the instruction itself.

But you're not inheriting random branching statements, I imagine they tend to appear in certain regions of the genome and there influence similar pathways...which would make them valuable points of inference as well, just noisier.
Netherlands provide seeds to all Europe and Spain buy a lot of their seeds to them. They do extensive research on vegetables
at this point this is the New main topic

médical research and logistics have been reorganized, now critical economic structure has to be ensured

do countries list immunized people to know who can fill in rapidly ?

should people learn how to ration more ?
There are plenty of wood stoves available these days with what are effectively catalytic converters. Wood stove particulate emission can be a lot lower than it used to.
I sure want to believe the folks that flagged me are not into human sacrifice.
The manual said 1 year, and the ac adaptor/ballast has an LED status light to indicate power and bulb failure.
Ask HN: Pivot early-stage startup in light of upcoming recession?
Just a few weeks ago I decided to start a new business in the employee benefits space. I managed to get a few interested companies yet COVID-19 changed everything.

All leads signaled they have more important problems to solve right now which meant a hard hit for my early-stage business.

My guess is that a recession is very like to come and my product might not be incredibly relevant for months (years?) to come.

I'm looking into pivoting the company but I don't know what direction to look at. I'm a non-technical solo founder with a general interest in B2B, SaaS, messaging and marketplaces.
Not to mention the amazing iOS app which syncs with Github and lets you add OTP codes by scanning QR codes.
It may seem a little overly paranoid, but I went to the store a couple of days ago and bought enough new fishing line to re-spool all of my reels (which have sat mostly untouched for nearly 20 years, as I'd drifted away from fishing for fun), and some new lures, bobbers, etc. And tomorrow I think I'm going to go out and do a little fishing, just to make sure I still remember how, and to make sure my gear all still works.

I don't necessarily expect to be reduced to needing to fish to feed myself, but at least I have one backup plan if all else fails. Now, note to self... go order that roll of snare wire that I meant to order months ago, and forgot...
r/programming, r/math, r/physics, r/compsci. All of them don't have nearly the strict moderation you practice here and all of them are great places to have substantive discussion.

I'm gonna repeat what I've said many times: by enforcing a strict decorum what you actually accomplish, and I mean exactly you dang, is give the air/pretense of intellectualism without any of the substance. Hence the constant barrage of hypercritical (but superficial) disparaging comments. It's like any other system that privileges one type of language - those that can deploy it effectivity feel empowered and emboldened because they feel they are the defacto ethical/just/concordant.

If you wanted proscribe things for the betterment of the community you should proscribe content (e.g. hate speech) rather than language.

edit:

this comment is the exemplar par excellence of what your rules produce:

https://news.ycombinator.com/item?id=17034295

for many hours it was the highest ranking comment on that post. it is pure invective cloaked in "constructive criticism". it took me pointing outing how absolutely rude it was for it to start bubbling down. i'm not a hero. i'm simply pointing out that it is absolutely necessary to point out when someone is being rude.
in the 80s, alongside ibm, cray, heimdall, amdal, hitachi, etc etc you had the volume generics - intel. the generic overtook the custom, enough so the revenue and economy of scale won big. it came accompanied with a sci mindset of functional perf, * / ÷ / ^ / sqrt, rather than tps or $/transaction.

The big iron was a product of large-data-volume business problems - payroll, airline reservations, insurance quotes, credit cards, catalog order stats.

But comp-sci mostly put FLOPS ahead of TPS.

hands up who's heard of data flow programming
idk why they didn't publish an exported postgres table directly to github, instead of the rails app wrapper
The grand majority of code in the Linux kernel will never be hit by booting it in a QEMU with init=/bin/shutdown. The pure line coverage of these builds is probably like 5 or 10 %.
According to the libsodium docs:

>The string produced by crypto_pwhash_str() already includes an algorithm identifier, as well as all the parameters (including the automatically generated salt) that have been used to hash the password.

https://libsodium.gitbook.io/doc/password_hashing/default_ph...
Ummm, "illegal" does not equal "not used". It just means "not disclosed, and obfuscated through parallel construction".

I mean, do you really think that a military intelligence agency operates under domestic law? And from what I've read, need to know structure within the NSA doesn't map to command/reporting structure. So there may be components that operate ~independently as deep backup.
>> Besides, the page in question would very likely be already present.

> Really? How are you so sure?

It was in a BASIC interpreter. Most of the time string needle in a haystack search is done, haystack is relatively fresh, almost certainly on a page that is present. Might not be in CPU dcache, but that's another matter.
The user is given the choice to use their email, or a proxy email, in the modal that Apple provides on the system side.
The root of this issue seems to be a regexp function (preg_match()) in PHP coupled with an exec() of a variable that was not properly screened, coupled with an 'sudo' inside of the exec(), e.g.:

exec("sudo pihole -a addstaticdhcp ".$mac." ".$ip." ".$hostname);

and/or

exec("sudo pihole -a removestaticdhcp ".$mac);

So three places to audit:

1) Regexp's and related complex high-level functions;

2) Calls to exec()

3) Uses of sudo within an exec()
That sounds like a lot of work... I am entering passwords on websites 10-30 times a day... that would add up.
Last time I checked - I'm not sure how long ago that is - llvm didn't detect double frees etc statically. There's an annotation framework for locking though, which I hope to play with more.
Vendomarch: New App for Farmers’ Markets Delivery
It’s not a secret that farmers’ markets are healthier than grocery food stores. If you eat the food sold at a farmers’ market vs that sold at an average grocery store, my bet is that you’ll live at least 5 years longer in the former case and generally be healthier and thus happier. Grocery food stores are open almost 24/7 so you can go there when you have the time, but farmers’ markets are open sporadically. Vendomarch removes this inconvenience by delivering the produce the next time it comes straight from the farm. Vendomarch https://vendomarch.com delivers fresh produce from local farmers’ markets at the tap of a button, very convenient. Vendomarch currently delivers in Rochester, NY.
The DVC lib comes close
Definitional recursion has to bottom out somewhere. (OK, it can also be circular, but I'm guessing you would not find that satisfactory.) Whatever words I use to define "function" you can always turn around and insist that I define those words. It's a never-ending game. It ultimately boils down to the definitions of words like "true" and "false, "same" and "different", whose meanings can only be communicated by way of examples: X and X are the same, X and Y are different.

But none of this has anything to do with the matter at hand. There are a finite number of atoms in the universe. Those atoms can only arrange themselves into a finite number of sentient creatures (or computers), each of which has only a finite brain in which can reside only a finite number of thoughts. So no matter how you slice it, the number of realized ideas in this universe is going to be not only countable but actually finite because there is only a finite amount of time before heat death.
If it is rare, then I must be unlucky. Because I'm not a Ruby developer, but I have had to help people diagnose exactly that problem more than once.
Apple weighs delaying 5G iPhone launch by months, sources say
Vendomarch: App for Farmers’ Markets Delivery
It’s not a secret that farmers’ markets are healthier than grocery food stores. If you eat the food sold at a farmers’ market vs that sold at an average grocery store, my bet is that you’ll live at least 5 years longer in the former case and generally be healthier and thus happier. Grocery food stores are open almost 24/7 so you can go there when you have the time, but farmers’ markets are open sporadically. Vendomarch removes this inconvenience by delivering the produce the next time it comes straight from the farm. Vendomarch https://vendomarch.com delivers fresh produce from local farmers’ markets at the tap of a button, very convenient. Vendomarch currently delivers in Rochester, NY.
Building a Raspberry Pi GPS Speedometer
Thank you for that Firehose of Fun! Especially the GPU dynamic hashed grid, which looks super useful.

Amazing work! LifeBrush is Emacs for Cytoplasm! I've read that those little thing-a-ma-bobs in your cells move around at something like 30 miles an hour, bumping into each other. Is that accurate? Does that simulation show them slowed down a lot? Would it just be a blur in real time? Is that software available, please?
I consider the self-deployment option the 'npm eject' feature of open-core software, and I'd prefer to support an org to avoid having them disappear and consequently needing to manage my own build infra and scanning mailing lists for security vulnerabilities :P
good. find a new supply chain that is not so reliant on China.
I'm not saying they should not - I'm saying they have been slowly becoming infrastructure and a regulator should delay antitrust if they are building up more infrastructure for future technology - Rodney Brooks has been saying there needs to be improvements in the road networks for self driving to be sped up.

Ctrl-F "raised pavement markers" http://rodneybrooks.com/agi-has-been-delayed/

I don't know if I'm right about those - but I am saying the technology giants are not putting their money where their mouth is.
> But then again the cruise ship industry that doesn't pay US tax is getting bailed out

[citation needed]

What I've been reading is the opposite, like [0].

[0] https://www.miamiherald.com/news/business/tourism-cruises/ar...
Aha, looks like it's using a salt and iterated hashing under the hood. Thanks for the link.
I've seen lots of photos from the Z bodies with adapted lenses and they look great! But the new Z lenses are all top of the line and very high quality. Even the two kit zooms I got with the Z50 are quite nice. They're making more but some have been delayed due to the pandemic. No micro yet but they have two on the lens roadmap with an unspecified date [1].

The battery life is just ok, not great. Mirrorless as a whole has worse life because it's always using the sensor unlike DSLRs but the Z50 doesn't set itself apart there. I keep an extra battery with me for the times I'm going out with the intention of taking a lot of pictures but I've only had to switch once or twice.

1: https://www.nikonusa.com/en/nikon-products/camera-lenses/mir...
It’s not at the point where it’s a completely abusive marriage, it’s still less hassle than changing over the huge pile of graphic styles I’ve built for my current GN would be (~100p in volume 1, 5 or 6 total chapters of similar size of all goes well), I like having the font subscription (though I should look into ways to grab those out of wherever Adobe sticks then in case one I rely on gets pulled), there’s definitely things I’d miss if I went back to cs2 (transparent gradients, width profiles, multiple artboards, speed rewrites, pattern editing, god I would kill anyone who tried to make me do patterns the old way (does Affinity even HAVE patterns? It seems to only do bitmap patterns), gradient strokes, auto type area resizes, and that’s just looking at Wikipedia’s chart of features up to 2014)

But it’s such a product of a bureaucracy, built by people who never use it, and who awkwardly interface with the people who do.
> Well, for one thing, there are no classes in C. :) It is possible but unfun to emulate them with function pointers. Iiuc, little of the Linux kernel is written in that style.

object-structs with function-pointers-for-methods are super-common in the Linux kernel and basically used everywhere for everything where modules can plug something into the kernel (e.g. virtually all drivers have at least one of these).
It says it is open source but I have a hard time finding the code. https://github.com/paterva/maltego-trx looks like something much more basic.
this is probably offset by the reduction in other pollution bit it's the type of thing that once it's been allowed it will probably not stop after the pandemic.
> Louvel’s naming of Le Gris just prior to the squire’s own arrival would seem to put Le Gris indisputably there—unless Marguerite’s story was a deliberate fabrication.

There's a third option: a framing of Le Gris by Louvel. The attacker wasn't Le Gris, he just sort of looked like him, and after the assault, disappears. Both Le Gris and Marguerite are telling the truth.
I would use the standard ISO C strstr instead of writing the function they are calling find.

Yes, we had strstr in 1994; it was in the 1989 ANSI C standard.

On a very small system, strstr will probably just be naively coded, to save space. On a big system, it might use Knuth-Morrison-Pratt or Boyer-Moore. I don't have to care; by using strstr, that decision is taken care of.