Live data from Hacker News

Dt: Duck tape for your Unix pipes

dt.plumbing

121–130 of 162 posts

Re: Dt: Duck tape for your Unix pipes

#121
post #26

Earlier quoted context omitted.

That is not what the thing you quoted says, or even correct. All duct tape is made of fabric and it is… well duct tape, so ducts were the intended use case when the name was created. Duct tape has kinda become a general term for all cloth-based tapes though, so you can indeed find duct tape not intended for ducts, but the fact the name was originally “duck tape” has nothing to do with that.

Nope, duct tape is for ducts and can't be made of cloth because the water would clearly seep through the cloth. There are strings in duct tape but not cloth. The part I quoted says that duck tape is made of cloth and therefore is not duct tape. I think people get confused because there is a brand of duct tape named Duck Tape. But even the Duck Tape packaging calls it a "duct tape".

> Nope, duct tape is for ducts and can't be made of cloth because the water would clearly seep through the cloth. There are strings in duct tape but not cloth.

I am sorry, but you are wrong. The term duct tape is specifically referring to “Duct tape: cloth- or scrim-backed pressure-sensitive tape, often coated with polyethylene.” We don’t even need to argue if it is good for use in ducts, it is not, I agree. However, that isn’t what we are discussing here. From Wikipedia: “The ultimate wide-scale adoption of duck tape, today generally referred to as duct tape, came from Vesta Stoudt. Stoudt was worried that problems with ammunition box seals could cost soldiers precious time in battle, so she wrote to President Franklin D. Roosevelt in 1943 with the idea to seal the boxes with a fabric tape which she had tested. … [Johnson & Johnson’s] new unnamed product was made of thin cotton duck coated in waterproof polyethylene (plastic) with a layer of rubber-based gray adhesive (branded as "Polycoat") bonded to one side. It was easy to apply and remove, and was soon adapted to repair military equipment quickly, including vehicles and weapons. This tape, colored in army-standard matte olive drab, was widely used by the soldiers. After the war, the duck tape product was sold in hardware stores for household repairs. The Melvin A. Anderson Company of Cleveland, Ohio, acquired the rights to the tape in 1950. It was commonly used in construction to wrap air ducts. Following this application, the name "duct tape" came into use in the 1950s, along with tape products that were colored silvery gray like tin ductwork. Specialized heat- and cold-resistant tapes were developed for heating and air-conditioning ducts.”

> The part I quoted says that duck tape is made of cloth and therefore is not duct tape.

The part you quoted doesn’t say that at all. The part you quoted says “She is often misattributed as the inventor of duct tape. However, numerous variations of adhesive cotton duck tape had existed for decades, nor did she invent the specific formulation of the popularized duct tape.” Did you quote the wrong thing? It’s simply saying that the duct tape Vesta Stoud developed was not the final product we know today, nor was she the first to come up with the idea.

> I think people get confused because there is a brand of duct tape named Duck Tape. But even the Duck Tape packaging calls it a "duct tape”

I honestly can’t keep track anymore.

Re: Dt: Duck tape for your Unix pipes

#122

Earlier quoted context omitted.

Or like "Apple" as a brand name for... nevermind

ever since i read the story about the "Max Headroom" guys about how they picked their name (because it was written at the entrance of every parking garage) i think the best way of naming a company is to make it something that is said hundreds of times by people every day "an apple a day" etc... wonder if I can name my comapny "the The company" or "the corporation of Is" haha

If Max had been killed by a train, he would have taken the name, "Mind the Gap" or perhaps just the very appropriate, "Mind Gap".

Re: Dt: Duck tape for your Unix pipes

#123

Earlier quoted context omitted.

They are not the same thing. https://www.findtape.com/videos/gaffers-tape-vs-duct-tape/v5...

I'm talking about how the term was used in the studios I was exposed to. Even in that article, the two definitions are very, very close to being the same thing, and in the studios I was familiar with, both of the tapes the article defines would have been referred to as "gaffer's tape". They're just different varieties of gaffer's tape. It's all just slang, though, so I'm not surprised that the definition varies from…

Just ask KaTe Bush.

Re: Dt: Duck tape for your Unix pipes

#124
post #25

This article links to https://en.wikipedia.org/wiki/Vesta_Stoudt , which links to https://en.m.wikipedia.org/wiki/Cotton_duck , which explains that the word "duck" here comes from the Dutch doek , or "linen canvas".

TIL that " duck tape" is actually the correct/original version, and " duct tape" is a modern derivative. I had always assumed it was the other way round, and some people simply don't know what a duct is so they substitute a similar-sounding, more common word.

It would be amusing if this were merely an elaborate citogenesis hoax and the original name was indeed "duct tape", but we're all being gaslighted now.

Re: Dt: Duck tape for your Unix pipes

#125
post #27
post #16

Nushell has filled this void for me. It elevates pipes by structuring them into lists or tables. It has all sorts of goodies for manipulating those data structures like inserting/updating rows and cells, better string interpolation, useful utility functions like case transformation, and more.

Agreed. Nushell fulfills the Unix philosophy promise that the standard Unix tools have been breaking since forever. Traditional Unix commands feel like a hodgepodge of hacks by comparison, that only work together occasionally, and even then mostly by accident.

The “Unix philosophy” is whatever the writers philosophy is - it has no real meaning

Re: Dt: Duck tape for your Unix pipes

#126

I either use Bash (which is actually a decent programming language if you spend the time to learn it properly) or Python.

> Bash (which is actually a decent programming language)

How so? I tried to seriously learn Bash a few days ago, and once I learned about word splitting, [[ ]] vs. [ ], "${MY_VAR}" just to properly reference a variable it seemed even more full of technical debt that Wat-full [1] Javascript. I figured it would be obsoleted by a modern shell language alternative by the time I will be 30 (currenty 18), it's not worth it, and gave up. I think the bar should not be Turing completeness for a programming language to be decent.

1: https://www.destroyallsoftware.com/talks/wat

Re: Dt: Duck tape for your Unix pipes

#127
post #109

Earlier quoted context omitted.

The painful part of all this is that there were and still are actual record separator and field separator characters in ASCII. ASCII was perfect for table output. All tools had to do when outputting is use the standard existing characters when no TTY is detected, else use tabs/spaces and newlines. I always wondered why no one uses the ASCII rs and FS codes.

How would you deal with a tree?

Newick trees

https://en.wikipedia.org/wiki/Newick_format

Re: Dt: Duck tape for your Unix pipes

#128
post #16

Nushell has filled this void for me. It elevates pipes by structuring them into lists or tables. It has all sorts of goodies for manipulating those data structures like inserting/updating rows and cells, better string interpolation, useful utility functions like case transformation, and more.

Isn't this what powershell tries to do,with the difference that it's structured objects being passed instead of tables?

Re: Dt: Duck tape for your Unix pipes

#129
post #79

Earlier quoted context omitted.

Yeah, the examples are focused on dt’s internal state and features. A few real world practical examples of what you can do with it would be much better.

For example I am trying to figure out how I would split each line on a delimiter. I cant figure out what the syntax is dt [ "," split ] pls prints split dt [ "," split ] map pls prints stack underflow I think I could definitely use this if it had better docs and I could figure out how to.

I don't know what that is intended with that, but for simple line splits I'd use awk, which is typically everywhere, and its parameter -F (F there stands for field separator) that is, given the file L with the lines

   hello,world,one
   maybe,baby,you
awk -F, '{ print $2 }' L

should give

   world
   baby
(tested on https://busybox.net/live_bbox/live_bbox.html )
Post reply on HN