skysight-inc/HackerNews huggingface dataset:
How does the C# DateTime type distinguish between dates and a point in time whose time just happens to be midnight?

Much of the C# code I've seen uses names like start_date with no indication of whether it really is a date (with no timezone), a date (in one particular timezone), or a datetime where the time is significant.

I'm certainly not a C# developer, though my quick reading of the docs suggests that the DateOnly type was only introduced recently in .NET6.
Questions about which operating system is more secure or fastest makes no sense
I'd like to use Wayland, but it's not stable enough. I've lost count of the number of times I've lost work due to a segfault and then being logged out. And lots of applications still don't support it for screensharing (looking at you slack).

My bug in particular seems to be related with thunderbolt or USB c connected monitors. A disconnect will prompt a segfault.

I'd like to contribute with a proper bug report and I probably would if I hadn't had everything working with gnome+X. But now I just can't motivate spending time on it over other things in my life. Hope they have telemetry for segfaults at least.
In basic middle school math it’s common to multiply different units as a basic conversion mechanism. Multiplying by the same unit is semantically equivalent to “x times 1 is identity(x)”, and other cross-unit arithmetic implies conversion to ensure like units before processing. A typed unit numeric system would imply that to me. It would not imply I’m multiplying the units, but rather the scalar value of the unit.
To be honest, yeah, I can't decide which one is the biggest anti-user shitshow. My personal favorite is YT which likes to make at least one universally disliked decision per year. But I'm sure everyone has their own.
> I also think there is a benefit to a team using the same editor for a project. This allows checking in of editor-specific files that increase productivity (We check in our .vscode folder with recommended extensions, on save actions, launch configs etc)

There's a benefit to having a well-trodden path for the team. But that's about where it stops. If I put up quality PRs that meet the standards for the codebase and my productivity is high, who the hell cares which tool(s) I use? Should I be forced to use a certain text macro program? A particular terminal? What purpose does it serve other than to micromanage?
I don't use android emulator for developing automation solutions. I use it for regular old part time social media and community management gigs. You can't upload videos stories without the app. I rarely use automation solutions for these jobs.
Perhaps he is wrong about many things, but your post comes across as an ad hominem that doesn't respond to any of his points.
Contra: saying that you would prefer not to means that you can and will if pushed enough.
I don't think you can just dismiss bandwidth concerns, especially when you consider video conferencing.
Not entirely. The explanation is very very often taken as start of negotiation and an invitation to pressure/question you.

Saying that as someone who was taught to explain everything as kid and found out in real life that I have to unlearn that. Say no, maybe bonus "cant" but don't say reasons unless you really have to.
AFAIK the sun is brighter than about 90% of stars in the Milky Way. We're on the larger and faster burning side, as stars go. So there will be many stars left after the sun dies. Whether you consider this to mean that saying we're about halfway through the lifetime of sunlike stars sidesteps the question depends on whether you believe that complex, energy-intensive, intelligent life is equally viable on planets orbiting red dwarfs.
Show HN: Mindscape.pub (Collaborative mind-mapping)
And friend is a four letter word.
Hi, I’m building a site for hypertexting.

Use it for ideation, discussion, etc.

Create links between posts to create a hierarchy of tagging.

Vote on links to solidify this hierarchy

I’m hoping it becomes a fun spot to hang out.

It’s built on typescript, reactjs, apollo gql, nodejs, nestjs, postgres, heroku.

*The site is meant to be mobile compatible-- but it's much more interesting on a laptop/desktop.
What precisely could have been changed to make you realize that C# DateTime is not the same as Unix time? Perhaps Ticks could be renamed to Ticks100ns but I'm not sure how to encode the epoch date such that it is not necessary to read any documentation. I suppose the class could have been named something like DateTimeStartingAtJan1_0001 but obviously would have been ridiculous.

