skysight-inc/HackerNews huggingface dataset:
The truth is that you need to do device detection, so the @prefers CSS stuff, then you need to have a toggle to over-ride things. Then you need some javascript to store the preference in local storage.

On page load you get your javascript to check the mode and check the override to add a class to the whole page. It is this class that implements the desired light or dark theme.

Fighting against you is what the browser is doing. You can put a meta tag in to force it to respect one theme or the other so it does not go freestyling.

People that have a page permanently set to light mode (or dark mode) have put in the meta tag but they haven't done the extra work to implement some meaningful choice.

In summary, there is auto, where the browser does its best, one mode enforced with a meta tag, then a full solution where there is a pretty button on the page and some javascript to honour the preference, keeping the preference in local storage.

Bonus points for adding an event observer to detect the change in preferences from outside the browser or in dev tools.

More bonus points for having no FOUC.

Extra, extra bonus points, is to implement not just a 'dark mode', but a DARK mode. In light mode everything is kittens and rainbows, whereas in dark mode the content is kind of gruesome and 'dark'. Any subject can be treated this way, a page on say, watermelons could be full of tasty recipe ideas in light mode, but, in dark mode, it could be about dropping them off tall buildings with busy streets below...
I don't disagree- and think reversing this position is a good thing.

I do however, also believe that good leaders are people with their own principles and ideas- and are willing to do what is right even if it isn't popular, when necessary. However, a huge percentage of our political leaders on both the left and right seem to have a 'dark triad' personality with narcissism, Machiavellianism, and psychopathy- and no ideals besides getting more power and admiration, that switch everything they claim to stand for on a dime like a kid trying on play outfits. I'd like to see people notice and not accept that type of 'leadership.'
I do. Just a raspberry pi with nginx and a cron job that runs python scripts.

I'm not into AI but writing those scripts is boring so chatgpt is perfect for this.
Similar thing happens in Formula 1 with Pirelli making intentionally fragile tyres.

#ExperienceAzerbaijan
I program in neovim with no plugins, no autocomplete and no syntax highlighting. I type everything myself (though I will use copy and paste from time to time). There is a discipline to it that I find very beneficial. As a language designer, it also makes me think very carefully about the syntactic burden of languages that I design. It keeps my languages tight. One of the nice things about typing all of my own code without suggestions is that it eliminates many distractions. I may get some things wrong from time to time, but then I only have myself to blame. And I never waste time messing around with broken plugin configs or irritating syntax highlighting nits.

It's not for everyone but I love it.
> That requires a legal agreement to divest to be in place, which I suspect isn’t the case yet.

Nope, it merely requires that the president certifies that it is in place, and that's something entirely different given who the president will be.
> Disregarding a law that was passed by a bipartisan majority

It was a rider tacked onto a must-pass bill. There’s nothing about the manner it was passed that makes it special or particularly blessed. This was classic congressional sausage-making.
I think this is different. I generally feel like executive orders are 1) used to take some kind of affirmative step that the dysfunction in congress is blocking 2) have some level of defensible legal theory. This feels like the opposite. My understanding of the 90 day extension is that it's supposed to be there to allow a deal to close, but there is no evidence I've seen of a deal being worked on so the legal theory seems to be really flimsy. Disregarding a law, while not unprecedented, is not a great sign given some of the incoming administration statements on a ton of other topics.
> In the US at least, the home is one of the major mechanisms of increasing wealth over lifetime and inter-generational wealth.

I just don't buy that. Most people who do that seem to ignore the heavy costs of owning a house in the meantime: taxes, repairs, maintenance, insurance, commissions, upgrades, lawn care, pest control, utilities, alarm systems, etc.

I've serially owned houses over the decades. Sometimes I'll look at what I sold them for, when, and compare with their current zillow value. The return on every one is less than if I'd invested the money in the stock market, and that's NOT counting all those major ongoing costs I listed. It's just on the price.
Biden was right about the oligarchs characterization.
Go No Dependencies: zero dependency HTTP server
None of the predicate events of those cases had happened yet during the four years during which Trump was called a criminal daily by the media.

And no, I didn’t follow those cases, because I had closely followed all the accusations of tax evasion, receiving payments from Russia, etc., during the prior four years and those has amounted to nothing. As they say, “fool me once, shame on you. Fool me twice, well you can’t fool me again.”
The other issue is many sites don't use that CSS media query at the minimum for auto setting the theme. They instead use a Javascript approach that often involves local storage/cookies even if no choice is made, which doesn't work if those are blocked and/or Javascript disabled. In such cases the default theme is forced.

The optimal approach is applying the appropriate `prefers-color-scheme` using CSS alone, while additionally allowing a theme override using JS/storage. Fewer do this though, even though it wouldn't require any cookies and thus no consent dialog.

