Better HN
topnewbestaskshowjobs
Log inSign up

usrbinbash

4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions

Submissions

comment 4y ago · link · parent

> but you choose to redirect the pipe to a different location

The output doesn't go into a pipe however, the output goes to /dev/full. Redirection happens before the process is started, so the program is, in fact, writing directly to a file descriptor that returns an error upon write.

comment 4y ago · link · parent

Or it could be because its a topic that genuinely interests people, and why wouldn't it:

    * efficient
    * easy to use
    * well documented (docs not just extensive but readable)
    * many very useful features
All this making it great for many side projects, which is what a lot of people are very passionate about.

comment 4y ago · link · parent

White noise is fine and all, but nothing beats a good old 10h Server-Room Humming video.

comment 4y ago · link · parent

It's March, so it'll be more than 6 months before serious heating is required again in middle Europe...more than enough time to get Liquid Gas from the middle east.

Would that be inconvenient for Germany and other countries in the same region? Certainly. Rising prices, economic fallout, the whole thing will be very inconvenient.

But to Russias economy, it will be outright devastating, as production and sale of natural gas and oil are a major pillar of it's GDP.

The west has ways out of this, and the financial and structural resources to use them. Liquid Gas from the middle east to bridge the gaps, development of the Norvegian production as a middle-tier solution, and ultimately changing it's energy politics entirely to renewable energies, nuclear power (the latter includes researching fusion energy, which will become the dominant energy source at some point).

comment 4y ago · link · parent

> but for most users

Define "most users"

Most users who have to tackle actual big-data problems, meaning analysing things on the order of several TB or more?

Sure, they will absolutely benefit.

But there isn't just big data. There is also little data, where what is analysed is on the order of a few GiB or less, and everything in between.

I am not saying "use shell for everything!" I am saying "the right tool for the right job". A 15t excavator is probably not a good choice if I want to plant a small tree in my backyard, and a gardening shovel will probably not serve me well when I wanna start building a scyscraper.

comment 4y ago · link · parent

> What about if you had 500 petabytes of data to analyze?

Then we probably need the big tools.

> Big data does exist in the wild.

So does little data.

The problem is that a "one-size-fits-all" approach has become common, not just in data analysis; think of all the low-medium traffic webpages that use giant, complex frameworks and huge distributed systems just to display essentially a small CRUD app that would have been ALOT easier to cobble together in plain JS on a simple LAMP server.

What the article shows is the importance on deciding for the right tool for the job: When I want to plant a little tree in my backyard, bringing one of these https://upload.wikimedia.org/wikipedia/commons/0/01/Bucket_w... to dig the hole is proooobably overengineering it a tiny little bit, and will likely take longer than getting a shovel.

comment 4y ago · link · parent

How many sends are we talking about? Into how many messages is the data turned, how often does it get sent around?

If I send 1MiB of data by packing it up into messages of 10 byte each, it will ikely be slower than sending 10MiB in a single message. Messages == Overhead. Envelopes, packing, unpacking, parsing, assembling, etc. all eat up cycles.

comment 4y ago · link · parent

> That isn’t true with custom data pipelines written in shell scripts.

Why not? Cron can schedule jobs, the documentation for standard shell tools is among the best, almost every developer can handle bash scripts, Logging can be done via syslog.

comment 4y ago · link · parent

By shutting down hosting a links-only-page, at one provider, in one country, and that only if they win in court and no higher court overrules the decision?

comment 4y ago · link · parent

Low Fi electronic music, white noise (Serverroom, Coffeeshop Noises, that kinda thing), Classical music.

Depends on my mood and the kind of task.

comment 4y ago · link · parent

Can't imagine it's hard to find a hosting provider in one of the other 194 countries.

comment 4y ago · link · parent

> do they really think the sanctions would lift

They know they won't. They know that the opposite would happen.

Just one consequence of using a nuclear warhead in a war of aggression: Complete economic isolation. No one in the western world would do business with them for decades to come, and no one who wants their business with the western world to continue would either.

Just one small example of what such isolation would mean for Russia: Europe would cut off all gas and oil trades. Would be difficult for Europe, but in that scenario, not impossible to bear. For Russia however, that's 40% of the GDP gone, just like that.

comment 4y ago · link · parent

So, what is the point of this again?

Even if they win, what would it remove? A website, which essentially just hosts some links to github. Within German jurisdiction only. So it would probably be up and running from a different provider within a day or two. And the repository itself would remain completely untouched anyway.

comment 4y ago · link · parent

Compared to the over-crufted, over engineered, designed-for-phone, low-information-density, cr4p I get served on many "western" websites, where I am happily invited to download a gazilion MiB of adware and feel my phones battery running hot just to access a website, I prefer the asian design philosophy.

comment 4y ago · link · parent

I'll just quote my own answer from elsewhere in this thread:

    Even if such a device needs to be used, decoding ascii is a trivial lookup operation, 
    not remotely comparable to decoding some arcane binary format, or a convoluted XML-
    derived format such as they are used in WYSIWYG editor formats.

comment 4y ago · link · parent

