173만명의 커뮤니티!! 함께 토론해봐요.
해결됨
자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
function solution(s: string, t: string) { let answer = 0; t = t.split("").sort().join(""); for (let i = 0; i < s.length; i++) { const slideStr = s.slice(i, i + t.length); console.log(slideStr); if (slideStr.split("").sort().join("") === t) answer++; } return answer; } console.log(solution("bacaAacba", "abc")); 선생님께서 풀어주신 방식이랑 너무 달라, 이 방식도 효율적인지 확신이 안서서요. 제 코드 한 번 확인 부탁드리겠습니다.
Eunji Lee
2023-01-01T13:42:09.392Z
댓글 1
좋아요 0
조회수 356
해결됨
[코드캠프] 부트캠프에서 만든 고농축 백엔드 코스
uuid 로 한 이유가 있을까요 ?? ㅎ
tdd javascript rest-api docker express nodejs NestJS
SJ
2023-01-01T13:24:49.740Z
댓글 1
좋아요 0
조회수 428
미해결
비전공자를 위한 진짜 입문 올인원 개발 부트캠프
import "./App.css"; import MainPageComponent from "./main"; import { Switch, Route } from "react-router-dom"; import UploadPage from "./upload"; import ProductPage from "./product"; function App() { return <div> <Switch> <Route exact={true} path={"/"}> <MainPageComponent/>; </Route> <Route exact={true} path="/product"> <ProductPage/> </Route> <Route exact={true} path="/upload"> <UploadPage/> </Route> </Switch> </div> } export default App; import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import { BrowserRouter as Router } from 'react-router-dom'; ReactDOM.render( <React.StrictMode> <Router> <App /> </Router> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals(); "name": "reactsecond", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", "axios": "^1.2.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^5.2.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } } 오류내용- 화면이 빈페이지로나옴(컴파일은 success) react-dom.development.js:86 Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot printWarning @ react-dom.development.js:86 bootstrap:27 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at ensureRootIsScheduled (react-dom.development.js:25626:1) at scheduleUpdateOnFiber (react-dom.development.js:25531:1) at updateContainer (react-dom.development.js:28858:1) at react-dom.development.js:29576:1 at flushSync (react-dom.development.js:26189:1) at legacyCreateRootFromDOMContainer (react-dom.development.js:29575:1) at legacyRenderSubtreeIntoContainer (react-dom.development.js:29601:1) at Object.render (react-dom.development.js:29685:1) at ./src/index.js (index.js:8:1) at options.factory (react refresh:6:1) 140react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchContinuousEvent (react-dom.development.js:6444:1) 5react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchDiscreteEvent (react-dom.development.js:6430:1) 4react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchContinuousEvent (react-dom.development.js:6444:1) 8react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchDiscreteEvent (react-dom.development.js:6430:1) 128react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchContinuousEvent (react-dom.development.js:6444:1)
react tensorflow HTML/CSS 머신러닝 배워볼래요? nodejs javascript react-native express
김진호
2023-01-01T13:15:41.944Z
댓글 2
좋아요 1
조회수 1919
미해결
따라하며 배우는 리액트 A-Z[19버전 반영]
안녕하세요 넷플릭스 앱까지 수강했습니다! app 테스트를 해보다가 검색 후에 홈으로 돌아가고 싶을 때 netflix 로고를 누르더라도 홈으로 돌아가지 않는 거 같은데, 해당 기능을 위해서 어떤 코드를 추가해줘야할까요??
redux tdd typescript react Next.js
kwangjin12
2023-01-01T12:56:04.185Z
댓글 1
좋아요 0
조회수 368
미해결
[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part2: 자료구조와 알고리즘
int now = _heap.Count - 1; 이 부분에서, (_heap.Count - 1) 이 추가한 노드의 위치가 되는 과정이 궁금합니다. 혹시 카운트가 0을 포함하기 때문에 1을 빼 줘야 본래 위치가 나오는 건가요?
IronWisp
2023-01-01T12:54:09.125Z
댓글 1
좋아요 0
조회수 290
해결됨
14일만에 배우는 ASP.NET CORE
안녕하세요 강사님. 지난번 mysql 관련해서 질문을 했었습니다. 제가 기초도 없는데 db화면에 뿌려보겠다고 열심히 삽질하다가 다시 기초부터 봐야될것 같아서 처음부터 강의 내용을 손에 익을때까지 따라하고 있습니다. 현재 제가 사용하는 버전은 core 6 버전입니다. visual studio 2022버전이구요. 근데 04.의존성주입 패턴<-- 이강의를 따라할때 거의 끝무렵에 //의존성 주입을 사용하기 위해 서비스로 등록 //인터페이스(IUser)는 껍데기, UserService 내용물. //IUser 인터페이스에 UserService 클래스 인스턴스 주입. builder.Services .AddScoped<IUser, UserService>(); //mvc패턴을 사용하기 위해서 서비스로 등록. builder.Services .AddMvc(); 해당 두줄을 입력해주는데요. 제가 지금 저 AddScoped 부분에서 예외처리가 안되서 f5로 실행을 하면 오류가 발생을 하더라구요. 오류 내용 읽어보면. System.NullReferenceException : 개체 참조가 개체의 인스턴스로 설정되지 않았습니다. 위 내용이 첫줄로 나오는데 이 오류를 해결하는 방법이 무엇인지 아실까요? 또한 화면 상단에 ChangeSignatureCodeRefactoringProvider 에 오류가 발생하여 사용할 수 없습니다. 라는 것도 추가적으로 나옵니다.. 이게 비쥬얼스튜디오 버전이 달라서 발생하는 것인지.... 확인 한번 부탁드립니다 ㅠ
h그레모리
2023-01-01T12:40:35.297Z
댓글 2
좋아요 0
조회수 393
미해결
Vue3 완벽 마스터: 기초부터 실전까지 - "기본편"
안녕하세요! 강의 잘 듣고 있습니다. 어느 순간 부터 vue devtools가 안나오더라고요.. vue.js detected on this page 는 뜨는데 개발자 도구에서는 vue 탭이 갑자기 안보이는 현상이 발생하였습니다. 혹시 해결 방법 아실까요?? 크롬 버전 문제라던가..
euntaek.oh11
2023-01-01T12:26:42.531Z
댓글 1
좋아요 0
조회수 499
미해결
일주일 완성! 3dsmax 입문 (자동차 및 캐릭터 만들기)
강의처럼 로컬축을했을때 수직으로 생성이안되요
부드러운 종다리
2023-01-01T12:21:08.243Z
댓글 1
좋아요 0
조회수 341
미해결
일주일 완성! 3dsmax 입문 (자동차 및 캐릭터 만들기)
로컬좌표축으로 해도 각도가 원하는대로 안나와서 리셋x폼을 해봤는데 저렇게 오류가 나고 되돌아가기도 안되는데 어떤게 문제인지 모르겠어요 그리고 리셋x폼하고 convert to editable poly하면 시메트리도 병합?되버리는데 원하는거만 적용할수없을까요??
부드러운 종다리
2023-01-01T12:15:14.364Z
댓글 0
좋아요 0
조회수 430
해결됨
15일간의 빅데이터 파일럿 프로젝트
안녕하세요, 15일간의 빅데이터 파일럿 프로젝트 강의 수강생입니다. 유익한 강의 감사합니다. 설명을 잘해주셔서 큰 어려움 없이 듣고 있습니다. 다만, VM 환경 구성 중 로그인 관련 문제 가 생겨서 질문드립니다. Server01과 Server02 에서 모두 로그인을 요청 하고 있으며, 다음 단계 로 진행할 수 없습니다. 윈도우11 PC에서 Virtual Box 버전은 VirtualBox 6.1.40 입니다. 강의와 동일한 5 버전이 지원되지 않아서 가장 가까운 6.1.40 버전 과 최신 7 버전 으로 설치했습니다. C, D 드라이브 용량은 200GB 이상 여유공간이 있으며, SSD입니다. 아래는 과거 게시판 질문 답변과 구글링을 바탕으로 시도한 방법입니다. Virtual Box 삭제 및 설치 - 6, 7 버전 모두 시도 / Server01, Server02 파일 재다운로드 -> Host-Only Ethernet Adapter를 찾지 못하는 경우가 있었으나, Virtual Box의 Host-Only Ethernet Adapter 재설정 후 접속해도 로그인창이 나왔습니다. Host-Only Ethernet Adapter 에러 Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND). Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND). 결과 코드: E_FAIL (0x80004005) 구성 요소: ConsoleWrap 인터페이스: IConsole {872da645-4a9b-1727-bee2-5585105b9eed} -> 해당 에러는 새로운 Host-Only Ethernet Adapter를 추가하여 해결되었습니다. ->Server02, 01 순서로 실행하고, 각각 하나씩 실행도 했습니다. 윈도우 제어판 Host-Only Ethernet Adapter 설정 -> 윈도우 제어판 네트워크 설정에서 Host-Only Ethernet Adapter 사용 안함으로 설정하고, 재설치하였으나 로그인창 문제가 해결되지 않았습니다. 현재 Virtual Box 네트워크 환경 설정입니다. 관련이 있는지는 모르겠지만, VBoxNetDHCP 프로세스 종료 후에도 진행하였으나 동일한 현상이 발생했습니다. 해당 문제를 해결할 방법 또는 추가로 시도할 방법이 있을까요? 답변 기다리겠습니다. 감사합니다.
Hadoop bigdata Impala Kafka redis 데이터 엔지니어링 ZooKeeper Flume
드인
2023-01-01T11:59:34.108Z
댓글 1
좋아요 1
조회수 529
해결됨
파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
profile의 저장되어있는 first_name의 키 값을 찾아내려고 하니깐 해당 오류가 발생합니다. 어떻게 접근해서 가져와야할까요?
2023-01-01T11:35:44.009Z
댓글 1
좋아요 0
조회수 318
미해결
따라하며 배우는 HTML, CSS
필기하고 싶은데 자료를 못 찾겠네요 ㅜㅜ
한지예/캠퍼스자율전공(서울)
2023-01-01T11:21:04.473Z
댓글 2
좋아요 0
조회수 545
미해결
홍정모의 따라하며 배우는 C언어
맥os를 사용해서 그런데 visual studio, visual studio code 말고 xcode를 사용해도 수업 진행에 지장이 없을까요??
jdna1009
2023-01-01T10:39:44.748Z
댓글 2
좋아요 0
조회수 476
미해결
처음 만난 리액트(React)
npm strat를 했는데 이렇게 뜹니다. 몇번을 코드를 고쳐봤는데도 이렇게 떠서 질문남깁니다. 코드도 올려놓겠습니다. import styled from "styled-components"; const Wrapper = styled.div` padding: 1rem; display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; background-color: lightgrey; `; const Block = styled.div ` padding: ${(props) => props.padding}; border: 1px solid black; border-radius: 1rem; background-color: ${(props) => props.backgroundColor}; color: white; font-size: 2rem; font-weight: bold; text-align: center; `; const blockItems = [ { label: "1", padding: "1rem", backgroundColor: "red", }, { label: "2", padding: "3rem", backgroundColor: "green", }, { label: "3", padding: "2rem", backgroundColor: "blue", }, ]; function Blocks(props) { return ( <Wrapper> {blockItems.map((blockItem) => { return ( <Block padding={blockItem.padding} backgroundColor={blockItem.backgroundColor} > {blockItem.label} </Block> ); })} </Wrapper> ); } export default Blocks;
멘탈재생
2023-01-01T09:06:09.384Z
댓글 1
좋아요 0
조회수 695
해결됨
[MASTER] 만들면서 배우는 Figma UI Design
안녕하세요 연남동 이재용입니다. 피그마 관련 업데이트가 많아 미루고 있던 강의를 조금씩 업로드하고자 합니다. variant기능은 업데이트 해두었습니다. 새해 복 많이 받으시고 앞으로도 강의 많이 기대해주세요. 감사합니다.
김수재
2023-01-01T09:05:49.039Z
댓글 0
좋아요 0
조회수 368
미해결
실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
[질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예) 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예) 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예) [질문 내용] JpashopApplication 실행시 localhost:8080/members/new 에서 오류 없이 submit이 되어서 redirect까지 되는데 log에 insert 쿼리 날라가는게 강사님처럼 보이지 않고 h2에 저장이 안되는 이유를 못찾아서 문의남깁니다ㅠㅠ
h2 웹앱 JPA spring spring-boot java
dudgns2865
2023-01-01T08:50:34.316Z
댓글 1
좋아요 0
조회수 824
미해결
[초중급편] 안드로이드 데이팅 앱 만들기(Android Kotlin)
CardStackView 구현 강의 수강 중 의존성 관련 에러로 질문드립니다. plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' } android { namespace 'com.example.myapplication' compileSdk 32 defaultConfig { applicationId "com.example.myapplication" minSdk 21 targetSdk 32 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } } dependencies { implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'com.google.android.material:material:1.6.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.4' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0' implementation "com.yuyakaido.android:card-stack-view:2.3.4" //implementation("com.yuyakaido.android:card-stack-view:2.3.4") //implementation group: 'com.yuyakaido.android', name: 'card-stack-view', version: '2.3.4' } 여러 방법으로 추가해봤는데 External Libraries에 추가가 안되더라구요. Invalidate Cache & restart도 해보고 IDE 재시작도 해봤는데 여전히 무반응입니다. 혹시 프로젝트를 만들 때, 특별한 설정을 해야하나요? 현재 Empty Activity로 만들어서 진행하고 있습니다.
dependencies android 의존성 kotlin firebase
2023-01-01T08:48:32.203Z
댓글 1
좋아요 0
조회수 578
해결됨
[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스
포트폴리오 리뷰 파일 다운하고 yarn install 하고 실행하면 페이지는 잘 나타나서 입력을하고 등록을하면 아래와 같이 오류가 납니다 왜일까요 ㅠㅠ
react graphql nodejs seo Next.js
dydtjq324
2023-01-01T08:47:01.497Z
댓글 1
좋아요 0
조회수 337
미해결
단 2주간 키운 블로그로 월 80만원 용돈 벌기
broz3105@naver.com 으로 자료 부탁드립니다. 감사합니다.
브브
2023-01-01T08:44:56.042Z
댓글 0
좋아요 0
조회수 316
미해결
따라하며 배우는 도커와 CI환경 [2023.11 업데이트]
최근 소스 코드 자료 (21/12/28) 다운받아서 보고있는데, 강의 목록 중에 [AWS 업데이트) 일래스틱 빈스톡 플랫폼 브랜치] 와 약간 달라서 질문드립니다. Dockerrun.aws.json에 명시되어 있는 설정들을 docker-compose.yml으로 옮기는 과정에서 version: '3' services: nginx: restart: always image: xxx/docker-nginx ports: - "80:80" 여기서 mem_limit과 links 부분이 다운받은 소스코드 자료에는 없는데,(version 2.4 도..) 어떤 자료가 맞는 것인지 질문드립니다.. --- 그리고 travis ci는 정상적으로 동작하는데, Elastic Beanstalk 환경에서는 상태가 '심각'으로 나옵니다.. EB에서 환경으로 이동시, 502 Bad Gateway ... nginx_1 | 2023/01/01 07:37:50 [error] 28#28: *16 connect() failed (113: No route to host) while connecting to upstream, .... frontend/Dockerfile FROM node:16-alpine as builder WORKDIR /app COPY ./package.json ./ RUN npm install COPY . . RUN npm run build FROM nginx EXPOSE 3000 COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf COPY --from=builder /app/build /usr/share/nginx/html frontend/nginx/default.conf server { listen 3000; location / { root /usr/share/nginx/html; index index.html index.htm; try_files $uri $uri/ /index.html } } nginx/default.conf upstream frontend { server frontend:3000; } upstream backend { server backend:5000; } server { listen 80; location / { proxy_pass http://frontend; } location /api { proxy_pass http://backend; } location /sockjs-node { proxy_pass http://frontend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } } 답변 부탁드립니다.
docker aws github travis-ci cicd 데이터 엔지니어링
강한 도마뱀
2023-01-01T08:36:17.694Z
댓글 0
좋아요 0
조회수 654