skysight-inc/HackerNews huggingface dataset:
Implementing WebSQL was so much work that all the browser vendors just basically bundled SQLite and called it a day. The problem was that the working group required at least one other implementation, before it became a standard. But that was such a monstrous project that none of the browser vendors wanted to take it on.

What the browser vendors agreed on is that they would rather have IndexedDB. I've never used it, but they say it is a lower-level API than SQL, and using it you could build your own SQL abstraction layer above it.

So we have as standards the key-value-based localStorage and then, halfway between that and SQL, is IndexedDB.

More: https://hacks.mozilla.org/2010/06/beyond-html5-database-apis...
+1. I try to remind myself as often as possible that is much easier seeing problems than solutions. When Chesky started AirBnb everyone told him it was not going to work, letting strangers in your own house... really?.

It takes courage, a bit of craziness and strong will "to make things happen".
Have you been to jail? I wouldn't be so quick to dictate what's best for someone else. It's a fucked up place.
... more effective.
They search the other contractors (meals, etc) who still manage to smuggle things in.
I don't understand the argument for "characters = grapheme clusters". From my perspective, there are a lot of different ways you'd want to iterate over a string. Grapheme cluster breaks, tailored grapheme cluster breaks, word breaks, line breaks, code points, code units… all of these make sense in some context. However, there are precious few times that I've wanted to iterate over grapheme clusters, so telling people that they should do that instead of something else doesn't make sense to me. (I mean, what problem is so common that we would want to iterate this way by default?)

