Saturday, March 7, 2020

Fizz BUZZ!!



let number= 1;
while (number<= 100){
        if (number%3 === 0){
        console.log("Fizz");
        }
    else if (number%5 === 0){
        console.log("Buzz");
    }
    else{
    console.log(number);
    }
    number = number + 1;
}


1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
Fizz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
Fizz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
Fizz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
Fizz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
Fizz
76
77
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
88
89
Fizz
91
92
Fizz
94
Buzz
Fizz
97
98
Fizz
Buzz

Learning JavaScript

My First steps into JS.

Wrote the below simple While Loop to produce triangles.  Will continue to delve into JS.

let triangle= "#";
while (triangle.length <= 10){
    console.log(triangle);
    triangle = triangle + "#";
}


# ## ### #### ##### ###### ####### ######## ######### ##########

Thursday, March 5, 2020

First Node JS Webserver

I have started studying  Node.js® : JavaScript runtime built on Chrome's V8 JavaScript engine using online sources. The below is from the book Up and Running Node JS.
Hope to create a mini project sometime.













Below is the code: 

var http = require('http'); 
http.createServer(function (req, res) { 
    res.writeHead(200, {'Content-Type': 'text/plain'}); 
    res.end('Hello World\n'); 
}).listen(8124, "127.0.0.1"); 
console.log('Server running at http://127.0.0.1:8124/');

Wednesday, March 4, 2020

The Thawing Triage: Musing of IT Industry : Part 1

Sanmugham (aka San) finished his usual breakfast of corn flakes and milk at his desk and again started monitoring (staring intently) at the SmartAlert tool.  As a production support executive fresher, he knew what stay ahead of his day schedule. And till a day before, he was sitting beside his senior Bakshi  shadowing (I.e. just looking) who now got promoted to Level 3 (and attained Moksha) was displaced into a separate room with a desk and chair.
San peeped over his cubicle and could see Bakshi enjoying his new room, he is doing nice time-pass thought San. He could see Bakshi switching between his Deskstop monitor and his mobile phone and jeering.
San was bit nervous, he had to handle everything alone now. Bakshi clearly said he wont help in anymore (which he anyway never did) and he had to prove himself and this meant this even would decide his confirmation from his probationary period.
He opened the Incident Management Tool (Which is an web application to record any issues within systems) and glared at the open less severe Incidents which lay in the queue. He could see someone were assigning them.  God Forbid there shoudn’t be a Severity 1 (which was a critical production infraction) thought San.
He looked at the system clock, it was 9:30 AM.
Suddenly the SmartAlert Tool beeped.  He saw the alert queue turned amber and then RED!
My God, exclaimed San, the Scanner Daemon  process was down. He refreshed the IMT(Incident Management Tool) and could there were continuous Incident getting created. His heart started racing.
This is going to be a major issue, He had to act fast as this could cause an outage to ITrade application which was a regulatory traders app.
Immediately with his shaking hands he opened the Command Center chat room and pinged the Incident details asking for a Triage call (Basically Triage call is a platform with a unique id where various teams join to resolve production issue).
And then a phone rang, he immediately picked it but could see that there was another call appearing in the dashboard, “Hello we are unable to access Itrade application, Can this be addressed ASAP!!” a rude voice yelled from the other side. “Do we have any Triage open??”
“Yeah .. we are working on it..” he fumbled his words.

Saturday, January 4, 2020

Friday, November 29, 2019

New York Skyline

Long time no post.. Captured NYC sklyine from Pyramid Mountain New Jersey. Will start posting regularly.

Sunday, February 18, 2018

Ranga Pura Vihara

One of my favourite devotional songs. Beautiful rendition by Nithyasree Mahadevan.