더 공부하기 위해 강좌를 통해 만든 서비스를 이용하여 아주 간단하게 앱까지 제작해보려 하고 있습니다. 리액트 네이티브에서 웹뷰 형태로 웹을 불러오려 하는데 반응형 퍼블리싱을 어떻게 해야할지 궁금해졌습니다. 웹은 일반적으로 미디어 쿼리를 통해 임의의 분기점 마다 스타일 값을 바꿔서 자연스럽게 보이게 합니다. 패딩을 예로 들면, 분기점이 320, 760, 1080 일 경우 350px과 400px 에서는 같은 패딩 값을 갖게 됩니다. 이때 같은 8px 이라 가정한다면, 두 경우에 패딩이 화면을 차지하는 비율이 다르게 됩니다. 따라서 이렇게 px로 값을 준 요소들은 디바이스 마다 차지하는 비율이 조금씩 다르게 되고, 화면이 전체적으로 다르게 느껴질겁니다. 웹에서도 상대 값인 % 단위로 값을 주는 부분도 있지만, 대부분 분기점에서 어떻게 바뀌어야 하는지를 더 신경쓰고 그 사이에서는 같은 px 로 주는 경우도 많다고 느꼈습니다. 그런데 앱에서 쓰일 웹뷰의 경우도 디자인과 크게 다르지 않다면 분기점 사이의 차이는 넘어가고 디바이스 별로 화면이, 요소의 비율이 조금씩 다른건 신경쓰지 않아도 되는지 궁금합니다. 그래서 다른 예시를 찾아보니 어떤 앱 프로젝트에서는 마진, 패딩, 심지어 폰트 사이즈까지 상대 값인 %로 계산하여 값을 정한 코드도 보았습니다. 보통 앱에서/웹뷰에서 반응형 퍼블리싱을 어떻게 하는지, 앱개발을 해보신 제로초님께서는 어떻게 하시는지 궁금합니다.
items %>% html_nodes(css = 'dl dd:nth-child(2) span') %>% html_text() > character(0) 아래 '장점', '단점'을 크롤링 하려고 하는데 자꾸 character(0) 이라고 결과가 뜹니다. css 모두 확인했습니다. 다른 명령은 잘 나오는데요... items %>% html_nodes(css = 'div.content_top_ty2 span:nth-child(2)') %>% html_text() [1] "미디어/홍보" "디자인" "디자인" "마케팅/시장조사" "미디어/홍보" 혹시 방법을 알 수 있을까요? ㅠㅠㅠ
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. 새로운 기능 및 개선 사항에 대 한 최신 PowerShell을 설치 하세요! https://aka.ms/PSWindows PS C:\Users\spear\PycharmProjects\test> pip install requests Requirement already satisfied: requests in c:\program files\python310\lib\site-packages (2.28.1) Requirement already satisfied: idna<4,>=2.5 in c:\program files\python310\lib\site-packages (from requests) (3.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\program files\python310\lib\site-packages (from requests) (1.26.10) Requirement already satisfied: certifi>=2017.4.17 in c:\program files\python310\lib\site-packages (from requests) (2022.6.15) Requirement already satisfied: charset-normalizer<3,>=2 in c:\program files\python310\lib\site-packages (from requests) (2.1.0) PS C:\Users\spear\PycharmProjects\test> 위와 같이 pip install requests를 설치하고, 아래와 같이 예시 코드를 따라했습니다. import requests import json response = requests.get('https://www.naver.com') print(response.text) 실행을 하면 아래와 같이 오류가 발생합니다. C:\Users\spear\anaconda3\envs\test\python.exe C:/Users/spear/PycharmProjects/test/main.py Traceback (most recent call last): File "C:\Users\spear\PycharmProjects\test\main.py", line 1, in <module> import requests ModuleNotFoundError: No module named 'requests' 종료 코드 1(으)로 완료된 프로세스 프로그램을 종료 후 다시 시작해도 동일하게 오류가 발생하는데, 원인과 해결방법을 알려주시면 감사하겠습니다.
string의 내용을 복사하는 방식이 Span이나 ArraySegment를 통한 TryWriteByte방식이 아닌 segment.Array를 불러와 직접 복사해넣는 방식인데 강의를 듣던 도중 생각난 가정을 물어보고싶습니다. Open의 reserveSize를 작게 설정하고 진행했을 때 만약 해당 string(여기서는 name)이 너무 길면 실제 버퍼의 영역을 벗어나서 예외처리되거나 Open한 크기 이상으로 Close를 시도하게 될텐데 일부러 예외처리가 발생하도록 냅두고 로그를 살펴보기 위함인가요? 아니면 reserveSize가 그렇게 작게 설정되는 상황 자체가 문제가 되는 건가요?
reorder 수행하고 x 축으로 20도 회전한 결과가 x가 아니라 z축으로 20도 회전한 결과라고 생각이 드는데요. OpenGL 좌표계의 x,y,z 축이 아닌 걸까요?ㅠ reorder하고 x축으로 20도 회전하면 머리를 치켜 올리는 형상으로 회전 해야하는거 아닌가요?ㅠ
아래에 비슷한 질문이 있어서 해당 댓글 보며 해결해보려고 했는데 잘 안 되어서 질문 남깁니다 ㅠㅠ 어떻게 해결하면 좋을까요? 터미널에 뜨는 에러는 아래와 같습니다...! 맥북 사용하고 있어요!! npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules/sequelize-cli npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/sequelize-cli' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/sequelize-cli'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/sequelize-cli' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /Users/jade/.npm/_logs/2022-07-21T07_25_57_741Z-debug-0.log
안녕하세요. 1강 부터 내용 따라 하던 중 back 디렉토리에 npm i로 설치 시 아래와 같이 에러가 나면서 설치가 되지 않아 문의 드립니다. 감사합니다. 수고하세요. ------------------------------------------------------------------------------------------------------------------------- npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm ERR! code 1 npm ERR! path D:\study\react\sleact\back\node_modules\bcrypt npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@16.15.1 | win32 | x64 npm ERR! gyp info find Python using Python version 3.10.5 found at "C:\Users\lodics\AppData\Local\Programs\Python\Python310\python.exe" npm ERR! gyp info find VS using VS2019 (16.11.32602.291) found at: npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional" npm ERR! gyp info find VS run with --verbose for detailed information npm ERR! gyp info spawn C:\Users\lodics\AppData\Local\Programs\Python\Python310\python.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'msvs', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'D:\\study\\react\\sleact\\back\\node_modules\\bcrypt\\build\\config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\\Users\\lodics\\AppData\\Local\\node-gyp\\Cache\\16.15.1\\include\\node\\common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\lodics\\AppData\\Local\\node-gyp\\Cache\\16.15.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\lodics\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.15.1\\\\<(target_arch)\\\\node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=D:\\study\\react\\sleact\\back\\node_modules\\bcrypt', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'D:\\study\\react\\sleact\\back\\node_modules\\bcrypt\\build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:261:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Windows_NT 10.0.19044 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd D:\study\react\sleact\back\node_modules\bcrypt npm ERR! gyp ERR! node -v v16.15.1 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\lodics\AppData\Local\npm-cache\_logs\2022-07-21T07_34_38_266Z-debug-0.log -------------------------------------------------------------------------------------------------------------------------
제목과 동일하게 input의 max 값 이상 입력햇을시에 alert이 뜨고 리셋시키려고 하는데요. function resultFunc() { var value = input.value; var max = input.getAttribute('max'); if (value < randomNum) { result.innerHTML = resultArr[0]; } else if (value > randomNum) { result.innerHTML = resultArr[1]; } else { result.innerHTML = resultArr[2]; } if (max < value) { alert(max + '이하로 입력 해주세요.'); value = 1; } } 위의 소스에서 파란색부분을 추가 했는데, max값 이하도 alert이 실행이 됩니다.. max값은 10으로 잘 나오는데 value값을 제대로 못불러오는건지 방법이 있을까요..?
json 형태의 로그를 수집 후 table a | parse json_parser(생성) 로 파싱을 하면 Key value가 정상적으로 파싱이 되는데 그 이후에 value들을 , 기준으로 짤라서 사용할 수 있을까요?? 이런 형태입니다. key(b): value(c,d,e)
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 최고강의 에 감사드리며 ^^ 41강 아이디 중복확인시 한번은 모달창 잘 나오다 그후 다시연습할때 안 뜨네요 2주차 계속하다 질문 드립니다 ㅜㅜㅜ
package com.example.mangoplate import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import kotlinx.android.synthetic.main.activity_main.* class rvadapter(val context : Context, val List : MutableList<contentsmodel>):RecyclerView.Adapter<rvadapter.ViewHolder>(){ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): rvadapter.ViewHolder { val v = LayoutInflater.from(parent.context).inflate(R.layout.rv_item,parent,false) return ViewHolder(v) } override fun onBindViewHolder(holder: rvadapter.ViewHolder, position: Int) { holder.bindItems(List[position]) } override fun getItemCount(): Int { return List.size } inner class ViewHolder(itemView : View) : RecyclerView.ViewHolder(itemView){ fun bindItems(item : contentsmodel){ //바인딩을 하는 곳이다. val rv_img = itemView.findViewById<ImageView>(R.id.rvimagearea) val rv_text = itemView.findViewById<ImageView>(R.id.rvtextarea) rv_text.text = item.titleText Glide.with(context) .load(item.ImageURL) .into(rv_img) } } //다른 것은 다 잘 되었는데, text만 오류가 발생했습니다. //오류 해결 방법을 여쭙고 싶습니다. //항상 수업 잘 듣고 있습니다!! }
안녕하세요~ 177번 문제를 dense_rank를 활용해 풀어보고 싶어서 아래와 같이 코드를 작성했는데요. 오류와 함께 정답처리되지 않습니다. 어떤 부분이 잘못되었는지 알려주시면 감사하겠습니다! (MySQL ver) ▼코드 CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN RETURN ( SELECT CASE WHEN sub.rank = N THEN sub.salary ELSE NULL END AS getNthHighestSalary(N) FROM( SELECT id , salary , DENSE_RANK() OVER (ORDER BY salary DESC) AS rank FROM Employee ) sub ); END ▼오류내용 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' RETURNS INT BEGIN RETURN ( SELECT CASE WHEN sub.rank ' at line 17
yarn global remove react-native yarn global remove react-native-cli yarn global add react-native@0.68.2 yarn global add react-native-cli react-native init FoodDeliveryApp --template react-native-template-typescript /.config/yarn/global/node_modules/react-native-cli/index.js:302 cli.init(root, projectName); ^ TypeError: cli.init is not a function at run (/Users/yong/.config/yarn/global/node_modules/react-native-cli/index.js:302:7) at createProject (/Users/yong/.config/yarn/global/node_modules/react-native-cli/index.js:249:3) at init (/Users/ yong /.config/yarn/global/node_modules/react-native-cli/index.js:200:5) at Object.<anonymous> (/Users/ yong /.config/yarn/global/node_modules/react-native-cli/index.js:153:7) at Module._compile (node:internal/modules/cjs/loader:1112:14) at Module._extensions..js (node:internal/modules/cjs/loader:1166:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:834:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 Node.js v18.5.0
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요. 1. 강의 내용과 관련된 질문을 남겨주세요. 2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요. (자주 하는 질문 링크: https://bit.ly/3fX6ygx) 3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요. (질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG) 질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요. ========================================= [질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예/아니오) 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) [질문 내용] 여기에 질문 내용을 남겨주세요. 안녕하세요! 강의 잘 보고있습니다. 오류 페이지 설정부분 강의를 보았는데 로컬/개발/운영 서버에 따라 랜더링하고 싶은 오류페이지가 다른 경우 BasicErrorController를 이용하여 하는 방법은 없나요? ErrorController를 구현하는 방법은 몇번 본 것같은데 BasicErrorController 이용한 방법을 알 수 있을까요? -- 7월 22일 질문 추가 @Profile이란 어노테이션을 알게되었는데 이 어노테이션을 사용해서 구현할 수 있나요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 제가 지금 맥 OS를 사용중인데 파일을 어디서 어찌 열어야하는지 모르겠어서요 ㅠㅠ 그래서 윈도우에서 엑셀파일로 작업을 했는데 상품명에 ���ѱ� ���ִ� ���ѱ��� 210g 24���� 이런식으로 표시가 됩니다... 1. 맥 OS 에서 CSV파일을 가져오기하는 방법 2. 상품명에 이상한 기호문자가 나오는이유 두가지 부분 확인 부탁드립니다 ㅠㅠ 제가 처음이라 몰라서 이것저것 여쭤봅니다 ㅠㅠ
.env 파일에서 API_URL= http://ip주소:3105 하고 Signup페이지에서 ${Config.API_URL}/user 해주었는데 이런 오류가 나는건 무슨 오류일까용 ㅠ Config.API_URL 대신 바로 http://ip:3105/user 하면 작동 잘되긴 해요