Oscar Lo

@oscarlo

Joined on Jun 16, 2023

  • Java Basics: Primitives and Wrapper Classes graph TD; A[Java Basics] --> B[Primitives and Wrapper Classes] B --> B1[Primitive Types] B1 --> B1_1[byte] --> B2[Wrapper Classes] B1 --> B1_2[short] --> B2 B1 --> B1_3[int] --> B2 B1 --> B1_4[long] --> B2 B1 --> B1_5[float] --> B2 B1 --> B1_6[double] --> B2
     Like  Bookmark
  • https://codewave16.github.io/interviewQuestion/ Question 1 import java.util.HashMap; public class PermutationDifference { public static int permutationDifference(String s, String t) { HashMap<Character, Integer> sIndexMap = new HashMap<>(); for (int i = 0; i < s.length(); i++) {
     Like  Bookmark
  • QUERY Desc 基礎查詢 - SELECT 字段列表 FROM
     Like  Bookmark
  • From Zero to know what React is how to create React app ? 去你想add file 既目標路徑 Create Project 用Vite黎start your project Vite :::success npm create vite@latest
     Like  Bookmark
  • title : Optional<T> https://cloud.tencent.com/developer/article/2360289?areaId=106001 用Optional Encapsulate 可能係null既Class,提高Readaibility,Robustness(執行過程中處理錯誤,以及演算法在遭遇輸入、運算等異常時維持正常運作的能力) 避免空指標異常(NullPointerException) 可以避免空指標異常,提高程式碼的健全性和可讀性。 可以減少明確的空值檢查和 null 的使用,使程式碼更簡潔優雅。 可以利用函數式程式設計的特性,實現更靈活和高效的邏輯處理。 可提高程式碼的可測試性,方便進行單元測試和整合測試。 Optional
     Like  Bookmark
  • MacOS kill port : kill -9 `lsof -t -i:8080` windows : windows kill port : <PORT > replace to 8080 step 1 : ==netstat -ano | findstr : <PORT>== step 2 : ==taskkill /PID <PID> /F== winedows kill
     Like  Bookmark
  • You may use VSCode to code your Java & Springboot programs in coming weeks! Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. If you have programming background and want to use "IntelliJ IDEA" instead of VSCode, it's fine, just an IDE. But I would still recommend you to try VSCode, and feel how lightweight it is. 4.1 Install VSCode from Official Site VScode Download - Mac OS 10.11 + Be aware of "apple" or "intel" chip After downloading and install it. Move to Application.
     Like  Bookmark
  • { "editor.fontSize": 15, "window.zoomLevel": 0.1, "terminal.integrated.fontSize": 15, "debug.console.fontSize": 13, "java.debug.settings.forceBuildBeforeLaunch": false, "extensions.ignoreRecommendations": true, // "liveshare.anonymousGuestApproval": "accept", "editor.cursorSmoothCaretAnimation": "on", "java.inlayHints.parameterNames.enabled": "none", // none: no parameterNames
     Like  Bookmark
  • { "editor.fontSize": 15, "window.zoomLevel": 0.1, "terminal.integrated.fontSize": 15, "debug.console.fontSize": 13, "java.debug.settings.forceBuildBeforeLaunch": false, "extensions.ignoreRecommendations": true, // "liveshare.anonymousGuestApproval": "accept", "editor.cursorSmoothCaretAnimation": "on", "java.inlayHints.parameterNames.enabled": "none", // none: no parameterNames
     Like  Bookmark
  • // Place your key bindings in this file to override the defaults [ { "key": "shift+cmd+f", "command": "notebook.formatCell", "when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'" }, { "key": "shift+cmd+f", "command": "editor.action.formatDocument",
     Like  Bookmark
  • // Place your key bindings in this file to override the defaults [ { "key": "shift+ctrl+f", "command": "notebook.formatCell", "when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'" }, { "key": "shift+ctrl+f", "command": "editor.action.formatDocument",
     Like  Bookmark
  • <?xml version="1.0" encoding="UTF-8" standalone="no"?> <profiles version="13"> <profile kind="CodeFormatterProfile" name="GoogleStyle" version="13"> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert" /> <setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off" /> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert" /> <setting id="org.eclipse.jdt.core.formatte
     Like  Bookmark
  • Coggle-blog AWS Certified Cloud Practitioner Exam Account setting & S3 lab AWS Certified Cloud Practitioner - 中文 AWS Certified Cloud Practitioner (CLF-C01) 考試指南
     Like 1 Bookmark
  • My topics and notes used when studying to AWS Certified Cloud Practitioner (CLF-C01) Examination Goal The AWS Certified Cloud Practitioner (CLF-C01) examination is intended for individuals who have the knowledge, skills, and abilities to demonstrate basic knowledge of the AWS platform, including: Available services and their common use cases AWS Cloud architectural principles (at the conceptual level) Account security and compliance.
     Like 1 Bookmark
  • MFA - Multi-factor authentication -> avoid force break these step for protect root account 1.螢幕截圖 2024-01-25 上午10.18.41 2.螢幕截圖 2024-01-25 上午10.20.01 3.螢幕截圖 2024-01-25 上午10.20.19 ==you can download FreeOTP / Google Authenticator== scan QR Code
     Like  Bookmark
  • Software Prerequisites Step 1: Install JDK 1.8 or Above Visit the Azul website: [Azul Downloads] https://www.azul.com/downloads/?version=java-17-lts&package=jdk#zulu Download the JDK version 1.8 or above based on your operating system. Download and install it (as of 22-Jun, version up to 17.42.19). Follow the steps to complete the installation. Apple chip, go for ARM 64-bit Intel chip, go for 86 64-bit [Result check]
     Like  Bookmark
  • [```markmap 1. Primitive Conversion 1.1 Upcasting1.1 Upcasting(Implicit Conversion / Promotion) 1.2 Downcasting 2. String Method 2.1 isBlank() 2.2 isEmpty()
     Like  Bookmark
  • Basic Syntax 1. HelloWorld public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } } 2. Variable and Primitive type 2.1.1 int int integerVariable = 10;
     Like  Bookmark
  • Outh Encryption and DecryptionKeys Public key & Private Key Authentication Outh2.0 Access Token & Refresh Token What is Cryptography Cryptography is used to secure and protect data during communication. It is helpful to prevent unauthorized person or group of users from accessing any confidential data.
     Like  Bookmark
  • thread DeadLock CompletableFuture Thread 應用場景: 並行執行任務: 當某些任務可以獨立執行時,可以使用線程實現並行處理,提高程序的執行效率。 非阻塞執行: 在需要執行一些可能耗時的操作時,可以將這些操作放在獨立的線程中,從而不阻塞主程序的執行。 定時任務: 使用線程可以實現定時執行的任務,例如定時更新某些數據、定時檢查某些條件等。 多用戶請求處理: 在服務器應用中,每個用戶的請求可以在獨立的線程中處理,從而實現多用戶同時訪問。
     Like  Bookmark