skysight-inc/HackerNews huggingface dataset:
I sometimes ask an interview question: can you think of any situations in which it's not appropriate to store a date and/or time as UTC?

Most eggheads, including many senior engineers, will think for a bit and eventually say no. It's beyond dogma at this point that storing localtime is bad mmmkay.

The one exception I've encountered (I suppose there could be others) is when the value is to be used for recurring event scheduling and you need it to happen at a certain time locally. For example, this event should fire at 1am Central Time every other Tuesday morning. Since "Central Time" obeys Daylight Savings, the time component of the UTC representation of "1am" will lose and gain back an hour as the months of the year go by. So instead you would store "1am Central Time" as the scheduled time and fire the job whenever it's currently 1am Central Time.

** If I've overlooked a way to accomplish this with UTC, I'm all ears. I suppose you could have a job that predicts upcoming event fire times and stores them as UTC. For example, "next fire time" could be generated right after the event fires, as the UTC representation of 1am Central Time two Tuesdays from now.
Exposure to pornography among minors is a huge problem today with the advent of the internet, and especially given the ubiquity of smart phones among minors. The harms cannot be overstated. Those who are old enough to remember the days before the internet may remember how accessing porn was more difficult, especially for minors. The typical story is about how boys would get a hold of a copy of some sad uncle's "dirty magazines". That's in the last 50 years. Before that, it was virtually unheard of, as it was only in the 1970s that production codes and norms were broken, and obscenity laws were loosened.

This law may very well be just about protecting children, but if it were also a part of a broader strategy of containing and eventually obliterating the porn industry and the normalization of porn use, then I welcome it.
That's the entire game of the GOP. Well, that and catering directly to funders. It's obvious.
How is being the only good company making laptops a monopoly? Seems like you recognized that point in your second paragraph but bears repeating how ridiculous of a comparison to Boeing that is
And if you were to add a few additional characters scattered within the passphrase?
Most commentators, especially on HN, live in latitudes close to the equator (say south of 55N)

Sunrise in Glasgow if the U.K. was on UTC+1 year round would be as late as 0945 in December, civil twilight wouldn’t start until an hour after people leave for school.
I hope the magnet was correctly aligned with your local ley lines.
Isn't the infinite time zones thing basically how things used to work, until train schedules brought cities more in sync with each other in 1883? At least in the US, that is.
Elon had always advocated for a for-profit structure so that OpenAI can raise enough money to achieve its vision. In the email they are discussing how the for-profit structure could work. Nothing wrong with that especially when he was the GP.
The whole point of an insurance business is to insure against unknown and unlikely risks.

If it is insuring known or likely risks, then it becomes a subsidy or wealth transfer (which should be the domain of governments).
You don't have to drive, but you have to pay taxes, no?
Beneficial Ownership Information reporting required for US small businesses
>> Emulating the policies of a country 'we' think 'is bad' isn't great policy.

The paradox of tolerance.

>> A highly politicised Supreme Court, a violent attack on the Capitol, a lot of people who don't accept or believe the election result.

2 out of 3 of these were precipitated by foreign influence campaigns on social media actively undermining Americans' trust in our political institutions, so yeah, prohibiting foreign-owned social media networks in advance of the upcoming election is definitely a step in the right direction.
> so you're setting the bar pretty high

Why would anyone choose a provider that is inferior (apart from toying)?

I mainly read two kind of stories from fly.io. Their promotional, but well written and interesting technical blogs like this one and stories about issues with their services and miscommunication. So, despite liking their blogs I don't consider using it.
I've never understood why automatic center punches aren't sold for this use case. I have to think that's a much more reliable option than a goofy little hammer with a point on the end - water notwithstanding, who's going to be able to develop enough force trying to swing that while seated in a car?
But, every American has access to even government propaganda of foreign adversaries. It's part of the 1st Amendment. Denying access to this information feels really weird. If TikTok doesn't divest, it will be banned and app stores will not be allowed to distribute it and the government telling app stores which content is and isn't approved feels like the PATRIOT Act all over again, all of us handing over our rights for some boogeyman
> text to servo movement

yeah this was super impressive. If this is at the point where you can put an arbitrary object in front of it and ask it to move it somewhere, that's going to be huge for industrial automation type stuff I'd imagine.

I do wonder how much of that demo was pre-baked/trained though. Could they repeat the same thing with a banana? What if the table was more cluttered? What if there were two people in the frame?
As a web dev, I've spent more time and effort debugging datetime issues (across the frontend, backend, databases, and customer implementations) than all other classes of bugs put together. It feels like every year there are many days/weeks spent looking for these these, fixing them individually, and fixing them again at the meta level to account for the different ways people tried to fix them individually :(