> but out of the box it can’t.

Even if such a device needs to be used, decoding ascii is a trivial lookup operation, not remotely comparable to decoding some arcane binary format, or a convoluted XML-derived format such as they are used in WYSIWYG editor formats.

Yes, text relies on an encoding standard. So do numbers btw. (big/little endian, 2s/1s complement, sign/magnitude, floating-point representations), element enumeration (0 vs 1 based indexing) and even boolean logic (eg.: 0 is true in bash, everything else is false)

At the end of the day, computers represent only 2 states: On and Off. Everything beyond that, needs an encoding.

And some of these encodings are, at this point, both so universal and simple, that they can be considered as much a standard of the IT world, as 0 and 1. ASCII is one of those.

comment 4y ago · link · parent

> that there's no such thing as "plain text"

Please show me a computing device that cannot deal with ASCII.

And UTF-8 has, by now, reached a level of ubiquity that encompasses almost everything in IT as well.

comment 4y ago · link · parent

Other advantages: They are trivial to compress, and work nice with version control.

comment 4y ago · link · parent

Dev: "I want to use open source".

Boss: "I'm not sure..."

Dev: "It's free."

Boss: "Sold."

comment 4y ago · link · parent

> You should be using the css prefers-color-scheme media query

Problem is, this doesn't always work;

https://forum.manjaro.org/t/google-chrome-not-in-dark-mode/8... https://forum.manjaro.org/t/why-media-query-always-choosing-...

Editing config or .desktop files to work around such issues may be an option for experienced user, but even speaking from such a users perspective, I would much prefer a webpage to offer me a simple button or checkbox.

comment 4y ago · link · parent

> IMO there's significant complexity in building a feature-rich frontend client.

Doing complex things is always complex, but when SIMPLE things are complex, then something is going very wrong.

And this is exactly where we are with most JS frameworks these days. Layer upon Layer of abstraction, and instead of the complexity the dev has to deal with decreasing as a result of it being abstracted into frameworks offering simple interfaces, complexity increases.

comment 4y ago · link · parent

The comment is primarily about other countries governments and their wide lenience toward Putin, not about the Russian people. Without such leniency and appeasement (usually in the name of the oh-so-important "good economic relations"), no autocratic system can exist for long in todays world.

comment 4y ago · link · parent

History is full of examples for how letting a dictator run a country for a prolonged period of time will come back to bite the people in the behind.

comment 4y ago · link · parent

> I wish there was an alternative that gave a nod to vim but remained in 'input' mode without loss of capability

Problem is, without modes, we lose capability that comes from the fact that modes exist, such as simple characters being compositeable commands;

How should a non-modal editor know whether that [d] I just pressed is me wanting the letter `d` or the delete command? It can't;

Either I have to somehow tell it "the next letter I press is to be interpreted as a command", or "interpret what I press as commands until I say otherwise". The former gets tiresome rather quickly (what if I have to do several commands?), the latter would again be a modal editor.

comment 4y ago · link · parent

Muscle memory. It feels clunky at first, especially when coming from a non-modal editor, but I hardly realize I am even doing it any more.

comment 4y ago · link · parent

> it is a general question

As a general answer: As far as I know, there is currently no exact scientific method to measure and determine the age of a person.

Certain techniques can give more or less rough estimates, however a precise technique that works for all age groups is tricky.

The following article is from 2014, but gives a good glance at several existing methods and directions of research.

https://www.vox.com/2014/10/20/6939271/age-test-aging-epigen...

It should be noted, that many techniques in this area are invasive, requiring blood/tissue sampling and/or exposing a person to ionizing radiation (XRays), which makes them prohibitive in many scenarios.

comment 4y ago · link · parent

There is a difference between production and distribution, and simply generating lots of feedback.

comment 4y ago · link · parent

The thing about "non-custodial-money": Unless someone is willing to literally hide a small fortune under his mattress, there is really no such thing;

What's most peoples primary source of money? Jobs. How are these jobs paid? Usually as a wire transfer to some bank account. Custodial Money.

Sure, someone could go to the ATM every payday and then actually hide the money. But this comes with lots of serious drawbacks: physical cash can be damaged, stolen, even forgotten. The Blorkchain is only the digital form of the mattress; drives can get damaged, hacks can happen, keys can be forgotten. Plus, with its volatility, even if no catastrophe strikes, it may well be that the money lost a lot of its worth at the point when it's needed.

comment 4y ago · link · parent

The name got me thinking...what would we call the language used to program a Jacquard Loom?

comment 4y ago · link · parent

> At some point, high tech will be replaced with low-tech solutions that take less energy and less maintenance.

Low-Tech does not automatically lead to a reduction in maintenance and energy required.

Example: The electrical train systems of today are safer, more energy efficient and require less maintenance than their steam driven ancestors.

Another example; Todays circuits require orders of magnitude less energy and maintenance than those built with electromechanical relais or vacuum tubes.

Technology declines as a result of major catostrophes, be they socio-economic (like the fall of ancient empires) or as a result of natural catastrophes.

1
404142
57