skysight-inc/HackerNews huggingface dataset:
In this case, it's not being used for basic control flow. It's a prerequisite of the function that the user is logged in - and you violated that so it's an error. Returning null masks the reason why that happened.
As others already said: you shouldn't even be able to call this function when your pre-requisites for calling it are violated, ideally. You can achieve that by putting this function inside some sort of object which can't be created without a logged in user. If you don't have that, you can't ask for user information.
Aside from the fact that this was not turbulence-related: my understanding is that other airlines in the area inform each other about turbulence they experience, as it cannot be detected reliably. A flight from Chile to New Zealand probably has very little air traffic to keep other pilots informed about the state of winds.
I think the post is related tothe "Null vs Maybe" problem. See https://web.archive.org/web/20230329075114/https://www.nickk... already discussed here https://news.ycombinator.com/item?id=5577364
Add Slow Horses to the list, it's great.
Nice! I tried some months back implementing a “framework” that would allow for implementing Magit-like interfaces for any command (https://github.com/federicotdn/brief) but at the end of the day, implementing bespoke interfaces per-command would probably allow you to better integrate with the command itself.
Why Rust libraries may never exist
The tidal forces from Jupiter dump a boatload of energy into the system, not sure how usable those are for life
> I think the concept of a best essay is somewhat illogical, but exploring the idea like this makes an interesting post.

pg does specifically address this objection btw:

> I love questions that seem naughty in some way — for example, by seeming counterintuitive or overambitious or heterodox. Ideally all three. This essay is an example. Writing about the best essay implies there is such a thing, which pseudo-intellectuals will dismiss as reductive, though it follows necessarily from the possibility of one essay being better than another.
> when things no longer fit on one line

That sounds like a PEP-8 violation ;)

All your lines should be under 79 characters.

Might look ugly to some but to others it looks fine.
I’ve got a side project called Parenthon that I’m going to release soon. Let me know if you want in on the beta!
IDK; Haskell normally uses significant whitespace, but also can use braces instead, so you can write any snippet linearly.

Won't fly with Python's "one way to do it" principle though.
I wonder how with such a big market alternatives have never become popular

Is it too much to hope for a Blender-like foundation to run an open source project that is actually competitive?
Why do you need this? You can just

from __future__ import braces
It sounds to me like you’re arguing about what the definition of “folders” is.

“Any hierarchical path structure is a folder” is maybe your definition of “folder”, from what I can tell. I would say that S3 lets you treat paths as hierarchical, but that S3 does not have folders—obviously I have a different definition of “folder” than you do.

We’ve discovered that we have different definitions of “folder”, and therefore, we are not going to agree about whether it is true that “S3 does not have folders” unless we have an argument about what the correct definition of “folder” is. I’m not really interested in that discussion—it’s enough to understand what somebody means when they say “S3 does not have folders” even if you think their definitions are wrong.
> What I don't get is why people are not using seatbelts.

The terrible UX doesn't help. There is a seatbelt icon on the sign, they announce it as "fasten seatbelt sign", which makes it sound like when it is off you don't have to have it fastened. But it really should be "remain seated" sign.

Also some people don't wear seatbelts in cars as some idiotic macho thing. I assume there is no helping those.
> Imagine the consequences of such a world and you get his point

I don't get his point! Firstly, dreaming up a world system is a far cry from worshiping it. Secondly, I feel like striving towards the true nature of things is one of the few principles that really gives meaning to existence. Rejecting this in favour of superficial contentedness feels nihilistic in a Brave New World kinda way.

> the evil of a world where everybody really believed and acted as if good and evil have no absolute

What makes you so sure? In my experience it is societal norms and inbuilt consciences that tend to encourage good behaviour. I don't see why this would change as we evolve away from superstition as a species. For example, some sci fi authors such as Iain M Banks have imagined credible advanced societies where there is no supernatural thinking; and yet individual morality plus social pressures absolutely still work to promote social harmony.
LTSC/LTSB has or had a lot of stuff removed, like Bing on the Start bar search
Show HN: Teable – Open-Source No-Code Database Fusion of Postgres and Airtable
Features

