묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결리액트로 구현하는 블록체인 이더리움 Dapp
deploy에러입니다
truffle(development)> var hello = HelloWorld.at("0x9d9f101b4c88ed82e347cfd14cbfcb3df00886a4") TypeError: Cannot read property 'match' of undefined
-
미해결실전 JSP (renew ver.) - 신입 프로그래머를 위한 강좌
소리 진심 넘 작은데;;
소리 너무 작은데요.. 심각해요 ;;
-
미해결리버스쿨 Level1 - 리버싱 분석 초급과정
실습자료
우분투 다운로드 주소가 유효하지 않은 것 같습니다.
-
미해결야곰의 iOS 프로그래밍
모달로 올린 화면을 네비게이션컨트롤러의 dismiss를 사용하나요?
ResultViewController.swift 내에 touchUpDismissButton 을 구현할 때 모달로 구현한 화면인데도 presentingViewController?.dismiss를 사용하지 않고 그 앞에 navigationController?를 덧 붙여서 navigation?.presentingViewController?.dismiss 로 사용하는 이유가 무엇인가요. 애초에 토대가 네비게이션 컨트롤러라 그런건가요
-
미해결Node.js 교과서 - 기본부터 프로젝트 실습까지
카카오 로그인 관련 질문드립니다.
안녕하세요..카카오 로그인 관련 질문 드립니다..기존 로그인 방식은 사용자 테이블에서 email 주소로 사용자가 등록되어 있는지를 찾는 것이고,카카오 로그인 방식은 사용자 프로필을 받아 거기서 받은 snsid를 기반으로 사용자 가 등록되어 있는지를 확인하는 방식으로 이해했습니다..그런데... 카카오 로그인 방식은 사용자 창에서 받는 이메일 주소와 비밀번호는 어디서 사용하는지 궁금합니다.. 지금은 임의의 값을 넣어도 .env에설정된 Client_ID를 가지고 사용자 profile을 가져오는 듯 하네요...(제가 코드를 빼먹은게 있는지??^^;;)확인 부탁드리겠습니다..
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
선형대수 matrix_product 질문드립니다.
def matrix_product(matrix_a, matrix_b): if not is_product_availability_matrix(matrix_a, matrix_b): return False return [[sum(a*b for a,b in zip(i,j)) for i in matrix_a] for j in matrix_transpose(matrix_b)]2x2 행렬은 문제없었는데 3x3 product 3x2 해보니까 반례가 나옵니다.[[1,2,3],[4,5,6],[7,8,9]] product [[a,b],[c,d],[e,f]] 찍어보니[[1a 2c 3e], [4a, 5c, 6e] ...] 로 나오네요.[[1a 2c 3e], [1b 2d 3f]...] 가 되어야 하는데.. 어디서 잘못한 걸까요?
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
XML Read -> JSON write 숙제 제출
낙서장 같은 코드.. 이번 강의도 감사합니다! 질문. BeautifulSoup 모듈을 사용할 때는 항상 아래처럼 bs4와 함께 import해야 하나요? from bs4 import BeautifulSoup import os import re import json from bs4 import BeautifulSoup # SEPARATE XML================================================================= # setting raw_xml_file = "ipa110106.XML" target_root = "data" # read raw xml with open(raw_xml_file, "r") as raw_xml: xml_contents = raw_xml.read() # separate xml contents chopped_txts = re.findall(r'(<\?xml)([\s\S]+?)(</us-patent-application>)', xml_contents) chopped_txts = [''.join(tuples) for tuples in chopped_txts] # check dir if not os.path.isdir(target_root): os.mkdir(target_root) # make new files with separated xml contents for txt in chopped_txts: new_file_name = re.findall(r'(<us-patent-application.+file=")(.+XML)', txt) with open(os.path.join(target_root, new_file_name[0][1]), "w") as new_xml: new_xml.write(txt) # MAKE DICTIONARY============================================================== # setting data_dict = dict() source_root = "data" source_xml_files = os.listdir(source_root) # make Dictionary Data from Xml for xml_file in source_xml_files: with open(os.path.join(source_root, xml_file), "r") as xml_file: # xml tags soup = BeautifulSoup(xml_file, "lxml") publication_reference_tag = soup.find("publication-reference") application_reference_tag = soup.find("application-reference") p_document_id_tag = publication_reference_tag.find("document-id") a_document_id_tag = application_reference_tag.find("document-id") patent_dict = dict() # reset # extract info from Xml p_country = p_document_id_tag.find("country").get_text() # 등록국가 p_doc_number = p_document_id_tag.find("doc-number").get_text() # 등록번호 p_kind = p_document_id_tag.find("kind").get_text() # 등록상태 p_date = p_document_id_tag.find("date").get_text() # 등록일자 a_country = a_document_id_tag.find("country").get_text() # 출원국가 a_doc_number = a_document_id_tag.find("doc-number").get_text() # 출원번호 a_date = a_document_id_tag.find("date").get_text() # 출원일 invention_title = soup.find("invention-title").get_text() # 특허제목 # store info in Patent Dict patent_dict["publication-country"] = p_country patent_dict["publication-number"] = p_doc_number patent_dict["publication-kind"] = p_kind patent_dict["publication-date"] = p_date patent_dict["application-country"] = a_country patent_dict["application-number"] = a_doc_number patent_dict["application-date"] = a_date patent_dict["invention-title"] = invention_title # add patent info in data dict # key value is publication-doc-number data_dict[p_doc_number] = patent_dict # EXPORT TO JSON=============================================================== # setting output_root = "output" output_file = "my_first_json.json" # check dir if not os.path.isdir(output_root): os.mkdir(output_root) # (over)write on json file with open(os.path.join(output_root, output_file), "w") as json_file: json.dump(data_dict, json_file)
-
미해결iOS AutoLayout을 활용한 실전 UI구성 전략 - 카카오톡 같은 고급 UI 만들기
선생님 제가 오랫동안 강의를 못듣다가 다시 들을건데 새버젼으로 들어야하나요?
제가 본업을 하느라 잊고 지내다가 다시 시간이 나서 강의를 들을려고 하는데 새로운 버젼이 나왔네요.새로운 버젼으로 들어야하나요?그리고 제가 새로운 강의 할인 쿠폰적용시기를 놓쳤는데 연장가능할까요?
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
브라우저 호한성에 대한 질문입니다.
안녕하세요강좌 재밌게 잘 듣고 있습니다.저는 실무에서 vue나 react를 사용해본적이 없는데요.강좌를 듣고 vue를 꼭 사용해야 겠다는 생각이 들었습니다.그런데 한가지 궁금한것이 현재 모든 브라우저에서 es6의 모든 기능을 지원하는게 아닌데vue를 이용해 개발을 하고 컴파일을 하면 내부적으로 babel을 통해 es5로 변환을 시켜주는것인가요?여러브라우져(특히 ie) 에서 모두 잘 작동을 해야 하는 경우 크게 문제될 것이 없는지 궁금합니다.
-
미해결Firebase 서버를 통한 IOS앱 HowlTalk 만들기
swift4 에서 변경사항이 있습니다.
아마 최신 swift 을 사용하시는 분들은 실행하면 잘못된 키값이라는 에러가 발생될 것 입니다.이것은 object-c 에 swift4를 노출하는 규칙이 달라져서 입니다. 그래서 명시적으로 표시를 해주야 합니다.UserModel 객체 클래스 앞에 @objcMembers 를 추가해주셔야 에러가 발생되지 않습니다.[출처] : http://shoveller.tistory.com/9
-
파이썬 입문 및 웹 크롤링을 활용한 다양한 자동화 어플리케이션 제작하기
과제를 이런식으로 하는게 맞나요 ?
삭제된 글입니다
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
막짠 숙제 제출
강의가 거의 끝나가네요. 막짜서 구현(이라도) 할 수 있는 수준까지 왔어요 감사합니다. from bs4 import BeautifulSoup # setting field_value = tuple(["등록번호", "등록일자", "출원번호", "출원일자", "상태", "특허제목"]) data_list = [] data_list.append(field_value) # read xml file with open("ipa110106.XML", "r", encoding="utf8") as xml_file: xml = xml_file.read() # seperate xml xml_list = xml.split('<?xml version="1.0" encoding="UTF-8"?>\n') # remove empty str while 1: if "" in xml_list: xml_list.remove("") else: break # extract info for page in xml_list: # extract info from xml soup = BeautifulSoup(page, "lxml") publication_reference_tag = soup.find("publication-reference") application_reference_tag = soup.find("application-reference") p_document_id_tag = publication_reference_tag.find("document-id") a_document_id_tag = application_reference_tag.find("document-id") p_doc_number = p_document_id_tag.find("doc-number").get_text() # 등록번호 p_date = p_document_id_tag.find("date").get_text() # 등록일자 a_doc_number = a_document_id_tag.find("doc-number").get_text() # 출원번호 a_date = a_document_id_tag.find("date").get_text() # 출원일자 p_kind = p_document_id_tag.find("kind").get_text() # 상태 invention_title = soup.find("invention-title").get_text() # 특허제목 # make data_list data_list.append(tuple([p_doc_number, p_date, a_doc_number, a_date, p_kind, invention_title])) # write data on csv with open("data.csv", "w", encoding="utf8") as data_csv: for patent in data_list: data_csv.write(",".join(patent) + "\n")
-
미해결유니티 게임 개발 (Unity 2D) - 시작부터 배포까지
드래그앤 드랍/동그라미 아이콘으로 이미지 드랍 불가능 (게임 오브젝트 -> 인스펙터 뷰에서)
드래그앤 드랍 혹은 동그라미 아이콘으로도 이미지를 넣을수 없습니다.. 동그라미 아이콘 클릭하면 Archer, warrior 둘 다 보이지 않네요 드래그앤 드랍도 안되구요.. 인터페이스 1 시간때와 동일한 과정으로 만들었는데요 ㅠㅠ Archer, warrior 둘 다 파일경로는 Assets/Sprite/Archer.png 혹은 Assets/Sprite/Archer.png 입니다 비단 Archer, warrior 뿐만아니라 벽 이미지또한 안되네요 ㅠㅠ 동그라미 아이콘 클릭시 Background, knob, check mark, dropdown arrow, input field background, UI mask, UI Sprite, none 만뜨는 상태입니다
-
미해결Firebase 서버를 통한 Android앱 개발 지침서
dependencies에 데이터베이스부분 추가하면 에러가 뜹니다.
The library com.google.android.gms:play-services-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.해결방법을 어떻게 해야할지 모르겠습니다..
-
미해결
word2vec
word2vec 소스 코드가 없습니다.연관성 분석.zip 파일 다 풀고 확인했는데 없습니다.word2vec 소스 코드 좀 부탁드립니다.감사합니다.
-
미해결홍정모의 따라하며 배우는 C++
솔루션안에 여러 프로젝트가 있을 때 다른 프로젝트에 속한 헤더를 인클루드하는 방법을 알고 싶습니다.
솔루션안에 여러 프로젝트가 있을 때 다른 프로젝트에 속한 기존에 작성한 헤더를 인클루드하는 방법을 알고 싶습니다.
-
미해결홍정모의 따라하며 배우는 C++
포인터와 const 질문 드려요
안녕하세요 항상 강의 잘 듣고 있습니다. 아래 코드에서 ptr에 저장된 값을 변경하는 것은 불가능하지만 ptr의 메모리 주소값은 다른 메모리 주소값으로 바꾸는건 가능한데요, 이런 식으로 한번 할당받은 메모리 주소를 다른 주소로 바꾸는 상황이 자주 일어나나요? 어떤 때 주로 쓰는지 궁금합니다.int value1 = 5;const int *ptr = &value1;int value2 = 7;ptr = &value2;
-
미해결Kotlin Android부터 Firebase 서버 그리고 훌륭한 Chatbot 만들기
정말로 버전 차이가 많이 나는것 같습니다. 꼭 답변 부탁 드립니다
이번 강의 똑같이 따라 했는데...빨간 글자가 2군데서 들어 옵니다...며칠을 헤메다가 답을 찾어서 나중에라도 안드로이드 스튜디오 최신버전(3.2.1)을 가지고 공부하는 분한테 도움이 될거 같아서 올립니다.일단 실행은 되나 맞는지는 잘 모르겠습니다. 강의 하시는 분이 답을 주시기 바랍니다.FirebaseFirestore.getInstance().collection("users").get().addOnSuccessListener { querySnapshot ->for (item in querySnapshot.documents){var userDTO = item.toObject(UserDTO::class.java)arrayList.add(userDTO) // 여기 userDTO에 빨간불이 들어 옵니다.}<해결> if (userDTO != null) {arrayList.add(userDTO) class ReadRecyclerViewAdapter(initList: ArrayList) : RecyclerView.Adapter() {var list: ArrayList? = initList// 아래 부분이 parent 가 아니고 p0로 , viewType 이 아니고 p1 으로 자동생성 됨override fun onCreateViewHolder(p0: ViewGroup, p1: Int): RecyclerView.ViewHolder {var view =// 여기도 parent 가 아니고 p0 입니다LayoutInflater.from(p0!!.context).inflate(R.layout.item_recyclerview,p0,false)return CustomViewHolder(view)}
-
미해결해외취업 ASP.NET Core 웹개발 기본 강좌
이미지가 엑박이 뜹니다...
계속 봐도 오타는 없는데 엑박이 뜨네요... 경로 문제인가요?
-
미해결블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편
위질문과 비슷합니다.
“Couldn’t open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)” 문제가 발생하는데 node, geth환경변수를 말씀하시는 거라면 window32가 경로에 없습니다. 어떻게 하면 해결될까요?