skysight-inc/HackerNews huggingface dataset:
You can look at the programmer's guide for the VT100[1], which does a good job of explaining the different ANSI escape codes.

To put it simply, you can move the cursor down and to the right. For example, you'd move the cursor 999 lines down, then 999 columns to the right, and then query the cursor's position[2]. You can then read the output through STDOUT and parse it.

I'd recommend anyone who's interested in playing around with ANSI and learning how to write a pure terminal-based program to look into the Kilo text editor[3]. That's where I learnt the above instructions.

[1] https://vt100.net/docs/vt100-ug/chapter3.html

[2] https://vt100.net/docs/vt100-ug/chapter3.html#CPR

[3] https://viewsourcecode.org/snaptoken/kilo/
Yeah, that's an issue in flake8. There is no stable standard library for something that is supposed to be core to python moving forward.

https://gitlab.com/pycqa/flake8/-/issues/428#note_251982786
Unlike today’s battery modules, which link up to an on-board management system through a tangle of orange wiring, GM’s system features RF antennas integrated on circuit boards. The antennas allow the transfer of data via a 2.4-gigahertz wireless protocol similar to Bluetooth but with lower power. Slave modules report back to an onboard master, sending measurements of cell voltages and other data. That onboard master can also talk through the cloud to GM.
As the other poster said, this explicitly high risk low reward, at the expected required to break even. Because the range of those options is everything between and include 0x

In order for it to be high risk high reward, the option's paper value should closer to competing packages from public companies. Because in order to take advantage of options, you have to exercise them, and in order to exercise them, you need to do it before they expire, with real cash out of your own pocket.

Given the rate of startup failure, it's a good thing to allow earlier liquidity to those employees, so they don't get trapped into either staying for the 10 yrs till a real liquidity event, or bite the bullet and drop cash (forgoing other investment opportunities) when they decide to leave after some time (like a typical employee). In the end, the equity that group controls is very tiny.
Was that the company itself or were there outsiders contributing to this too?
It's been a year or so since I read it - how is the Coastline Paradox related to the book?