For parsing, it often makes sense to iterate over code points or code units, since many languages are defined in terms of code points (and you can translate that to code units, for performance). XML 1.1, JavaScript, Haskell, etc... many languages are defined in terms of the underlying code points and their character classes in the Unicode standard. JSON and XML 1.0 are not everything.
Speaking as a not-so-technical (never run a server) reader myself, what people like me want is not whether or not the data is on our own devices (that's an implementation detail) but the real issue of real reliability, privacy, and basically not having all the centralized bullshit that makes me feel helpless.

None of the big systems run by the big corporations are actually reliable long-term. They change stuff all the time, come and go, change terms, and generally mistreat everyone. So we just learn to be mostly passive and kinda just play the game. It's a weird and totally undemocratic form of extreme bureaucracy, and we have no idea how to do anything more than superficial.

So yeah, people don't want to take responsibility for all the data, but they do want the people responsible to actually be trustworthy, reliable, and serve the public interest. Is that just a complete fantasy, totally unrealistic?
I am the type that would go and get a license to start messing around with something like packet radio, but the last time I looked into it I encountered two things that I thought were huge road blocks.

First, the study material and sample questions were way out of my league. I studied physics in college so I am not completely ignorant when it comes to things like frequency, phase, modulation, etc. However, I could not figure out what the hell I was reading in the study guide.

Second was the cost. I am ok with building my own equipment out of repurposed electronics, or spending a few bucks on some type of add on card, but the guides I found were talking about $500 beginner radios.

It is quite possible that I was looking at some very advanced type of ham license and communications equipment. If so, what is the best place to start. If not, then y'all must be some kind of rich geniuses!
It may be that the mechanisms of addiction for meth/amphetamines, gambling, smoking etc is different from opioids, as I could to loads of the first, without ever having trouble stopping (just slept for a few days), while some of my friends had addictive behavior. It puzzled me, so maybe it truly is more difficult when relapsing on those.

After going through opiate withdrawals, I found quitting smoking rather pleasant in comparison. It's really not a ride you wish to take again.
The project itself an alternative bitcoin full node, one of the few (along with btcd, bitcoinj, etc), and the only one that runs in the browser: http://bcoin.io/browser.html. I've posted it here before but no one seemed to be interested.

It's probably not good if you want to index anything more than addresses, but you could easily modify it to index other things if you wanted to. The actual blockchain database resides here: https://github.com/bcoin-org/bcoin/blob/coinviews5/lib/bcoin...

^ That's the current branch I'm working on which, as it happens, optimizes a lot of the storage of utxos. Before, it was storing them the messy bitcoinj way. Now it uses coin viewpoints similar to bitcoind and btcd.
I wrote an extensive piece on this as part of a presentation in 2004, called Authentication Without Encryption for Ham Radio - https://rietta.com/blog/2009/08/17/authentication-without-en....

Gave examples of using PGP cleartext signatures and Cram-MD5 (shudder) challenge-response for authentication without obscuring the meaning of the communication. At the time I thought that IPSEC with Authentication, but Encryption may be the best thing, but that has been slow to take off altogether.
I'm extremely confused by this:

> With APFS, if you copy a file within the same file system (or possibly the same container; more on this later), no data is actually duplicated. [...] I haven’t see this offered in other file systems [...]

To my knowledge, this is what cp --reflink does on GNU/Linux on a supporting filesystem, most notably btrfs, and has been doing by default in newer combinations of the kernel and GNU coreutils.

This guy seems too well-informed and experienced in the domain to miss something so obvious, though. So what am I missing?

Also interesting to me is the paragraph about prioritizing certain I/O requests to optimize interactive latency: On Linux this is done by the I/O scheduler, exchangable and agnostic to the filesystem. Perhaps greater insight into the filesystem could aid I/O scheduling (this has been the argument for moving RAID code into filesystems as well, though, which APFS opts against) -- hearing a well-informed opinion on this point would be interesting. Unless this post gets it wrong and I/O scheduling isn't technically implemented in APFS either.

It seems like this perspective might be one written from within a Solaris/ZFS bubble and further hamstrung by macOS' closed-source development model. Which is interesting in light of the Giampaolo quote about intentionally not looking closely at the competition, either.
Talking to my Garage Door
How to Sell 500M Units, Ten Things to Do as Your Own Rainmaker
Phone Tracking, Nude Selfie IOUs See Chinese Bare All for Credit
Not impossible. If you slice in the middle of a grapheme then you get a corrupted string as well. You'll get an alternate glyph instead of a square box but it's still corrupted.
If you can get it down to a set of gloves that use qwerty in the office I'm in
For PGP encrypted, yup, it's not allowed. PGP plaintext signatures are presumably allowed as they do not obscuring the meaning of the communication. That was my thesis in 2004 and I believe it to still be true based on Part 97.
What the DAO Attack Means in the Netherlands
> Assuming that insurance is correctly priced, buying a policy in any form is negative expected value

Actually it's quite rare for insurance companies to record an underwriting profit, I believe. Their profit generally comes from investing the pool of premiums. If you invested your premium instead of buying insurance however, then I suppose the expected return would have to be better.
I've considered building something like this for bikes.

For those who aren't cyclists, there are already informal networks of people who share helmet-cam videos of bad driving behaviour, with people who attempt to read license plates etc
The app doesn't deliver medicine. Regular pharmacies do. The app just makes it quicker, easier, and more private to get the prescription in the first place.

From the article:

"...a doctor reviews a woman’s medical information and sends a pill prescription to a local pharmacy.

"'I thought it was just a setup to get money,' [a user] said. But after she answered the health questions one evening, 'a doctor actually contacted me after office hours,' and the next morning, she picked up three months’ worth of pills."
That does not seem to be an evidence-based recommendation. Pap smears are recommended every 3-5 years, pelvic exams are not recommended by the American College of Physicians for healthy asymptomatic adult women, HPV test is recommended every five years in adult healthy women. Pap smears and pelvic exams more frequently than every five years are associated with a high false positive and false negative rate, incidental findings that lead to additional testing or treatment but turn out to be benign, discomfort, and higher cost.

Overscreening is a real problem, and since HN has a lot of male readers I'll do a public service announcement (PSA, get it?!!) that prostate cancer overscreening doesn't lead to a mortality benefit on a population level (if you look at all-cause mortality) and leads to interventions that leave a lot of men incontinent and unable to enjoy their previous sex life [1]. If you have any symptoms, definitely go to the doctor -- screening in men with symptoms saves lives. Prostate cancer can be a killer. But just screening all healthy people of a certain age for breast, prostate, and cervical cancer every year actually leads to poorer health outcomes because we don't yet understand when to treat cancer aggressively and when to just ignore it.

[1] http://annals.org/article.aspx?articleid=1216568 Per 1000 men, screening all every 1-4 years for 10 years and then following through their treatment saves about 1 guy from dying, kills about 1 guy and puts 2 in the hospital from complications of biopsy and treatment, gives 3 heart attacks, and leaves 35 with bladder or sexual dysfunction problems.
The app isn't delivering medicine. It's connecting the user with a doc who can write a prescription that's filled by a pharmacy.
It works very well for concurrent readers and can handle one concurrent writer when set to WAL mode. Saying that it's no good at concurrency is selling it short. It's blazing fast as long as the use case doesn't require multiple concurrent writers. In fact, it will be faster than client-server databases when you aren't hitting a weak point like that, since it has no IPC overhead.
https://www.ted.com/talks/johann_hari_everything_you_think_y...

Watch this and see if you still think the same way.
This type of argument is complete nonsense. You might as well say "it's legal for me to insult you, so who are you to complain?" or "telling people that my message is bad is censorship".

"Let them have their way"‽ Well, by that measure what the heck business do you have telling the US not to get mad? Let them, the US, have their way in terms of getting mad. It's their right to get mad.

You're replying to someone complaining about people's bad decisions. Well, that poster wants to complain. Who are you to object to them complaining?
You have described a hypothetical where programmers are even more costly AND there are "whole fields of lower-wage analysts". This seems like a LOT more cost for the general contractor who is growing and needs a little bit of customized data entry.
Golang and MySQL login tutorial
Do you know of a human pose estimation from 2d images service/library?
I've seen papers about it.
I would like to try it out.
No, they'll get a fine for driving a defective vehicle and be require to make-good and attend vehicle inspection to prove. The all seeing AI enables strict enforcement.
I agree with them. If LA county sheriff's deputies didn't smuggle cellphones in, how else would an undercover FBI agent get a phone to the FBI's witness that was being hidden in the jail by Sheriff Lee Baca?

http://www.latimes.com/local/lanow/la-me-ln-sheriff-jail-sca...
The medicalization of childbirth isn't doing so bad overall. We did well going from 1 in 100 maternal deaths to 1 in 10,000. Something has gone off the rails however as that rate doubled in the US since then to 2 in 10,000.

Similarly for IMR, an impressive drop from 1 in 10 to better than 1 in 100.
How to Convert Video to PSP
I used to do this, until one driver go out and punched me in the face. Didn't catch his plate number unfortunately, vision was too blurry.
What an impractical-looking device. I don't use wearables, but I pretend to type without a keyboard all the time, touching my fingers to my palm. A good wearable should be shaped comfortably like a glove. Then, it should detect which finger and how bent the finger is upon touching the palm, which would indicate which column and which row on the keyboard respectively.
I use backquote (i.e., I have "escape ``" in my screenrc). For some reason this appeals to me more than a control sequence, which I blame on Emacs. For a long time I used Emacs under screen almost exclusively, and I was desperate for a screen command sequence that didn't conflict with Emacs---which ruled out almost all the control key combos. Reaching for the top corner of the keyboard to begin an escape sequence feels pretty natural to me because of my history with Emacs on terminals that don't support the Meta modifier, and backquote doesn't conflict with key bindings for the editing modes I typically use in Emacs. Backquote is used infrequently enough in other contexts for it to interrupt my typing, with the exception command interpolation. (I wish I could say I came up with it on my own, but it was actually a friend of mine who clued me in.)
Yes, I do see some need for a technical bar. That's why I've said before that for 'unauthorized access' to a computer system you (should) need to knowingly access a protected system in a way not permitted by the rights granted to you by the computer system, or by deliberate deception of either the computer systems or people.

So there needs to be an actual lock on the door that you've done something to bypass, whether that be manipulating the computers or lying to someone (or thing) to gain access.
I think you're missing the point. In the modern world there comes a point where we either have to sacrifice some privacy for increased security or we can have total privacy (encrypt everything) and lose our security. If you think it is any other way you are foolish.
From section 2.6 in the standard: "Use of a BOM is neither required nor recommended for UTF-8, but may be encountered in contexts where UTF-8 data is converted from other encoding forms that use a BOM or where the BOM is used as a UTF-8 signature."

Yes, it can be used to distinguish a UTF-8 stream but it's not recommended. One issue is you can't tell if the BOM is not valid text in some other non-unicode encoding.

I'm curious where you've encountered missing content-encoding headers or other OOB indicators where it wasn't because of programmer error or laziness.
I had something like this:

var heights: Array< Pair<Int, Int> > = ... //populating the array
heights.sortBy { it.second };

It was not obvious at all that I had to use curly braces. The documentation says:

inline fun <T, R : Comparable<R>> MutableList<T>.sortBy(
crossinline selector: (T) -> R?) (source)

This is after I figured out that I'm not supposed to use sortWith (I never figured out how to use this one)
Yes, let's defer to Kenyan popular opinion on what they would call something they're billed forward for calling its name. Points for guessing it rhymes with luche?
It sounds like what he did had exactly the same effect as "using simple HTML injection to add a rick roll to something".

'But he achieved it using leet hacker skills' should not be a factor in determining the nature of the charge or potential sentence. That's along the lines of making a big deal out of someone using a "Subversion" system to access and maintain code.
It's not a corrupted string. You may have mangled it in a way that doesn't preserve all semantics, but no one will crash with an encoding issue.

A "string" means "a sequence of characters". Wide characters (or the equivalent interface) preserve this property.

Graphemes operate at a higher level than characters. You could construct a grapheme-strings, I suppose, but that has tons of edge cases, and if you don't like character-strings, I doubt you will like grapheme-strings.
Sort of a minor point but I wonder though if the quote meant prison rather than jail. Anecdotally I've heard that it is hard to get drugs in jail, but very easy in prison. This makes sense because people in jail are there for short stints and thus don't have time to make the connections required for a clandestine black market. A lot of people use the terms jail and prison interchangably, though they are technically different in the USA.
Tl;dr if you don't know what your goals are, you won't achieve them. Shocking!

Though in half his examples (education, politics, baseball), the complaint actually seems to be "other people don't share my goals".

What this has to do with measurement, I have no idea. Would this problem occur less if we non-quantitatively tried to achieve the wrong goal?
Also reminds me of Peter Elson, though his designs are more curved. A few smoothing or relaxation passes might achieve something similar.

http://www.peterelson.co.uk/gallery/category.php?pageNum_pro...
I like 3 buttons, but the map looks messed up on my old HTC Sense.
Wow. Such negativity. I thought we were all techies here. It seemed to be cheap enough for me and work well enough for me when I was 12 years old and mowed lawns to buy radio parts. But I guess actual experience with the technology is trumped by your superior intuition.
1 grapheme = 1 unit of datatype is a good start. There is a lot of complexity in Unicode, but the mental model of a "char" is what most developers are thinking, largely blind to that complexity. Kudos to anyone trying to make that more "common sense" model closer to reality.

However... How does a language or library attempting to abstract this part (like swift might) deal with the other, unrelated annoying aspects of Unicode? Even if 1 glyph is 1 "char", and we normalize all the inputs, there is still, say ... Bi-di text.
As far as I know, Part 15 Class B devices are required to accept interference from licensed transmitters that are operating within FCC limits.
Hi walrus01, thanks for the reality check, and the detailing into the various present-day approaches for comms. I certainly have a lot of reading to do now :)

