text:
Q: Why can't my Spring application find they keys in my application.yml? I've a Spring Web application that I'm writing, and I'm attempting to implement a middleware to handle authentication using JWTs. I've set up a configuration component to pull the configuration from my application.yml file to be used in the middleware, but it's pulling only nulls and 0s. I've tried multiple different configurations to get this, but I can't figure out what I'm doing wrong, since the application is correctly pulling the spring configuration from the application.yml file.
Here is the stacktrace:
Prehandle
2021-04-17 15:08:44.060 ERROR 14132 --- [nio-3001-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null] with root cause

java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null
    at org.apache.tomcat.util.buf.ByteChunk.equalsIgnoreCase(ByteChunk.java:652) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.buf.MessageBytes.equalsIgnoreCase(MessageBytes.java:334) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.http.MimeHeaders.getValue(MimeHeaders.java:341) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.http.MimeHeaders.getHeader(MimeHeaders.java:373) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.Request.getHeader(Request.java:398) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.Request.getHeader(Request.java:2258) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.RequestFacade.getHeader(RequestFacade.java:690) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at com.cbp.my.middleware.JWTMiddleware.preHandle(JWTMiddleware.java:29) ~[classes/:na]
    at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:151) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1035) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:626) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]

Prehandle
2021-04-17 15:08:45.949 ERROR 14132 --- [nio-3001-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] threw exception

java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null
    at org.apache.tomcat.util.buf.ByteChunk.equalsIgnoreCase(ByteChunk.java:652) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.buf.MessageBytes.equalsIgnoreCase(MessageBytes.java:334) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.http.MimeHeaders.getValue(MimeHeaders.java:341) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.http.MimeHeaders.getHeader(MimeHeaders.java:373) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.Request.getHeader(Request.java:398) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.Request.getHeader(Request.java:2258) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.RequestFacade.getHeader(RequestFacade.java:690) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:88) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
    at com.cbp.my.middleware.JWTMiddleware.preHandle(JWTMiddleware.java:29) ~[classes/:na]
    at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:151) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1035) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:626) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:398) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:257) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:352) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]

2021-04-17 15:08:45.950 ERROR 14132 --- [nio-3001-exec-4] o.a.c.c.C.[Tomcat].[localhost]           : Exception Processing ErrorPage[errorCode=0, location=/error]

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:626) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103) ~[spring-web-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:398) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:257) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:352) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]
Caused by: java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null
    at org.apache.tomcat.util.buf.ByteChunk.equalsIgnoreCase(ByteChunk.java:652) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.buf.MessageBytes.equalsIgnoreCase(MessageBytes.java:334) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.http.MimeHeaders.getValue(MimeHeaders.java:341) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.tomcat.util.http.MimeHeaders.getHeader(MimeHeaders.java:373) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.coyote.Request.getHeader(Request.java:398) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.Request.getHeader(Request.java:2258) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at org.apache.catalina.connector.RequestFacade.getHeader(RequestFacade.java:690) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
    at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:88) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
    at com.cbp.my.middleware.JWTMiddleware.preHandle(JWTMiddleware.java:29) ~[classes/:na]
    at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:151) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1035) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.10.RELEASE.jar:5.2.10.RELEASE]
    ... 36 common frames omitted

Here are what I think are the relevant files:
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.4.5</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.cbp</groupId>
    <artifactId>myapp</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>myapp</name>
    <description>My API</description>

    <properties>
        <java.version>11</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.auth0</groupId>
            <artifactId>java-jwt</artifactId>
            <version>3.15.0</version>
        </dependency>
 </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>

application.yml
server:
  port: 3001

spring:
  application:
    name: my-api

  datasource:
    driverClassName: org.postgresql.Driver
    initialization-mode: NEVER
    password: ${MY_DB_PASSWORD}
    url: jdbc:postgresql://${MY_DB_URL}:5432/${MY_DB_NAME:bagofholding}
    username: ${MY_DB_USERNAME}

  jpa:
    database-platform: org.hibernate.dialect.PostgreSQLDialect
    generate-ddl: false
    hibernate:
      ddl-auto: none
    properties:
      hibernate:
        default_schema: ${MY_DB_SCHEMA:dev}
    show-sql: false

jwt:
  secret: ${MY_JWT_SECRET}
  expiration: 900_000
  prefix: Bearer
  header: Authorization

JWTSettings.java
package com.cbp.my.configuration;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class JWTSettings {

  @Value("${jwt.secret}")
  private String secret;

  @Value("${jwt.expiration:900_000}")
  private long expiration; // 15 mins

  @Value("${jwt.prefix:Bearer}")
  private String prefix;

  @Value("${jwt.header:Authorization}")
  private String header;

  public static final List<String> PATHS = new ArrayList<>();

  static {
    PATHS.add("/auth/login");
    PATHS.add("/auth/confirm");
    PATHS.add("/auth/recover");
    PATHS.add("/auth/email-check");
    PATHS.add("/auth/username-check");
    PATHS.add("/auth/questions");
    PATHS.add("/user/add");
  }

  // Getters and Setters

}

JWTMiddlewareConfiguration.java
package com.cbp.my.configuration;

import com.cbp.my.middleware.JWTMiddleware;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class JWTMiddlewareConfiguration implements WebMvcConfigurer {

  @Override
  public void addInterceptors(InterceptorRegistry registry) {
    // TODO Auto-generated method stub
    registry.addInterceptor(new JWTMiddleware()).addPathPatterns("/**").excludePathPatterns(JWTSettings.PATHS);
    WebMvcConfigurer.super.addInterceptors(registry);
  }
}

JWTMiddleware.java
package com.cbp.my.middleware;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTVerificationException;
import com.auth0.jwt.interfaces.DecodedJWT;
import com.cbp.my.configuration.JWTSettings;
import com.cbp.my.dtos.payloads.UserPayload;
import com.fasterxml.jackson.databind.ObjectMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

@Component
public class JWTMiddleware extends HandlerInterceptorAdapter {

  @Autowired
  JWTSettings settings = new JWTSettings();

  @Override
  public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
    System.out.println("Prehandle");
    try {
      String token = request.getHeader(settings.getHeader()); // Throws NPE
      if (token.startsWith(settings.getPrefix()))
        token = token.replace(settings.getPrefix(), "");

      Algorithm algorithm = Algorithm.HMAC512(settings.getSecret());
      JWTVerifier verifier = JWT.require(algorithm).withIssuer("auth0").build();
      DecodedJWT jwt = verifier.verify(token);

      ObjectMapper mapper = new ObjectMapper();
      UserPayload user = mapper.readValue(jwt.getPayload(), UserPayload.class);

      request.setAttribute("decoded", user);
    } catch (JWTVerificationException e) {
      return false;
    }
    return super.preHandle(request, response, handler);
  }

}

As it stands, removing the try/catch allows the app to correctly return the call, meaning that it IS pulling the datasource from the application.yml. Presumably, my annotations are incorrect, but I'm not sure how (especially since the debugger shows NULL for even the fields with defaults in the @Value).
I've also tried switching from @Values to @ConfigurationProperties(prefix = "jwt"), '@Autowire'ing an Environment object, moving the @Values to the setters... Nothing seems to be working and I'm not sure where to look.
Help?

A: In your Middleware configuration you are creating a new instance of your JWTMiddleware, instead of using the spring managed bean. I am referring to
registry.addInterceptor(new JWTMiddleware()).addPathPatterns("/**").excludePathPatterns(JWTSettings.PATHS);

Instead of creating a new instance of middleware, you should autowire the bean and use that instead. eg:
@Configuration
public class JWTMiddlewareConfiguration implements WebMvcConfigurer {

  @Autowire
  private  JWTMiddleware middleware;

  @Override
  public void addInterceptors(InterceptorRegistry registry) {
   registry.addInterceptor(middleware).addPathPatterns("/**").excludePathPatterns(JWTSettings.PATHS);
    WebMvcConfigurer.super.addInterceptors(registry);
  }
}

By the way, you also dont need the new operator with autowired bean
@Autowired
JWTSettings settings;
// JWTSettings settings = new JWTSettings();

redpajama_set_name: RedPajamaStackExchange


text:
Q: Calculate list of distances I have a list:
my_list = [A,B,G,X,F,D]

Each letter on the list is some point in space (x,y).
I have a function to calculate distance between 2 points:
dist = distance(A,B)

I need to calculate list of distances between neighbouring points on the list:
list_of_distances = [distance(A,B), distance(B,G), distance(G,X), distance(X,F), distance(F,D)]

The question is:
How to do it iteratively in most pythonic way?