The worst are sites that only have theme switching gated behind registration.
ADO almost made me want to use Jira instead.
Turned out that,
while the product it not great,
the pain I experienced using it had more to do with corporate processes than the software itself.
Elixir doesn’t even need a special syntax — it gets Haskell’s LambdaCase as a natural consequence of case being just another function, and the pipe operator always chaining by the first argument.

Haskell’s >>= is doing something slightly different. ‘getThing >>= \case…’ means roughly ‘perform the action getThing, then match the result and perform the matched branch’

Whereas ‘getThing |> \case…’ means ‘pattern match on the action getThing, and return the matched action (without performing it).

The >>= operator can also be used for anything satisfying the Monad laws, e.g. your actions can be non-deterministic.
For some reason, dark mode sites seem to come with monospaced fonts, usually Courier.

I suspect that the next thing will be HaloLite 2.0, where a ring of light appears around the screen.[1] There are TV backlights.[2] Backlights that follow the screen color.[3] There is at least one phone with backlights.[4]

Does anybody like that stuff?

[1] https://movingimage.org/collection/artifact-halolighttv/

[2] https://www.inspiredled.com/product/universal-backlight-kits...

[3] https://www.theverge.com/22566408/govee-immersion-ambilight-...

[4] https://www.phonearena.com/news/Nothing-Phone-1-What-do-the-...
I don't think a lecture that you attended once in one country is a great example of a cultural revolution in another country; it's especially not a good example of anything Democrats are advocating for in the US. In general, your posts contain a lot of free association between events and ideas that are linked from your psychological point of view, but which don't necessarily have a great deal of logical connection.

"Democratic insiders" have not "declared war on tech". The interview is full of this sort of hyperbole, but there's no need to repeat it uncritically here. If we leave aside the fantasy "war on tech" and try to find whatever sense we can in Andreessen's responses, it essentially amounts to the following: he voted for Trump because he likes what Trump stands for and thinks Trump will be better for his bottom line. In other words, he voted based on perceived self interest, just like lots of voters do every time there's an election. As Andreessen appears to have no very fixed political or moral convictions beyond those expected of his class, it is rather difficult to understand him as he wishes to be understood, i.e. as an instinctive Democrat "driven" to vote for the other side by a shadowy conspiracy against his livelihood.

I've now looked up the Google ad you referred to. It actually involves a nonbinary person who uses he/they pronouns (so not really a man dressed as a woman). As you yourself acknowledged previously, such ads merely reflect a broader cultural shift in the acceptance of trans and nonbinary people. Tech can perfectly well survive such changes, just as it survived gay marriage and countless other cultural shifts.

Nonbinary people appearing in commercials wasn't a big election issue. The election certainly wasn't a referendum on this (or on the broader associated cultural changes). The economy was the top issue for most voters.
Desktop apps using a UI toolkit like qt, gtk, wpf, etc do by default.

The developer needs to do additional work to un-standardize their application.
This is probably the best summary / example I have read on how to explain the paradox of tolerance.

Thank you!
I'm sure the lawmakers will take immediate action by allowing these three companies to merge into a single too-big-to-fail monster with even greater gouging (and profits!).
Well, he responded to someone saying the type signature of map was more complicated than ANY C construct.
It's hinted at in the article. If they torrented one large dataset, it's likely they did the same for Libgen.

> "I think torrenting from a corporate laptop doesn’t feel right,” wrote one engineer in April 2023, adding a smiley face emoji. (A later email acknowledged that the “SciMag” data had indeed been torrented.)
- Write meaningful commit messages

- Make systems as observable as possible. Stuff will break, the easier it is to identify the cause, the better. Logging things at different program flow points helps immensely.

- Question every decision in the codebase you are working on, but thoroughly weigh any refactoring attempts

- Don’t fall in love with own code

- Prefer readability over performance (in most cases)

- Don’t follow trends blindly. More than likely your boring stack is the best way to go

- Allow room to recover from a malformed system state

- Don’t abstract prematurely. If you struggle with designing your abstractions, you are probably good with concrete case(s) for now
[2] is an awesome thought — that a nearly perfect sphere might be required for some calculation; it seems reasonable as a requirement — but isn’t, actually. And that Shor’s algorithm might have a similar impracticality we don’t presently appreciate.

Reminds me of this way in which laser interference patterns can be used to find primes. But, like many analog computing situations, it requires a degree of sensitivity to signal vs noise that is essentially impossible.
> Modern windows are amazing

The double pane ones, however, leak after a decade or so. Then the interior of the window fogs up, and you're looking at a major cost to replace them.
Or if you are sensitive to light.

