Python – WordCloud in Japanese – VS Code on Ubuntu No.90

How to implement Word Cloud in Japanese using python in Visual Studio Code on Ubuntu is shown in this blog. Contents ▼1. What is WordCloud?▼2. Prerequisites2-1. Preparing for Python environment2-2. Installing WordCloud2-3. Downloading Japanese Font2-4. Copying Japanese text from Wiki2-5. Starting VS Code▼3. Let’s run WordCloud using Python 3-1. Creating Python code to run WordCloud3-2. Result▼4. Reference▼1. What is WordCloud? WordCloud is a visualization tool to show the valuable word using the size of a word based on the frequency. The wiki of 2022 FIFA Qatar world cup is used for the wordcloud in Japanese. 2022 FIFAワールドカップ ▼2. Prerequisites 2-1. Preparing for Python environment Python – Visual Studio Code の利用 … Continue reading “Python – WordCloud in Japanese – VS Code on Ubuntu No.90”

Java – Creating sample data for SQL Server on Ubuntu No.89

In this blog, how to create sample records for SQL Server on Ubuntu using Java is shown. Contents ▼1. Creating sample data using Java▼2. Prerequisites2-1. Checking Java – Generating the sample data on SQL Server No.87 to execute below.▼3. Creating sample data for SQL Server by Java3-1. Create an Apache Maven project3-2. Remove the existed both App.java and AppTest.java3-3. Start Visual Studio Code3-4. Update pom.xml as below to run query on SQL Server and save it (Ctrl+S)3-5. Creating Java code sqlsample2.java3-6. Results of this code▼4. Reference▼1. Creating sample data using Java In the past blog, these blogs are shared. they use .sql file to create data by sqlcmd. In this … Continue reading “Java – Creating sample data for SQL Server on Ubuntu No.89”

Java – Calculate the compound interest No.88

How to calculate the compound interest using Java in VS code on Ubuntu is shown in this blog. Contents ▼1. Calculate the compound interest▼2. Prerequisites2-1. Installing Visual Studio Code2-2. Installing Maven2-3. Creating a project by Apache Maven2-4. Removing the existed both App.java and AppTest.java2-5. Starting Visual Studio Code▼3. Calculating compound interest by Java3-1. Creating a Java file to calculate compound interest3-2.  Error happens without inputs3-3, Setting lunch.json for the initial parameters3-4. The results by Debug3-5. Principal, Rate, time/Years can be changed and can be recalculated.▼4. Reference▼1. Calculate the compound interest Rob advisor “WealthNavi” and accumulation NISA and private government bounds etc are executed by myself. the compound interest is implemented … Continue reading “Java – Calculate the compound interest No.88”

Java –Save records for MySQL into Azure Blob Storage No.86 

In this blog, how to save the results of select query for MySQL into Azure Blob Storage by Java. Contents ▼1. Prerequisites1-1. Install MySQL and create a table with some records▼2. Save the results of select for MySQL on Ubuntu into Azure Blob Storage by Java2-1. Create an Apache Maven project2-2. Remove the existed both App.java and AppTest.java2-3. Start Visual Studio Code2-4. Update pom.xml as below and save it (Ctrl+S)2-5. Save the results of select for MySQL into Azure Blob Storage2-6. Run the code▼3. Reference▼1. Prerequisites 1-1. Install MySQL and create a table with some records Java – Connect to MySQL on Ubuntu and run select query No.80 # Create a table … Continue reading “Java –Save records for MySQL into Azure Blob Storage No.86 “

Java -Save the results of select for MySQL into a file No.85

In this blog, how to save the results of select for MySQL on Ubuntu into a file is shown. Contents ▼1. Prerequisites1-1. Install MySQL and create a table with some records▼2. Save the results of select for MySQL on Ubuntu into a file by Java2-1. Create an Apache Maven project2-2. Remove the existed both App.java and AppTest.java2-3. Start Visual Studio Code2-4. Update pom.xml as below and save it (Ctrl+S)2-5. Save the results of select for MySQL on Ubuntu into a file2-6. Run the code▼3. Reference▼1. Prerequisites 1-1. Install MySQL and create a table with some records Java – Connect to MySQL on Ubuntu and run select query No.80 # Create … Continue reading “Java -Save the results of select for MySQL into a file No.85”

PowerShell – Visual Studio Code on Ubuntu No.84

