Showing posts from November, 2014

How to create a self signed SSL certificate and how to use it with your web Server.

SSL certificate is the foremost important aspect of any website. If your website is running without the SSL, the modern browsers will stop the users from entering the website. Of course, there are ways to bypass that, at your own risk. As long as your website has no commercial data exchange, sensitive user information, etc, you are still good to run a website without a proper SSL certificate. For example, a blog can run without an SSL.  Note that Google AdSense accepts websites without SSL.  But the topic of this post is about Self Signed SSL certificate. How to create one, how to use it, and where to use it.  Let us see where to use it. For any website which is used for internal purposes, it's always a good idea to use Self Signed SSL, instead of paying for a real SSL certificate. Internal I mean, within a company, team, or for personal uses, for testing purposes, etc.  Now, let us see how to create a self-signed SSL certificate.  What you need A Linux machine.  OpenSSL utility  A

How to implement Linux tail command in Perl

I have tried writing a Perl script to simulate Linux tail command - print last n lines from a file. This is one of the common interview questions in Perl. This can be extended to print selected lines of other Linux commands like head. It works perfectly fine. print "\nImplements linux tail command in perl \n\n"; $file   =  $ARGV[0]; $n = $ARGV[1]; open(FILE, $file); @arr = ; close(FILE); $length  = scalar(@arr); $n = $length  - $n; while($n<$length ) { print $arr[$n]; $n =$n + 1; } Comment  below if you have a better option

Converting number into text - spellnumber excel function

It is often useful to have a function to convert numbers into words in Excel. It will be very handy in accounts. I have written an Excel macro to convert numbers into text. I have already created a macro which will convert a number in Indian system - that is ##,##,### format, to words. You can find it here  Now I have come up with a macro which does the same thing with the western numbering system, that is 3 digits separation like ###,###,###. The dollar is used as currency, but it can be changed to any currency just by changing the text "Dollar". You can do that by finding replacing. How to use it: 1. Download the Excel VBA macro module from here      Spellnumber module 2. Open Excel  3. Press Alt + F11      A window will open, it is called Visual Basic Editor aka VBA editor.  4. In the VBA editor select Insert, Module.      A new module will be created at the left side pane, on the right side you can see a blank pane. Paste your code here      
The latest version of SpellNumber The latest version 4.0 of MS Excel currency converter has been released. It has the following bug fixes. See here how to use it in your excel workbook. It used to give the wrong result for a value between 1,99,999 to 9,99,999. It has been fixed now in version 4.0 download the latest module here You can download the complete excel file here Direct access