skysight-inc/HackerNews huggingface dataset:
What I would love is a full personal CMS type system, where I can have a subject like "cybersecurity" or "cooking" and I can add bookmarks, notes, pdfs, and they're all treated equally and as first class objects in the system.

I would love a system that treats all media the same as just a source of knowledge instead of being hung up on the source type i.e. is it a video, or a book mark or a pdf....
Let me explain my experience with tsdb selection. in 2018 we understood that we need something for long term storage.
Selection was between thanos, elasticsearch and m3db.

M3db looks promising but after reading issues and docs i found i have to test it like database not like a drop in solution. for example that topic https://groups.google.com/forum/#!topic/m3db/6iG2NL7hJ7A
And cortex and thanos announced that tweet https://twitter.com/fredbrancz/status/1043060822988259333

Elasticsearch got disqualification because of no remote_read support. So i stopped looking for anything for at least half year just updated retention policy in Prometheus to 150d.

Also VictoriaMetrics was banned because of no source code.
Also https://github.com/akumuli/Akumuli was banned because of nobody hear about it. :(

Than after some time VictoriaMetrics appears to be open source and there was no issues with rate function and useless extrapolation.

So i test it on a small setup at about 7k metrics per second on single server. And it was amazing.
Than 14k/s and 20k/s
Previously i have the volume for Prometheus data and it was about 30 gigs on smallest install to 70 gigs on largest
Moving from storing 30days in Prometheus to 90 days in vm was the huge benefit.
On every of three instances with 7, 14 and 20k metrics per second i can extend retention from 3 to 5x on the same volume. With same dashboards. With same alerts. Just added remote read and remote write.

Than i decide to take it on a real life web scale production.
So i started from 11 servers f2-micro on gcp.
* 3 storage
* 2 insert nodes
* 2 select nodes
* 2 promxy
* 1 grafana
* 1 selfmon prometheus

Got lots of expected ooms on 60k per second. Than i move to n1-standart-1 for storage and insert.
It can handle at about 650k per second insert load for several weeks without ooms or any unaxpected behaviors.
That was real life data from prometheus-operator from one of our rc clusters. node-exporters, application metrics and kubemetrics.

Tuning it to n1-highmem-2 for storage nodes so get enough room for background merges and so on.

Also i copy my Prometheus rules from prod to promxy (at about 200 in sum).
That makes some noise for read. So i got at about 70 reads per second and pretty 90% cpu utilization on promxy servers.
But almost no additional cpu load on vm servers. So i just bump all numbers in queries from seconds i moved to minutes, minutes to hours and hours to days in every query that have offset or rate or increase.
That add some load to vm but not that much i expected.

In summary i'm amazed with simplicity of scheme i got. Performance is also great. My dashboards looks the same in Prometheus and VictoriaMetrics.

Oh. by the way i have some experience asking questions in issue tracker of Prometheus and VictoriaMetrics. And honestly prefer Aliaksander style of answering - long and with good under the hood info.
Your results seem more in like with the results of maintaining high-level fitness than supplementation, but admittedly I don't know you.
Sorry let me rephrase, a carbon tax would have done these things:

- reduced Australia's carbon emissions (not a massive deal by itself)

- built up a public repository of cash that could have been allocated to something useful, like funding the fire services

- lead by example; we will now never know if Australia's leading by example would have encouraged a wider implementation of carbon tax schemes and a reduction in carbon emissions

You are correct that it would have not by itself mitigated the natural drought cycle in Australia, however the opportunity to reduce the impact was lost - and Australia is poorer for it.

Finally, I did not suggest that a carbon tax would have stopped these fires, only that I would like to do an analysis between what the potential sum of taxes would have been versus the donation totals.

Cheers.
C programs with a function with name matching /^is[a-z]/ has undefined behavior
Please don't.

We detached this comment from https://news.ycombinator.com/item?id=22002923 and marked it off-topic.
> a lot of folks from Be went to build/contribute to Android.

Does that include the quality and security perspective as well? ;-) j/k

