skysight-inc/HackerNews huggingface dataset:
I would use pyenv locally so I can easily switch versions but dev and prod is a Docker container with one python version, then poetry install the virtual environment.
You don’t even really need to install into a venv, since you’re already in an isolated container, but going straight for a venv is kind of a reflex for most Python devs
What I liked the most was when a GUI would emit the CLI commands for my actions. It breaks the discoverability barrier significantly. You learn in the GUI but you can switch gradually to the CLI with aliases, functions and loops.
Production Ready Docker – how to set it right?
Potentially naval basing.

https://thediplomat.com/2020/05/will-vietnam-lease-cam-ranh-...
I didn't know about the Cloudflare DNS users being blocked. I started using Cloudflare's DNS two days ago, I just checked and it looks like I can't use the site anymore.

I can use it with Tor after more than a dozen different reCaptcha requests.
I just saw my first one yesterday and made me instantly question how they paid for that and what their business model was.
key chords, F-keys, waiting for windows to pop up, those are all extra things that take time and get in the way. My fingers need to stay near their home on the home row.
In theory. In practice roads between counties are not as good so cost goes up.
I don't find all that much of a difference between notations like set.map{...} and map(set){...}, so at that point I suppose it really is just aesthetic preference.
- 2x double-free

Yes, it would be very weird to manage to do this in rust. It would require screwing up badly in unsafe code. I guess the most likely way to fuck up unsafe code in this way would be to screw up a custom datastructure like a custom reference counted pointer (but the obvious solution is to just use the standard ones).

- 8x NULL pointer dereference

Yes, rust tells you when pointers might be Null (which is represented by saying the pointer is Option<PointerType> instead of just PointerType), and doesn't let you use the pointer in a way that implicitly assumes it isn't null.

- 6x general protection

These are generally memory errors, and are certainly undefined behavior, so yes.

- 6x slab-out-of-bounds access

"Yes" with a small caveat, depending on how you are using the slab it is likely that Rust doesn't force you to explicitly think about the out of bounds case and turns just silently turns the security vulnerability into a runtime error, which might be handled farther up the stack or might cause the kernel to halt.

- 14x use-after-free access

Yes, like double frees. The range of possible fuckups in unsafe code that cause this is probably slightly larger than the equivalent range for double frees.
would users really use our service.

Who are your users? Are they on Hacker News? If not, where are they? How can they be reached?

Good luck.
I am presuming they are having some database issues. In their last incident we saw them mention running out of database connections. They also have some planned downtime when they are planning on switching quay to readonly whilst they perform some actions. Perhaps resizing their master DB? Its hard to tell, but either way this is quite unacceptable for such a big service that so many rely upon and pay for.
Don't you get a bunch of incompatible packages when you restrict to specific fixed version numbers without indication? I guess this is only helpful if you don't plan to reuse your code in another project.
I completely agree. I have no idea why many people seem to be fan of this `curl x | bash` approach.

For pyenv all is needed is to clone their git repository and
add a couple of lines to your .bashrc.
nice happy to hear that. You're welcome
Because it seems like you are talking to a dev, not a manager. Assume the dev is already onboard with the idea of being compensated; the original comment was "I'd be more concerned if you had a hard time getting reimbursed" i.e from the POV of the employee.
House Bills Seek to Stop Political Ad Microtargeting
Imagine some middle manager in some S&P 500 company approves a contract that says:

"Company A agrees to purchase for $1000 each product offered by company B which meet the specifications provided".

And Company B finds that the spec says "A quartz crystal between 1um and 1mm in diameter".

So company B goes and finds a beach, full of sand, calculates there are 1 billion grains of sand in each cubic meter of the beach, and the beach is 50m long, 50m deep, and 50m wide. Total amount is 50 * 50 * 50 * 1 billion * $1000 = $125 quadrillion.

Far more than all the money in the world.

That bankrupts the company, but since there is no liability limit, it bankrupts every other investor. Even if you have 0.0001% of the company, you're still bankrupt.

If you have insurance, the insurance company is bankrupt, and you're still on the hook for whatever remains, which bankrupts you too.
The interesting bit to me is that the FreeBSD bug took 2 weeks of fuzzing to find, but the Mac/Windows bugs were found in one day.

USBFuzz found three bugs (two resulting unplanned restart
and one resulting system freeze) on MacOS, and two bugs
on Windows (resulting in a Blue Screen of Death, confirmed
on both Window 8 and Windows 10) during the first day
of evaluation. Additionally, one bug was found in a USB
Bluetooth dongle driver on FreeBSD in two weeks.
Rust has a fantastic deployment story: compiling a rust program is super easy, and you can cross compile. Using cargo and rustc is a breath of fresh air compared to any similar experience with C compiling.

