Photos

“What i like about photographs is that they capture a moment that’s gone forever, impossible to reproduce.”
? Karl Lagerfeld

Here’s some I wish to share with you all. This is all about kuttoos, anju & me.

    WP_000039         IMG_0623

WP_000114    WP_000006 (2)

aryan_bday

Did you like this? Share it:
Posted in Memories | Tagged , , , , , , , | Leave a comment

Panayola – Read. Learn. Do.


I am working with Panayola nowadays as a content writer. It is a website for technical articles and the content is regularly updated by a team of techies.

Feel free to read your favorite topics and discuss. ;)

Did you like this? Share it:
Posted in Review, Tech | Tagged , , | Leave a comment

RHCSA& RHCE

                


I completed both certifications in one shot today. Scored 100% in both. What could be better than that?

Did you like this? Share it:
Posted in Memories, Tech | Leave a comment

HTTPS in RHEL and PHP in less than 5 minutes !

Enabling HTTPS will give your application an added layer of security. The SSL layer will encrypt all communication that happens between the customer’s browser and your application. In this article, I am not describing things in detail about each security option. This is good enough to get started in most of the cases.

Login to Redhat Linux as user root and run the below commands to install apache ( with ssl support ) and PHP version 5.

#yum install httpd mod_ssl openssl php5
#service httpd restart

You should be able access your server via HTTPS now using the browser like https://yourservername.domain/application/login.php . You are now using a self signed certificate for the server. Your browsers might warn you about this , but it is safe to accept it and continue.

If your server was using HTTP only and you recently upgraded it to HTTPS, Here’s a quick and dirty method in PHP to detect if your users are still using HTTP and redirect them to HTTPS. All you need to do is include this code in the start of your php file.

< ?php
$loginURL="https://yourserver/application/login.php" ;
if($_SERVER['HTTPS']){
echo <<<REDIRECT
Redirecting to ... $loginURL 
<script>
window.location($loginURL);
</script>
REDIRECT;
}
?>

As you see, a little time spent can go great lengths towards securing your website and applications. Feel free to comment. :)

Did you like this? Share it:
Posted in Open source, Tech | Tagged , , , , , | Leave a comment

Weekend Project with OpenSource

Here’s another story about how open source helped me.

I have a USB disk at home where I store all my photos, videos, movies, songs etc.  The disk is connected to a desktop computer at home and shared across the network. Making it available on network helped me to backup my laptop data also to the disk using wireless connection. So far so good.

But what about watching movies or listening to songs or viewing pictures? I can do it from my laptop, but it will be only me. What’s the fun in that? I wanted to enjoy them with family and friends in my TV in the living room. Here’s how I did it.

In old Laptop, I installed PinGuy Linux (http://pinguy-os.sourceforge.net/ ) . I also updated all softwares to the latest version.

Now the problem is that I have a CRT TV. It supports only RCA input. My laptop had a  S-Video output. I bought a S-Video to RCA Cable and connected the laptop. It did not work !. Then I bought a VGA to RCA cable , that also failed. I did some research and ended up buying a VGA to RCA Converter box from the local electronics market. It gives 640×480 resolution that is probably the maximum my TV can do, anyways.. it worked.  :)

Here’s the box.

So now, My TV shows only a part of the laptop screen because laptop is running at 1024x768 and TV can do only 640x480. Then I started XBMC , the Media Center Application. It gives a nice GUI to configure settings and also to manage the Media. I configured it to run in Window mode and dragged and re-sized the window to 640x480 resolution and placed it on the corner of the screen so that it covers fully what is shown on my TV.

Rest of the operation was simple, connected to my USB disk over network, added those files to XBMC. I also configured XBMC to show weather information and play Youtube videos.

I am now able to watch all my photos, videos and listen to songs in my USB disk via my TV. Hurray !

Wishlist :Infrared Remote for Laptop. Also a HD capable TV in future :)

Did you like this? Share it:
Posted in Open source, Review, Tech | 2 Comments