(Glad you're enjoying it! I absolutely loved some of the ideas - the treatment of social media, in particular)
New Hampshire has no State Income Tax, nor any Sales Tax. Not entirely sure whether they have their own version of a Capital Gains Tax (CA sure does). Karp will reap the benefits of moving to NH. Not sure if he will escape CA Tax Authorities coming after him (but if he has planned his move, he probably has access to the best advice money can buy.)
Slightly higher quality version here: https://youtu.be/PBWhzz_Gn10
I helped out with parser as well for a while, though it was mostly documentation, triaging issues, that sort of thing. I think I still have push access to the Gem, as at the time the project had a bus factor of 1 (= whitequark).

Anyway, I remember just how frustrated whitequark would get every time CRuby decided to make some random syntax change. I have a lot of respect for the current maintainer(s) for putting up with the ever growing complexity of the Ruby syntax. I hope Ruby stops changing the syntax on a regular basis, but I doubt this will happen any time soon.
in a society where parenting is letting your children do whatever they want or be accused of being violent guess what they end up doing?
Self plug: I wrote a simple web app in the same vain as jsonlint and yamllint for toml files.
https://toml-lint.com
JSON is too strict/simple

This is why I like JSON!

I have seen the horrors of XSLT and I’m never going back.
The data you link would not support your conclusion. It’s not flu season in UK, so the constant low rate is within normal variation, even if mask-wearing is impacting decreased flu transmission. You’re talking about ~100 deaths for each covid and flu in the time period cited, and for covid (which so far doesn’t have a cycle like flu) the effect on decreasing is very stark.

In other words, this particular data would have nothing to say. It’s consistent with random variation of off-season flu, it’s also consistent with masks having a big effect on reducing covid spread (especially with covid’s much higher transmission rate and airborne properties), and it’s also consistent with some third exogenous factor causing the covid reduction in a way that has no bearing on flu.
What could the mitigating mental issue be? She’s clearly not incompetent. She’s crazy like a fox!
Array of objects is terrible in TOML. I grudgingly use it only because it's categorically better than YAML IMO and INI isn't powerful enough.
How is the epidemic winding down?
You can still buy new manufacture motherboards with ISA slots and modern processors. Intel still (or until recently) made ISA bridge chips for modern Southbridge chips. And it's something that a smallish FPGA could handle. There is a whole ecosystem of companies that recreate old-style motherboards for exactly this scenario.

My brother's company does IT stuff for the manufacturing sector. Very conservative. I've worked with a number of his customers to source exactly this sort of thing. Years ago they asked my thoughts on an Italian made cloth dying machine the size of a bus with a DOS PC controller and a minimally documented ISA controller. A mid 7-figure US$ setup; the company that built it is long gone. We found a shop that supplied new motherboards, modern (at the time...P3/P4 era I think) with ISA slots the vendor guaranteed it would be every bit as slow and weird as a PC/AT. Migrated everrything over, the company bought a stack of motherboard spares new, and I think they're still using them.

Now...you want a challenge? Migrating the proprietary, mostly undocumented software, all in Italian (we aren't native speakers...though my high school Latin occasionally helped) from an old ESDI disk to something, anything, else. That was much more interesting.
why `:=` and not `<-`?

The `<-` in R comes from the APL keyboard, and that glyph is an assignment in APL. It wasn't just some crazy invention from Ross & Robert or even John Chambers.
I still read it once a month or so, when I've "finished" HN for the day and bored.
I think there is a difference in the company itself being shady and investors being shady to influence the stock price. The long pump and dumpers definitely fall into the latter category and similar to the shorts described in my link.
Minimal design for encrypted file sharing app
Hopefully this is useful for someone. I needed an encrypted filesharing, similar to firefox send (which is unfortunately taken down due to abuse) but when i looked into deploying it myself, it seems like a fair bit of work to get it up and running so i decided to build something with minimal backend code (1 python lamda + 1 api gateway + 1 s3 bucket), no random 3rd party JS library.. Some cool things i learnt from building this project is the fact that you can acquire a POST signed policy to directly send file to S3, you can also add tag for your s3 objects and using bucket lifecycle rule base on object prefix, i can automatically expire objects and reduce backend code for that.
"Tim Berners-Lee joker ruined all the pretty pictures with HTTP"

This is the first time I am reading this, I interpret this to mean HTTP is badly designed and Tim Berners-Lee caused it. Need more...
Magit is magic: coupled with customization via elisp, it feels smooth as butter to navigate hairy rebases, commit individual lines in changed files, or jump to open a PR in a browser.

One of my daily drivers for development, and a real killer extension to emacs
Yep. And trailing commas,
> I'm usually amazed at how much responsibility people are given who make over 6 figures, but yet how little decision power they are given.

It's an interesting distortion of the inflated tech-skill market I think. I have individual team members doing software who are paid more than entire group leaders doing other things but they are still very immature, and in no way can accept responsibility for more higher level things.

I do agree about the responsibility / decision power point though. To me one of the most powerful motivating forces for tech people is giving them autonomy to make technical decisions themselves. It's somewhat tragic that this is so negative in the large - allow a whole team of engineers to each choose a different web stack and they'll love it, but you're in for a disaster.
My point was those examples weren’t mischief. Waking up their friend with firecrackers is mischief. Shooting people with airsoft guns and driving blackout drunk easily putting them in harms way is not mischief, at least not in the “kids will be kids” way.
JSON is great, but not for config: It was never really meant to be written by humans.
Empire was an awesome game! I spent hours and hours on Empire ... until Civilization came out unfortunately.

Thank you so much Mr Bright! You deserve much love!
Hobot-388 Window Cleaning Robot Is a Smarter Way to Clean Your Windows
If it does I'd say that there needs to be a psych eval and appropriate corrective action for a large swath of the Fortune 500 executive staff(s).
There is always cutting to the chase and using SQLite.

https://www.sqlite.org/appfileformat.html
MoltenGL is OpenGL ES 2.0 only, it'll probably work for a lot of applications but not all of them because of that.
The typical cop-out excuse.
> His stated goal is to do this by 2050. That’s within his lifetime (I hope).

(Responding to your claim elsewhere since reply isn't allowed there)

Incorrect. That's not Musk's stated goal. What he said was:

"Building 100 Starships/year gets to 1000 in 10 years or 100 megatons/year or maybe around 100k people per Earth-Mars orbital sync" - [0]

Nothing at all about having a million people on Mars in 2050. To get a million people to Mars requires ten Earth-Mar orbital syncs, or 20 years. Adding 10 years to get to that 1000 Starships/year cadence. That means they have to achieve 100 Starship/years by 2022 to have a shot at sending a million people to Mars by 2052 (because the next orbital sync is 2022)

Starship hasn't flown yet with the first orbital flight hopefully some time next year. It will be well into 2020s, at the earliest, to get to 100 starships/year production rate. Musk knows that and he didn't state otherwise.

[0] - https://twitter.com/elonmusk/status/1217989066181898240
Do you have any personal favorite examples? Maybe a recent from your history?
Likewise you could argue that the coastline problem is limited to at most the Planck length.

Most models of stock movement are modeled mathematically with Brownian motion which is by definition a continuous time process. You can even more trivially show that stocks are non-differentiable if you want to argue that they are fundamentally discrete time processes, in which, by definition, they are not continuous, differentiable functions.

But the argument of about "what does continuous even mean when we talk about physical systems" is another and older argument altogether.
Of course it was meant to be written by humans - every programming language and text based data format was meant to be both written and read by humans. JSON is basically Javascript objects, and Javascript was definitely meant to be written by humans.
Obituary: Dame Diana Rigg
Stock prices have discrete changes, though, in the form of individual transactions. Zoom in far enough that your graph is entirely occupied by the time between two transactions and you have a straight line.
I don't see the "downfall" narrative in real life. It seems like it's meant to provoke a defensive response from people the same way certain political language does. I, as a stereotypical guy, have more freedom now than ever to do what I want. No doors have been closed on me by recent societal changes.

Yes, maybe cultural attention is elsewhere but that doesn't mean that anything has really changed. In fact the relationships described in this article with kids pulling dangerous pranks on each other sounds more old school than anything I've experienced in my life.
Engineers Have Figured Out How to Make Interactive Paper
Psychopathy is not a valid insanity plea. Killing someone and feeling good or nothing is inequivalent to not comprehending your own actions.
Pay attention.
There's no free score of Anderson's "Typewriter" to be found--it's still under copyright--but there's a YouTube with a condensed score:

https://www.youtube.com/watch?v=sIdqJExuFMI

When we preformed this in college orchestra, a percussionist made the "ding" separately from the typewriter and I think it was noted in the score for triangle IIRC.
Almost certainly not. The statute for an insanity defense is extremely, extremely high. This isn’t the same as a murder trial or anything, but the standards a defendant needs to meet are usually at a level that would preclude the individual from being able to function in society, something Holmes has done quite well. Moreover, the government would really only need to be able to successfully argue/show examples where Holmes did, for example, know the difference between right and wrong.

My guess — and I’m not a lawyer — is that her lawyers are hoping to make this a mitigating factor as part of sentencing.
I usually generate new Python projects with a cookiecutter; such as cookiecutter-pypackage. I like the way that cookiecutter-pypackage includes a Makefile which has a `docs` task so that I can call `make docs` to build the sphinx docs in the docs/ directory which include:

- a /docs/readme.rst that includes the /README.rst as the first document in the toctree

- a sensible set of default documents: readme (.. include:: /README.rst), installation, usage, modules (sphinx-autodoc output), contributing, authors, history (.. include:: /HISTORY.rst)

- a sphinx conf.py that sets the docs' version and release attributes to pkgname.__version__; so that the version number only needs to be changed in one place (as long as setup.py or setup.cfg also read the version string from pkgname.__version__)

- a default set of extensions: ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] that generates API docs and includes '[source]' hyperlinks from the generated API docs to the transcluded syntax-highlighted source code and links back to the API docs from the source code

https://github.com/audreyfeldroy/cookiecutter-pypackage/tree...
Forrest Fenn Has Died
Exactly which society is that? There's a middle ground between a grown ass man telling his child to cut a switch off a tree only to beat them with it repeatedly and "doing whatever they want".
Ah yes, the great roaring success that is the Australian lock down: https://www.theguardian.com/australia-news/2020/aug/18/hotel...
Still, a species can evolve to be more similar to some distant ancestor than to a certain more recent one. There's no mistake in asking if that is the case here.
It's absurd that golang didn't take established solutions such as Java's packaging system, and had to re-invent the wheel in a completely suboptimal way.
Very interesting. Have you seen stats showing that this is true? Do you care to speculate on the real causality?
Economics only rewards immoral behavior if we let it. We should properly factor negative externalities into prices.
It was made just to test the camera sensor without any lenses, just a pinhole. That means that the photo blurs relative to the size of the pinhole, which probably wasn't that small.
I was about to install it until i went through OAuth setup which grants the "Mimestream" application permissions do to a number of things including
"Read, compose, send, and permanently delete all your email from Gmail"

One can blame it on Google OAuth UI or on Mimestream UI, but its not clear to me whether these privileges are granted to the locally installed application and can only be used by it

OR

whether these privileges are Granted to "Mimestream" the Google OAuth App account which can then be used to do those actions outlined above by some service associated with "Mimestream" Google App.

Needless to say, i chickened out from using my main google account with it and instead will test drive it with a toy account
Off the top of my head:
Increase access to primary care
Encourage behavioral change in people that help prevent disease (stop smoking, or don't eat sugary foods, etc)
Increase treatment affordability for preventing disease
Add on cheap treatment options if patients fail the above (more aspirin, statin, metformin, etc)
I saw in the news today where 8 kids were arrested for breaking windows in the Flatiron district in New York.

All are white, apparently from families that had a substantial amount of wealth.

I totally agree with the author, broken families lead to broken lives. Broken families aren't necessarily broke.
Basically any landscape that broad area forest fuel loads are allowed to build up.

Indigenous tribes learned how to reduce these hazards thousands of years ago.
Maybe it's a difference in location, that quote was all stuff myself and my shitty friends did growing up, and most other people I went to school with. Also in a large midwest city.

It's interesting to read these bad hot takes on why while plugging your ears
Or sue you, which is likely with shady companies such as Zoom.
I think it was exactly this idea that made the book fail in my eyes. Cryonics is patently not similar to religion in the sense of being comforted by myth or iconography and stories about waking up in a better place. Representing wealthy cryonics customers as if they were borderline cult members is more like surrealism than drama.

People who actually put money on cryonics overwhelmingly believe it’s got a super low chance of working and that the world you might wake up in is just as likely to have endemic social problems and suffering as our current world, or possibly even be far worse in a lot of unsettling ways. People who care about cryonics spend time obsessing over crazy philosophy of mind, AI ethics, and far future forecasting ideas. They don’t go into it lightly with some fluffy ideas of waking up in a peaceful utopia.

As a result, the characters in Zero K just don’t work. Their mix of naïveté but hyper progressive awareness of scientific possibility, while also being wealthy titans of industry for decades, simply doesn’t exist inside the same person at once unless the characters are just purely vehicles for allegory and symbolism, which is hardly what has made DeLillo’s other works notable.
Yah, you gotta point.
I have all of them. I agree that V: Brave New World is the high water mark. I play IV: Beyond The Sword on lower spec laptops that can't handle the graphics in V.
> For most of the offers I received, the company valuation would need to increase by 8-20x for the yearly compensation to achieve parity with the first-year offer from a public SF-based company, let alone to exceed it.

Damn, what a terrible deal, particularly for Series-C. As one data point, my company's stock has 5x from my initial grant value, and that has been enough to push my compensation above an equivalent position in Google Sydney, which is probably the highest paying public tech company in the country. That is _if I can sell my equity though_. So yes, please let employees sell their equity. I don't want to have to wait for the dream IPO.

Edit: Actually, given Google's very strong YTD stock gains, maybe it's borderline whether I come out ahead.
I thought it was a dark art before I worked my way through a few chapters of the Little Lisper. Then the spell was broken
Tesla is 17 years old; Nikola is far less advanced.

Elon Musk fanboys are jealous that Trevor Milton is doing it better, faster.
Of course your first sentence is correct, I assume.

But...you're saying feeling bad is not a type of comprehension? That is, empathy is not comprehension?
> what do you think they should be doing instead?

Probably not much. But that's because you used the word "doing". If you had asked "what should Victoria have done instead?", then there is a long list.

To pick on one thing, I was amazed press were showing people in the locked down towers apparently depending on charities for essential supplies. To this day don't know if it was a beat up or real, but if real it boggles the mind. It implies the lock down was little more than a thought bubble with almost no effort put into planning.

Obviously, they did eventually react to the collapse of contract tracing, the explosion of cases, the outbreak in nursing homes and so on, and as a consequence everything seems to be as under control as it can be now. But it does seem to all be reactive, not proactive.

I do wonder how the situation arose. At one level it's obviously a reflection of competence of the bureaucracy, as this is where the pollies (who usually have very little expertise in their portfolio) get their advice. But those same pollies have been there for 10 years and so they should by now have made their stamp on the culture of the bureaucracy. Frankly when you compare it's performance with bureaucracies in all other states, it was very poor. For me (a Queenslander) the outstanding state was NSW the Ruby Princess cluster fuck notwithstanding.
I recommend IV: Beyond The Sword to start.
I think this experience is surprisingly common. Modern society affords us a lot of mobility, but I don't think we realise how much it costs us in terms of stable friendships.

I have a young kid, and he's still too young to really have "friends" (when you're young enough, any stranger is a friend), but eventually we'll either have to decide to live in the same place for a long time, or he's going to have get used to constantly switching friends.
Incidentally, if the $185,000 you're about to spend on a new gTLD registration is bringing you down, you could use the money to register icann.sucks instead:

https://www.rebel.com/search/?exact=false&q=icann.sucks&tldo...

Turnabout is, I suppose, fair play.
I know but even there they lacked imagination, finesse, esprit. How much better would it have been for Ryan G’s character to find remnants of Deckard proving he lived there but had been long gone. Some indication that he may or may not have been a replicant. Maybe the replicant child is a cross between humans and replicants. But nooo, Deckard had to be a replicant, obviously given his longevity and strength, and a “tough” guy who wants to have a biff with Ryan G. No nuance, no deeper meaning.
Luck. There were a million other more promising moonshots at the time. He rolled the dice and lucked out. He also could have taken his life saving and taken it to Vegas and made even more money.
What's up with the books in the second photo?
Thanks! I have interesting ideas for amortization/interests, maybe they can get added at some point. Yes, the hashes are the ids used for Avoiding double-spending along with dynamodb conditional put. I’m on the phone now, will follow up with code once I get to the computer
https://en.wikipedia.org/wiki/Idiocracy

You have selected "Not Sure".
If people would read the article, it says

"The defense expert, Mindy Mechanic, is a California State University at Fullerton professor specializing in psychosocial consequences of violence, trauma and victimization, including violence against women, and often testifies in cases involving interpersonal violence,"

...which might give a clue as to what the mitigating mental issue could be. Obviously they are not going to say she's a psychopath.
Looks like noise