skysight-inc/HackerNews huggingface dataset:
We are starting a new project and we have been researching about React UI libs. We wanted to go with Ant design but we also found that it is very difficult to customize while using Ant design. We are still searching but this post helped. Thanks.
Usually you go through vfprintf, which is the “most generic” function, and that will grab the file’s lock.
Any binary float is exactly representable in a decimal float with enough digits. This is not true in the other direction. for example 1/5th or 0.2 is 0.001100110011... in binary.

So a simple solution for binary to decimal is to express it as a larger decimal float than you intend to show and then crop off digits if it doesn't fit in your destination format.
Facebook’s Remote Work Policy Means for the Future of Tech Salaries Everywhere
This is clearly very related to efforts to take TSMC away from China.

Conjecture:

This new fab was announced the same day as restrictions on TSMC selling chips to Huawei, it's 2nd biggest customer.

Presumably behind closed door negotiations, TSMC made clear that if they were banned by us from selling chips to China, they'd just split the company into a "China branch" who breaks these US rules and a "USA branch" that follows US sanctions.

To preempt that, the US government offered a sweet deal to TSMC, to start a fab in the US with massive subsidies, on condition they didn't move any more tech to China.
I had a quick look at mastodon a while ago and saw a few more problems with the model, but I wasn't aware instances could block each other. Maybe some day there will be an even more decentralized alternative (Looking at you, indieweb) where it is up to the user whom they block. I'm also not a huge fan of how mastodon is an implementation, more than a protocol.
I am not sure I understand your post.

There is no need to fork. Wikipedia is a US originated project but it's also very much an international project already with a presence in 300 languages and 39 local chapters which are independant but affiliated with the foundation.

There is a reason the press release talk of a _universal_ code of conduct.
I know the Futurama episode "The Sting" explores this idea.
Society censors majority of suicides. Normal social status doesn't come with followings that will eventually figure out the person died of suicide.

People say the censoring is to keep others from committing suicide. I think it's simply wrong to censor a person that died from taking their own life. Outrage would be more prevalent if things weren't censored like today. I can rightfully assume not all family members are even informed how someone died in a suicide and contrary if someone in the family is lost to cancer or any other illness that results in death. It's easy to realize why certain illnesses get more funding. More people are aware of it.

A lot of positives could come from everyone understanding not all people enjoy living because of whatever reason they suffer that leads to suicide. Progress comes with understanding. I don't think the mental health field is doing a good job at innovating like we see in the tech industry every few years.
I'm surprised by this too, and then again not really. The Trump strategy to blame China seems to work really well and fit right in with some of the knee-jerk reactions in the tech-world, which does have a strong libertarian tendency.

Censorship is the devil of tech world, and invoking the image of our Satan does not lead to cool and rational thinking. The West tends to want an outside scapegoat these days because things are getting ugly in it's backyard, and China is fit for purpose.
Quite impressive testing numbers.
Show HN: From Data Model to HTML UI
Those giant framework should have done this, create your data model and automatically generate HTML UI for all the CRUD.
> AFAIK you could go to jail for having tourist money or USD if you did not have an official reason for having it (or it probably would get “confiscated” by police if they found it).

That's the theory, in practice see the article.

One thing to know is that owners of private houses with tourist guestrooms will make you huge portions so that their family can eat some yummy CUC food, even if they are leftovers, rather than the state rations. So it's absolutely not bad manners to finish everything!
This is not what free speech is about. Freedom of speech means they are free to publish their opinions, but it doesn't mean that you, or anyone, have to let them publish their opinions on your platform/paper/channel.

From the mastodon wikipage:

Gab, a controversial social network with a far-right user base, changed its software platform to a fork of Mastodon and became the largest Mastodon node in July 2019.[37] Gab's adoption of Mastodon allowed Gab to be accessed from third-party Mastodon applications, although four of them blocked Gab shortly after the change.[38] In response, Mastodon stated that it was "completely opposed to Gab’s project and philosophy", and criticized Gab for attempting "to monetize and platform racist content while hiding behind the banner of free speech" and for "paywalling basic features that are freely available on Mastodon".[39]
Don't get carried away with misquoting or you end up with a strawman.

It's "sscanf() rewrite for a log parsing case", not "sscanf rewrite".
I really love this moderation style where you self reference yourself but with added thoughts instead of only pointing at a previous comment or guideline. It shows how moderator (dang) has changed over time after reinforcement learning of hn comments and submissions.
When I learned Vue, I just inclued the library with a script tag, and started writing plain JavaScript around it.

That was about 3 years ago, and I just started using modules. Even then, I use the native browser modules, no Webpack. With HTTP2, there is little cost to requesting many small files.

