Posts

Apple MacBook Notes strike through Menu option and Setting Keyboard shortcut.

Image
Apple Notes is the probably most widely used App for taking notes on Apple MacBook or Apple Mac in general. In this tutorial, I will show you how to set a keyboard shortcut for Strike Through.  Even the menu navigation is not easily accessible. You have to reach the 2nd  level of the menu item. And If you are coming from a Windows background, it will even be tricky to find the option in the menu.  First of all the strike thought option is available Under Format -> Fonts.  To make it handier, you can set a keyboard shortcut so that, if you are using Notes more often, then it will be very useful.  Follow these steps to set a keyboard short to strike through in the Mac. It is limited to only the Notes App.  Go to System Preferences , and select Keyboard . Then select Shortcuts Tab  Then select App Shortcuts  in the left-hand side pane. Then click on the '+' Icon at the bottom center of the menu.  The new dialog appears. S...

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

Image
SSL certificate is the foremost important aspect of any website. If your website is running without SSL, 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.  O...

How to set Python3 as default interpreter for VS Code | or set any version as default interpreter.

Image
Want to run your python code with a particular python version in Microsoft VS Code? And, make it the default version? Read on. Make sure that the required version is installed. You check the available version and the path by running this command. I am trying this on Apple Mac. It should be similar in Windows Machines as well.   Open the VS Code, at the bottom of the screen you will Terminal. If it is not visible, Go to View and then select Terminal. Check the available python versions and their path.   % which python   /usr/bin/python  % which python2 /usr/bin/python2  % which python3   /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 Next,  Run this python code to check what version is used by default.  import platform print ( platform . python_version_tuple ()) print ( type ( platform . python_version_tuple ())) You will get this ('2', '7', '16') <type 'tuple'> Now you know the path and versions available. In the VS code...