So if one day RustPython gets compatible enought with CPython that you can use it as a drop in replacement, you can start creating a tool that compiles any Python VM for any target, and bring along your program with it. Making a standalone version of it would become much easier.

Right now, doing so either requires you to bring in a pre-compile version of cpython for your target (which is what briefcase does) or compile the thing yourself with gcc + headers + deps(which is what nuitka does).

It's not easy.
I’m strongly thinking of just migrating to Ubuntu server instead. This might give me pause
> greater ease of use of Termux compared to WSL

pretty subjective, I'm guessing most people find terminal-based stuff easier/nicer on a computer with an actual keyboard, rather than a (relatively) small phone screen with a touchscreen keyboard.

I believe Termux is also pretty majorly restricted by Android 10 (can only run binary code included within the application package, so no downloading additional linux packages or compiling things locally, I believe)
Nine is bigger than six.
You really nailed this, imho. Awesome work.

What is the reason for requiring Python >=3.7?
If you don't want to use Google even for math, I would suggest WolframAlpha[1]. It can be used for much more complicated equations/unit conversions etc.

[1] https://www.wolframalpha.com
I now realize that I have almost completely stopped using Google in it's most common setting. ie. just search for the thing you are looking for.

I use google almost exclusively to improve search on other websites or for special syntax based searches that are far easier to implement than good general purpose search.

Site:reddit.com , site:stackoverflow.com are my most common search queries. Otherwise, it use it to open Maps, YT, HN as a landing page.
Research and news both are usually acquired from a curated list of sources I visit directly, with no involvement from google.
If it is something specific then I will use "quotes" to find that exact thing.
Outside that, google scholar and maps are amazing, but I don't think DDG is trying to compete there.

The idea of searching for something with only a vague sense of what it is, has almost completely stopped. For generic searches the 1st page results of medium pages and single pager MSM articles are both useless and shallow. It isn't Google's fault that popularity and quality are orthogonal to each other.

If I genuinely cared about my privacy, I would seriously consider trying DDG out. However, I have surrendered all my data to corporate overlords and don't think there is much point in struggling anymore.
How does this compare to TiddlyWiki?
> If we’re talking about an algorithm as a class, the state managed by the class is algorithm state, not the data the algorithm acts on.

I was only talking about algorithm state here. Check, for example, how the C++ string searching algorithms work to get a feeling of how these APIs work in the wild. For an example of this gone wrong, look no further than C++ stable_search, which does not let the user reuse the merge sort buffer across searches.
How to Deal with Troubling Thoughts
Zuckerberg > Murdoch
While I don't entirely disagree I think it should be made clear that both can be true, even at the same time. To spin up a 9 node managed Elasticsearch cluster load-balanced across two regions takes a competent engineer with practice roughly a couple of hours, or twenty to thirty minutes if they were smart and terraformed it out previously. Now there's a whole host of potential problems that come along with using that managed Elasticsearch cluster too (no access to "cluster mode", no tunability, etc). But if those potential problems don't apply to you and a very vanilla ES cluster suits your use case then you're fine.

Alternatively that practiced engineer could have spun up a self-managed ES cluster in a couple of DCs in about the same time, but now has the obligation to maintain those servers (patching, etc.). Maybe that marginal cost is damn near zero - chef has been deployed to all instances and enforces patching and there's already good security monitoring in place, etc. The cost of that engineer managing that box, as with a managed ES in AWS, is practically nothing.

TL;DR: as in all cases, it depends.
Startup Begins Search for People with Superpowers
There has been no specific communication - I think people are expected to exhaust FMLA.
Has this type of Google tracking without consent behavior changed recently? I recall it being a hot topic in 2018.
Open office space - permanently closed windows, I believe.
This article explains how it would probably work opposite of his goals - https://slate.com/news-and-politics/2020/05/trump-executive-...

Basically, if content companies become liable for the content their users post, they will have to become much more heavy handed in what they remove. Trump has benefited more than anyone from how little social media companies actually police content.
Mystery list appears of where people met, personal info, of tens of millions
Looks like San Francisco, so I assume it's an exercise and perhaps they're all tracking the same friendly plane.
Remove the monopoly that large tech companies have by regulating open access to user generated and uploaded content so others can compete with different service offerings. I know it’s an unpopular opinion but geez, if there are hundreds of millions of user generated content pieces each day that are only accessible through one platform it’s a monopoly.
I've only worn a suit once for a job interview, for one of my first, because the company sounded like they cared about that (I even called them to verify!), and the company sounded interesting enough to make the sacrifice. But at the interview I was terribly overdressed, and sat opposite two typical techies in scruffy shirts and dingy sweaters.