Likewise, I don't use a CSS preprocessor in any of my projects. They aren't that complicated.

Those projects have no build process. What you write is what you run (WYWIWYR?). If the project is small enough I'll serve its root directory with Python's SimpleHttpServer. Later, I might have nginx do it.

This allows me to get a project running in a minute. I add tools when they are needed, because then I have the motivation to learn them and set them up properly.

Such tools are required if you must coordinate the work of multiple developers. Their cost is divided by the number of devs, and their benefits multiplied.

If you're just a home gamer toying around, you can do without them.
Show HN: Pitch Deck Hunt – 100 real pitch decks from the best startups
Not true, US had a weapons embargo against the Batista regime in 1958, this helped Castro to oust Batista.
Are any of those available multi-core? It's one thing that's pretty nice on the ESP32, especially for the cost and lack of complexity for simple cases. I couldn't find a similar STM32 part that was relatively cheap, low pin count (eg 48 pin with ethernet Mac support), and had dual core.
I never understood why people like to joke to about not being able to quit vim. When you launch vim, it literally tells you how in the most clear way possible:

type :q<Enter> to exit
Thanks. Yes, that'd also be a neat way to compare the libs. I will try to see if I can put a demo.
Actually It's better than traditional centralized system like Twitter. If it's centralized , you can't do anything after banned. On decentralized SNS, you can join the problematic instance or start a your own instance that not banning.
TSMC's chip fabrication tech is world leading, and is vital for thousands of other industries. Nearly every computing device has some of TSMC's parts in, and if TSMC tech was restricted, performance metrics would decrease across a lot of industries.

That's why both China and the US are offering TSMC sweetheart deals to not sell tech to the other.

Whoever loses this battle will probably be left 3 years behind in CPU and GPU performance. Which in turn will make them dead in smartphones, laptops/desktops, cloud computing, scientific simulations, etc.
“Tail risk of contagious diseases” by Cirillo and Taleb
It is still important to apologize so that potential or previous users can begin to form an opinion on whether or not a company can even attempt to earn their trust back. Of course an apology does not erase Triplebyte's actions, but I think that it is possible the CEO truly did lose sight of his goals and become removed from the user. The section about his experience job searching during the recession seems genuine.

Companies are becoming more sterile and calculated, and perhaps statistically issuing an apology has no impact on user retention, but I for one am glad there is still some humanity to be found even if it's a hollow gesture.

Publicly taking responsibility and acknowledging mistakes can be a powerful tool in changing. Because of this apology, I will at least monitor Triplebyte's progress to see if significant structural changes are made to keep a decision like this from being made, instead of not even giving them a chance to gain back my trust. Their actions will tell whether this apology is genuine or not.
Hey Hacker News Community ️

My name is Max, and I'm an entrepreneur based in Germany. Over the past years, I have been passionate about pitch decks as one challenge every entrepreneur will face on their journey. I always took a lot of inspiration from the pitch decks that are already out there.

And there are already some collections on the internet, but most of them lack recent decks and some functionality I would like to have — That's why I took some of my time and built Pitch Deck Hunt.

With Pitch Deck Hunt, it is my goal to build the leading resource of pitch deck examples on the internet together with you!

100+ real pitch decks from countries around the globe
from Pre-Seed to Later Stage
for every industry

We are adding new pitch decks every week so that you can get your weekly dose of inspiration.

️ I am always looking for more awesome decks, so if you have any that I have missed - please let me know.

I hope you enjoy this site and get some value! Let me know any feedback you may have, whether more resources or ways to improve the site!

Will love to work on the next version of it!
A Simple Single Sign On(SSO) Using Rails
Java had a variant of that bug too: https://www.exploringbinary.com/java-hangs-when-converting-2...

It sits in a loop flip-flopping between 2 representations, each time deciding the other one is better.

This turned into a DOS, as some web servers used floating point when decoding time zones from the http request header. So if your server has e.g. 20 http acceptor threads, someone could send 20 requests with an insane time zone, each sending 1 thread in an infinite loop.
> There's two kinds of C programmers: those familiar with Duff's device, and those who wouldn't expect Duff's device to even compile.

There's also the C programmers that come from assembler for whom the construction expressed by Duff's device is very natural. They would have a hard time believing that somebody find it surprising. For those people, it is obvious that the code should compile and its meaning is clear, as can be mapped directly to the compiled code.
Ask HN: What is your Work From Home setup
Since the pandemic started, I am working from home 100% (like a lot of others). Initially, I just created ad-hoc work place, with table and chair I have at home.

Now I want to make a proper WFH setup, thinking about furniture, monitor holders, laptop stand, keyboard, mouse etc.

