묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결따라하며 배우는 NestJS
jwt 토큰 생성중에 질문있습니다
안녕하세요. 이렇게 질 좋은 강의를 무료로 열어주신 것에 먼저 감사드립니다. 제가 아직 잘 못따라가서인지 모르겠지만 현재 controller, service, repository 세부분을 나누어서 역할을 구분짓고 있습니다 controller에선 엔드포인트 설정해주고 service에선 목적에 맞게 값을 리턴해서 controller에 올려주고 repository에선 DB와 교환이 발생하는 부분은 여기서 관리하고 있습니다 영상에서는 service에서 토큰을 생성후에 객체안에 담아서 accessToken을 넣어주고 있습니다 하지만 저는 repository에서 토큰을 생성후에 토큰을 담아주고 싶은데 Cannot read properties of undefined (reading 'sign') 오류가 나옵니다 구글링을 해보았지만 모듈에 있는 import부분을 건드리라는 말밖에 없는것 같아 질문을 드립니다 현재 제가 작성한 코드는 영상과 전부 같게 작성했고 단지 jwtService:JwtService 선언한 부분만 추가해 주었습니다 왜 sign부분을 읽지 못하는걸까요..? 너무 궁금합니다 * 영상대로 진행하면 제대로 토큰값을 반환합니다! * import { ConflictException, InternalServerErrorException, NotFoundException, UnauthorizedException } from "@nestjs/common"; import { EntityRepository, Repository } from "typeorm"; import { CreateUserDto, UserLoginDto } from "./dto/user.dto"; import { UserStatus } from "./user-status-validation"; import { User } from "./user.entity"; import * as bcrypt from 'bcryptjs' import { JwtService } from "@nestjs/jwt"; @EntityRepository(User) export class UserRepository extends Repository<User> { private jwtService: JwtService; async signIn(userLoginDto:UserLoginDto): Promise<{accessToken:string}>{ const { userid, password } = userLoginDto const user = await this.findOne({ userid }) if(user && (await bcrypt.compare(password, user.password ))){ const payload={userid} const accessToken= await this.jwtService.sign(payload) return {accessToken:accessToken} } else { throw new UnauthorizedException('login failed') } } }
-
미해결[신규 개정판] 이것이 진짜 크롤링이다 - 기본편
엑셀 내용 저장
안녕하세요 스타트 코딩님 엑셀에 내용을 저장하는 부분이 잘 되지 않아 질문드립니다. 처음에 아래와 같은 mkl-service 패키지 관련 에러가 발생해 관련 해당 사이트를 통해 install하였으나 C:\Users\user\anaconda3\lib\site-packages\numpy\__init__.py:143: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service from . import _distributor_init 설치 후 코드에 from . import _mklinit 위 코드를 입력하였는데도 C:\Users\user\anaconda3\lib\site-packages\numpy\__init__.py:143: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service from . import _distributor_init Traceback (most recent call last): File "C:\startcoding_crawling\02_파이썬엑셀다루기\01_엑셀만들기.py", line 2, in <module> import mkl File "C:\Users\user\anaconda3\lib\site-packages\mkl\__init__.py", line 49, in <module> from . import _mklinit ImportError: DLL load failed while importing _mklinit: 시스템에서 파일에 액세스할 수 없습니다. 위와 같은 에러가 뜨면서 저장이 되지를 않습니다. 이런 경우 어떻게 해야하나요?? 구글링을 통해 아래의 사이트를 발견하기는 했는데 여기서 어떻게 해결해야할지를 잘 모르겠습니다ㅠㅠ https://conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#numpy-mkl-library-load-failed
-
미해결실전! Querydsl
수정, 삭제 벌크 연산 관련 질문
querydsl로 수정, 삭제 벌크 연산을 하는 경우에 entityManager를 수동으로 flush, clear 하는 방법 이외에 스프링 데이터 jpa에서 어노테이션으로 사용하는 방식처럼 간단히 초기화하는 방법이 있을까요? @Modifying(clearAutomatically = true, flushAutomatically = true)
-
미해결
Kriptomat Support Number +1(206)-672-1202♝ Helpline Toll Free Number
Kriptomat Support Number +1(206)-672-1202 Kriptomat Toll Free Number, Customer Service Phone Number +1(206)-672-1202 Call or write an email to resolve Kriptomat issues: Account, Login/ Service, Payments and Charges. Visit the company website Kriptomat support number or help center for more information. Crypto Com Customer Service Phone Number, Email, Kriptomat Help, Kriptomat Support , Kriptomat Toll Free , Kriptomat Helpline , Kriptomat Customer Service , Kriptomat Customer Care , Kriptomat Login Questions? Our customer support team is available 24/7 to take your call Kriptomat toll free number Crypto exchange Kriptomat US is moving to impose stricter measures on U.K.-based users and blocking them from accessing its platform. Is the Kriptomat US Safe? Kriptomat application is a mistake which keeps individuals from getting new messages even subsequent to reviving their inbox. On the off chance that you are dealing with this issue, almost certainly, the issue is brought about by the organization from your end rather than the actual application. Some of the time in any event, when your iPhone is demonstrating that you have a web association, it may not be valid. Attempt to utilize the Airplane mode to fix any potential organization issue on the off chance that your Kriptomat not dealing with iPhone. To avail all the benefits, call on our toll-free Kriptomat support number
-
미해결
Kriptomat Support Number +1(206)-672-1202♝ Helpline Toll Free Number
Kriptomat Support Number +1206= 672= 1202 Kriptomat Toll Free Number, Customer Service Phone Number Call or write an email to resolve Coinbase issues: Account, Login/ Service, Payments and Charges. Visit the company website Kriptomat support number or help cen
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
jpa 설정, jpa SpringConfig
1. 위의 답변처럼 SpringConfig에서 dataSource 설정을 해주지 않아도 스프링 부트가 모두 자동으로 처리해주므로 아래와 같이 dataSource는 따로 선언할 필요가 없다고 이해했습니다. 그런데 강의자료를 보면 좀 다른점이있네요. dataSource를 선언하고 생성자 주입하는 특별한 이유가 있나요?? 2. 회원가입 테스트를 하다가 오류가 나서 질문 검색을 해보니 답변에 application.properties에서 spring.spa.hibernate.ddl-auto=none을 create로 바꾸어서 실행하라고 나와있습니다. 선생님께서는 수업에서 none으로 하고도 실행이 잘되었는데(강의자료에도 none으로 나와있음) 저는 실행이 잘 되지 않은 이유가 무엇일까요?? 구체적으로 어느 케이스 때문에 create로 바꾸란 건지 답변을 읽어도 이해가 잘 가지 않습니다.
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
querydsl 의존관계 없는 left join 문의
안녕하세요! 실무에서 jpa를 쓰게 되서 강사님의 책과 강의를 번갈아 보면서 열심히 개발하던 중에 궁금한 점이 있어 문의드립니다. 쓰다보니 query dsl이 참 편하더라구요! 그런데 연관관계 없는 두 개 entity를 조인해서 데이터를 조회해오고 싶은데, 아래와 같이 쿼리를 작성하니 실행 중에 QuerySyntaxException이 발생합니다. List<HistoryDto> historyList = queryFactory .select(Projections.fields(HistoryDto.class, pmntHistoryEntity.approvalNo, pmntHistoryEntity.approvalDate, pmntHistoryEntity.cancelType, pmntHistoryEntity.trxId, pmntHistoryEntity.trxReqDate, creditCardEntity.cardName, creditCardEntity.cardNumber )) .from(pmntHistoryEntity) .leftJoin(creditCardEntity).on(pmntHistoryEntity.cardToken.eq(creditCardEntity.cardToken)) .where( eqUserId(dto.getUserId()), eqOrderId(dto.getOrderId()) ) .fetch(); exception = QuerySyntaxException: begin 0, end -1, length 19 queryDsl에서 연관 관계 없어도 on 절을 통해 join이 가능한 것으로 알고 있는데 projection과 호환이 안되는 걸까요? 하루종일 구글링을 해도 나오질 않네요.. 혹시 알고 계시다면 답변 부탁드립니다 ㅠ_ㅠ
-
해결됨실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
GET /api/v2/orders 조회 관련 질문
@GetMapping("/api/v2/orders") public List<OrderDto> ordersV2() { List<Order> orders = orderRepository.findAllByString(new OrderSearch()); List<OrderDto> result = orders.stream() .map( o -> new OrderDto(o) ) .collect(Collectors.toList()); return result; } @Data static class OrderDto { private Long orderId; private String name; private LocalDateTime orderDate; private OrderStatus orderStatus; private Address address; private List<OrderItem> orderItems; public OrderDto(Order order) { orderId = order.getId(); name = order.getMember().getName(); orderDate = order.getOrderDate(); orderStatus = order.getStatus(); address = order.getDelivery().getAddress(); order.getOrderItems().stream().forEach(o -> o.getItem().getId()); orderItems = order.getOrderItems(); } } 위 코드에서 OrderDto 생성자 함수 내에 getOrderItem 요소들을 순회시, 각 아이템을 get후에 getId를 호출 할 때 각 item 프록시들이 초기화 돼야 하는 것 아닌가요..? 강의에서는 getName을 통해 초기화 하길래, 위 코드처럼 getId로 하면 될까 궁금증이 생겨 실행해보니 orderItems 내에 item 이 null 값으로 나옵니다. getName 으로 초기화 할 때는 전부 다 들어있구요. 코드 구글 드라이브 링크: https://drive.google.com/drive/folders/17gdIodVzIPG8_XzTeYUVDbLdaScP6c2s
-
미해결현직 개발자가 알려주는 안드로이드 앱 쉽게 만드는 방법
build.gradle에서 implementation 'gun0912.ted:tedpermission:2.2.3' sync가 되지 않아요...
- build.gradle에서 - implementation 'gun0912.ted:tedpermission:2.0.0' - implementation 'gun0912.ted:tedpermission:2.2.2' - implementation 'gun0912.ted:tedpermission:2.2.3' - 모두가 sync가 되지 않아요. - Failed to resolve: gun0912.ted:tedpermission:2.2.3 Show in Project Structure dialog Affected Modules: app - 이렇게 에라가 나는데 해결할 수 있는 방법이 있으면 가르쳐 주세요. -
-
해결됨지식을 흡수하는 독서법 - 비문학 독해력 공부법 독해 잘하는 법
독서 전 최우선 목표에 대한 질문
안녕하세요. 좋은 책 잘 읽었습니다. 독서 전 최우선 목표 설정 부분에서 몇 가지 질문이 있는데요. 1. 예시로 드신 "나는 왜 이 일을 하는가 2"의 목차를 보니깐 4, 5장이 조직과 관련된 부분이던데 예시로 작성하신 읽을 순서는 1 -> 2 -> 3 -> 6 -> 7 뒤에 (4 -> 5)가 생략된 건가요? 질문 형태로 정리한 부분에는 조직에 대한 질문이 있는데 읽을 순서에는 없어서 약간 헷갈리네요. 2. 저는 이 독서법을 주로 전공 서적, 더 정확히 말하면 개발(프로그래밍) 서적을 읽을 때 적용하고 싶은데요. 저자께서도 개발 공부를 해보셔서 잘 아시겠지만, 대부분의 개발 서적이 앞부분을 알아야 그다음 부분이 이해되기 때문에, 책을 순서대로 읽을 수밖에 없게 구성되어 있는데 이런 경우에는 우선 목표 설정을 어떻게 적용하면 좋을지 궁금합니다.
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
액티비티 전환이 안됩니다
첫번째 사진에서는 액티비티 전환이 잘 되는데 두번째사진부터는 아래와 같은 에러가 발생하면서 화면 전환이 되지 않습니다. 어떻게 해결하면 좋을까요?
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
채점시 발생하는 오류
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 강사님께서 수업 중에 작성하신 코드로 동일하게 돌려도 계속 해당 오류가 뜹니다. 어떻게 해결해야할까요. 폴더로 잘 옮겼고 AA.py로 파일명 수정도 했습니다. 2-1. K번째 약수는 채점이 잘 되었습니다.
-
미해결
Why I am unable to activate my Cash card?
Witnessing “Cash App card not activating” error can be really frustrating. Why? Because an inactivated Cash App card can deprive you of many Cash App features such as direct deposit, borrowing money, investing, and so on and so forth. Hence, the situation of being “Unable to activate a Cash App card” can turn the Cash App payment experience into a panic-filled nightmare. But, you don’t need to worry if you can’t enable the Cash App card. Non-stop customer service is available for your satisfaction. You can contact us and get assistance from experts. Alternatively, keep on reading this helping post and educate yourself. We are unable to activate your Cash card please try again later Most of you must know that there are two methods available to activate a Cash App card. Either you can scan a QR code or use the details of your card manually to activate your card. If in the first method you end with a “Try again later” error then consider trying the second method. But, what if the second method also fails to activate your cash card? Then it is time to get more technical and make sure of the below-mentioned points. Check and make sure your internet connection is strong enough. In case you are trying to activate your card by scanning the QR code but failing then make sure that you have allowed the Cash App to access your camera. The manual cash card activation process requires you to enter the correct details of the card including card number, expiry date, and CVV. Any small error and mistake in entering the details can lead you to have “Unable to activate your card please try again later”. Cash App unable to activate card for security purposes Security is at the core of the Square Cash App payment app. The dedication of the Cash App to security could be gauged from the fact that Cash App does not hesitate from cancelling the payment at the slightest hint of a threat to security. So, the idea here is not to appear as a suspicious user on Cash App and avoid the following mistakes: Avoid using the old version of Cash App while activating a Cash App card. Abstain from using the debit or credit card of someone else as it might make you appear in a bad light due to which your attempt to activate a Cash App card can fail. It is good to be careful about security on the internet but be considerate while using security tools such as VPN. Note that the use of a VPN among scammers and online fraudsters is on the rise like never before. And due to security-related concerns, sometimes, Cash App also starts suspecting the users whenever it finds VPN is enabled while sending or receiving money. How to activate my Cash App card without QR code? Undoubtedly, scanning a QR code is referred to as the most simple and straightforward method to enable a cash card on Cash App. But, sadly, this method always doesn’t work. Let’s not get deep into the reasons that prevent the users from activating their cash card as they might be so many and be specific to the solutions. And the solution is to try the alternative method to activate Cash App card which is using the manual method or you can say CVV. These are the steps: Open Cash App on your phone, as the first step. Now tap the card-shaped icon. Scroll down and select “Activate Cash App Card”. Then, select “Use CVV Instead”. Now enter the card details one by one. In the end, tap “Activate”. Your card will enable you to use and spend money. Further, Cash App will prompt you to find your Cash App routing number and account number. Follow the onscreen instruction if you want to enable the direct deposit. Cash App number to activate a card Be informed that Square has not put in place any phone number to dial to activate a Cash App card. Plus, there is no SMS service to activate Cash App card. There are only two methods available to activate a Cash App card that we have already discussed in the above section. However, in the event of any problem, while activating a Cash App card using any of the methods, you can contact us and get help. How do I activate my Cash App card without login in? Do you remember what I told you in the beginning? I am repeating this again as it is important. There are only two possible ways to activate a Cash App card. One is scanning a QR code and the second is using the CVV instead. In both methods, a successful Cash App login is a must. If someone says that you can activate your Cash App card without login into your Cash App account then be careful as it might be a scam and you can be the next target.
-
미해결함수형 프로그래밍과 JavaScript ES6+
예제 파일이 정상적으로 출력이 안됩니다.
. 안녕하세요 다름이 아니라 예제파일을 다운받아서 강의를 보면서 같이 진행을 하고있는데요, 예제 파일이 정상적으로 로그창에 출력이 안되는데.. 혹시 이유가 뭔지 알수있을까요? 비주얼 스튜디오 코드를 사용하고있습니다!
-
미해결파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
RuntimeError: populate() isn't reentrant
어제까지는 실행 잘됐었는데 주피터 노트북으로 실행하니까 이런식으로 뜹니다 ㅠㅠ http://127.0.0.1:8000/admin/instagram/comment/add/ 이랑 저번에 배웠던 python manage.py shell_plus --print-sql --ipython 로 실행시에는 이런식으로 잘나오는데 무슨이유인지를 모르겠네요.혹시 더 올려야하는 정보들이 있을까요?
-
미해결함수형 프로그래밍과 JavaScript ES6+
제네레이터 질문합니다!
안녕하세요! 다름이 아니라 제네레이터 함수가 작동하지 않아서 질문드립니다..! 강의를 보면 선생님같은경우는 함수명앞에 * 별표가 잘 붙어있는데 저같은경우는 보면 * 별표가 function 옆으로 붙어버립니다. 함수명 옆에 별표를 붙여도 저장누르는 순간 펑션옆으로 별이 이동합니다.. 그리고, 콘솔로그도 나오질 않습니다. 아마 제네레이터 함수가 정상적으로 작동되질 않는것같은데, 이유가 뭔지 알수있을까요?
-
미해결풀스택을 위한 탄탄한 프런트엔드 부트캠프 (HTML, CSS, 바닐라 자바스크립트 + ES6) [풀스택 Part2]
메일 확인 부탁드립니다.
- 본 강의 영상 학습 관련 문의에 대해 답변을 드립니다. (어떤 챕터 몇분 몇초를 꼭 기재부탁드립니다)- 이외의 문의등은 평생강의이므로 양해를 부탁드립니다- 현업과 병행하는 관계로 주말/휴가 제외 최대한 3일내로 답변을 드리려 노력하고 있습니다- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
-
미해결[유니티 레벨 업!] 모듈식으로 개발하는 퀘스트&업적 시스템
강사님이 만드신 완성된 프로젝트 판매하시나요?
안녕하세요. 제가 에셋스토어에서 종종 완성된 프로젝트를 구매하고 소스코드 분석하는걸 하는데요. 난이도가 저랑 안 맞을때가 많아서 어느정도 고급지식이 들어있는 완성된 프로젝트를 구매하고 싶습니다. 이번 강좌의 프로젝트 외에 강사님이 만드신 다른 프로젝트를 에셋스토어 같은 곳에 올리신다면 제가 구매하고 싶습니다. 판매하시는 프로젝트같은거 있으신가요? 앞으로 올리실 예정이시라면 mrbinggrae@naver.com 으로 판매 링크 보내주시면 제가 꼭 가서 구매하겠습니다!!
-
미해결AWS 클라우드 서비스 인프라 구축 이해와 해킹, 보안
강의자료문의
안녕하세요. 강의를 듣고 있는 사람인데요. 강의자료(교안)과 실제 강연시 사용하는 자료의 차이가 좀 있는것 같아요. 강연 시 사용하는 자료 기준으로 강의자료를 보완해주실 수 있는지 확인 부탁드립니다.
-
미해결[유니티 레벨 업!] 모듈식으로 개발하는 퀘스트&업적 시스템
IEnumerable 에 대해 간략히 설명 가능할까요?
IEnumerator 은 아는데 IEnumerable 는 생소하네요. 구글 검색을 해봤는데 헷갈려서 강사님께 여쭤봅니다 ㅠ