묻고 답해요
161만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결딥러닝 CNN 완벽 가이드 - TFKeras 버전
Pretrained모델의 Fine Tuning(미세조정) 질문
안녕하세요 강의 슬라이드 334페이지, Pretrained모델의 Fine Tuning(미세조정) 에서 질문 있습니다 아래부분 2단계에서 첫번째 꼭지가 "해당 Layer 들을 Unfreeze(trainable=True) 시켜서 학습에서 제외"인데, unfreeze 시키면 학습에 "포함" 이 되는게 맞지 않나요?
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
강의 질문입니다~
강의에서는 v3.0으로 설치하시고, 'vue init webpack-silple 프로젝트명 '으로 만드시던데게시판 질문들 보면,'npm run dev'로 실행하시는 분에게 v2.0 설치를 권장하시며 'vue create 프로젝트명', 'npm run serve' 로 실행을 해보라고 하시는데 왜 그러신지, 둘의 차이가 뭔지 궁금합니다.(질문요약 : 강의는 3.0인데 질문 댓글에는 2.0을 권장하시는 이유와, 'vue create'와 'vue init'의 차이가 궁금합니다.혹시 다른 강의에 구체적으로 설명해두신게 있다면 그 강의명을 알려주심 감사드려요~!)
-
미해결게임 프로그래머 취업 전략 가이드
node.js 프로젝트에 대해 어떻게 생각하시는지 궁금합니다.
node.js를 사용하는 프로젝트에 참여하는게 서버프로그래머로서 메리트가 있는지 궁금합니다.
-
미해결Nuxt.js 시작하기
캘린더 검색 질문드립니다.
안녕하세요. 캡틴판교님Nuxt.js 강의 열심히 듣고 있는 사람입니다.예전에도 질문 드리긴 했으나(질문 드린 거 는 어찌어찌해서 처리 했습니다.)_like를 여러 번 쓰면 되는 거 였더라구요.;;;;;그 문제는 해결하였는데검색하면서 또 다른 궁금증이 생겨 가지구요.도움을 요청할 사람이 주변에 없어서 캡틴판교님에게 요청해봅니다.다름이 아니라..보통 검색에 시작일과 종료일을 설정하고 검색하는 게시판들이 있잖아요.!?이런 거 처럼요시작일과 종료일을 지정하고 "_like"를 사용해서 어떻게 중간날짜를 검색 할 수 있는지 궁급합니다.시작일이 저번주 월요일이였고 종료일이 오늘이라면그 중간 날짜 (화,수,목,금.토.일)은 어떻게 검색을 하는 건가요?현재는 그림과 같이 시작일만 적용해 놓았습니다.;;date_like는 시작일과 종료일 사이에 모든 데이터를 가져와야 하는거구요.개발이 이번이 처음이라 깊게 들어가면 갈수록 점점 어려워지는 거 같네요.도움 부탁드립니다.* 사용하는 캘린더는 BootstrapVue 캘린더를 사용하고 있습니다.
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
깃허브 요청드립니다.
인프런 아이디 : ojm1612@gmail.com인프런 이메일 : ojm1612@gmail.com깃헙 아이디 : ojm1612@gmail.com깃헙 Username : orangemamal
-
미해결재고시스템으로 알아보는 동시성이슈 해결방법
pessimistic lock 관련 질문입니다.
pessimistic lock을 구현하실때 PessimisticLockStockService 클래스의 decrease 메소드에 @Transactional을 붙이셨는데 이유를 알 수 있을까요?저는 @Transcational 어노테이션을 decrease 메소드에 붙이지 않으면 실행시 org.springframework.dao.InvalidDataAccessApiUsageException: no transaction is in progress; nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress이런 에러가 발생합니다. 해당 어노테이션을 찾아는 봤는데 pessimistic lock을 메소드에 걸었을때 transactional을 걸어야한다 이런 자료는 찾지 못해서요. 답변 부탁드립니다. 감사합니다. 참고로 @Transactional 어노테이션을 걸어주지 않으면 아래 사진처럼 quantity가 하나도 감소하지않은 100개가 결과값으로 출력됩니다.
-
미해결Node.js의 모든 것
nestjs caching 관련 docs 도 조금 달라진것 같아요
안녕하세요 강사님 nestjs 와 redis 연결 부분도 조금 달라진거 같아요 필요 모듈이 하나로 줄은것 같아요 https://docs.nestjs.com/techniques/caching 여기까지 강의 잘들었는데요 조금 어려운게 인덱스 부분도 그렇고 캐싱 부분도 그렇고 디비 관련 부분들은 좀 생소하고 난해하네요 디비 수정뒤 format push genrate 하는것도 뭘 하는건지 아직 잘 이해가 안가요 다음 강의로 디비 이론과 설계만 집중적으로 다루신다고 해서 기대중이에요 감사합니다
-
미해결실전! 스프링 데이터 JPA
안녕하세요. jpa save가 안되는 문제가 있습니다.
이렇게 테스트를 작성하고 테스트를 돌려보면findById에서 아무것도 찾지 못합니다.디비 연결이 문젠가 싶었지만디비에 이미 있는 데이터는 조회가 잘 됩니다. save한 데이터를 찾으면 찾아지지 않습니다.로그를 봐도 insert쿼리도 안나가고, save만 한 뒤 테스트를해보아도 데이터가 들어가있지 않습니다. 어떤게 문제인지 알 수 있을까요?
-
해결됨스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
@RequestMapping 다중 설정 질문드립니다
실 서비스에서 이런 방식(여러가지 다른 URL 요청)으로 하나의 메서드를 실행하게 할 때가 있나요?
-
미해결
스크롤 탑에 따라 한번만 실행시키는 방법
특정 스크롤위치에서 숫자카운트를 해보려하는데요 아래와 같이 했더니 스크롤될때마다 자꾸 숫자가 변동되네요 ㅠㅠ... 아직 코린이라서 머리가 지끈.... 어떻게 해야 제가 지정한 섹션에 들어섰을때에서만 넘버가 카운트가 될까요 ㅠㅠ $(function(){ var numAnimation = document.querySelectorAll("#left_skill>ul>li>.skill_count") function changeNum(idx){ var num = 0 ; var intervalTime = 15; var targetNum = numAnimation[idx].getAttribute('data-rate'); var timer = setInterval(function(){ ++num; numAnimation[idx].innerText = num; if(num == targetNum){ clearInterval(timer); } },intervalTime); } window.addEventListener('scroll',function(){ scrollAmout = this.pageYOffset; if(scrollAmout >800){ for(var i =0; i<numAnimation.length; i++){ changeNum(i);} }; }); });
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
깃허브 권한 요청 드립니다.
인프런 아이디: shyoon2372@gmail.com인프런 이메일: shyoon2372@gmail.com깃허브 아이디 : shyoon2372@gmail.com깃허브 권한요청 드립니다!
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
틀린 이유가 궁금합니다
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요 큰돌님, 열심히 강의수강하고 있는 학생입니다. '인구이동'문제를 풀고 틀린 후 몇 번을 다시풀어봐도 어느 부분이 틀렸는지 모르겠습니다..제가 놓친 부분을 알 수 있을까요?http://boj.kr/33804584c0a84048aab062b3ae451060
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
게시물 업로드 관련 질문
class BoardWriteActivity : AppCompatActivity() { private lateinit var binding : ActivityBoardWriteBinding private val TAG = BoardWriteActivity::class.java.simpleName override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) //val database = Firebase.database //binding=DataBindingUtil.setContentView(this,R.layout.activity_board_write) setContentView(R.layout.activity_board_write) binding = ActivityBoardWriteBinding.inflate(layoutInflater) binding.writebtn.setOnClickListener { val title = binding.titleArea.text.toString() val contents = binding.contentArea.text.toString() Log.d(TAG,title) Log.d(TAG,contents) FBRef.boardRef .push() .setValue(BoardModel(title,contents,"uid","time")) } } } 빨간줄로 그이는 오류는 없는데 등록 버튼 눌렀을 때logcat에 뜨는게 없네요. 이유좀 알려주세요
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
3시간만에 배우는 강의가 없어요
강의 미리보기 보면서 설치하라고 하셨는데그 3시간만에 배우는 강의가 검색이 안되요 ㅠ뭘 보고 따라서 설치하면 될까요?
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
[그랩마켓] Git Commit 적용하기 에서 test 프로젝트? 이건 뭔가요?
[그랩마켓] Git Commit 적용하기 에서 test 프로젝트? 이건 뭔가요? 갑자기 저런 폴더? 프로젝트? 같은거로 바뀌는데 이전 강의에서 뭐하라는 말도 없었는데 갑자기 저거로 넘어가버리네요 .. 왜 저게 생겨난거고 뭐 어떻게 만드는건가요?ㅜㅜ ㅜㅜ 스킵하지말고 하나하나 디테일하게 설명해주셨으면좋겠네요..
-
해결됨스프링 시큐리티 OAuth2
Spring Authorization Server - 기본 구성으로 시작하기 31:45
안녕하세요.임시코드 요청은 정상적으로 동작했습니다.토큰요청시 uri 에 뜨는 code 를 복붙 하니 json 형태로 응답이 오는것이 아닌,html 양식으로 응답이 왔습니다. 임시코드 요청토큰 요청// // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) // package io.security.oauth2.springsecurityoauth2authorization; import org.springframework.context.annotation.Bean; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer; import org.springframework.security.core.userdetails.User; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.provisioning.InMemoryUserDetailsManager; import org.springframework.security.web.SecurityFilterChain; @EnableWebSecurity public class DefaultSecurityConfig { public DefaultSecurityConfig() { } @Bean public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception { httpSecurity.authorizeRequests((authorizeRequest) -> { ((ExpressionUrlAuthorizationConfigurer.AuthorizedUrl)authorizeRequest.anyRequest()).authenticated(); }); httpSecurity.formLogin(); return (SecurityFilterChain)httpSecurity.build(); } @Bean public UserDetailsService userDetailsService() { UserDetails user = User.withUsername("user").password("{noop}1234").authorities(new String[]{"ROLE_USER"}).build(); return new InMemoryUserDetailsManager(new UserDetails[]{user}); } } // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) // package io.security.oauth2.springsecurityoauth2authorization; import com.nimbusds.jose.jwk.JWKSet; import com.nimbusds.jose.jwk.RSAKey; import com.nimbusds.jose.jwk.source.JWKSource; import com.nimbusds.jose.proc.SecurityContext; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.NoSuchAlgorithmException; import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPublicKey; import java.util.UUID; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.OAuth2AuthorizationServerConfiguration; import org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer; import org.springframework.security.oauth2.core.AuthorizationGrantType; import org.springframework.security.oauth2.core.ClientAuthenticationMethod; import org.springframework.security.oauth2.jwt.JwtDecoder; import org.springframework.security.oauth2.server.authorization.client.InMemoryRegisteredClientRepository; import org.springframework.security.oauth2.server.authorization.client.RegisteredClient; import org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository; import org.springframework.security.oauth2.server.authorization.config.ClientSettings; import org.springframework.security.oauth2.server.authorization.config.ProviderSettings; import org.springframework.security.web.SecurityFilterChain; import org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint; @Configuration public class AuthorizationServerConfig { public AuthorizationServerConfig() { } @Bean public SecurityFilterChain authSecurityFilterChain(HttpSecurity http) throws Exception { OAuth2AuthorizationServerConfiguration.applyDefaultSecurity(http); http.exceptionHandling((exception) -> { exception.authenticationEntryPoint(new LoginUrlAuthenticationEntryPoint("/login")); }); http.oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt); return (SecurityFilterChain)http.build(); } @Bean public ProviderSettings providerSettings() { return ProviderSettings.builder().issuer("http://localhost:9000").build(); } @Bean public RegisteredClientRepository registeredClientRepository() { RegisteredClient registeredClient = RegisteredClient.withId(UUID.randomUUID().toString()).clientId("oauth2-client-app").clientSecret("{noop}secret").clientAuthenticationMethod(ClientAuthenticationMethod.CLIENT_SECRET_BASIC).clientAuthenticationMethod(ClientAuthenticationMethod.CLIENT_SECRET_POST).authorizationGrantType(AuthorizationGrantType.AUTHORIZATION_CODE).authorizationGrantType(AuthorizationGrantType.REFRESH_TOKEN).authorizationGrantType(AuthorizationGrantType.CLIENT_CREDENTIALS).redirectUri("http://127.0.0.1:8081").scope("openid").scope("read").scope("write").clientSettings(ClientSettings.builder().requireAuthorizationConsent(true).build()).build(); return new InMemoryRegisteredClientRepository(new RegisteredClient[]{registeredClient}); } @Bean public JwtDecoder jwtDecoder(JWKSource<SecurityContext> jwkSource) { return OAuth2AuthorizationServerConfiguration.jwtDecoder(jwkSource); } @Bean public JWKSource<SecurityContext> jwkSource() throws NoSuchAlgorithmException { RSAKey rsaKey = this.generateRsa(); JWKSet jwkSet = new JWKSet(rsaKey); return (jwkSelector, context) -> { return jwkSelector.select(jwkSet); }; } private RSAKey generateRsa() throws NoSuchAlgorithmException { KeyPair keyPair = this.generateRsaKey(); RSAPrivateKey rsaPrivateKey = (RSAPrivateKey)keyPair.getPrivate(); RSAPublicKey rsaPublicKey = (RSAPublicKey)keyPair.getPublic(); return (new RSAKey.Builder(rsaPublicKey)).privateKey(rsaPrivateKey).keyID(UUID.randomUUID().toString()).build(); } private KeyPair generateRsaKey() throws NoSuchAlgorithmException { KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA"); keyPairGenerator.initialize(2048); KeyPair keyPair = keyPairGenerator.generateKeyPair(); return keyPair; } }
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
권한요청 드립니다.
인프런 ID/email : choroc712@gmail.comgirhub ID : choroc712@gmail.com (username: 5green)
-
미해결15일간의 빅데이터 파일럿 프로젝트
여러 방법으로 해결해보려고 했지만 포기
레딧을 아무리 Setup 하려고 해도 안되네요 VM에서 설정을 봐도 안되고 해서 일주일동안 시간만 허비하다가 결국 포기합니다. ㅜ.ㅜ
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
DTO사용에 대한 질문
강의 23분18초 부분updateItem을 DTO로 받는것에 대해 질문 2가지있습니다.1. 아래와 같이 서비스계층의 DTO를 만들어서 파라미터로 사용하는부분은 이해했는데, 애초에 그냥 form을 넘겨주는것은 잘못된 설계인가요?@PostMapping("/items/{itemId}/edit") public String updateItem(@ModelAttribute("form") BookForm form) { UpdateItemDto updateItemDto = new UpdateItemDto(form); itemService.updateItem(updateItemDto); //itemService.updateItem(form); return "redirect:/items"; }강의에선 생략하는 부분인것같은데 만약 엔티티에 change() 함수를 만든다했을때 Item을 상속받는 Book, Album,Movie 각각에 change함수를 만들어주어야하나요..? (Item이라는것을 상속받는 3개의 클래스에대해 어떻게 처리해줘야할지 모르겠어요.)Item (부모클래스)에 필드들을 private -> protected로 바꾸고, Book의 change함수를 아래와 같이 만들면되나요? (이경우 Album, Movie 사용한다고 가정하면 똑같이 만들어줘야하는지?)public void change(UpdateItemDto dto) { this.name = dto.getName(); this.price = dto.getPrice(); this.stockQuantity = dto.getStockQuantity(); this.author = dto.getAuthor(); this.isbn = dto.getAuthor(); }
-
해결됨Flutter 입문 - 안드로이드, iOS 개발을 한 번에 (with Firebase)
콤마는 언제 찍는건가요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 괄호 뒤에 어쩔 때는 콤마, 가 있고 어쩔 때는 콜론; 이 있는데 또 어떤 것은 안 붙더라구요.. 너무 초보라 궁금해서 질문합니다.😂