Showing posts from November, 2013

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

Excel VBA macro to swap 2 values in cells

It is very useful sometimes to have a shortcut to swap 2 cell values. I have created a macro in VBA to do this. Just copy paste the code below in your VBA module. This video will help you with the procedure VBA Code ------------- Sub Swap2Values()     Dim Value1 As Range, Value2 As Range     Dim TempValue1 As String, TempValue2 As String     If Selection.Cells.Count > 2 Or Selection.Cells.Count < 2 Then         MsgBox "Please select only 2 cells. For other options check back soon!"         End     End If       If Selection.Areas.Count > 1 Then         Set Value1 = Selection.Areas(1).Cells(1, 1)         Set Value2 = Selection.Areas(2).Cells(1, 1)     ElseIf Selection.Rows.Count > Selection.Columns.Count Then         Set Value1 = Selection.Range("A1")         Set Value2 = Selection.Range("A2")     Else         Set Value1 = Selection.Range("A1")         Set Value2 = Selection.Range("B1")     End If