Force http to https redirection using .htaccess

There are lots of things you can do using the .htaccess file with Apache. One of the most frequently used directive by me is the RewriteRule for redirecting all http requests to https. The easiest way to force redirect any request received on http to https and maintaining the URI request is added below


RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

Google-Chrome + CentOS stuck in full screen mode?

If your google chrome is stuck in full screen mode in any of the linux flavors and F11 is not working to sort the issue then you need to look at this fix.

I am not too sure if you guys have experienced this but this is something that keeps on happening with me reguarlarly on different flavors of Linux. The Google chrome browser just gets stuck in full screen mode on the secondary screen. Pressing F11 just does not help. So what do you do if this happens? How do you recover your beloved chrome? Going through http://code.google.com/p/chromium/issues/detail?id=116044 I realized that you could just remove all the settings in your profile for Google chrome and the browser would reset to default. You will loose your bookmarks and settings but atleast you can use the browser again. Use Google sync to save your time and you can just log into Google account and get your bookmarks and apps back.

All you need to do is go to /home/user/.config/ and here you will get your google-chrome folder. You can just do a rm -rf /home/user/.config/google-chrome/ and then try launching the browser. It should be the way it launched the first time. This is not a perfect solution but a decent work around I guess.

Download Google Cloud Connect for offline installation

To download Google Cloud Connect to sync your documents with google docs, you need to download the installer from http://tools.google.com/dlpage/cloudconnect, but this won’t work in case you are behind a proxy which blocks unauthenticated content. In that case you can directly download the MSI installer from http://dl.google.com/dl/appsconnect/googleconnectinstallerenterprise.msi

For more information on Google Cloud Connect you can go to http://tools.google.com/dlpage/cloudconnect

Gender Specific Courses

Gender Specific Courses.. these are definitely needed 🙂
No offence to anyone here.. Who ever thought about this had real free time on their hands I guess 🙂

Register & get early bird discounts !

*CLASSES FOR WOMEN****;)*

*Training courses are now available for women on the following subjects:

Topic 1. Silence , the Final Frontier: Where No Woman Has Gone Before
Topic 2. The Undiscovered Side of Banking: Making Deposits
Topic 3. Parties: Going Without New Outfits
Topic 4. Bathroom Etiquette: Men Need Space in the Bathroom Cabinet Too
Topic 5. Communication Skills : Tears – The Last Resort, not the First
Topic 6. Communication Skills II: Getting What you Want Without Nagging
Topic 7. Driving a Car Safely: A Skill You CAN Acquire
Topic 8. Telephone Skills: How to Hang Up
Topic 9. Classic Footwear: Wearing Shoes You Already Have
Topic 10. Oil and Petrol: Your Car Needs Both

NEW EVENING CLASSES FOR **MEN*

ALL ARE WELCOME !!
Note: due to the complexity and level of difficulty of their contents, every course will accept a maximum of eight participants each.

Topic 1. How to fill ice-cube trays. (Step by step with slide presentation.)
Topic 2. Toilet paper rolls : do they grow on the holders? (Round-table discussion.)
Topic 3. Differences between the laundry basket and the floor. (Pictures and explanatory graphics.)
Topic 4. Learning how to find things, starting with looking in the right place instead of turning the house upside down while screaming. (Open forum.)
Topic 5. Health watch: bringing her flowers is not harmful to your health. (Graphics and audio tape.)
Topic 6. Real men ask for directions when lost. (Real-life testimonials.)
Topic 7. Is it genetically impossible to sit quietly as she parallel parks? (Driving simulation.)
Topic 8. Learning to live: basic differences between mother and wife (Online class and role playing.)
Topic 9. How to be the ideal shopping companion (Relaxation exercises, meditation and breathing techniques.)
Topic 10. How to fight cerebral atrophy : remembering birthdays, anniversaries, other important dates and calling when you’re going to be late (Cerebral shock therapy sessions.)

The Great Elephant PJ collection

Funny PJ on elephants

Reader discretion recommended. I do not take responsibility of any actions you might be compelled to perform after reading this post! 😉

Q: How do you stop an elephant from charging?
A: Take away his credit card.

Q: Why is an elephant big, grey, and wrinkly?
A: Because, if it was small, white and smooth it would be an Aspirin.

Q: Why did the elephant fall out of the tree?
A: Because it fell asleep.

Q: Why did the second elephant fall out of the tree?
A: It was glued to the first one.

Q: Why did the third elephant fall out of the tree?
A: It was a copy cat.

Q: Why did the fourth elephant fall out of the tree?
A: It thought this was all a game.

Q: And why did the tree fall down?
A: It thought it was an elephant.

Q: What does an elephant and a blueberry have in common?
A: They’re both blue, except for the elephant.

Q: What did Tarzan say when he saw 1,000 elephants coming over the hill?
A: Look, there’s 1,000 elephants coming over the hill.

Q: How do you shoot a blue elephant?
A: With a blue elephant gun, of course.

Q: How do you shoot a red elephant?
A: No, not with a red elephant gun. You strangle him until he turns blue, then shoot him with a blue elephant gun.

Q: How do you shoot a green elephant?
A: Tell him a dirty joke so he turns red, strangle him until he turns blue, then shoot him with a blue elephant gun.

Q: How do you shoot a pink elephant?
A: First you bake a cake, and put 3 raisins on top, then you take it out in the jungle where the pink elephant will find it, and you wait. Eventually the elephant comes along, finds the cake, eats the raisins and throws the cake away. Then you go home and bake another cake and put 2 raisins on top, take it out in the jungle where the elephant will find it. The elephant comes along, finds the cake, eats the 2 raisins and throws the cake away. You go home and bake another cake and put only one raisin on it. Then you trek back into the jungle and put the cake where the pink elephant will find it. The elephant comes along eats the raisin, and throws that cake away. Now you go home and bake another cake, but (here’s the sneaky part) you don’t put any raisins on it. You take it out into the jungle where the elephant will find it and lie in wait. The pink elephant comes along and finds the cake, he gets SO mad that there aren’t any raisins on it, he turns red, then you jump on him, strangle him until he turns blue……and you shoot him with a BLUE ELEPHANT GUN!!!

Q: How do you shoot a yellow elephant?
A: Aw, come one, have you ever seen a yellow elephant !?!

Q: Why do elephants have red eyes?
A: So they can hide themselves better in cherry trees.

Q: Ever seen an elephant in a cherry tree?
A: No? See how well the trick with the red eyes works?

Q: What time is it when an elephant sits on your fence?
A: Time to get a new fence.

Q: Where does an 8 ton elephant sit?
A: Any damn place where he pleases!

Q: Why is an elephant covered in wrinkles?
A: Ever try to iron one?