Celebrating 1st year of Sajithmr.com

April 30th, 2008 by Sajith M.R

Happy Birthday Sajithmr.com

Sajithmr.com is Celebrating one year of technology blogging, I would like to thank my readers , as I begin another year of knowledge sharing.

So what have I achieved so far?

  • 16,000 unique visits per month

  • Alexa Rank: 308452

  • Page Rank: 3 (got 4 , three months back)

  • Morethan 500 backlinks

    300 keywords seach per day (Google)

This is my 80th post

Thank you all for visiting and keep coming.

Sajithmr.com just passed over 16,000 unique visitors per month, it has been mentioned on lots of blogs, linked to from many cool sites.
It was started as a tutorial site , and later changed into technology blog / my technology backup after a month. Old course website is shifted to http://course.sajithmr.com

I got more than 45 php students from course.sajithmr.com

I am getting  lots of emails daily to admin@sajithmr.com , and thus i got hundreds of tech savvy friends all over the world. (Especially from USA, Canada, Philippines, Pakistan and from my own India)

In this last one year , i blogged about, PHP, Symfony, Propel, Gmail, Mozilla plugin, Wordpress Extensions, Linux and Web 2.0

A Birthday gift from sajithmr.com for you:

Coming soon..

A very intersing post series is coming in sajithmr.com:
How to make Photoshop Express  in PHP

The post series will explain  how to create an online photo editing tool in php .

So subscribe to my Rss Feed now 

Stumble Reviews - Wordpress Plugin

April 24th, 2008 by Sajith M.R

Stumble Reviews - Wordpress Plugin

If you installed stumble toolbar in your browser, you can see a white bubble button. It is called stumble review button. When you browse a website url, if you press this bubble, you can see the reviews regarding that website by different stumbleupon users. Take your wordpress blog posts and click on stumble review bubble, you can see others reviews about each of your blog post.

stumble reviews

If you are getting more reviews for your wordpress blog post, it is the time to reveal or expose your reviews in front of your blog readers.

Here is a wordpress plugin which shows your post reviews by stumble users. If you are using wordpress widget, just activate stumble review widget and add to you sidebar after download the plugin files from http://wordpress.org/extend/plugins/stumble-reviews/

If you are not a wordpress widget user, add the below code in Template Editor.

<?php wp_stumble_review_template() ?>

If you want to add stumble review on your sidebar use the below code:

<?php simple_sumble_review_template() ?>

See the screen shot when i activated the stumble review plugin and added the code <?php wp_stumble_review_template() ?> in my single.php file just above the comments area ( <?php comments_template(); ?> )

Stumble Reviews Screen shot

(Screenshot of sajithmr.com after installing stumble reviews plugin)

Stylish Gmail Chat Status

April 22nd, 2008 by Sajith M.R

Stylish Gmail Chat Status

You are absolutely a gmail user, because you visited my technical blog. If you like gmail chat also, here is some small tips you can play with.

Always set some attracting status message which suit to your character.

1)

If you wan to make bold , just add under score before and after a particular word.

Eg: if you want status like below:

“The score never interested me, only the game.”

Set your status as:

“The *score* never interested me, only the game.”

2)

If you want to make it in italics, like below

“The score never interested me, only the game.”

do this:

“The score _never interested_ me, only the game.”

(dont remember the white space after _ and before _)

Also you can add Unicode character in your status. What to do is select some Unicode character from some website or here and paste on your status message . (not the Unicode number, but the character)

You can use gmail chat imoticons also as your status message

Emoticon

Key Combination

<3


It’s a monkey!

:(|)


Rock out.

\m/

: - o

: D

: (

x - (

B - )

: ‘ (

= D

; )

: - |

= )

: - D

; ^ )

; - )

: - )

: - /

: P

Stylish Blockquote

April 19th, 2008 by Sajith M.R

Stylish Blockquote

The tag blockquote in html has a special beauty than any other tags by default. And when you use blockquote in your post, it gets more meaning than merely a text.

Then what will happen if you make your blockquote more stylish.

See my blockquote below:

There are 10 kinds of people in this world….Those who understand binary and those who don’t “

How i made this type of blockquote is simple. Add the following text to your style sheet.

