skysight-inc/HackerNews huggingface dataset:
As someone who does uppercase SQL, I’m not really convinced it improves readability. We don’t do it for other languages after all, syntax coloration is deemed enough.

(On the other hand, sql is often embedded in other languages where it might not get properly coloured so… maybe)
> Even a long term member of the committee expressed regret in them giving it to Obama.

That is nothing compared to past controversies.

People left the assembly and resigned when it was awarded to Kissinger and Arafat in the past. regret is way milder than calling the receipient a terrorist in the floor of the award ceremony
Believe it or not, a lot of users don't understand the control key and are afraid to touch it because they think it might break their computer. They may not even be able to readily find it on their keyboard since they aren't accustomed to using it, but do tune out and skim over the things on their computer they think they can't understand.
lf is similar (I switched a system Python version update broke ranger). https://github.com/gokcehan/lf

I have it integrated into zsh so the current directory is whatever dir I was in when exiting lf.
Don't get me started on — versus – versus - !
LLMs are quite capable at generating such overviews. mutable.ai generated one for a project I co-develop, and it was pretty neat for a v1 (they are on a much improved v2 now): https://mutable.ai/celzero/firestack
You need to be strong to withstand what life throws at you, nobody is going to do that for you. But that doesn't mean that you have to experience these things alone. It's sad and not normal (outside of the US at least) that a friend & colleague goes through something like that and nobody reaches out and people forget.
That’s just another level. Only in five pages of explanations we come to something that is basically:

await fetch(…)
.catch(e =>
new CustomError(…))

But with a wrapped-promise and flatmap nonsense for “better error handling”.

FP always goes out of the way to avoid using the language it operates in and to criticize the ways of doing something it just imagined. As if it wanted to stay as noble from unwashed peasants as it could, but has to do the same job to keep existing.

how to test () => makePayment()? (from the link)

You don’t. You test constituents like request body generation and response handling. It’s inside. You can’t test your Effect-version of this code neither. It’s a strawman.
The examples in the article recommend doing the right things, but I think the initial discussion of the LBYL vs EAFP discussion could be better.

The article says basically "LBYL is bad", but this isn't a good description of what the author does in the later examples. Following "EAFP" without exception is also really bad.

The simple policy is that you should use "LBYL" when you're dealing with local state that can't change out from under you, especially when it's just properties of your local variables, but you need to use "EAFP" for anything that deals with remote state. Function calls can go either way, depending.

Blanket advice against LBYL leads people to use try/except blocks to express basic conditionals. If you want to ask something about your local variables, just ask it in a conditional --- don't make the reader infer "ah, these are the situations which will raise the error, and therefore we'll go into this block if the values are this way". If you want to do something when a key is missing from a dictionary, don't write:

try:
value = table[key]
except KeyError:
return default_value

Just write:

if key not in table:
return default_value
value = table[key]

(If you really need to avoid two lookups for efficiency, you would do something like value = table.get(key, MISSING_VALUE) and then check 'if value is missing_value'. But this optimisation will seldom be necessary.)

The example the author gives about interacting with the file system is a good example of where indeed you really should use EAFP. The file system is remote state that your function does not own. Similarly if you're doing database operations, calling a remote API...lots of things.

There's various middle ground when you're calling functions. Often you don't want to worry about whether that function is going to be interacting with remote state, and you want to treat it totally as a black box, so you just use EAFP. But if the function documents really clear pre-conditions of your variables you can just go ahead and check, it's better to do that.
Bit Winter Program offers FREE seats for winter 2025 in Zhuhai Campus
> Shared VPS hosting pretty much all bans email, AWS, DO, etc all have ToS that say "no email" as anti-spam measures.

Complete FUD.

Here is DO's acceptable use policy:

https://www.digitalocean.com/legal/acceptable-use-policy

You can see that they explicitly have policies for email hosts.

Here is a guide they host on how to setup a mail server:

https://www.digitalocean.com/community/tutorials/how-to-run-...

They forbid spamming, not all mail.

> Shared IP space will go straight to spam due to people having spammed on it in the past. Buy a /24 to ensure you don't go straight to spam.

I have had no problems with deliverability to Google from an IP on a shared block. I don't send marketing mails or any other kind of spam though. Microsoft blocks my IP but they are too small (outside businesses) for me to care to give them special snowflake treatment.

Deliverability of your own mails is also irrelevant for the original discussion about using unique email addresses for signing up to services - you don't need to be able to send at all for that.
You can ask any question you want. Everyone is going to have a different basis of life experiences and social environment from which to draw answers from. Just to throw some shade onto your very rose tinted glasses picture: https://old.reddit.com/r/regretfulparents/ Time to accept, that not everyone needs to be a parent or will enjoy being a parent. Sure, many do, otherwise the species would go extinct. Actually maybe even too many do, if we look at usage of natural resources on planet Earth. But definitely not all have to and everyone should damn stop trying to pressure others into taking this step.
This is not at all true about the Chinese economy. The Chinese economy is tightly integrated into the world economy, and there are many ways to check their numbers. For every widget they export, there is a foreign importer. For everything they import, there is a foreign exporter. There are foreign companies that are heavily invested in most sectors of the Chinese economy.