A: you could use zip built-in function:
dist = [distance(a, b) for a, b in zip(my_list, my_list[1:])]

or as suggested by @DaniMesejo:
 dist = list(map(distance, my_list, my_list[1:]))

A: Just another way: [*map(distance, my_list, my_list[1:])]
Demo:
>>> my_list = [3, 1, 4, 1, 5, 9]
>>> def distance(a, b):
        return abs(a - b)

>>> [*map(distance, my_list, my_list[1:])]
[2, 3, 3, 4, 4]


SALT LAKE CITY, UTAH, July 5, 2018 – Warehouse Mobile Solutions is rapidly becoming the warehouse operations solution for apparel companies. For some, saying, "We have you covered", may seem to be just another cliché, but the WarehouseOS®/WOS® solution does just that. Today's apparel providers need a simple and reliable solution that empowers them with the ability to focus on designing and supplying apparel products to their customers, without worrying about all the details inside their fulfillment centers. WOS is designed to enable your fulfillment team to manage everything inside your facility; from the time products are received, until they are packed for shipping to the customer. In addition, the order fulfillment process is integrated with your shopping carts and shipping solutions utilizing our InstaLink application. It allows you to seamlessly download orders and update your webstore inventory in real-time. If you are operating with an ERP system or custom host, we have you covered here as well, with our open API platform, allowing for seamless data transfers between systems.
Being an apparel company can be difficult, as competition is tough and finding reliable workers, who ensure inventory and order accuracy levels approaching 100%, is next to impossible. Overselling, because of not knowing what you have, where it is located, and incorrect order fulfillment, can impact your growth curve and allow your competition to steal from your dedicated group of followers.
Many of our users have switched from their previous fulfillment solution once they found themselves in trouble when their inventory was out of sync with their eCommerce platforms. Or even worse, they could not keep up with order demand and accuracy. Not something you want to deal with on Black Friday or any other day! Your customers want and demand to wear the latest trends at their social activity or on vacation, not afterwards, particularly if it is the wrong style, size, or color.
After installing WOS, you can enjoy the benefits of knowing where every SKU is located and exactly how many are available to sell in real time. In addition, your entire facility can be managed utilizing the WOS APP for the flow of products, from the time they are received, through putaway, picking, replenishment and packing. This process involves operators on the floor utilizing iPads that are tracked and managed by WOS to ensure full accountability. Even seasonal/temporary employees will be able to get you through that rush without making errors that could cost you thousands of dollars and the loss of customers.
of companies all trying to capture and keep customers. One of our clients, "Sparkle In Pink", has been recognized as a top innovator by Apparel Magazine in 2018 through the use of the WarehouseOS/WOS software. Read more about their story at apparelmag.com (https://apparelmag.com/apparel-2018-top-innovators).
We invite you to be an innovator as well and move to a solution that separates you from the competition.
If your eCommerce business is still using paper-based systems or hard to read, cumbersome handheld devices that are directed by rigid and difficult to manage software, it may be time to implement a warehouse operations system. Our WarehouseOS software can be fully integrated with eCommerce platforms and shipping software to enable your business to run seamlessly, from the time your products are received, until they are packaged and ready for shipment.
For more information regarding Warehouse Mobile Solutions and its logistics solutions offerings, contact Sam Stringham at sam.stringham@hoj.net or (801) 266.8881 ext 8026.


text:
Senna TV featuring exclusive content produced by the Ayrton Senna Intitute, it will have a weekly schedule, with new videos going up every Thurdsday, bringing interviews, news stories and trivia about the Brazilian driver's career. Senna TV host is journalist Rodrigo França, who has been covering motor sports for two decades for media outlets such as Jornal da Tarde, Folha de S. Paulo, Quatro Rodas, VIP and Radio Globo.
Watch out and stay tuned for a new updates every week on the Official SENNA TV.
How Senna scared James Hunt
Finest ever laps in Monaco
Ayrton Senna-pride of Brazil
LATEST PUBLISHED ARTICLES
Senna Brands prepares series of tributes to Senna On May 1st, when the world pays a series of tributes to Ayrton Senna, official channels will...
Brazilian educational system needs to be innovative
FANS DIARIES FROM ALL OVER THE WORLD
After winning the Formula Ford 1600 title, in 1981, Ayrton Senna continued on to Formula...
Ayrton Senna by Jon Nicholson
During the winter of 1993 I started working on a book I was to produce...
Mercedes story by Ayrton Senna
In Australia, there is a Mercedes-Benz 190 E running down the streets of Melbourne. But...
Casa Cor: Lounge Ayrton Senna
"Casa Cor" is a more than special space. Created by the talented architect Leo DiCaprio,...
Outstanding tribute to Brazilian Champion
I'm a big fan of Formula 1 and I've been that so far back in...
Feel the spirit in the air – Interlagos '95
When the Class of '95 had their picture taken yesterday in the pit lane at...
SENNA: West Wales testing 1988
Ask someone to name the home of Welsh motorsport and most would struggle. But Pembrey...
Tears from Imola
Viewed today, exactly 24 years later, as an exercise in grim foreboding it is hard...
Ayrton Senna's Super Monaco GP II
Released in 1988, the Sega Mega Drive heralded the coming of the 16-bit era and...
The 1993 European Grand Prix – the one and only time a world championship Formula...
Ayrton Senna: Eau Rouge Story
Senna Tribute: Today is the Senna day

redpajama_set_name: RedPajamaCommonCrawl


Turn your invention into a shippable product!
Combine your electronic with our housing solutions.
all orders have same priority whether it's a single piece for a one-off project, or a production run of thousands.


text:
When Harry Potter Was Born?
Publish Date: May 25 2020 10:41AM
Updated Date: May 25 2020 10:41AM
JK Rowling recently shared the true birthplace of Harry Potter, 30 years after she started writing
Joanne Rowling first conjured the idea of her heroic wizard in 1990, with a good deal of her writing done in a cozy Edinburgh spot
JK Rowling has taken to Twitter for a dose of nostalgia, looking back on an old favourite spot of hers where she penned a good deal of Harry Potter. Joanne, 54, is one of the world's most successful authors thanks to the universally beloved series of novels about a boy wizard and his struggle against evil. She first thought up the idea in the early nineties, and hasn't looked back since.
The first book, Harry Potter and the Philosopher's Stone, landed in book stores in 1997, and since then series has gone on to dominate best seller lists and the box office with its film adaptations. Now JK has taken some time out to remember a time before she was the world's most famous author.
A dedicated fan shared a snap on social media of The Elephant House, an Edinburgh spot where JK got a lot of writing done as she sipped on coffee.
Above the door reads "The 'birthplace of Harry Potter", the fan reaching out to JK to check if this is legit.
She came back: "I was thinking about putting a section on my website about all the alleged inspirations and birthplaces of Potter. "I'd been writing Potter for several years before I ever set foot in this cafe, so it's not the birthplace, but I *did* write in there so we'll let them off!"
I was thinking of putting a section on my website about all the alleged inspirations and birthplaces of Potter. I'd been writing Potter for several years before I ever set foot in this cafe, so it's not the birthplace, but I *did* write in there so we'll let them off! https://t.co/xDOsrbiZwu
— J.K. Rowling (@jk_rowling) May 21, 2020
Ananya Sharma EURO SCHOOL
Harry Potter series is one of the best books written by J K Rowling.
Edha Hanjura Delhi Public School Bangalore East
''Harry Potter'' is a great and wonderful series to read.The best thing I like about J.K Rowling is that her imagination is one of a kind.
Yogaa Lakshmi THE LEXICON INTERNATIONAL SCHOOL-WAGHOLI
Harry Potter is the series which made me read more. I really what to visit the birthplace of the idea of Harry Potter.
Tanvi Manohar Naik Bharati vidyapeeth Balewadi
Abhaya M SRI KANCHI MAHASWAMI VIDYA MANDIR
Harry Potter is a wonderful series!! It gave an amazing explanation of the wizarding world... And all the characters had extreme love and affection towards each other which made my heart melt... #PotterheadsOverHere


text:
How Dr. Dre is Dominating The Entertainment World
As I am sure you have noticed, Dr. Dre is having quite a powerful month in the worlds of music, branding and entertainment. Over the past two weeks, Dre has released a hit film, 'Straight Outta Compton', and his first studio album in 16 years, 'Compton'. The film, which revolves around controversial hip-hop group N.W.A., was released in theaters nationwide on August 14. In it's opening weekend debut, 'Straight Outta Compton' nearly doubled its box office predictions by bringing in $56 Million. This opening weekend was the largest debut for any music biopic in history. The album, produced by Dr. Dre and other producers, features guest stars Snoop Dogg, Eminem, The Game, Kendrick Lamar, Xzibit, and many more. 'Compton' debuted at #2 on the Billboard 200 charts, selling almost 300k copies in it's first week. The album also debuted exclusively on Apple Music and iTunes, building a major cultural moment for Dre and partner Jimmy Iovine, whose Beats Music Company was purchased by Apple last year. To further the internet buzz for Beats, the headphone maker released a YouTube ad featuring notable stars from Compton, including DJ Quik, YG, Marcellus Wiley, and more. The video has almost 700k views so far. It's hard to top a 2 week run as prominent as what Dr. Dre just accomplished.https://www.youtube.com/watch?v=q1bPHPJFWnw
Film & TV, MusicCashmere Agency August 19, 2015 Apple, beats, Compton, DJ Quik, Dr- Dre, Eminem, Kendrick Lamar, Music, Snoop Dogg, straight outta compton, The Game, YG
'Straight Outta Compton 2' on the way
Film & TVCashmere Agency August 21, 2015 Entertainment, film, history, movie, Music, rap, straight outta compton
Jessica Simpson to Launch Activewear
FashionCashmere Agency August 19, 2015 Activewear, Brands, fashion, Jessica Simpson


text:
Q: Is there a difference in semantics between these verbs?
1 I'm always drinking like crazy when I see her. The meaning: I start drinking and after a while I see her.
2 I always drink like crazy when I see her. The meaning: At first I see her, then I start drinking.

So far so good. But when I use the same model with "go", it feels like they don't work the same way.

3 I'm always drinking like crazy when I go out. The meaning should be: I start drinking and after a while I go out. But I think it's not the right meaning.
4 I always drink like crazy when I go out. The meaning: At first I go out, then I start drinking.

Do you agree that 3 breaks the rule which is there in 1? I think that 3 means the same as 4. If it's so, can you explain why? Something to do with the verb GO?

A: I don't think there is a rule to break.
As you say, 2 and 4 say that every time X happens, Y then happens.
Your 1 and 3 are much less clear, and to my ear much less likely to be said. I don't think they imply any specific relationship between when X and Y happen: it just says that on every occasion that X happens, Y happens over a period: it doesn't say when that is in relation to X.
I think it is for pragmatic and semantic reasons that you interpret 1 as Y starting before X, and 3 as Y starting after X.

A: The phrasal verb "go out" has two different meanings, and with neither definition is this sentence correct both in grammar and intended meaning.
The first meaning of "go out" is "leave the house".
The second meaning is something like, "go to entertainment venues, usually in the evening".
Because the context includes "drink like crazy", it heavily suggests the intended definition is the second one. With this definition, the meaning of Sentence 3 is roughly:

I'm always drinking like crazy whenever I party at bars and clubs.

This has an odd meaning, like I happen to already be drinking like crazy before I get there, so it feels like this is either a grammar mistake, or we've chosen the wrong definition.
With the first definition, the sentence means:

Whenever I leave home (for any reason), I'm always drinking like crazy.

Here, the grammar is good, but it doesn't make sense that you'd drink heavily before you leave home each time, unless you have severe anxiety issues about leaving home and need the alcohol to survive the experience.


text:
Q: uploading an image to google bucket does not recognise it as an image anymore I am using Vaadin 14 with SpringBoot. I'm writing some software that uploads an image to a google bucket. The upload itself works correctly but the file that gets to the bucket is not an image anymore. I wrote the code a couple of weeks ago and then it still worked, nothing has changed but now it doesn't work anymore. I am uploading it to the bucket using an InputStream, i get stream from the Vaadin upload component. Here is the code
uploading to memoryBuffer from vaadin component
public CreateKidView(@Autowired KidService kidService) {
        this.kidService = kidService;

        TextField kidFirstName = new TextField("Voornaam");
        TextField kidLastName = new TextField("Achternaam");
        DatePicker kidBirthDate = new DatePicker("GeboorteDatum");
        TextField kidMedication = new TextField("Medicatie");
        MemoryBuffer memoryBuffer = new MemoryBuffer();
        Upload imageUpload = new Upload(memoryBuffer);

        Button button = new Button("Kind toevoegen",
                buttonClickEvent -> {
                    saveKidAndNavigate(kidFirstName.getValue(), kidLastName.getValue(), kidBirthDate.getValue(),
                            kidMedication.getValue(), memoryBuffer.getInputStream());
                }
        );

        button.addThemeVariants(ButtonVariant.LUMO_PRIMARY);

        addClassName("centered-content");

        add(kidFirstName, kidLastName, kidBirthDate, kidMedication, imageUpload, button);
    }

then I pass the inputstream through a couple of other classes, I don't do anything with it until I get here: I set the contentType: "image/jpeg" and pass it to my bucketService to upload the inputstream.
public void addImageToPerson(Person person, String imageName, InputStream inputStream) {
        String image = bucketService.uploadFileToBucket(imageName, "image/jpeg", inputStream);
        ......
    }

@Slf4j
@Service
public class BucketService {

    private final String companyName;
    private final Storage storage;

    @Autowired
    public BucketService(@Value("${company.name}")String companyName, @Value("${gc.project.name}")String gcProjectName) {
        this.companyName = companyName;

        storage = StorageOptions.newBuilder().setProjectId(gcProjectName).build().getService();
    }

    public String uploadFileToBucket(String fileName, String contentType, InputStream inputStream) {
        try {
            BlobId blobId = BlobId.of(companyName, fileName);
            BlobInfo blobInfo = BlobInfo.newBuilder(blobId).build();
            storage.create(blobInfo, IOUtils.toByteArray(inputStream));
            return fileName;
        } catch (StorageException | IOException e) {
            log.error("could not save image: {}", e.getMessage());
            return "oops";
        }
    }
}

it used to work perfectly, No code has changed since, so I'm guessing that something has changed at google. I was wondering if any of you have something i could try or know of something that has changed.
I have also written some code to test if the inputstream itself is valid, i display the image that i get from memory on the screen:

Thanks in advance :)
--edit
After more investigating i have found that the byte[] produced by the inputstream is different form the byteArray that is produced by the file itself:
byte[] bytes = IOUtils.toByteArray(inputStream);
byte[] content = Files.readAllBytes(Paths.get("/Users/BartDuwez/Desktop/avatars-000338105915-u01ky6-t500x500.jpg"));
storage.create(blobInfo, content);

