skysight-inc/HackerNews huggingface dataset:
Do you, or any other HN readers, know of any articles on how to solve the problem of working out the best Point of Sale checkout promotional offer?

If I have a set of retail promotional offers going such as:

Offer 1: buy two shirts from this set of shirts, and get a 50% discount

Offer 2: buy a shirt from this set of shirts, a jacket from this set of jackets, and a tie from this set of ties all for a set price of $99

Offer 3: all ties are on sale at half price

I'm trying to figure out if the google libraries linked above can be used to solve this problem, but I can't figure out how to convert the offers into values that can be used by the google library...
> But for the love of God, can we please stop politicizing this issue? Can we please have a moratorium on blaming the other side for whatever measures should / should not be taken?

Hard to do, when the correct thing for the administration to do is to stand back and hand decision making authority and control of resources to the bureaucracy. As long as the administration keeps interfering in the response, anything about the issue can't avoid being political.
My optimization class was one of the most interesting classes of my undergrad (industrial engineering). My professor was trying to explain why optimization was important.

"Optimizing your solution ensures someone else can't come into your industry, get the same suppliers and contract terms, and beat you"

We then went through an example for an oil refinery with different sources of oil (differing proportions of sweet and sour, and quantities available), refinery production constraints, and market prices for different end products. He showed the difference between a "naive manual optimization" and the mathematical optimal.

Ever since that class, I'm particular about what "optimize" means. Factories talk about optimizing many things at the same time (on-time delivery, profit, throughput on a machine, throughput on the bottleneck machine, minimizing labor). I can't tell you how many times I've said "pick one thing to optimize - you're not going to hit them all at once". You can make an objective function a weighting of all those factors, but they won't all be at their best possible values.
I'm not sure how much that counts since my understanding is that the president's decrees are essentially laws, and when the judicial branch said that was unconstitutional the president just ignored them. Not exactly a lot of checks and balances.
I was thinking of Twitter for some reason.

Twitch could be done with a native app... the phone versions SHOULD be done with such if they aren't.
Global Azure Virtual 2020
The [1] is worth a read -

https://skeptics.stackexchange.com/questions/19836/has-phil-...
>Indonesia is still in the "pray to make it go away" stage

This is true until last Thursday, but now the government had acknowledged at least 19 confirmed cases. Still super late though.
no tests, no evidence
Elon Musk Worries SpaceX Won’t Get to Mars Before He Dies
Wikipedia: A Disinformation Operation?
Thank you, after reading the above, I went to the source, Alan Eliasen's units.txt.

You're right, there's a history of changing standards. Without having much familiarity with the topic, I'm inclined to agree that the unit of frequency based on cycles per second, in radians, is more consistent than a "radian as the dimensionless number 1" per second.

---

https://gist.github.com/cyrex562/6c7a7cdae68583c02f42658b32e...

The Hz is currently defined simply as inverse seconds. (1/s).
See: http://physics.nist.gov/cuu/Units/units.html

The base unit of frequency in the SI used to be "cycles per second".
This was fine and good. However, in 1960, the BIPM made the
change to make the fundamental unit of frequency to
be "Hz" which they defined as inverse seconds (without qualification.)

Then, in 1974, they changed the radian from its own base unit in the SI
to be a dimensionless number, which it indeed is (it's a length divided by
a length.) That change was correct and good in itself.

However, the definition of the Hz was not corrected at the same
time that the radian was changed. Thus, we have the conflicting SI
definition of the radian as the dimensionless number 1 (without
qualification) and Hz as 1/s. (Without qualification.)

This means that, if you follow the rules of the SI,
1 Hz = 1/s = 1 radian/s which is simply inconsistent and violates basic
ideas of sinusoidal motion, and is simply a stupid definition.
The entire rest of the world, up until that point, knew that 1 Hz needs to
be equal to 2 pi radians/s or be changed to mean cycles/second for
these to be reconcilable. If you use "Hz" to mean cycles/second, say,
in sinusoidal motion, as the world has done for a century, know that the SI
made all your calculations wrong. A couple of times, in different ways.