I do believe there are many situations where Amateur Radio can help during disaster scenarios since not all places have these IP networks that you're pointing us to. There are lots of real stories, as recent as last year, where HAMs went out of their way to help during local crisis. See the Chennai floods last year, for instance. I have many more such stories from India at least.

Amateur Radio is within the reach of the average citizen. One doesn't need expensive equipment, or connections with the Defense, or lots of money. I've attended camps where we learned to put together antennae for under a dollar, which gave us a range of about 300 kms. I've seen simple radios put together which permitted VHF and UHF communications. I don't have a license in the part of the world I'm in at the moment, but in the US, I've spent time with HAMs who are active on CW - transmitting Morse code all over.

While it is certainly true that ISPs would have lots of fuel, and that most repeaters are powered from the regular electrical grid, I believe these are opportunities for like-minded HAMs to put together something that is independent of regular power grids. e.g. Solar and wind powered Repeater stations, spare equipment wrapped up in Faraday Cages, and lots of people getting licenses to become Amateur Radio operators.
I'm using ctrl-z. When in screen, I don't have to background stuff as often (as I typically just want to leave it running in the foreground and open a new buffer instead). But when I do want to send something to the background ctrl-z z just works.
Right, the main symptoms of nicotine withdrawal are nervousness and anxiety. I've also been addicted to diazepam, and that was similar, but more intense. I gather that symptoms of opiate withdrawal can be extremely unpleasant. I've had a few small tastes of that, after overusing oxycodone (and diazepam) for back pain. I'd never want to experience the real thing.

