T-Fac 썸네일형 리스트형 [java] RateLimiter MultiThread 예제 plugins { id("java")}group = "org.example"version = "1.0-SNAPSHOT"repositories { mavenCentral()}dependencies { testImplementation(platform("org.junit:junit-bom:5.9.1")) testImplementation("org.junit.jupiter:junit-jupiter") runtimeOnly("mysql:mysql-connector-java:8.0.25") implementation("com.google.guava:guava:31.1-jre") implementation("com.googlecode.json-simple:json-simple:.. 더보기 [java] RateLimiter 예제 public class Main{ public static void main(String[] args) throws InterruptedException { RateLimiterExample rateLimiterExample = new RateLimiterExample(); for(int i = 0; i import com.google.common.util.concurrent.RateLimiter;import java.text.SimpleDateFormat;import java.util.Date;import java.util.Timer;import java.util.TimerTask;public class RateLimiterExample {// publ.. 더보기 전시용 프로그램 더보기 TEST 더보기 [kotlin] spring boot rs232 통신 ( jSerialComm) 사용 mac 환경 dependenciesimplementation("com.fazecast:jSerialComm:2.11.0") sourceimport com.fazecast.jSerialComm.SerialPortimport org.springframework.beans.factory.DisposableBeanimport org.springframework.stereotype.Componentimport java.io.ByteArrayOutputStreamimport java.io.InputStreamimport kotlin.concurrent.Volatile@Componentinternal class SerialWatcher : DisposableBean, Runnable { private val thread: .. 더보기 [mac] serial Port (RS232) 확인 1. 포트 목록 확인 (base) MacBookPro ~ % ls /dev/*.*/dev/cu.BLTH /dev/tty.Bluetooth-Incoming-Port/dev/cu.Bluetooth-Incoming-Port /dev/tty.usbmodem143101 /dev/cu.usbmodem143101 2. 접속해서 통신 확인하기 (base) MacBookPro ~ % screen /dev/tty.usbmodem143101 9600 더보기 [Mac] 캘린더 (구글 계정 및 공유 계정 설정) 1. 캘린더 - 설정 -> 계정탭 ->+ 버튼 클릭 -> 구글 선택 -> 로그인 2. 여기까지 하면 로그인한 계정까지만 보이고 공유한 계정에 대한 일정은 보이지 않음. ㄴ 아래처럼 계정 탭 -> 위임 에서 공유받은 계정선택함. 더보기 [kotlin] mutableListOf 실제로 내부 구현된 자료형은 ArrayList인것으로 보임 val shapes: MutableList = mutableListOf("triangle", "square", "circle",1234)shapes.add(0,"abcd")println("${shapes[5]}") Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 5 out of bounds for length 5 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckInde.. 더보기 이전 1 2 3 4 ··· 12 다음