skysight-inc/HackerNews huggingface dataset:
I would love a small conversion tool to read in medical imaging dicom files and output a volumetric vdb dataset. I've nearly written this on several occasions. Most, but not all, dicom files encode a 2d or a 3d scalar field and vdb files are the graphical effects industry standard format for those, usually used for fog, fire, or similar effects. They can also usually be converted to polygon meshes through a variety of algorithms.

The reason why I want to do this is because 3d tools for artists -- blender, cinema 4d and the like -- have a large amount of easy-to-use and highly complex tools for subsetting volumes and making things look pretty.

Most medical imaging software is the opposite of this. You cannot change the data and the tooling is intentionally limited. Mostly this is a very good thing. Sometimes, however, and particularly for complex anatomy or pathology from a patient, you really just want to make a beautiful image for a paper with an anatomical structure manually removed, highlighted, or coloured differently -- something that would be very easy in e.g. Blender. The fact that Blender is python-scriptable is also frankly amazing and it's natively cross-platform too.

The reason I have written a tool like this is entirely because both file formats are very complex with lots of edge cases -- e.g. most ultrasound dicoms are little more then a screenshot with a lot of metadata, UI overlay and all. It's a lot of work and fundamentally isn't my job (I'm a medical physicist and should be making images with novel physics, not making images look pretty for presentation purposes).
Unless you're going to be doing something that specifically requires C++ (some game engine related code comes to mind), go with Rust. Most real-world code (by number of codes and lines of code) is something else than C/C++ nowadays, just because of developer velocity and a larger hiring pool.

Yes, you can get that last cycle of power from a piece of hardware by going with C or C++, but on the other hand finding people who can do that is time-consuming and expensive. And in many cases eventually not worth it.

"C++" is such a big concept toi grasp fully, that I don't see the point of studying it unless you're getting paid for it.
Often these are company cars (with private use allowed), where gas is paid for by the company
Ask HN: What is the simplest database as a service?
I want to create a simple static website that stores some data in a DB and accesses it using a CRUD API.

Any recommemdations of such a website / service that already exists? Would want to avoid Firebase since don't want the additional bloat.
This is also true in NL, the right to work less than full time is enshrined in law, and most software / IT companies I know of have no problem with working 32 or 36 hours a week instead of 40. Consultancy will probably push for working full time, because that's where their profit margins are.
Either it's the cost/benefit ratio that been keeping them from handling this, or it simply hadn't crossed their minds until now in which case you might soon need to come up with a new mitigation strategy ;)
Yes. You can keep your fingers in the hjkl and still use the mouse without moving your hands.
> I personally don't like to use pimped up terminals because they are written in electron and are not portable.

Alacritty, Wezterm and Kitty say hi. Uber-fast native apps that also render all the modern Unicode symbols correctly (well OK, Kitty has some Python).

You are also over-exaggerating and coming across as the "get off my lawn" guy.