This gives the wonderful situation that the SI's Hz-vs-radian/s definitions
have meant completely different things in the timeperiods:

* pre-1960

* 1960 to 1974

* post-1974
It could be exactly the same thing as "forward this email to at least 20 people and Bill Gates will give you a million dollars," or "Facebook is checking for account activity, share this."

It's not necessarily malicious intent, but regardless of whether it is, it is truly idiotic; just like the above examples.
There is 'encouraging signs' in Korea's COVID-19 outbreak. I hope to Italy is also going to get through it.

Here is KCDC's English daily reports about COVID-19. https://www.cdc.go.kr/board/board.es?mid=a30402000000&bid=00...
This is legal slave labour.
There are actions that stop people behaving in a way they would in a perfect market. Laws prohibiting certain sales, taxes affecting companies and investors, imperfect information disclosure, are a few of the big ones.
The lane-tracing on the 2019 Toyota RAV4 is also very poor. I rented one for a long road trip and was surprised how often it lost the lines (even when clearly painted, in good weather, during the day), and how much it ping-ponged, even when it supposedly 'saw' the lines.

I hope to not buy another car until lane-centering gets decent, or is updated by non-Tesla car companies OTA. I understand Cadillac has a good system, but everything I've tried (Toyota, Honda, Subaru) has been so mediocre as to be useless.
I suspect if you laid transportation networks and commerce centers over the data there would be some alignment.
Git has the ability to use grafts for this scenario. https://stackoverflow.com/questions/1220557/how-do-i-prepend...
I really like this. I’ve been working on a retro game for my students that only allows for 256 colors. I was planning on using the 216 web safe colors, but I think using a perfectly spaced out set of 256 colors using HSLuv would be more logical.

