묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 시큐리티 완전 정복 [6.x 개정판]
강의자료에서 수정되어야 될 부분이 있네요.
강의자료 DelegatingPasswordEncoder 빈 정의에서알고리즘 지정생성에서@Bean public PasswordEncoder passwordEncoder() { String encodingId = "pbkdf2"; Map encoders = new HashMap<>(); encoders.put(encodingId, Pbkdf2PasswordEncoder.defaultsForSpringSecurity_v5_8()); DelegatingPasswordEncoder delegatingPasswordEncoder = new DelegatingPasswordEncoder(encodingId, encoders); return delegatingPasswordEncoder;} 에서 String encodingId = "pbkdf2"; 가 String encodingId = "pbkdf2@SpringSecurity_v5_8""; 로 수정되어야 되거나 아님 encoder 할때 버전을 5_5로 바꾸어야 하네요.한참 헤메이다 저처럼 헤메이지 말라구 올려봅니다.
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
1-i 포켓문 문제 시간초과
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.이와 같이 코드를 작성하였는데 시간 초과가 나는데 왜 그런 것인가요?일부러 시간복잡도가 m*n이 되지 않게 하려고 맵 2개를 만들어서, o(n)이 최고 시간복잡도가 되게끔 설계하였습니다.#include <bits/stdc++.h> using namespace std; int n; // 포켓몬의 수 int m; // 문제 수 map<int, string> poketmonsByNumber; map<string,int> poketmonsByName; vector<string>searchId; string name; string question; int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cin>> n >> m; for(int i=0; i<n; i++){ cin>>name; poketmonsByNumber[i+1]=name; poketmonsByName[name]=i+1; } for(int i=0; i<m; i++){ cin>>question; if (isdigit(question[0])) { int id = stoi(question); searchId.push_back(poketmonsByNumber[id]); } else{ string id=to_string(poketmonsByName[question]); searchId.push_back(id); } }; for(auto id : searchId) { cout<<id<<endl; } return 0; }
-
해결됨실무에 바로 적용하는 스토리북과 UI 테스트
svg를 public 말고 src>assets안에 넣는다면 import를 어떻게해야하나요?
현재는 public에서 아이콘을 가져오는데 assets에 가져올때는 어떻게 하나요? import type { Meta, StoryObj } from "@storybook/react"; import { IconButton } from "../../components/IconButton"; const meta = { title: "Buttons/IconButton", component: IconButton, parameters: { layout: "centered", }, tags: ["autodocs"], argTypes: { alt: { control: "text", description: "아이콘의 대체 텍스트" }, iconPath: { control: "text", description: "아이콘의 경로", defaultValue: "", }, onClick: { action: "clicked", description: "아이콘 클릭 시 호출되는 함수" }, }, } satisfies Meta<typeof IconButton>; export default meta; type Story = StoryObj<typeof meta>; export const Default: Story = { args: { alt: "아이콘", iconPath: "ic-delete-dark.svg", onClick: () => {}, }, };
-
미해결설계독학맛비's 실전 FPGA를 이용한 HW 가속기 설계 (LED 제어부터 Fully Connected Layer 가속기 설계까지)
22장 Vitis C언어 코딩 시 Register map 질문드립니다.
안녕하세요 . 22장에서 BRAM을 하나 더 추가하여서 Core 수를 늘려보자는 취지로 하나 더 늘려보았습니다.따라서 AXI 코드를 이렇게 설정해주었고 (16bit로 진행했기 때문에 BRAM 하나당 2Core = 4Core 입니다.)Vitis C언어 상에서도 위와 같이 설정해주었습니다. 하지만, Vitis serial terminal 상에서는 이처럼 result_2 / result_3 에 관련된 값이 출력되지 않았습니다.그래서 제가 추측하는 바로는 4'ha 를 0xa로 define하는 방법이 잘못되었나.. 생각이 들면서도 검색해봐도 16진수에 10은 0xa로 c언어상에서 표현한다고 하여 이렇게 궁금하여 질문드립니다. 항상 좋은 강의해주셔서 감사합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
서비스 네이밍
서비스는 join, 메모리에서는 save 이런 식으로 표현을 한다면, 서비스 즉 비즈니스 관점은 다른 말로 “유저입장“ 이라고 생각하면 될까요?
-
해결됨김영한의 실전 자바 - 중급 2편
강의노트 질문있습니다.
들었던 강의를 정리하는 중인데, 혹시 블로그에 강의 노트의 일부를 올려도 되나요? 컬렉션 프레임워크에 대해 작성 중인데 강의 노트 안에 collection, list, queue, set의 의존관계가 정리된 깔끔한 그림을 인용하고 싶어서요.
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
강의 자료 부탁드립니다.
강의 자료 부탁드립니다! huo2100@naver.com
-
미해결
안녕하세요
ㄹㄹㄹ
-
미해결HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
active 관련 질문
폰트어썸으로 라디오버튼과 체크박스를 커스텀 하는 강의에서, checked 가상클래스는 input[type=checkbox] 에 적용하였으나 (체크박스를 누르는 것이므로 active 또한 input[type=checkbox]에 적용하면 자연스럽다고 생각하여서)active는 label에 적용한 이유를 모르겠습니다.
-
미해결설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
r_min_cnt사용 이유
안녕하세요 🙂[1. 질문 챕터] : eg) 몇 장, 몇 분 몇 초 쯤. or 수강생 분들이 봤을 때 어디구나?! 할 수 있게 표기 부탁 드려요.[2. 질문 내용] : eg) 질문 내용을 자유롭게 작성해주시면 되겠습니다 🙂[3. 시도했던 내용, 그렇게 생각하는 이유] : eg) 설치영상은 이렇게 시도했는데 안되더라 or 본인의 생각을 적어주세요. (실습 내용 중에 이해가 안되거나 잘못된 내용이 있는데, 이러 이러한 근거로 나는 이렇게 생각합니다.)==================[1. 질문 챕터] : [Verilog HDL/FPGA 외전1 - 시계만들기] Chapter 2. 시,분,초 만들기 - Part1 7분 57초쯤[2. 질문 내용] : r_min_cnt로 초를 저장한 다음 end else if 문 안에서 그 초가 59초가 될 때 0으로 초기화하고 o_min값을 1증가시킨다고 이해했는데 end else if (o_sec==60-1)처럼 이미 사용하고있는 변수를 사용하면 되는거 아닌가요?[3. 시도했던 내용, 그렇게 생각하는 이유] : o_sec는 wire타입이여서 출력으로 확인만되서 reg 탑입의 저장되는 변수하나를 만든건가 싶기는 한데 그렇다 하더라도 그냥 처음부터 o_sec를 reg타입으로 만들어주면 되는거 아니였나 싶습니다.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
플레이어 포지션 변경 하기 위해 코드 추가
플레이어 포지션이 발이기 때문에 카메라가 계속 발을 찍고 있다고 해서 , 플레이어 포지션 값을 좀 올려보려고 float _playerhight = 1.0f; // 캐릭터 원하는 높이Vector3 playerPosition = player.transform.position + Vector3.up * playerhight;이 부분을 추가했는데 작동은 되는데 별로 차이가 없는것 같더라구요.. 제대로 한게 맞을까요? void LateUpdate() { float _playerhight = 1.0f; // 캐릭터 원하는 높이 Vector3 playerPosition = _player.transform.position + Vector3.up * _playerhight; if (_mode == Define.CameraMode.QuarterView) { RaycastHit hit; if(Physics.Raycast(_player.transform.position, _delta, out hit, _delta.magnitude, LayerMask.GetMask("Wall"))) { // dist : 거리 float dist = (hit.point - _player.transform.position).magnitude * 1.0f; transform.position = _player.transform.position + _delta.normalized * dist; } else { transform.position = _player.transform.position + _delta; transform.LookAt(_player.transform); } } }
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
HandlerAdapter마다 상속이 다른 것에 대하여
강의를 보면서 소스코드를 보니까, 다음과 같은 차이점이 있었습니다.- `SimpleControllerHandlerAdapter`, `HttpRequestHandlerAdapter`: HandlerAdapter를 상속- `RequestHandlerAdapter`: AbstractHandlerMethodAdapter를 상속 이런 이유가 RequestHandlerAdapter 는 @RequestMapping이 붙은 메서드 단위로 실행해야 되기 때문에 위의 2가지 어댑터랑은 적용 범위가 달라서 따로 뺀건가요? 정확하지가 않아 여쭈어 봅니다.
-
미해결
jsp에서 스프링 접근 시 헤더의 언더바(_)
jsp에서 스프링서버 api에 접근 시var xmlhttp= createXMLHttp(); xmlhttp.setRequestHeader("action_id", action_id);다음과 같이 데이터를 담아 요청하였습니다.스프링 서버에서 디버깅한 결과 request>coyoteRequest>headers>headers>"action_id:값"으로데이터를 전달받았습니다.jsp에서 담아준 그대로 값이 들어있었는데request.getHeader("action_id")에서는 값을 추출하지 못하고request.getHeader("actionId")로 추출한 결과 값을 추출할 수 잇었습니다.nginx와 관련하여 이런 설정이 있다는 정보는 찾았지만저는 현재 nginx없이 로컬에서 진행하고 있습니다. 혹시 스프링에서 이런 설정이 따로 있는건지 궁금합니다.값을 추출하는 코드의 스네이크 표기법을 모두 카멜로 변경하고 테스트를진행하던 도중새로운 크롬 환경에서 진행하게 되었는데 갑자기 헤더에서 카멜케이스는 추출하지 못하고스네이크 케이스만 추출이 가능해졌습니다.이러한 설정이 따로 가능한지 조언부탁드립니다..요약 1. jsp에서 헤더에 스네이크 케이스로 값 전달, 스프링에서 값 추출시 카멜로만 추출이 가능하였음2. 값 추출하는 key값들 모두 카멜로 변경3. 새로운 크롬환경에서 다시 테스트 시 카멜로 추출이 불가능, 스네이크 케이스로만 추출이 가능
-
미해결Tailwind CSS로 만드는 멋진 웹 UI 스타일링
단축키 질문입니다!
Typography(2)-글자 서식 및 색상 강의 5:59에서문장을 드래그 하고 어떤 단축키를 누르셔서 태그로 감싸셨더라구요.해당 단축키가 무엇인지 혹시 알수 있을까요?
-
미해결내 업무를 대신 할 파이썬(Python) 웹크롤링 & 자동화 (feat. 주식, 부동산 데이터 / 인스타그램)
pd.concat(df, ignore_index=True) InvalidIndexError 해결 방법 문의
안녕하세요.아래 코드에서 마지막 부분에서 에러가 발생하는데 찾아봐도 해결을 못하겠습니다. # 최종 데이터 합치기 df1 = pd.concat(df, ignore_index=True) --------------------------------------------------------------------------- InvalidIndexError Traceback (most recent call last) Cell In[89], line 2 1 # 최종 데이터 합치기 ----> 2 df1 = pd.concat(df, ignore_index=True) File ~\anaconda3\Lib\site-packages\pandas\core\reshape\concat.py:393, in concat(objs, axis, join, ignore_index, keys, levels, names, verify_integrity, sort, copy) 378 copy = False 380 op = _Concatenator( 381 objs, 382 axis=axis, (...) 390 sort=sort, 391 ) --> 393 return op.get_result() File ~\anaconda3\Lib\site-packages\pandas\core\reshape\concat.py:676, in _Concatenator.get_result(self) 674 obj_labels = obj.axes[1 - ax] 675 if not new_labels.equals(obj_labels): --> 676 indexers[ax] = obj_labels.get_indexer(new_labels) 678 mgrs_indexers.append((obj._mgr, indexers)) 680 new_data = concatenate_managers( 681 mgrs_indexers, self.new_axes, concat_axis=self.bm_axis, copy=self.copy 682 ) File ~\anaconda3\Lib\site-packages\pandas\core\indexes\base.py:3875, in Index.get_indexer(self, target, method, limit, tolerance) 3872 self._check_indexing_method(method, limit, tolerance) 3874 if not self._index_as_unique: -> 3875 raise InvalidIndexError(self._requires_unique_msg) 3877 if len(target) == 0: 3878 return np.array([], dtype=np.intp) InvalidIndexError: Reindexing only valid with uniquely valued Index objects ============================ df = []articleNos = ['2433459189','2433504511']for articleNo in articleNos: ind_url = f'https://new.land.naver.com/api/articles/{articleNo}?complexNo=' res = requests.get(ind_url, headers=headers) ind_dict = res.json() article_df = pd.Series(ind_dict['articleDetail']).to_frame().T # articleDetail_df = articleDetail_df[['articl/eNo','articleName','buildingTypeName','realestateTypeName', 'tradeTypeName', 'cityName','divisionName', 'sectionName', 'etcAddress', 'monthlyManagementCost', 'buildingName']] if 'articleFloor' in ind_dict.keys(): articleFloor_df = pd.Series(ind_dict['articleFloor']).to_frame().T article_df = pd.concat( [ article_df, articleFloor_df, ], axis=1 ) else: print(articleNo, '/', 'articleFloor') # articleFloor_df = articleFloor_df[['totalFloorCount','correspondingFloorCount']] if 'articlePrice' in ind_dict.keys(): articlePrice = pd.Series(ind_dict['articlePrice']).to_frame().T article_df = pd.concat( [ article_df, articlePrice, ], axis=1 ) else: print(articleNo, '/', 'articlePrice') # articlePrice_df = articlePrice_df[['dealPrice','allWarrantPrice','allRentPrice']] if 'articleRealtor' in ind_dict.keys(): articleRealtor = pd.Series(ind_dict['articleRealtor']).to_frame().T article_df = pd.concat( [ article_df, articleRealtor, ], axis=1 ) else: print(articleNo, '/', 'articleRealtor') # articleRealtor_df = articleRealtor_df[['realtorName','representativeName','cellPhoneNo','representativeTelNo']] if 'articleSpace' in ind_dict.keys(): articleSpace = pd.Series(ind_dict['articleSpace']).to_frame().T article_df = pd.concat( [ article_df, articleSpace, ], axis=1 ) else: print(articleNo, '/', 'articleSpace') # articleSpace_df = articleSpace_df[['supplySpace','exclusiveSpace']]# article_df = pd.concat(# [# articleDetail_df,# articleFloor_df,# articlePrice_df,# articleRealtor_df,# articleSpace_df, # ],# axis=1# ) df.append(article_df) # 최종 데이터 합치기 df1 = pd.concat(df, ignore_index=True)
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part6: 웹 서버
blazor실습 시 바인딩 관련 및 버튼이 동작하지 않는 이슈가 있으면? ( .NET 8.0 기준 )
구글링 해보니, 다음과 같은 글이 있었네요...Net 8.0기준으로 정적 렌더링이 기본 설정인 경우에는 Blazor 컴포넌트의 인터랙티비티가 자동으로 연결되지 않습니다.App.razor의 body영역에 있는 Routes부분에 @rendermode=RenderMode.InteractiveServer 이 코드를 추가해줍니다. 해당 부분 코드 : <Routes @rendermode=RenderMode.InteractiveServer /> 출처 : https://stackoverflow.com/questions/58196812/blazor-onclick-event-is-not-triggered
-
미해결[핵집] 2025 빅데이터 분석기사(필기)_과목 1~2
통합 강의안 요청드립니다.
통합 강의안 요청드립니다.email : siwan213@naver.com위 메일로 전달주시면 정말 감사할 것 같습니다.강의 잘 듣고 있습니다. 감사합니다.
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
Practice 58번 예제 반복문이요
선생님 코드를 화면에서는 결과값 55만 출력이 되는데같은 코드로 주피터에서 실행하니 1 3 6 ... 55까지 전부 출력 되는데 왜 55만 출력되지 않는 걸까요?sum = 0for index in range(1, 11): sum = sum + index print (sum )
-
미해결
데이터 설계서 샘플자료 열람권한 신청드립니다.
안녕하세요? 강의 수강하고 있는 수강자입니다.유익한 강의 제공해주셔서 감사드립니다. 다름 아니라.....16강 강의 (데이터 설계서 작성 연습) 과정에서 사용하신데이터 설계서 작성 샘플자료 열람 권한이 없어서 보지를 못하고 있습니다.열람신청 권한 드렸으니 승인 부탁드립니다.(신청메일 계정 : coll20@gmail.com)
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
안녕하세요 선생님. 반례를 찾지 못해 질문드립니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.안녕하세요 선생님.입력받은 문자열을 map을 사용해 알파벳 당 개수로 저장했습니다.홀수가 2개 이상이면 sorry를 출력하도록 했습니다.홀수가 1개인 경우, 홀수 알파벳의 개수 -1 을 하고 , 홀수 알파벳을 저장했습니다.그 후 다시 루프를 돌면서각 알파벳 개수의 절반만큼 오름차순으로 문자열을 만들고, 미리 저장해둔 홀수 알파벳 1개를 더한 뒤 , 오름차순 문자열을 뒤집어서 더하는 방식으로 코드를 구현했습니다.이것저것 다 넣어서 해봤지만 반례를 찾지 못하고있습니다 ㅜ http://boj.kr/86a69d1d5ce647b09c5a121b0c9e5ea9