Naming is an optimization problem: minimize identifier length while maximizing comprehension.
use jEdit its the best
The author has described what they thing would make the practice of TDD better. The rationale presented isn’t ridiculous. Reasonable people could disagree on it.
i think you may have suddenly helped me to finally grasp the true essence and nature of tdd. woah this makes so much more sense
It's not Epstein that got away with it, it's all his clients, many of whom were far more wealthy and powerful than he was.
I'm actually more concerned about religion than i am about porn. Religion is a tool to manipulate the people through lies, and it relies on training people not to do any critical thinking. And the lack of critical thinking in the world today is very scary.
Alas, no. It's because ActiveSupport's duration arithmetic is not distributive under conversion.

The expression on the left hand side advances time (as a domain object) by exactly a month, then converts the result to integer unix time. The expression on the right adds 2629746¹ to the current unix time.

The conversion becomes dangerously magical in the presence of shared code that accepts both object and integer representations of time & duration. A consumer from one part of a system can inadvertently obtain different results to another unless they use identical calling conventions.

[1] this is 1/12 of the mean length of a gregorian year²

[2] 365.2425 days i.e. 31,556,952 seconds
I don like it, say I open a database table and search for some events , then look at the created_at column and see a timestamp, so now I need to copy paste timestamps into a webpage and convert it to human readable time to then notice is 5 years old and not what i am looking for.

What are you doing in this case?(in case you worked with database logs), export to csv and then do it with unix tools?
Agreed - but it's a larger project than this post. That said, I'd be very interested in people building models of this that are operationalizable and falsifiable! If anyone is interested, they should be in touch.
I used to explain everything, but then people pressured me a lot on most of my "no". It was interpreted as start of negotiation or maybe I was then seen as potential pushover, I don't know.

I learned to say no with no explanation and look a bit sad while doing it. Pressure stopped, people accept my no as valid and seem to treat me with more respect.

So, plain no is not attack on you. It is experience that explanation makes one vulnerable to uncomfortable pressure.
I have always thought that.
I agree it’s an implementation issue. Windows always feels like annoying nagware while macOS and iOS largely get out of your way. Teams would pop up with a window on every boot to annoy you while FaceTime just sits in the background.

But the power users on this site would rather we have some kind of advanced configuration page where every single feature of windows should be opt in. While simultaneously praising the Apple “just works” system.
Gross oversimplification. In 1960s when states funded a higher proportion of things, students in wheelchairs might have no place to pee and women were not guaranteed same opportunities as men.

Even into the 1980s buildings were simple brutalist concrete dungeons and A/C was not an expectation; there was no campus IT; no plethora of career placement systems; counseling office; Title IX compliance office; free medical clinics; fancy rec centers, and numerous other amenities.
Depends on how you define "reliable". I'm sure the Malinois can be relied upon to do the things it has been trained to do, but I can rely on humans to do things they have not been trained to do.
*cough* Golang *cough*

time.Sleep(42 * time.Millisecond)
time.Sleep(42 * time.Second)
time.Sleep(42 * time.Nanosecond)
time.Sleep(42 * time.Hour)
> The longest (entirely) suspension bridge in the world is the Kurushima Kaikyō Bridge in Japan, with a suspension length of 4,015m

4,015m is 2.5 miles. The parent comment to you said that the 1915 Çanakkale bridge is 2.86 miles long in total. If those numbers are correct, the 1915 Çanakkale bridge would appear to be the longest suspension bridge by all measures, not just central span. I don't think it has anything to do with number of towers.
I just wish the M1 Pro could drive 3 external monitors. It’s the main thing keeping me from dropping down to a Pro on my next machine. On my 2019 16” I drive triple portrait 24s, but I would need a Max to do that on a 2022.

Here’s hoping the M2 architecture has HDMI 2.1 support and the gpu can do triple monitors from the beginning.
> The big tdd misunderstanding is to believe that it provides good test coverage.