I've also done lots of amphetamines and cocaine, and never felt like I was getting addicted. Maybe there's a genetic component.
Yes. Solaris is the first thing I thought of.

Well I liked Tarkovsky's rendition. Here is an example of how Tarkosvky envisoned the ocean:

https://youtu.be/USCiKknufaM?t=647
I invested some time in understanding the syllabus and clearing the ARRL exams. You may want to take it one step at a time.

Also, radio needn't been too expensive. Check out the Baofeng hand held units that retail for about USD 30 on Amazon. These are only for UHF and VHF. For HF (international), you could either use repeaters, or Radio gateways on the Internet, or EchoLink. I use EchoLink on my mobile phone when I'm in countries where I don't have a license to operate.
Can be a symptom of a CSF leak (common in Ehlers-Danlos Syndrome which 1 or 2 % of the population has, but which is almost never diagnosed.)

The Mystery Headache: Migraine, Positional Headache, Spinal Fluid Leak?
https://www.youtube.com/watch?v=QyvWxobqKrc&feature=youtu.be
Lunch works if your metric is getting people to show up, but I'm sure I'm not the only one who has attracted a large group with food, only to find they only wanted the food.
It doesn't currently use location for state info no - since this is a combination scraper / text processor, it's implemented for WhiteHouse.gov, but adding the states would involve 50 different scrapers. It's an idea I had, but didn't make it into the first version.

As far as I know, states can lower their flag independently from the US flag, but according to flag code cannot fly their flags higher than the US flag, so if the US flag goes down both do. Some states will explicitly lower both, essentially voicing support for whatever reason the US flag was lowered, and sometimes they lower theirs simply citing the flag code. The flag code isn't law though, so it's not technically "illegal" to break.
Fair enough; and right now cp doesn't use the fast clone functionality, but it assuredly will. I'm not sure 'cat <file >file.dup' is reasonable for most users.
Jail/prison is the absolute worst place you can send a drug addict to. If anything it usually makes things much, much worse.

Sadly I don't have any solutions to your problems, only the advice to keep fighting for her and to treat her with compassion. If she's addicted to opioids you could consider buprenorphine.
Yeah I've written many small websites which, such as a dynamic DNS service[1], which use SQLite as their sole storage.

Providing there aren't too many updates at once, such that locking becomes a problem, it works really really well.

[1] - http://dhcp.io/