The most enduring fix is almost always like you said, store timestamps in UTC (plus a zone name string separately, because an offset isn't always enough), plus use standard libs instead of trying to do your own datetime or time zone math, then format timestamps into human readable localized dates as late as possible for the user. In JS that means Luxon or date-fns instead of the woefully inadequate built-in Date methods.
hmmmm never have i thought about turning syntax off... do you also turn off autocomplete?
Nvidia founder tells Stanford students their high expectations is a hindrance
> open access to information

Nobody proposed blocking TikTok.com. It’s just limiting its distribution.
but the number quoted for the UK includes the costal redwood, which IS one of the most popular farmed woods.
It's not what China does with your specific information but what it does with the aggregate and how it can manipulate that aggregate.
The reusable, self landing rocket is certainly more complicated in some ways. But airplanes, and their engines are probably more complicated in other ways. SpaceX’s rocket engines are an engineering marvel. But they only need to run for minutes at a time. Aircraft engines can run for hours at a time, and for 10s of thousands of hours before a major overhaul is needed.

It’s a different kind of complexity.

On the starlink side, customers will get that anyways. The existing plane operators will start using it for their internet.
Which means Tiktok was banned.
Show HN: Flox 1.0 – Open-source dev env as code with Nix
Hey HN,

I'm Ron Efroni, CEO at Flox, and today we are releasing version 1.0 of our open source CLI, helping folks manage development environments everywhere.My own experience with development environments began with air-gapped systems, having to actually burn software to a CD to iterate over a very slow and expensive development cycle, sometimes reaching the server rack and realizing I have the wrong disk.... Fast forward to today and there are countless alternatives available backed by incredible compute resources, yet we somehow still find ourselves paying the price of long development cycles. That's why I've been working for over a decade to simplify the development stack so we can spend more time on making 1's and 0's do magical things, and why my co-founder Michael and I started Flox to bring you the solution based on Nix. Today is just the first step on that journey. We hope you'll take a peek at our new release, and very much look forward to continuing the journey with you from here together!

Introducing Flox 1.0

Flox is a platform that lets developers and operators focus on building fast with reproducible environments that span the enterprise SDLC. Using a declarative framework based on Nix, a package management and configuration tool, Flox allows developers to create environments that contain everything they need to build software.

Why Flox?

Flox behaves a lot like your favorite and familiar package manager, but it allows you to create as many environments as you want on your machine. Each one can contain a different combination of packages.

Environments are portable by default. If you install a package inside one that isn't cross-platform, it's easy to carve out exceptions. It's also easy to write hooks and populate your environment with variables - we designed it to be hackable.

Flox environments run in user-space, like, where you are. When you type `ls` after activating a Flox environment you will see the same stuff because you're in the same place - even with all those new packages available. No mounting volumes, no proxying ports. No breaking into the toolset you just conjured.

Getting Started: No sign-ups, just one install away. Dive into our GitHub repository (https://github.com/flox/flox) and start exploring

I’m around all day to answer questions, talk Nix, or just reminisce about simpler times ;).

Lots of open source love, Ron
Pytest Superfixture Pattern
There is just under 24 hours in 1 Earth rotation (which can actually vary a bit). Beyond that there need be no further alignment between a clock time and relative solar position. After all the relative solar position can vary significantly through the year and more so the further away a person moves from the equator. So, let’s dispense with any further discussion that convolutes clock time to relative solar position because it’s stupid and unreliable.

That being said all that matters when making a call is the availability of each party to the call. If one of them is sleeping at that time then they are clearly not available.

So, if you want to abolish time zones all you need to do is:

1. Use a 24 hour clock instead of a 12 hour clock. Stupid easy.

2. When making phone calls know the availability of people you are calling. You should be doing this anyways, but maybe you’re an asshole and consideration of others becomes an insurmountable impossibility.

3. Take some personal responsibility to know when there is and isn’t sunlight hours for your current geographical location.

That it. All further challenges come from stupidity and those challenges will remain regardless.
> I want to call my Uncle Steve in Melbourne. What time is it there?
>
> It is 04:25 ("four twenty-five") there, same as it is here.
>
> Does that mean I can call him?
>
> I don't know.

I'm normally just doing a mental mapping of when's good to call someone based off my time anyway, and their usual habits — "My brother is normally free to catch up when I get off work at 5pm". Rather than — "My brother is in France and there it's 6pm, therefore it's a good time to call him."

If I don't know, I'll send someone an IM — hey Steve, fancy a call to catch up? I'm free for the next hour or so if your around now. Otherwise I'm free all day Saturday.
Then everybody cheats on size/weight/count. Used to have inspectors (Reagan abolished that?) so now we just trust the manufacturers. The predictable result: creeping size/weight erosion.
I fully agree with the point you're making, but to be pedantic, clocks and timezones are themselves assistive technologies. The precursor to them was taking a look at your shadow and making an educated guess.
Except those of us who don't pick Apple because it doesn't give us what we think of as a superior experience and doesn't do what we want.
What's the link supposed to be? Are people sharing videos about it/against Israel? (I don't use it, thought it was mostly silly dancing/reactions/pranks/etc.)
Manuals are actually less easy to open, if at all, once you get to the point where you are mostly under water. The electrics will function for quite a while and when you get to the point where they don't the manual is not going to do much anyway.
> Before the 1800s the day began when the sun came up, this varied every day.

