Posts

Objective neurological reality behind subjective Indian Ragas

Anyone who is a natural singer or taught himself singing will know, there is some reality behind melodies. Melodies are not random. They always behave in certain ways. These colours of melodies are called Raga in Indian music. Raga is a very ancient and well-developed concept. There is more to it than singing it. Some 4 or more years ago this occurred to me and I described what I termed as the Neurological Reality to a friend who is an expert in neuroscience. The set of related melodies that have some very similar character form, a kind of memory in the brain. This I am certain. This can form because of in my opinion based on the very primal neural networks that are related to basic human emotions and our innate ability to vocalize them. Laugh, cry, giggle, sadness anger and other emotions vocalised by us follow a basic musical note pattern. This neural networks can be expanded by simulating the intensity of those emotions, exposure to more melodies and deliberate tra...

What are numbers? Part-1

What are numbers? Part-1 This is not something I have chosen to write to show I think philosophy or 'larger questions of life' etc. I am merely sharing some confusion and discomfort I have with my understanding of numbers. To me, understanding numbers is a scientific problem and is important. I say so with some resolve because  I think, numbers as we know today are incomplete.  So throwing out my current understanding will follow. You will see how scientific or otherwise, it is. I will take two practical approaches to understanding numbers. I am not interested in whether the number is a concept or a thing etc. What numbers  do,  explains a lot more. So the two approaches are: Enumerate what property numbers help denote. Assume numbers are incomplete and verify if consequences explain inabilities of numbers as we know today.  What do numbers help denote? Numbers help  count . What does 0.75 Mango mean then? Numbers help  measure ...

How to find the public IP of your linux node without using an external DNS server

Without much ado: #!/bin/bash #Get the public IP for the network in use #This IP will be accessible through this gateway if the gateway is open to the Internet accessible from the Internet as well #Get the gateway address gatewayIP=`ip route | grep default | awk '{print $3}'` #Find the public IP for the network ip route get $gatewayIP | awk '{print $5}' #If you want to know the public IP open to the Internet you can do # ip route get 10.0.136.116 | awk '{print $5}' #10.0.136.116 is an IBM nameserver The idea is to use the Gateway of your network to find the IP accessible from your network. i.e public to your network. If the Gateway is open to the Internet that will be the public IP in general as well. Regards Ragu

How to setup FREE HTTPS for your website -- including a free CA certificate

Image
**GET YOUR SETTINGS REVIEWED BY AN EXPERT BEFORE YOU GO LIVE** You will find a lot of information in bits and pieces all over the Internet, too much technical jargon peppered all over. If you do not know how https works, do not worry. It is not hard to setup https. Lets say the https setup encrypts stuff between browser and the website and move on to set up https for your website. The keys are a couple of files needed to encrypt your website and these keys need to be signed by CA or the certificate authority in order for browsers to recognise that traffic is properly encrypted. I will use nginx web server and centos7 operating system to show how https can be setup. If you use a different webserver like apache or os like ubuntu look up corresponding instructions elsewhere. So here go the steps: 1. Get a free CA signed certificate 2. Update your web server to use the certificates and enable https 3. Setup certificate renewal and optimize and se...

Pageant for Mac - Using Jump Server on Mac

Image
If you use putty on windows, you probably used pageant to store multiple keys, ssh to jump server and then ssh to your work machine. If you ended up on Mac for some reason and you have a production situation, there is no reason to panic. Mac systems have Keychain - a software that manages your keys including ssh keys. There are 3 steps to use it for jumping . 1. Add your ssh keys to Keychain. 2. Create an ssh  config file to access jump terminal 3. Agent forwarding 1. Adding keys If you had ppk/putty keys you need to convert them. If you have ssh keys then you can add them without converting. I had puttygen on my mac. If you were using Windows machine, you can convert ppk keys to ssh key on Windows and then add on Mac. I had two keys - if you have only one that is fine. puttygen user_rsa.ppk -O private-openssh -o user_rsa.key puttygen jump.ppk -O private-openssh -o jump.key If a window pops up then DO NOT hit generate key.  1. Load y...

jstut

Image
https://github.com/raguks/jstut

Installing Ubuntu and Fixing Boot, Software Centre Issues

Installing Ubuntu 12.04 =============== As long as you do not choose to screw your windows partition explicitly default installation should work fine. The problems starts later on however! I trust you on this part and proceed further directly to problems. Boot Problems =========== The grandchildren of linux have the same old boot loader problems that their grandmother RedHat 2-6.0x had! What happens is you will not see an option to boot to Linux, stuff directly goes to Windows or whatever else you have on you computer. Ctrl+Alt+T sudo grub-install /dev/sda Hit enter the problem should now be solved. Software Centre =========== The Canadian server seems to be sleeping so you may get this error. Error ===== W:Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg  Unable to connect to ca.archive.ubuntu.com:http: E:Some index files failed to download. They have been ignored, or old ones used instead. Open Software Centre and choose Edit -...