Having never crossed paths with a former Be employee before, __thank you so much__ for your contribution. BeOS was so instrumental to my perspective on computing and operating systems (and potentially the conception of my disdain for what Microsoft did to the world of operating systems around the turn of the century).

From a user perspective, BeOS was nearly perfect. Great UI and utilities, POSIX command line, so fast and responsive. The "install to Windows" option was amazing for trying things out. BeFS was wonderful (it's nice to see Mr. Giampaolo's work continue in macOS).
> an AGPL with a CLA

You can’t require a CLA with AGPL. That would be an additional restriction, which AGPL does not allow. You can require a CLA for contributions to be accepted into your own distibution of the software (since you are not required to accept patches), but you can’t require anyone to sign or agree to a CLA if they recieved the software under AGPL.

It wouldn’t be fair either, I think, for you to sell the contributions of third parties as part of your software under a proprietary license. You can’t have your cake and eat it too; either you develop stuff yourself and get to sell it under whatever license you like, or you accept contributions from third parties all over the world under a free license, and you then sell the software to your customers under the AGPL, not a proprietary license.

You might be concerned about your customers then redistributing the AGPL software you sold them, but firstly, you might be able to fix this by requiring your customers to sign a contract with you (as part of the sale), where they agree not to do that, allowing you to sue them for breach of contract if they do. (I am not sure about the legal status of this scheme, however, and IIRC, the text of the GPL seems to want to at least discourage it.) Secondly, Red Hat allows CentOS to exist, and RH still makes a pretty penny selling RHE licenses. So this might not be a problem in practice.

EDIT: See also this post, linked by
jboynyc elswhere in this discussion:

https://sfconservancy.org/blog/2020/jan/06/copyleft-equality...
Caring about men's issues is literally an insult. I don't know why you'd think society would give a rip.
And whether it’s true or not, the fact is that a lot of big companies are actually thinking this way, and it’s affecting their decision making.
Uhh...
I heard Iranian authorities called Iraqi authorities and notified them that missiles were incoming within an hour or so.

"Iraq says Iran warned them of missile attack before it happened"

https://nypost.com/2020/01/08/iraq-says-iran-warned-them-of-...
Not only that, but as a cyclist who took scooters to the office back when I worked in one, the main advantage was when I used a scooter I didn't show up sweaty.

It doesn't matter how slow you pedal, in the American Southeast, just being outside in the summer makes you sweat. A lot of places in this area don't have offices with showers in them. A scooter let me spend time outside without having to end up being a mess.
I’ll try to do the math here.

Assuming the following:

Cost to buy: $500

Cost to charge $0.40/day (maybe generous)

Cost to Rent: $2/day

Rental Mileage: $0.15/min

Assume 10mph average, (10 miles/day) $9/day

Total: $11/day to rent

2x/week,50 weeks

100 days (200 rides):

Buy: $540

Rent: $1100

No way it’s economical to rent scooters routinely. Even if you break your scooter every 6 months, you can still save by buying a new one.

And who wants to ride scooters you know are abused? Heck, I rode one and the brakes didn’t work.
ACM Letter to OSTP [pdf]
Of the e-scooter startups I've tried, Lime is my favorite. In my smaller city (Indianapolis) we just have Bird and Lime, and Bird's restrictions on hours, locations, and parking make them very difficult to use (They turn themselves off if they leave their range, and many pieces of downtown are considered 'out of bounds'). Meanwhile, the Limes are better distributed around the city, easier to park, and have much more generous boundaries. Bird has the stronger brand recognition, but that's about it.

I'm surprised that it was warmer climate cities that underperformed in the US, because I would have expected those to have a much better chance for profit, as cold winter seasons dramatically reduce scooter usage. Too much competition?
Can you tell me about what "new ideas" it features?
Peek | Senior iOS Engineer (Seattle Only), Senior DevOps Engineer (Seattle or SF), Senior QA Automation Engineer (SF Only) | Seattle & San Francisco | ONSITE & VISA (transfer+treaty) | Full-time