Have you considered that, because TDD is a design practice (a 'meta-design') for writing code, there is no "one correct" interpretation, or misunderstanding, just different understandings? Yes, the people might be misusing it as per your understanding of it, but you are not the center of the universe here.

You are correct that "it's about X", the people who are misusing it are also correct about their interpretation of it. Fundamentally, all TDD is the 5 steps of "writing a test first, and writing code that makes that test pass", along with some mentions of other meta-design approaches like KISS, etc.

The way someone understands a meta-design is driven by a lot of factors, the way someone uses a meta-design is subject to the cultural context in the place you use it, the design restrictions and constraints of your tooling, the meta-design constraints of what practices management is willing for you to devote time to, etc.

So fundamentally, you cannot create a design practice (or meta-design) that is applicable to all scenarios and circumstances. TDD will be outright inappropriate for some situations. This is exactly what "design patterns" are about, finding similar or identical ways of designing code, categorizing them, and figuring out what circumstances they do and don't work in. Now, I guess we need "design practices patterns", so we as an industry can move on to figuring out what practices are fit for certain scenarios, and what scenarios they are unfit for.

Ultimately, anything less than the understanding that "context is king" is likely to lead to people just going around in circles and talking past each other.
Those companies don't actively give people money to produce that content though.

I'm not denying that being a porn company made it easier, but let's not compare what was going on there to what goes on in the private messages of nearly any website large enough.
> Where are all these new workers going to come from, and if they could work productively already why aren’t they?

Why would they work more productively if that is not needed? They would have to make more things, which people wouldn't buy because there is overproduction. If you have order for 1000 items every week, you make 1000 items every week, even when you could make 5000 items every week. You can slow your production line, this way workers are more relaxed and you have time for maintenance. It's not like every employee out there is used at 100% utilisation, that would not be sustainable. Many times you employ as many people as you can just because it's cheaper than using more automation. If you need to produce more and can't find employes, you can pay them more. If you can't find enough employes at all, that means price per employee is so high that you can now employ some robots. Yeah, it takes time, but global change in time of employment is also not going to happen overnight.
> Self-reported

And how many of them were in a dire need of attention?
But none of that requires a Blorkchain to do.

Just because Blorkchains can solve a given problem, doesn't mean it's the best, or only solution. One could design a notetaking app using remote controlled combine-harvesters that mow the notes into prepared fields of wheat serving as storage media, and camera drones to read the information back. Doesn't mean it makes sense to do so.
Modified bytecode, not just bytecode (or else any APK hoster would be illegal)
> If someone who's part of that business asks you something, you don't get to just say no unless you're the CEO.

Of course you get to say no. You are not paid to "serve the business" as if business owned you. You are paid for specific role, specific amount of time, specific achievements. And that pretty often includes saying no to other people in same organization.
> if an user has to go through all that many trouble and risks to preform such simple and (rare but) routine task, this design is bad

You're assuming an Apple user is meant to service their own product. That's not the case as far as Apple is concerned. You have an issue, you drop by the Apple store (or send your device in) and they repair it for you.

Determining good-ness or bad-ness of a design has to take into account the intended usage and design goals. Whether a customer should be able to repair their device easily/at all, is a whole separate topic. Apple doesn't think so and their design decisions have clearly reflected that over the decades. As far as that goes, whether the end user has to dig through 20 layers of hardware before cleaning a fan is irrelevant. What's relevant is whether Apple employees who'll be fixing/cleaning these devices will be wasting too much time for the most frequent support requests. That's what Apple should be (and most certainly is) optimizing for.

Also note that the majority of the end users will not have the time nor the interest to repair their own devices, especially when in most cases, their repair is covered under warranty. A lot of people with the technical skills far more than needed to to the self repair fall into this category as well. I've been modding and hacking expensive hardware for decades mostly for fun, but also for practical reasons, in order to add to/modify behavior of the hardware. Even I have little interest to repair my Apple products I have paid premium dollars on. I increasingly value where I spend my time and I let Apple do my laundry for me.

