skysight-inc/HackerNews huggingface dataset:
To make all of the code available to everyone is not a good practice, even worse if access is granted r/w.

There are security and IP aspects that the company must consider and granting access only to what is needed by each person is a standard good practice in that regard.

On a more technical note it also forces people to maintain well-defined APIs because these are the only thing customers (e.g. other teams) can see.

Keeping the source code for different products on different repos enables to achieve this encapsulation and also decouples all maintenance aspects.

In practice there is a sweet spot to find. In a microservice architecture people can get trigger-happy and create many, many services to build the product. Having a repo per microservice can become cumbersome very quickly.
Hahaha that made my day
Are you refering to this:

https://github.com/BoschSensortec/BMP280_driver/blob/master/...

...?

Because there is nothing inherently modern about this code, this is how C has been written for decades if not from the very start (I think you will struggle to find patterns in this code that are not covered by KnR).

That being said, there are books that cover relatively new developments in the C language and its ecosystem, such as "21st Centry C" by Ben Klemens (but even this book is something like 5-10 years old).
Why use SQLite?

My postgres process doesn't come close to using up enough resources to push me out of even the cheap VPS tiers and I don't have to worry about locking if there's a heavy write load.
If only you could specify in your schema that element must be unique. But wait a minute ! Actually, you can. That's what the unique attribute does.

And here lies the main problem of XML. As a technology, it is better than its reputation. Sadly, next to no one knows how to use it properly.
I mean people don't need to go gather primary sources as much if every important event has thousands of smartphone cameras at the scene.
Depends on the cat -- mine likes to follow me down to the basement and go when I'm in the middle of cleaning the litterbox.
Reading mind and Visualizing thoughts using AI
With respect, I think the author of this article has learned the wrong lesson about NAS devices.

Yes, when you discover your systems are compromised, the first thing to do is to take them offline and fix them. But you need to keep your utility devices online for them to be useful, and putting everything in the cloud is not the right solution unless you’ve looked at all the security risks of doing so. And all the risks of losing everything you’ve got in the cloud because your cloud provider has a hiccup. Or if your cloud provider is compromised.

I’m willing to trust some selected cloud providers to store my private data, but only as the off-site backup. And only if the content has been at least double encrypted before it has left my systems. And even then, I will keep high “Chinese walls” between those cloud backups and everything else I do online.
Cardelli is a highly reputed academic. That book is a pretty seminal book, lots of papers refer to it.

I'm also not really sure what you're trying to point out. When you talk about a calculi for FP, you're talking about what? Lambda Calculus?

If so, the base mathematical model of OOP is the Turing machine. That's the model of computation involved. It's been extensively researched and is absolutely well accepted and recognised by everyone everywhere.

Similarly to how there was no mathematical model of Haskell or Idris, etc. There wasn't any for OOP languages either like Java, C++, etc. Any attempt at a mathematical framework over those languages came after, and none of them have a strong one that I know off. Some of them, maybe most especially Idris, did get a lot of inspiration from known typing mathematical models, but still the language itself does not have a full on calculus of itself (correct me if I'm wrong)

If you're talking about type theory and type systems as related to provability of computation, that's like a whole other conversation. But even then, there's ton of literature that research type systems that can prove OOP, often focused on subtyping since that's the main typing discipline of most OO languages with static type systems.
Paywall bypasa: https://outline.com/jKtShv
The creator of systemd argues that the design of upstart was fundamentally flawed:

http://0pointer.net/blog/projects/systemd

(See heading “On Upstart”)
The ability to measure things like intelligence accurately doesn't determine the threshold at which there is an effect. This isn't about whether or not you die - there are other risks worth considering.
Who amongst us has not said something (well, many things for me at least) when they were 19?
I typically use "_fraction" to indicate this in floating point variable names, along with a comment explicitly mentioning the range from 0 to 1 somewhere. Seems to minimize confusion pretty well.
I think the problem with the "shocking" is not so much the actuation force, but the travel distance. I find it's pretty difficult for me to precisely (<1 mm) control finger movement. On a key with longer travel you have more of a margin of error if you will.

