skysight-inc/HackerNews huggingface dataset:
Hi all, as a hobby I've been developing a scientific calculator with some neat features.

Available on:

* web (mobile or desktop): https://alexbarry.github.io/AlexCalc/

* Android: https://play.google.com/store/apps/details?id=net.alexbarry....

Some neat features:

* LaTeX equation display (I hated counting brackets on my old graphing calculators back in college, now I wouldn't have to if I wasn't ~10 years late in making this)

* variables (you can store variables with `1 + 2 -> x`, then access them `x^2 - 3`)

* unit operations, and unit conversions, e.g. `10 km / 2 minutes to mph`, or more fancily: `sqrt((3 kOhm + j*100 mH * 1000 kHz)/(1 S + j * 1 nF * 1000 kHz))`

* complex numbers (specifically focused on making it easy to enter complex numbers in polar form, in degrees, e.g. `5 angle 90`, but press the "degree" button)

* can enter input either via button presses or typing, so copying and pasting inputs works well

The core calculator parsing, evaluating, and LaTeX generation is in C++, with CMake build files. Using emscripten[0], this compiles to webassembly for the web version, and I can also compile this for Android and use JNI.

The library converting my generated LaTeX code to graphics is "MathJax"[1], a really nice browser library that I loved working with both in the web version and in the Android WebView.

I'm happy to receive any feedback at all. One big weakness currently are the syntax error messages, I haven't yet implemented a way to point to a particular position where an error occurs. If there is some nice parsing library that I could use instead, I might consider switching to that if it isn't too difficult. Currently the parsing uses a bunch of (fairly simple) regular expressions (e.g. check for number, check for optional unit, check for binary operator, add to stack, collapse stack. This ends up with a tree of nodes, and then this tree can either be evaluated or converted to LaTeX.)

I'm also interested in hearing any strategies for a decent cross platform UI. I didn't want to just include the HTML UI in a WebView on Android, since I figured it wouldn't be a great user experience. Originally I thought it would be small enough that I could just write two separate copies... but it turns out that there is a lot more UI code than I expected (automatically insert multiplication symbols on button presses, input history, storing "recently used units" when the button is pressed, etc...)

[0]: https://emscripten.org/