See (variable-length/unequal) temporal hours:

> Adapting the European clock designs to the needs of Japanese traditional timekeeping presented a challenge to Japanese clockmakers. Japanese traditional timekeeping practices required the use of unequal time units: six daytime units from local sunrise to local sunset, and six night-time units from sunset to sunrise.

> As such, Japanese timekeepers varied with the seasons; the daylight hours were longer in summer and shorter in winter, with the opposite at night. European mechanical clocks were, by contrast, set up to tell equal hours that did not vary with the seasons.

* https://en.wikipedia.org/wiki/Japanese_clock#Temporal_hours

* https://en.wikipedia.org/wiki/Hour#Unequal_hours

* https://en.wikipedia.org/wiki/Unequal_hours
Isn't keypress and paste two different events?
Huh, wild. Thanks for the correction. I wonder why my local (USA) Aldi had a sign on it's door saying it doesn't.
Hence the “contest” part. You’re still going to have that opportunity, if you want it.
Free trade generally does not mean you have to let foreign companies operating in your country do things that domestic companies are not allowed to do.

Most of those sites are not in China not because China says that they cannot operate there but rather because China say they would have to obey the same rules Chines companies do. That generally involves things like storing data on Chinese citizens only on servers in China, censoring things the government wants censored, and giving the government easy access to information including identifying information to unmask anonymous posters.
The whole article reads like a strawman argument.

From a dev's point of view, timezones in real life are okay and much more annoying in data/software because sometimes, other folks don't care about capturing timezone offsets properly or converting to UTC.

We all just long for clean UTC timestamps that can be created, parsed or passed around without concern until they are displayed and formatted according to a local timezone where ever.
Abolishing day time savings would simplify this even more.
Can you really not imagine how a nation state could get valuable intelligence by having an intimate knowledge of how a large portion of another nation states population is thinking?
While I think this is really interesting, I'm not sure how useful it is. The world doesn't change because something may have a 5% chance of happening; it changes because it happened anyway. As a general rule, the most predictable outcomes have the lowest impact.
Because it goes against one of our purported values. I'd hope that this action had some inherent merit (I'm not claiming it doesn't), and it's not just retaliation.

Are we protecting America's trade interests with this bill? I don't think so...
> limiting the information US Citizens can get from the outside world

Nothing is being censored. TikTok.com will still work. This bill limits TikTok’s distribution, not existence nor even access to Americans.
If an insurance company can’t find data on you when they expect it, won’t they just charge you the high risk premium?
Topic is previously discussed (163 comments, 2 days ago) off NYT article at: https://news.ycombinator.com/item?id=39666976
Respect is everything, the mob, eh party wants you to disparage about your own affairs and argue triballistic. The ideal is a civil war within borders of all oppossition.

Silo all the dictatorships from the internet, thats the only way to contain the poison. Liberalism has failed
Sorry for the late answer. But this is for my insurance in Germany, which is extremely expensive because I’m a young driver
I want to call my Uncle Steve in Melbourne. What time DOES THE SUN RISE there?

Google tells me it happens at 7:17am. It is currently 4:25am.

It's probably best not to call right now.
Sprayable gel could make minimally invasive surgeries simpler and safer
Why, we could even publish our own individual "official hours". Those of us who stay up late and go to work later (referencing solar visibility) could publish later hours, and those of us who rise before the sun and retire shortly after dark can publish those hours.

Eight billion time zones, all available at a glance, with their contact info — Yay!