blockquote:first-letter {
background: url(http://www.sajithmr.com/downloads/quote-left.png) no-repeat left top;
padding-left: 45px;
font: italic 1.4em Georgia, "Times New Roman", Times, serif;
}

blockquote p:first-letter {
background: url(http://www.sajithmr.com/downloads/quote-left.png) no-repeat left top;
padding-left: 45px;
font:  3.4em Georgia, "Times New Roman", Times, serif;
}

blockquote {
font:  1.3em Georgia, Times, serif;
color: #555555;
}

the second block in not necessary. Some blogs automatically add P tag after blockquote , thats why i used blockquote “p”.

Download the file http://www.sajithmr.com/downloads/quote-left.png and save locally, (if you want) and you can change the quote picture according to your blog style.

Wordpress Page Rank Plugin

April 17th, 2008 by Sajith M.R

Page Rank Plugin

If your wordpress blog has a better page rank, here is a better chance to reveal it to your blog readers. That is Wordpress Page Rank Plugin Show-My-PageRank

Download the plugin from Show-My-PageRank.zip

OpenID Integration PHP

Screen shot of my blog after installing this plugin is here:

Pagerank Plugin Screen Shot

You can also change the size, caption text, text color, font size etc from option window.

Screen shot of page rank plugin option page

By default the rank will be shown just before each post. You can uncheck this option from the plugin option page.

If you want to show your page rank to a custom area , say footer.php or header.php , just add the below line to corresponding section in theme editor window.

<?php wp_show_my_pagerank() ?>

See my blog’s about page after adding this php code in page.php file in theme editor:

Custom Page Rank Example

So start download now. Happy Blogging !!!

Mozilla is slow ??

April 16th, 2008 by Sajith M.R

Mozilla is Slow

  • Mozilla uses more memory space.
  • It becomes slow when i open more tabs
  • Page cannot be found error makes the whole browser hang
  • It crashes sometimes and restore session is the only resort to regain

The above complaints are very common about mozilla. But still i like mozilla :)

But there are some hidden truths regarding mozilla’s configuration. The Basic or Default configuration of mozilla is for Dial-up-connection.

You can go on with your default mozilla if you are using a dial-up connection. If you have a Broadband Internet Connection, you can make your mozilla more powerful than usual.

Do the following things:

  1. Open a new tab in your mozilla.
  2. Type about:config in your address bar and press Enter

This is the configuration page for mozilla. Dont edit all the fields .

For reducing memory usage of firefox do this:

Right click on the resulting window, New > Boolean

It prompt for “Enter the preference name”

Type config.trim_on_minimize and press ok. Select true value after that

For adding more speed for browsing and downloading:

On the about:config page , find the string network.http.pipelining (you can use the filter given for easy searching)

Change its value from false to true (Just double click on the line, it will toggle the true/ false values, or right click and click toggle)

Also change network.http.proxy.pipelining value true.

Now you have to change network.http.pipelining.maxrequests value . (Double click or right click and modify)

By default it will be 5 . Set its value from 10 to 30 depending on your internet connection speed.

Final Step: Right click on that window (about:config) and Click New > Integer and type: nglayout.initialpaint.delay and set its value to 0 (zero)

Done, restart your mozilla. Now you will get faster mozilla, faster internet. Happy Browsing.

If you want to know more regarding mozilla configuration, see this link: http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries

Interesting Tip:

like http:// or ftp:// prompts you saw about: prompt. about:blank is a very familiar prompt right ?  So another prompt here ; it is chrome://

Type:  chrome://browser/content/browser.xul  in your browsers address bar to see your mozilla browser inside itself.

Interesting !!!

Jmail++ , My Final Year Project

April 14th, 2008 by Sajith M.R

Jmail++ LogoI am writing this topic in sajithmr.com, because i am getting a lot of queries regarding this project from the place I submitted , ProjectGuidance.com , 3 years back. It was a new Webmail Service Idea Developed in JSP . Here is the link. http://www.projectguidance.com/guidance/details/id/36676649 .

There are more than 400 replies and most of its content is “please send me the project report to my email address”.

jMail++ is a webmail written in JSP. You can create new Account here like yahoo, gmail etc…The Session is handled by Single page Auto Invalidate Method..That will increase Your Mail Security. A simple 4 entry Registration process is required.. And your Password will be handle using RSA Encryption method…There is a Fast Search Mechanism included with Google APIs. The Very Important and Unique Feature is You can Check Your Rediff, Hotmail , Gmail account from this Webmail without login into the respective sites. It means this Webpage act as an Email Client Also (Like OutLook Express). The Protocols (SMTP,POP3) all are implement from Scrach without any API’s…Its is a Pure JSP Project.

This was the post on ProjectGuidance.com

Here i included the full project report as zip file.

Jmail-Project-Report.zip

OpenID Integration PHP

See screen short of this project:

Jmail Screen Shot 1
(Screenshot 1)

Jmail Screen Shot 2
(Screen shot 2)

Why I like mozilla

April 10th, 2008 by Sajith M.R

Ie v/s mozilla

  1. Open Source Browser (Free Software)
  2. My First Tabbed Browsing
  3. Extensible layout (Extensions and plugins)
  4. Very interesting developer platform
  5. Xp support (Cross platform)
  6. Very simple layout engine(Gecko)
  7. Google Search integrated

More over when i checked my status, most of the visitors are browsed through firefox

sajithmr.com status

sajithmr.com pie chart

I think there is a hidden relation ship between google and firefox. I heard a news that, some google employees are there in the Mozilla development team. If that is true, i am 100% more happy. Because both are my favorite team players. It is like merging the cricket team of India and Australia :)