In this blog, How to run PowerShell in visual Studio code on Ubuntu is shown. Contents ▼1. Run PowerShell in Visual Studio Code on Ubuntu▼2. Prerequisites2-1. Set up Ubuntu 20.04.2 LTS2-2. Install Visual Studio Code2-3. Install PowerShell Extension by the command2-4. Install PowerShell by the command on Ubuntu 20.4▼3. Run PowerShell in VS Code on Ubuntu3-1. Make a directory3-2. Create test.txt file3-3. Start Visual Studio3-4. Run PowerShell in Visual Studio Code▼4. Reference▼1. Run PowerShell in Visual Studio Code on Ubuntu We can run PowerShell on not only Windows OS but also Ubuntu 20.4 and MacOS 11 as below. PowerShell editing with Visual Studio Code ▼2. Prerequisites 2-1. Set up Ubuntu … Continue reading “PowerShell – Visual Studio Code on Ubuntu No.84”

Scala – Visual Studio Code on Ubuntu No.83

How to execute Scala application in Visual Studio Code on Ubuntu is shown in this blog. Contents ▼1. Run Scala code in Visual Studio Code on Ubuntu▼2. Prerequisites2-1. Install Ubuntu 20.04.2 LTS2-2. Install Visual Studio Code2-3. Install JDK2-4. Install Maven2-5. Install Scala (Metals) release version▼3. Run Scala application to print Hello World3-1. Create a project by clicking Metals3-2. Use template of Scala33-3. Set the path of a Scala project3-4. Choose No about opening a new window3-5. import build3-6. Start Debugging4. Preference▼1. Run Scala code in Visual Studio Code on Ubuntu Scala or PySpark application on Apache Spark cluster is generally used. how to deploy Scala application in Visual Studio Code … Continue reading “Scala – Visual Studio Code on Ubuntu No.83”

Java – Search YouTube using YouTube Data API on Ubuntu No.82

In this blog, how to search YouTube videos using YouTube Data API on Ubuntu is shown. Java application is executed in Visual Studio Code on Ubuntu. Contents ▼1. How to get API Key for YouTube Data API▼2. Prerequisites2-1. Install JDK2-2. Install Visual Studio Code2-3. Install Maven▼3. Java code to search videos using YouTube Data API3-1. Create an Apache Maven project3-2. Remove the existed both App.java and AppTest.java3-3. Start Visual Studio Code3-4. Create youtube.properties3-5. Update pom.xml as below and save it (Ctrl+S)3-6. Develop youtubesearch.java3-7. Run youtubesearch.java3-8. Check the link of YouTube using Video id▼4. Reference▼1. How to get API Key for YouTube Data API After creating a project and enabling YouTube … Continue reading “Java – Search YouTube using YouTube Data API on Ubuntu No.82”

Java – Put CPU % into a local file by Cron job No.81

How to save the current CPU % on Ubuntu into a local file by Cron job with an execution of Jar is shown in this blog. Contents ▼1. How to export the current CPU % on Ubuntu▼2. Prerequisites▼3. Java code to export the current CPU % on Ubuntu3-1. Develop perfch2.java3-2. Export Jar file3-3. Set execution time in Crontab3-4. Check the saved file after running a cron Job▼4. 参考情報▼1. How to export the current CPU % on Ubuntu The command “top -b -n 1” is executed by Java and save only CPU % into a file. ▼2. Prerequisites This blog is based on Java – Capture CPU,Memory,Network info on Ubuntu No.79. … Continue reading “Java – Put CPU % into a local file by Cron job No.81”

Java – Capture CPU,Memory,Network info on Ubuntu No.79

In this blog, how to capture CPU, Memory, Disk, Network information by Java is shown.it would be helpful if you need narrow down the issue about connection failure to Database to find a root cause. Contents ▼1. How to know CPU, Memory, Network status on Ubuntu▼2. Prerequisite2-1. Install JDK2-2. Install Visual Studio Code2-3. Install Maven▼3. Deploy Java application to capture CPU, Memory, Network, Disk status on ubuntu and save a file locally.3-1. Create an Apache Maven project3-2. Remove the default created App.java and AppTest.java files3-3. Start Visual Studio Code3-4. Add below into pom.xml file3-5. Develop perfch.java3-6. Check the output file “perf.log”▼4. Reference▼1. How to know CPU, Memory, Network status on … Continue reading “Java – Capture CPU,Memory,Network info on Ubuntu No.79”