Imthiaz Blog

me and stupid works….!!!

i-mate jasjam

It had been really long time since I posted something good. Too much work at office and everyday is exciting with lots of challenge. Learning a lot these days. I was playing around with lot of stuffs in Ajax. Got a new i-mate jasjam pda. It is really cool with lots of features. Its really good for people who are always in move. For people like me ;-) to experiment and to program with new technology and provide good solution to people.

i-mate jas jam

It looks really magnificent and it is load with these features

  • 3G Windows Mobile 5.0
  • 400MHz Samsung CPU
  • 2.0 MP Camera
  • 128MB ROM / 64MB RAM
  • 1350mAh Battery
  • MP3/Video PlayerGSM
  • /GPRS UnlockedTri
  • -Band UMTSQuad
  • -Band GSM
  • UMTS/EDGE/HSDPABluetooth
  • v2.0
  • Wifi 802.11b/gMicro
  • SDInternet
  • ExplorerPocket
  • OutlookPocket
  • WordPocket
  • ExcelPocket
  • Powerpoint

I was able to sync my outlook and pda and all my contacts are up to date. I was able to configure wifi and use the pda like a normal laptop. Browse site, POP3 mails, MS Exchange, MSN, etc etc.. But not to that level of a laptop ;-).

I was browsing my blog using my pda and believe me it sucks majorly. So I am planning to write a small plugin which can enable any pda users to browser my site. At least read the crap that I am posting ;-)

I hope there are so many blogger who wish to make their site pda or mobile friendly. Please welcome me to the community of pda users ..!!!!!

PHP Ajax Manual

I wanted to do something with Ajax for a long time. So I decided in doing an Ajax based php manual. Then I discussed this idea with my colleague Shuja and he was also interested. So this weekend I did a very basic stuff and put it online. As I said it manual is very basic and loads the website using Ajax. In few more days I mean by next week end we might add more features to the same.

Online demo: PHP Ajax Manual

Screenshot

Ajax Manual

SEO - Webpage/Robots/Spiders

What are the importance steps we have to do in order to optimize a single page in a website? Do we have to optimize only the homepage or all the pages of the website? How can we focus on particular keyword for the website? Wow that’s lot of question to be answered. There are so many questions that will arise when you really start doing SEO for a website.

The important steps that has be considered serious in optimizing a webpage are

  • Proper title for the page in the header section
  • Page title again in the body of the page with header tags h1,h2 etc
  • The body of the page should have rich content based on the title of the page.

I think so the above points are the basic stuff that has to be followed while doing any decent website. It is always better to have all the pages in the website optimized. No SEOs has ever optimized all the keywords he wants to target in homepage of the website. In-fact it not a good practice to do that and it is not possible. Distribute your keywords to be focused in different pages and concentrate it better.

I know you think I am really mad!!! Now what is search engine spider bots? What does it do? Who sends them? Why they send them? What is benefit of spider bots visiting a website? How often do these bots visit a website? What are the parameters that control the frequency of the visit? Will more visit by these bots benefit the website or vice versa?

Search Engine Robots

Search engine spiders are software designed to get the webpage and save them to the search engine database. These are sent by the search engines like Google, MSN, and Yahoo etc. They send these bots to retrieve the information present in your website and save the same in their database for them search and give results. The benefit of bots visiting your website will be your site will be included while search engine performing a search. And chances are there for your website to appear in the search. One cannot really predict how often these bots comes to the website. For some it comes every few minutes for some it may takes months. The parameter that controls the frequency of the bots visiting your site will be based on the fresh content, site popularity, etc. It is good if the bots comes more often to the website. It means your website is given more importance and search engine will always keeps your site index up to date.

All spiders/robots obey one thing called robots.txt. Please read this if you wish to know more about how to write your own robots.txt file. Sorry I can really feel that I am jumping like monkey here and there. I am not good at writing anyway..!! More to come… ;-)

Search Engine Optimization Dubai

What is wrong with me? why did I choose the title of the page as search engine optimization Dubai? Oh in my previous post I have told I will be writing something about search engine optimization. Yes let me start something about it ;-). I am not sure how it might work for others, let me just share what worked out for me.

Search Engine Optimization

Wow..!! That’s a lot of search engine out there. If you see the picture above the search engines are placed by popularity and by use. In the center you can see the most outstanding player in search engine market Google. Next Yahoo, MSN, Dmoz and so on. Its is not that the other search engines listed in outer circle are bad, but those are not used by the users compared to others.

Okay let me come to point. What is search engine optimization?. It is nothing but set of techniques used by the webmaster over a website to improve the ranking in search results. The person who is doing this is called SEOs. There are lot of benefits in optimizing a website for search engine like good publicity, new visitor and good business. Trust me some online companies forgot how normal online business work and they just relay on optimizing the website for search engine. Few of them are successful and most of them are not.

Some of the most common words used in SEO

  • Keywords - the search terms you would like to concentrate on
  • PageRank - popularity of your website among other website
  • Ranking - the position of search result for a particular keyword

I think with these basic information we can start off. I will discuss more in detail in my next article…!! Till then have fun!!! ;-)

Install Subversion and Trac on windows

It was an interesting day since I successfully installed subversion and trac on my home computer in windows. Wow it was much simple than I expected. Be careful subversion does not have binding for python 2.4.x I wasted couple of hours on that. So just follow the in instruction as it is in this page.

http://trac.edgewall.org/wiki/TracOnWindows

It was good fun having a subversion on my computer. Hereafter I can have proper code repository with all change I made :-D.

Subversion trac

I have addes wordpress organizer plugin to my subversion repository and above you can see the screenshot. Its really cool and I am really excited :-P

Extending Wordpress - the actual power

I am wondering how many people have really used the actually power and extensibility of the great Wordpress. The more time I spend with it reading the code I come to know Wordpress can be extended into a powerful cms. Trust me Wordpress is not just blogging software and it’s more than that.

I know Wordpress can be extended to any complex cms without changing a single line in the Wordpress core. The more I dig the Wordpress I feel really stupid for writing such poor code in Organizer plug-in. There are two ways by which you can extend your Wordpress namely plug-in and themes.

I have used so many so many open source cms. But I just love to write a plug-in for Wordpress for its simplicity and power. Long back I wrote in my blog that I want to bring smarty in Wordpress. One good thing with smarty is when you code a big project it is very easy to handle the templates for you.
[php]

< ?php
/*
Plugin Name: PluginSmarty
Plugin URI: http://imthi.com/#
Description: This is simple plugin to use smarty for backend.
Author: Imthiaz Rafiq
Version: 1.0
Author URI: http://imthi.com/
*/

class pluginSmarty{
var $tp;
function pluginSmarty(){
add_action('admin_menu',array(&$this,"addPages"));
}
function initTemplates(){
define('SMARTY_DIR', dirname(__FILE__).'/smarty/');
require(SMARTY_DIR . 'Smarty.class.php');
$this->tp = new Smarty;
$this->tp->template_dir = dirname(__FILE__).’/templates/’;
$this->tp->compile_dir = dirname(__FILE__) .’/cache/’;
$this->tp->cache_dir = dirname(__FILE__) .’/cache/’;
}
function addPages(){
add_management_page(”PlugiSmarty”,”Smarty Test”,1,”pluginSmarty”,array(&$this,”showPage”));
}
function showPage(){
$this->initTemplates();
$this->tp->display(”pluginSmarty.tpl”);
}
}
$psmarty = new pluginSmarty();
?>

[/php]

If you like to see the implentation please download this file. I have just made it work here please change according to your neeeds.

pluginSmarty.zip