http://www.realnetworks.com/company/press/releases/2006/real_mozilla_google.html
http://www.cnet.com/8301-13739_1-9776759-46.html

Mozilla and Google

See this video:
You need to a flashplayer enabled browser to view this YouTube video

3 Simple way to upgrade your wordpress

April 10th, 2008 by Sajith M.R

Wordpress Upgrade

1) Non- Programmers

For non programmers or non administrators easy way to upgrade wordpress is using auto-upgrading plugin.

Download this plugin from: http://wordpress.org/extend/plugins/wordpress-automatic-upgrade/

Unzip the files into your wp-content/plugin directory and activate the plugin. Go to manage menu and run automatic upgrade. It will do the rest !!!

2) Normal Programmers / Administrators

Login into your server via putty or ssh and go to your root/www directory. (I am explaining the linux server here)

type:

wget http://wordpress.org/latest.zip

unzip latest.zip

mv ./wordpress/ /path/to/www/root

It automatically replace all files and maintain all of your old themes and plugins. When you take wp-admin it automatically asks for database upgradation. Just do that. Enough, your new wordpress is ready

3) Very Simple Way (for Administrators )

Use wordpress svn while installing wordpress.

svn co http://svn.automattic.com/wordpress/trunk/

and when new wordpress upgrade comes, just do

svn update

Enough your new wordpress is ready in a single line .

Google Ad-Oriented Wordpress Theme > KeyArt

April 10th, 2008 by Sajith M.R
  1. Very nice ad placement
  2. Keyword / Meta optimized
  3. Google Image-ad Header
  4. Web 2.0 Layout
  5. Simple Design
  6. Option of Auto Bookmarking (Stumble , Delicious, Technorati)
  7. Amazing Navigation
  8. 75% CTR increment (Tested)
  9. Keeping google ad-layout specification

All the above features in a single theme named KeyArt.

Download the zip file , unzip to wp-content/themes/ so that the theme file will be on: wp-content/themes/keyart path.

Goto Admin Control Panel / Presentation Menu. Select the Keyart theme.

See the screen shot:

Keyart Screen Shot

After installing this theme, go to Template/ThemeEditor Menu and Select googleads.php. Edit your google public id there to show your google ad. (Replace current pub-id with ours)


For any queries/comments mail me to admin@sajithmr.com or comment on this post.

Happy Blogging …

Addtothis - Wordpress Social Bookmarking Plugin

April 10th, 2008 by Sajith M.R

Addtothis is a wordpress plugin for improving your blog traffic. What you want to do is just activate this plugin. This plugin automatically add user option / shortcut for adding a particular post in delicious , stumble , feed readers and technorati

Addtothis - Wordpress Social Bookmarking Plugin

Download the zip file and unzip into your wp-content/plugins directory. Go to your administrative control panel / plugin menu and click on the activate link.

The plugin is also available from wordpress official website: http://wordpress.org/extend/plugins/addtothis/
Wordpress Bookmarking Plugin

See sample post after activating this plugin:

Addtothis - Wordpress Social Bookmarking Plugin

Comment your opinion / queries regarding this plugin. If you want more additions to this plugin, please feel free to mail : admin@sajithmr.com or comment to this post.

Cross Browser Cookies

April 4th, 2008 by Sajith M.R

A normal html / web developer must be femilered with cookies and sessions. In normal case the cookie set by one browser cannot be access through another browser. Each browsers have its own space to store the cookie value. Thats why when you login your email account from one browser, if you go another browser , non of your preference will be available. This is the case of normal cookies.

HTTP cookies, or more commonly referred to as Web cookies, tracking cookies or just cookies, are parcels of text sent by a server to a web browser and then sent back unchanged by the browser each time it accesses that server. HTTP cookies are used for authenticating, tracking, and maintaining specific information about users, such as site preferences or the contents of their electronic shopping carts. The term “cookie” is derived from “magic cookie,” a well-known concept in UNIX computing which inspired both the idea and the name of HTTP cookies - Wikipedia

But what will do if you want to set a cookie which is to be accessed from different browsers , ie mozilla, safari, opera ,internet explorer share same cookie ??

Come back to the case of shock wave flie (swf ) or flash files. They also have privillages to set cookies in browser. Like html, it also have all the features in client side. Consider the cookie setting mechanism of a flash file. It is not on different places for different browsers. It is on a common file on your computer and no matter what the browser.

Think this thing also javascript can access flash object via normal javascript functions if swf provides provision for that. Then when rethink the whole stuff, if you set a cookie through flash , you can access it from any browser.

Cross browser cookies

See this post: http://www.nuff-respec.com/technology/cross-browser-cookies-with-flash

In this post Mr. Daniel Bulli explains it detaily. He is the big man here.

also see this link: http://www.ts0.com/crosscookie/example.html

A live example for cross browser cookie. Both of the sites provide source code of their implementation.

I also uploaded the source code as a backup. Download it from here: OpenID Integration PHP