Eclipse Platform Plug-in Development

Explain how to create the eclipse project. References: Wizards and Dialogs Eclipse fragment projects - Tutorial Refer 1. New Project Creation Wizards Every plugin, fragment, feature and update site is represented by a single project in the workspace and allow PDE(Plugin Development Environment) to validate their manifest file(s). File > New > Project... > Plug-in Development Use a Plugin Project if we’re building new functionality. Use a Fragment Project if we need to modify an existing plugin without changing its core code. ...

February 5, 2025 · 6 min · Phong Nguyen

Cpp

See plus plus :) . Refer 1. Introduction C++ was developed as an extension to C. It adds man few features to the C language, and tis perhaps best through of as a superset of C. Step 1: Define the problem that you would like to solve I want to write a program that will … Step 2: Determine how you are going to solve the problem Determine how we are going to solve the problem you came up with in step 1. ...

February 9, 2025 · 3 min · Phong Nguyen

Java Data Structures and Algorithm

May 1, 2025 · 0 min · Phong Nguyen

Java Platform Standard Edition

Java is a programming language created by James Gosling from Sun Microsystems (Sun) in 1991. Java allows to write a program and run it on multiple operating systems. References: Java Platform Standard Edition 8 Documentation Introduction to Java programming - Tutorial 1. Introduction to Java Oracle has two products implement Java SE: JDK (Java SE Development Kit): is a superset of JRE. JRE (Java SE Runtime Environment): provides the libraries, the Java Virtual Machine (JVM) and other components. 1.1. Development Process with Java Source code is first written in .java file. Those source files are then compiled into .class files by the Java compiler( javac). A .class file contains bytecodes(the machine language of the Java VM). The .class file will be run by Java tool as an instance of the Java VM. The Java virtual machine (JVM) is a software implementation of a computer that executes programs like a real machine. Because the Java VM is available on many different OS, the same .class files are capable of running on many OS too. ...

November 12, 2024 · 5 min · Phong Nguyen

Java Basic IO

Explain how to use basic I/O. References: Basic I/O Reading and writing files in Java (Input/Output) - Tutorial 1. I/O Streams An I/O Stream represents and input source or an output destination. A stream is a sequence of data. input stream: is used to read data from source, once item at a time. outputs stream: is used to write data to a destination, once item |at a time. --stream--> 0101010101... ----------> java.io package 1.1. Bytes Streams Bytes Streams is used to perform input and output of 8-bit bytes. All other stream types are built on byte streams. Examples: import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; public class CopyBytes { public static void main(String[] args) throws IOException { FileInputStream in = null; FileOutputStream out = null; try { in = new FileInputStream("xanadu.txt"); out = new FileOutputStream("outagain.txt"); int c; while ((c = in.read()) != -1) { out.write(c); } } finally { if (in != null) { in.close(); } if (out != null) { out.close(); } } } } 1.2. Character Streams Character values is stored using Unicode conventions. Character stream I/O automatically translates this internal format to and from the local character set.( E.g: Western: ASCII, Japan:Shift-JIS) Example: private boolean writeXmlFile(Map<String, String> object, IPath filePath) { try (FileOutputStream outputStream = new FileOutputStream(filePath.toFile())) { XMLStreamWriter writer = XMLOutputFactory.newFactory().createXMLStreamWriter(outputStream, StandardCharsets.UTF_8.name()); writer.writeStartDocument(StandardCharsets.UTF_8.name(), "1.0"); //$NON-NLS-1$ writer.writeStartElement("A"); writer.writeAttribute("xmlns:i", "http://www.w3.org/2001/XMLSchema-instance"); writer.writeAttribute("xmlns", "http://schemas.microsoft.com/2003/10/Serialization/Arrays"); for (Map.Entry<String, String> entry : object.entrySet()) { writer.writeStartElement("A"); writer.writeStartElement("A"); writer.writeCharacters("A"); writer.writeEndElement(); writer.writeStartElement("A"); writer.writeCharacters("A"); writer.writeEndElement(); writer.writeEndElement(); } writer.writeEndElement(); writer.writeEndDocument(); writer.flush(); return true; } catch (IOException | XMLStreamException e) { System.out("Error writing XML file", e); //$NON-NLS-1$ } return false; }

November 14, 2024 · 2 min · Phong Nguyen

English Writing

Learn about English.

December 30, 2024 · 1 min · Phong Nguyen

English Stories

Welcome to this exciting collection of stories inspired by the “4000 Essential English Words” series. 1. The Lion and the Rabbit afraid, agree, angry, arrive, attack, bottom, clever, cruel, finally, hide, hunt, lot, middle, moment, pleased, promise, reply, safe, trick, well A cruel lion lived in the forest. Every day, he killed and ate a lot of animals. The other animals were afraid the lion would kill them all. ...

November 28, 2024 · 84 min · Phong Nguyen

English Grammar

This is where I study English grammar on my own every day. It’s a place where I not only improve my language skills but also discover new grammar rules. Step by step, I am working to become more confident in writing and communicating in English. The journey isn’t easy, but I believe that with patience and effort, I will continue to make progress. 1. Tenses Tenses indicate the time of an action or state of being expressed by a verb. ...

October 13, 2024 · 18 min · Phong Nguyen

UML Syntax Guide

Refer1 Refer1 Introduction Abstract Class: The name of an abstract class, method is shown in italics. An abstract classifier can also be shown using the keyword {abstract} or «abstract» after or below the name. Static: Class (i.e. static) methods and fields are indicated by underlining Constant (i.e. final) fields are indicated via naming convention: constants should be in ALL_CAPS

June 10, 2025 · 1 min · Phong Nguyen