<!doctype html>
<html>
  <!--
  Hello, This is Muhammet, I am a product oriented from-scratch
  web-developer. It's my hobby to think about new ideas and
  implement prototypes.

  Some of the things I like: Python (Django/Flask),
  Linux, Emacs, Restful Services, Data Science (R/Python),
  Html, SASS, Javascript (React/Jquery) and Sketch.

  PS. Yes you are reading the source markup of the page you are
  looking at. If you want to learn the details look at the repo
  @ https://github.com/jeffisabelle/my-blog-engine-2
  -->
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- higlight.js styles -->
    <link href="/static/css/highlight/solarized-dark.css" rel="stylesheet"/>
    <!-- fonts -->
    <link href='https://fonts.googleapis.com/css?family=Actor|Advent+Pro:400,300,500,600,700' rel='stylesheet' type='text/css'>
    <!-- font-awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <!-- animate.css -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.4.0/animate.min.css">
    <!-- main -->
    <link href="/static/css/main.css" rel="stylesheet"/>
    <title>Muhammet Can :: Cool Domains with A Little Bit Hack</title>
  </head>
  <body>
    <div id="left-container">
      <pre><code></code></pre>
    </div>
      
    <div id="profile">
      <div class="container-fluid">
        <div class="row">
          <div class="col-xs-12">

            <div class="avatar">
              <del>my awesome picture</del>
              <img alt="" src="/static/img/thuglife.png"/>
            </div>
            <div class="nav">
              <ul>
                <a href="/">
                  <li>home</li>
                </a>
                <a href="#"> <!-- implement later -->
                  <li>projects</li>
                </a>
                <a href="#"> <!-- implement later -->
                  <li>about</li>
                </a>
              </ul>
            </div>
            <div class="social">
              <a href="https://tr.linkedin.com/in/muhammetcan" target="_blank">
                <i class="fa fa-linkedin-square l"><del>linkedin</del></i>
              </a>
              <a href="https://github.com/jeffisabelle" target="_blank">
                <i class="fa fa-github-square l"><del>github</del></i>
              </a>
              <a href="https://twitter.com/jeffisabelle" target="_blank">
                <i class="fa fa-twitter-square l"><del>twitter</del></i>
              </a>
            </div>
          </div> <!-- /profile -->
        </div> <!-- /col-xs-12 -->
      </div> <!-- /row -->
    </div> <!-- /container -->
  
    <div id="right-container">
      <article class="animated fadeInRight">
        <!-- dont put the source of actual blog here.
        ugly markup makes it hard to follow. -->
      </article>

      <div class="container">
        <div id="disqus_thread"></div>
        <noscript>Please enable JavaScript to view the
          <a href="http://disqus.com/?ref_noscript">
            comments powered by Disqus.</a></noscript>

        <a href="http://disqus.com" class="dsq-brlink">comments
          powered by <span class="logo-disqus">Disqus</span></a>
      </div>
    </div> <!-- /right-container -->
  </body>

  <!-- jquery -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
  <!-- highlight.js -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.0.0/highlight.min.js"></script>
  <!-- bootstrap.js -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/js/bootstrap.min.js"></script>
  <!-- main.js -->
  <script src="/static/js/main.js"></script>
</html>

Cool Domains with A Little Bit Hack

I hate domain business. I honestly do. Every single time I come up with an idea, I instantly look for a domain that is catchy enough and suitable for the project. But it usually end up already taken or listed as premium for 1000$. I hate those premium domains.

Domains like getmyapp.com, usethis.com or thefacebook.com seems weird to me too.

You want advice?
drop the 'the'. just facebook. it's cleaner.

Well, dropping THE is not cheap either. But dropping .COM is a more viable option today. There are bunch of ccTLDs to choose from. However it is not easy to check for bunch of registrar if the domain is available. Forget checking, it is even difficult to think a meaningful domain.

So, I tried to find a way to look for domains programmatically. Turns out it is just 20 lines of python code, with the power of gnu/aspell and some shell commands.

Here is the script that tries to find meaningful domains that has 3-7 length & ends with .ly

  
import shlex
from subprocess import Popen, PIPE

extension = "ly"

egrep_regex = "egrep '^\w{3,5}" + extension + "$'"
aspell_command = shlex.split("aspell -l en dump master")
egrep_command = shlex.split(egrep_regex)

p1 = Popen(aspell_command, stdout=PIPE)
p2 = Popen(egrep_command, stdin=p1.stdout, stdout=PIPE)
p1.stdout.close()
output = p2.communicate()[0]

for domain in output.split("\n"):
    domain = domain.replace(extension, "." + extension)
    p3 = Popen(["whois", domain], stdout=PIPE)

    if "not found" in str(p3.communicate()[0]).lower():
        print "the domain " + domain + " seems available"    
  

This code will print over hundreds of possible domains that actually has a meaning in the dictionary. At first sight, I can see the available domains like awful.ly or evil.ly

You can force aspell to use another language if you want. Just pass appropriate language prefix after -l parameter.

It is also possible that, there might be registered domains which returns `not found` to whois requests. But I couldn't find a better way to check if a domain is registered. Please leave me a comment if you have better idea!


as Pritam Baral commented, the shell version is way simpler.

  
for domain in $(aspell -l en dump master | egrep '^\w{3,5}ly$')
do
    domain=$(echo $domain | head -c-3).ly
    if whois $domain &>/dev/null
    then
        echo "the domain $domain seems available"
    fi
done
  

comments powered by Disqus