Peek makes the world's tours & activities easily bookable — anytime, anywhere. Our leading technology empowers tour operators to manage and grow their businesses.

We're looking for talented engineers to come work on our industry-leading SaaS for tours and activities operators in Seattle. We're well-funded and are growing quickly. We use Ruby, Elixir, Ember, React, Swift, PostgreSQL, RabbitMQ, GraphQL, Realm, Docker, Kubernetes, AWS, GCP. Join us!

See full job descriptions and apply here:

> Senior iOS Engineer | Seattle | : https://jobs.lever.co/peek/091bd21b-eaba-402c-b563-d17ccf12e...

> Senior DevOps Engineer | Seattle | : https://jobs.lever.co/peek/95d474d1-fd33-48b8-9fa6-72875c170...

> Senior DevOps Engineer | San Francisco | : https://jobs.lever.co/peek/3557efe5-88c4-4508-aa32-1679f5b46...

> Senior QA Automation Engineer | San Francisco | : https://jobs.lever.co/peek/7ad3c3a4-7b5d-4c0f-a4de-1a15a8be6...

Check out the rest of our stack: https://stackshare.io/peek/peek-stack

If you have any questions, feel free to email megan DOT dose AT peek DOT com
Locked doors can kill if a fire breaks out in your house.
Isn't this (under desk storage) why folding bikes exist?
WeWork was a business failure but not a fraud. Basically it was yet another money-losing startup, but one which went too far.
Many electric scooter models fold into a small form factor, so they are easy to bring on public transit and you can bring it to your desk (making them much less likely to be stolen).

Also they have less of a learning curve compared to biking on roads, and are easier to maintain, IMO.
Chrome and Firefox Are Introducing Quieter Permission UI for Notifications
Find a 5mw near-infrared laser and aim it at the camera across the street
Lime has the worst bikes on the planet - they are complete garbage compared to the Uber/JUMP bikes (and probably others). The Lime bikes seemed to constantly be falling apart and were actually pretty terrifying to ride. On the other hand, the JUMP bikes feel very robust and I feel safe riding them. I would rather walk half a mile to find a JUMP bike than ride a Lime bike. No wonder they are failing.

Source: Rode both Lime and Uber JUMP bikes in Seattle (rode a JUMP bike twice last night)
What happens if there are multiple 3D or 4D objects? Do we then need an attention mechanism as well? Or is there some topology where a "where vs what" pathway emerges naturally?
Hecht is an amazing author IMHO. Even his intro physics book is remarkable for introducing Emmy Noether at the outset of dynamics.
What exactly is ProLon? Is it just moving your feeding window to 11am-6pm?

I searched on Google but the first few links offer no insight except the impression I might have to pay money to learn more.
This looks extremely promising for brain controlled user interfaces. There are already some commercial products around this, but I wonder if this newly discovered attention area is being used at all. It sounds like it's going to increase the resolution of your thought "commands" making it much more precise to control pixels on the screen. Can't wait for some games that use this.
Expertise grows with that exposure. You are learning to recognize and appreciate particular aspects, and those aspects can be tweaked by an AI artist.

Appreciation grows even deeper when you know something about techniques, theory, contexts, etc.
Grammar cheat sheet for clean, clear, and compelling writing
https://shop.ring.com/pages/privacy

> At the core of Ring, and guiding every action we take, is respect for the privacy and security of our neighbors

> Nobody can view your video recordings unless you allow it

Sounds pretty straightforward.

Send Ring's legal dept a letter telling them you don't allow it (privacy@ring.com, then certified mail when they ignore you the first time).
5 miles? That sounds more suitable for a bike, an eBike if you don't want to pedal.

A scooter just seems dangerous on the roads and even trails around here -- there are many ruts and potholes that will swallow a 4" scooter wheel and bring you to an abrupt stop.