The idea that China is a black box that no information comes out of is just horribly out of date. This isn't the Mao era of a sealed-off China. This is the era of international China.

The government itself does not like fake numbers, because they render economic policy ineffective. Beijing needs to know what is going on in the provinces. Generating fake numbers for public consumption and then a private set of real numbers would be a monumental undertaking that would be impossible to pull off over the long term for a country with as large and complex an economy as China's. Provinces have tried to fudge numbers in the past, and Beijing has punished them when it found out, because doing so goes against the interests of the central government.
Show HN: 2FA-CLI – A simple 2FA command-line utility
For quite some time I wanted to make a simple 2FA CLI tool with basic functionality for personal use.
So I made it over the last few days and released v1.0.0 now.
Depending on whether it is a single message or not, Slack now allows you to embed messages from private channels or DMs and have them shown to people who don't have access to those areas.
And only weeks before a US election.
One thing that bothers me in my day-to-day Python work is that often libraries don’t document the errors that can be thrown by their functions. As the language lacks a “throws” statement, I found myself digging through library code on multiple occasions.
How do people approach this?
According to Matt it's WP Engine's job to determine what WP.org counts 'affiliated' which is absurd.
Took me a few yrs waiting for app.nz to be unblocked.

Finally unblocked after complaining on twitter about them
Let's talk about animation quality
The funny thing is the internet archive is more connected to hacker culture than cracking a website will ever be. I hate posers more than anything. Hopefully the internet archive comes back stronger than ever.
Wow! I would like to take some concepts from this and use them in BrowserBox. Like a Zen Mode. This is cool, and has huge traction!
I get the feeling that this person is fairly young.

I'm 62, and have been through a fair amount. I lost both my parents, many years ago, and many friends, acquaintances, frenemies, enemies, coworkers, bosses, etc., along the way. In the 1990s, a fair number of folks in my immediate circle died of AIDS. That's a bad way to go. In the last 35 years or so, I have seen numerous folks die of cancer. That's not even mentioning the ones that died from overdoses, suicides, and other violent means.

I travel in eclectic circles.

Once we have some gray in our coiffures, we have generally endured a fair bit of loss.

For some folks, this pain is unbearable, and they deal with it by rejecting intimate relationships, or by becoming hard-boiled and cynical.

I have been greatly helped, along the way, by folks that have fallen by the wayside. Sometimes, by death, other times, just because we grew apart, for one reason or another.

I have also had the signal Honor to help many others. They haven't always been grateful. There's a cynical Mark Twain quote that goes: "If you take a starving dog, and make him prosperous, he will not bite you. This is the principal difference between a dog and a man."

Engaging with others, is difficult. It requires self-reflection, compromise, humility, and forgiveness (both of others, and of ourselves).

In my experience, it has been well worth it.

Satisfied customer. Would recommend to others.

WFM. YMMV.
Show HN: Notify when the battery level of the device connected to Mac decreases
This is a simple script that will check the battery level of devices connected via Bluetooth on Mac and notify if it is below a certain threshold.
Yes, but that doesn’t yet give me much intuition, so I wanted to elaborate on an idea I’ve found somewhat useful.
Uno isn't a number in english though, and you wouldn't capitalize a number, so treating it as a name seems reasonable.
Do what you want mirrored
Shader Composition in Use.GPU [pdf]
Compilation is the process of converting the code written in a high-level programming language into machine language that the computer can execute directly. Code written in languages like C and C++ is not understandable by the computer in its original form
Interval Shading
I'm married to a lawyer, so I asked him to look into this and he wrote a blog post:

https://bourniquelaw.com/2024/10/09/data-23-and-me/

Most relevant bit:

"The law requires medical laboratories to retain some testing data and materials for various lengths of time, often 2 years, but as long as 10 years for some kinds of test."

My personal experience: I also failed the birth date test, even with my usual fake birth date. I also refused to provide a copy of my ID. They escalated my request and agreed to delete it anyway. All my samples and data are more than 10 years old, so they have no legal obligation to retain anything, which I pointed out to them in my confirmation.

I'm hoping they delete it but don't have the resources to do anything more than hope.
I'd add in that, over the course of a life, we'd expect maybe about half the people we personally meet to die before us. Everyone dies, and that makes for some relatively sombre statistical realities. If you are meeting a lot of people, there isn't time to stop and get worked up when you know people who are experiencing grief from a death once removed - there are going to be a lot of deaths.
I just tested it with ioredis node.js package for production use and Deno 2 could handle:

