묻고 답해요
131만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결구글 스프레드시트로 배우는 업무 자동화(직장인 코딩)
강의자료 공유 부탁드립니다. potamia49@gmail.com
강의자료 공유 부탁드립니다. potamia49@gmail.com
-
미해결홍정모의 따라하며 배우는 C언어
Error in this lecture가 이 뜻 맞나요?
강의 8번째 코드printf("%d\n", *ptr); // 사용자가 입력한 숫자를 dereferencing하려고 해서 당연히 에러가 발생한다라고 강의에서 언급되는데 사실 정확한 이유를 모르겠어서 제가 추론한 게 맞나 궁금합니다.ptr의 주솟값 자체는 0으로 선언했으나 *ptr, 즉 주소를 따라가서 나타나게 된 그 변수의 값은 null이라서 null을 dereferencing 할 수가 없어서 에러가 생기는 것이다 라고 이해하면 맞을까요?
-
미해결
sass 적용이 안됩니다.
섹션 1. 무작정 시작해 봅시다. 일단 클라이언트부터! 상품목록페이지 만들기 위 강의 관련해서 상품목록에 sass를 main.tsx 파일에 import 하는 과정에서 계속 오류가 납니다.package.json 에는 "sass": "^1.60.0" 로 깔려있습니다.scss파일에는 index.scss, product.scss 만들었습니다.index.scss 에는 @import "products"; 입력했고, product.scss에는 css를 아래와 같이 입력했습니다.그리고 나서 main.tsx에 import 했는데 자꾸 첫번째 사진과 같은 오류가 뜹니다. 왜그런걸까요?
-
해결됨[코드캠프] 강력한 CSS
강의자료
강의자료 예제 이미지 다운로드 안되요 계속 못찾는다고 나와요
-
미해결실전! 스프링 데이터 JPA
실행된 Query의 결과에 포함된 컬럼명을 확인 할 수 있을까요?
안녕하세요.지금은 안쓰는 JDBC는 ResultSet.getMetaData()를 통해 컬럼명, 타입을 가져올 수 있었는데, EntityManager를 사용하는 경우 Query의 컬럼명을 확인할 수 있는지 궁금합니다.(질문참고) https://m.blog.naver.com/heoguni/130170563284 감사합니다.
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
2-i 출력 초과 오류
안녕하세요, 큰돌님. 정답 코드에서는 문자열로 비교하였으나 숫자로 직접 비교하는 것도 직관적으로 이해하는 것에 괜찮을 거 같아 코드를 작성해보았습니다.그런데 숫자를 바꾸고 백터에 옮기는 과정 중에 오류가 생겼는지, 더 많은 숫자들이 출력이 됩니다. 이유가 무엇이고 어떻게 고쳐야 하는지 알 수 있을까요?http://boj.kr/365467e927da44928353bd48a3dbbe56아직 실력이 부족하여 질문이 많은 점 죄송합니다. 나름 오랜시간 고민하였습니다. 백터 대신 배열을 크게 잡아 문제를 풀려고 하였는데, 테스트 케이스의 출력은 나오나 이 역시 틀렸다고 나옵니다.이유가 무엇일까요?http://boj.kr/50f1df6dee5f423ba7f4bf219d2fdd1c
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
정점의 크기가 클 때?
안녕하세요정점이 0, 1, 2, 3 순차적으로가 아닌0, 11, 222, 3333, 4444, 55555, 666666, 1234567890, ~이런식으로 중간은 비어있고 값만 크게 들어 오는 경우는 어떤식으로 해결할 수 있을까요??ex)const int V = INT_MAX;vector<int> adj[V];adj[0].push_back(11);adj[1234567890].push_back(0);
-
해결됨[코드캠프] 강력한 CSS
학습자료 요청건
안녕하세요, 열심히 기초부터 수업을 듣고 있는 학생입니다.다름이 아니라 학습자료는 노션 계정이 있어야 가능하다고 공지사항에 적어주셨는데 계정 가입 이후의 진행과정은 어떻게 되나요? 노션 계정이 따로 없어서 일단 만들고자 하는데 만든 이후 제가 따로 알려드려야 할 부분이 있을까요?
-
미해결Express 튜토리얼 : 웹 서비스를 위한 핵심 API
mongoDB 어플리케이션 연결이 안됩니다...
```const express = require("express"); const MongoClient = require("mongodb").MongoClient; const app = express(); const port = 5000; const MongoURL = "mongodb+srv://username:비밀번호@cluster0.elhcowk.mongodb.net/express?retryWrites=true&w=majority"; var db, post; app.use(express.static("public")); app.use(express.urlencoded({ extended: false })); app.set("view engine", "ejs"); //app.set("view engine", "pug"); app.get("/", (req, res) => { post.insertOne({ 제목: "test", 내용: "test", 날짜: new Date(), }); res.render("index"); }); app.post("/calculator", (req, res) => { let result = Number(req.body.num1) + Number(req.body.num2); res.render("result", { result: result }); }); app.all("*", (req, res) => { res.status(404).send("찾을 수 없는 페이지입니다!"); }); MongoClient.connect(MongoURL, (err, database) => { if (err) { console.log(err); return; } else { app.listen(port, () => { console.log(`접속 완료됫어요 ${port}`); }); db = database.db("express"); post = db.collection("posts"); } }); ```강의 해주신대로 위 코드를 입력하고 nodemon을 실행하였음에도.. [nodemon] starting node index.js 라는 문구만 나올뿐.. db연동이 안됩니다 ㅠㅠ혹시 제 코드에 문제가 있나요..? url 부분에 username과 비밀번호는 제 몽고디비 아이디 비밀번호 입력했습니다..혹시 코드부분에서 잘못된 점이 있나요..?
-
해결됨[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
config 파일 수정 문의
안녕하세요 선생님선생님 강의를 통해서 custom dataset을 이용하여faster-rcnn 모델을 돌려볼 수 있었습니다.이 custom dataset으로 다른 모델(swin)도 적용해보려고 하는데요 https://github.com/open-mmlab/mmdetection/tree/master/configs/swin 이 페이지의 mask_rcnn_swin-t-p4-w7_fpn_1x_coco.py 파일을 이용해보려고 합니다. 그에 맞게 config파일과 checkpoints를 변경하고 모델을 구동하려고 하니 mask관련해 오류가 발생했습니다. 아마 mask-rcnn으로인해 발생한 오류처럼 보입니다. 구글링을 해보니 이 부분을 주석 처리해서 실행해보라고 하던데 colab에서 해당 부분을 주석처리할 수 있는 방법이 있을까요? 혹시 더 좋은 방법이 있다면 가르쳐 주시면 감사하겠습니다.2023-03-27 14:19:05,247 - mmdet - INFO - Automatic scaling of learning rate (LR) has been disabled. <ipython-input-14-f8ce61995cc8>:47: DeprecationWarning: `np.long` is a deprecated alias for `np.compat.long`. To silence this warning, use `np.compat.long` by itself. In the likely event your code does not need to work on Python 2 you can use the builtin `int` for which `np.compat.long` is itself an alias. Doing this will not modify any behaviour and is safe. When replacing `np.long`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations 'labels': np.array(gt_labels, dtype=np.long), <ipython-input-14-f8ce61995cc8>:49: DeprecationWarning: `np.long` is a deprecated alias for `np.compat.long`. To silence this warning, use `np.compat.long` by itself. In the likely event your code does not need to work on Python 2 you can use the builtin `int` for which `np.compat.long` is itself an alias. Doing this will not modify any behaviour and is safe. When replacing `np.long`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations 'label_ignore':np.array(gt_labels_ignore, dtype=np.long) 2023-03-27 14:19:08,688 - mmdet - INFO - load checkpoint from local path: checkpoints/mask_rcnn_swin-t-p4-w7_fpn_1x_coco_20210902_120937-9d6b7cfa.pth 2023-03-27 14:19:08,849 - mmdet - WARNING - The model and loaded state dict do not match exactly size mismatch for roi_head.bbox_head.fc_cls.weight: copying a param with shape torch.Size([81, 1024]) from checkpoint, the shape in current model is torch.Size([16, 1024]). size mismatch for roi_head.bbox_head.fc_cls.bias: copying a param with shape torch.Size([81]) from checkpoint, the shape in current model is torch.Size([16]). size mismatch for roi_head.bbox_head.fc_reg.weight: copying a param with shape torch.Size([320, 1024]) from checkpoint, the shape in current model is torch.Size([60, 1024]). size mismatch for roi_head.bbox_head.fc_reg.bias: copying a param with shape torch.Size([320]) from checkpoint, the shape in current model is torch.Size([60]). size mismatch for roi_head.mask_head.conv_logits.weight: copying a param with shape torch.Size([80, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([15, 256, 1, 1]). size mismatch for roi_head.mask_head.conv_logits.bias: copying a param with shape torch.Size([80]) from checkpoint, the shape in current model is torch.Size([15]). 2023-03-27 14:19:08,856 - mmdet - INFO - Start running, host: root@06d3ab7dae34, work_dir: /content/gdrive/MyDrive/htp_dir_swin 2023-03-27 14:19:08,858 - mmdet - INFO - Hooks will be executed in the following order: before_run: (VERY_HIGH ) StepLrUpdaterHook (NORMAL ) CheckpointHook (LOW ) EvalHook (VERY_LOW ) TextLoggerHook -------------------- before_train_epoch: (VERY_HIGH ) StepLrUpdaterHook (NORMAL ) NumClassCheckHook (LOW ) IterTimerHook (LOW ) EvalHook (VERY_LOW ) TextLoggerHook -------------------- before_train_iter: (VERY_HIGH ) StepLrUpdaterHook (LOW ) IterTimerHook (LOW ) EvalHook -------------------- after_train_iter: (ABOVE_NORMAL) OptimizerHook (NORMAL ) CheckpointHook (LOW ) IterTimerHook (LOW ) EvalHook (VERY_LOW ) TextLoggerHook -------------------- after_train_epoch: (NORMAL ) CheckpointHook (LOW ) EvalHook (VERY_LOW ) TextLoggerHook -------------------- before_val_epoch: (NORMAL ) NumClassCheckHook (LOW ) IterTimerHook (VERY_LOW ) TextLoggerHook -------------------- before_val_iter: (LOW ) IterTimerHook -------------------- after_val_iter: (LOW ) IterTimerHook -------------------- after_val_epoch: (VERY_LOW ) TextLoggerHook -------------------- after_run: (VERY_LOW ) TextLoggerHook -------------------- 2023-03-27 14:19:08,859 - mmdet - INFO - workflow: [('train', 1)], max: 5 epochs 2023-03-27 14:19:08,860 - mmdet - INFO - Checkpoints will be saved to /content/gdrive/MyDrive/htp_dir_swin by HardDiskBackend. --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-35-c8cc0d536607> in <module> 4 mmcv.mkdir_or_exist(os.path.abspath(cfg.work_dir)) 5 # epochs는 config의 runner 파라미터로 지정됨. 기본 12회 ----> 6 train_detector(model, datasets, cfg, distributed=False, validate=True) 6 frames/usr/local/lib/python3.9/dist-packages/mmdet-2.28.2-py3.9.egg/mmdet/apis/train.py in train_detector(model, dataset, cfg, distributed, validate, timestamp, meta) 244 elif cfg.load_from: 245 runner.load_checkpoint(cfg.load_from) --> 246 runner.run(data_loaders, cfg.workflow) /usr/local/lib/python3.9/dist-packages/mmcv/runner/epoch_based_runner.py in run(self, data_loaders, workflow, max_epochs, **kwargs) 134 if mode == 'train' and self.epoch >= self._max_epochs: 135 break --> 136 epoch_runner(data_loaders[i], **kwargs) 137 138 time.sleep(1) # wait for some hooks like loggers to finish /usr/local/lib/python3.9/dist-packages/mmcv/runner/epoch_based_runner.py in train(self, data_loader, **kwargs) 47 self.call_hook('before_train_epoch') 48 time.sleep(2) # Prevent possible deadlock during epoch transition ---> 49 for i, data_batch in enumerate(self.data_loader): 50 self.data_batch = data_batch 51 self._inner_iter = i /usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py in __next__(self) 626 # TODO(https://github.com/pytorch/pytorch/issues/76750) 627 self._reset() # type: ignore[call-arg] --> 628 data = self._next_data() 629 self._num_yielded += 1 630 if self._dataset_kind == _DatasetKind.Iterable and \ /usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py in _next_data(self) 1331 else: 1332 del self._task_info[idx] -> 1333 return self._process_data(data) 1334 1335 def _try_put_index(self): /usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py in _process_data(self, data) 1357 self._try_put_index() 1358 if isinstance(data, ExceptionWrapper): -> 1359 data.reraise() 1360 return data 1361 /usr/local/lib/python3.9/dist-packages/torch/_utils.py in reraise(self) 541 # instantiate since we don't know how to 542 raise RuntimeError(msg) from None --> 543 raise exception 544 545 KeyError: Caught KeyError in DataLoader worker process 0. Original Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop data = fetcher.fetch(index) File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/fetch.py", line 58, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/fetch.py", line 58, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/usr/local/lib/python3.9/dist-packages/mmdet-2.28.2-py3.9.egg/mmdet/datasets/custom.py", line 220, in __getitem__ data = self.prepare_train_img(idx) File "/usr/local/lib/python3.9/dist-packages/mmdet-2.28.2-py3.9.egg/mmdet/datasets/custom.py", line 243, in prepare_train_img return self.pipeline(results) File "/usr/local/lib/python3.9/dist-packages/mmdet-2.28.2-py3.9.egg/mmdet/datasets/pipelines/compose.py", line 41, in __call__ data = t(data) File "/usr/local/lib/python3.9/dist-packages/mmdet-2.28.2-py3.9.egg/mmdet/datasets/pipelines/loading.py", line 398, in __call__ results = self._load_masks(results) File "/usr/local/lib/python3.9/dist-packages/mmdet-2.28.2-py3.9.egg/mmdet/datasets/pipelines/loading.py", line 347, in _load_masks gt_masks = results['ann_info']['masks'] KeyError: 'masks'
-
미해결입문자를 위한 자바스크립트 기초 강의
수료 후 수업계획 문의드립니다.
강사님, 작년에 강의 듣다가 다시 듣게됐는데그때 놓쳤던 것들이 다시 보이기 시작했어요.뿌듯하게 입문 완료 했습니다!̆̈ .ᐟ 🎉🎉그런데 앞으로는 어떻게 공부하면 좋을지 모르겠습니다..쌤의 심화 강의가 있다면 듣고싶었는데자바스크립트는 기초밖에없는거 같아서요.. 🥲이후의 공부방법이나 강의 등등 추천 가능하실까요??
-
미해결설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
다른 보드 및 강의자료
나중에 2편도 살 예정인데 현재 보드는 basys3로 하고있습니다. 제가 초보자이고 학생이라 다른 보드는 구입하는게 무리입니다. 이 보드로 쭉 진행해도 괜찮을까요 ? 또한 강의자료 ppt는 따로 못구하나요 ?
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
안녕하세요 변경감지 질문있습니다.
안녕하세요... 변경감지 질문드립니다.지금은 entity만 사용하고있는데 계층간에서는 dto를 사용하는 걸로알고있습니다.그럴경우 엔티티에 있는 updateXxxx메소드를 dto에 옮겨야하나요? 만약 옮긴다면 변경감지가 안되는데 그럴경우 어떻게해야하는지...save를 콜해야하는지..updateXxxx정도는 엔티티에 있어도 되는지 궁금합니다
-
미해결AWS(Amazon Web Service) 입문자를 위한 강의
code-deploy실습에서
루비 설치하고 chmod +x ./install 치고sudo ./install auto를 누르면이런 식으로 에러가 뜹니다... /usr/share/ruby3.2/logger/log_device.rb:83:in `exist?': no implicit conversion of Array into String (TypeError) if File.exist?(path) ^^^^ from /usr/share/ruby3.2/logger/log_device.rb:83:in `set_dev' from /usr/share/ruby3.2/logger/log_device.rb:18:in `initialize' from /usr/share/ruby3.2/logger.rb:587:in `new' from /usr/share/ruby3.2/logger.rb:587:in `initialize' from ./install:43:in `new' from ./install:43:in `<main>'미치겟네요..ㅠㅠ 빠른 답변 부탁드려요
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
3-B 보물섬 코드질문
안녕하세요 선생님 나름 코드를 짜고 테스트케이스를 통과하여 기쁜 마음으로 채점을 해봤는데 "틀렸습니다!" 라고 나오는데 혹시 왜 틀렸는지 코드 한 번 봐주실 수 있나요??http://boj.kr/faef0eba568e47b3b9ff7e9aaf361e69(링킹 피드백 적용!!)
-
해결됨외워서 끝내는 네트워크 핵심이론 - 기초
URI와 URL의 차이가 뭘까요?
선생님 안녕하세요URI와 URL의 차이가 궁금하여 질문드립니다.강의를 보았지만 그 차이에 대해서 모르겠습니다.그리고 예시로 들어주셨던 index.html에 대해서 일반적으로 웹 주소만 입력하면 저 html을 요청하는거라고 했을 때, index.html이 생략된 웹 주소는 URI인가요 URL인가요?그리고 URI 구조에 대해서도 보여주셨는데, 거기에서 무엇이 빠지면 URL이 되는건가요? 솔직히 두 개념의 차이를 모르겠습니다.ㅜㅜ
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
7강 주소 페이지 Whitelabel Error Page
안녕하세요 선생님 7강 도서 페이지 들어갈 때 Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Sun Mar 26 19:37:03 KST 2023There was an unexpected error (type=Not Found, status=404).라고 오류가 뜨는데 주소도 문제 없고, . ____ _ /\\ / ___'_ __ (_)_ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.7.7)2023-03-26 19:34:53.892 INFO 19636 --- [ main] c.g.libraryapp.LibraryAppApplication : Starting LibraryAppApplication using Java 11.0.17 on DESKTOP-Q6HP16E with PID 19636 (C:\libraryapp\library-app\library-app\out\production\classes started by 임수빈 in C:\libraryapp\library-app)2023-03-26 19:34:53.897 INFO 19636 --- [ main] c.g.libraryapp.LibraryAppApplication : No active profile set, falling back to 1 default profile: "default"2023-03-26 19:34:55.153 INFO 19636 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)2023-03-26 19:34:55.168 INFO 19636 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]2023-03-26 19:34:55.168 INFO 19636 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.70]2023-03-26 19:34:55.314 INFO 19636 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext2023-03-26 19:34:55.315 INFO 19636 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1345 ms2023-03-26 19:34:55.669 INFO 19636 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''2023-03-26 19:34:55.680 INFO 19636 --- [ main] c.g.libraryapp.LibraryAppApplication : Started LibraryAppApplication in 2.299 seconds (JVM running for 2.84)2023-03-26 19:35:05.878 INFO 19636 --- [nio-8080-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'2023-03-26 19:35:05.879 INFO 19636 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'2023-03-26 19:35:05.880 INFO 19636 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms 파일 실행도 문제가 없는 것을 확인하였는데 오류 페이지 뜨는 이유가 있을까요?
-
미해결개발하는 정대리 스위프트 기초 문법
클로저 사용 방법의 다양성
클로저를 사용하는 다양한 방법에 대해서 공부할 수 있었습니다.그렇다면 Swift는 왜 이렇게 같은 결과 같에 대해서 다양한 표현 방식을 가지고 있는 건가요?또 실제 코딩시 상황마다 적절한 형태가 존재 하는건가요?
-
미해결Flutter 초입문 왕초보편
main_screen 질문
051.비만도계산기프로젝트 강의영상 2:58에서요 class MainScreen extends StatefulWidget { const MainScreen({Key? key}) : super(key: key); @override State<MainScreen> createState() => _MainScreenState(); } class _MainScreenState extends State<MainScreen> { @override Widget build(BuildContext context) { return Container(); } } 이렇게 입력을 한 이유가 뭔가요? MainScreen 하고 Container이요
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
hellospringapplication 실행 오류
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.2023-03-27T20:32:57.394+09:00 ERROR 5304 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : ***************************APPLICATION FAILED TO START***************************Description:Web server failed to start. Port 8080 was already in use.Action:Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.Process finished with exit code 1이런식으로 오류가 뜨는데 어떻게 해결해야 되는지 모르겠어요..