Riding a scooter doesn't even avoid the need to wear a helmet (assuming that protecting your brain is important to you). Many people wrongly assume that the helmet is to protect you if a car hits you, but really it's there to protect you when your head hits the pavement for any fall -- there's a very low speed range where a helmet is any protection in a collision but even a simple fall can result in serious head injury without a helmet if your head hits the pavement.
This library was very useful for my simple use case for image processing. Thank you to the author!

I made a few changes to it to make it more flexible in terms of when it starts, stops, and restarts:

https://github.com/seung-lab/euclidean-distance-transform-3d...
Just buy a Xiaomi vacuum. Half the price, and no wireless beacons needed to be usable.

It gets stuck as well by default, but I set up a lot of red zones on the app and now it finishes perfectly almost every time.
Batch larger batches.

The easiest way is to grab multiple work items (ex: grab 100x work items) at a time. The thread will not reschedule until all 100x work items are completed.

---------

It is rare for 1x work item to map to 1x threads. Instead, calculate an estimate on a work-item's complexity (if possible), so that all threads have roughly the same amount of work going into them.

int estimatedCost = 0;
vector<WorkItem> myItems;
auto wi_iterator = workitemsList.begin();

while(estimatedCost < SOME_CONSTANT_YOU_TUNED && wi_iterator != workitemsList.end()){
myItems.push_back(*wi_iterator);
estimatedCost += estimateCost(*wi_iterator);
wi_iterator = workitemsList.erase(wi_iterator);
}

Pre-calculating an estimate to the work-item's complexity helps solve problem#1, while batching work-items together into the vector<WorkItem> list solves problem#2.

If an estimated cost is unavailable, then estimateCost(X) = 1. (100x work-items == 100 cost). I just bet that MOST cases have an estimate-cost function better than "estimateCost(X) = 1".

Run the code many times, and manually select the constant "SOME_CONSTANT_YOU_TUNED". If you're spending too much time scheduling, increase the size of the constant. If you're waiting too long on the "last threads to complete", decrease the constant.

---------

The problem is that people want a "plug and play" solution without testing or tuning, especially for a standard library. But in application-specific code, no one really cares if you have a few magic constants set for "performance reasons". I don't have any solution here for library-writers... but fortunately, most people out here are application writers and can afford this kind of tuning as part of their development process.
Sarcasm? The vast majority of gig-jobs are driving.

Ride share and delivery make up the obvious lion’s share of gig work.
I've been using my operators for a long time without a problem. I think the secret is the fact that I'm using custom operators that have no other overloads, which avoids the combinatorial type system explosion during evaluation. The operators I use are ≈, ≤, and ≥ (which can all be typed on a US English keyboard using the option key). I admit there are overloads on the normal arithmetic operators for doing constants/multipliers too, but those haven't ended up as a problem (it's quite possible that the use of the custom operators constrains the expression enough that the arithmetic ones aren't a problem).

For context, I've had the options on to warn on expensive expressions for a long time and we use a lot of these operators everywhere and I think only once did we ever have an autolayout line flagged, and that was due to a complicated expression used to come up with the constant value.
You definitely have a different interpretation of "Hello World" than most people. There is some pretty sophisticated syntax happening in this short example. If I were to do a real hello world, it would be more high-level and a lot shorter, but also not as useful as this example.
You could argue this saves money in the long run. If a 3rd party resource is not clearly marked as third party, you can get angry people wasting customer service resources over a poorly made product.
This part seemed like the punchline:

> Apple’s decision to go with NeXT and Jobs was doubly perilous for us. Not only would we not be the next MacOS, Jobs immediately walked third party Mac hardware makers to their graves. No more Mac clones for BeOS. With tepid BeBox sales and no future on the Mac, Valley VCs weren’t keen for another round of funding — and the 1995 round was running out.
I'm curious to see what dot.la will reveal about the depth and breadth of the tech scene down here.