there is a difference of 1 byte: the very first one.
bytes: -40, -1, -30, ...
content: -1, -40, -1, -30, ...
I don't know anything about how this works.
To be clear the byte[] content displays an image correctly in the bucket!
when i check the buf inside the inputStream there is a byte[], that byte[] has the same inside as the content byte[]
if i do this in the debugger:
storage.create(blobInfo, ((ByteArrayInputStream) inputStream).buf);

a file gets uploaded and it works: but .buf is protected so i can't use it in my code. This makes it look like the problem is occuring when converting the inputstream to a byte[]
Anyone that knows something that could help me with this?


text:
When you wish upon a (red) star
Nov 30, 2018 (WiC 434)
Among the American companies most at risk of collateral damage from trade war tensions or the threat of consumer boycotts in China, high up on the list would be Disney.
Not only is Disney increasingly dependent on the Chinese box office (see page 16 for more on the success of its latest Marvel hit Venom), it has also made a major financial commitment to the country through its newest theme park in Shanghai.
But if Disney's boss is worried about the side effects of Donald Trump's tariff policy, he isn't showing it publicly. During a recent earnings call Bob Iger focused more on the rising visitor numbers at Shanghai Disney – in part driven by the opening of its Disney Toy Story Park in April – expressing confidence in the park's future. A six-year $1.4 billion expansion has been agreed for its Hong Kong park too – which again is mostly reliant on mainland tourists.
In fact, the company has strongly hinted that another Disney park could soon be built in China, reports the Beijing Business Today. A location near Beijing is said to be favoured (rival Universal Studios is due to open one of its own theme parks in the capital by 2020).
The Chinese authorities also seem to be supportive of Disney's prospects. Earlier this month the country's antitrust body approved – without conditions – the US media giant's $71.3 billion acquisition of studio 20th Century Fox. Reuters said that meant that the merger had cleared its last major hurdle.
EntertainmentTencent-invested Marvel film gets huge online marketing push in China
Cross StraitWhy voters punished Taiwan's ruling party
Banking & FinanceBitcoin crash clouds crypto currency firms' IPOs
EnvironmentA chemical spill in Fujian casts nearby fishing villages into crisis
Sino-File"We can't find much change in their approach. President Xi may have a lot more to say in the bilateral [meeting], but at the moment we don't see it"
More on Disney
A theme for the future
How the metaverse may help local rivals challenge Disney and Universal
Crazy like a fox
Chinese swoon at newly created character launched at Shanghai Disneyland
Way of the exploding fist
Why the Chinese are not buying into Marvel's Chinese superhero