[1]: https://www.mathjax.org/
That branch is on a different fork (PatTheMav's), so they wouldn't be able to do that in this case.
Attacking other users like that will get you banned here. Please review https://news.ycombinator.com/newsguidelines.htmland don't post like that to HN again.
You need Alex Jones in your life
The problem, as you point out, is that mask mandates are effective only in the fantasy world where the population adheres rigorously and uses the right kinds of masks. And even then, you’re only limiting spread by some amount in masked scenarios. A mask mandate doesn’t stop one family member from infecting the whole family. The biggest spread vector has always been the home.
Haha, I knew that line of "maxing out dev machines" might get a response about "machines being faster than users", I'm fully in support of testing software on lower-end hardware or in VM's that are scaled to what your users might be using. That said (as you also pointed out) forcing devs to suffer because "this is what our users use" is just silly.
Played it as well. Good stuff.
Tsinghua Scraps 30B$ 3D NAND and DRAM Fabs
Haha. Yes!

I've now worked at 3 different companies that built feature flags both internally and as a core part of their external product offering. I'm currently at Flagsmith (open source too).

Here are some of the more popular front-end feature flag use cases:

1. Gradual Roll Out: Build a feature and release it to 5% of your users, then increase as you see that it isn't "breaking anything". You might even do this AFTER a successful A/B Test concludes.
2. Test in Production: Build a feature and release it to only your internal team (or QA Team) to see how it works in a real production setting.
3. Feature Gating: Managing access to specific features based on a targeting condition. I've seen people do this for BETA features with key customers pretty often.

Most common reason people don't use them:
1. They are concerned about feature flag creep. Managing them if they aren't deprecated can be a problem worth thinking through ahead of time.
2. They worry about giving access to important parts of their product in production. Thinking about your environment set-up and access control is smart.

Hope this helps!
Not to be confused with:
https://2fas.com/
https://play.google.com/store/apps/details?id=com.twofasapp
Right?
Banning the book because it’s vaguely honest about what happened provides a window on how a whole lot of people rationalized their lives in the 30’s and 40’s. It’s also possible it’s a window on why there were so many willing participants.
Can you share some verses?
It's in the commit message, so it will get stored: https://github.com/obsproject/obs-studio/pull/5875/commits/5...
My first question would be: do you really want to self-host? Google have a service that's affordable: https://cloud.google.com/certificate-authority-service AWS has a similar service but, the last time I checked, it wasn't as cheap [because of their minimum monthly cost].

If you really want to self-host, consider the open source step-ca https://smallstep.com/certificates/ If you want to do everything yourself and learn a fair amount about PKI, I provide step by step instructions in my (free) OpenSSL Cookbook: https://www.feistyduck.com/books/openssl-cookbook/

It's difficult to do it right and self-host :)
This essay is a thought-provoking read, because it critically analyzes riots by their characteristics and compatibility with classic Western political thought.

It comes very close to making the assertion that once a demonstration attains 'crowd' characteristics, while that crowd may attempt to self-police, the crowd lacks the ability to effectively and rapidly restrain and disavow actors in the crowd or nearby who escalate the level of violence. Lacking any ability to distinguish the faction affiliation of orderly protesters vs. rioters at the same event, the public will readily attribute any violence committed in the same spatial and temporal context to the protest's organizers.

In my view, this specific risk makes riots an ineffective political tool: once the well-targeted violence begins, it's far too easy for its narrative to be hijacked by hot-blooded people or opportunistic agitators amidst the chaos. If poorly-targeted disorder materializes, the riot loses legitimacy with outgroups, and battle lines are drawn along faction lines.

In contrast, riots can be effective tools of terror and/or revolution. After a successful revolution, the victors often expend considerable effort to justify their actions, as the new order must be seen as normal for it to last and not be perceived as an aberration. (New regimes in coup-prone regions don't bother, because there is no expectation that the regime won't be deposed by another coup later.)

With these risks, why would anyone organize anything but the most carefully branded peaceful protest? With clear leaders, coordinators, security, video cameras, and sophisticated media relations, and ideally vetting and uniforms. Careless assembly is a recipe for hurting the stated cause, unless the goal is martyrdom or victory through superior force.
It’s not just “value stability”, there’s a good chance that without them knowing some part of their billion dollar enterprise absolutely depends on an old python component that would break if 2.7 were removed.

They know that at some point, their RHEL version runs out of extended support. Two years before that they’ll experiment with the new RHEL version on their test environment and notice everything is totally broken. And then they’ll have two years to fix it which is just barely enough time, as “fixing it” requires buy in and planning and resources from dozens of divisions and hundreds of people.

To enterprises, having Red Hat support some ass backwards old version of whatever package is not just “valued”, it’s exactly why they pay millions to Red Hat instead of running some free Linux version.
Never? I’ll give you a just riot: Stonewall (thus the slogan, “Stonewall was a riot.”)

There was a democratic system at the time of Stonewall, and it had rendered its verdict: It is good for the police to rough up gays, actually. They’re deviants anyway (we trust the word of the police on this one) and it will discourage young people from becoming gay.

So the “just choice” at the time, if you were gay, was to get beat up periodically by the police, and take it, apparently.

So the gays at Stonewall said “no” to this and rioted. And it was a unquestionably a net positive.

They did something that reads as shocking even now: they answered the authorized agents of the state, the police, doing their democratically approved work to arrest gays at bars, with violence. “This is not a drill, we are going to fuck you up.”

And it was one of the best things the activists (or “terrorists”) of the gay rights movement ever did.

This theory is important because, without it, we have no way to explain why the gays at Stonewall were right to riot, and really should have done it even earlier. But if you agree it was good for them to riot and create a milestone & a turning point in the progress of the gay rights movement, then a theory like this is good also.
Personal attacks will get you banned here, regardless of how wrong someone else is or you feel they are. No more of this, please.

If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.

Edit: it looks like all your comments in the past year have been quite against the intended spirit of the site. We ban accounts that do that. I don't want to ban you, so if you'd please stop doing that, we'd appreciate it.
Making Money Online, the Hard Way
I've heard an alternative, proposed often at Google: give devs the weakest systems possible: slow flaky net, slow machines with minimal memory so they are forced to make efficient systems for people in third world countries (key to rapid growth for many products).

Personally I don't care much about my laptop except htat it can drive a large external display and does fast networking. I only use it to connect to a VM I make in teh cloud, which is multiples faster and more powerful than my macbook pro.
> to use English as the "computer language"

This is "computer language":

for i := 0; i <= x.tctl_b(); i++ {
v, e := x.getg[i].pop()
if e != nil {
log.Fatalf("%v\nloop", e)
}
}

So is this

imul 8(%rsp), %rax

So is this

shopt -s globstar && grep -sn '\xFF' **

Whether we translate the meaning of the above into Mandarin, English, Spanish, Japanese, Swedish, Farsi, Swhaili, Hindi, Latin, Klingon, Dothraki, Sindarin or any other spoken, written or invented language we chose to be comfortable with, makes exactly zero difference.
RedReader. You're welcome.
Serious charges, in general, take longer to investigate and charge.
I was including some of the 34-65 crowd in "elderly"
This sort of thing always crops up when comparing US cities to cities in other countries.

Other countries tend to count more of the surrounding built up areas as part of the city itself. Whereas every time I look at a US city there's places chock full of buildings right next door that somehow don't count.

Looking at Pittsburg there's a bunch of "townships" and things which would be considered part of the city in most other countries, which makes it difficult to compare absolute metrics like "number of bridges in the city".
> How does destroying a target store help anything?

If only someone had just won a prize for a fifteen page theory of how riots can be justified.
> Stories of corrupt politicians enjoying years and years of pilfering of the public good are much more common in "napoleonic" systems, it feels

That's largely because "pilfering of the public good" is much more precisely defined in such systems. There is plenty of corruption in anglo systems too. In fact, having moved to England, I've become accustomed to a degree of impropriety I honestly did not expect. It's just that a series of behaviors that would be explicitly considered illegal where I come from, here belong to a grey area that may or may not ever be illuminated by lawsuits. Because oversight is extremely weak, one can get away very easily with administrative murder. It's easy to look honest when bad behavior is not considered dishonest.
With due respect, the right wing is perfectly happy to use the power of government to suppress speech they don’t like. See eg the new bills banning discussion of sexual identity in Florida schools. I usually regret responding to OT partisan comments, but statements of belief like “<my preferred political party> is the party of free speech” is exactly how you end up voting in a government that brutally suppresses free speech.
Isn't the problem more the car not seeing the cyclist, than it is the cyclist not seeing the door opening?
"I’ve never seen LPL endorse a lock before".

Correction: First time ever LPL endorsed a lock which seemed to be relatively easy to pick, Especially with the tool LPL and Bosnian Bill made..

There are plenty of locks that LPL cannot pick, like Bowly locks and new Abloys, and that is an endorsement on itself.
Took me a while to figure out that there was an invisible text field in the middle of the page for entering your guess. Using mobile Safari on an iPhone 12 mini.
For anyone who is wondering what QED is: Quantum electrodynamics (QED) https://en.wikipedia.org/wiki/Quantum_electrodynamics
Probably mutual TLS. There is a whole completely unofficial website that just walks people through debugging issues with CAC authentication…
The technique of building the funnel to point to a "sign up for our mailing list and we'll let you know when the product is ready!" link. You get valuable customer insight from the funnel, and if your marketing funnel is working right then you'll get interested customers in your mailing list. If it's not then you can iterate on it, and find something that works (or fail fast if you can't find anything that works).
Maybe? The timeline here is over a decade. It’s hard to imagine RCE without network facing services.
Trying to get people to enjoy masks is a lot like getting them to enjoy condoms or stop drinking alcohol.
My modern NeXT lament is that was had an extraordinary machine that ran Unix with a Postscript based windowing environment, and some rather remarkable applications, written in a "slow" C language, on a 25Mhz '040 with 400M of disk and 20MB of RAM.

Meanwhile, getting Linux to run on a R Pi is a major endeavor.

I don't know how light you can get a Unix with, I guess, X running on it today.
Then they could have done it in 2021 with the release of Monterrey. Heck, Monterrey was released before Omicron, so if we're concerned about COVID that should have been less disruptive than doing it now.
What sources did you use?
The author defended their unwillingness to fight this war already, and I cant blame them. Google has been trying to defeat the user & crush our will for a long time now. We have lost this battle a number of times, & only eventually worked around, come back. But it's not been a sure thing.

Im just as concerned about Google's new Play Integrity API[1], which is more pro-controlled computing, more anti-user hijinx. What a trashy time for computing. So sad to see Google closing the door & throwing away the key on people being able to explore devices & systems they've purchased. It's such an immoral anti-human stance, to fight a war against possibility. To leave no overrides available to users, to give corporations all the control over software is scum behavior, nails shut the coffin of personal computing.

[1] https://developer.android.com/google/play/integrity https://news.ycombinator.com/item?id=30095311 1 day ago, 2 comments
This one looks like a dragon: https://www.uliwestphal.de/elephas-anthropogenus/soloelephan...
They don't buy a laptop but a seat for some amount of years. So they're guaranteed X amount of laptops for Y years.

The selling company is obviously going to min/max this contract as much as they can. You could order a bunch of laptops if you had the authority I guess, but it will not be making on to the network since that is under contract too (probably the same company)
I entered the correct number and it marked me wrong four times before I lost.

Not a great effort.
The fact that they want to keep it secret means we really, really need to know about it.
This Reddit thread has a good explanation: https://www.reddit.com/r/SelfDrivingCars/comments/sac1ti/way...

TLDR: DMV asked for proprietary details during permit process to which Waymo complied noting they were trade secret. A third party used California's FOIA to see Waymo's application in full, so the DMV asked Waymo to provide redacted copies. The third party has challenged redactions, so DMV told Waymo the only way to prevent them from releasing it is to sue to the agency.
It was a Roku TV, so the Roku video signal was built-in and not passed over HDMI.
You get 90min for coffee time :)
So any one individual could corrupt a just riot by targeting a citizen or home. Seems this theory is severely lacking, then, if it basically means no real sporadic action can take place unless every single individual involved must be on the same page and avoid committing any mistakes.

In war where every soldier is trained on rules of combat, when some break the rules and do unjust things they are seen simply as "lone wolves breaking the rules". In riots, people rarely offer the same reasoning that those who commit crimes against citizens are simply "lone wolves breaking the rules" detracting from the larger movement. The lone wolves actions are taken to represent the entire movement as a whole. There is a huge unexplained distance between those two. Why is it that state powers can make mistakes but sporadic grassroots movements cannot?
On the other hand, one can argue that the voters are ultimately the source of the policies that result in the grievances in the first place. When it comes to systemic societal issues, it is not very clear where one can draw the line on fault.
Wow that game hasnt come up for quite a while - Blast from the past!
if you're on Android I'd strongly recommend Aegis via F-Droid.
My favorite around here (DC) are the drivers who get angry that I'm going 19mph in a 20mph zone, floor it playing chicken with the oncoming traffic to pass me, and then spend the next 15 blocks tailgating the same bus I was following.

I must admit I do laugh and wave when they do that only to end up sitting behind an illegally double-parked UPS truck which a bicyclist has room to pass.
They don't say it is on FDroid. Figures, as they would have had to provide source code, and FDroid would build it themselves.

With all those permissions it demands, people must have reported it earlier.
I've seen this countless times at clients, especially those who've invested in "no code" business analytics type software. I'll see out of control costs and awful performance on the servers used for these as you encounter things like people reading the entire production database into memory to produce a single report.
Who drew that one? The 3 year old prince or court jester?
Consider my problem. I had an old account with my phone number associated with it. I closed the account two years ago. I went to open an account and they asked for my phone number, Twitter says my phone number is in use and will not let me get past that point.

So I am now shut out on both ends.
The day old.reddit.com goes offline is the day I delete my account. There must be vocal internal holdouts keeping it up.
I understand the basic reasons why but anyone who actually examines this has to come to the conclusion that it's a good idea to issue sub-par tech is penny wise and pound foolish. Heck, for developer satisfaction alone I think it's good idea to upgrade them yearly or every 2 years at most. Cycle those machines through your org or resell them. The depreciation lost in resale is tiny compared to increased efficiency and how happy your devs are.
You use emacs with no extra configuration? What kind of code do you write?
Wonder if a case could be made that since public officials like the US President or other "official" government accounts post to Twitter, that everyone should be able to view all the (public) tweets of those accounts without requiring an account for the viewer. Perhaps that is already the case?
I set up a private Nitter instance to browse. It works well, and I would recommend other people give it a try. I'm using the Privacy Redirect extension in Firefox to auto-redirect to Nitter. I'm doing the same thing with Invidious for Youtube; Privacy Redirect also lets you redirect Reddit and Instagram if you use those sites.

The only real issue I've run into is that I don't have HTTPS set up for this private/local instance, so embeds don't always work. This is easily solved by getting a cert I just haven't done it yet.
How do you arrive at that conclusion? That it implies all your "personal" driving info would be made public? Seems to me its more like car companies would not be able to "hide behind trade secrets to avoid scrutiny".

Extreme silly example to make my point:

DMV: "What does your car do to avoid running people over"

Waymo: "Its a trade secret, sorry".

* New law gets passed

DMV: "Ok now tell us"

Waymo: "Ok well...it honks the horn automatically and gives the person 5 seconds to get out the way. We believe that should be sufficient for the majority of cases and if you're too stupid to move, well...natural selection ftw."

DMV: "..............really? that's crazy...it should really be more like...10 seconds."
Have you ever posted anything on Twitter? It's exactly what you describe.
the wordle equivalent of figuring out a number would be simply telling you if it's greater or less than your previous guess (i.e. teaching the masses about binary search)
In some sense, this is WAI. Hopefully along the cycle, people learn to build better architectures that are modular, scriptable, customizable, and not giant monolithic piles. If things were more scriptable, then I as a user could script them how I want creating of a wall of my own "UI" and then swapping out the backends as I see fit. In my 25 years or so programming, I wish I had done this more; scripts for everything. Learn how to use my own scripts and only adjust them when stuff breaks/is swapped out. In retrospect, I have been buffeted by the whims of UI designers for decades, and I'm kinda mad about it.
I mean, you couldn't craft more perfect bait to get HN to start spouting unrelated opinions about Google.
Have you tried using Windows 10/11 with on-access and behavioral AV (not defender) on 4gb of RAM and a 5400rpm spinning disk? I find it entirely plausible that they have to wait an hour plus for the machine to become remotely responsive.
Well, many rioters did target police stations. The issue is that any sufficiently large riot is necessarily disorganized, composed of different people with different motivations. For that reason, I think private property being targeted by rioters is actually not too different from your example of fire spreading to buildings. It seems an impossible standard for any riot / rebellion on a large scale to meet.
You could ruin your mashed potato by making clapshot :)