I feel kind of traumatized for years of forced light mode everywhere. It hurts my eyes.

In bright sun when outside, I use light mode. Allmost everywhere else, I won't. So please @everyone thinking like this, don't assume, what is best for me, because your taste is different.
You mean the journal? ;)

More seriously: An algorithm is discrete (consists of discrete steps). Nature however appears to operate in a continuous fashion.
The number of executive orders has decreased every president since Bill Clinton.

https://www.statista.com/statistics/1125024/us-presidents-ex...
> Their preference to shut down instead of receiving tens of billions of dollars would be a clear violation of a company’s fiduciary duty to shareholders for any normal company.

This is not strictly true - when a company leaves a huge market, it is imprudent to leave behind a well-resourced competitor in place. If I were a ByteDance shareholder, I'd hate if it spun off TikTok America LLC, and then having TikTok America compete against ByteDance in Europe and the Rest of the world on an equal technological footing, but perhaps even deeper pockets from American markets.
Did you reply to the correct comment?

You don’t need to convince me that is a possibility.
Forgejo is implementing ForgeFed [1], which is an AP extension that supports creating PRs, issues, etc. across instances.

[1] https://forgefed.org/
> They also made a verbal agreement with OpenAI that prohibits the company from using the materials to train their models

Hilarious.
How to Connect a USB Gamepad to Waydroid for Playing Android Games on PC
Instead of writing this shortsighted article, just do like those of us who are forced to endure light mode, and install Dark Reader(https://darkreader.org) that also does light mode.
> With the downside of 99% of all devs not understanding anything.

I would imagine that probably the majority of Haskell devs would understand it, which is all that matters.

99% of the population doesn't understand anything in Perl, either. That's not a mark against Perl.
Is there any way to still read all the political and world news while keeping your self from over-entertaining or internalizing it?
Some thoughts about "counting" and "information" (2016)
Regardless of semantics, I mean that a compiler will read the code from the top to the bottom and when it encounters a reference, it either must have already been defined or it doesn't exist and the compiler should error out. This is orthogonal to top down in the way that your link suggests.
Yes, and too many applications go out of their way to ignore user preferences on desktop, too! It's a major problem IMO. The user should be in charge of their computer.
I’ve spent the day working in C++ with a popular, well known framework. Both ChatGPT and Claude have been horrible. They hallucinate APIs, they remove things that were already working for no apparent reason, they severely struggle with basic logic.

Even a big leap in model quality would still be dog shit at these kinds of tasks. I am vastly better at programming than even the best LLMs out there right now. The only real advantages they have over me are that they type a lot more quickly than I do, and their hourly rate is lower.

I’m not saying this is complete BS. I confess I feel a twinge of panic every time I see a headline like this. But years of working with these models and seeing how terrible they are for many tasks makes me skeptical that we’re suddenly about to get AGI.
I mean, isn't this the same as donating to Trump?
> Should the ACLU defend the rights of someone to blow up nuclear bombs in their backyard?

If someone actually went to court over this, I would hope/expect that the NRA would send some lawyers. The ACLU isn't that into the second amendment and has never been. However, nobody has gone to court over this. They did go to court over vaccine mandates.

By the way, the only grounds the government would have to stand on here are radiation-related. It is broadly legal to use explosives on your own property unless you're too close to someone else's property. It is also broadly legal to build your own weapons.
I see some BlueSky users mirroring their content from Mastodon
I’ve not followed the news for about 7 years now. A niche benefit of WFH is that I don’t have to accidentally hear coworkers talking about it either.
Not "worked" but "he says".

Journos rarely checks out these UFO grifters, but when somebody does it all falls down. Take for example Luis Elizondo. He never worked for AATIP as he claims. Another UFO nut Senator Harry Reid just got him permission to hang around. The only thing that seems relatively sure was that Luis Elizondo was in ROC, maybe never passed.
While Tiktok doesn't have literal printing presses, neither do TV networks.

How can the first amendment be interpreted so broadly that large multinational corporations financially supporting politicians is considered free speech, yet so narrowly that social media isn't part of the media?
And I'd say the average React or Java developer these days understands both pretty well. It's the default way to render a list of things in React. Java streams are also adopted quite well in my experience.

I wouldn't say one is more difficult than the other.

IMO `map` is a really bad example for the point that OP is trying to make, since it's almost everywhere these days.

FlatMap might be a better example, but people call `.then` on Promises all the time.

I think it might just be familiarity at this point. Generally, programming has sort of become more `small f` functional. I'd call purely functional languages like Haskell Capital F Functional, which are still quite obscure.
Russia is allegedly attacking Ukraine due to Nazis there. The issue with these things is that you can easily motivate horrible things with the "but we are attacking nazis!" argument, that is why people hate it when you say that.
Berkeley Mono v2 Release
When I worked for an American subsidiary of a Chinese company (Video Games) we were only required to honor censorship requests for Chinese users.
I've wondered if this might not be a reason for some of the slow rolling. It might reduce the all-important role of cloud and centralized services in facilitating connectivity, which is almost mandatory in IPv4 world due to the existence of symmetric NAT.
It isn't beaconing out a trackable ID unless one manages to get into NFC range, which isn't gonna be read from miles away
Their discovery is so bad that they were touting new discovery algorithms for account recommendations in some recent release. So much for "no algorithm".
China is authoritarian no doubt, but clearly there are different forms of authoritarianism. Monarchy isn’t communism either. In principle, communism can’t exist under an authoritarian state, since that would create two classes; you’d be looking at some kind of socialism. Either way, I’d just point out that China has a brutal capitalist market. I feel like that kinda precludes communism.
It doesn't matter if it is intuitive or not if it is consistent. It will become intuitive once you have worked in this style for at most a few days.
Totally fair point, my results could be different. To me, the salient point of Tiananmen Square is the massacre (and wider spread protests). That aspect has been suppressed. I see video clips talking about how the content is available, but no content. I also see many clips denying that anything happened.
That shoutout has the vibe of some Banana Republic corruption…

GOP in the US has constantly been fear mongering about social media bias, but what they really mean is they want their own ideas / bias and nobody else.
It's true! The Biden legacy also strongly features the coordinated coverup of his dementia!
> most of the time that's not really a healthy situation to be in

Please explain.
I'm wondering if it's just the facade has been removed.
Fat cells 'remember' being bigger–and act like it
>My understanding of the 90 day extension is that it's supposed to be there to allow a deal to close

It is also important to recognize that Trump isn't just talking about invoking the 90 day extension. He is promising companies they won't be held responsible for the fines they should be accruing for violating the law before he even takes office.
It's not a far stretch to assume that the framers did not want the president profiting off of the presidency. "Bribery" is one of the only "High Crimes & Misdemeanors" listed as impeachable crimes.

A normal Congress would not allow this behavior but this is the world we've been living in since 2016.
Words don't mean anything, they are just tools to win PR battles.
My recollection is that the prosecution was a combination of the mis-labeling of the payments, and the mis-labeling being in service of concealing a (federal) crime. Said different crime being the original hush money payment, which happened during the campaign. I.e. if he hadn't done something illegal while running for public office, there'd be nothing to charge him with.

Now, it'd be better if he simply got prosecuted for the initial crime. Absolutely agree there. But I'm not sure that "I can avoid prosecution for campaign misdeeds by committing them and then waiting to pay people back until after the campaign" would be a great precedent.
Only four more years of this stuff to go. In other news Trump coin has plummeted by a few billion as Melania launched her own meme coin with a ~4bn market cap.
Snippy Your AI writing assistant
Snippy is a game-changer for anyone looking to streamline their workflow. As a tool designed for creating, saving, and using snippets across any website, it delivers exceptional convenience. What truly sets Snippy apart is its AI-powered text generation, which tailors content to your needs with remarkable accuracy and speed.
> People intuitively expect things to happen imperatively (and eagerly).

Eagerly? Yes. Imperatively? Not as much as SW devs tend to think.

When the teacher tells you to sort the papers alphabetically, he's communicating functionally, not imperatively.

When the teacher tells you to separate the list of papers by section, he's communicating functionally, not imperatively.

When he tells you to sum up the scores on all the exams, and partition by thresholds (90% and above is an A, 80% above and above is a B, etc), he's communicating functionally, not imperatively.

No one expects to be told to do it in a "for loop" style:

"Take a paper, add up the scores, and if it is more than 90%, put it in this pile. If it is between 80-90%, put it in this pile, ... Then go and do the same to the next paper."

People usually don't talk that way.
If you look at the "per year" it increased again under Trump.
> pure white text on a pitch black background can strain my eyes and be very difficult to read. […] However, light gray text on a dark gray background is easy on my eyes.

For me it’s the opposite, I need maximum contrast. It’s a pity we can’t just have default text color on default background color, and everyone can adjust their browser to their preferred colors. While there is reader mode and plugins that try their best, they don’t work consistently, because HTML and CSS is such a mess.
Trump is not in power now.
Wound be great if you posted the URL to the relevant documentation for this… I guess there must be some docs about these delicate details? Thank you very much!
Let us call that era “workertopia”.
> As detailed by the GitHub issue that started this disagreement, bluesky relays have introduced thread breaking behavior

"relay" does not appear in that issue, not sure where this idea that relays have introduced thread breaking behavior is coming from