What is your favorite (home or office) setup, what are essential things for your productivity and what are nice to have?
Sure, this problem can be solved as can any other -- but there's a cost to it in development time. For every feature, the dev working on it had to do it in 3 steps to ensure backwards compatibility and handle partial migration failures gracefully. Imagine doing this for a small feature - the ops effort dwarfs the actual feature! Many small features would probably be dropped.
Initially, we were also in favor of going with Ant.design. Everyone has different requirements but being able to provide customization was our important criterion to select a lib.
You could have a similar experience with virtually any other language/platform. “Someone who doesn’t know anything about C had a lot of trouble running some arbitrary C code they downloaded” wouldn’t raise a single eyebrow.

Turns out your kids actually manage to use the tools they built just fine.
It has command line and web moderation tools.

I wrote a proprietary tool that provides a Pleroma client as filesystem called Polearm
> Google (likely) did something similar for zoom

Zoom is a good example of terrible user experience. It won't even summarize the status of your connection and the meeting you are trying to join. If Skype fixed Multi-Party and made it free we would have roasted Microsoft for doing it as poorly as Zoom and Google would have filtered nothing.
My apps was a call center using Twilio. I did initially have a db for prototyping, then for demos, then we started growing and needed security and multi tenancy support. The pace and new customers started growing so fast that it just made sense to spin off new db instances (Postgres). We later started having issues updating schema, adding features, upgrading, troubleshooting. We needed to redesign the schema, backend and frontend but it was worth it at the end and saved us a lot of time.
thank you, I appreciate opportunities to improve my English
The noob probably won't even be aware of the collisions if they're a new emacs user. The org-mode keybindings will override the cua-mode bindings. Afaik, it's only shift+arrow keys.

