Posted on June 26, 2009 by Atif
Filed Under Web Design
When it comes to designing websites, some works for inpiration is what everyone searches for. Though generally we dont steal the designs but still as a web designer everyone needs some websites for inspiration. If inspiration is not one needs then there is another bonus. Wouldn’t you like to get your website shown off on these galleries and also get a cool link back from there home page? Either may be the case I have listed out 15 cool CSS Galleries with great traffic and decorous Pagerank.
| PageRank |
|
7 |
| Alexa Rank |
|
11845 |

| PageRank |
|
6 |
| Alexa Rank |
|
18923 |

| PageRank |
|
5 |
| Alexa Rank |
|
22268 |

| PageRank |
|
7 |
| Alexa Rank |
|
33579 |

| PageRank |
|
5 |
| Alexa Rank |
|
32845 |

| PageRank |
|
7 |
| Alexa Rank |
|
25573 |

| PageRank |
|
5 |
| Alexa Rank |
|
34132 |

| PageRank |
|
5 |
| Alexa Rank |
|
53911 |

| PageRank |
|
5 |
| Alexa Rank |
|
76039 |

| PageRank |
|
- |
| Alexa Rank |
|
50560 |

| PageRank |
|
2 |
| Alexa Rank |
|
25575 |

| PageRank |
|
5 |
| Alexa Rank |
|
64802 |

| PageRank |
|
6 |
| Alexa Rank |
|
47505 |

| PageRank |
|
6 |
| Alexa Rank |
|
35066 |

| PageRank |
|
0 |
| Alexa Rank |
|
39172 |

So you want to run your local copy of wordpress with those pretty permalinks. But each time you change to pretty URls or permalinks you get a 404 file not found error. This is because you dont have mod rewrite enabled on your local web server. Mod Rewrite can be enabled in the httpd.conf file of Apache. This can be done with 2 ways, one easier and one harder. The harder one is to simple edit the httpd.conf file. We will see the easier way out. Just some mouse clicks will do the job if you have WAMP Server running on your computer.
First click on the little WAMPSERVER icon on the bottom right, and hover your cursor over Apache.

Now hover the mouse over Apache Modules, search for the rewrite_module and click on it. make sure it should be checked like in the picture. If it is already checked then the module is already activated.

That's done now the module is activated. Hold on its not finished yet. You need to restart Apache like shown below.

And now your wordpress permalinks should work without any problem.
Posted on June 14, 2009 by Atif
Filed Under PHP, Twitter
Got over 1000 followers on twitter? And you want to flaunt your twitter follower count proudly on your blog. The following PHP code is a PHP cURL code implementation to pull out the twitter followers using REST API. It will get you the number of followers on twitter using the cURL library. Just change the $screen_name and the script is pretty self explanatory. The code is tested working, You are free to do anything with this code, I take no responsibility further however you can ask me for support. I will try to help you out if I can.
NOTE: The code won't work for an hour if you 100 API calls per hours are completed.
<?
// get the number of followers
$screen_name = "atif089";Â Â Â Â Â Â // dont forget to chagne your username
$html = process("http://twitter.com/users/show.xml?screen_name=$screen_name");
// Parse the number of followers
$pattern = '<followers_count>(.*)<\/followers_count>';
ereg($pattern, $html, $matches);
// change this HTML as per your requirement
echo "<a href=\"http://twitter.com/$screen_name\">Follow me on twitter: (".$matches[1]." followers)</a>";
/**
* process : This method open a URL via cURL library
*
* @param string $url (must) This is the URL that you would like to open
* @param string $postargs (optional) Any arguments that you would like to send via POST method
*
*/
function process($url,$postargs=false){
$ch = curl_init($url);
if($postargs !== false){
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postargs);
}
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
?>
Posted on June 13, 2009 by Atif
Filed Under SEO
Getting indexed in Google is not at all hard (unless you have a website with some malware). Some people find it most difficult to get indexed in Google. (Trust me some people really do). So let alone SEO we shall first see how do we get indexed in Google. The following guidelines can really help you get in Google within a couple of days (usually within 24 hours).
- Create a Wordpress Blog - Trust me this is the best way to get indexed. Worked out for me many times, wordpress has an inbuilt ping Google functionality that can help you get indexed in a short time span.
- Write some content - Its somewhat hard to get a website, with as low as 2-3 pages to get indexed quickly in Google. So I suggest you write atleast 8-10 pages of content.
- Social Bookmarks - Tag and bookmark your website to popular websites and social bookmarks like Alexa, Stumbleupon, Digg, Del.icio.us and Technorati. Bookmarks on these websites get indexed daily and hence will your website get attention.
- Add URL to Google / Ping Google - add your URL to google and make sure you write the captcha properly so that they get to know a human has submitted this. http://www.google.com/addurl/
- Forums Postings - Write a small post about your website and post it on related forums. Once again this works same like the above step. Digitalpoint Forums tend to work good for me.
- Create a sitemap - Google encourages sitemaps, so why not you make one? If you dont know to do it, simple use this website http://www.xml-sitemaps.com/. Wordpress users can use this plugin http://wordpress.org/extend/plugins/google-sitemap-generator/
- Maintain Proper Links - Make sure all pages of your website are linked to each other so that the search engine spider can access and crawl all the pages that you want to get indexed.
- Google Webmaster Central - Add and submit your website and sitemap to Google Webmasters Central.
- Install Google Analytics - This step is not personally tested but but why not use it for tracking your visitors. May be Google Analytics can help get indexed too.
- A Backlink ? - If it is possible or under your budget, a backlink from a page with a PageRank of atleast 3 is quite enough to get indexed.
Posted on June 10, 2009 by Atif
Filed Under SEO
Hah! HTML 5 is viral. You see the tidings about HTML 5 on almost every Webmaster and SEO related blogs and forums. You get to see more and more website switching to HTML 5 and we also see exclusive directories of websites developed with HTML 5 markup. So HTML 5 is whirling th web. See the Google Treds chart for HTML 5.

If you already not know what has changed in HTML 5 have a look at my article Working with HTML5 – The Future of Web
Talking about SEO. HTML 5 is a boon for SEO. By implementing HTML 5 one can say that we can now allow seach engines to dissect and evaluate our pages more efficiently. Let us see how HTML 5 affects the SEO of a typical web page.
- The foremost thing is that the XML like structure. The HTML 5 markup is XML like structure, which is the most search engine friendly structure.
- Typically your web page consists of containers that are mostly <div> tags. be it your sidebar, your content, header or footer. making the search engine index complete page including text from headers and footers. Now you can let the search engine spider know what is your main content and what is your sidebar using the <section> <header> <article> and <aside> tags. The search engine spider would be able to index your content more efficiently
- Define your main content for the search engine to focus, using <article> </article> tag.
- The <header> and <footer> tags can tell define your page’s header and footer to the search engine. Aother good use of header would be to define a post’s meta content like title, date of publish etc inside an article.
- Embedded media like videos, and audio can be optimized well enough simply like this. <video> the alternate text or the search engine friendly text </video>
- So I would suggest you to keep you eye open on HTML 5 markup as this can seriously increase your SEO score. But the sad part is that there are still many browsers that do no keep them selves updated with the latest markup. So it may take years to practically implement HTMl 5 on your website if you don’t want to compromise with your traffic