Live data from Hacker News

Find a good available .com domain

sive.rs

51–60 of 301 posts

Re: Find a good available .com domain

#52
post #39

Earlier quoted context omitted.

I don't agree with the whole 'useless use of cat' meme: cat creates an output stream, which in turn allows you to build up the subsequent command bit by bit and allows you to cut and past chunks from useful building blocks you keep in a file. The first command changes all the time so by using 'cat' those blocks remain reusable, everything will use the piped input that cat sends if there is no preceding program, rathe…

It's possible to avoid `cat` and still keep the filename separate from the rest of the command by placing the redirection at the start of the command: It might look a little odd, but it's portable.

I don't know about you, but I usually like seeing what's in the file before I spend time writing a awk command on it.

    cat myfile.txt                   # check the file because I'm not even sure that's the correct name
    cat myfile.txt | awk blablabla   # no I didn't forget awk syntax, I swear
I would be afraid of any person that after this, goes back and rewrites the beginning of the line to replace cat with a redirection.

Even with "ctrl-a alt-d < alt-f alt-f ctrl-d ctrl-d ctrl-e" that replaces cat with < and removes the pipe, which any emacs user can pull off in it's sleep

Re: Find a good available .com domain

#53
post #43

Earlier quoted context omitted.

I don't agree with the whole 'useless use of cat' meme: cat creates an output stream, which in turn allows you to build up the subsequent command bit by bit and allows you to cut and past chunks from useful building blocks you keep in a file. The first command changes all the time so by using 'cat' those blocks remain reusable, everything will use the piped input that cat sends if there is no preceding program, rathe…

Totally with you there. "Useless use of cat" is usually good practice, not bad. It's clearer - the structure indicates right at the front what it is going to do, namely read a file and pass it through a pipeline. There is no need to read ahead to find out what the source material is. It's safer - "cat" is a read-only operation, once you've written that command up-front there is no longer a risk of overwriting the ori…

"It's safer - "cat" is a read-only operation, once you've written that command up-front there is no longer a risk of overwriting the original file with a typo in the rest of the pipeline."

With zsh you can prevent such accidents by "setopt NO_CLOBBER"

The result is that if you "foo > bar" and "bar" exists, zsh will refuse to overwrite "bar" and give you an error: "zsh: file exists: bar"

This makes constructs such "foo baz" perfectly safe, because accidentally typing "foo > bar > baz" will error out when "bar" (or "baz") already exists.

(PS: if you want to force zsh to overwrite the file even when NO_CLOBBER is set you can "foo >| bar")

Re: Find a good available .com domain

#54

A tip I discovered - use hyphens, and suddenly very small nice domains become available. No one types domains anyway. Also does anyone know how to get a shady domain parking service to give up on a domain they’ve been holding for decades? I’m actually happy to pay 500 but not thousands and it’s not even a domain that a company or commercial interest would want to purchase.

> use hyphens, and suddenly very small nice domains become available.

Bad idea. The owner of the corresponding domain without hyphens might steal your visitors.

Re: Find a good available .com domain

#55

A tip I discovered - use hyphens, and suddenly very small nice domains become available. No one types domains anyway. Also does anyone know how to get a shady domain parking service to give up on a domain they’ve been holding for decades? I’m actually happy to pay 500 but not thousands and it’s not even a domain that a company or commercial interest would want to purchase.

You get a good and potentially expensive com domain for easy of use and not landing in spam folders. I prefer *.io domains for non critical things.

The renewal fees for .io domains are a scamola. Last I checked it was $50+/year.

Re: Find a good available .com domain

#56

> If you’re on Mac, Linux, or BSD, you should have a dictionary of words at /usr/share/dict/words Why do they come with a dictionary of words?

Spell checker is an obvious use case. You can then add terms to the system dictionary and now they're valid systemwide in all apps that use the dictionary for spell checking!

Re: Find a good available .com domain

#57
post #35

Earlier quoted context omitted.

:) I'm thinking of branding - think Google, Pepsi, Adidas, Nike, Starbucks You'd really prefer to attempt build a brand around SearchEngine.tld or RunningShoe.tld ?

Booking.com would like to disagree.

and Hotels.com

Re: Find a good available .com domain

#58
post #34

Unfortunately not every domain that has no DNS record is available for purchase: some people configure no records, others are reserved by the registry (many short words for nTLDs). If something isn't in the DNS zone you can do a live DNS and WHOIS check to be more certain. A while back I tied together this DNS zone + live false positive check into a website (for all TLDs and with price info): https://domain.garden AW…

Congrats! The interface is just super neat, how it gets updated when you hover (I imagine it caches the information about that specific domain for the next user).

Re: Find a good available .com domain

#59
post #43

Earlier quoted context omitted.

Totally with you there. "Useless use of cat" is usually good practice, not bad. It's clearer - the structure indicates right at the front what it is going to do, namely read a file and pass it through a pipeline. There is no need to read ahead to find out what the source material is. It's safer - "cat" is a read-only operation, once you've written that command up-front there is no longer a risk of overwriting the ori…

"It's safer - "cat" is a read-only operation, once you've written that command up-front there is no longer a risk of overwriting the original file with a typo in the rest of the pipeline." With zsh you can prevent such accidents by "setopt NO_CLOBBER" The result is that if you "foo > bar" and "bar" exists, zsh will refuse to overwrite "bar" and give you an error: "zsh: file exists: bar" This makes constructs such "fo…

That doesn't help with sed -i and similar things.

Zsh stops redirection errors, it won't help even if cat is in the front.

Re: Find a good available .com domain

#60
post #13

I love the comment that someone dropped on the post. One could replace the first Ruby script by a one-liner: "cat /tmp/com.txt | awk '{ print substr($1, 1, length($1) -5) }' | uniq > domains.txt"

Classic useless use of cat?

my initial reading was that they were adding 'cat' as a prefix to everything...
Post reply on HN