Computer Hippocampus
  • 홈
  • 태그
  • 방명록
  • 메뉴 닫기
  • 글작성
  • 방명록
  • 환경설정
    • 분류 전체보기 (176)
      • Daily Records (0)
      • Coding Test 관련(with Kotlin) (0)
      • Android Dev (87)
        • NowInAndroid (7)
        • NaimanProject (0)
        • Compose (21)
        • Navigation (4)
        • Google Billing API (4)
        • Test Firebase Chatting App (12)
        • Login API 정리 (0)
        • Error logs (0)
      • 코틀린(Kotlin, Java) (14)
      • Swift (12)
        • codingTest (0)
      • Spring Boot (1)
      • Scala (3)
      • Js (0)
      • Programming Theory (13)
        • Functional Programming (2)
        • Design Pattern (0)
        • Generics (3)
        • 비동기 패러다임(Asynchronous Para.. (0)
        • 코루틴(Coruotine) (8)
        • Rxjava (0)
      • 파이어베이스(Firebase) (0)
      • 프로그래밍 팁 (1)
      • SystemVerilog (2)
      • Adobe (4)
        • 포토 일러스트레이터 (4)
        • Premiere pro (0)
      • Github 팁 (3)
      • RiscV (2)
        • Wake (1)
      • Linux (2)
      • CSS (4)
      • 회사 관련 (0)
  • 홈
  • 태그
  • 방명록
Scala

Scala - Annotation Customizing Example.

// Create Annotation `Mammal` class Mammal(indigenous:String) extends scala.annotation.StaticAnnotation // Annotate class Platypus as a `Mammal` @Mammal(indigenous = "North America") class Platypus{} object Maker extends App{ val platypusType = u.typeOf[Platypus] val platypusSymbol = platypusType.typeSymbol.asClass platypusSymbol.annotations.foreach{ anItem => anItem.tree.children.tail.foreach{ ..

2022. 4. 20. 15:29
RiscV

Chisel Modules trial

*참고 Tilelink의 경우 valid = true후 ready가 오지 않더라도 valid를 false로 바꾸고 끝낼 수 있도록 설계되어있다. 이 때문에 아래 나오게될 "Decoupled" 를 기반으로 한 readyValid IO를 사용한다. AXI protocol의 경우 valid = true후 ready가 올때까지 대기해야만한다. 따라서 valid = false가 되지 않도록 해야하므로 "Irrevocable"를 기반으로 한 readyValid IO를 사용한다. Valid - valid - bits Decoupled - valid - bits - ready - fire - Bool that is true if and only if ready & valid - enq(data) - Sends data..

2022. 4. 15. 10:46
Android Dev/Compose

Dagger Hilt Testing Error - error: cannot find symbol @ScopeMetadata, @QualifierMetadata

https://stackoverflow.com/questions/71328577/dagger-hilt-testing-error-error-cannot-find-symbol-scopemetadata-qualifier implementation 'com.google.dagger:dagger:2.41' kapt 'com.google.dagger:dagger-compiler:2.41' 를 추가해준다

2022. 3. 10. 23:36
Android Dev/Compose

jcenter() deprecated에 따른 repository파일 부재(bad gate way) 문제 해결(ex : ucrop)

오픈소스가 더이상 업데이트 되지 않는 경우, 해당 파일을 로컬 바이너리 종속성으로 추가하여 관리할 필요성이 생길수 있다. 이에 따라 jar, aar파일을 해당 라이브러리 경로에서 다운받고 모듈의 하위 패키지를 하나 만든 뒤(예: libs) 여기에 aar과 jar파일 등을 implemenation하면된다. 아래와 같은 경로를 dependencies에 추가해준다 implementation files( 'libs/ucrop-2.2.6-native.aar', 'libs/ucrop-2.2.6-native-sources.jar' ) 혹은 implementation fileTree(dir : 'libs', include: ['*.jar']) 위와 같이 모든 파일을 포함할 수 도 있다.

2022. 3. 4. 01:25
Android Dev/Compose

Classes trial, variable initializing

Classes | Kotlin kotlinlang.org 1. 아래 primary 생성자을 사용한 변수 선언방법은 동일하다. (consteructor를 생략가능) class Person constructor(firstName: String) { /*...*/ } class Person(firstName: String) { /*...*/ } 2. Class 정의시에 매개변수를 val, var 없이 사용하는 경우. open class Test(val val0 : Int){ fun fun0(){ println(val0) } } 위의 코드에서 fun1()에 val1을 할당하는 것은 불가능하다. val/var를 생성자에서 생략하면 매개변수에 액세스할 수 있는 유일한 위치는 생성 시 평가되는 init block 이..

2022. 2. 28. 13:21
코틀린(Kotlin, Java)

Array 배열값 행렬 재배치

val testArray = Array(3) { Array(3){""}} testArray[0][0] = "abc" testArray[0][1] = "def" testArray[0][2] = "ghi" testArray[1][0] = "qwe" testArray[1][1] = "rty" testArray[1][2] = "uio" testArray[2][0] = "asd" testArray[2][1] = "fgh" testArray[2][2] = "jkl" 행렬을 바꾸고자 하면 아래와 같이.. val testArray2 = Array(3) { Array(3){""}} repeat(testArray[0].size){ order -> testArray.forEachIndexed { index, strings ..

2022. 2. 27. 23:31
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • ···
  • 30
  • »

공지사항

전체 카테고리

  • 분류 전체보기 (176)
    • Daily Records (0)
    • Coding Test 관련(with Kotlin) (0)
    • Android Dev (87)
      • NowInAndroid (7)
      • NaimanProject (0)
      • Compose (21)
      • Navigation (4)
      • Google Billing API (4)
      • Test Firebase Chatting App (12)
      • Login API 정리 (0)
      • Error logs (0)
    • 코틀린(Kotlin, Java) (14)
    • Swift (12)
      • codingTest (0)
    • Spring Boot (1)
    • Scala (3)
    • Js (0)
    • Programming Theory (13)
      • Functional Programming (2)
      • Design Pattern (0)
      • Generics (3)
      • 비동기 패러다임(Asynchronous Para.. (0)
      • 코루틴(Coruotine) (8)
      • Rxjava (0)
    • 파이어베이스(Firebase) (0)
    • 프로그래밍 팁 (1)
    • SystemVerilog (2)
    • Adobe (4)
      • 포토 일러스트레이터 (4)
      • Premiere pro (0)
    • Github 팁 (3)
    • RiscV (2)
      • Wake (1)
    • Linux (2)
    • CSS (4)
    • 회사 관련 (0)
애드센스 광고 영역
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

태그

MORE

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote Copyright © Computer Hippocampus All rights reserved. TistoryWhaleSkin3.4

티스토리툴바