Spreadsheet-like interface
All you want is here
• Cell Editing: Directly click and edit content within cells.

• Formula Support: Input mathematical and logical formulas to auto-calculate values.

• Data Sorting and Filtering: Sort data based on a column or multiple columns; use filters to view specific rows of data.

• Aggregation Function: Automatically summarize statistics for each column, providing instant calculations like sum, average, count, max, and min for streamlined data analysis.

• Data Formatting: formatting numbers, dates, etc.

• Grouping: Organize rows into collapsible groups based on column values for easier data analysis and navigation.

• Import/Export Capabilities: Import and export data from other formats, e.g., .csv, .xlsx.

Multiple Views

Visualize and interact with data in various ways best suited for their specific tasks.

• Grid View: The default view of the table, which displays data in a spreadsheet-like format.

• Form View: Input data in a form format, which is useful for collecting data.

• Coming soon: Kanban View, Calendar View, Gallery View, Gantt View, Timeline View.

Super Fast
Amazing response speed and data capacity

• Millions of data are easily processed, and there is no pressure to filter and sort

• Automatic database indexing for maximum speed

• Supports batch data operations at one time

Full-featured SQL Support
Seamless integration with the software you are familiar with

• BI tools like Metabase PowerBi...

• No-code tools like Appsmith...

• Direct retrieve data with native SQL

Privacy-First

• Bring your own database (coming soon)

Real-time collaboration
• No need to refresh the page, data is updated in real-time
Can have an app is not the same as must have an app. You can use a Tesla without the app.
Remember that 2008 was the year when US dollar crashed. €1 was suddenly worth $1.5 or even $1.6. If you look at GDP figures measured in US dollars and use 2008 as the baseline, you get nonsensical results for almost every country.

Real GDP growth from the 2008 peak to today has been a bit under 15% for the Eurozone and a bit under 35% for the US. The difference comes mostly from the lack of growth in the early 2010s due to the debt crisis and from the impact of the war in Ukraine.
Also. Termination Shock, Stephenson.

In Texas there was AC failures, and people needed Earth Suits (like a space suit with air conditioning) to survive.
I dont think there is any advantage when the language lacks syntax level support for Monads. E.g. in Haskell (which does) it would look roughly like:

getUser :: Maybe User
getUser = ...

getFriends :: Maybe [User]
getFriends = do
user <- getUser
let friends = getFriendsForUser user
return friends

bestFriends :: Maybe [User]
bestFriends = do
friends <- getFriends
let besties = filter isBestFriend friends
return besties

render :: IO ()
render = do
let bffs = getBestFriends
case bffs of
Just besties -> renderBestFriends besties
Nothing -> renderNoFriends

The Maybe monad itself contains the equivalent of runSafely from the article, and the syntax propagates the failure case transparently from getUser down to the choice of render function used. All without either the hassle of handling null cases, or the danger that you might forget to handle them and the code crash. Without syntax level support, its not obviously an improvement to me
>they refused to give out public documents where political parties have to list the people that receive money from them

So who is 'they' and what were the documents? I'm American so I'm not deeply familiar with this area.
C without the parenthesis.
Is Repetition Learning Preserved in Old Age? Insights from the Hebb Paradigm
Sure but only in langs wich require exception handling! Otherwise it's just hidden behaviour and explicit optional returns are better imo
And what if `fetchUser` hits an error? At the very least pop your de-maybeifier after the async call. Or use something language standardised (like a promise in JS where you can just throw).

I'm all for a perfy shortcut / early return but this maybe just seems like an abstraction on a non-issue.
I believe this was the plot of the movie Snowpiercer.

