Blogging for fun and profit http://www.polirant.com No-Follow - DoFollow : Who Cares? Mon, 15 Dec 2008 17:22:03 +0000 http://wordpress.org/?v=2.6.3 en Joomla: “Error loading Modules” http://www.polirant.com/2008/12/joomla-error-loading-modules/ http://www.polirant.com/2008/12/joomla-error-loading-modules/#comments Mon, 15 Dec 2008 17:22:03 +0000 admin http://www.polirant.com/?p=15 I’ve been playing with the generic and useless message generated by Joomla 1.5.8 : “Error loading Modules
This problem appeared while using Jumi, a Joomla plugin enabling custom scripts and file inclusion into articles, to include a php script which performs several sql queries.
I used Joomla + Jumi for a long time, without any problem. Now that I’ve moved from a Godaddy Shared Hosting to a Godaddy Virtual Dedicated Server, this problem has appeared.
What the hell was causing that weird message? And why no modules were showing in my page?
After wasting lot of time googling, I realized something with the MySql connection wasn’t fine.
I tried modifying all settings in my.cnf with no luck, I rewrote the script, I reinstalled Jumi… Nothing!
Before giving up, I looked into the php.net manuals.
HEY, FOUND THE PROBLEM!
Mysql has a “weird” behaviour: if you open 100 connections to 100 different databases in the same server, MySql uses the same connection id for each connection!
So if you do
$db1 = mysql_connect($host, $user, $pass);
$db2 = mysql_connect($host, $user, $pass);
mysql_select_db(’db1′, $db1);
mysql_select_db(’db2′, $db2);
you get a race condition: only db2 is selected.
That’s why my modules didn’t show !

What to do?
My workaround to fix the “multiple connections problem” with MySql is the following:
$host1 = “localhost”;
$host2 = “127.0.0.1″;
$host3 = “127.0.0.1:3306″;
$host4 = “localhost:3306″;
$db1 = mysql_connect($host1, $user, $pass);
$db2 = mysql_connect($host2, $user, $pass);
$db3 = mysql_connect($host3, $user, $pass);
$db4 = mysql_connect($host4, $user, $pass);

Hope it helps!
Any comment is welcome!

]]>
http://www.polirant.com/2008/12/joomla-error-loading-modules/feed/
Dofollow Blogs List - Directory http://www.polirant.com/2008/11/dofollow-blogs-list-directory/ http://www.polirant.com/2008/11/dofollow-blogs-list-directory/#comments Fri, 14 Nov 2008 13:42:48 +0000 admin http://www.polirant.com/?p=11 As most of you already know, Google uses a complex algorithm to decide which website will appear first for a given search.
In this algorithm one of the variables is the Page Rank, a number in the range 0-10 whose value is determined by the number and the quality of incoming links.
For years building backlinks to increase Page Rank was easy: it was enough to leave comments on blogs to get an easy one-way link to your website.
Now the default behaviour for blogs like Wordpress is to append an attribute which will tell Google not to follow those links: the REL=”NOFOLLOW” attribute.
Luckily there are lot of blogs out of here which let you leave comments without the NOFOLLOW attribute: those are called DOFOLLOW BLOGS. Building backlinks for free is still possible.

DOFOLLOW BLOGS LIST - List of blogs allowing you to insert a link to your website without using REL=”NOFOLLOW”.
I have created an empty directory: DOFOLLOW BLOGS LIST : add your blog if it uses the DOFOLLOW plugin! I will check each submission manually!

]]>
http://www.polirant.com/2008/11/dofollow-blogs-list-directory/feed/
Blogging for fun? Or Blogging for profit? http://www.polirant.com/2008/11/blogging-for-fun-and-profit/ http://www.polirant.com/2008/11/blogging-for-fun-and-profit/#comments Sat, 08 Nov 2008 13:03:20 +0000 admin http://www.polirant.com/?p=3 I see hundred of persons enjoying blogging.

Yes, blogging is really funny.
The real problem is that blogging has become a real job for most people. A JOB WITHOUT INCOME.
They spend hours every day to write “interesting” posts. No one care about what they write, they simply HAVE TO write something each day, or they won’t be considered real bloggers.
Don’t expect me to post every day.
I am starting this blog for fun, trying to post something interesting and original.
If this blog will become popular, and thus will generate income, I’ll post every day..
This is only an introduction, not interesting post.
In next post I am discussing about the new big deal in the blogs world..

NEXT: rel=”nofollow” NO-FOLLOW — DO-FOLLOW - SPAM - PAGE RANK: what to do? Who cares?

]]>
http://www.polirant.com/2008/11/blogging-for-fun-and-profit/feed/