- Automatic connection pooling

- 400MB/s+ of throughput

- 20 000+ keys and larger values (10-50kb)

- 1000+ concurrent reads/writes

- 200-250MB of RAM usage max

Without breaking a sweat, the limitation was my keydb test server.
> because I don’t want to pay an attorney hundreds of dollars an hour to determine if the new required login checkbox applies to me

Why would you need to do that? Just use your own judgment, what's the downside of getting this one wrong?
> I can't think of a single server side language that doesn't have to parse external untyped objects.

That's what I said too.

> For example, in Kotlin, you declare a data class and mark it as @Serializable and it generateds `toJSON/fromJSON` for you. IMO it's a much better experience than Zod.

If the JSON object matches the data class exactly, the Zod parser and the Kotlin Serialization parser and Jackson and all those other JSON parsers are similar in complexity.

However, where Zod shines is if the JSON object doesn't match your domain class exactly, e.g. you want to parse a JSON number into a Date, or you want to parse a string field into some custom domain object. In those cases, in zod this is a one-liner with `.transform(...)`. Other libraries will require all kinds of weird workarounds to support this.

The other thing Zod does really well is composition, i.e. making new schemas out of existing schemas. Something like this is difficult to express in most language's parser frameworks:

const User = z.object({id: z.string(), username: z.string(), ...})
const CreateUserPayload = User.omit({id: true}) // Same as user, but without the id field
const UpdateUserPayload = CreateUserPayload.partial() // Same as CreateUserPayload, but now all the fields are optional
Anisotropic Specular Image-Based Lighting Based on BRDF Major Axis Sampling
both java and c# has thread safety primitives that are also pretty easy to use. E.g., the java concurrency package.
> so many completely unnecessary small compatibility issues

All of the breaking changes were deprecated for years. More than enough time for people to get their shit together.
> He received it before any of that.

which is why he got it based on his plans and not his actions

> and Libya does actually cancel every point you mention by the way.

it really doesnt. Lets begin with the main reasons, he was awarded the award for nuclear profileration agreements and a new american policy in the middle east. Lybia is not a nuclear power and its in north africa not the middle east.

secondly the military intervention of Lybia came at the behest of a UN security council resolution that put NATO in charge of securing the no fly zone to prevent Gadafi to bomb his own citizens after he had shot protestors during the arab spring. The NATO mission was led by France. The USA involvement ended the day the UN security council ended the mission despite the new Lybian goverment wanting them to remain. It is not Obama's fault that half the arab world exploded in protests in 2011, or that the UN voted to intervene, or that the French led mission was a bit of a clusterfuck. So no, Lybia does not affect any point I mentioned, or any of the reasons for the comittee to vote for him years earlier.

> it's actually not hard to have presidents not start wars at all- both presidents since Obama did just that.

Trump started a war, Iran just didnt follow through. Killing Soleimani is casus belli and Iran had every right to retaliate against america. The fact they didn't does not somehow exonarate Trump from his actions. That was way more belligerent than any action taken under Obama's 8 years.

Biden did not start any wars but 100% would have intervened if ISIS had begun under his presidency, the same way Obama did. Obama did not start any war against any country, he just had missions in countries america was already in, like Afghanistan, or contributed in international efforts like the Syrian civil war, or lybia intervention after Gadaffi's Un resolution.

His reputation as war mongering is artificial and designed by the same people who told Trump that if you dont test for Covid you get less cases. America started reporting less the drone strikes they carried, but carried them more often under Trump for example. Its the same sleight of hand that people use to say Sweden is worse off because they have more rape cases. They simply report them more often. Obama was more open than further admins on their interventions, that does not make it happen more or less often.

> it should do something about it?

They did not award it to Gandhi and gave it to Kissinger. The fact people still care about that award is bonkers
Thanks for giving it a try! The 100 is for the pro plan, by default you should have 10 in your account, but happy to add more, please email me with your account email, and I'll top it up: founders@finetunedb.com - Thanks!
Wow. I typically drink 6+ cups a day and it doesn't really seem to affect my sleep unless I have it within ~6h of bedtime.
China has developed at an insanely rapid pace. Just go and look around.

Just 25 years ago, Beijing was a city of bicycles with no modern highways and just two subway lines. Now, there are 27 subway lines and modern highways everywhere, but even with that, the car traffic (increasingly from Chinese-made electric cars) is unbearable at rush hour.

This is not a collapsing country that's barely fumbling along by hiding up its decrepitude. It's a place where the signs of massive progress are everywhere.
So, just never use any online service. Its a good solution, and so simple!
I also use @my.other.domain for websites, so my human contacts won't assume it is me if they see it.
It's crazy how much this drama has seeped into every aspect of the WordPress ecosystem, and how Matt/Automattic have tried to make it everyone's concern by tying it into the .org site as well.