I think many people would say it has potential and a few notable successes (Tinder, Honey, SpaceX, etc) but that's about it.
Oh man, I really do miss the days of actual coherent UI that is clearly "readable". The trend of flat UI drives me crazy. So much wasted cognitive effort just to make sense of something on-screen.
This was a while ago, so I don't quite remember. Either Chrome or Firefox.
Facebook is running anti-vax ads, despite its ban on vaccine misinformation
Thanks for checking it out and sharing your experience! I feel that building that tool or seeing this visualization helps certain people make your realization.
They say this is how 37°C was established:

> In 1851, the German physician Carl Reinhold August Wunderlich obtained millions of axillary temperatures from 25,000 patients in Leipzig, thereby establishing the standard for normal human body temperature of 37°C or 98.6 °F (range: 36.2–37.5°C [97.2- 99.5 °F]) (Mackowiak, 1997; Wunderlich and Sequin, 1871).

The adjective "axillary" means "relating to the armpit", so armpit vs. oral doesn't explain it.

Presumably many patients have abnormal temperatures, so to figure out the normal temperature from patient data would require some kind of filtering.

A couple ways to do that come to mind. One would be to only use patients who are there for things like an annual checkup.

Another way would be to include everyone and then do a graph of x = temperature, y = number of patients with that temperature. I'd expect there to be a peak centered at normal temperature, and another peak at whatever the average fever temperature is.

If whatever method he used was not able to exclude from the "normal" group people who are just starting to get sick and are at the stage where their temperature has started to rise but they are not aware that they are getting sick, he'd get a slightly too high result.

36.6°C is the more modern number:

> A compilation of 27 modern studies, however (Sund-Levander et al., 2002), reported mean temperature to be uniformly lower than Wunderlich’s estimate. Recently, an analysis of more than 35,000 British patients with almost 250,000 temperature measurements, found mean oral temperature to be 36.6°C, confirming this lower value (Obermeyer et al., 2017).
How do you think a thermometer works? You expect it will measure less heat because your vascular system is dilated and shedding more heat?

Core body temp != single point-in-time measurement.
I counted seven different scooter companies in my town recently. The party had to end at one point...
Now that you mention it, I recall this as well.
I think the point was that copyright is typically discussed in terms of its negative impacts. I, for instance, have never seen any discourse about the benefits of copyright.

The benefits seem obvious but there's still a place, in my opinion, for this topic.
Talk write-up: How to build a PaaS for 1500 engineers
> (Just like bread, etc., and many other things necessary for life.)

Yes, this is a very good point. You don't see people vilifying farmers for making profits on food, even though some people go hungry. But for some reason people hate developers for making a profit on housing. (In my opinion, all of the NIMBY arguments, very much including the vacancy one in the article, are just attempts to mask the real reason for opposing housing—a preference for the suburban lifestyle.)

> But this is mostly a San Francisco and New York problem.

It's not just a San Francisco and New York problem. Add Seattle, Los Angeles, San Diego, Portland, Austin, Miami, and Boston/Cambridge to that list, just to name a few. That's not even counting non-US cities like Vancouver, London, Paris, etc.

I agree that housing shortages are unevenly distributed, of course.
I try to use libraries because I do not like my software depending on a third party service, especially on such a central thing as authentication. Beware of the vendor lock-in: if you choose to externalize this function, keep in mind you might eventually want to switch vendors or implement this functionality on your side. At least choose a vendor that lets export (ALL) your users data.

That said, those services (the good ones) tend to offer much more than a simple user database, for example:

* Login with Google/Facebook/Twitter/Github/...

* Login with IAM services like OpenID Connect / SAML (mostly for big companies)

* Two factor authentication, maybe with several token types (TOTP, SMS messages, recovery codes,...)

* Password recovery flow

* Rate limit the pace of password attempts, in order to prevent brute forcing

* Monitor incoming network traffic and block unusual behaviors

* Maybe implement a CAPTCHA or similar challenge for users with unusual behavior

* Make sure the storage of all secrets is actually properly protected (password hash, password recovery auth tokens, issued OAuth tokens, etc.)

* Audit logs

If you implement auth(z) by yourself, most likely if you're going to have to sacrifice on some of these points, otherwise you would spend all your time here and never work on your project!