I am 42, I was there when terminals were as bland as non-salted spaghetti in boiling water with nothing else in. Nowadays I like the autocompletes (with context nonetheless -- a huge improvement; you can autocomplete GIT verbs for example), I like the fuzzy finders that I integrate with (a) looking for files, (b) looking in my command history, (c) looking in my OS process list and (d) looking through all modified / untracked GIT files in a repo, I like the colors, I like the icons for separate file types, and I like modern incarnations of coreutils whose output provides you visual aid that objectively reduces the amount of parsing that your eyes must do on the screen. Eye and mind fatigue are real and all visual aid [that's not overdone] helps a ton. There are even scientific studies on it.

Want me to go on?

Conservatism like yours is not productive. Like with everything in life, there's good and there's bad e.g. I won't ever use the terminals that are written in Electron and phone home -- that gets an immediate "NOPE!" from me -- but there are objectively useful terminals, terminal extensions and CLI tools out there.

That you judge all of them by a few hip repos that are making the rounds here on HN only says something non-flattering about your abilities to gauge innovation.

Be more open-minded. It helps in an objective manner and with objectively improving metrics to show for it afterwards. At least it did for me and 30+ colleagues.
I agree. I always feel like my use of shell scripting and unix tools to perform basic tasks is so much less than it could be. I enjoy the ideas of portability and speed that comes from these tools, but often I just want to get the task done and end up writing something in Python.

Things that always get me:

- Meaningful whitespace in bash.

- Differences between Mac BSD-derived utilities and POSIX utilities. (Perils of using a Mac, I guess, I know I can install the GNU versions of most things but ugh)

- Not being able to just use PCRE everywhere

- The magic of awk

- Differences in parameter/flag placement between different tools

- The amount of edge cases that you have to account for, usually to do with various levels of globbing, or special
characters or even spaces in file names or utility output.

- More, I'm sure, that I can't think of right now.

there's just this underlying sense of inconsistency that I have when dealing with these tools that I feel results in me always having to check the man pages or StackOverflow whenever I want to string together more than a couple of operations.
Have a look at YugabyteDB. If you can tolerate Postgres 11.2, it would work for you. Yugabyte offers a managed service, on premise and you can roll out your own system.

I’m not affiliated with the company.
I stroke such a deal by accident, clients informed me that due to budget cuts they can't afford my full-time services anymore, so rather than lowering my fees (never do that) or loosing the client, I offered them to hire me for 32h a week instead. My initial plan was to take another part-time project to fill the gap, and I did that for a while, but in the end now I really enjoy having 3-days weekends. You come on Monday to work with so much more energy.
I live in Norway. A beer costs around 85-90nok (around $9.50USD or 9.02€). It would be really easy to spend $50. That's 5 beers, and I'm not entirely certain that the student houses are really that cheap here. [1]

Folks counter this by pre-drinking at home and then going home to continue drinking. It really wouldn't be that difficult in the US either, and some folks would certainly leave you behind if you can't keep up financially.

Fun fact: Austria is cheap in comparison, at about 2,50€ to 3,50€ per beer, and it seems like a comparative deal. [2]

[1]https://norwaytoday.info/travel/is-beer-in-norway-really-tha....
[2]https://www.flatio.com/blog/typical-prices-of-goods-in-austr....
The hacks started last summer.
In order:

- They could

- Sometimes it does

- "It" doesn't work a single way, which is why there are so many different opinions of how to look at it :)
From June last year until February this year, I was running the stock Kubuntu 20.04 kernel on a ThinkPad T14 with no thermal throttling or power limits. I would often have a few Docker containers running, a JetBrains editor (Java, shudder), Firefox with some addons and well over 100 open tabs, Chrome with the devtools open, MS Teams, Thunderbird, and some smaller apps such as Keepass, Telegram, Anki, a dozen terminals, and Emacs running. Never had a problem with memory (I think only 8 GiB, actually) or CPU (I don't even remember which Intel CPU it had). It was also connected to a docking station with two external monitors and an external keyboard.

It was the smoothest Laptop I've ever used with Linux, which I've been doing since 2008. Everything worked out of the box, including external displays, wifi, printing. I'm sure that a major portion of that experience was using a Kubuntu LTS release.
If the whole subtitle file is out of sync (e.g. every line is late 2s), one shortcut is all it takes. In that 1/10 case, you do need to 'fiddle around for ages', but given that all other options (e.g. SubtitleEdit[1]) are way more complicated and time consuming, mpv is all I could suggest. For the problem with audio and image being out-of-sync, I have no idea :)

---

[1] https://www.nikse.dk/subtitleedit
What issues with plain old HTML are you running into?
I switched my site to static and it's become hassle-free to deploy ever since. Just copy the files anywhere and you're done. I assume it can't be DDoSed either, though I don't think nobody has ever tried (or they did and I didn't notice).
Charitably put, they're pretty good at communicating that they're pretty bad at communicating. Slight kudos for doing it quite early in the not-a-relationship. (And pencil in checkmarks by #2 and/or #3 in the article's "...ways these norms cause suffering" list.)

Or you could say they're using a different "rule book", or "language", or set of social conventions - which are great reasons to avoid someone.
It seems aimed at making the trivial use cases easy, the normal use cases hard, and the hard use cases impossible.

For example, "exe", "dll" and "lib" are types of projects, not of individual files: no apparent way to have multiple and heterogeneous end products (e.g dynamic libraries + static libraries + test executables + something not C/C++ like Doxygen) or to define variants like compiling the same program as a statically linked big executable or as a thin executable and a bundle of dynamic libraries.

Lack of documentation is another serious problem. For example, how do I pass exotic GCC flags and how can I ensure that qb uses GCC instead of MSVC?

"Zero configuration" in serious systems means self-configuration, e.g. automatically finding and inspecting available compilers, to provide added value over completely manual configuration; denying configuration, or at least not thinking of it because no toy example has needed it so far, isn't very productive for the end user.
Reading this, and then reviewing the Code's specifics, I realized that the Code and Hollywood film noir's heyday come in tandem: "No sympathy for crimes and criminals; all crimes must be punished" is a specification that naturally produces the majority of noir plots, which in aiming to depict crime and violence must push the characters into tragic no-win situations.
There is just not enough information in your post in what you want to do with your knowledge.

If you have a long time horizon, Rust is the safer bet, if you want a job fast, C++ has probably more job offers.
Definitely this.

She is trying to game it with a person with whom she isn't a good match. It has nothing to do with communication and more about vibe and 98% of vibe is just sheer sexual attraction.
I totally understand your point… like you I married my high school sweetheart (I am 37 and to date I have being in one continuous monogamous relationship for 20 years). We did grow up together… changed together.
SecurID app is temporarily unavailable on Google Play
> Everything is a tradeoff and [designers] are the ones 100% on side of usability

Designers shouldn't be just 100% on the side of usability, they should be balancing multiple factors such as cost, aesthetic, durability, portability, accessibility, ease of manufacturing as well as usability (there are many more).

All of these things have trade-offs - making a product more durable might increase cost, making it easier to manufacture might hurt it's aesthetic, adding more ports might improve functionality but decrease the aesthetic and increase cost etc.

The job of a designer is to balance all of these factors. The argument is that the balance Jony had was skewed more towards aesthetic which resulted in trade-offs in other directions.

> The aesthetic is a side product.

IMO the aesthetic definetly isn't a sideproduct for Apple - it's clear that aesthetic is a core part of the design process (see the iMac G3, G4, Trashcan Mac, latest iMac, Homepod e.t.c. where a significant portion of product engineering is driven by the external aesthetic to a large extent). The design of the iMac G4 was no accidental side product of the tech.

The criticism of Ive is that he weighted aesthetic too high at times, which for example resulted in an obsession for product-thinness which compromised the usability/durability of the keyboard, and of un-obtruded sides which led to the removal of ports and a charge-port on the bottom of the magic mouse.

You can still be a great designer and have a bias towards form over function - and arguably the best designs are done where there is some sort of creative tension between form and function (as tension often breeds creative solutions to release the tension).
You're right, I was thinking one thing and typing another thing. Weird how that works some days.
For Ukrainian willingly endangering the pres would amount to treason
I'm from East Europe.
Were you doing anything but React in that job or bootcamp? What did they teach you?
You should never get to that point. Why would they take the money when they know that it is an invalid transaction?
I always hate the "don't overthink it" comment that inevitably comes along with any advice on dating, eating, sleeping, etc. Yeah, if dating is going great for you, then no need to apply any thinking at all. But if something is not working then you'll need to think about it and the chorus of people saying "don't overthink it" are less than useless.
I love that this exists, and that there are people just relatively quietly making these things happen. Contrast this to how we as developer feel pressure to monetize, or to grow, or to something short term.

It's a bit of a shock to me that this is the first time I've heard of this. This sensation always makes me wonder "What else like this is out there" ... in other pursuits, other fields? People just toiling away and gradually producing something extraordinary.
Is it at all possible that other senators were asked to not share anything but that the two people you mentioned made some special arrangement, perhaps to drum up American popular support?
Does Red Hat require office presence or just hire in countries where they have HR set up etc?
> Hanging out with a bunch of people who share similar interests with you

You had a very different experience of university than I did.
If I had a cool domain like that I'd also want to send mail with it, so personally I'd want to keep all current MX and TXT records relating to email intact.
This may be true on Intel/AMD based CPUs but it has not been my experience on an M1 machine. I have the same workflow both connected to power and not. Multiple docker containers running, slack, zoom etc. There's definitely no performance compromise.
> It's just that traits like ADHD and high levels of anxiety probably were helpful - or at least not harmful - in our evolutionary context, but are not anymore.

This. In tribal times it was an asset. A few individuals that sleep till noon and stay up all night? Who cares. When the tribe got attacked by others or wild animals they could save 100-150 peoples lives.
Good point. I never think of the integrated Intel version as "GPU".
> Even back in the days when I was coding in c++ on day to day basis, I have always found boost code hard to read and reason about.

Do you mean the code of the library itself, or code using that library?
> no jargon

> troglodytes
Or simply having to work part time while keeping grades up means you just can't socialize as much.
I don't like the landing page, it lists all the niceties of the program and details how it does what it does, but it doesn't say what it does.

Why do I need this? What problem does it solve for me? I know it samples pipes, I don't know why I would want something that does.
Are you replying the the right comment? I offered no analysis. I'm just not into Lysenkoism or generalized anti-intellectualism on principle. I don't think it is productive to attack the people making an argument instead of the argument itself, especially when you make the most negative assumptions about who they are.

I'm sure that there is merit in what you say and that you probably have experience. My only experience in farming was directly in the fields, none in any sort of decision-making.
Thank you for bringing this up. This is an important distinction. I'm totally with you until the sentence that includes "find their true love". This sounds like there is a very particular kind of love (the true kind) and perhaps also a particular person that is the true "love of your life", and both need to somehow be "found".

I'm not trying to be pedantic, but genuinely curious as to whether you have thought on this as well, as I find the first part of your post quite illuminating.
Don’t Trust Activity Monitor on M1 Macs
Have you tried https://github.com/BurntSushi/xsv?
Not just you. I found it cringeworthy. Love is not rational. You're not going to be able to quantify your taste in music. I think social media has got many women holding men to a ridiculous standard. You're going to wait a long time if you're looking for some combination of Elon Musk and Justin Bieber.
I assume you know an older form of C++; the language changed a lot over the years, and the more recent features are "better" but they also make C++ (even) more complex. It suffers from ugliness, non-orthogonality, over-complexity, among other diseases, but it is still somewhat practically relevant.
Rust is worth learning for its 1. avoidance of null and memory leaks 2. great error handling 3. excellent compiler error messages 4. concise notation (perhaps except macros, Common LISP wins here IMHO).

So first learn Rust, later learn C++11+ (by the time there will be a successor of C++11 that may look even less like the C++ you know).

Learning Rust will develop your thinking and taste, and this will then help you judge the flavour of C++ that you will be learning later (and because you'd update your C++ skills later, you may skip another C++ legacy flavour in the process).
I'm confused when people preach Zig and then safety in the same sentence. Zig has basically all the same problems that C++ has with a few extra bells and whistles. There are perfectly good reasons to like Zig, but it being "safe" is not one of them.

> For example, this comes through in little things like Zig's extreme simplicity and explicitness

"Simplicity" does not mean safety. In fact simplicity means you can't describe hard problems easily without being overly verbose, which means more code and more attack surfaces. Problems are what can be simple or complex. If your language advertises "simplicity" it just means it can't solve complex problems in straight forward ways. Zig is just repeating the mistakes of C++ as well as all the mistakes of Go.

> or people who haven't worked in security, integer overflow and wraparound may seem like a small thing, but they increase the probability of buffer bleeds, i.e. attacks like OpenSSL's Heartbleed, which are often remotely accessible and easier to pull off than a UAF.

Zig does exactly what Rust does in this case.

> In fact, no language is 100% memory safe, i.e. able to prevent a memory buffer bleed, because these are logic errors with respect to the file or protocol format.

What are you trying to argue here? Buffer bleeds can't happen in safe rust.

> The borrow checker is obviously great for multithreaded systems, but if you're using io_uring for fast I/O, then multithreading is less of the necessary evil that it used to be a few years ago.

Syncronization is a problem in any kind of multitasking. Whether that happens inside or outside the language is the only question. The OS can have all the same problems your code can have. https://mobile.twitter.com/axboe/status/1505335772706091011 Also io_uring assumes you're only ever writing for Linux.

> Nevertheless, Zig is safer than Rust when it comes to checked arithmetic or being able to handle memory allocation failure.

This is simply incorrect. Most of the problem with unchecked overflow is for buffer overflows, which are fully caught. Rust gives options to handle memory allocation failure if you want to handle it. Generally though for most applications simply crashing is completely fine.
Ah, an artist.
https://youtu.be/ZbFM3rn4ldo
> Yes, I can never remember that.

Create aliases?
Starlink fought off Russian jamming attack faster than the military could
>The hardest part of coding is not technical or even getting the job, it’s liking the job.

You wouldn’t know you hate it until you really hate it.
> you will be fed the content until you convince yourself you have a “character trait”.

And who would benefit from that change in classification or public opinion? Health care providers, because why would e.g. the NHS or health insurance pay for therapy or medication or anything else that would help you for something that is "just" a character trait?

My girlfriend got diagnosed with ADHD in her 30's, but only because there was a very short-lived and quickly shut down (due to cost) program at the NHS for adult ADHD diagnosis. If she hadn't had that, she would never have been able to get a diagnosis or the relevant medication.
https://github.com/BurntSushi/xsv Can do at least some of these
Modern HN in a nutshell. Oh, wait.

All kidding aside: please people read the full article, there's enough in there to at least partially support the claim quoted by the OP. Just not in that first paper.
Strong 'old man yells at cloud' vibes here.

First, there's only 2 apps. Second, none of the terminals you're talking about is in Electron, and neither is cross-platform ( partially as a result). Fig isn't really a terminal for that matter.

So you're just ranting for ranting's sake without even understanding the subject?

As for what the market is, maybe they're trying to emulate Docker's switch to developer tooling and make money off enterprises buying team licenses. It's not the worst business model I've heard of, and could work if they get traction. And funnily that's where we get to the other part of your rant - telemetry. Without that data they have significantly lower chances of making it. I don't particularly trust their promises they'll make it opt-in once they've gained enough traction and data, but i think it's unfair to suggest they're collecting errors and usage patterns to sell that data ( which IMHO doesn't make sense, and they would need to warn users that's the case, thank you GDPR).
The information you have given is not good enough for to provide any useful advice. However, there are usually phases like this for everyone.
How do you begin to get paid for it without studying it first?
There's a lot that can be improved in the terminal experience, I think. Discoverability is a huge issue with CLI apps, for instance.
And then VLC does this weird freeze thing to catch up that can't be aborted, so if you accidentally type an extra zero into delay, good luck waiting for that to stop haha. Usually faster to just restart the damn thing.
Cyberduck?
It's unclear how you get all these properties "just" by using a blockchain, but there are already other threads pointing that out here.
probably because "GMO crops without tradeoffs" are a contradiction