The Party is About to Be ON

June 28th, 2008 by Sajith M.R

In every project works, there would be a lazy day. The day we spend with nothing. If you are plaining for a lazy day, a leisure time, I can offer a place to enjoy and stay. I will manage all your expenses !!! What you have to spend is your traveling charges to reach the REAL Nature Beauty area, The God’s Own Country, Kerala, in India. I welcome all of you into my place for a Blogcamp meet.

see

http://www.blogcampkerala.com/

Our first Blogcamp is going to happen on this AUGUST 16 th of 2@@8 inside a House Boat.

I would like to see all my readers on these chairs :)

(inside view of the house boat)

You programmed a lot, you designed a lot, you created a lot, you earned a lot. You have to take a little rest, a little sleep.

Is this bed is enough for you ???

(Bed room inside the house boat)

The boat is ready now, the nature is waiting your presence, the SEXY she , is lying , just above the lake.

So I cordially welcome all of your presence in this occasion, Kerala BlogCAMP . The Party is about to be ON.

You can call me regarding this in: +9I 9846&3IIO6
(not a toll free number and leave me free between 1 am to 8 am of GMT + 5.30 )

Youtube Images - What an Idea !!!

May 3rd, 2008 by Sajith M.R

Look at the given image carefully …

Youtube Master Image

Did anybody see the above image anywhere ? The Answer might be No. But you might see small parts of this picture. The amazing picture’s name is Youtube Master Image. The Youtube Website contains this single image only, and it uses part by part for different occasions with css ( sytle sheet) property background image and scroll position.

You know the whole youtube website is created with a single image !!!

For example, you see the rating pictures just below the youtube video

Youtube Ratings

Here the fully red star is created by:

<img class=”rating icn_star_full_19×20png alt=” style=”vertical-align: top; src=”http://s.ytimg.com/yt/img/pixel-vfl73.gif/>

Here the src is merely a 1 pixel image. The actual star lies in the style class “rating icn_star_full_19×20png”

See the style sheet:

.icn_star_full_19x20png

{

   transparent url("http://s.ytimg.com/yt/img/master-vfl38353.gif") no-repeat scroll -373px -38px

}

Here scroll -373px and -38px exactly points the red star in the master image.

And for youtube logo, it uses same background image (master image) with another scroll location. Scroll is set to 0px for logo

Like that, all the images, thumbs up , thumbs down, border, scroll back, previous next buttons etc etc are displayed from this single picutre.

Amazing Idea Right ?

(Post your comments please)

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 .