Going by your numbers, on the apple, you have 0.19 mm to "stop" your finger going down. Also, there's nothing to let you know actuation has happened. You just have to "know" by how long the finger has traveled that the key must have actuated.

Contrast that with the cherry where there's a quite some distance between the actuation point and the bottom. There's also a bump (except in linear keys) right around the actuation point, so you can actually feel the key is supposed to have registered.

So all in all, even though the actuation force of the keys is low, it's very easy to bottom out. Or rather, it's not easy not to bottom out. In my experience that's why those keyboards are less comfortable than MX browns and clones (I have no experience with other kinds of mechanical switches).
It really depends on a couple of factors: Nature of business, location, regional Govt etc. Corruption at lowest level is the most difficult to remove though because the cabal of Babus have it in their interests to make things as difficult as possible. Your tone is not in keeping up with HN etiquette.
Yes, but this what the feature is aiming to address. Apps that use the Facebook SDK will have to ask for permission to track the user and if the user says no they shouldn't intialize the Facebook SDK, at least not the parts that relate to ad analytics and tracking.
If $171 month is discouraging, let me reassure them.

There’s statistically a 95-99%+ chance you’ll never get to 55k monthly users with your app so don’t worry!
For trusting peers I thought about adding certain questions into the dataset where you know the answer to and see which nodes give you the right answer and which nodes give you garbage.
Facebook Reality Labs Research: The Future of Audio
Perunit
Yes, but a python app can be efficient enough to serve that many users on the smallest size droplet. Any additional speed gains would only be useful for scaling and MAYBE latency.
That's a feature, in case you need to crank the power up to 11.
It sounds like most of the separate backend apps could be squeezed together on a single host or into a single service. .Net has good threading, and some quality runtime bits and bobs - cram everything together into a monolith (api, queue, front-end hosting, auth). Use your DB as the queuing service. Gogs/Gitea and Laravel demonstrate this “super cheap all in one” quite well. Make network RPC into in-process function calls. Trim down from 3 SQL dbs to a single DB with multiple namespaces. Forget the redis caching layer - at the 1000 concurrent user mark, you don’t need it; or try materialized views or expression indexes.

Not only will this cut the hosting costs in a quarter, but removing many of these DBs and caches will also make the service much easier to develop - so now you can open-source it easier.
You'd probably just connect carbon capture plants to the grid, and run them when electricity is cheap for any reason (presumably any fossil sources have no reason to run at this time...)

On a grid with enough opportunistic loads, you'd never need to ramp down reactors.
Better languages will let you call the variable just "accuracy", but with type "float 0 to 1 inclusive" with some literal syntax; so from

function FuncName(float AccuracySOMETHING)

to

function FuncName([0...1] accuracy)
The town's so full of these confounded dials (195 BCE) https://news.ycombinator.com/item?id=21810145
Just run apt install billion-$$$-arr regulated-institution and write a systemd unit file, then run apt upgrade occasionally. What’s the problem?
I took it as "contradiction in terms", you can't be modern and C (incidentally, I love C)
Worth noting that Optimizely is the A/B testing tool of choice for donaldjtrump.com.
Humor doesn't have to be obvious to be good; and a magician doesn't have to ever give away the secrets of their illusions, no matter how loudly their audience cries out.

But I'm terribly sorry if you didn't get it. Just a simple play on words. It's certainly not insular or community destroying - an accusation like that is simply hyperbolic. Perhaps like most living things, growth only comes when there's opportunity to being tested and stressed.
That's true, but I don't think there's a need to be plugged in the grid to enjoy energy generation. There are already a ton of things embarking their own energy generators (every single vehicle to start with) which aren't plugged in any grid. Batteries are also ubiquitous.

