ZOMDir > Blog

Monday, 23 June 2014

"IF THEN" but what "ELSE"

Recently I discovered a very stupid bug in the code of ZOMDir.com

The code was used to set a variable and was something like this:

if parentStr == "":
  newParentStr = newStr
else:
  # ParentStr isn't empty
  if newStr not in parentStr:
    newParentStr = addStrToParent(newStr, parentStr)

A better look at the code should have learned me that there is something wrong. The second if-statement doesn't have an else statement.

Oops in rare occassions the variable newParentStr isn't set and an Error is raised. 

Luckily I was the first one to find out. Even better, the solution is very simple. The second test isn't necessary at all. It was only required for some early testing. So the code is now:

if parentStr == "":
  newParentStr = newStr
else:
  newParentStr = addStrToParent(newStr, parentStr)

This is a better, isn't it? 

Hans

--
ZOMDir.com is a dynamic directory and a wiki
Everone is able to add a link in 10 seconds
To learn more view this Slideshare presentation

Monday, 16 June 2014

Bulk PageRank Checkers compared

Update March 2016. Pagerank checkers aren't relevant anymore. Google has removed the public Pagerank.

A long time ago a wrote about Pagerank checkers. Recently a Dutch SEO specialist became enthusiastic about PageRank at a Glance. So I thought it is time to take a look at the currently available Pagerank checkers.

In 2011 I didn't found bulk Pagerank checkers at all. Nowadays I have found the following 7 bulk Pagerank checkers:

The differences between these Pagerank checkers are relative small. My findings are:
From this three checkers, you have to try for yourself which Pagerank checker you prefer. It will not wonder you. I still prefer PageRank at a Glance.

--
ZOMDir.com is a dynamic directory and a wiki
Everone is able to add a link in 10 seconds
To learn more view this Slideshare presentation