Any other ideas?
I see this on I88 outside of Chicago all the goddamn time. Takes a little bit of aggressive driving to get past it, but eventuallually you'll find a point where there is a mile gap in the left lane, becausr people dont accelerate after a slowdown. Its fruatrating and caises me easily 10 minutes per day. I'm fine if you want to drive below the speed limit, but move put of the way (I'm talking people driving 45 in a 60 zone, when prevailing traffic wants to run 85).
Holding up traffic is technically illegal, even if you're exceeding the speed limit, but in practice, its seldom enforced.
Focus on the area your interested in, if your going to try and teach yourself, then being interested in a topic is worth a LOT more then the hot language / framework as your going to be easier to master if your interested in what your doing.

If you have an artistic side, then front end web might be interesting, learn Javascript and either Angular or React. Entry bar is fairly low, and if your a visual person you can quickly see the results of your learning. There are always marketing agencies and similar that need web work done.

If your more analytical and less artistic, pick a language that works in the domain you want to work in such as:

* Swift for iOS or mac development.

* Java / Kotlin for Android

* C# for Windows Apps

* Shell scripting / Powershell / Python for System Automation

There are a heap of languages that work well with back end web development (PHP / Ruby / Python are popular).
I had to check 10! just to see how bad this could be. At 10 it's 3,628,800. Depending on how beefy the system is and how costly the operation is, pure brute force but simple might be good enough.
What did Sundar Pichai do that his peers didn't to get promoted as Google's CEO?
Because that's usually the case. Crunch time, disaster recovery, and emergency fixes are common in every sector from video games to aerospace. If you can't fix then switch to a secondary, or rebuild from backup, or throttle users, or process manually, or do anything other than be completely down.

RH wasn't prepared with any contingency. They should have a resolution for their users - even if they can't find or fix the original cause. That's the failure I'm talking about.

See the 2 other users in this thread that describe similar high-pressure situations.
Thanks, I was really only looking for a picture of the space lettuce
One side effect just to think about, i wouldn’t take employer coverage because I’m covered by the VA, so any amount of premiums is simply an added cost, plus the large deductibles that often come with most health plans now.

However this type of system I would probably be incentivized to get something for my $500 per month. So I would probably elect to get some additional coverage even just the bare minimum without going over. This has good and bad side effects, one is that now I cost the employer $500 per month while before I was 0, but at the same time it’s better for the health plan as an under-utilizer to keep the overall costs of the plan low.

Would ancillary plans be eligible such as dental or vision or is it limited to a Health plan?
Chinese pupils celebrate as DingTalk server crashes again
You still need to trust the on device proxy
Ask HN: How do I land a good remote developer job?
I consider myself an average to good web developer with a couple of year's experience behind me in variety of languages/frameworks.
I am in process to find an unconventional route to working(geared towards becoming a digital nomad to certain extent).
I have come across some opportunities but do not feel confident to apply for those positions despite them being similar to my current work profile.
How do I get my knowledge and confidence to a level that I can easily get such a position?
More importantly, how do I find such opportunities that also pay well and have reasonable amount of freedom?
Slightly tangential: Does anyone get fed up by sales people? Especially aggresive and pushy sales reps? When a car dealership a fun thing to go to?

As a consumer, sales people bother me to no end. I was in Delhi last year, went to buy a silk saree and people were going around left and right trying to sell this and that. I prefer going to a store in Paris and skip this noise.

IMO - I could be completely and utterly wrong/naive in terms of the actual effectiveness of hiring sales people, but personally & emotionally want to rally the world to end the traditional sales model. Sell to me in the right context and without intervention and attention seeking. Sales representatives are pop-up ads for the real world - I want an adblock and block all these people.

So, we wanted to buy Solidworks CAD license for our company. I go on their website: https://www.solidworks.com/how-to-buy -> I fill out the stupid form, then some asshole calls my cell, tells me to schedule a meeting to "understand my needs", we setup a meeting in person at our company. Got a conference room booked and he starts his dog and pony show. I wish I can get rid of him. He was probably a nice person but the situation is getting in my way of the goal - As a consumer, I am willing to pay for this software but I can't without these hurdles. That makes it painful. We decided to go with Autodesk's Inventor license because it does everything we want it to do - and their prices are transparent. No need to call any one. Just click, buy and we're done in about 10 mins: https://www.autodesk.com/products/inventor/overview

Fuck sales, I am sorry but that's how I feel. Sell your products in a "pull" model than "push" model. Don't piss off your customers. Ofcourse, I am ignoring the other side - what would I do if I were running a business. Not sure, and not the consumer's problem.
> Also, Google’s $6000 payout seems extremely disappointing

Agree. Considering that they would probably make this money under a microsecond they could pay a generous reward. The impact is large though the bug is present in a single line of code.
A VPN is for hiding your IP address, not filtering. Whatever goes through the VPN, the VPN controller sees.
win-win-win
On #1, the fact that it is under control in China does not mean that it is under control globally. Nor does there seem to be an appetite for the measures that would fix that.

#2 on current data, I said that the number of potential casualties is on the same order as WW 2. Another poster gave numbers showing that this is true even with the optimistic end of current numbers. You have supplied no data to counter those numbers. Nor have acknowledged that tens of millions dead is worthy of concern.

About the rest, my sister and niece are immunocompromised. I have always had weak lungs. My father-in-law is 89. “We” might be past the epidemic but the odds are high that someone close to me will be dead. I doubt that I am alone.

You are not exactly coming across as being full of sympathy for entirely predictable tragedy.
Yeah fair call and it's more the combination of PHP + jQuery I'm referring to as being non-deterministic rather than either on their own - you can definitely write deterministic PHP and jQuery code, but the implicit integration between them (PHP rendering HTML which becomes a DOM which jQuery imperatively operates on) is what I'm saying makes it non-deterministic. I'm mostly talking about the part you mentioned in managing client-side state using a non-declarative paradigm, where you either end up with a stupid amount of unnecessary complexity (conditions checking the prior state of literally any and everything you touch, I've never really seen this in a production project) or making naive assumptions about the DOM which means non-deterministic and potentially unexpected behaviour.

> If you can get away with it, I'd say the old fashioned approach takes less development time because you don't need to handle asynchronous (and possibly failing) state syncs. The database containing any state you might want to access is available synchronously!

Fair point but there's also a flip-side to this though. You can write a client-side PWA with all your async state and data persistence magically handled by a service like Firebase Cloud Firestore, so just writing the UI declaratively and not having to worry at all about servers or databases, which generally requires a lot more upfront planning (figuring out models/schemas to represent your data, service architecture etc) than just slapping a UI together and wiring inputs up to a production-ready persistence layer API in front of a schemaless NoSQL DB like Firebase.
“Legend of the Galactic Heroes”
C's actual billion dollar mistake was losing array bounds with every function call:

https://www.digitalmars.com/articles/b44.html
I've now done two small client projects in blazor(server side) and it's amazing for small to medium sized cruddy apps with a small user base. I

On the fist project I was able to build out small apps almost twice as fast as react. And this was with 1 day of previous blazor experience before the first project.
God damn it. That happens to me with Xylitol and Maltitol. Guess I just have to suck it up and not eat sweet stuff.
Generally the ripple is audible on USB-powered audio devices that don't use isolated 5v rails.

The ones that don't have audible issues either have their own VRMs on the boards or they have a sufficiently isolated 5v rail but still use PSU power. A good board should not have issues even under extreme cases. Neither solution is particularly more expensive than the other.

If I need to maintain voltage without droop under high load, I probably should be looking at legitimate chargers, not something powered off the computer.
https://en.wikipedia.org/wiki/Olestra
I have dealt with them, once, and I got the pokey end of the stick. I honestly don't know what would work, but I think operating on someone who has specified that they don't consent is kinda the definition of criminal; I think Mayhem would be the official charge.
Perhaps but I'm not so sure we may see things play out in AMD's favor since they are fabless but Intel remains shackled to ever more costly and difficult fabrication. Either way they did hire Jim Keller and I am excited to see what he can do with their resources and technology.
Another thread describes him as a retired nurse. Any pointers to his CV?
The context is all lost here. Plenty of other companies and industries have emergency action and disaster recovery. People don't work at their own pace, they work to the deadline with solid procedures. They can fix and replace entire components to restore service ASAP since because that's the priority.

If this sounds unfamiliar or onerous then it's because you and others might have never experienced teams that do this. Robinhood is clearly lacking this experience and disaster planning.
That's a pretty impressive milestone. Cheers for the hard work from Tesla employees!
The 1,000,000th car was a Model Y.
Why is it 19V for laptops? I had suspected it’s to compensate for voltage drop at linear regulators. Batteries are either 11.1(3.7v 4 cells) or 14.8(3.7v 3 cells 1-3 parallel) and these voltages doesn’t seem immediately consistent with ATX12V to me.
FWIW, the sense line is for 3.3V, not 12V. The 12V bus will see less drop to begin with, and nobody really cares too much about the voltage tolerance on that one. 3.3V is much more important.
Modularized redundant server PSUs are usually built this way: the modules are 12v only, and dumb as bricks, with the 3.3v and 5v supplied by the PSU's backplane; unfortunately, this leads to server failure because of backplane failure.

Some SAS backplanes for cases that fit a bunch of drives sometimes have their own 5v VRMs and take only a standard 12v connector of some sort. Helps when PSUs typically don't supply enough 5v to feed a few dozen drives, but supply more than enough 12v.
>Social Security benefits can be paid at full rates for as long as Congress decides to do so.

Not at "real" rates, because a bunch of stuff Americans consume is produced overseas, and if the government starts printing large sums of money then exporters in other countries are going to demand more of it in payment for goods, so the purchasing power of the amount paid to retirees will decrease.
I've never understood why modern GPUs don't address the programmability restrictions with a minimal CPU core on die. While one wouldn't choose a GPU for programs best written dynamically or recursively, having to block on the CPU for simple statements seems like an addressable bottleneck.
COVID-19 Therapeutics Accelerator
Tesla should now focus on a mass market electric vehicle to take the climate crisis- something like a closed two-wheeler with broad tyres. Good for traffic and temperature controlled too. Chinese people would buy it in droves.
> It does seem like a bit of a flaw that removing the app on iOS doesn't automatically remove the profile such apps install

AFAIK only system apps can install profiles. These apps work by getting the user to install a separate profile via Safari.

> I'm pretty sure Apple will remove the VPN profile, which is why leaving a root certificate seems dangerous for users who don't know what they're for.

If these aren't enterprise profiles then Apple may not have an easy mechanism to block them (other than blocking their semantics).

Apple has a ton of variants of profiles, I keep expecting them to deprecate swaths of types/installation methods to help this be more understandable.
such a great milestone! I hope they hit 10 million one by 2030! We need more companies like Tesla in this world.
Maybe not in the fine details but in the broad outlines yes. With a doubling time in cases of four or five days without containment measures it would be obvious to me here in Shanghai that people were getting sick and hospitals were overloaded with new cases.
As long as you are enrolled in health coverage (whether yourself, or on a spouse's plan) you can spend your employer's health funds on dental and vision.
I guess one thing would be, this was likely the first acute care nursing home hit which may be closer to taking a random sample of what it would do to any given one (though community spread wasn't known about yet, and later ones may have rapid tests available to limit spread and enforce quarantine). Whereas those are probably the worst hit of many. This one seems to be possibly 20 or so of 140 as well (testing not done yet), but the 9/60 case would still be worse.
The Model 3 is a mass market electric vehicle with broad market appeal. Tesla doesn't make toy cars, they've left that up to Nissan, BMW, and the like.
Not really. Anything prod related is behind VPN.
Neat! Will try it out.

Amusing side fact. That demo.gif is 7 times bigger than the application binary.
Two-wheeled Chinese vehicles is a market that's already cornered by cost-effective incumbent Chinese manufacturers. What exactly would this American luxury brand have in that market?
Funnily, in programming languages based on Martin Lof Type Theory, the topic of function extensionality is a whole rabbit hole for reasons other than the halting problem.

There is a distinction between intensional Martin Lof type theory and extensional Martin Lof type theory, which differ in their treatments of equality. First, one must distinguish between judgmental equality x = y, which is a statement in the mathematical metalanguage that two terms are equal, and propositional equality, which "internalizes" judgmental equality within the programming language through the equality type Id(A, x, y), the type of proofs that x and y are judgmentally equal. In extensional type theory, judgmental equality also follows from propositional equality, and together with the eta-conversion rule for functions, function extensionality is provable [0]. However, typechecking extensional type theory is undecidable [1].

Alternatively, in Homotopy Type Theory (HoTT), supports function extensionality is provable from the univalence axiom, which states that isomorphic types are equal [2]. Function extensionality is trivially provable in Cubical Agda [3], which gives a computational interpretation of HoTT's notion of equality.

[0] https://cstheory.stackexchange.com/questions/46331/extension...

[1] https://cs.stackexchange.com/a/112559

[2] https://ncatlab.org/nlab/show/function+extensionality#relati...

[3] https://agda.readthedocs.io/en/v2.6.0.1/language/cubical.htm...
Sensor tower is a mobile intelligence tool. Correct me if I am missing something, but what is a big deal here?
And when you use free apps, obviously they sell your data (or with a high chance), they are not charities. But in return, you get hassle-free ad-blocking or VPN. It looks like a fair deal to me. Or you can find a good one that will be expensive, or do it yourself (paying the same or more, just with your time).

And there is a huge difference between what they can do and what they actually do.
In coffee shops and other places, surveillance systems can be used to steal your passwords and logins etc. But I strongly suspect each and everyone has entered their personal details while been recorded bt the surveillance system for many times. Or just in public place where someone can see, etc.