Welcome to Full Plate Thursday, come on in the house it is pouring rain outside. We are beginning to get our spring rains here and just in time for garden season. It is the last Thursday of the month so we are featuring our Top Ten Viewed Post from last week. This is always a fun time to see what you are viewing the most. We have some of the greatest cooks on the planet that share their wonderful recipes with us every week and I can't wait to see what you are bringing today.
Thank you for the feature, Miz Helen. Have a wonderful week!
ummmm, lots of temptations this week Miz Helen! Thanks for the party!
Thanks so much for a great party Miz Helen. I'm delighted to be a part this week. Everything looks fabulous!
Thank you so much for hosting, Miz Helen! I've brought a Banana and Chia Loaf Cake with Dates and Walnuts this week. Hope you are having a lovely week!
Miz Helen, thank you for hosting. The first thing I'm going to check out is your chicken casserole.
Hooray and thank you!! Have a great week, Miz Helen!
Thank you for featuring the Creamed Chipped Beef & Toast. Have a wonderful weekend.
Thanks again for hosting and have a great week.
Thanks for hosting another great party! I hope you have a great weekend!
Thank you for hosting. You are a gracious host. Have a good week!
Thanks a bunch for an awesome linky party! Will be back next week!


We had transfers last week as well as a zone pday. Found out that I will be finishing up Sister Hansen's training here in Kawasaki!! 川崎.
The past two weeks have had crazy things happen, so much so that there hasn't been much time to think! We had a mission wide Polynesian Night where there was Hula, Haka, dances from other Polynesian Islands and the overall theme was the Book of Mormon! Great time showcasing the history of our church and the Book of Mormon in a fun way!
Other events include Relief Society opening social where we tried to memorize the Living Christ in Japanese....in 15 minutes. Thankfully we were in groups and split it up so we each memorized a section. It is a wonderful document that beautifully explains who Christ is to us. Go read it!
Sister Hansen quotes..."we can't communicate properly if we dont have emojis!" (when we mail investigators) "I saw three cats this morning, I am blessed." (practically every morning when she rides her bike behind me running) "I think my spirit animal is a cat. A really very loud cat." My companion is the cutest.
You Can Do It Now! by Elder Utchdorf is an amazing talk. Please go read!
4.my daughters! Sister Hansen and Sister Hancock!


text:
DCWP Announces Proposed Rules To Protect Limited English Consumers From Harlem To Hollis
Department of Consumer and Worker Protection (DCWP) Commissioner Lorelei Salas announced today new proposed rules to protect Limited English Proficiency (LEP) consumers from deceptive debt collection practices. The proposed rules would require debt collection agencies to inform consumers if language access services are available, prohibit the false, inaccurate or partial translation of any debt collection communications, and to maintain records relating to the language preferences of the consumers. DCWP made the announcement at a National Consumer Protection Week press conference with multiple federal, state, and city agencies.
"New York is one of the most diverse cities in the world with residents speaking dozens of languages. I am a native Spanish speaker, so I know firsthand the importance of language access services for New Yorkers," said DCWP Commissioner Lorelei Salas. "As a consumer protection agency, we strive to ensure we do everything we can to narrow the language access gap and that is exactly what our proposed rules do."
Consumer debt is at its highest point in history, with Americans owing $4.1 trillion in outstanding non-mortgage consumer debt. As a result, the debt collection industry has thrived; collectors contact consumers more than a billion times a year. In New York City, where one in four residents—or nearly 2 million people—have a limited ability to read, speak, write or understand English, the lack of language access services is particularly troubling. Without such services, LEP communities may be unaware of their rights and be more vulnerable to the unscrupulous practices of certain debt collectors.
The proposed new rules would require debt collectors to:
Inform consumers of any language access services that are available;
Notify consumers about a glossary of commonly-used debt collection terms that will be available in multiple languages on DCWP's website;
Request, record, and retain a record of each consumer's language preference;
Report a consumer's language preference if they send the debt back to the creditor, sell the debt, or refer it to litigation; and
Maintain a report of the number of accounts where they have tried to collect on a debt in a language other than English.
DCWP will hold a public hearing on the proposed rules on April 10, 2020 at 10 a.m. at 42 Broadway, 5th Floor. Comments on the proposed rules can be submitted in person at the hearing or online, by email to RuleComments@dca.nyc.gov, by fax to 646-500-5962, or by mail to the address in the proposed rules. The deadline to submit comments is April 10 by 5 p.m.
The new rules fulfill one of the policy recommendations in DCWP's report, Lost in Translation: Findings from Examination of Language Access by Debt Collectors, which, based on a study of the industry, found that there is a lack of language access services for LEP consumers in NYC offered by debt collection agencies. Without any laws in place requiring debt collection agencies to offer language access services to consumers, only a minority of collectors do so.
Anyone seeking to collect debts from New Yorkers must be licensed by DCWP, which currently licenses more than 1,400 debt collection agencies in 45 states and 14 countries. Last year, DCWP received more than 370 complaints about debt collectors, often about debts the consumer doesn't believe they owe. DCWP encourages anyone who is contacted by a debt collector to review our Debt Collection Guide to understand their rights and what a debt collector can and cannot do.
DCWP also encourages anyone struggling with debt to visit an NYC Financial Empowerment Center for free, one-on-one financial counseling. The Centers have served more than 57,000 clients since 2009 and have conducted over 114,000 counseling sessions since the first opening in 2008. Clients have reduced over $70 million in debt and increased their savings by $5.8 million. New Yorkers can book a free and confidential appointment with a professional financial counselor at nyc.gov/TalkMoney or by calling 311.
NYC Department of Consumer and Worker Protection (DCWP) protects and enhances the daily economic lives of New Yorkers to create thriving communities. DCWP licenses more than 75,000 businesses in more than 50 industries and enforces key consumer protection, licensing, and workplace laws that apply to countless more. By supporting businesses through equitable enforcement and access to resources and, by helping to resolve complaints, DCWP protects the marketplace from predatory practices and strives to create a culture of compliance. Through its community outreach and the work of its offices of Financial Empowerment and Labor Policy & Standards, DCWP empowers consumers and working families by providing the tools and resources they need to be educated consumers and to achieve financial health and work-life balance. DCWP also conducts research and advocates for public policy that furthers its work to support New York City's communities. For more information about DCWP and its work, call 311 or visit DCWP at nyc.gov/dcwp
DCWP, New York CityDCWP, Department of Consumer and Worker Protection, Harlem to Hollis, Limited-English Proficiency, Lorelei Salas


text:
Gebirgsjäger (prononciation allemande: [ɡəˈbɪʁksˌjɛːɡɐ]) « chasseurs des montagnes » ou Alpenjäger « chasseurs alpins » sont un corps d'armée d'infanterie légère alpin ou de montagne d'Allemagne, d'Autriche ou le Suisse. Le mot Jäger (signifiant « chasseur ») est un terme caractéristique utilisé pour l'infanterie légère dans le contexte militaire allemand (cf. chasseur alpin en français).

Seconde Guerre mondiale

Heer

 de montagne (1. Gebirgs-Division)
  de montagne (2. Gebirgs-Division)
  de montagne (3. Gebirgs-Division)
  de montagne (4. Gebirgs-Division)
  de montagne (5. Gebirgs-Division)
  de montagne (6. Gebirgs-Division)
  de montagne (7. Gebirgs-Division)
  de montagne (8. Gebirgs-Division)
  de montagne Nord (9. Gebirgs-Division Nord)
  de montagne Est (9. Gebirgs-Division Ost)
  de montagne (157. Gebirgs-Division)
  de montagne (188. Gebirgs-Division)
 Division de montagne Steiermark (Gebirgs-Division Steiermark)
 1. Volks-Gebirgs-Division

Waffen-SS

Aujourd'hui

