Skip to main content

Posts

Showing posts from September, 2021

How to import an article in Medium from your blogger?

We can re-publish our article that was published already on another blog page (say Blogger) in Medium.  But how? Here is how. 1. Go to stories and select Import a Story 2. Paste your Blog Article's URL and click Import. 3. You will see this screen, click See your story button 4. Edit as you want and publish it. Beware, don't remove the last line that is automatically generated. Hope this helps.

Grouping Words With Their Counts in Java

In this article, we are going to know how to split the String input (a sentence or a paragraph) into words and count each words’ occurrences. Image by Author The picture above is our problem definition and let’s see how to do this in Java. String text = "We resolve to be brave. We resolve,,  to be good. We resolve to uphold the law according to our oath."; This is the paragraph or input. String textLower = text.toLowerCase(); textLower = textLower.replaceAll("\\W", " "); textLower = textLower.replaceAll("\\s+", " "); String[] words = textLower.split("\\s+"); Here, we have changed all letters to small letters using toLowerCase(). And then we replace characters apart from [a-zA-Z0–9_] with a space using replaceAll(“\\W”, “ ”). We can also replaceAll(“[^a-zA-Z0–9]”, “ ”).  Then we removed the spaces using replaceAll(“\\s+”, “ ”) and added a single space; this is to bypass the additional spaces and consecutive non-word characters

ROS installation in Microsoft Windows 10

  Dear Windows users who have never used Ubuntu or not having an Ubuntu machine but are so passionate about Robotics, this may help you. Earlier, ROS ( Robot Operating System ) was available only in Ubuntu. Now it is also available for Windows.  Today let's know about configuring ROS in our Windows Machine. What do you need actually? You must have  a 64-bit Windows 10 system Also, it is recommended to have at least 10GB of free space in your C:\ drive  for the installation and development. To build  ROS projects for Windows, you must have Visual Studio and the Microsoft SDKs for Windows. You can download a version of Visual Studio (Visual Studio 2019)  here . There are three options to be selected while installing. Visual Studio Community (Free) Visual Studio Professional Visual Studio Enterprise Remember your selection which is very important in near future (I've selected  Visual Studio Community) While installing you have to i nclude  Desktop development with C++  in your wor

War on COVID-19 : Why You Must Act Now

With everything that’s happening around the world about the pandemic Corona Virus 2019 (Known as COVID-19), it might be very hard to take an effective decision of what to do today!  Just ask yourselves that should we wait for more? Beginning from the basic stories, a new virus was first identified in Wuhan, the capital of Hubei province, China. Due to the unexpected rate of hospitalization of similar cases in the city, it got attention. On 31 December 2019, a cluster of pneumonia cases of unknown cause was reported by health authorities in Wuhan. An investigation was launched in early January 2020 by the officials. In the investigation they have found that these cases mostly had links to the Huanan Seafood Wholesale Market (w hich also sells live animals), consequently, the virus is thought to have a zoonotic origin. Zoonotic disease in the sense is an infectious disease caused by bacteria, viruses, or parasites that spread from nonhuman animal hosts (usual vertebrates ) to humans.