So there is definitely a need for small scale to very small scale energy generators, and dismissing a technology because it's unsuitable for large-scale generation doesn't seem wise to me.
I don’t notice much effects from cbd. Sometimes hints of a “body high” but I’m not sure if it’s the placebo effect. The only thing that seems to matter is the thc content. For me, a little dose of a high thc gummy is the same as a big dose of a low thc high cbd gummy. So I could take cbd on a work night, or probably even during the work day, but it wouldn’t do anything for me.

When I talked about pot, I wasn’t taking about cbd, although I apologize if that causes confusion.
I've tried multiple collars. The magnetic ones always go missing, and the ones with a buckle have resulted in it being stuck in a hedge...

Our cat catches birds and rodents about equally judging on what he leaves at the door. I really appreciate that it catches mice and rats. It's unfortunate with the birds, I try to make up for it with a garden where they have ample opportunity to nest and find food.
That sounds great for the environment - let’s grind and hide this pile of trash for a few decades, what could go wrong.
I'd call it PropUnity, for proportion of unity, unity being 1.
"Normalized".

That's what we call data that have been scaled to fit on a tidy axis.
وظائف الأهرام يوم الجمعه
* Shadow organisations backed by US billionaires pumping hundred of millions of dollars into misinformation campaigns.
* The Murdoch news empire which basically does the same thing.
* Russia backed misinformation campaigns.
* Decades of mismanagement of education.

... and probably lots more that I don't know about since I'm not from the UK. Blaming the misled and uneducated masses for this kind of thing just doesn't work.
And then it sits in a landfill for eternity! Imagine how many millions of tiny computers (and batteries - oof) are just sitting in dumps right now. That's the most egregious part for me: this test is exactly the same as the analog one, but it generates eWaste.
Why is diesel sprayed on the ground?
I guarantee literally nobody removes the batteries before throwing these out. It's a shame, really. I'm sure there are bulkier sources of eWaste, but still. Someone pees on a computer for 30 seconds and then it gets thrown away forever.
100% of terrorists actively consume water on a regular basis, too.
Great, we really need a way to produce massive amounts of green energy.
I think that only works for stories where the text in brackets is a number, so "(150 AD)" or "(195 BCE)" won't show up. (And of course this submission hasn't crossed the threshold of 40 upvotes yet.)
Isn't that simply a decimal fraction? https://en.wikipedia.org/wiki/Fraction#Decimal_fractions_and...
This has a nice confusion factor because IEEE calls such floats denormalized. Because they may have extra precision and different format.
That seem impressive numbers until you look at the total numbers that companies they move:

https://fortune.com/2018/01/18/apple-bonuses-money-us-350-bi...

You are taking the statement literally. In that sense you are completely right, that companies pay an amount of taxes above zero. But, if I pay $100 in taxes but I get back $110 then I have effectively not paid taxes. Even that is not literally true as I paid and then I got them back.

> income tax rate north of 20%