Todo Reminder (http://remind.olph.in)

March 16th, 2008 by Sajith M.R

Todo Reminder Logo

Todo Reminder - Mozilla Plugin

Todo Reminder is a Mozilla Plugin, which can be used to set Reminder for Your Friends for a particular event on a particular date. Your Friend will get Email / SMS alert some days before (Called Heat) that event. So you never forgot a particular event / ToDo.

For example, when you composing an Email to your friends for your College Get together on March 21. While composing mail you can simple add a reminder to all of your friends by a single mouse Click, so that all of your friends get reminder emails / sms on that day.

You can Download the Plugin here

Here is the screen short of composing an Email in Gmail:

Composing a Mail

Before Sending this mail, Select all email addresses and right click :

Right Click for Todo Reminder

(You can select any set of emails from any web page and can add reminder like this)

Launching the TodoReminder Plugin:

Start Todo Reminder plugin

Here you can see all of your selected emails, you can put a Subject for your Reminder, Date of Event, and How many days before the alert to be provided (Lets call it HEAT). If Date is March 21 and 3 is the HEAT, then your friends will get alert email from 18th March to 21 March.

See the window after setting the Reminder

Todo Reminder Successfully Set

Enough, Your Friends automatically gets Reminder Emails along with your email. He can Accept or Reject your reminder.

The screen shot of the email your friend gets:

Your Reminder Email

When he clicks the Reminder Activation link, A Confirmation window will pop up , and he can Accept or Reject the reminder and also can Edit the HEAT (How many days before the alert to be started)

Screen shot of Confirmation Popup:

Todo Reminder Confirmation

Download the plugin Now

Todo Reminder - Mozilla Plugin


For more, go to TodoReminder Online Service : http://remind.olph.in

 

I hate stumble spammers

March 4th, 2008 by Sajith M.R

I hate stumble spammers

The idea attracted me some months back is that of stumbleupon. There you can customize your likes and dislikes. You can categories your likes. After this you can view websites as per your interest. What you have to do is just press the stumble button in your browser’s stumble plug-in. This is like taking books from library. Every day as a course I used to stumble around 20 web pages. It is very wonder to see this, that all the sites getting will be exact on your interest. And if you like that site, you can click I like it button else I dislike button. If you have no opinion on that just leave it and stumble next pages. The backend of stumble upon automatically learns your likes and dislikes and it serves you next pages depending on this knowledge base.

But one thing I noticed some days that, now the websites getting from stumble is not that much suit to my interest. If I stumble 10 websites, I got only three best sites. (In old days it was around 9 :( ) This is happening just because of stumble spamming. There are some websites which doing stumble exchange. As the traffic through stumble increases, most of the websites managers use its loop hole. What is a stumble exchange is, if you add my website as you like it, then I will do same for yours. Thus what results is, improper, non valid, ad oriented, mere marketing based sites will get gather in this pure stumble.

So I hate stumble spammers, as it reduces stumbles real effect, and real mining capabilities. And one more thing also to remember is , the revenue model of this stumble site is also from custom injection of other sponsored sites with stumbleupon’s support . So there is a built in “spamming” in stumble’s revenue model. And these entire stumble exchanges are in addition to this. Then what will happen; normal users like me will get mislead. But still I stumble around 50 sites everyday.

Cetera Algorithm

February 1st, 2008 by Sajith M.R

cetera Brain

3d Sound

New sound algorithm to create 3d effects in sound. You are femiliar with sterio, 5.1 surround etc things. But hear this mp3 using your head phones (head phone is a must). http://www.sajithmr.com/downloads/Barbershop.mp3

From this mp3 , you will get the feeling of a barber shop, and you are setting on the chair. If this mp3 makes you crazy ,it is nothing but cetera algorithm.

Starkey’s Cetera technology makes the hearing aid “invisible” to the brain. Cetera removes the barrier between sound and the brain’s ability to process signals. The Cetera technology is based on an innovative new algorithm- the complex mathematical formula that drives a hearing aid. Cetera’s algorithm can match the exact characteristics of the wearer’s ear. This customization removes the barrier that most hearing aids erect between the incoming sound waves and the data sent to the brain for processing.

See this link for more : http://www.audiologyonline.com/news/news_detail.asp?news_id=6

Cetera Algorithm

Here is the full dialogs of this virtual barber shop:

Manuel - Hello there!Hello there!How are you?Yes, yes…You are here for the virtual haircut? yes, yes…ok… I will go and get Luigi.He will come and cut your hair… I’m Manuel, just stay right there.
Manuel - Luigi? (knock-knock) Oh Luigi? he’s present here for your virtual haircut. You’d better come up…..
Luigi - Grazie* Manuel, I’m coming right now.

Manuel - He’s coming up right now and me I’ll go over here and play music, play the guittar because that’s what I do here at the barbershop.

Luigi - Ah, it’s so nice to see you.Welcome to the Starkey Cetera Barbershop and our virtual haircut. I’d like to start the demonstration by moving over to your right hand side and picking up this bag. If you just hold still for a second I’ll put this bag over your head! Just like that..The bag over the top of the head…

And now, I’ll take the bag off. There we go.

The only reason I did that it’s because all of the fancy barbershop do that.

What you’re listening to is I move to your right here and very quickly wash my hands

Trimmmm-Trimmm (the phone is ring) Manuueeellll could you get that please? Oh, thank you Manuel. Let me finish washing my hands here… just bear with a few more seconds.
Ah, yes… As I was saying, all we are doing is using your head as the listening point… and we have two microphones one on either side of the head, in the same position as where your left and your right ears are.

Your brain is doing all of the work, telling you where the sounds are coming from… ok…I’ll go and get the scissors… Nice sharp

And now as I begin the clipping and I bring the clip close to your ear, very close to the right ear…folow me as I move around the back of the head… to the left ear…and up over the top of the head…okay. Now, you can get the same effect better with the eletric razer, I’ll first bring it to your right ear…And around the back… and on your left. I think that looks wonderful. Manuel, what do you think?

Manuel - Ah? Yes..Ah, yes…It looks wonderful Luigi!You do such nice work

Luigi - Oh, thank you so much Manuel.

Manuel - So fast too.

Luigi - Now, as I walk around I just want to tell you only once more that your ability to hear where I am as I walk around the room is simply the amazing power of your brain, calculating the tinny differences or cues in sound intensity and arrival time from two open ears and unlike any other hearing instrument, only one has the digital algorithm that negates on physical presence in the ear to fully restore those differences.
And that algorithm is called… CETERA.

Oh, thank you, thank you so much for stopping by the Starkey Virtual barbershop

Good bye and arrivederte*

Okay … Some more virtual mp3s

http://www.sajithmr.com/downloads/phon.mp3

http://www.sajithmr.com/downloads/voce.mp3 (sexy girl)

I will let you know when more 3D sounds are published:

Enter your email address: 
 

Importance of 301 Permanent Redirection

October 19th, 2007 by Sajith M.R

Permanent Redirection


What is the difference between http://www.myhostname.com and http://myhostname.com ?

In most of the case you will get the same website. But if this is the actual scenario , why we redundantly use www, is it only for time consuming ?

Class B web development says that , no need to use www, we have to make a permanent redirection from www.myhost.com to myhost.com. This is what they called no-www

Refer : http://no-www.org/

Then from where does this www come ? Lets ask to w3c. Their answer is, when you host a domain name, say foo.com, for easy understanding they used
ftp.foo.com for their ftp server, and mail.foo.com for their smtp server (mail server). So they used aliaas name www for webserver. Thus www.foo.com came into action.

Refer: http://www.w3.org/Provider/Style/www.html

Anyway www is there. Then for which domain we will give importance. www.foo.com or mere foo.com

For a normal users angle there is no difference, expect he have to type 3 more letter in browsers location bar. But think about search engines, such a google.

When they use urls for page rank and back link calculations (for getting the relavacy and importance of a url), they consider www.foo.com and foo.com as two different domain.

The page rank for your url may get splitted into two better www and no-www url. This is a big factor in SEO (Search Engine Optimization).

So the solution for this is, you have redirect one form to other permanently (301),

either www.foo.com to foo.com
or
foo.com to www.foo.com

You can done this either via your apache’s configuration file or in .htaccess file in your web root.

The Rewrite rule for this redirection is as follows :

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourwebsitename\.com
RewriteRule ^(.*)$ http://www.yourwebsitename.com/$1 [R=permanent,L]

or

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.yourwebsitename\.com
RewriteRule ^(.*)$ http://yourwebsitename.com/$1 [R=permanent,L]

or in php you can do,

<?php
// Permanent redirection
header(”HTTP/1.1 301 Moved Permanently”);
header(”Location: http://www.somacon.com/”);
exit();

?>

Remember normal redirection never guide search engine by giving the information that the url is permanently shifted or moved

SVN - Subversion

October 19th, 2007 by Sajith M.R

Subversion

Setup Subversion (svn) >>

Depends on your linux version use package managers
apt-get install subversion
or
yum install subversion

How can i create respository ?

Create a folder which you want to make as repository.

svnadmin create /path/to/folder

If you check the folder after this comment, you can see some files there viz
conf dav db format hooks locks README.txt

Your Repository is okay now. For more http://subversion.tigris.org/project_packages.html

How can i set a port and host for checkin/checkout and commit the project , simply add contents to respository ?

You can use svnserve for this purpose.

svnserve -d -r /path/to/repository

This will listen the default port 3690. You can access this repository via svn://hostname.com

You can use options –listen-port and –listen-host for changing the port and host .

Then the svn checkout action will be like this : svn checkout svn://host.example.com/project1

How can I set Authentication to this repository ??

You can see a conf directory in your repository folder. There you can see three files
authz, passwd, svnserve.conf

edit svnserve.conf

Uncomment the following for setting access control:

anon-access = read // This means anybody can read the repository (checkout)
auth-access = write // Only authorized member can write / update repository

anon-access = none // This means only authorized member can read the repository

Read More »

Javascript Classes

July 14th, 2007 by Sajith M.R

java script classes

Hello,

Javascript supports different types of OOPS concept. You know basically javascript
is a functional lanugage.
We can make these function to classes and objects as follows:

<input type=”button” name=”man1_butt”
id=”man1_butt” onClick=”man1.get_name(); man1.get_age();”
value=”Man 1″>
<input type=”button” name=”man2_butt” id=”man2_butt”
onClick=”man2.get_name(); man2.get_age();” value=”Man 2″>

We can implement inheritance also using javascript. See below the example:

Click Read more for example

Read More »

Putty

June 17th, 2007 by Sajith M.R

putty.gif

Putty is a n implementation of ssh / telnet for win32 and unix application. If you are using windows desktop and your website is hosted in a linux machine, putty helps to ssh from your windows to a linux machine.

You need to do two things for this.

  1. Download putty.exe from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
  2. Enter your host address and your access information (user account)Now you can execute linux commands from your windows machine.
    This is just an information about putty.