I would be a bit worried about accidental side effects; atmospheric alteration on a large scale seems like a dangerous game.
Let's rephrase that as, this is the story as relayed by one of the passengers to RNZ. If non-speculative info is what you're after, perhaps it's better to wait for the official report.
This tutorial is such good. There are descriptions of how to implement Luxand.cloud emotion detection API into your app, software, or system using Python. https://www.publix-passport.com/
Capitalists increasingly want to sell you, or rather all info they have about you, to anyone that will pay for it. And they'll happily sell or just give it to law enforcement as well as people who want to sell you stuff.
The scientific litterature and IPCC’s summaries warned about these phenomenon.
When 2 billion people will be living under wet bulb temperature that can’t be tanked by the body it’s going to be a mess worldwide.
This site is very Apple friendly and assumes everyone has a macbook, iphone, iwatch, ipad and ivision with all the subscription services available.

After all why use anything else! :)

PS I will keep using the archive links
Maybe you don't recognize him with all the makeup:

https://youtu.be/uYPbbksJxIg?si=pk1SD4gnQTzxSlgI&t=161
Only if the use of a stupid editor is saving you time.
Can’t disagree more. Solution 1 just presents risk that some calls getUser() without doing the log in check. Then what happens?

It is false that getUser being a “maybe function” forces the other functions like getFriends to be maybe functions. Don’t let them take null in their arguments. Force the caller to deal with the null when it is returned by getUser.
But we managed to deliver a lot of value to shareholders before then.
So will they have any model to finally monetize their users effectively? And start making money?
Aerosol injection is not very expensive.
They're optional for adults in cars here in New Hampshire where the official state motto is "Live free or die".
Don't worry, our lawmakers will save us.

https://www.theguardian.com/us-news/2024/mar/08/florida-bill...
Basically you have 4 parts:

- Tech Giants and concentration of global profits, don't look at revenue look at profits
- demographics, Europe is now loosing workers every year
- deficit spending, Europe has spent comparatively litte compared to the US
- energy and Russia, a much bigger burden in Europe
The purpose of parenthesis is too let the language know when the condition ends, and the statement begins. In a language with mandatory curly braces, the brace does that job already.
Well if you want something like the actual history... we have francis bacon getting us close to an abductive (ie., explanatory) method, decartes helped a bit -- then a great catastrophe befell science called Hume.

Since Hume it become popular to somehow rig measurement to make it necessarily informative (Kant), or to claim that measurement has no necessarily informative relation to reality at all (in the end, Russell, Ayer et al.).

It took a while to dig out of that nightmarish hole that philosophers largely created, back into the cold light of experimental reality.

It wasnt statisticians who made the mess; it was first philosophers, and today, people learning statistical methods without learning statistics at all.

Thankfully philosophers started actually reading science, and then they realised they'd go it all wrong. So today, professional research philosophy is allied against the forces of nonsense.

As far as the success of causal explanations, you owe to that everything, including the very machine which runs ChatGPT. That we can make little trinkets on association alone pales in comparison to what we have done by knowing how the world works.
I would argue that the vast majority of functions in real world software are maybe functions in that they can fail. You need to be able to deal with failure. Not only can the user not be logged in, there can be a network issue, etc that makes even downstream functions fail.

Also, you have to deal with developer mistakes and what happens when they call incorrectly. This can be something as simple as getting the first element of a collection. What happens when the collection is empty? You can adopt the C++ approach of “undefined behavior” but it turns out to be dangerous.

Monads provide a nice disciplined way to dealing with this and composing together functions that can potentially fail.

Thankfully, newer languages such as providing support for monads and older languages are evolving features/libraries for monadic error handling.
Well, it superficially resembles a game, yes.
There's more money in lowest common denominator social media than in high quality content.
Does Python Have Pointers?
Yes. However, in my opinion, there's a reason for the use of the word "side." They are not directly paid by the main business (as I quote in the article). This makes a significant difference in the eyes of the builders. You'll need an extra dose of motivation once you're dragged to the good old stuff. We learned this the hard way with our first side project. This time, we were better prepared... Just sharing all of this in my post! Hope it helps others like us.
i remember using this back in my groovy days https://groovy-lang.org/operators.html#_safe_navigation_oper...
The use of LibreOffice should be mandated by law for any EU or Governmental departments. But then what would 16 Lobbyists do in Brussels all day?