That is after all the accounting magic. As a non-tech example, did you knew that Harry Potter movies did not won any money (https://deadline.com/2010/07/studio-shame-even-harry-potter-...). Of course, that is ridiculous, but it is accounting truth.
C is a FP language. So are C++, C#, Java and JavaScript.

They're not functional first like F# or Scala.

A programming language can embrace multiple paradigms.
You can't create a world movement if all your means of communication are non viral.

That must be why there were no religions before the internet..
Actually in Indian market the primary target audience i believe is 2 and 3 wheelers, which have smaller batteries and shorter ranges. China has already converted most of such fleet to electric. Due to lack of capability in producing batteries locally in India as well as geopolitical issues hampering China imports and dependency, this is one policy designed to make adoption cheaper.

Indian ICE manufacturers never had the vision to create an EV industry at home, they are very reactive in nature. Only Tata, Mahindra have some capability and most of the 2 wheeler manufacturers were importing almost all the important components from China.
Yes, a single neuron is just logistic regression.
No one commented on the worst that could happen if we don't spend the money.

I guess I should have asked also what is the best that could happen, one way or the other.
The best C book is the Kernighan + Ritchie book "The C programming language", hands down. This is also one of the best books on practical computer science available today. Other books could help to provide a more modern take on how to adapt the language to 2020, but the original K+R book is still the best way to really learn the language.
> the UK’s technological sovereignty
That's true for even a casual website user. They have no idea or care about the underlying database.

Every app developer is aware about SQLite.
How does remineralizing toothpaste whiten teeth?
Toothpastes are a great way to whiten the teeth. There are a lot of ingredients present in the toothpaste which helps the teeth to get cleaned and whiten as well. Fluoride is a top component which is included in teeth whitening toothpastes. One can choose from the quality toothpastes available for them. https://stoneybrook.dental/family-dentistry/
> between 0 and 1 (inclusive) [closed]

Why yes.
For me at 40 it's cursing 16yo me for putting that motorbike through that fence and screwing me knee, 17yo me for lifting with a shoulder injury and 19yo me for playing football on wet astro-turf.

It's sorta funny how the bill for something something I did over 20 years ago didn't come due until recently.
Normalized could also imply demeaned.
A Requiem for a Dying Operating System (1994)
The best book for me was the King book.
Clear. Thorough. And most importantly the order of the chapter topics.
And definitely do the projects to practice.
Nvidia RTX 30-Series – You Asked. We Answered
Do you have a source for this? If someone is in your home they're on your property, and generally you can record whatever you want in a single party state. It's not "zero party" if you know there's a recording. AirBnb's do it all the time. There's exceptions for recording naked people and bathrooms, but in most states it's fine otherwise.

Recording audio in a business is 100% legal in nearly every state. Most businesses do not give you any "expectation of privacy" outside the restrooms.
> substituting o for a '0'

pls no
INI only supports 2 levels of hierarchy? That is not equivalent.
David saved my academic career, if not my life. When I faced expulsion from the LSE, having already left the University of Chicago due to the health issues, he wrote a compelling letter on my behalf when there was no reason for him to do so. I wasn’t even in his department.

Although he and I disagreed about a number of things, I will forever appreciate him sticking his neck out for me when there was little evidence to suggest it was worth doing.

Thanks David.
>Also how Jio abused and flouted ALL regulatory things and gave free data calls for over one year when the law explicitly forbids it.

Jio was questioned and it argued that IUC (Interconnect Usage Charges, the minimum charges that are to levied on the user for a voice call on any Indian cellular network, these charges are charges levied by a network for a call that originates in another network but terminates in its network) was relevant to normal mobile calls, and what Jio was providing was essentially data calls, akin to talking on whatsapp, it can give away free calls.

It's not like it was not questioned, or it did not explain. Also other operators have opposed the free calls issue because they earn quite a bit of revenue from IUC charges, which are basically a tax on allowing users on one network to call users on another network.

So you can make the call, whether Jio actually flouted the rules, or did it make it cheap for everyone to make calls in the market.

As an additional point, TRAI, the main Telecom regulating body in India, has slashed the IUC charges by half in 2018 and is set to be completely removed by December 2020

> I also love how you ignore that the govt pressurized telcos to pay AGR dues while Jio was let out of the payment cycle

AGR dues are just that, dues. Money the companies were supposed to pay, but did not and accumulated the dues. Jio was a new entrant and has significantly lesser dues (195 crores), compared to other players (Airtel, which has been in the market for decades, owes about 44000 crores). All of them were given a time period of 10 years to make staggered payments, payments that they were supposed to pay, but ignored. That is a huge loss for the country. Even in the courts, the companies did not fight about dues, they fought about whether they were responsible for past pending dues on spectrum, that they purchased from other companies.

All companies went to court, when they were asked to pay past dues of spectrum purchased by them recently. Essentially they were asked to pay for the dues accrued on the spectrum, they recently purchased from failing companies.

>And yet you totally neglect that when flipkart begged for speific ecommerce protection none was provided

Flipkart opposed relaxing rules related to FDI norms and asked for specific protections for e-comerce. The rules were relaxed nevertheless.

>Only when Ambani reacted to launch JioMart was the protection avoided

I guess you meant to say 'provided". I would like to know what specific protections were provided to JioMart?

>Well, Modi govt put red tape so much that Tesla chose to go to a country which blatantly copies IP and patents.

>Things are that bad.

I am curious about this also. As far as I remember, Tesla never showed any interest in building a factory in India. However, what exactly are the "red tape so much" that you are talking about?
> All govt companies are now bankrupt

This is categorically false. There are several PSUs that are profitable. From a cursory Google search: https://www.fortuneindia.com/psu?year=2019

Maybe go easy on the exaggeration.

> BSNL is on the verge of collapse because BJP considers Jio as the "official govt telecom company"

BSNL had it coming with years of mismanagement, high employee costs and inability to upgrade infrastructure. Though, you could certainly argue competition from Jio accelerated it with its predatory pricing.
Sure. Or they might quit using your services because they're not accessible. If they're really ticked off, give you bad reviews.

Bonus that support mails are hidden behind ludicrous forms, terrible website design, images (to prevent spam) and so on.
Do people still use the K&R style of declarations?

OTOH a microcontroller is an acceptable approximation of a PDP-11, so much of the old approaches are very directly applicable.
Are there simpler ways of magnifying video? For example, converting to HSV and amplifying the Hue scale inter-frame differences for example?

Sorry if that seem a very simplistic approach, but curious what other techniques have been tried outside of Eulerian/Lagrangian magnification?
Show HN: Surveyless – instant web surveys from text/markdown/doc files
Good grief. You posted this 7 times. That's obviously abusive and obviously a bannable offense. I'm not going to ban you because I understand how crazy-making it is to represent a minority/contrarian view and feel surrounded. But please don't do it again. Also, you were posting unsubstantive and flamebait comments more than once before that. Can you please not? We're trying for something better than that here. The idea here is: if you have a substantive point to make, make it thoughtfully; if you don't, please don't comment until you do.

https://news.ycombinator.com/newsguidelines.html
ASK HN: Product Launch
As a startup with limited resources, how do you execute an effective product launch?
The Digital Asset Management (Dam) Checklist
Analyze the Sentiment Behind Customer Reviews with SmartReader
> It's like a microscope for motion.

Temposcope
Why aren'y you just using xpath? There are mature and powerful xpath libraries in all major languages.

Of course if you use only one limited tool which was never meant to be the main manipulator of xml (getElementByID), then you'll run into problems. It is like never using regexp and complaining that simple strings are a bad data structure.
Best Email Marketing Hacks
But if they can choose between saving 10% on infrastructure or adding 5% ad revenue (through more optimizations), the additional revenue is worth more.

Just running Facebook, Instagram & Co as a platform would probably be much cheaper than $8 per user.
I would add to that list,

"Secure Coding in C and C++, Second Edition"

https://www.oreilly.com/library/view/secure-coding-in/978013...

"Extreme C"

https://www.packtpub.com/product/extreme-c/9781789343625
Recording audio of passengers and house guests is absolutely fine in most states. I had a dash cam recording audio the entire time I was driving rideshare, many drivers do.

And it's not legal to bypass copy protection post DMCA for recording. So in most cases it's not legal to make recordings
I think I like portion. It is one of the only nouns that suggests an upper limit of 1. The other contender is 'unitized'. I don't like normalized because it feels too much like something that was actively normalized.
Why Is Google So Confused About Its Own Birthday?
Then outsource to a company that can handle these basics such as filtering that can be done in minutes in Outlook or on a mail server.
> It wasn't me who said "templates" first.

But you were talking about generics, which implied you were incorrectly conflating that with template meta-programming, since generics are done with templates.

> I don't think of them as a practical way to do compile time computation

Templates are however the most flexible, advance technique for C++ compile-time programming, though the C++ standard is evolving to bring more and more of those features into the language without using templates, i.e. "constexpr if".

My recommendation would be to avoid speculating on what the benefits are of a language or its features if you clearly don't have serious experience using them. It's fine if C++ is not for you.