Skip to main content

EADG ????



Wondering what it is?
Hmmm, people who have played The Violin would have guessed it by now. These are the open string notes of the four strings on a violin. Ok fine, why keep this as the title? A violin has many notes and playing different notes on a violin in articulated manner results into beautiful music. Similarly, I, just like many other people, have a lot of things in my mind that I love to try. I decided to play the notes that I love to play and create a beautiful music of life that can be cherished for a lifetime. And this series of blogs would be based on the things that I wanted to learn, how I pursued them, and the joy it gave me. 

Comments

Popular posts from this blog

Python run watchdog along with a flash app

The pre-requisite for understanding this blog post would be the following post. Please go through the following to set the context to understand what is discussed in this post. https://rkinsideout.blogspot.in/2017/10/implementing-file-monitoring-script.html Problem : The flask app was running and was responding to a bunch of curl commands. This was single process thread that was working. When the watchdog api was integrated and initiated with the flask program, the problem was that the watchdog thread was started and the flask app was never started. It was started only when the watchdog thread ended. Since we want both the threads to be running, the watchdog process has to run in the background and the flask app to should run normally so that both functionalities are available for use. Python thread and threading are the options available. The "thread" starts a thread and waits for it to complete before proceeding with the rest of the flow to get execute...

Concurrency in Go - Visualization

In this blog, let us discuss a program to visualize concurrency in Golang. Reference and source: Program 1: import " fmt " import " time " func main () { var Ball int Ball = 5 table := make ( chan int ) go player (table, 1 ) go player (table, 2 ) fmt. Println ( " mainstart: " , Ball) table <- Ball time. Sleep ( 1 * time. Second ) endres := <- table fmt. Println ( " mainend: " , endres) } func player ( table chan int , playernumber int ){ for { ball := <- table fmt. Println (playernumber, " : " ,ball) ball++ time. Sleep ( 100 * time. Millisecond ) table <- ball } } /* ---------------------------------------------------------------------------------------------------------- Explanation: Please try to visualize on your own before reading the explanation. We will name the two goroutines that are called as player1_goroutine ...

Using python script, send a message to CISCO spark user when a certain event happens

CISCO spark has exposed few APIs that enable us to send a message to a certain email ID. Another good part is that, instead of sending the message from a certain user, you can create a Spark Bot and then send a message to the required user from the bot's ID. If you have a spark account, you can access the tutorials here and have fun. https://developer.ciscospark.com/getting-started.html Creating a bot instructions are available here: https://developer.ciscospark.com/bots.html I have tested these APIs and sent messages to myself from the bot's ID using Postman and a simple python script. You can download postman from the following link: https://www.getpostman.com/  and run the apis or run them directly from the interactive Rest API terminal that is present in one of the submenus in the above-mentioned link. You should try various other options as well.  The Python script to send spark message: import json import requests if __name__=="_...