I really don't see the point of suit and tie. Wear a nice button-down shirt. Then you're always good.
I thought my point was fairly clear and I'm not sure how you managed to derive the "people should be happy with the status quo and not follow up on promising new treatments with less flaws" from what I said. I'm arguing that "prevents international travel in some cases" is an inconsequential side effect for anything that treats an often debilitating chronic illness that is not even within the realm of consideration for the overwhelming majority of patients and that likewise "no negative effects on international travel" is not really a meaningful improvement over the status quo of treatments (all else being equal). Basically, if your biggest gripe with a treatment for a chronic illness is that you can't travel internationally then that's a pretty small gripe.
Isn't this what the free market is supposed to deliver?
Now you want a marginalized gov under fire to save you?
It most definitely was not a solved problem when Perl was big, as far as I know Ruby is the language that finally solved it with bundler, which was released after Rails was, so that's like 2007 or something.

The recipe for the 'solved' deployment:

- a compiler that ships with a build tool (so building is homogenous in the community)
- a centralized or at least uniformly accessible package repository (so dependency acquisition is homogenous in the community)
- a common file format for describing dependencies (so dependency resolution is homogenous in the community)
- a common file format for locking dependency versions (so deployment can be done reliably without vendoring dependencies)
- optional but very nice: a tool for managing compiler versions so it's easy to switch/upgrade projects

Any programming language that has all of these boxes ticked is a modern programming language in my book. As far as I know Ruby is the first that ticked all of them, but other ones I've used that have this: Node.js, Go, Rust, Haskell, Python (though it's a bit messy). I'm pretty sure C# checks them as well nowadays, but I haven't used it in over 5 years so I'm not sure. Same for Java.
> A 50-100 person team can do /almost/ as well as a 10,000 person team in the same domain. You spend a lot to go from 90% to 99% or 99% to 99.9%.

I'm reminded of how AMD's graphics division is a fraction of the size of nVidia.
U.S. firms shield CEO pay as pandemic hits workers, investors
They also stopped the clinical trials (a huge mistake IMO, because like this we keep the question on prophylaxis unanswered): luckily the large RCT in the UK did not just look at Lancet, but they evaluated their own safety data and decided to go on (to be fair, they're also evaluating other drugs).

Previous discussion: https://news.ycombinator.com/item?id=23322658
Probably a dumb question: if the main benefit is speed, why wouldn't I just want to use a plugin to make my Wordpress site static?
>Your opponent is not afraid of getting down dirty on moves

Hear hear, the US just pay some privately-own'd armys for the 'dirty' stuff, to stay with your analogy, they just pay another thug that was probably a professional boxer in his former life ;)
Didn't know about citizenfreepress, will add it to my rotation. thanks!
That’s basically what the rest of the docs are for. I’ve been playing with it recently, and there is a learning curve but probably less than learning webpack from scratch.

I also found it useful to look through the code in create snowpack app, it’s not very dynamic or complex, the config files are written in a simple way and they get copied over or extended by the app that the tool creates for you.
I definitely agree for production-grade applications. Most of the time I'm using python, though, its to script a task I need to do or throw together a small app on a raspberry pi at home. In those cases, I have my own "standard library" of packages I always have installed system-wide, like requests.

Unless I am making a "real" application, I do my best to avoid virtualenvs altogether.
Wait, you accidentally experienced ego death while meditating as a kid!? That's fascinating

If you're willing to share, I would love to hear more. How did you get so deeply into meditation? What was your practice like? What were you doing that got you to such a "bad trip"
This is what Quiver does underneath the covers. Every note has an unique id, same as attachments (photos, files, pdfs, etc).

My only problem with Quiver is that it seems that development has stopped, so the chances of adding new bits (like link autocomplete, for example), are thin. Other than that it's a pretty useful tool.
>"These platforms act like they are potted plants when [in reality] they are curators of user experiences, i.e. the man behind the curtain for everything we can see or hear,”

Nothing incorrect about this statement.

Worse still: if conservatives try to build their own platform (Gab), they are blacklisted across every mainstream developer platform.

I'm glad there is legislation for this.

>would address complaints that the online platforms are deceiving people by picking and choosing what content to allow or block instead of acting as politically neutral platforms or moderators.

This is great news!
So narcissism and egomania could possibly be a result of a bad diet?
Not sure why you were downvoted, guess saying you think dynamic types are good is counts for a downvote these days. Oh well.
Is there a way to do this for the maps search? I only see an option to change the directions provider.
The best hacker to get professional help from
I was able to get my DUI cleared because of cybervenom6 proficiency. Contact him now to get your hack done ASAP.
Bitmovin (YC S15) Is Hiring Sales Directors in the US
This is probably what happened. As a hiring manager i want to tell the candidates whenever we reject them but sometimes recruiting drops the ball and never reaches out with rejection email or call (our team usually calls them).

This happened to one of my referrals so i know this firsthand.
As its intergalactic matter its surely not related to Dark Matter, which has been generously noted in other comments. Dark Matter is responsible for galaxies holding together, something this baryonic matter can not do.

With that understanding, it increases confidence that the existing model of Big Bang processes? So no, not revolutionary, more like confirmatory.
The ouroboros bites itself; having escalated all other debates to the most hysterical terms, and allowed the injection of far higher volumes of nonsense than it's feasible to fact-check, the fate of Twitter is going to be decided in that febrile environment.

The success of Twitter after the Arab Spring was that it became a revolution-causing technology. The downside of that is that it can cause a revolution whether you need one or not, and the outcomes of revolutions are usually much worse in the short term and often in the longer term.

(I note this is already flagged off the HN front page!)
This feels like blowing smoke into the media to distract from the two headlines this week. Economic numbers are being hidden because they are unflattering and US has passed 100k deaths.
Show HN: The Sustainable List – all the good fashion brands at a glance
Interesting, the first link on Google is the 5th link on DDG for me.
No I meant the pyenv virtualenv plugin. Have been using it for a long time that forgot that there's a plugin involved.
Miaow?...
Thanks. That's a really good point - maybe it's usable on earlier versions. Can't remember why I thought otherwise, will have to test.
This book mostly agrees with you, but would claim even at the beginning it was a counter-reaction:

The Reactionary Mind - Wikipedia
https://en.m.wikipedia.org/wiki/The_Reactionary_Mind
I think to remember something about being able to compute the fixed point of the function x -> x+1 (that is, a number for which this function returns the same number). Our teacher showed us this function, and i think he also told us, curry reaction when people showed him this was something along the line of « well, that just means my theory is more powerful than yours, because it can express things yours can’t ».

that was 20 years ago, but it made a big impression on me, so i think my memories are correct :)
Finding new building blocks for web applications is hard, so we created this
I'm happy with it. I'm not sure why I resisted turning on iCloud Photos. It makes cross device management a non-issue. Now I just need to find the time to cull my 20k something photos...

