Java -AutoRetry connection by JDBC Driver for SQLServer No53

How to implement auto retry with some internal by Java is shown in this blog. the connection string using Microsoft JDBC Driver for SQL Server “Connection String” has a feature of auto retry with some internal. Contents ▼1. Auto retry with some interval feature of Connection String of Microsoft JDBC Driver for SQL Server (Version 9.4 以上)▼2. Writing Java code to implement auto-retry when failing to connect to SQL Server2.2. Showing logs when the connection succeeded.2.3. Showing logs when the connection failed▼3. Reference▼1. Auto retry with some interval feature of Connection String of Microsoft JDBC Driver for SQL Server (Version 9.4 以上) As the mandatory setting for a cloud service, … Continue reading “Java -AutoRetry connection by JDBC Driver for SQLServer No53”

Python -Create, write and read file -VS Code on Ubuntu No.35

How to create, write and read a file using Python in Visual Studio Code on Ubuntu is shown in this blog. Contents ▼1. Creating, write and read a file using Python▼2. Prerequisites▼3. Creating a JSON file and then reading it by Python3-1. Creating a JSON file3-2. Creating, writing and reading a JSON file using Python code3-3. Runnig writes.py▼4. Reference▼1. Creating, write and read a file using Python open() function is used to create a file or edit a file. there are 2 elementary parameters of open() Python function for specifying a file name and the mode of a file operation. There are some modes as below. Mode Description ‘r’ open … Continue reading “Python -Create, write and read file -VS Code on Ubuntu No.35”

Python – Using Visual Studio Code on Ubuntu No.34

How to run python code in Visual Studio Code on Ubuntu is shown in this blog. Contents ▼1. Let’s write python code in Visual Studio Code▼2. Prerequisites2-2. Installing Visual Studio Code2-3. Installing Python extension2-4. Installing Python interpriter2-5. Starting VS Code▼3. Showing Hello World using Python3-1. Creating python code3-2. Run the Python code3-3. How to debug the python code▼4. 参考情報▼1. Let’s write python code in Visual Studio Code In Visual Studio Code, there are many available programming languages. e.g) Java, C, C++, Python etc on Windows OS, Mac OS and Linux. in this case, I will try to use python. Python doesn’t require compile and it’s an interpreted language. Ref: Get … Continue reading “Python – Using Visual Studio Code on Ubuntu No.34”

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”

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”

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”

Apache Kafka – Develop Producer Java application No.66

How to develop Producer application by Java on Visual Studio Code is shown in this blog. Contents ▼1. Apache Kafka ▼2. Prerequisites▼3. Develop Producer Java application3-1. Make a directoryMake a directory to develop an application.3-2. Create a project using Apache Maven3-3. Remove the App.java and AppTest.java files3-4. Update pom.xml file3-5. Develop Producer application3-6. Execute Producer application3-7. Retrieve the generated data▼4. Reference▼1. Apache Kafka Ref: Apache Kafka ▼2. Prerequisites Install Apache Kafka 4 nodes No.42 Apache Kafka Word Count – Java No.44“2-3. Installing Apache Maven” ▼3. Develop Producer Java application This producer Java application write events from 1 to 100 into a topic. 3-1. Make a directoryMake a directory to develop … Continue reading “Apache Kafka – Develop Producer Java application No.66”

Java – Visual Studio Code on Ubuntu No.24

In this blog, How to run Java on Visual Studio Code on Ubuntu is shown. Contents ▼1. Run Java using Visual Studio Code on Ubuntu▼2. Prerequisites2-1.Install Ubuntu Ubuntu 20.04.5 LTS2-2. Setup Visual Studio Code2-3. Install Java Extension Pack2-4. Install JDK (OpenJDK 15)2-5. Set Environment variables for java.configuration.runtimes and java.home▼3. Show Hello World by Java3-1. Create Folder “JavaTest” and Hello.java file3-2. Press F5 key on VS Code or Click Run Java3-3. Create Jar file and run this jar3-4. Run the generated jar file in the terminal▼1. Run Java using Visual Studio Code on Ubuntu Visual Studio Code is the developer tool provided by Microsoft. Visual Studio Code works on both Windows … Continue reading “Java – Visual Studio Code on Ubuntu No.24”