Should raise some serious worries about how 'independent' the foundation and open source project are compared to Automattic and WordPress.com. Wouldn't be surprised if people tried to fork the project at this rate.
Personally don't feel like it's going to shift much.

For devs who make a living off hosting/plugins/themes they might keep an eye on things but why move if the money is still coming in?

For users, I doubt much of them will ever know or care -- unless you're on WP engine.

Wordpress is still the most widely available, cheapest and easiest (for non-tech user) to customise software to make a website with.
There’s at least overlap with needs but also what their biggest pain points are currently. One way I’ve often heard it put is sell aspirin not vitamins.
BBC Weather app forecasts 15759mph winds in UK
It's just over-the-top statements causing pointless drama.
It doesn't update actively running application containers.

You don't actually need to stop it before running “snap refresh” though, it'll just be out of date as long as it is kept open. Once the application stops running, next time it is run the updated image will be used.

[caveat: I'm not a snap user myself currently, so my information may be inaccurate, take with a pinch of your favourite condiment]
You are flabbergasted that an argumentative, person with autism would spend all night arguing crackhead semantics?
This page is still up: https://wordpress.org/five-for-the-future/pledge/wp-engine/

Ironically, it's the second Google hit for "wpengine." Appears to be self written, but nonetheless, describes WP Engine as having "played an integral role in supporting the WordPress project." I would think at this point both sides would have wanted it removed.
Secrets means not much: secrets from who? A commercial VPN meaning you just have the client, imply your ISP do not know much about your traffic (just data volume and when they pass) but your VPN provider know ANYTHING, with a far bigger access to your system since you typically have a proprietary client installed with high privileges. So you hide from a domestic ISP to be naked shown to a potentially unknown corporation oversee who can pick much more infos from you.

Let's say you are in countries where porn is forbidden, from Saudi Arabia to South Korea, and you want to hide from locals, ok, you knows your porn habits are known by an offshore unknown company but formally not to the local government, formally, because they might have agreements you do not know and typically VPN providers exists in countries with zero customer protections.

The only VPN you can trust is a FLOSS one, like WireGuard, OpenVPN etc, between hosts you own, and they just guarantee the channel, meaning if you have an Android/iOS device with a VPN link between the phone and you home, the phone itself is not trustable since it's a proprietary device remotely handled by it's OEM/third parties, some you might not even know.

A simple example: let's say you have a secure messaging system, your messages will travel hidden from third parties, but you type them with a virtual keyboard, witch is a typically connected application, who talk aside with their creator: who care about your secure messages since they can snoop them as you type them?

The whole point is the level of secrecy you want. Just downloading pirated materials (like most people do, even if formally it's illegal nearly everywhere) appearing from another country to avoid local laws like Hadopi well, essentially nobody care for real so you might feel safe enough. Being an activist in a dictatorship well, it's a far different thing and in that case the top security is not using integrated electronics at all, like exchanging manually encrypted and hand-sewn in some peer dress (an old but still valid WWII technique), when that's not an option you could trust a bit OLD desktop iron (little firmware's inside) running a FLOSS OS in fully FLOSS stack, like messaging via I2P.
Hey, sorry to contact you via this method. I meant to reply to your comment under the thread on SCALE but it's locked. I'm expecting an offer from that company and would like to ask you about your experience there. If you don't mind, could you accept my connection request on LinkedIn and we could chat there? Thank you :)
> A good salesperson will make sure the choice process is relatively quick and painless.

The best salesperson isn't the one whose customers are leaving the shop smiling just like a TV advert where buying X or Y will solve every problem in life, but rather the one whose customers leave the shop angry after having purchased this or that product or service, because that is an indicator they were squeezed until just before the point they tell the seller to stick their product somewhere and leave for the competition.
Not that I like it, but that is how I see it.
Interesting that the article doesn't even entertain the obvious solution: remove strict aliasing requirements from the standards.
Hi, Congrats on launching the product.

Curious to know how you arrived at this pricing which looks really good. I have experienced that a larger cost in systems like these are the data transfer costs. Would be great if you could share some insights on that too.
Did you miss the joke? Parent poster means penetration as in penetrative sex
looks like they increased their pledge from 40 to 45 hours!
>> For example, I once measured the time to send a “ping” to downtown Toronto from my home office in the suburbs. It took 0.13s to get downtown and back. That is the normal ping time for Istanbul, Turkey, roughly 8,000 km away.

Ya. Canada is like that. Lack of choice in ISPs, high costs and horrible uptime performance.
The witty version is known as Greenspun's tenth rule:

"Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp."

The general pattern is called the Inner-Platform Effect.
"Space is growing around the ball" just by itself doesn’t give much of an intuition at least to me, so I just wanted to elaborate on a way to think about it.
... is not something your should rely on.