https://www.lobbyfacts.eu/datacard/microsoft-corporation?rid...
The first time I used python I was amazed.

I just wrote my code as normal (indented, thank you very much) and could ignore semicolons and curly braces, and the code just ran.

I was done in half the time!

This seems like a regression by people who are bad at indenting their code. ;-)

(see also: https://pypi.org/project/goto-statement/ )
So if this became popular you'd have some camps using it and some not. Wouldn't that be ironicly more annoying than the problem it's solving?
What’s even more annoying is they’ve stated they’re against backups in principle. They feel that users shouldn’t back up history and to do so is antithetical to their version of “security”.

It’s the thing I dislike most about Signal. Sadly, there aren’t any good alternatives either.
> You don't believe Apple propaganda, Monsanto propaganda, or Republican propaganda. So why swallow EU propaganda?

Because I vote for my EU representatives. Sure one doesn't have to "believe" everything, but not believing _anyone_ is also a dangerous slippery ride down the conspiracy lane.
Fact-checking with LLMs: capacities and limitations
Interestingly, this flight (Sydney-Santiago, via Auckland) is one of a few that many flat-earthers insist does not exist, since it contradicts a theory they have. They'd plot the paths of long-distance flights on a polar azimuthal equidistant projection of earth[0], and note that some one-stop flights look like a straight line on this projection. But those which don't look like a straight line (i.e. that suggest they're wrong) are dismissed as nonexistant, and part of the greater globe earth conspiracy.

[0] - https://en.wikipedia.org/wiki/Azimuthal_equidistant_projecti...
In BsAs it's common to hop in a cab and find, as a courtesy, that they've tucked the safety belts in-between the seat cushions so you have a comfortable ride.
not surprising I mean:

1. their data has a lot of racism, including a lot of subtle ones

2. some stereotypes do statistically exist in a relevant way. The racist part is in that case often the interpretations/conclusions you take from it. (For example statistically the ratio of Asians which are good at STEM is higher but that isn't because they are magically good at science but because due to their history in the US including discrimination against them they developed a culture where they motivate and push their children to become successful in STEM topic. Similar examples can be made for many other topics e.g. poor minorities with racist laws and police and crime statistics). Another common problem is that even if the statistic isn't misleading and racist due to bad data sometimes going applying a "statistically more likely" to a individual case is still racist. Even if __hypothetically__ Asians had a genetic advantage which makes it more likely for them to have talent for STEM independent from how they where raised then expecting any specific Asian to be good at STEM still would be pretty racist and it's just a probability, so there are always (many) individuals for which it doesn't apply.

3. LLMs don't work by refining understanding of the world through self reflection, they learn a flawed textual representation of the world based on statistics. That makes it very hard to counter the first 2 points in a relevant reliable way. You only can counter specific well known examples by putting them as anti-examples into the training data and hope it generalizes the anti-examples good enough and similar.
The "properly" part.
That's a typical summer night in NYC. We did not have AC one summer, it was VERY unpleasant. I couldn't sleep, but - probably not fatal if you chug tons of water.
Agreed, I've had mostly the same experience. There was about a month where I wasn't able to run a particular query on Oracle SQL but that's fixed now.
https://www.flightaware.com/live/flight/LAN800/history/20240...

The track log shows a gap in the data around the time the incident occurred. Is it typical for gaps to exist in that route (out of range for any ADS-B receiver) ?
What constitues the "best" code depends on the incidental complexity of the problems you're trying to solve. Great code is when you have just enough of all those things, but have too much or too little and the code is worse.
I found it on a past comment, for whoever might be interested:

https://github.com/pyjarrett/simple_regex
How do Twitter algorithm decides what you see (2024)
I grew up poor and without AC in Minnesota where we regularly get spells of 100°F+ (37.7°C) at VERY high humidity thanks to all the lakes. It’s survivable, it’s absolutely not pleasant though and I wouldn’t wish it on anyone.

Fans and wet rags help some. I used to fill a 2-liter bottle with cold water and hold it against my chest. A lot of sleepless nights. When we got a local second run $2 movie theater, it was a literal godsend.
Can we just declare political entities who push climate negative policies an existential threat to humanity and neutralize them?
People who live in the humid tropics are already on a knife's edge. A small increase makes the heat intolerable and you will see either mass death or mass waves of immigration. "Just build aircon" doesn't work when you're talking about people with intermittent (or no) electricity and who have an annual income equal to a single aircon unit.
If you have to prefix almost all of your commands with sudo, either your usage is highly irregular or your problem is mostly caused by poor file permissions resulting from overuse of sudo.
Can confirm. Its disgusting.

I am also a grumpy fart right now because the night time temperature has not dropped below 20degrees since, like, November[1]. If I tried to aircon that like I do most of the day time, I would wake up a sinusy coughing mess...

Sure, 30degrees and 90+ humidity is survivable, but only just.

[1] https://7news.com.au/news/brisbane-set-to-break-record-of-da...
I was under the impression that seatbelts are basically mandatory at all times. On my recent turkish airlines flight the safety video requested you put it on and leave it on, ans the staff would come by and ask you to put your seatbelt on, even when theres no turbulence.

The "seat belt" indicator light should actually be changed to "dont get up and walk around"
As if the 787 was any better. Just see the history of issues and reports about manufacturing.
Emacs seems to support this already with Derived Modes.

I've tried to derive Magit mode for some commands before, and it seems relatively straight forward.

My main issue is that Elisp and Emacs still confuse me after 2 years of casually messing around with it.

https://www.gnu.org/software/emacs/manual/html_node/elisp/De...
The thing to think about, is how poorly developed, rural places, without ACs or stable grids, are much more likely to experience heat waves with universally fatal wet-bulb temperatures. Places like parts of India or Bangladesh with high population densities, too.

Further more, I think, we also need to consider how non-survivable conditions to humans, may play out for other animals we depend on. The cows, chicken, sheep and goats? All dead. But consider also the impact on ecosystems, when birds and predators may die in large quantities in a short time - these ecosystems may completely collapse. Great impact on food security in affected regions. Not to mention disease dynamics when pathogens experience body-like conditions outside the body, and all the decay and death around. I am not sure all plants would make it either, since they need evaporation of water from their leaves, too, to transport nutrients from the soil upwards - and with halted transport, may not be able to fight fungi and so on.

Now, this threat may not come as a gradual trend, but may introduce itself as single (first) freak heat-wave killing hundred thousands of people all at once. A whole region may get the message their land is not habitable for humans anymore. Imagine the migration pressure as a consequence. I don't think a poor country could ever properly adapt to frequent non-survivable temperatures sustainably...
Millions of people already live in these conditions (temperature in the low 30s, constant high humidity) in the tropics so I am skeptical about that study.

It sucks for me in those conditions but a lot of locals say they're used to it. The general strategy without AC is to minimize activity during the hottest part of the day and keep a fan on you.
Maybe this was the flight passing through the necessary (government funded) wormhole
SQLPage – Building a full web application with nothing but SQL queries [video]
It means you can't expand the board. I want to zoom in, but if I do that I can't move the pieces without panning the viewport.
In C# the closest analogy I can think of is the "Try" pattern. For example, you have int.Parse(string) which returns int, and int.TryParse(string, out int) which returns bool. The fact that the returned value is the validation is a strong incentive to do something with it.
It definitely seems like the wise thing to do. There are enough reports of these events even if your risk of being caught up in one is low.
I agree with this. I prefer explicit optional/null return types, otherwise the possibility of an error still exists but is now hidden to the caller. Langs with syntax for concise optional chaining and such fix this problem imo
Go actually needs proper nil/null/optionality first before it can get syntax features to deal with them.