A noob can pick up emacs, type M-x cua-mode M-x org-mode and have a simple to use outliner which recognizes most of the keyboard shortcuts they're familiar with.
This seems very interesting and I am surprised that more people are not commenting on it... looking forward to testing it out when I get a chance. I remember seeing a restored Alto at the computer museum in Seattle and it was amazing to play with...
Using Parcel.js (https://parceljs.org/getting_started.html) or Snowpack (https://www.snowpack.dev/) would give you the same benefit without pulling in the React things that you're not using.
> If Worthless Corp had 100 shares outstanding before this employee, the expense was half the company - whatever the valuation ends up being.

> This is not the same as "nothing"

Well, in the example, the valuation ended up being "nothing", and it seems fair to say that half of nothing is indeed the same as nothing. The owner in that scenario can retake 100% equity by paying nothing for the outstanding shares.
No, the key issue is that launching servers and solar panels into space costs easily 10x as much as the hardware itself.
Err = nil can be Disguising in Go
At my previous company we did. Every unique user each had a SQLite db. This sharding by user worked well for us.
Common Python security problems and how to fix them (
We actually just changed to convos.chat :)
I wouldn't be so sure. Does the employee visit California? Report to a California manager? Is the HR department calculating and applying some new, formulaic regional discount based in California?

It's also possible California & Ohio would have a shared worker-protection outlook. Many states, and some cities – among them Toledo & Cincinnati in Ohio - have matched California's ban of asking for salary histories. As public policy, they want employees judged for their current competitive skills, not some other non-germane circumstances of their life which doesn't affect work product.

Choice of residency could easily be treated the same. Even if California simply said, "you can't apply a salary-adjustment to residents of Fresno", it'd have a big effect. Ohio could then also add: "you can't pay Ohioans less simply because they live in Ohio".
The heat thing... can you use a perfectly sealed turbine or no? Sealed as in the water would not escape so it just goes through the rankine cycle... probably not enough to do that... maybe thermopiles(probably not without a cold part).
Yeah, the microjs approach is much nicer than the Node approach.

I think the mistake of modern JS (and many other languages) is conflating source files with libraries. A better model is combining many source files into one library file, which provides one toplevel name when imported. A good example is how Three.js, which has a complex internal structure, gets distributed as one file and provides one toplevel name THREE. And of course there are many examples in C-land, where a large library can live behind a single header file. A project should only depend on a handful of those, and there should be few dependencies between them, so package management becomes easy enough to do by hand - just drop a file in your project's vendor/ directory.

As a bonus, this fixes the problem of having many fine-grained imports. If done right, your project's source files might not need any import statements at all. Anything inside the project could be available without ceremony, as if it was all one big file, and external libraries live in a handful of big namespaces which are also available without ceremony.
Is Making Advanced GUI Applications with Godot the Future?
Introduction to MotionLayout on Android
It does when you open vim without arguments, not when vim opens directly a file, in which case it's confusing to beginners
> it's easy for them to get out of sync with the actual system, and this can require too much coordination.

I don't follow. How much do you have of your non-techies updating your knowledge base and how do they get to know if what they are updating is "in sync" with the system if the changes are making are orthogonal with the functionality?

It seems your case is mostly about documentation of the technical product, specs, requirements. Yeah, this can go to your version control, and I would bet that you could find a Confluence plugin that would generate the documentation from version control and sync with the rest of your Confluence pages if you wanted.

But I really, really doubt your method can scale beyond the IT side of any middle-to-large organization. The moment you ask Business/Customer Support people to actually go look at anything like Gitlab/Github's interface is the moment you lose 90% percent of buy-in from both non-techies and management at any company that is not absolutely dominated by Software Engineers.

Requiring integration with version control is a convenience for engineers, but it is so far from the tooling from those that live on Excel sheets that you might as well ask them to never touch the documentation side.
Seems like every major tech company bows in front of the Chinese government. This is really scary
Naive question: does this same paradigm apply to angel investing?
Hotel, Trivago.
What does this E2EE API achieve with something that is public publishing? Is it for private messages? Private reporting to the mods? I saw something in the description about moderation.

Looking at the linked issue, it's for PMs: https://github.com/tootsuite/mastodon/issues/1093
The Idris 2 compiler is build with Chez Scheme? That's pretty cool in my opinion, didn't know that.
What Am I Looking At?
Bionic eye boosted by hemispherical retina
encryption the records. fine,
but how do you handle the indexing of the attributes?
A regional breakup/Balkanization.
Yet there's not one implementation that does work? I am not an expert on this, but I don't think current Internet-based solutions can compete with telephone/cellphone voice call on reliability, not without some drastic infrastructural change.
It is actually a very strong medicine, but good luck coordinating a critical mass of core contributors and moderators towards a single effort.
Expect the new policies to have the "unacceptable" writeups also excluded from revision histories so that they could not be easily rehabilitated in competing forks.
That link calls me a brogrammer man child... My ego is hurt.
I'm also a huge fan of nano, no it's not as powerful as emacs, but I don't need that much power in my text editor frankly.
Here's a short post explaining why I write and share sketches, and what happened with my flagged post a few days ago (https://news.ycombinator.com/item?id=23290410).
A touch of absurdity can help to wrap your mind around reality
Sitting here in Asia: No he isn't :)
I think this is a ... bad take? Ambiguous and confusing(ed)? I mean - I guess there are people who believe in some stereotype of "real programmers", but this post kind of buys into this stereotype by arguing with it, and then does it in a way to comes of as ... lazy and envious? In this post - some points are straw-man/stereotype and some seem ... to deny worthiness of in-depth expertise, skill and experience.

I'd compare with ...

I like playing soccer, but I'm nowhere near skills of even minor-minor-league or even a skilled amateur, and there might be people that would totally make fun of me if I tried to describe myself as "a soccer player", but it doesn't make me bitter, or discouraged. I just do what I can, it works for me and I feel OK about it. I can still appreciate skills of people better than me and don't deny that they are useful and great to have, and in a way I wish I could have them, but I know it's just will not happen, not because I'm somehow worse human being, but because I have invested my time into different things and my priorities/predispositions are different.

It's unfortunate that I've found it on HN - because it will get a lot of negative publicity, and it seems the author might need actually some positive encouragement?
Natural dietary supplement to cure Tinnitus, treat hearing problems naturally
It's interesting that it featured regenerative electric braking. Whilst regenerative braking is an old idea, I couldn't find an earlier example of this applied to electric regeneration. It seems the first mention of this in a car is 1967's AMC Amitron concept but this industrial use predates that by over a decade.
Would you consider Github/tech blogs before rejecting the applicant right away? As an Indian I agree with the sloppy work culture and almost zero effort in actually learning things.
You know what's even faster... write()

I was writing part of a codebase where I couldn't use the heap, so all standard libraries were not on the cards, and I ended up just using write(2, "hello\n", 6) to send the data direct to the kernel, and found the experience remarkably simple and unpainful.
"640K ought to be enough for anyone" said by someone, possibly.

If we have 10GB networks, applications will be found to make use of it. Possibly (hopefully) applications that we haven't yet even imagined.
> You could have a similar experience with virtually any other language/platform.

I'm sorry but I don't believe the issue is as bad in other environments.

I've managed to pick up and make small patches/enhancements to projects written in Java, C, Ruby, Python - none of which I use regularly beyond the bare minimum I need (usually to patch some tool I'm relying on).

"Modern" javascript is just a huge pile of WTF with "Are you fucking crazy?" frosting to my eye.

> Turns out your kids actually manage to use the tools they built just fine.

The kids have a "new tool" every week because the "old tool" from last week has some problem. That's hardly a sign of "just fine".