전체 글(813)
-
숫자 6자리 임시 비밀번호 만들기
import java.security.SecureRandom;public class TemporaryPasswordGenerator { public static String generateTempPassword() { SecureRandom secureRandom = new SecureRandom(); // Generate a random number between 100000 and 999999 int tempPassword = 100000 + secureRandom.nextInt(900000); return String.valueOf(tempPassword); } public static void main(String[] args) {..
2024.11.19 -
2024.11.17(MESSAGE) Do the Work of an Evangelist! (2 Timothy 4:1-5)
원본: https://www.youtube.com/watch?v=egGla0MeeaQ&t=37sIntroductionRediscovery true thanksgiving in salvation and fulfilling the calling to be an evangelist. Believers are not merely workers but evangelists entrusted with the ministry of saving lives with the gospel of Jesus Christ. The foundation of this calling lies in understanding and holding on to the truth of Jesus Christ as proclaimed in Ma..
2024.11.18 -
Sencha type: 'combobox' 값 변경시, 다른 combobox 변경하기
dependancy가 있는 combobox에 대해서 master 역할을 하는 combobox 변경시, slave combobox 내용 변경하기Ext.create('Ext.container.Container', { renderTo: Ext.getBody(), layout: 'vbox', items: [ { xtype: 'combobox', id: 'comboBox1', fieldLabel: 'Master ComboBox', store: ['Category 1', 'Category 2', 'Category 3'], listeners: { select: fu..
2024.11.18 -
깨진 Hex Code decode 하기
깨진 문구Test \\xED\\x99\\x94\\xEB\\xA9\\xB4 \\xED\\x99\\x94\\xEB\\xA9\\xB4 !!decodeString input = "Test \\xED\\x99\\x94\\xEB\\xA9\\xB4 \\xED\\x99\\x94\\xEB\\xA9\\xB4 !!";// Sanitize the input to keep only valid hexadecimal charactersString decoded = decodeHex2String(input);System.out.println("Decoded String: " + decoded);public static String decodeHex2String(String input) { // A list to collect ..
2024.11.17 -
Spring boot에서 java 변수값을 템플릿에 출력하기
javaimport org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.GetMapping;@Controllerpublic class MyController { @GetMapping("/show-variable") public String showVariable(Model model) { String message = "Hello, Spring Boot!"; model.addAttribute("myVariable", message); // Add the variable to the model ..
2024.11.17 -
원넓이 방정식을 이용한 집합 문제
### 문제 요약1. 주어진 원의 방정식은 x^2 + y^2 = 9으로, 이는 중심이 0, 0, 반지름이 3인 원을 나타냅니다.2. 이 원을 x축 방향으로 a만큼, y축 방향으로 b만큼 평행이동하여 새로운 원 C를 만듭니다. 새로운 원의 방정식은 다음과 같습니다: (x - a)^2 + (y - b)^2 = 9.3. 두 집합 A와 B가 정의됩니다: - A: 원 C가 **x축과 서로 다른 두 점에서 만나는** 모든 a, b의 집합. - B: 원 C가 **y축과 만나지 않는** 모든 a, b의 집합.4. A - B의 크기(원소의 개수)를 구하시오.---### 1단계: 집합 A 분석원 C가 x축과 **서로 다른 두 점에서 만나기 위해**서는, 원의 중심 a, b가 x축에서 반지름 3보다 가까운 거리에..
2024.11.17