Liens externes
 Lone Sentry: Some Notes on German Mountain Warfare (US WWII...
 Articles, Photos, Vidéos, Liens (en allemand) à propos des Gebirgsjaeger
 Extensive web site dedicated to the history of Gebirgstruppen
 WWII Combat Footage from the Caucasus Mountains
 Informational Video from BWTV

Unité de montagne allemande
Forces armées de l'Autriche
Forces armées de la Suisse

redpajama_set_name: RedPajamaWikipedia


Please give the page a moment to load. While you wait, be sure to like us on Facebook for studio updates and inspiration for your practice. And, if you haven't yet, please consider supporting our crowdfunding campaign for our new studio.
Copyright 2016 - 12South Yoga. Design by Nicole Delger.


Trampoline Nation Offers Summer Passes! A Great Deal to Use Now-September 7th!
Got bored tweens or teens on your hands? I feel your pain! If you're anywhere near Federal Way, you are in luck! Our friends at Trampoline Nation are again offering their truly awesome summer pass. Your kids can use it between now and September 7th, which means there is plenty of summer left for them to use it, and it will pay for itself in no time.
– That means over the course of the summer if a jumper comes to jump just 3 times on a weekend day, or 4 times on a weekday, the pass will have paid for itself!
As always, you can enjoy the WiFi and the air conditioning, or just savor a little peace and quiet! Trampoline Nation is always a great destination whether you need to plan a party or you just want the kids to burn off some steam.
Full details on the summer pass and all their awesome programs are right here!
Disclosure: Trampoline Nation is one our longtime, awesome sponsors. We would jump for joy if you mentioned Sounds Fun Mom to them next time you went in!


This holster is made from lined, sueded leather and is held snuggly in place by the tough, polymer belt clip for right or left handed shooters. Italian-made, these holsters are known for quality, technology, and creativity. This leather holster is designed to hold .22, .38, .44 and .357 caliber revolvers.


So Cockamole went by tandem that night.
A pack who, to a man, were all chumps.
But his knees will grow lame.
Dodging cars is a young man's craft.
With Just Koda running into a car.
But he still found his way to the bar.
On All Fours could but laugh at the sight.
And he'd never return to this spot.
We judged size by the bulge of his prick.
Away in the darkness, Meh ran.
Delighting all the Spanish grandmamas.


Health Advocate from Rwanda Named as Inaugural World Thrombosis Day Ambassador of the Year - International Society on Thrombosis and Haemostasis, Inc.
CHAPEL HILL, NC, USA, October 11, 2018 — The International Society on Thrombosis and Haemostasis (ISTH) today announced that Christine Ashimwe from Kigali, Rwanda, has been named the World Thrombosis Day 2018 Thrombosis Ambassador of the Year. This prestigious recognition highlights Ashimwe's drive to achieve the campaign's mission of shining a global spotlight on the condition of thrombosis. It also showcases her ability to motivate others within thrombosis advocacy programs in Rwanda and around the world through innovative approaches to raise awareness and accomplish advocacy goals.


First Presbyterian Church has a long, rich history of music programs.
Chancel Choir meets weekly on Sunday mornings before the service. Practices start end of Aug and go through Pentecost. The Choir sings during the service twice a month. No Choir during the summer.
Contact our Choir Director for more information or if you are interested in joining.
Cantical Ringers meets for short sessions during the program year and play during the service several times including a prelude preformance on Chirstmas Eve.
Contact Judy Green, if interested. Beginners welcomed!
*2019- Practices will be on Wednesdays at 7:00 pm. Check our calendar for practice dates.
Speaking to one another with psalms, hymns, and songs from the Spirit. Sing and make music from your heart to the Lord.


Photograph by Tony Talliss. Warwickshire County Record Office reference PH1272 (May 1988).
The Governor's House, Beer Garden?
We've dealt with this building earlier, referring to its time as a prison, but in that text we only made fleeting reference to its time as a pub. We said how landlord Leslie Guy Rose moved from the Stag and Oak down the road, and claimed to be the only man ever to have held a licence to serve drinks in a prison. John Crossling gives a brief run down of the pub's history, mentioning that Rose continued to run it until at least 1956. The last recorded licensee in 1981 was Raymond Morris. Crossling reports that it remained a pub until the late 1980s after which it stood empty for several years until being converted into offices.
The Warwick Advertiser of 9th October 1981 recounts how when Rose took the pub over in 1935, beer was 4d a pint, draught 7d, and cigarettes 11½d for 20. Day trips to the seaside were also run thanks to a club where members paid 6d a week.
There were few changes made to the building when it was converted to a pub with (naturally) a bar being installed in the entrance hall, an internal wall being knocked down, and the approaches changed; a ramp made entering the building easier than the steep steps. Indeed, the lack of alteration meant that the bars stayed on the cellar windows!1 Although the building had 15 rooms, only the two at the front were used for the pub when it was first converted2. John Crossling remembers visiting the pub shortly before it closed and being struck by the unusual proportions of the rooms in particular the thickness of the walls and the high ceilings.
I pass by this building on my way to work and, to be honest, I rather like it, it has a presence on the street. The images featured on this page however, from around the time of its closure, look rather foreboding!
The newspaper articles are part of a collection held at the Warwickshire County Record Office, reference PH956.
The ramp would also make exit safer for those who had sampled the beverages!
Duly changed. My typo, and nobody else's I'm afraid. Apologies, and thanks for reading.


The Committee on Climate Change (CCC) report, issued on June 28, paints a damning picture of the Government's environmental record on transport, which is now the largest emitting sector of the UK economy.
Transport is the only sector which grew between 2012 and 2017 and is responsible for 28 per cent of overall UK carbon dioxide emissions. In 2017, HGVs were responsible for 17 per cent of emissions whilst only accounting for five per cent of miles driven.
The CCC stated that the Department for Transport (DfT) Freight Carbon Review identified 'little concrete action' and that the Government should reduce emissions from freight by shifting freight from road to rail.
But it's not just carbon emissions, we must also reduce road freight's effect on congestion, and rail is well placed to offer a safer, cleaner long-distance alternative which reduces road congestion for both consumer traffic as well as the traditional bulk cargoes.
Inrix, which specialises in transport analytics, estimated that road congestion cost the UK £30 billion in 2016, with the UK ranked the fourth most congested developed country and third most congested in Europe. Building more roads will not solve the problems as it creates new traffic, because when a new road is built, new traffic will divert onto it, a well-known and long-established effect called 'induced traffic'.
The Freight Transport Association (FTA) stated that it costs around £1 a minute to run a 44-tonne truck, so congestion has a considerable financial impact on operations; transferring more freight to rail, helps make road operations more reliable.
There is suppressed demand for both consumer and construction rail freight services because of the limitations of the rail network. For example, each free rail path out of our two major container ports, Felixstowe and Southampton, can be filled immediately. Continuing to upgrade the Strategic Rail Freight Network through the enhancement programme will open up more badly needed capacity, and that's why we are urging the Government to carry on supporting these schemes as part of Network Rail's Control Period Six.
The Government must also fund revised road and rail comparative carbon dioxide emissions and air quality measurements to inform the reductions debate and targets. We believe that the lack of alignment between Government policies for heavy goods vehicles (HGVs) and rail freight disadvantages the latter.
This lack of consistency is apparent in Government policy towards the environment. Both road and rail freight have to deal with the power to weight issues when considering the use of alternative fuels to diesel. The Government has banned diesel-only traction for freight locomotives from 2040 but has not banned diesel HGVs.
This is damaging to rail freight because the Government has also halted rail electrification, which offers the proven technology and the best solution for increasing capacity, lowering maintenance costs, reducing air pollution and cutting carbon dioxide emissions, when there is no alternative fuel in the pipeline to match it.
The Government needs to recognise the importance of investing in further rail electrification and support the rail freight industry in researching new alternative fuels and measures to reduce emissions from existing locomotives. Earlier in the year Julian Worth, a rail freight expert, made the case for a modest re-wiring of around 320 key miles of track over a 30-year period which could see two thirds of rail freight moved by electric traction.
The strong benefit-cost ratio for freight enhancements, typically between 4:1 and 8:1 as highlighted in the latest Network Rail Route Strategic Plan, should be factored into investment planning. Targeted rail freight upgrades work; the gauge upgrades out of Southampton Port increased rail's market share from 29 to 36 per cent within a year and had a benefit-cost ratio of 5:1.
The rail freight grants, known as Mode Shift Revenue Support (MSRS), are only paid by the DfT for actual traffic removed from roads and deliver an average benefit-cost ratio of more than 5:1. These have been incredibly effective at moving freight from road to rail since 2004/05 with container volumes doubling. Through the grant system, the Government acknowledges that this market distortion makes it difficult for the sustainable modes to compete on price because of the lack of a level playing field.
The current Government subsidy to HGVs is around £6 billion per annum as HGVs only pay around a third of their road congestion, road infrastructure damage, collisions and pollution costs. The rail freight grants, which currently have a budget of £15 million, are paid by the Government in recognition of the economic, safety and pollution benefits of removing trucks from our roads but are only funded until March 2020. These should be continued.
The latest quarterly Office of Rail and Road (ORR) rail freight statistics issued in September, show record expansion in construction traffic (up seven per cent) demonstrating the industry's key role in building our infrastructure and housing.
Almost half of building materials are brought into London by rail. Projects such as Heathrow Terminal 5, HS1, the Olympic Park and the construction of Crossrail have benefitted from the reliability, competitiveness and capability of rail freight. The new aggregates terminal at Cricklewood in North London, for example, will service the £4.5 billion Brent Cross housing regeneration scheme.
Each train in and out of the terminal will remove up to 85 HGVs from the strategic road network and carry enough materials to build 30 houses.
Significant investments from rail freight operators and Government, as well as ports, terminals and other customers, have helped to improve the productivity, efficiency and performance of rail freight since 1994. The biggest driver of freight efficiency has been running longer trains, and since 2003 the number of freight trains on the network has fallen by almost half (46 per cent), yet the amount of freight moved on each train has increased by over three quarters.
In the last three years freight operators have relinquished more than half of their freight paths, freeing up capacity for passenger services and other freight services to run. Rail freight operators and Network Rail are continuing to work together to enable longer trains to operate. As part of the Great North Rail project, Network Rail has invested £18 million to lengthen a freight siding at Buxton to allow trains to carry almost 50 per cent more construction materials coming out of nearby quarries.
The granting of planning permission for the extension of freight sidings at Redbridge, Southampton, which unlocks a pinch point on the railway, will allow for longer freight trains which can further reduce air pollution and road congestion, both locally and on the whole A34 corridor to the West Midlands and beyond.
This scheme will help Southampton City Council, which has announced plans for a Clean Air Zone, reduce its air pollution. The development means that the existing 20 daily consumer freight trains in and out of Southampton, which already remove around 1,600 HGVs per day, will be capable of removing an additional 728 HGVs per day as part of a wider scheme to allow 775 metre trains out of Southampton port.
New developments and services on the network show the vital importance of ports and terminals to rail freight and more rail/road transfer points are needed if rail freight is to play its full role in reducing road congestion and carrying freight in a safer more sustainable way.
Terminals reduce the transhipment costs between the modes and let both modes play to their strengths. The latest rail freight interchange at IPort is the first inland strategic rail freight interchange (SRFI) built in the past ten years and despatched its first train service from Doncaster to Southampton in mid-September.
IPort, which is a state-of-the-art multimodal rail terminal and can handle six trains a day, connects to the East Coast Mainline, is located next to the M18 and is within two hours of the East Coast's deep-water ports.
The proposed Four Ashes Strategic Rail Freight Terminal, near Wolverhampton, is proceeding through the planning system. Crucially, it is adjacent to junction 12 of the M6 with direct access to the West Coast Mainline which has the capability to carry the larger containers.
Eddie Stobart has launched a new consumer products service linking London ports to central Scotland by rail with its first train service connecting the port of Tilbury to Tesco's site at Daventry for onward rail connection to Mossend in Scotland. There is also a new rail freight terminal at Anglesey, which can handle six trains a day to cater for the ten daily ferries to and from Ireland.
Teesport already has a daily rail freight container service to Scotland. Network Rail and Tees Valley Combined Authority are undertaking a £1 million study to investigate ways at improving the region's rail freight network, including expanding the rail freight capability to and from Teesport, with the aim of allowing freight to use more direct routes and carry more containers on each train.
The relative safety costs of the different freight modes also need to be taken into account in the freight debate. Government figures show that HGV involvement in fatalities on urban roads (39 deaths per billion vehicle miles travelled by HGV) is more than six times that of cars (6.4 deaths per billion vehicle miles travelled), with the DfT valuing the prevention of each road death at £2.1 million.
It is crucial that rail, which supports port and shipping operators, manufacturers, retailers and construction companies across the country, is not overlooked by the Government; we need a rail network that works for both passengers and freight. The rail freight industry needs to highlight all the socio-economic benefits of rail freight, which can help the Government achieve its objectives to make freight more efficient and sustainable, in the lead up to the Government Spending Review next year.
Franchising is dead: long live … er … franchising?
What does the future hold for rolling stock?


text:
Myanmar morning news for June 20
World Bank Puts Myanmar's Power Investment Needs at $2B a Year
Electricity consumption expected to increase by 11% annually through 2030 amid strong economic growth, new report says.
— Irrawaddy
Suu Kyi attending ASEAN Summit amid regional storm over Rohingya
ASEAN members will be piling pressure on Myanmar's Aung San Suu Kyi over the regional Rohingya crisis. Myanmar 'State Counsellor' Aung San Suu Kyi is heading to Bangkok to attend this weekend's 34th Summit of the ASEAN.
— The Thaiger
Natural gas export volume reaches more than US$ 2.4 billion
Natural gas export volume reached more than US$ 2.4 billion in the eight months of this fiscal year, decreasing by more than US$ 97 million, compared with the same period of last year, said an official of the Ministry of Commerce.
Only one YBS company pays off debts: Yangon Chief Minister
Only the loan taken by one bus company for the purchase of buses has been paid , said Yangon Region Chief Minister Phyo Min Thein to media after the session of region parliament on June 18.
Application of YBS e-ticket prioritized
Yangon Region Transport Authority-YRTA is working to practice e-ticket system for YBS buses within a year. The announcement came at the YATA's meeting with media (3/2019) at its head office in Tamway.
— The Global New Light of Myanmar
Budget deficit expected to hit K7 trillion in next fiscal year
Next year's budget deficit is expected to be K7 trillion (US$4.5 billion) as the government plans to spend more in an effort to fulfil more of the public's urgent needs, said President Win Myint.
— Myanmar Times
Myanmar Special Economic Zones Central Working Body coordinates ongoing tasks in Nay Pyi Taw
The Coordination meeting of Myanmar Special Economic Zones Central Working Body (2/2019) was held yesterday at the meeting hall of the Ministry of Commerce in Nay Pyi Taw. Chairman of working body and Union Minister for Commerce, Dr. Than Myint, delivered an address.
Grab, Myanma Insurance partner to provide insurance coverage
Grab has partnered with state-owned Myanma Insurance to launch a group Personal Accident Insurance (PAI) scheme which covers its drivers and passengers in the case of an accident during a GrabTaxi, GrabThoneBane or GrabBike ride.
KNU says it had no time for peace meeting
The Karen National Union (KNU) did not attend a meeting held by the Union Peace Dialogue Joint Committee because it was holding meetings of its own, according to the KNU.
12 die of dengue fever in Myanmar in 6 months
A total of 12 people died of dengue fever across Myanmar in connection with 3,144 such cases in nearly six months of 2019, according to Yangon region's Public Health Department Wednesday.
— Xinhua
CHAI proposes to fund $ 3.48 m for health projects
Clinton Health Access Initiative (CHAI) has proposed the Ministry of Health and Sports to provide funding for HIV, drug-resistant TB, malaria, Hepatitis-C and cervical cancer.
Myanmar 'mafia figure', accomplices arrested for extortion
An alleged Myanmar mafia figure and several accomplices accused of demanding protection fees from Myanmar workers have been arrested during a joint raid on a building in Bangkok's Pratunam area.
— Bangkok Post
UN gives Myanmar aid cut warning over Rakhine IDP camp closures
The UN has warned it will pare back aid to thousands of Rohingya Muslims left destitute as Myanmar's government closes camps in Rakhine state, over fears its continued support "risks entrenching segregation".
— Mizzima
CPWD to reconstruct Women Police Training Centre in Myanmar
The CPWD, the prime construction agency of the Indian government, will reconstruct the Women Police Training Centre in Myanmar's Yamethin at a cost of Rs 280 crore, an official aware of the matter has said.
— Business Standard
General meets with, donates K30 million to hard-line monks
Major General Thet Pone, commander of the Tatmadaw's (military) Yangon command, attended the annual meeting of the ultranationalist Buddha Dhamma Parahita Foundation, and donated K30 million and other items.
The hunger haunting the nation's rice bowl
A depletion in the variety of local food sources, stubborn poverty rates and stretched health services are driving high rates of malnutrition in the Ayeyarwady delta.
— Frontier Myanmar
Negotiations underway for release of workers arrested by AA
Deputy Minister of Construction, Kyaw Lin, said that they were negotiating the release of eight construction workers from Suu Htoo San Company who were arrested by Arakan Army (AA).
Myanmar Investments gets investor backing for rejecting takeover bid
Myanmar Investments International said a number of its substantial shareholders had backed its decision to reject a takeover proposal from Myanmar Strategic Holdings.
— Shares Magazines
Myanmar and two media institutes from Denmark and Sweden extend MoU
Myanmar and two international media support institutes from Denmark and Sweden signed a Memorandum of Understanding (MoU) on media cooperation to extend the duration of existing agreement.
— Scandasia
ASEAN: Don't Whitewash Atrocities Against Rohingya
Southeast Asian leaders at their annual summit should drastically rethink their response to the plight of Myanmar's ethnic Rohingya, Human Rights Watch said today. The 10 leaders of the Association of Southeast Asian Nations (ASEAN) are scheduled to meet at the 34th ASEAN Summit in Bangkok, Thailand from June 20-23, 2019.
— Reliefweb
Commission will monitor investigation of prisoner death
The Myanmar National Human Rights Commission (MNHRC) is monitoring the investigation by the Department of Prisons of the death in prison of a man who protested against a coal-fired cement factory project in Mandalay, said a commission member.
Kayah ethnic textiles fail to attract foreign buyers, rely on local demand
although business is booming in the travel industry, Kayah ethnic textiles are enjoying a strong demand in the domestic market, but have failed to catch the attention of tourists according to Kayah ethnic weavers. "Most Kayah woven products are made of cotton, and a complete Kayah costume fetches around K100,000.
Amid Int'l Espionage Concerns, Mandalay to Embrace Huawei for 'Safe City' Project
Myanmar's second biggest city in a strategic BRI location to have CCTV and AI technology from the Chinese company internationally accused of data theft and spying.
Senior General Min Aung Hlaing meets local people in Ngathayauk, NyaungU Tsp
Commander-in-Chief of Defence Services Senior General Min Aung Hlaing and wife Daw Kyu Kyu Hla visited a drinking water supply facility donated by the Central Command and Mitta Yayzin Rural Area Water Supply Society and donors in Ngathayauk, NyaungU Township, Mandalay Region, yesterday.
IFC becomes first international investor in a commercial bank in Myanmar
IFC, a member of the World Bank Group, has converted its loan provided in 2014 to 5% equity shareholding to Yoma Bank Limited, one of the largest banks in Myanmar. With this conversion, IFC becomes the first international investor in a commercial bank in Myanmar. This marks an important milestone in the country's banking sector, boosting foreign direct investment in Myanmar, according to a press release.
5th steering committee holds meeting on Programme on Rule of Law and Human Rights
The fifth steering committee meeting for the Myanmar-Denmark Programme on Rule of Law and Human Rights was held yesterday at the Office of the Union Attorney-General in Nay Pyi Taw.
Easy riders spread message of peace in Myanmar
Thet Swe Win bought his first motorbike this year. Yet rather than go on joyrides like many of his peers, the 32-year-old Myanmar rights activist decided to put his new scrambler to better use.
— UCA News
Rakhine peace & stability committee meets experts, locals in Sittway
The Committee for Supporting Peace and Stability in Rakhine State met with officials from the National League for Democracy, Rakhine State Legal Support Group and Municipal Development Committee, experts on Rakhine and local elders at the State Cabinet's Guesthouse in Sittway yesterday.
New Chinese Ambassador Vows to Seek 'Practical Cooperation' with Myanmar on BRI Projects
Relations are good but there's room for improvement, envoy Chen Hai says.
Myanmar needs 'wise' investments
DESPITE the ongoing Rakhine crisis and intensification of conflicts that may impact on the performance of the tourism sector and investor sentiment, Myanmar's economy is slowly picking up speed and regaining stability after a volatile 2018, and that could continue if the country invests wisely and inclusively, says a new report by the World Bank.
— The Nation
President, First Lady attend State Counsellor's 74th birthday event
President U Win Myint and First Lady Daw Cho Cho attended the celebration of State Counsellor Daw Aung San Suu Kyi's 74th birthday, held in the Hluttaw Hall I-12 in Nay Pyi Taw yesterday. Other important figures attending the event included former President U Htin Kyaw and wife Daw Su Su Lwin, Vice President U.
Urbanization, Commercial Farms Threaten Asia's Forests, UN Warns
Forests are recognized as key to climate-change mitigation and adaptation, yet expanding populations and demand for resources are placing greater stress on them.
President U Win Myint accepts credentials from Ambassador of the Republic of Ghana
H.E. Ms. Akua Sekyiwa Ahenkora, the newly-accredited Ambassador of the Republic of Ghana to the Republic of the Union of Myanmar, presented her Letters of Credence to U Win Myint, President of the Republic of the Union of Myanmar, in the Credentials Hall of the Presidential Palace, Nay Pyi Taw at 3:45 p.m. yesterday.
More Than 220 Flee Homes in Shan State
Villagers in rural parts of Kutkai Township, in northern Shan State, fled their homes when fighting broke out between TNLA troops and the Tatmadaw Sunday morning.
UEC: We're working to ensure 2020 elections go smoothly
The Union Election Commission is working to ensure that voting for the 2020 general election will be able to take place in constituencies across the country, says U Myint Naing, a member of the commission.
H1N1 Kills 3 in Yangon
Of 20 suspected patients, seven have been confirmed to be infected with the deadly virus, including the three deceased.
NGO holds blockchain roundtable
Over the past few years Myanmar has witnessed an enormous amount of change, in law, business, economics and investment. Given how far Myanmar has to catch up with surrounding nations, one sector in particular may have an advantage.
Feature photo UNHCR, the UN Refugee Agency
This week's Myanmar morning news photo feature acknowledges World Refugee Day, June 20.
Myanmar morning news by AEC News Today is your one stop source for Myanmar news on matters of governance and policies affecting Asean business communities. It is published M-F by AEC News Today: Governance, not government; policies not politics.
Myanmar morning news for June 20 added by Sreypov Men on June 20, 2019
Asean Morning News For May 14
Asean morning news for August 28
Asean Morning News For March 2


PARIS - Messing with the natural rhythm of one's internal clock may boost the risk of developing mood problems ranging from garden-variety loneliness to severe depression and bipolar disorder, researchers said Wednesday.
The largest study of its kind, involving more than 91,000 people, also linked interference with the body's "circadian rhythm" to a decline in cognitive functions such as memory and attention span.
The brain's hard-wired circadian timekeeper governs day-night cycles, influencing sleep patterns, the release of hormones and even body temperature.
For the new study, an international team led by University of Glasgow psychologist Laura Lyall analyzed data — taken from the U.K. Biobank, one of the most complete long-term health surveys ever done — on 91,105 people from ages 37 to 73.
The volunteers wore accelerometers that measured patterns of rest and activity and had this record compared to their mental history, also taken from the U.K. Biobank.
Individuals with a history of disrupting their body's natural rhythm — working night shifts, for example, or suffering repeated jet lag — also tended to have a higher lifetime risk of mood disorders, feelings of unhappiness, and cognitive problems, the researchers found.
But the findings "reinforce the idea that mood disorders are associated with disturbed circadian rhythms," said Lyall.
Measurements of people's rest-work cycles could be a useful tool for flagging and treating people at risk of major depression or bipolar disorders, the researchers concluded.
One limitation of the study was the average age of the trial participants — 62.
"Seventy-five percent of [mental] disorders start before the age of 24 years," said University of Oxford researcher Aiden Doherty, commenting on the paper.
"The circadian system undergoes developmental changes during adolescence, which is also a common time for the onset of mood disorders," he added.
Humans have been shown to be either "owls" or "larks," corresponding to so-called genetic "chronotypes" that determine whether we function better at night or during the day.
Last year, the Nobel Prize for medicine was awarded to three U.S. scientists who pioneered our understanding of how the circadian clock ticks.


text:
Oh! Gunquit - Eat Yuppies And Dance
Published in UNX
London quintet Oh! Gunquit initially split the jury here with their cover of the Angry Samoans' 'Lights Out'. They certainly make it their own and it's a less than obvious choice but is it a version that's going to deserve spin after spin in the future?
For the answer to that question you really have to hear the track in conjunction with the rest of the contents of the band's debut album Eat Yuppies And Dance. Released on the venerable Dirty Water label it contains a body of work at once slightly removed from the label's staple garage, surf and beat sounds but which nevertheless displays a firm grasp of the constituent parts of those genres & more besides.
Tina Swasey & Simon Wild's vocal interaction is a real strong point on the album and it's particularly pleasing to have them alternate the lead vocal parts. The B52s often come to mind, especially on third track 'Caves' whilst the heavier 'Bad Bad Milk', with the saxophone up front, recalls The Cramps with a more vocal Poison Ivy.
The sax plays a prominent role on 'Hope In Hell' as well, the first of the band's trashier party numbers & one that likely goes down well live. As, really, you'd have to imagine all ten songs herein do, such is the pace & verve the five players imbue their work with. This is a great party album which demands that its title be lived up to by the listener (although dancing on a heavy stomach of Yuppie may not be the best for you so maybe pass on the bankers).
Oh! Gunquit can be experienced live at the third outing of the Hipsville festival at Bisley, Surrey over the third weekend of May (event website here).
Eat Yuppies And Dance is available from amazon & iTunes.


text:
Q: How to disable secure boot without entering UEFI? My problem is secure boot. I am trying to boot into Linux using a USB but most distros won't work with secure boot, I already know secure boot can be disabled in the UEFI settings, and I know how to get there, but I don't know my UEFI admin password.  So I want a way to disable secure boot without entering UEFI or even better, recover my UEFI admin password. Thanks, I have a Windows 10 64-bit Asus laptop .

A: The OS cannot just disable Secure Boot on its own – that would defeat some of the purposes of Secure Boot (e.g. preventing rootkits from installing themselves into the boot chain).
If I remember correctly – Aside from direct user interaction (going through the setup screen), the only other way to control the overall Secure Boot state is by making EFI variable changes that are signed using the Platform Key (PK).
But if you're using the "default" Secure Boot setup, then you won't have the private key corresponding to the PK – it exists either only at the manufacturer or nowhere at all. This means going through the firmware setup is your only remaining option.

A: You need to go into BIOS (UEFI) to change (disable / enable) Secure Boot.
To do that every time you wish to change OS is a bit onerous.
Somehow you will need to get the password to do this.
I suggest you make your lesser used system a Virtual Machine and your most used system the Host system.
Use VMware Workstation Pro to do this. This has always worked best for me.  I have both VMware and Hyper-V (on a different computer).


The more hours spent seeking the very top producing service on line, the more clearly you know it doesn't exist. Organizations presenting custom published essays needs to make certain that writers adhere to the guidelines supplied by prospective clients. Quite a few students aren't able to access services of creating organizations as a result of high costs billed.
What's more, it offers businesses with the advice they have to create goods and services which customers need. In your organization you can recognize that some one-time customers are not the correct match for you. They come back to us repeatedly because they understand they really are the most useful around the internet and they are glad to set their identify to their own recommendations for that very same rationale.
Some of many benefits of social media is that your capability to know the way to possibly be linked to the hiring director, individual resources and occupation seekers. Possessing a career is a significant step which may bring alterations to a own life. Business knowledge provides the last, future and present views of their company endeavors.
They require help with creating at one position or another. By time to time, college pupils need of further aid on a professional point, even now, they aren't certain at which they could come across a number such as. Thus, right immediately after selecting the issue, he needs to make a set of the things which has to complete.
Essays may also be intended to demonstrate how logical your thought procedure is , and whether you've got the power to generate a thesis announcement that validates the rationale and idea supporting the writing in question. The overview might be an outline however, the moment it serves as a breakdown of some body's comprehensive dissertation.
Or else, you might always turn into compose my essay service or essay writing provider to aid with this particular composition. You'll find several forms of essays. A great composition will create a durable impression on the minds of their readers.
Essay creating businesses arrive in various varieties. It does not require decent knowledge on paper but it requires a excellent understanding of the elements. 7 Dollar Essay can be actually a somewhat cheap essay writing assistance.
You are going to be ready to form an impression relating to this picture when you've observed it. To compose a movie summary, you want to observe the picture. Your movie review has to become interesting and enjoyable your readers discover that their fashion to learn it.
No matter the issue the simple idea would be always to acquire amazing levels and that's just potential as soon as you perform until the mark. The explanation is extremely easy.
In situations like this, the very best essay writers can support you with high quality content. You can find numerous essay creating services you may get free of price tag. Without appropriate direction, writing an informative article is surely a challenging endeavor.
Several students come from assorted educational backgrounds, which explains why documents will be the norm for selections. With this particular sort of a ceremony, you are able to be certain your essays goes to be the very best. They might simply consider a move back every so often, particularly in the event the scholar will not care much for this.
Many organizations offer essay producing products and services. You will need in order to definitely specify your value, the attributes, gains and benefits of that which you've surely got to provide you with. Additionally, there are a lot of programs available which will be able to help you compose an fruitful conversation proposal.
On time, the writing firm needs to be prepared to provide limitless alterations on already written essays which do not meet the purchaser's specifications. The writers on the habit essays typically proceed via commonly in addition to comprehensive by way of lots of tools. The essay producing services perform feature how the services they provide are to bring far better scores.
If there appear a need to locate the absolute best composing service at the beet manner then you definitely ought to make sure to anticipate the very best service provider that supplies the ideal expert solutions. When you'll need any producing service that you require in order to work out the preceding performance of the company. Although other agencies may deny to finish your order, we've got the expert writers and also necessary resources to manage all sorts of topics and papers.


The Monthly CORE Real Time Report is the first of its kind in the Manhattan residential market. It is an analysis of real-time information that tracks current contract pricing and absorption. This report is different from other published reports because it reflects existing contract data, not sold and closed data, which often takes months or years to be recorded. In order to get an accurate snapshot of the current market, contract data is the most pertinent information. Sold and closed data reflects historical market information and cannot be accurately attributed to a specific time in the market due to the nature of the length of a transaction. This is further skewed with new development transactions which can sometimes reflect more than a two year period from contract signing to closing. As is the case with all residential reports, the accuracy of this report is not 100%, but this is a very reliable snapshot of current market conditions. The information in this report is gathered from numerous sources and includes parameters in Manhattan below 96th Street and does not include new development data unless otherwise noted.


text:
Q: ArgumentError (too few arguments) in rails 4 for respond_to call only on production ( heroku ) envrionment i have the following error when posting a new photo to my controller. I only have the error in production, locally it works fine. I looked at the params and locally it looks the same only UTF8 params has a slight different chars locally.

my controller is. Line 35 is exactly  respond_to do |format|
# POST /photos
# POST /photos.json
def create
  @photo = Photo.new(photo_params)
  @photo.user = current_user

  respond_to do |format|
    if @photo.save
      format.html { redirect_to new_photo_path, notice: 'Photo was successfully created.' }
      format.json { render :show, status: :created, location: @photo }
    else
      format.html { render :new }
      format.json { render json: @photo.errors, status: :unprocessable_entity }
    end
  end
end

my model is
class Photo < ActiveRecord::Base
  dragonfly_accessor :image
  belongs_to :user

  validates :image, presence: true
  validates_size_of :image, maximum: 500.kilobytes,
    message: "should be no more than 500 KB", if: :image_changed?

  validates_property :format, of: :image, in: [:jpeg, :jpg, :png, :bmp], case_sensitive: false,
    message: "should be either .jpeg, .jpg, .png, .bmp", if: :image_changed?
end

Dragonfly config is
require 'dragonfly'

# Configure
Dragonfly.app.configure do
  protect_from_dos_attacks true
  secret "92a3093304fd5b5ad0d1fa716caeae7b02aedd702127ead467f24f6b1526bd05"

  url_format "/media/:job/:name"

  Rails.logger.debug 'Root path: ' + Rails.root.join('public/system/dragonfly', Rails.env).inspect
  if Rails.env.development? || Rails.env.test?
   plugin :imagemagick,
     convert_command: 'C:/Ruby200-x64/ImageMagic/convert',    # defaults to "convert"
     identify_command: 'C:/Ruby200-x64/ImageMagic/identify'  # defaults to "identify"
  else
#    datastore :s3,
#      bucket_name: 'petowners',
#      access_key_id: 'insert_key',
#      secret_access_key: 'insert_key',
#      url_scheme: 'https'
  end
    datastore :file,
      root_path: Rails.root.join('public/system/dragonfly', Rails.env),
      server_root: Rails.root.join('public')
end

# Logger
Dragonfly.logger = Rails.logger

# Mount as middleware
Rails.application.middleware.use Dragonfly::Middleware

# Add model functionality
if defined?(ActiveRecord::Base)
  ActiveRecord::Base.extend Dragonfly::Model
  ActiveRecord::Base.extend Dragonfly::Model::Validations
end

my Routes are
  resources :pets
  resources :dogs, controller: 'pets', type: 'Dog'
  resources :hamsters, controller: 'pets', type: 'Hamster'
  resources :cats, controller: 'pets', type: 'Cat'

  authenticated :user do
    root 'users#newsfeed', :as => :authenticated_root
    get '/profile/:id', :to => 'users#profile', :as => :user_profile
  end
  root to: 'visitors#index'
  devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
  resources :users
  resources :photos, only: [:new, :create]
  get '/photos/new_multiple', to: 'photos#new_multiple', as: :new_photo_multiple

I'm using dragonfly with the same datatstore. Rails 4.1.6

A: I removed
protect_from_dos_attacks true

and it worked