I must also mention (given the high degree of Apple/Google/Facebook/... bashing on HN) that Apple is among the better, if not the best, manufacturers in terms of warranty service and support (at least where I live). I have requested warranty services for dozens of products and not once have had to "prove" my case, or so much as try to convince Apple of an issue. Compared to every other worse interaction with other brands, I will continue to pay top dollars for Apple products even at the cost of whatever the hot Apple knocking topic of the day is. Having said that, there are of course tools that I need full access and repairability as a given and I never go with Apple in those cases.
Not an attorney, but I suspect two mistakes the YouTube Vanced team did with the project is having "YouTube" in the name (Could be considered as a false association and trademark violation by Google or YouTube), and redistributing complete APKs that were modified YouTube APKs that would be under copyright.

I have not looked into the inner works of this, but on device patching of APK DEX classes from a set of patches is possible. Would not require root as long as it generates a patched APK and installs that using the standard PackageInstaller. That is probably a less risky proposition then distributing modified APKs themselves.
Electricity plus some small premium should be tenable under any market condition. At least it works for public clouds so far even as hardware prices have fluctuated over time. There will likely always be someone who'd rather briefly rent than buy.

I do wonder if what's charged for electricity and premium can be competitive with large data centers in the long run. Amazon already has spot pricing. I expect it would be favorable for consumers with cheap electricity or who are already paying to heat their house.

I also wonder what effect renewables increasing electricity spot price volatility might have on this market in the future.
For C++ you can use boost units. It is basically built up of template magic which only compiles when your units are correct.
The disadvantage: when it doesn't, it explodes in a huge template error. But when it does, you can be pretty certain (depending on the actual calculation) that your code is correct. It is also fully verified at compile time, so there is no runtime overhead.

https://www.boost.org/doc/libs/1_78_0/doc/html/boost_units.h...
I tried to play Minecraft with my kids yesterday. It forced us to migrate accounts, but after clicking lots of buttons, the presumably final Microsoft account creation part just hung and wouldn't finish. My kids were like "By why can't we just play? We paid for it!". They couldn't understand why "Microsoft accounts" were even needed for local network play. Neither can I.
Yeah, this is also happens in code. The solutions are the same, either use a type that is unambiguous (`timestamptz` in Postgres, `datetime` in Python with `.tzinfo is not None`, `DateTimeOffset` in .NET, `UTCTime` in Haskell etc.), or if you have to use naive datetimes, put the time zone in the name and call it `datetime_utc`.
You've got to be kidding. The virus is here to stay. I am absolutely unwilling to spend the rest of my life wearing a mask, regardless of the consequences. Most Americans feel the same way. There's more to life than avoiding a minor respiratory virus.
This is usually the way I respond to friends who know they can follow that up with "please!" and I'll do it. It's kind of a "how important is this to you?" test.
I'm sure it's not only United, but keeping the windows dimmed the entire flight seems to me more like reducing the workload of flight attendants (making everybody sleep more) on ultra-long hauls so they can spend more time in the back gossiping back whatever they like to gossip about.
Off the top of my head, Project Zero?

I never forgave M$ for IE6 though, so I’m biased. A new generation is being lulled into thing they’re the good guys.
> In basic middle school math it’s common to multiply different units as a basic conversion mechanism

EDIT: Yes, you multiply the units `2m * 2s` : you first multiply the units to get: `m.s`. This is what I say: you convert everything to the same units before doing the calculations.

> Multiplying by the same unit is semantically equivalent to “x times 1 is identity(x)”

This is wrong.

1kg * 1kg = 1kg² period.

What you're saying is `2kg * 1 = 2kg`, which is right, because `1` is a scalar while `2kg` is a quantity. This is completely different than multiplying 2 quantities.

> It would not imply I’m multiplying the units, but rather the scalar value of the unit.

That's where you're wrong. When doing arithmetic on quantities, you have 2 equations:

x = 2kg * 4s
unit(x) = kg * s = kg.s
scalar(x) = 2 * 4 = 8
x = 8 kg.s

Or

x = 5m / 2s
x = (5/2) m/s
x = 2.5 m/s

There is a meaning to units and the operation you do with them. `5m / 2s` is 5 meters in 2 seconds, which is the speed `2.5 m/s`.

`2m + 1s` has no meaning, therefore you can't do anything with the scalar values, and the result remains `2m + 1s`, not `3 (m+s)`.
> We check in our .vscode folder with recommended extensions, on save actions, launch configs etc

That has the side effect of silently overwriting your local .vscode config when you check out a branch. If you have custom settings they get destroyed.
Not really related to the point I was trying to refute, but IMO there are two primary sources of difficulty when it comes to selling private equity as an employee:

1) regulations (imposing barriers & increasing friction as both first-order and second-order effects)

2) companies don't want it (i.e. for incentive alignment reasons, or other)

Regulations have a trivial solution, though obviously one that's not super popular.

Companies not wanting to allow employees to sell equity... well, there are probably some of those? My (mostly uninformed) speculation is that most companies past a couple hundred employees don't actually care, and to the extent that they do it's a mistake to try to lock employees in with golden handcuffs. Allowing the (relatively) free sale of equity before IPO increases the value of the equity, which makes their offers correspondingly more competitive; there are probably _some_ countervailing considerations but I think they're overwhelmingly dominated by potential employees going from "my modal outcome from this equity is 0" to "my modal outcome from this equity is [big number with large error bars, based on the current market price for the equity]".
> they are now writing a Windows emulation layer for Stadia

So they are going in the same direction as LiquidSky.
they are gross if you consider just the deformity and references (I've had to design character looking at all SORT of deformations and diseases) but also each has their own "dignity"

if you want to see pure grossness like they try to avoid watch something like peter jackson's "dead alive" the souls really nail a kind of tragic or even self respecting aspect of deformation in their more "offputting" characters.
My aunt has a seeing eye dog that has led her in to traffic 0 times. My dogs reliably find game birds and ignore non-game birds in the same cover. The trick is to not put them into situation where pleasing their handler is at odds with the job they are tasked with.
> No one will stop you.

In direct contradiction to what you say, there are many businesses in red state US who will stop you from wearing a mask if you try to enter.
The problem with fictional drama is that it does frame how people perceive the world.
The fact that the US has strong separation of church and state laws is what prevents us from being a true theocracy. It doesn't disprove my point whatsoever.

The fact that the vast majority of politicians that get elected talk about doing what they do in the name of God more than shows that.

Or try growing up in a small country town as one of the only families that don't attend church service. Until you've been suspended public school for "spreading Satanism" because you said church sounds boring, you haven't experienced the same America as the rest of us.
He's not talking about repair. He's talking about cleaning. Cleaning should not require an Apple certified technician.
CotEditor (https://coteditor.com) is a well written, open-source (https://github.com/coteditor/CotEditor), lightweight, native (Swift), lightweight plain-text editor that many Chinese, Japanese, and Korean developers love to use. I highly recommend it.
TMI does do a good job of not providing difficult techniques, but the I think Goenka explains watching the breath much more simply and better. He emphasises not grasping or being averse to what arises, and only working with your reality in that moment instead of wishing for things to be different. TMI does mention some of those points but I found the way Goenka reemphasised them to be very helpful
> I buy my computers with Linux pre-installed on supported machines. All those complaints of Linux "still not working" in 2022 effortlessly glide over the obvious: you're already making it an unfair fight when you adopt an OS to a non-native machine

I did as well, an Asus 1215B netbook, remember those?

The wlan still has issues to work properly to this day, the graphics card should be able to do OpenGL 4.1/DirectX 11, yet the AMD driver only does OpenGL 3.3.

Good that it was shipped with official Linux support.