묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결파이썬 입문 및 웹 크롤링을 활용한 다양한 자동화 어플리케이션 제작하기
스크린샷 파일 저장하는 예제에서 c 드라이브로 저장이 안됩니다.
스크린샷 파일을 저장할 때 c 드라이브로 path를 지정하면 아무런 반응이 없다가d 드라이브로 지정해 보니까 파일이 저장되네요.driver.save_screenshot("d:website1.png")보안 문제 때문에 그런 걸까요?
-
해결됨자바 프로그래밍 입문 강좌 (renew ver.) - 초보부터 개발자 취업까지!!
자바에서
system.out.println("i = " + i) 이렇게 표현된게c에서는 printf가 system.out.println으로 봐도 되나요?그리고 자바에서 +를 c에서 ,로 봐도 되나요?그리고 따로 %d같은걸 안해도 int면 정수 double는 실수를 알아서 적용시켜주는건가요?
-
미해결파이썬 프로그래밍
노트패드 설치
왕초보라 노트패드 설치하다가 하루 보냈네요. ㅡㅜㅜ결국 못설치했는데요.C:Python37python new 1Process started (PID=29816) >>>C:Python37python: can't open file 'new': [Errno 2] No such file or directory<<< Process finished (PID=29816). (Exit code 2)콘솔창에 이렇게 뜨는데 뭐가 잘못된건가요
-
미해결파이썬 프로그래밍
노트패드 설치
왕초보라 노트패드 설치하다가 하루 보냈네요. ㅡㅜㅜ결국 못설치했는데요.C:Python37python new 1Process started (PID=29816) >>>C:Python37python: can't open file 'new': [Errno 2] No such file or directory<<< Process finished (PID=29816). (Exit code 2)콘솔창에 이렇게 뜨는데 뭐가 잘못된건가요
-
미해결파이썬 프로그래밍
노트패드 설치
왕초보라 노트패드 설치하다가 하루 보냈네요. ㅡㅜㅜ결국 못설치했는데요.C:Python37python new 1Process started (PID=29816) >>>C:Python37python: can't open file 'new': [Errno 2] No such file or directory<<< Process finished (PID=29816). (Exit code 2)콘솔창에 이렇게 뜨는데 뭐가 잘못된건가요
-
미해결it 취업을 위한 알고리즘 문제풀이 입문 (with C/C++) : 코딩테스트 대비
강의자료 링크가 잘못되어있습니다.
보충강의자료까지 링크가 잘못되어있습니다.
-
해결됨스프링 기반 REST API 개발
git 레파지토리 주소 좀 알려주세요~
git 레파지토리 주소 좀 알려주세요~
-
미해결스프링 부트 개념과 활용
WebTestClient 를 주입받을때
안녕하세요. 작은 팁이지만....intelliJ 에서@AutowiredWebTestClient webTestClient;이 코드에서 빈을 못찾겠다고 빨간줄이 그어져 있는 상태가 될 수 있습니다. 그 때@RunWith(SpringRunner.class)@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)@AutoConfigureWebTestClientpublic class WebTestSampleControllerTest {와 같이 @AutoConfigureWebTestClient 를 붙여주니 빨간줄이 사라지네요.참고하세요~
-
미해결스프링 부트 개념과 활용
webmvctest 시 질문
samplecontrollertest.java에 아래의 소스를 넣었을때 mockMvc.perform(get("/hello")) // get 으로 /hello 요청하면 .andExpect(status().isOk()) // status 는 200 이고 .andExpect(content().string("hello ironman")) // content 는 hello ironman 이고 .andDo(print()); // 해당 사항들을 print로 출력함 print로 출력이 run시킬때 run log창에 남는건가요? 저는 그냥 아래와 같이 뜨기만하고 print로 찍히는게 안보입니다. 2019-04-01 23:33:34.944 INFO 8148 --- [ main] m.i.s.SpringtestdemoApplication : Starting SpringtestdemoApplication on DESKTOP-2849P80 with PID 8148 (C:\SpringWork\IntelliJ\springtestdemo\target\classes started by nari1 in C:\SpringWork\IntelliJ\springtestdemo)2019-04-01 23:33:34.944 INFO 8148 --- [ main] m.i.s.SpringtestdemoApplication : No active profile set, falling back to default profiles: default2019-04-01 23:33:35.870 INFO 8148 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)2019-04-01 23:33:35.890 INFO 8148 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]2019-04-01 23:33:35.890 INFO 8148 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.16]2019-04-01 23:33:35.900 INFO 8148 --- [ main] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:Program FilesJavajdk1.8.0_201bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:Program Files (x86)Common FilesOracleJavajavapath;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:Program FilesJavajdk1.8.0_201bin;C:Usersnari1AppDataLocalMicrosoftWindowsApps;;C:Program Files (x86)ESTsoftALSeex64;.]2019-04-01 23:33:35.989 INFO 8148 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext2019-04-01 23:33:35.989 INFO 8148 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 998 ms2019-04-01 23:33:36.157 INFO 8148 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'2019-04-01 23:33:36.473 INFO 8148 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''2019-04-01 23:33:36.473 INFO 8148 --- [ main] m.i.s.SpringtestdemoApplication : Started SpringtestdemoApplication in 1.814 seconds (JVM running for 2.41)
-
미해결스프링 부트 개념과 활용
2.1.3 RELEASE버전에 대해 질문이 있습니다.
정확한 이유를 모르겠으나..index.html 페이지를 만들어두어도java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping;이 에러가 뜨며 웹페이지에서는 톰켓오류페이지가 뜹니다.버전을 낮추면 이상없이 white label 에러페이지가 뜨지만2.1.3버전에서는 작동하지 않습니다.어떻게 해결해야 하나요..?
-
미해결블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편
"send" and "transfer" are only available for objects of type "address payable", not "address". 오류
function buyRealEstate(uint _id, bytes32 _name, uint _age) public payable { require(_id >= 0 && _id <= 9); buyers[_id] = msg.sender; buyerInfo[_id] = Buyer(msg.sender, _name, _age); owner.transfer(msg.value);}함수에서 onwer.transfer(....); 에 오류가 아래와 같은 오류가 납니다."send" and "transfer" are only available for objects of type "address payable", not "address".
-
미해결홍정모의 따라하며 배우는 C++
float/double 질 문있습니다.
안녕하세요! 재미있게 잘 보고있습니다.conventionally,float를 single precisiondouble을 double precision 이고 double이 float의 2배라고 설명해 주셨는데,표준(table 우측 desctription 만 보면 무조건 2배여야 한다는게 아니라double precision is not less than float(single precision) 이라고 써있는것만 보면꼭 두배일 필요는 없는 것인가요?
-
미해결블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편
안녕하세요. 매물구입함수 실행 에러 문의드립니다.
우선 현재까지 가르쳐주신 내용을 잘 따라왔습니다. 하지만 현재 단계인 매물구입함수를 구현하고 실행하는 과정에서 다음과 같은 2가지 에러가 발생했습니다. 작성해 주신 소스를 실행시켰을 때, initWeb3: function() { if(typeof web3 !== 'undefined'){ App.web3Provider = web3.currentProvider; web3 = new Web3(web3.currentProvider); } else { App.web3Provider = new web3.providers.HttpProvider('http://localhost:8545'); web3 = new Web3(App.web3Provider); } return App.initContract(); 이 부분에서 invalid address 라는 에러가 발생합니다. 혹시 해결하신 경험이 있으시면 조언 부탁드립니다. 그리고 이 부분을 단순하게 else로 실행하도록 했을 때에는 (typeof web3 == undefined 로 설정했을 때.) 아래와 같은 에러들이 발생합니다. 교육 내용을 따라 바로 진행했을 때, 처음에는 메타마스크의 작동은 정상이었으며, 단 한번 매입하는 데에 두번의 매입 트랜잭션이 발생해서 지정된 이더의 2배가 차감, 차입 되는 현상이 있었습니다. 저러한 이상현상을 해결하고자, build 폴더를 삭제하고, metamask의 설치도 다시 진행한 후, 재 migration을 진행하였습니다만, 현재는 metamask에서 transaction 발생하는 화면 조차 나타나지 않으며, truffle console로 해당 함수를 실행했을 시truffle(ganache)> app.buyRealEstate(9, web3.toHex('사용자이름'), 35, {from:'0x2DcCa9B61E50D79A90a813fcD6a42c3A3Ac52e6f', value:1.23 }); Error: sender doesn't have enough funds to send tx. The upfront cost is: 1188468692540441322405034084557662891273515906800840149300 and the sender's account only has: 100000000000000000000 와 같은 에러가 발생합니다. 그리고 truffle console로 instance를 생성하여 테스트를 진행해 봤을 때에도, truffle(ganache)> app.getBuyerInfo(0); Error: Attempting to run transaction which calls a contract function, but recipient address 0x0b4b148c6ab76335899a1294c22f48964cb04869 is not a contract address at XMLHttpRequest._onHttpResponseEnd (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:509:1) at XMLHttpRequest._setReadyState (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:354:1) at XMLHttpRequestEventTarget.dispatchEvent (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:64:1) at XMLHttpRequest.request.onreadystatechange (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3httpprovider.js:128:1) at C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:packagestruffle-providerwrapper.js:134:1 at C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3requestmanager.js:86:1 at Object.InvalidResponse (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3errors.js:38:1) truffle(ganache)> app.buyRealEstate(0, 'syhan01', 36); Error: Attempting to run transaction which calls a contract function, but recipient address 0x0b4b148c6ab76335899a1294c22f48964cb04869 is not a contract address at XMLHttpRequest._onHttpResponseEnd (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:509:1) at XMLHttpRequest._setReadyState (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:354:1) at XMLHttpRequestEventTarget.dispatchEvent (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:64:1) at XMLHttpRequest.request.onreadystatechange (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3httpprovider.js:128:1) at C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:packagestruffle-providerwrapper.js:134:1 at C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3requestmanager.js:86:1 at Object.InvalidResponse (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3errors.js:38:1) truffle(ganache)> app.getAllBuyers(); Error: Attempting to run transaction which calls a contract function, but recipient address 0x0b4b148c6ab76335899a1294c22f48964cb04869 is not a contract address at XMLHttpRequest._onHttpResponseEnd (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:509:1) at XMLHttpRequest._setReadyState (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:354:1) at XMLHttpRequestEventTarget.dispatchEvent (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~xhr2libxhr2.js:64:1) at XMLHttpRequest.request.onreadystatechange (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3httpprovider.js:128:1) at C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:packagestruffle-providerwrapper.js:134:1 at C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3requestmanager.js:86:1 at Object.InvalidResponse (C:UsersmicroAppDataRoamingnpmnode_modulestrufflebuildwebpack:~web3libweb3errors.js:38:1) 와 같은 주소값 에러가 발생합니다. 혹시 위와 같은 에러를 해결해 보신 경험이 있으시다면 조언 부탁드리며, 단위테스트나 디버딩을 해 보고 싶은데, 로그를 어디에 남겨야 하는지에 대한 지식이 전무하다보니 이 부분도 조언 부탁드립니다. 긴글 읽어 주셔서 감사합니다.
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
vue.js 중급과정 수강중인데 vue-advanced로 초대가 된것 같아요...
vue-intermediate로 초대해주셔야 하는것 아닌가요? ㅠㅠ
-
미해결실습 UI 개발로 배워보는 순수 javascript 와 VueJS 개발
질문이 있어요. stop
<div v-if="history.length"> <ul class="list"> <li v-for="item in history" v-on:click="onClickKeyword(item.keyword)"> <span>{{item.keyword}}</span> <span class="date">{{item.date}}</span> <button class="btn-remove" v-on:click.stop="onClickRemoveHistory(item.keyword)"></button> </li> </ul> </div> 최근 검색어를 출력하는 부분인데요. click이벤트 stop을 왜 button에다 걸었는지 궁금하네요 위에 li 태그에 걸줄 알았는데, event bubbling을 li에서 멈춰줘야 하는거 아닌가 싶어서...propagation 동작을 제가 정확히 이해하지 못해서 그런거 같은데 자세한 설명 부탁드립니다!
-
미해결블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편
invalid address 에러 app.js:64
안녕하세요 강의 들으면서 제대로 구현이 잘 됐었는데갑자기 '매입'버튼 누르고 매입장 정보를 누르고 제출을 누르면 메타 마스크가 뜨지 않고invalid address app.js:64가 뜨면서 진행이 되지를 않네요3일 정도 이것저것 가나슈, 메타마스크도 다시 설치도 해보고 강의 소스파일도 다시 다운받아서도 해봤는데도 계속 똑같은 에러인데 혹시 해결방법 있을까요?
-
미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
response 질문합니다.
'''class TestView(TestCase):def setUp(self):Client는 브라우저 확인자 역할을 해줌 self.client = Client()def test_post_list(self): # 브라우저 확인자(client)가 url ('내용') 을 가져오는 것 response = self.client.get('/blog/') # 404 = Page is not found / 200 = Page is found self.assertEqual(response.status_code, 200) print("response is : ") print(response) soup = BeautifulSoup(response.content, "html.parser") print(soup) '''response. 뒤에 status_code 랑 content 를 붙여서 활용하는건 알겠는데혹시 뒤에 또 뭐가 붙을 수 있는지 알 수 있을까요?
-
미해결화이트해커가 되기 위한 8가지 웹 해킹 기술
dvwa 설치과정 오류
dvwa 설정 하는 곳에서 모든 글 색을 초록색으로 바꾸고 creat 누르니Fatel error : Uncaught Error: call to tundefined mysql_connect() in /opt/lampp/htdocs/dvwa/dvwa/includes/dvwaPage.inc.php:461 stack trace:#0 /opt/lampp/htdocs/dvwa/login/php(8) : dwvaDatebaseConnect #1 {main} thrown in /opt/lampp/htdocs/dvwa/dvwa/includesdvwaPge.inc.php on line 461 라고 뜨며 안 돼요...어떡해 해야 합니까?
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
다시한번확인부탁드려요..
인프런 아이디 : @crazysongi인프런 이메일 : shn8888@naver.com깃헙 아이디 : hana0963@gmail.com깃헙 Username : shn8888
-
미해결자바 프로그래밍 입문 강좌 (renew ver.) - 초보부터 개발자 취업까지!!
혹시 Interpace 가 interface인가요 ?
(사진)