개발문제해결

    React 에러 - Cannot find file: .. does not match the corresponding name on disk

    React 에러 - Cannot find file: .. does not match the corresponding name on disk

    에러이다. 뭐가문제지.. 라고 생각해서 파일들에 적혀있는 모든 index를 체크, 구글링하는 뻘짓을 하여 30분가량을 소모했는데 문제는 Index.js 였다. 그렇다! 대문자가 문제였던 것이다.. index.js 로 파일명을 바꾸어주니 무사히 해결됐다. 에러를 구글링하여 이 포스틍에 들어온 분들은 먼저 철자를 체크해보시길 바란다. 구글링 해 본 결과, 철자에서 문제가 일어나는 케이스가 많았다. https://github.com/webpack/webpack/issues/5073 흔한 예로는 import React from 'react'; 를 React로 적어서 에러가 나는 경우인듯 하다. 먼저 자신의 코드가 React로 되어있는지 체크를 해보도록 하자.

    백준 11399 - ATM python3

    백준 11399 - ATM python3

    # https://www.acmicpc.net/problem/11399 input() total = 0 alist = sorted(list(map(int, input().split(" ")))) for x, y in enumerate(alist): total += y while x != 0: x -= 1 total += alist[x] print(total) 처음 배열 사이즈를 받는 걸 못보고 넘기고 만들었다가 나중에 확인하게 돼서 그냥 첫째줄에 input 추가해주니 통과 끝나고 다른 사람들의 답안을 확인해보니, 내가 한방법은 좋지않은 방법인듯하다..

    정올 알고리즘 - 1856 : 숫자사각형2 python3

    생각보다 오래걸렸다.. # http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=1129&sca=2010 inputValue = input() x = int(inputValue.split(' ')[0]) y = int(inputValue.split(' ')[1]) count = 0 for idx in range(1, x+1): for sub_idx in range(1, y+1): if idx % 2 == 0: count -= 1 print(count, end=" ") else: count += 1 print(count, end=" ") if idx % 2 == 1: count = count + y + 1 else: count = count + y - 1..

    정올 알고리즘 - 1341 : 구구단2 python3

    변수를 줄여도 c보다 메모리 효율이 떨어지는 건 어쩔수 없다보다. 어짜피 줄일 수 없으면 가독성이나 높이는 것이 좋겠다 싶어 변수할당하였다. # http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=2076&sca=2010 inputValue = input() x = int(inputValue.split(' ')[0]) y = int(inputValue.split(' ')[1]) for idx in range(abs(x - y)+1): if x-y > 0: idx = idx * -1 for num in range(1, 10): print(f"{x + idx} * {num} = {str((x + idx) * num).rjust(2)} ", end="") ..

    Brackets 자바스크립트(javascript) 첫 console.log 에러

    Brackets 자바스크립트(javascript) 첫 console.log 에러

    1. 'console' was used before it was defined. 2. ERROR: Unexpected console statement.[no-console] 3. ERROR: 'console' is not defined.[no-undef] Brackets으로 처음 console.log를 하면 나올 수 있는 에러들이다. 웹을 뒤져서 해결했기에 다른 사람들은 고생하지 않길 바라는 마음에 적는다. 어떤 원리로 고쳐지는 지는 나도 모른다. 1. 'console' was used before it was defined. 맨 처음에 주석 /*jslint devel: true */ 를 붙여준다. https://stackoverflow.com/questions/40816924/jslint-throwin..

    백준 10866 - 덱

    import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; public class Main2 { static class Deque { private int deque[]; private int end = 0; public Deque(int num) { deque = new int[num]; } void push_front(int x) { for (int i = end; i > 0; i--) { deque[i] = deque[i - 1]; } deque[0] = x; end++; } void p..

    백준 10845 - 큐

    public class algo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); Queue q = new LinkedList(); int i = 0; sc.nextLine(); while (i < num) { String comand = sc.nextLine(); StringTokenizer st = new StringTokenizer(comand, " "); String firstHalf = st.nextToken(); String secondHalf = ""; if(st.hasMoreElements()) { secondHalf= st.nextToken(); } sw..

    백준 10799 - 쇠막대기

    public class algo { public static void main(String[] args) { int stickNum = 0; int sum = 0; Scanner sc = new Scanner(System.in); String temp = sc.nextLine(); char stickString[] = temp.toCharArray(); int i = 0; do { switch (stickString[i]) { case '(': stickNum++; break; case ')': if (stickString[i - 1] == '(') { stickNum--; sum += stickNum; } else if (stickString[i - 1] == ')') { stickNum--; sum+..

    에러 The goal you specified requires a project to execute but there is no POM

    에러 The goal you specified requires a project to execute but there is no POM

    [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\......................). Please verify you invoked Maven from the correct directory. -> [Help 1][ERROR][ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR][ERROR] For more information abo..

    스프링 시큐리티 5 - There is no PasswordEncoder mapped for the id "null"

    스프링 시큐리티 5 - There is no PasswordEncoder mapped for the id "null"

    https://spring.io/blog/2017/11/01/spring-security-5-0-0-rc1-released#reverting-to-previous-behavior-insecure The general format for a password is:{id}encodedPasswordSuch that id is an identifier used to look up which PasswordEncoder should be used and encodedPassword is the original encoded password for the selected PasswordEncoder. The id must be at the beginning of the password, start with { a..