Wednesday, May 29, 2013

Force users to use the WWW or Non-WWW of your domain

To avoid duplicate content in search engines you can force users to use either the www or the non-www version of your website domain. This avoids search engines such as Google indexing two versions of your domain, something which is quite common because people link to both www and on-www versions of a domain (known as the www/non-www canonical issue).
It really doesn’t matter if you use www.yoursite.com or yoursite.com. I personally use www on most sites I own however many people prefer to drop it, it’s really up to you.

Force users to use http://www.yoursite.com
To force users to use the www version of your domain all you have to do is add the following code to your .htaccess file (just replace yoursite.com with your domain name).

# Redirect non-www urls to www
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]

Alternatively you can use :

# Redirect non-www urls to www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]



Force users to use http://yoursite.com
To force users to use the non www version of your domain all you have to do is add the following code to your .htaccess file (just replace yoursite.com with your domain name).

# Redirect www urls to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.yoursite\.com [NC]
RewriteRule (.*) http://yoursite.com/$1 [R=301,L]

Alternatively you can use :

# Redirect www urls to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} !^example\.com
RewriteRule (.*) http://example.com/$1 [R=301,L]

Tuesday, May 28, 2013

Breaking down Amazon’s mega dropdown

The hover effects on Amazon’s big “Shop by Department” mega dropdown are super fast. Look it how quick each submenu fills in as your mouse moves down the list: 


 Click Here for more details.

Download Demo from GitHub.

Thursday, May 23, 2013

Extra Working in Office – Narayan Murthy

It’s half past 8 in the office but the lights are still on. PCs still running, coffee machines still buzzing. And who’s at work? Most of them ???
 Take a closer look. All or most specimens are ??
Something male species of the human race.
Look closer, again all or most of them are bachelor.

And why are they sitting late? Working hard? No way!!!

Any guesses???

Let’s ask one of them.

Here’s what he says

What’s there to do after going home. Here we get to surf, AC, phone, food, coffee that is why I am working late. Importantly no boss!!!

This is the scene in most research centers and software companies and other off-shore offices.

Bachelors ‘Passing-Time’ during late hours in the office just because they say they have nothing else to do.

Now what are the consequences:-

‘Working’ (for the record only) late hours soon becomes part of the institute or company culture.

With bosses more than eager to provide support to those ‘working’ late in the form of taxi vouchers, food vouchers and of course good feedback, (oh, he’s a hard worker, goes home only to change!!).
They aren’t helping things too.

To hell with bosses who don’t understand the difference between ‘sitting’ late and ‘working’ late!!!

Very soon, the boss start expecting all employees to put in extra working hours.

So,  My dear Bachelors let me tell you, life changes when u get married and start having a family. Office is no longer a priority, family is and
that’s when the problem starts because you start having commitments at home too.

For your boss, the earlier ‘hardworking’ guy suddenly seems to become a ‘early leaver’ even if u leave an hour after regular time after doing the same amount of work.

People leaving on time after doing their tasks for the day are labelled as work-shirkers.

Girls who thankfully always (its changing nowadays though) leave on time are labelled as ‘not up to it’. All the while, the bachelors pat their own backs and carry on ‘working’ not realizing that they are spoiling the work culture at their own place and never realize that they would have to regret at one point of time.

So what’s the moral of the story??

* Very clear, LEAVE ON TIME!!!
* Never put in extra time ‘ unless really needed ‘
* Don’t stay back unnecessarily and spoil your company work culture which will in turn cause inconvenience to you and your colleagues.

There are hundred other things to do in the evening.

  • Learn music.
  • Learn a foreign language.
  • Try a sport:- TT, cricket,etc.
  • Importantly,get a girl friend or boy friend, take him/her around town.
  • * And for heaven’s sake, net cafe rates have dropped to an all-time low (plus, no fire-walls).
  • Try cooking for a change.
  • Take a tip from the Smirnoff ad: *’Life’s calling, where are you??’*

IT’S A TYPICAL INDIAN MENTALITY THAT WORKING FOR LONG HOURS MEANS VERY HARD WORKING & 100% COMMITMENT.

PEOPLE WHO REGULARLY SIT LATE IN THE OFFICE DON’T KNOW TO MANAGE THEIR TIME. SIMPLE !

Wednesday, May 22, 2013

HTML5 and CSS3

Learn HTML5 & CSS3...??????
 
There are lots of sites to learn HTML5 and CSS3.
You will be surprise to see the following site that providing best examples of HTML5 and CSS3.
  • Easy way of learing
  • audio/visual coding with output.
  • examples
http://thecodeplayer.com/

jQuery validation Engine Demo

jQuery validation engine is a Javascript plugin for the validation of form fields in the browser (IE 6-8, Chrome, Firefox, Safari, Opera 10).

You can Find the demo and instruction how to use from the following link.

http://www.position-relative.net/creation/formValidator/index.html

Download Demo

Thursday, June 7, 2012

Funny Software Shayari

mere... Company kee ladkiyaan sunder hain Aur lonely hain...
Problem ye hai ki bus voh READ-ONLY hain...


Shayad mere pyar ko taste Karna bhool gaye...
Dil sey aisa CUT kiya ke PASTE karna bhool gaye..

 
Tumhare samne hain itney items Kabhi hame bhi pick karo...
Hamare pyar ke ICON pe Kabhi to tum DOUBLE-CLICK karo...


Roz subha hum karte hai Itne pyar se unhe good morning...
Woh humhe ghoor kar dekhte hain Jaise 0 ERRORS but 5 WARNINGS...



Ho gayi galti humse, Click ho gaya mouse
Duniya ki parwaah chhodo, ban jaao meri spouse!

Tumse mila main kal to, Mere dil mein hua ek sound,
Lekin aaj tum mili To kehti ho: Your file not found!


Ab aur kaho na tum, "but" ya "if"
Tum ho meri zindagi ki animated gif


Aysa bhi nahin hai ke, I don't likeyour face
Par dil ke computer mein, Nahin hai enough disk space



Ghar se nikalti ho tum jab, Pehen ke evening gown
Too many requests se, Ho jaata hai server down


Tumhaare liye pyaar ki application, Create main karoonga
Tum usse debug karna, Wait main karoonga


Tumhaara intezaar karte karte, Main so gaya
Yeh dekho mera connection, Time out ho gaya


Kya chaal hai tumhaari, Jaise chalti hai koi cat
What is your ICQ number, Aao karein chat


Tum jabse meri zindagi, mein aayi ho banke female,
Yaad raha na ab kuch, Na postman , Na e-Mail



Joh sadiyaon se hota aaya hai Woh repeat kar doonga...
Tu naa mili to tujhko dil sey Ctrl+Alt+Delete kar doonga...



Humse Kya Khata Hui Ki message Aanna Band Hai.......
Aap hi humse naraz hain ya Web Server band hai.......


Badli hai duniya , kuchch mein bhi badal gaya hoon
Pahle bekaar tha ab S/W Programmer ban gaya hoon


VC aaye to VB mein daal do,
VC aaye to VB mein daal do
seedhe seedhe sabko museebat mein daal do


Project extend ho gaya to kya ho jaata hai?
Are Tankha milti hai aur timepass ho jata hai..

teri yaad me sanam raat bhar humne to wine piya
teri yaad me sanam raat bhar humne to wine piya
kabhi offline to kabhi online piya


Pyar ke sitaare jab gardish mein hote hai
Pyar ke sitaare jab gardish mein hote hai
Laila ghar mein aur majnoo project testing kar rahe hote hai