(I'm not sure myself if this is real or sarcasm, but if it was all UTC, it sure would be one good convenience for caller and callee)
I would assume ukraine was the testing ground for small quadrocopters. At this point the world is way past the "testing" stage of small cheap drones in warfare.
I do know a lot of poor people and they are actually extremely financially dumb and naive. They do not know how to compare prices per unit of measure. They do think the dollar store is cheap. They did have a goal of not using DoorDash for a month because their addiction is so bad. They will DoorDash fast food because they are too lazy to go pick it up.
Idk, every person I talk to thinks it's crazy that the US is this close to banning an app because it doesn't like the content. The idea that Americans aren't allowed to view "propaganda" is insane and very against the ideas of free speech.

But I come online and there's so much support for banning an app who hires lots of devs in Silicon Valley itself...
> Unfortunately it's instead likely to just lead to higher margins for insurance companies.

Why? Insurance pricing is heavily regulated, and profit margins for insurers have always been very low.
What. AI systems and LLM's do not have the same rights as humans do. In Europe corporations are thankfully not considered people like in the USA.
Similar at 1:47 I... I think

It sounds so human, a person would also stutter at an introspective question like this. I wonder if their text to speech was trained on human data and produces these artifacts of human speech, or if it is intentional.
ejected from vehicles during crashes

A substantial number of people still are not wearing seatbelts? For those of us who are wearing seatbelts the risk of ending up in a pond or canal is immeasurably higher than the risk of ejection.
Chinese smartphone maker Transsion's strategy to win in small-town India
@dang will help
And even then Aldi isn’t always cheaper. They make a ton of money on convenience items, like Soda.

But I do agree, aldi is pretty incredible. Most of the people shopping at my local Aldi are definitely more well off.
There is similar open-source project for Google Sheets: https://github.com/0x6b/libgsqlite (SQLite extension), which is a fork of https://github.com/x2bool/xlite (same idea but for Microsoft Excel spreadsheets)
While he wasn't "right", he was also a more complex character than the cardboard cutout villain that the media presented. I believe a lot of people see through the one-sided reporting and begin to mistrust mainstream media ("what else are they lying about"). Not everyone needs their news dumbed down to grade 4 level.
I think the primary argument for banning TikTok should be based on reciprocity rather than moral and/or security concerns. We can make similar arguments about the negative effects of Facebook, Instagram, and etc. even from the POVs of other countries, but the key issue here is that China heavily restricts foreign apps and services from operating in their market. If China is unwilling to allow US companies to compete fairly in their digital ecosystem, why the hell should we continue to grant Chinese firms unrestricted access to our market?
It really makes whole thing look weird. Isn't Max 10 just bit longer version? So how can one be certified and not the other? And isn't the type rating for flying one same? If they don't make reasonable move now and finally treat them different from past 737s?
Are you sure those SD cards contain the full, installable and runnable game? Or do they just contain keys for some digital store?
> It's better to have early morning sun than late evening sun.

Is there actual data backing that up or just your opinion?

I personally really enjoy more hours of sun in the afternoon and early evening. As an office worker most of my mornings are just waking up and getting ready for work, not normally lots of time for recreation. Having more hours of light later in the day aligns with my free time hours better.
Maybe the outcome will be that US youth will get serious about voting and choose representatives that has their interests in mind.
Dollar stores generally have much higher margins than Walmart or Costco. They're more expensive per unit, but the upfront cash required by the customer is lower.

For this reason (cashflow) they are seen as a good option for poor people, where in reality everyone would be better served by Costco if they had the cash and storage room to buy in bulk, and a car.
You're focusing on them instead of politics. "Panem et circenses" is a political tactic.
Third result is a far better StackOverflow post as well, without the irksome formatting of the posted link: https://stackoverflow.com/questions/348792/how-do-you-tell-i...
Not at all. I work in a field that can't use public (or in many cases commercially) available solutions. We have studied the use of AI using private models that are based on the publicly available models for some isolated use-cases. The outcome was that AI is no where near mature enough to write anything besides basic solutions.

If AI does penetrate and become effective in my area, it's another tool. Just like you write less and less code as you achieve higher roles, you'll spend more time using AI rather than writing "raw" code.

One way or another, AI will become part of our jobs. To what level and when will greatly vary from industry to industry.
<Qobuz and Tidal, where my music is presented, are all High res as well.>

Neil Young has spoken, obey fools!
I tried to implement some simpler cases with the policy language, Rego (https://www.openpolicyagent.org/docs/latest/policy-language/), of OPA and found it overly cumbersome. A simple check like "if user is in group A and in group C, but must not be in group C" is hard to express in this language. It would be a trivial task in any somewhat decent programming language (e.g. JavaScript).

I understand why restricting the possibilities with an external DSL might be a good idea, but I consider Rego to be to restricted. I mean, in the the a policy is just a function saying basically "yes" or "no" (I know, it's not that simple with OPA, but it boils down to access yes/no, anyway).
This logic is not going to hold up in court. You cannot ban access to propaganda in the US.
Cool! I've added a mention of this to the article.
"as far as I'm aware", this is doing some heavy lifting.

You need to be sure :)

The above list of requirements is in essence what most of the UK and EU check for when doing checks of patent and IP law.

I am not a lawyer though, I'm in engineering... so of course, get your own confidence that this approach is good for you.

Most employers would be cool with extra-curricular things (many demand it on CVs!), but you never actually know until it happens.