Understanding the Base Features and Syntax – React

The COVID-19 pandemic started in Wuhan, China continues to infect and kill people all over the world. As of today Wednesday July 08, 2020 the world total confirmed cases and deaths are 11,900,855 and 545,728 respectively. Of course these numbers include reports from countries that are estimating (e.g., Peru and most Latin America countries) and countries (e.g., China) that for their political and financial gain report bogus numbers. Hopefully better treatments which will drastically reduce the symptoms and general public access vaccines will become short term realities. In the mean time, remember to wear a mask and gloves and keep social distancing. Continue reading “Understanding the Base Features and Syntax – React”

Refreshing Next Generation JavaScript

Once again, it is Saturday. We are experiencing the COVID-19 pandemic and it seems that days, weeks and months are flying by. My routine on workdays has not changed at all. I work five 2-hour blocks with most intermissions of about 15 minutes. The intermission for lunch is about an hour. Actual lunch takes about 20 minutes, but my wife and I sit down with a cup of espresso and chat for about 20 more minutes. When done we do the dishes and I go down to my home office.

Today my wife and I were going to go to Costco in Minneapolis. Last night I sent my son a message so we could meet there at 07:00 AM and chat while shopping. Last evening my wife had some stomach pain and a light fever. We decided to play it safe and stay home. If the fever persists until tomorrow, we will get an on-line medical consultation. Hopefully it is not COVID-19. Continue reading “Refreshing Next Generation JavaScript”

React or Angular

It is already summer 2020 and some people are saying that it does not seem that summer is here yet. Due to the COVID-19 pandemic the transition from spring to summer did not materialize. To me the big thing is that when summer starts days start getting shorter. Living in a suburb of the Twin Cities of Minneapolis and St. Paul we understand what short days in winter feel like.

As you know I am a promoter of never stop learning. A few post back I suggested a project on the Travel Planner System post in this blog. I thought that I listed the technologies that I will be using so I can refresh and catch up with new features before starting the design and implementation phases. I went back to the post and determined that there is no table. Continue reading “React or Angular”

Analog Clock in JavaScript

It has been over a week since my last post. A lot of things have happened besides COVID-19. As you might know I live in a suburb in the Twin Cities of Minneapolis and St. Paul. I live in Dakota County. On May 24, 2020 the county had experienced 33 deaths due to the pandemic. Today is June 03, 2020 and the count is up to 59. The count is going up. It seems that a second wave has been forecasted by models for about June 15, 2020. As the rate things are going, I would not be surprised. Continue reading “Analog Clock in JavaScript”

MongoDB for RESTful Service

In the past few days the temperature in the Twin Cities of Minneapolis and St. Paul has been lower than average. The days have been cloudy and rainy. Today the sun might peak in the afternoon and the temperature will hopefully reach 55 F. On the positive side the forecast for Saturday is sunny and temperatures in the low 70s. Hopefully will be able to grill and spend a few hours outside walking.

In this post I will cover interacting with MongoDB using Node.js via the Mongoose module. I will not say much about Installing MongoDB on Windows or Using the MongoDB Shell due to the fact that I have covered such topics on previous posts. I am using the Windows 10 OS due to the fact that several tools I use to generate the post are installed in this Windows machine. You can follow just as well if you decide to use Linux. The installation instructions provided by MongoDB are well written and are easy to follow. Continue reading “MongoDB for RESTful Service”

Promise to Async and Await

Yesterday on snail mail I received a pin from the Red Cross. Apparently I have given blood 16 times so far. That adds up to two gallons of blood. Planning on continue to donate in the foreseeable future.

As you can tell based on the code we will be using for this post, I am a fan of Ian Fleming’s spy novels staring James Bond. I read all his books when I was growing up. Have watched all the James Bond movies and own a DVD collection of all the titles that have been released of 007.

To start we have a set of functions written in JavaScript Continue reading “Promise to Async and Await”

Bootstrap Jumbotron

It is a beautiful Saturday in the Twin Cities of Minneapolis and St. Paul. My wife and I will be going for a 5 mile walk later this morning.

Today I woke up around 04:00 AM. It was somewhat warm at home. Turned off heating and opened a window. Since then the inside temperature had dropped to a more comfortable 68 degrees F.

This morning I read a post titled The Middle Class is being Disrupted by the One Percent by Michael K. Spencer on Medium. The post is quite interesting to me. The reason being is that I have been thinking and discussing with friends and family similar ideas. Something needs to be done by companies and governments before Capitalism and Democracy becomes a chapter in a history book. Continue reading “Bootstrap Jumbotron”

Basic RESTful Service – Part I

One can use different programming languages, frameworks and libraries to develop a RESTful web server which exposes the same API. In this post I will implement a RESTful server using JavaScript, Express, and npm libraries.

Given that one needs to start with some level of requirements, we will use the following short and simple statement:

“Implement a very simple RESTful API for a storage server that supports store, query, retrieve and delete operations using DICOM data”. Continue reading “Basic RESTful Service – Part I”

About JavaScript – Part I

This morning I received a message from a discussion forum for the Graph Analytics for Big Data from the University of California San Diego by Coursera. I completed the course last year.

I tend to post now and then when I really see a need. Since then at least three students have used the contents of the post and were kind enough to leave me a message. I do appreciate it. Hope it helps fellow students even if they were in a hurry and did not have time to leave a thank you note. Feels good, what can I say. Continue reading “About JavaScript – Part I”

Using the MongoDB Shell

I believe it was Albert Einstein who said “Any man who reads too much and uses his own brain too little falls into lazy habits of thinking”. I like to read in order to learn about different subjects, mostly associated with computer science and technology. I also like to experiment with what I am reading in order to verify that I understand the material. Continue reading “Using the MongoDB Shell”