안녕하세요. 영한 선생님 강의를 듣는 도중 궁금한 부분이 생겨 문의 드립니다. Team team = new Team() ; team.setName( "TeamA" ) ; //1차 캐시에 저장 em.persist(team) ; Member member = new Member() ; member.setUsername( "memberA" ) ; member.setTeam(team) ; //1차 캐시에 저장 em.persist(member) ; //??? team.getMembers().add(member) ; //1차 캐시에서 조회 Team findTeam = em.find(Team. class, team.getId()) ; List<Member> members = findTeam.getMembers() ; 위에 소스중 team.getMembers().add(member) 이부분에서 1차 캐쉬의 team이 업데이트 되는건가요?? 또, 1차 캐쉬의 형태는 테이블 구조가 아닌, 객체구조가 맞나요??
머신러닝 실무 강의 정말 잘 듣고 있습니다. 수강평 남겼습니다. 기존 여타 인공지능 수업과 달리 소프트웨어공학을 접목한 실무적인 내용이 정말 도움이 많이 되었습니다. 앞으로도 실무에 도움이 될만한 좋은 강의 많이 부탁드리도록 하겠습니다. 감사합니다. email: hgk0426@tta.or.kr
안녕하세요. 강의를 듣고 궁금한 점이 생겨서 여쭤봅니다. 이러한 모양의 테이블이나 이보다 더 복잡한 테이블의 셀안의 값을 표현하고자 할때의 질문이 있습니다. 저러한 모양의 스키마를 짜서 내장이나 populate하는 것은 document가 길어질 수록 셀에 표현될 값을 탐색하는데 어려움이 있습니다. 그렇다고 각 셀마다 저기에 맞는 값을 호출해서 표현하기에는 그림의 셀만해도 서버를 18번 호출하는 것으로 보여서 망설여집니다. 이러한 복잡한 테이블을 표현할때 Mongodb의 좋은 스키마를 짜는 방법이 있는지 궁금합니다.
https://www.inflearn.com/course/%EC%9B%B9%ED%88%B0-%ED%81%B4%EB%A6%BD%EC%8A%A4%ED%8A%9C%EB%94%94%EC%98%A4-3/lecture/61648?tab=curriculum 1강도3강도 소리가 안들려요
[개정판 2023-11-27] Spring Boot 3.x 를 이용한 RESTful Web Services 개발
isPresen t 와 orElseThrow 의 차이점에 대해 문의 드립니다. Optional 을 공부하다보니 에러처리를 동시에 하는 함수가 있어서 사용해보았습니다. 제가 생각할때는 변수에 저장하지 않고 바로 사용하는 부분이 장점 같았는데, 두 방식에서 내부동작의 차이점이 있는지 궁금합니다. Optional < User > findById = userRepository . findById ( id ); if (! findById . isPresent ()) { throw new UserNotFoundException ( id ); } userRepository . findById ( id ). orElseThrow (() -> new UserNotFoundException ( id ))
해당 클래스를 실행하면 오류가 납니다. 일단 강의에서 회원관리 예제 강의를 듣기 전까지 수업 관련 코딩은 오류없이 잘 구동 됐었습니다. 근데 여기서부터 막히는것 같습니다. MemoryMemberRepositoryTest를 run하면 아래와 같은 에러가 납니다. > Task :compileJava UP-TO-DATE > Task :processResources UP-TO-DATE > Task :classes UP-TO-DATE > Task :compileTestJava FAILED C:\Users\����\Desktop\study\hello-spring\src\test\java\hello\hellospring\repository\MemoryMemberRepositoryTest.java:25: error: no suitable method found for assertThat(Member) assertThat(member).isEqualTo(result); ^ method MatcherAssert.<T#1>assertThat(String,T#1,Matcher<? super T#1>) is not applicable (cannot infer type-variable(s) T#1 (actual and formal argument lists differ in length)) method MatcherAssert.<T#2>assertThat(T#2,Matcher<? super T#2>) is not applicable (cannot infer type-variable(s) T#2 (actual and formal argument lists differ in length)) where T#1,T#2 are type-variables: T#1 extends Object declared in method <T#1>assertThat(String,T#1,Matcher<? super T#1>) T#2 extends Object declared in method <T#2>assertThat(T#2,Matcher<? super T#2>) C:\Users\����\Desktop\study\hello-spring\src\test\java\hello\hellospring\repository\MemoryMemberRepositoryTest.java:26: error: cannot find symbol Assertions.assertThat(member).isEqualTo(result); ^ symbol: method assertThat(Member) location: class Assertions C:\Users\����\Desktop\study\hello-spring\src\test\java\hello\hellospring\repository\MemoryMemberRepositoryTest.java:41: error: no suitable method found for assertThat(Member) assertThat(result).isEqualTo(member1); ^ method MatcherAssert.<T#1>assertThat(String,T#1,Matcher<? super T#1>) is not applicable (cannot infer type-variable(s) T#1 (actual and formal argument lists differ in length)) method MatcherAssert.<T#2>assertThat(T#2,Matcher<? super T#2>) is not applicable (cannot infer type-variable(s) T#2 (actual and formal argument lists differ in length)) where T#1,T#2 are type-variables: T#1 extends Object declared in method <T#1>assertThat(String,T#1,Matcher<? super T#1>) T#2 extends Object declared in method <T#2>assertThat(T#2,Matcher<? super T#2>) C:\Users\����\Desktop\study\hello-spring\src\test\java\hello\hellospring\repository\MemoryMemberRepositoryTest.java:55: error: no suitable method found for assertThat(int) assertThat(result.size()).isEqualTo(2); ^ method MatcherAssert.<T#1>assertThat(String,T#1,Matcher<? super T#1>) is not applicable (cannot infer type-variable(s) T#1 (actual and formal argument lists differ in length)) method MatcherAssert.<T#2>assertThat(T#2,Matcher<? super T#2>) is not applicable (cannot infer type-variable(s) T#2 (actual and formal argument lists differ in length)) where T#1,T#2 are type-variables: T#1 extends Object declared in method <T#1>assertThat(String,T#1,Matcher<? super T#1>) T#2 extends Object declared in method <T#2>assertThat(T#2,Matcher<? super T#2>) Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 4 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileTestJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 3s 3 actionable tasks: 1 executed, 2 up-to-date 그리고 화면 내에 store 에 저렇게 음영이 져있는데 어떻게 해야할지 모르겠습니다. store에 알트엔터누르면 나오는 메뉴에서 뭘 선택해야 할지 모르겠습니다 .ㅜ 그리고 상단에 저렇게 오류가 나는데 어떤식으로 접근해서 어떻게 해결을 해야할지 잘 감이 오질 않습니다. 알려주시면 배우겠습니다. 부탁드립니다.
png파일을 간단하게 --------------------- import header_logo from '@images/headImg.jpeg' ; < Header > < img src = {header_logo} /> </ Header > --------------------- 이런식으로 해보았는데 잘 안되어서 images폴더 따로 만들고 그 안에 types 폴더에 images.d.ts파일을 만들었습니다. 그 안에 내용으로 declare module '*.jpg' ; declare module '*.jpeg' ; declare module '*.png' ; 이런식으로 채워 넣고 tsconfig.json에 { "compilerOptions": { ... "typeRoots" : [ "node_modules/@types" , "@images/types" ], ... }, } 이렇게 해놓았습니다. 그런데 이런 오류가 떴습니다.. 무엇을 추가해야 이미지 업로드를 할 수 있을까요..
[개정판 2023-11-27] Spring Boot 3.x 를 이용한 RESTful Web Services 개발
@ GeneratedValue ( strategy = GenerationType . SEQUENCE ) @ GeneratedValue ( strategy = GenerationType . IDENTITY ) @ GeneratedValue ( strategy = GenerationType . AUTO ) @ GeneratedValue ( strategy = GenerationType . TABLE ) JPA에서 지원되는 PK생성 전략을 네가지로 확인했습니다. 찾아보니 DB 에 따라 Oracle 이면 Sequence, MySQL 쪽이면 Identity 를 사용한다는 걸 알게 되었고, Identity 는 현재 생성된 키 값을 기준으로 증가한다는 것을 확인했습니다. 그렇다면 Sequence, Auto 그리고 Table 의 차이점이나 주로 어떻게 사용이 구분되는지 알고 싶습니다.
제가 해결한 방법을 공유 하겠습니다. 당시 뜨던 에러 코드는 uncaught SyntaxError: Unexpected token a in JSON at position 0 였는데요. 쌩뚱맞게 JSON 에러가 떠서 뭐지..? 하고 구글링하다가 혹시 localstorage에 이상한 값이 있나 확인해봤더니 이상한 데이터들이 많이 있더라구요..ㅎㅎ 한번 싹 삭제하고 다시 브라우저를 켰더니 정상 작동합니다! 도움이 되셨으면 좋겠습니다 ㅎㅎ
크리애플에서 다운한 코드를 아톰, 주피터 노트북 등에서 실행해 봤는데 MNIST 프로그램 까지는 잘 실행되다가 START 버튼만 누르면 Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\user\anaconda3\lib\tkinter\__init__.py", line 1892, in __call__ return self.func(*args) File "<ipython-input-6-54c6b8741b7c>", line 11, in <lambda> Button(main,text="Start", height=2,command=lambda:start()).grid(row=1, column=2, columnspan=2, sticky=(W, E)) File "<ipython-input-3-e1319df94fc9>", line 9, in start detectAndDisplay() File "<ipython-input-4-2cc9d550129d>", line 3, in detectAndDisplay width = frame.shape[1] AttributeError: 'NoneType' object has no attribute 'shape' 위 에러 내용으로 실행이 안됩니다. digits_model.h5 파일을 못 읽어오나 싶어서 절대경로로 변경도 해보고 여러 시도를 해봤지만 검색해도 정보는 부족하고 실행이 되질 않네요. 도움 부탁드립니다.
안녕하세요. 강의를 보다가 궁금한 점이 있어 질문 남깁니다. 만약 /aaa 디렉토리가 있고 그안에 aaa.txt, bbb.txt, ccc.txt 라는 파일이 있을때요. /aaa 라는 디렉토리 안에 aaa.txt, bbb.txt, ccc.txt 라는 파일이 있는줄 알수 있는 이유가 inode가 가르키는 File Data 란곳에 aaa.txt, bbb.txt, ccc.txt 라는 파일의 각각의 Directory Entry 가 3개가 배열이나 리스트로 저장되어 있기 때문인가요? (만약 디렉토리 별로 . 이랑 .. 까지 있다고 한다면 5개가 되겠네요 <- 이것도 질문입니다) 만약 그렇다면 inode가 가르키는 File Data 라는 부분에는 텍스트파일이나 이진파일같은 일반파일 같은경우 실제 데이터가 저장되어 있는거고 만약 디렉토리라면 그안에 들어있는 Directory Entry 목록을 가지고 있다고 생각하면 될까요? 그리고 하드링크랑 원본파일이랑 차이점이 있나요? 그냥 링크의 개념을 설명하기 위해 나눈건가요? 만약 차이가 없다면 예를 들어 touch originalFile 이라고 했을때 이 원본파일을 하드링크파일이라고 말해도 되는 건가요? 아님 명시적으로 ln 명령을 이용해서 하드링크를 만든 파일만 하드링크파일이라고 불러야 하는건가요?