Styling React Components and Elements

I continue pushing forward with the React course by Maximilian Schwarzmuller by O’Reilly via my subscription with ACM Learning.

Today is a nice summer day in the Twin Cities of Minneapolis and St. Paul. The private streets in the neighborhood where I live are being redone. Part of the work is on gutter drainage, some on replacing some of the curbs and finally a fresh double coat of asphalt. Today’s work started shortly after garbage and recycling trucks picked up their corresponding items. After the trucks left, noise and dust were all over the neighborhood. Right now all is quite. Not sure if they are done for the day. The final asphalt will be deposited on Wednesday. Continue reading “Styling React Components and Elements”

Combinations

Hello gals and guys! It seems that during the COVID-19 pandemic time goes faster. It is Saturday and the work week went by in the blink of an eye.

This post was motivated by a HackerRank problem which I am getting ready to tackle. I decided to experiment with combinations and factorials to make sure that a brute approach to the actual problem would be futile. In my next post will tackle the basis for a better approach.

As usual let’s start with some chitchat. Continue reading “Combinations”

Typing Speed

Hope you are doing well. In the Twin Cities of Minneapolis and St. Paul things appear to have gone back to normal. As far as I know looting and riots have stopped. There are talks about disbanding the Minneapolis police department. Not sure what liberals are thinking. No matter where you live, social rules and laws have to be enforced so people will follow them. The approach may vary, but force needs to be present. Hopefully it is there just as a deterrent.

Talks about the terrible things happening in many police departments in different liberal cities are being blamed on the current conservative federal government. Please note that in the past 50 years the USA has been under conservative and liberal leaders. If there is blame on what triggered the last wave of looting and riots in several cities in the USA, it needs to be done using established laws. First, the involved police officers should have been put in administrative leave (not fired). Second there should be a trial in which all evidence is presented and discussed. Then the jury should come up with a verdict. If the process is fouled, then the issue should be elevated to the next court. Eventually, if not resolved to the satisfaction of all parties involved, it would reach the Supreme Court. After a decision is made at the highest legal level, people responsible at all levels (i.e., judges, lawyers, union members, politicians, and police officers) should be held accountable and sent to prison if they have done something considered unlawful. Accountability will induce changes which will make groups like “Black Lives Matter” obsolete. Looting and riots do not help the cause of black people. It only aggravates it. Not only that, but the people that lives in the areas that were looted and burned down, now will experience higher prices in stores and shops and will have to travel longer distances to get their shopping done. Thanks looters and rioters! Continue reading “Typing Speed”

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”

Components in a Graph

It is a cloudy day in the Twin Cities of Minneapolis and St. Paul. Today I woke up around 05:00 AM. Read for about 45 minutes and then headed to the kitchen to prepare breakfast.

It is all over the news that most (never say all) states have started updating the stay home orders in order to give people more freedom to do the things we are used to. I fully agree that the economy needs to get back to what it was before the COVID-19 pandemic started. That said, we need to move slowly making sure that there are enough ICU beds for all people that requires them. If such quotas cannot be met, then we need to go back to a full quarantine. This type of cycle is well known and will come in the form of multiple waves.

In particular, in the State of Minnesota, the Mall of America and casinos (e.g., Mystic Lake Casino) are opening. My wife and I do not go to casinos. During the long winter months we go to the Mall of America early mornings before stores open to walk. At that time there are very few people. When we shop at the mall we visit Nordstrom and Macy’s.

Continue reading “Components in a Graph”

Disjoint Union Sets

It is a rainy Sunday morning in the Twin Cities of Minneapolis and St. Paul. Rain started last evening around 08:00 PM and according to the weather forecast will subside later tonight around 10:00 PM. Not a nice day to be outdoors or grilling.

Last Friday my son mentioned that he would be going shopping on Saturday morning to the Costco Minneapolis Business Center Warehouse. My wife and I decided to join him at 07:00 AM (opening time). We met in the parking lot, donned our gloves and mask, and headed in. We have been at the Restaurant Depot many times, but were nicely surprised with the size of the Costco facility and the variety of items. From now on my wife and I will make the trip from home (30 minutes about 20 miles away) a couple times a month to the Costco in Minneapolis. We believe it is worth the drive.

My wife and I cook and bake. I like to bake deserts, breads and Italian cuisine. My wife cooks lunch during the workdays. We both cook on weekends. We have breakfast which I prepare every day and we both skip dinner. The point that I am trying to make is that we did not start cooking or baking due to the coronavirus pandemic.

Last week we noticed that we were running very low on yeast. We went grocery shopping last Tuesday morning and where not able to find yeast at Costco in Eagan, MN or Trader Joe’s in St. Paul. Back home, I went to Amazon.com and ordered a 2 pound pouch of Red Star dry yeast. The total after taxes (we do have Amazon Prime) came to $24.99 USD. I thought it was expensive but it seems that every one and their brother are baking now a day. The delivery will be sometime tomorrow (Monday).

While at Costco we found lots of Red Star dry yeast in the same 2 lb pouches we ordered from Amazon. That is the same yeast we have been using for over a decade. What we found disgusting was that Costco had the same 2 lb pouches of yeast for under $4.50 USD each. We bought two pouches (totaling 4 lbs) for about $9.00 USD. They should last a year or so. Continue reading “Disjoint Union Sets”

Angular in VSCode

!!! UPDATE !!!

