묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결베개 투자법: 자면서 돈 버는 AI 주식 자동 매매 머신
[베개투자법 :자면서 돈버는 AI주식 자동매매머신] 종목을 100개까지 추가 하고자 합니다.
안녕하세요. 강의 잘 들었습니다. 프로그램도 잘 작동합니다. 단지 종목수가 적어 종목을 100개까지 추가하고자 합니다. 어느 부분을 수정해야하는지 문의 드립니다.
-
미해결비개발자 4주만에 수익화 서비스 만들기: AI 바이브코딩 웹 + 앱 ALL IN ONE
구글 애드 센스 정책 위반을 해결하기 위해선 도데체..
아니 며칠이나 기다렸는데,웹에 특별히 더 넣을 기능도 없는데,어떻게 더 고품질로 만들죠...게시글도 15개이상 1000자이상 무조건 넣어야하나요~?ㅜ정확히 뭐가 어디가 부족하다라고 해주면 좋은데 특별한 고지도 없고..,이렇게 웹승인 받기가 힘들면...어떻게 만들으라구..ㅜㅠ혹시 방법있을까요 샘?커서는 두리뭉실한 얘기만 해줘서 또 며칠이나 기다려서 실패하면 어떡하나 고민입니다.그리고 커뮤니티 즉 회원가입,로그아웃 기능에 대해서 조금더 설명이나 관련 링크를 좀 주실수 있을까요?회원가입이나 뭐가 되야 결제시스템도 등록이 가능한데 그런게 없어서 계속 헤매고 있네요...
-
미해결
코딩 1:1 클래스 코드스케이프 모집
🌟 코딩을 탐험하는 CodeScape(코드스케이프) 🌟 안녕하세요 코드스케이프 스터디입니다! 2학기를 맞이해서 1학기에 이어 새학기 C언어, JAVA 4주 마스터 스터디와 응용 심화 스터디를 준비하고 있습니다! 중간고사 기간 전에 빠르게 기본기 점검, 마스터하고 싶은 분들 모집합니다! 자세한 커리큘럼은 노션 통해서 확인 해주세요~! 📖 <프로그램 및 커리큘럼 소개>https://polar-zydeco-01f.notion.site/CodeScape-17eab7600a9d805bb0a2e0b474d895a8?pvs=4 📝모집기간 및 대상 📍모집 기간 : 09.01 (월) ~ 09.21 (일)📍진행 기간 : 4~5주차 커리큘럼으로 준비중 (클래스마다 조금씩 상이할 수 있음.)📍모집대상 ✅ 서울권 대학생(휴학생도 환영)✅ 서울 거주자 전공자 & 비전공자 상관 없음!✅ 새학기 시작하고 C Langauge 혹은 Java 개념 4주안에 기본기 쌓고 싶은 분!✅ C Langauge 혹은 JAVA 주력언어로 희망하는 개발자 지망생! (심화반은 사이드 프로젝트 진행예정.)✅ 6주차 커리큘럼으로 준비중 (스터디마다 조금씩 상이할 수 있음.) ✉ <신청 및 문의>📤신청링크: https://forms.gle/Nwzj5mqPVDxHAvLr9📤문의링크: 김지석 010-2973-4106
-
미해결[4주 과정] <클로드 코드> 완독 챌린지 : 매일 1시간씩 4주 동안 클로드 코드 도서 완독하기!
토큰으로 구매해도 괜찮을까요?
토큰 구매 페이지가 먼저떠서,, 토큰으로 구매했는데, 가성비가 더 나쁠까요
-
미해결김영한의 실전 자바 - 고급 2편, I/O, 네트워크, 리플렉션
제대로 이해한게 맞나 궁금합니다
close() 메서드에서 synchronized와 if(closed){ return;} 조건문을 해준 이유가 해당 세션 종료시 close() 메서드 호출과 서버 종료시 SessionManager의 closeAll()을 통한 close() 메서드 호출이 동시에 되고 중복으로 호출 되는걸 막기 위해서 해준거라고 이해하면 될까요?
-
미해결
머리 식힐 겸 같이 산책 가실 분 구해요~
https://open.kakao.com/o/sIGTphyh
-
해결됨독하게 시작하는 C 프로그래밍
필수실습문제 파일을 어떻게 찾으면 될까요?
수업제목/번호와 파일과 매칭이 잘 안되어 있어서 은근 찾기가 불편하네요. 물론 수업중에 선생님 화면 참고해서 찾기를 해요. 그런데 필수실수문제는 그방법이 안통하네요. [필수 실습 문제] 평균값 구하기 예를 들어 말씀해 주시면 감사하겠습니다
-
미해결[신규 개정판] 이것이 진짜 크롤링이다 - 실전편 (인공지능 수익화)
셀레니움 PDF자료는 받을 수 있나요
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 강의 내용중에 셀레니움 PDF자료를 보면서 하시던데, 받을 수 있는 곳이 있나요?
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
2-Q 질문있습니다
안녕하세요 큰돌님 문제를 풀다가 이해안되는 부분이 있어 질문드립니다.https://www.acmicpc.net/source/98984224Q1. 저는 dfs 부분에서 0일때 1일때 다르게 처리 했는데요 1만나면 방문처리, 벡터에 담고, 더이상 탐색을 안하는데 왜 쌤이 구현한 방식이랑 치즈개수에서 차이가 나는지 궁금합니다.주석처리한 부분이 쌤이 구현하신 코드입니다. Q2. 이런 동시 확산문제에서는 dfs(), bfs()에 좌표뿐만 아니라 동 시간대라는 정보를 주기 위해시간 정보도 같이 인자로 넣어서 풀어도 될까요? bfs(int y, int x, int t)
-
해결됨Next + React Query로 SNS 서비스 만들기
팔로우 추천 목록이 빈 배열로 들어옵니다.
안녕하세요. 팔로우 추천 API는 팔로워 수가 많은 순으로 최대 3명을 가져오도록 되어 있는 것으로 알고 있습니다.현재 발생하는 현상으로는 회원가입한 유저가 없는 경우에 기존 유저에게 추천 목록이 빈 배열로 나타납니다.그런데 회원가입 후 로그인하면 추천 목록에 로그인한 본인 아이디가 뜨고, 로그아웃 후 기존 유저 A로 로그인하면 이전에 회원가입한 유저 아이디가 추천 목록에 나타납니다.기존 유저 A가 그 회원가입 한 유저를 팔로우한 상태에서, 다른 기존 유저 B로 로그인하면 A가 팔로우했던 아이디가 추천 목록에서 사라져 있습니다.팔로우나 언팔로우 기능을 사용할 때 데이터는 정상적으로 들어오는 것으로 확인되고, 팔로워가 있는 아이디가 추천 목록에 나타나야 하는데 빈 배열로 표시됩니다.어느 부분을 점검해야 문제를 정확히 파악할 수 있을지 감이 잡히지 않아 질문 남겨봅니다..!import { MouseEventHandler } from "react"; import { User } from "@/model/User"; import { useMutation, useQueryClient } from "@tanstack/react-query"; import { useSession } from "next-auth/react"; type Props = { user: User; }; export default function FollowRecommend({ user }: Props) { const queryClient = useQueryClient(); const { data: session } = useSession(); const followed = !!user.Followers?.find((v) => v.id === session?.user?.id); // 팔로우 const follow = useMutation({ // 호출 시마다 userId를 전달 mutationFn: (userId: string) => { return fetch( `${process.env.NEXT_PUBLIC_BASE_URL}/api/users/${userId}/follow`, { method: "POST", credentials: "include", }, ); }, onMutate: (userId: string) => { const data: User[] | undefined = queryClient.getQueryData([ "users", "followRecommends", ]); if (data) { // 내가 팔로우 하는 대상 // User 배열 중에 팔로우 버튼을 누른 대상의 userId를 찾아서 그 유저의 Followers 수정 const index = data.findIndex((users) => users.id === userId); const shallow = [...data]; shallow[index] = { ...shallow[index], Followers: [{ id: session?.user?.id as string }], _count: { ...shallow[index]._count, Followers: shallow[index]._count.Followers + 1, }, }; queryClient.setQueryData(["users", "followRecommends"], shallow); } }, onError: (error, userId: string) => { console.error("팔로우/언팔로우 에러:", error); console.log("실패한 userId:", userId); const data: User[] | undefined = queryClient.getQueryData([ "users", "followRecommends", ]); if (data) { const index = data.findIndex((users) => users.id === userId); const shallow = [...data]; shallow[index] = { ...shallow[index], // 내 아이디가 대상 유저의 팔로워 목록에서 빠져야함 Followers: shallow[index].Followers.filter( (f) => f.id !== (session?.user?.id as string), ), _count: { ...shallow[index]._count, Followers: shallow[index]._count.Followers - 1, }, }; queryClient.setQueryData(["users", "followRecommends"], shallow); } }, }); // 팔로우 끊기 const unfollow = useMutation({ mutationFn: (userId: string) => { return fetch( `${process.env.NEXT_PUBLIC_BASE_URL}/api/users/${userId}/follow`, { method: "DELETE", credentials: "include", }, ); }, onMutate: (userId: string) => { const data: User[] | undefined = queryClient.getQueryData([ "users", "followRecommends", ]); if (data) { const index = data.findIndex((users) => users.id === userId); const shallow = [...data]; shallow[index] = { ...shallow[index], Followers: shallow[index].Followers.filter( (f) => f.id !== (session?.user?.id as string), ), _count: { ...shallow[index]._count, Followers: shallow[index]._count.Followers - 1, }, }; queryClient.setQueryData(["users", "followRecommends"], shallow); } }, onError: (error, userId: string) => { const data: User[] | undefined = queryClient.getQueryData([ "users", "followRecommends", ]); if (data) { const index = data.findIndex((users) => users.id === userId); const shallow = [...data]; shallow[index] = { ...shallow[index], Followers: [{ id: session?.user?.id as string }], _count: { ...shallow[index]._count, Followers: shallow[index]._count.Followers + 1, }, }; queryClient.setQueryData(["users", "followRecommends"], shallow); } }, }); const onFollow: MouseEventHandler<HTMLButtonElement> = (e) => { e.stopPropagation(); e.preventDefault(); if (followed) { console.log("언팔로우"); unfollow.mutate(user.id); } else { console.log("팔로우"); follow.mutate(user.id); } };
-
해결됨남박사의 파이썬으로 실전 웹사이트 만들기
첨부파일 삭제
@blueprint.route("/edit/<idx>", methods=["GET", "POST"]) @login_required def board_edit(idx): board = mongo.db.board try: doc = board.find_one({"_id": ObjectId(idx)}) except Exception: doc = None if not doc: flash("해당 게시물이 존재하지 않습니다.") return redirect(url_for("board.lists")) if str(session.get("id") or "") != str(doc.get("writer_id") or ""): flash("글 수정 권한이 없습니다.") return redirect(url_for("board.lists")) if request.method == "GET": return render_template("edit.html", data=doc, title="글수정") # --- POST --- title = (request.form.get("title") or "").strip() contents = (request.form.get("contents") or "").strip() deleteold = "deleteoldfile" in request.form # ✅ 체크박스 감지 old_file = doc.get("attachfile") filename = old_file f = request.files.get("attachfile") if f and f.filename: base, ext = os.path.splitext(secure_filename(f.filename)) new_name = f"{base}_{int(time.time())}{ext.lower()}" save_dir = app.config["BOARD_ATTACH_FILE_PATH"] os.makedirs(save_dir, exist_ok=True) f.save(os.path.join(save_dir, new_name)) if old_file: board_delete_attach_file(old_file) filename = new_name elif deleteold: if old_file: board_delete_attach_file(old_file) filename = None update_set = {"title": title, "contents": contents} if deleteold and filename is None: board.update_one({"_id": doc["_id"]}, {"$set": update_set, "$unset": {"attachfile": ""}}) else: update_set["attachfile"] = filename board.update_one({"_id": doc["_id"]}, {"$set": update_set}) flash("수정되었습니다.") return redirect(url_for("board.board_view", idx=str(doc["_id"])))챗지피티의 도움을 받아 작성했습니다. 근데 삭제 기능만 안되는데 왜 안돼는지 모르겠습니다..
-
미해결[4주 과정] <클로드 코드> 완독 챌린지 : 매일 1시간씩 4주 동안 클로드 코드 도서 완독하기!
첫째주 수요일 질문
cd Wed/ 부터 시작하는데, 우분투를 껐다가 켜면 다 리셋되는거니까 cd _Book_Claude-Code/Week1/Wed/ 로 해서 실행하는게 맞나요? 그리고 Wed에서 Thu로 바꾸는 방법이 있나요? /quit 하고 Thu/를 입력해도 No such file or directory 라고 뜨면서 안돼서 껐다켜고있습니다.54쪽에 1번 ! Is가 잘 작동이 안되는데 뭘하는건지 잘 모르겠습니다. ! for bash mode라고 뜨는데요. Is를 입력하면 /bin/bash: line1: Is: command not found 라고 뜹니다.
-
해결됨스프링부트로 직접 만들면서 배우는 대규모 시스템 설계 - 게시판
messagerelayconfig클래스에서
bootstrapServers의 value값은 어디에 가져오는건가요?yml이나 properties파일은 없는 거 같은데..
-
미해결
vagrant.exe up 실행시 이미지의 repo 연결 문제 해결방법있나요?
vagrant.exe up 명령어 실행시 repo 가 더 이상 지원되지 않는 서버라 연결이 안되는 문제가 있는것 같습니다. 해결방안이 있을까요? C:\Program Files\Vagrant\bin>vagrant.exe upBringing machine 'm-k8s' up with 'virtualbox' provider...==> m-k8s: Importing base box 'sysnet4admin/CentOS-k8s'...==> m-k8s: Matching MAC address for NAT networking...==> m-k8s: Checking if box 'sysnet4admin/CentOS-k8s' version '0.8.0' is up to date...==> m-k8s: Setting the name of the VM: m-k8s(github_SysNet4Admin)==> m-k8s: Clearing any previously set network interfaces...==> m-k8s: Preparing network interfaces based on configuration...m-k8s: Adapter 1: natm-k8s: Adapter 2: hostonly==> m-k8s: Forwarding ports...m-k8s: 22 (guest) => 60010 (host) (adapter 1)==> m-k8s: Running 'pre-boot' VM customizations...==> m-k8s: Booting VM...==> m-k8s: Waiting for machine to boot. This may take a few minutes...m-k8s: SSH address: 127.0.0.1:60010m-k8s: SSH username: vagrantm-k8s: SSH auth method: private keym-k8s: Warning: Connection reset. Retrying...m-k8s: Warning: Connection aborted. Retrying...m-k8s: Warning: Connection reset. Retrying...m-k8s: Warning: Connection aborted. Retrying...m-k8s: Warning: Connection reset. Retrying...m-k8s: Warning: Connection aborted. Retrying...m-k8s:m-k8s: Vagrant insecure key detected. Vagrant will automatically replacem-k8s: this with a newly generated keypair for better security.m-k8s:m-k8s: Inserting generated public key within guest...m-k8s: Removing insecure key from the guest if it's present...m-k8s: Key inserted! Disconnecting and reconnecting using new SSH key...==> m-k8s: Machine booted and ready![m-k8s] A Virtualbox Guest Additions installation was found but no tools to rebuild or start them.Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
-
미해결[개념반]배워서 바로 쓰는 SQL 쿼리
실습 문제 20번) 구문 작성 오류 관련 문의사항
select country, count(*)from customersgroup by country;위의 구문을 작성했을 때는 정상적으로 작동이 되었는데, 왜 count(distinct customerID) 구문을 넣었을 때는 오류 표시가 나는 지 궁금합니다....
-
미해결[취업폭격기] 공공기관 전산직(IT) 취업 준비를 위한 정규과정 (기초~고급)
[문의] 스터디 일정이 예정되어 있는지 궁금합니다.
안녕하세요. 어제부터 강의를 듣기 시작한 학생입니다.스터디 모집이 끝났는지, 다음 스터디가 있다면 언제쯤 예정되어 있는지 궁금합니다.
-
미해결레트로의 유니티 C# 게임 프로그래밍 에센스
코루틴 관련 질문 있습니다.
챕터5 코루틴 편에서 코루틴은 순차적 처리가 아닌 여러 차례를 병렬로 실행 가능하게 해준다고 소개해주고 있는데, 여러곳에서 알아본 결과 말이 달라서 질문 드립니다.코루틴이 병렬 처리가 가능한 명령어가 맞나요?
-
미해결회사에서 바로 쓰는 업무자동화 AI 에이전트 (w. n8n, LangGraph)
네이버 광고보고서 자동화
안녕하세요 강사님강의 잘보고있습니다. 다름이 아니라, 광고일을 하고있어서n8n으로 네이버대용량보고서 api를 불러온 후, 다운 -> 빅쿼리에 데이터 적재 -> 루커스튜디오시각화위 과정으로 자동화워크플로우를 짜고있는데요,현재 대용량보고서 다운로드 단계에서 막혀서,혹시 이 부분에 대해서 도움을 받을 수 있을지 문의드립니다.
-
미해결비전공자도 이해할 수 있는 Docker 입문/실전
맨마지막 강의때 application.yml 에 db url 질문
안녕하세요 강의 정말 잘 듣고 있습니다너무 감사합니다. 맨마지막 강의때 spring boot + mysql + redis 컨테이너를 docker compose 를 통해 배포하는 과정에서 jar 파일이 mysql 과 커넥션을 맺어주기 위해서는 전에 강의에서 했던 것 처럼 mysql 컨테이너 service 명으로 url 을 application.yml 에 변경해야 되는게 아닌가요?? 그런 작업이 없었는데도 잘 동작하는게 의아합니다.디폴트로 in memory db(H2) 가 구동이 된 걸까요?
-
미해결PMP(프로젝트 관리 전문가) 자격 취득과정
ECO - PEOPLE 질의
유사 문제를 풀고 있습니다. 질의 응답을 확인 하였으나, 맞지 않느 것 같습니다. 아래 관련 답을 확인 하여 주시면 감사 하겠습니다. As a project manager, you recently completed a project team performance appraisal, and apreviously unknown competency gap in technical skills was uncovered, which needs to beaddressed. What should you do next?A. Implement the response planned for this riskB. Conduct unplanned training to address the competency gapC. Consult the training management planD. Let go of the staff who have technical skill gaps 질문을 남겨주세요. 상세히 작성하면 더 좋아요!- 먼저 유사한 질문이 있었는지 검색해보세요.- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.