안녕하세요 강사님 강의를 듣다가 질문이 있어 문의 드립니다. 3강에서 master에서 hello.md에서 branch를 만들면 다음과 같이 branch가 version2에서 나온것처럼 보이잖아요? master랑 version2로 체크아웃을 해도 저 branch로 보이입니다. 그러다가 master에서 version2를 merge하면 파란색 branch가 master, 분홍색 branch가 version2로 바뀝니다. 그래프가 왜 이렇게 보이는지 궁금합니다.ㅠㅠ
다음과 같이 코드 추가하시면 Tomcat 9.x 에서 8080포트로 실행 잘됩니다. 기존 코드 tomcat . start (); tomcat . getServer (). await (); 변경 코드 tomcat . getConnector (); tomcat . start (); tomcat . getServer (). await ();
2장 map,filter 초반부에 보면 console.log를 return 으로 바꾸면서 console.log도 부수효과를 가지기때문에 return으로 바꿔준다 하셨는데 어떠한 의미인지 이해가 잘 안됩니다. console.log로 값을 변경하거나 할순 없는거 같은데 단순히 함수를 호출했을때 console.log로 뿌려지는 값과 함수의 리턴값을 포함한 두개의 값이 콘솔창에 나와서 그렇게 말씀하신건가요?
안녕하세요 공부하다 질문드립니다. closure : (String) -> Bool 여기서 closure는 매개변수명이고, (String)-> Bool이 매개변수타입이잖아요? 근데 타입에는 String, Int , Doble 타입 등이 올수 있는데 (String) -> Bool 이란 타입이라고 이해했는데 맞는지요? 또 , 왜 (String) -> Bool 이 클로져 타입인지 모르겠습니다. 클로져 타입의 기본틀은 { ( ) -> type in code } 이렇게 알고있는데 어째서 (String) -> Bool 이 부분이 클로져라고하는건가요?
지뢰찾기 강의를 들었는데 작은 오류가 생겼습니다. 실행은 잘 되는데 클릭을 하면 주변에 지뢰 개수만 세어야 하는데 이미 열려있는 숫자칸도 같이 세어지더라구요. 이번 강의가 길고 양이 많아서 어디서 잘못되었는지 찾기가 쉽지 않네요. 혹시 깃허브나 개인 블로그에 지뢰찾기.js 파일이 있을까요?
현재 docker toolbox를 이용중입니다.. docker toolbox는 가상머신에 서버를 뛰우기에 디폴트 ip인 192.168.99.100 으로 이전 강의(jpa, postgre 등)에서 application.properites에 설정하여 정상적으로 작동하였습니다. redis사용할 때도 설정이 필요한지 질문드립니다. 우선 아무설정없이 실행하면 아래에러가 뜨는데 이 설정이 없어서 나는 문제인지 알고싶습니다. 강의를 듣다가 막혀서 진도가 안나가 질문드립니다. 아래 에러메시지를 나열하였습니다. 감사합니다. Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-07-31 23:30:22.611 ERROR 15076 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: Failed to execute ApplicationRunner at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:773) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:760) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:318) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at me.izac.springbootredis.SpringbootredisApplication.main(SpringbootredisApplication.java:10) [classes/:na] Caused by: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379 at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1106) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1085) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:866) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:341) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:132) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:95) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:82) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:211) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:184) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:95) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.core.DefaultValueOperations.set(DefaultValueOperations.java:236) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at me.izac.springbootredis.RedisRunner.run(RedisRunner.java:19) ~[classes/:na] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:770) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] ... 5 common frames omitted Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379 at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78) ~[lettuce-core-5.1.7.RELEASE.jar:na] at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56) ~[lettuce-core-5.1.7.RELEASE.jar:na] at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:235) ~[lettuce-core-5.1.7.RELEASE.jar:na] at io.lettuce.core.RedisClient.connect(RedisClient.java:204) ~[lettuce-core-5.1.7.RELEASE.jar:na] at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:113) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_171] at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:113) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1104) ~[spring-data-redis-2.1.9.RELEASE.jar:2.1.9.RELEASE] ... 17 common frames omitted Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost/127.0.0.1:6379 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_171] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_171] at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:327) ~[netty-transport-4.1.36.Final.jar:4.1.36.Final] at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) ~[netty-transport-4.1.36.Final.jar:4.1.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:670) ~[netty-transport-4.1.36.Final.jar:4.1.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:617) ~[netty-transport-4.1.36.Final.jar:4.1.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:534) ~[netty-transport-4.1.36.Final.jar:4.1.36.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) ~[netty-transport-4.1.36.Final.jar:4.1.36.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:906) ~[netty-common-4.1.36.Final.jar:4.1.36.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.36.Final.jar:4.1.36.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.36.Final.jar:4.1.36.Final] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_171] Caused by: java.net.ConnectException: Connection refused: no further information ... 12 common frames omitted
Traceback (most recent call last): File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 1353, in <module> fontManager = json_load(_fmcache) File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 888, in json_load with open(filename, 'r') as fh: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Zoon\\.matplotlib\\fontlist-v300.json' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "chapter12.py", line 1, in <module> import matplotlib.pyplot as plt File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\pyplot.py", line 32, in <module> import matplotlib.colorbar File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\colorbar.py", line 32, in <module> import matplotlib.contour as contour File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\contour.py", line 18, in <module> import matplotlib.font_manager as font_manager File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 1363, in <module> _rebuild() File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 1344, in _rebuild fontManager = FontManager() File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 978, in __init__ ttffiles = findSystemFonts(paths) + findSystemFonts() File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 264, in findSystemFonts fontfiles.update(win32InstalledFonts(fontext=fontext)) TypeError: 'NoneType' object is not iterable 이렇게 길가 나오는데요... 중간중간 font 뭐라뭐라하는거같은데.. 제 PC가 문제일까요?ㅠㅠ
후보를 5명으로 하려면 51번째 줄에서 candidatorList.length <= 5 라고 바꾸는게 맞을 것 같습니다. +디버그에서 Solidity State 를 누르면 펼쳐지지지않아서 상세 내용을 볼 수 없습니다. (컴파일러에서 절정한 버전은 C urrent version: 0.6.0-nightly.2019.3.11+commit.4704ef84.Emscripten.clang 이고 첫번째 줄에는 0.4.24 버전을 썼습니다. )