The major sticking point remaining is a shared library. I have my photos. My wife has hers. How do we manage photos of our children without duplicating?
Does bin/python in a virtualenv set PYTHONHOME correctly..?
The time for pleasantries is over. This is a totalitarian move designed to suppress the power of private entities' speech and expression, disguised as a reaction to perceived bias (which would still be an invalid pretense for any such order). Absolutely terrifying and disgusting attack on an American industry by our own executive.
What happened to AppGet is not what embrace, extend, extinguish means. This strategy refers to writing software compatible with existing dominant software surrounding some shared interop (e.g. a file format they can both read, web standards they both implement, a networking protocol so they can communicate with eachother, etc), gaining market dominance, then making your once compatible software incompatible. Absolutely none of this happened with AppGet.
It's not the kernel that's constantly moving, it's the hardware. The idea of regmaps is that when you get a device revision B, rather than having to sprinkle "if(revision == ...)" all over your code you just look it up in a table.
I've been using it at my daily driver since 2010. At first, I stuck with it because it wasn't Google. I noticed right away that it would turn up different results from what I came to expect at Google. Then I noticed that, although they were different, they were just as effective and getting me the information I needed. For example, it would prominently place websites I may not have heard of and that didn't show up high in the Google results, but when I just went with it anyway I discovered that relevant information that solved my problem was there.

I think a lot of people try out DDG, see some sites they don't recognize and then dismiss it as producing bad results because they are not Google results. We basically trained ourselves to use Google as the benchmark for what a search engine should produce - not in general terms of reliability of information but exact results. Then something else doesn't produce those same results and it's crap. Or, for a particular query, the top Google result is the best and the second or third DDG result is the best and that makes it crap. Search has always been a little bit of an art where you have to learn how to do it effectively and how to quickly parse your results.

I use Google maybe a handful of times a year and I would rarely find better results over there. It got to the point where I really didn't like their result page at all compared to DDG. It seemed spammy and it was difficult to parse. For a long time, they were fiddling around with things like displaying the full URL or making ads look more like legitimate results. On the other hand, DDG was doing things like zero click info and instant answers. I came to prefer their results much better. I showed up for the privacy and after a little while I stayed because it worked better.

I have tried Google a few times recently and they are doing some cool stuff with their results page. I particularly like the "featured snippets" and "people also ask" sections. Featured snippets is similar to DDG's zero click stuff, but it works with more complex queries like "best travel trailers for first time owners". But for years, DDG was doing cool things with the results page while Google was just a list of pages with ads, videos or news featured prominently at the top.
You know that UCSD Pascal or ISO Pascal isn't the original Pascal, right?
According to this post...

But who came up with the word “Ketchup”?

Who knows? There’s much debate over the origin of this word. Some say it’s a variant of a Chinese word for fish sauce. Others say it is a Malay word for the same.