As you will read in this post, I stopped working on it at the end of my workday yesterday. Overnight I received a message from a good childhood friend that studied in the USA, received a MS degree in geology, and return to Peru to work. Today he owns a company that employs 60+ people.

I have read on different occasions that some old and readily available medicines seem to work on patients with COVID-19. The severity of the symptoms and the number of days in a hospital has been reduced. The hospital stays are on average five days. When you compare results we are experiencing in North America and Western Europe, our treatment approaches do not seem to be working as well. People continue to die and stays in hospitals are between two and three weeks.

So what is going on?

First and the more obvious idea is that such treatments in Peru and Latin America in general are “fake news”. Could be, but when you look at number of deaths and people who we know are experiencing firsthand the benefits, I think is time to look for other theories.

Second, we live in a country whose economic system is based on Capitalism. Most (never generalize) companies are in business to make the last possible penny of customers at all cost. We have multiple examples (which I will not mention at this time) of companies in which the top executives and stock holders make huge amounts while at the same time many employees and customers are not able to take advantage of lower prices.

The possible conclusion is that Big Pharma backed up by politicians, is only interested in making money so they will delay as much as possible the use of cheap, simple and readily available medicines in favor of the ones in development that could potentially cost millions of deaths and billions of dollars to consumers.

Years ago my wife was seeing a very good doctor in a very good healthcare system. He and his wife, both doctors in medicine, were born in India. They both live in the USA and have built a nice and educated family. My wife asked her doctor for a treatment for nail fungus. Knowing the doctor for years he said that he could prescribe some medicine which is what the hospital suggested, or he could tell her what works in less time and at a fraction of the cost. Dip your feet in warm water with Listerine mouth wash a couple times a week. The issue should disappear in a few weeks. We tried it and it worked.

I did the following Google searches and read some of the articles in the results:

“IVERMECTINA”

“ivermectina coronavirus”

“Ivermectin Wikipedia”

FDA Letter to Stakeholders: Do Not Use Ivermectin Intended for Animals as Treatment for COVID-19 in Humans (https://www.fda.gov/animal-veterinary/product-safety-information/fda-letter-stakeholders-do-not-use-ivermectin-intended-animals-treatment-covid-19-humans)

Ivermectin (https://en.wikipedia.org/wiki/Ivermectin)

Ivermectin, ‘Wonder drug’ from Japan: the human use perspective (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3043740/)

The FDA-approved drug Ivermectin inhibits the replication of SARS-CoV-2 in vitro (https://www.sciencedirect.com/science/article/pii/S0166354220302011)

FAQ: COVID-19 and Ivermectin Intended for Animals (https://www.fda.gov/animal-veterinary/product-safety-information/faq-covid-19-and-ivermectin-intended-animals)

The approved dose of Ivermectin alone not useful in treating COVID-19 (https://www.news-medical.net/news/20200427/Ivermectin-alone-not-useful-in-treating-COVID-19.aspx)

‘Ivermectin can kill COVID-19 within 48 hours’, Monash University study finds (https://www.thepharmaletter.com/article/ivermectin-can-kill-covid-19-within-48-hours-monash-university-study-finds)

Parasite Drug Shows Early Promise Against COVID-19 (https://www.webmd.com/lung/news/20200407/parasite-drug-shows-early-promise-against-covid-19)

My suggestion would be to check if the sources are reliable and make up your own mind. In my humble opinion we need Capitalism 2.0 and Democracy 2.0.

Continue reading “Angular in VSCode”

Object Oriented Programming in Python

!!! UPDATE !!!

Sorry for the formatting issue on most screen captures. Not sure what happened. I went back and pasted the same text as before. It seems to be fine at this time. Not sure what is causing this to happen. Perhaps it is time to look for a better plugin :o(

Unless something changes in the next few days, MN should enter Phase One in the process of “Opening up America Again” next week. Hopefully all will go as planned.

I am not sure if there is something on my Windows computers, but one of the first things I do every day is to power each computer up and log on into Gmail. Most of the times I just click on my user name and my password and I am in Gmail. Now and then, I get prompted to enter a code which is sent as a message to my phone. I have a checkbox selected which should tell Google not to use 2FA on this computer, but it ignores my wishes and requests me to enter the code. Not sure why this is happening. It cannot be so difficult to Google to write such code. If you have comments on this subject please let me know. Continue reading “Object Oriented Programming in Python”

Compose Ranges

It is a rather cold spring day in the Twin Cities of Minneapolis and St. Paul. I believe there is a winter storm warning for today all day. This morning when I got up, there was a thin coating of snow on roofs and lawns. The roads seem to just be wet. One way or the other my wife and I are not planning on going out. We are under lockdown due to the Wuhan virus (also known as COVID-19) pandemic.

Besides work I have been taking a few courses, reading technical documents, reading non-technical stuff and watching the news. As of today April 12, 2020 in Dakota County, MN (I live in the city of Apple Valley which is in Dakota County) the total number of deaths attributed to the pandemic in

Dakota County is 4 which represents 0.001% of the population. The previous count of 3 held for several weeks. In the USA the total number of deaths is 20,411 which represent 0.006% of the population of about 330 million. Seems like in this area we are doing well. No matter which city or country you live in, please keep social distancing and do not leave home unless it is needed. In order to beat the pandemic we all need to follow social distancing until a vaccine is available or until the CDC (do not trust unofficial sources) informs us that it is safe for people that have antibodies for them to resume normal activities. Continue reading “Compose Ranges”